db34a309c737d49fbb85f65b0fa394a42a339fc1
[gnulib.git] / ChangeLog
1 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
2
3         pread: Update documentation.
4         * doc/posix-functions/pread.texi: Mention the 'pread' module.
5
6 2010-05-04  Eric Blake  <eblake@redhat.com>
7
8         docs: update cygwin progress
9         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
10         this bug.
11         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
12         Added in cygwin 1.7.2.
13         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
14         Likewise.
15         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
16         Likewise.
17         * doc/glibc-functions/dup3.texi (dup3): Likewise.
18         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
19         * doc/glibc-functions/accept4.texi (accept4): Likewise.
20         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
21         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
22         Mention nproc module.
23         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
24         bug in cygwin 1.7.5 addition.
25         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
26         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
27         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
28         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
29         1.7.5.
30         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
31         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
32         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
33         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
34         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
35         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
36         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
37         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
38         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
39         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
40         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
41         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
42         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
43         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
44         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
45         Likewise.
46         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
47         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
48         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
49         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
50         Likewise.
51         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
52         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
53         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
54         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
55         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
56         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
57         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
58         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
59         Likewise.
60         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
61         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
62         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
63         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
64         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
65         Likewise.
66         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
67         Likewise.
68         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
69         Likewise.
70         * doc/glibc-functions/xdrrec_endofrecord.texi
71         (xdrrec_endofrecord): Likewise.
72         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
73         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
74         Likewise.
75         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
76         Likewise.
77
78 2010-05-04  Jim Meyering  <meyering@redhat.com>
79
80         gendocs.sh: make its "-s FILE" option more useful
81         * build-aux/gendocs.sh: When honoring the -s FILE option, update
82         $PACKAGE to reflect the probably-different basename of "FILE".
83
84 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
85
86         bootstrap: don't ignore download_po_files failure
87         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
88         failure.
89
90 2010-05-03  Jim Meyering  <meyering@redhat.com>
91
92         maint.mk: allow to pass options to gendocs.sh
93         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
94         (gendocs_options_): New overridable variable.
95
96         gnu-web-doc-update: don't ignore configure or build failure
97         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
98
99         announce-gen: backslash-escape '@'s in --help output
100         * build-aux/announce-gen: Fix syntax errors.
101
102         maint.mk, announce-gen: allow project-specific announcement mail headers
103         * top/maint.mk (translation_project_): Define default.
104         (announcement_Cc_, announcement_mail_headers_): Likewise.
105         (announcement): Invoke announce-gen with new --mail-headers option.
106         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
107
108         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
109         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
110         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
111         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
112         line in the "err2" output file when running "make check" in verbose
113         mode (i.e., with set -x enabled).
114
115 2010-05-03  Bruno Haible  <bruno@clisp.org>
116
117         wctob: Fix for weird platforms.
118         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
119         argument value.
120
121 2010-05-03  Jim Meyering  <meyering@redhat.com>
122
123         maint.mk: prohibit unwarranted use of <strings.h>
124         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
125         strings.h in a file that does not also use strcasecmp, strncasecmp,
126         ffs or ffsll.
127
128         maint.mk: remove obsolete comments
129         * top/maint.mk: Remove stale, commented-out rules.
130
131 2010-05-02  Bruno Haible  <bruno@clisp.org>
132
133         wcwidth: Declare also when it's aliased.
134         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
135         macro.
136
137 2010-05-02  Bruno Haible  <bruno@clisp.org>
138
139         Fix regression from 2010-04-25.
140         * gnulib-tool (func_modules_transitive_closure): Check the status of
141         all modules, not only of the tests that are of the form foo-tests where
142         foo is a module.
143
144 2010-05-02  Bruno Haible  <bruno@clisp.org>
145
146         wctob: Work around nasty Cygwin 1.7.2 bug.
147         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
148         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
149
150 2010-05-01  Bruno Haible  <bruno@clisp.org>
151
152         fpurge: Sharper test.
153         * tests/test-fpurge.c (main): Add one more ftell check.
154         * modules/fpurge-tests (Depends-on): Add ftell.
155         Suggested by Eric Blake.
156
157 2010-05-01  Bruno Haible  <bruno@clisp.org>
158
159         ftello: Another test.
160         * tests/test-ftello3.c: New file.
161         * modules/ftello-tests (Files): Add it.
162         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
163         MOSTLYCLEANFILES.
164
165         ftell: Another test.
166         * tests/test-ftell3.c: New file.
167         * modules/ftell-tests (Files): Add it.
168         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
169         MOSTLYCLEANFILES.
170
171 2010-05-01  Bruno Haible  <bruno@clisp.org>
172
173         ftell, ftello: Work around Solaris bug.
174         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
175         * lib/ftello.c: Include stdio-impl.h.
176         (ftello): On Solaris, when _IOWRT is set, compute the result without
177         looking at _IOREAD.
178         * modules/ftello (Files): Add lib/stdio-impl.h.
179         * doc/posix-functions/ftell.texi: Mention Solaris bug.
180         * doc/posix-functions/ftello.texi: Likewise.
181         Reported by Eric Blake.
182
183 2010-05-01  Bruno Haible  <bruno@clisp.org>
184
185         freading: Adapt to special meaning of _IOREAD flag on Solaris.
186         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
187         the _IOWRT flag is also set.
188
189 2010-05-01  Bruno Haible  <bruno@clisp.org>
190
191         Fix doc about a HP-UX stdio bug.
192         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
193         * doc/posix-functions/ftello.texi: Likewise.
194
195 2010-05-01  Bruno Haible  <bruno@clisp.org>
196
197         lseek test: Fix failure on Solaris.
198         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
199         output.
200
201 2010-04-30  Jim Meyering  <meyering@redhat.com>
202
203         bootstrap: don't ignore failure to generate po*/Makevars
204         * build-aux/bootstrap (with_gettext): Don't ignore failure
205         to create po/Makevars or runtime-po/Makevars.
206
207 2010-04-29  Eric Blake  <eblake@redhat.com>
208
209         headers: relax license to LGPLv2+
210         * modules/fcntl-h (License): Relax license.
211         * modules/getopt-posix (License): Likewise.
212         * modules/locale (License): Likewise.
213         * modules/math (License): Likewise.
214         * modules/pty (License): Likewise.
215         * modules/sched (License): Likewise.
216         * modules/search (License): Likewise.
217         * modules/spawn (License): Likewise.
218         * modules/stdarg (License): Likewise.
219         * modules/sysexits (License): Likewise.
220
221 2010-04-29  Jim Meyering  <meyering@redhat.com>
222
223         inttypes: relax license to LGPLv2+
224         * modules/inttypes (License): Relax license.
225
226 2010-04-29  Simon Josefsson  <simon@josefsson.org>
227
228         * top/maint.mk (indent): Run twice to produce idempotent results.
229
230 2010-04-28  Bruno Haible  <bruno@clisp.org>
231
232         getdate: Generate getdate.c in the source directory.
233         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
234         MOSTLYCLEANFILES.
235         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
236
237 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
238
239         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
240         is not declared as a const *; avoid warnings in that case.
241
242 2010-04-28  Eric Blake  <eblake@redhat.com>
243
244         canonicalize-lgpl: avoid compiler warning
245         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
246         declaration' / 'extraneous semicolon' warning with some compilers.
247         Reported by Andreas Gruenbacher.
248
249 2010-04-28  Jim Meyering  <meyering@redhat.com>
250
251         init.sh: ensure a more reliable exit status when exiting via trap
252         * tests/init.sh (setup_): Don't rely on $? in signal handler.
253         Inspired by patches from Dmitry V. Levin.
254         Also trap on signal 3 (SIGQUIT).
255
256 2010-04-27  Bruno Haible  <bruno@clisp.org>
257
258         Update doc about utimes().
259         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
260         'utimens' module.
261         Reported by Andreas Gruenbacher <agruen@suse.de>.
262
263 2010-04-27  Eric Blake  <eblake@redhat.com>
264
265         full-read, full-write: relax license
266         * modules/full-read (License): Drop to LGPLv2+.
267         * modules/full-write (License): Likewise.
268         * modules/safe-read (License): Likewise.
269         * modules/safe-write (License): Likewise.
270
271         pthread: mention library for linking
272         * modules/pthread (Link): Mention $(LIB_PTHREAD).
273
274 2010-04-27  Jim Meyering  <meyering@redhat.com>
275
276         maint.mk: fix a bug introduced in last change
277         * top/maint.mk (gl_assured_headers_): Now that all names are on
278         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
279         is not anchored to end of word, it should be adequate.
280
281         maint.mk: avoid side-effect in latest syntax-check
282         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
283         to run commands via $(shell...), and hence to incur cost only when
284         the new rule is actually run.
285
286         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
287         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
288         and use that to create a regexp used to detect all #if HAVE_..._H uses.
289         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
290         (gl_assured_headers_, az_, AZ_): Define.
291         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
292
293 2010-04-26  Jim Meyering  <jim@meyering.net>
294             Bruno Haible  <bruno@clisp.org>
295
296         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
297         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
298         Prompted by an exchange with Gilles Espinasse.
299
300 2010-04-26  Jim Meyering  <meyering@redhat.com>
301
302         git-version-gen: aesthetic tweak
303         * build-aux/git-version-gen: Use "$nl" rather than a literal,
304         so that the command remains on a single line.
305
306 2010-04-26  Eric Blake  <eblake@redhat.com>
307
308         git-version-gen: allow use on EBCDIC hosts
309         * build-aux/git-version-gen (dirty): Use literal rather than tying
310         ourselves to ascii.
311         Reported by Steve Goetze.
312
313 2010-04-25  Bruno Haible  <bruno@clisp.org>
314
315         netdb: Add support for GNULIB_POSIXCHECK.
316         * lib/netdb.in.h: Include warn-on-use.h.
317         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
318         functions are used when GNULIB_POSIXCHECK is defined and the
319         getaddrinfo module is not in use.
320         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
321         freeaddrinfo, gai_strerror, getnameinfo are declared.
322         * modules/netdb (Depends-on): Add warn-on-use.
323         (Makefile.am): Include warn-on-use.h in netdb.h.
324
325 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
326
327         build: avoid "make check" failure without .git/ directory
328         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
329         there is no .git/ directory.
330
331 2010-04-25  Bruno Haible  <bruno@clisp.org>
332
333         ptsname: Fix misuse of ttyname_r.
334         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
335         of errno.
336
337 2010-04-25  Bruno Haible  <bruno@clisp.org>
338
339         ttyname_r: Make it work on Solaris 10.
340         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
341         if the system function has the POSIX declaration. Test whether the
342         function fails if the buffer is less than 128 bytes large.
343         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
344         system's ttyname_r function. Provide a reasonably large buffer.
345         * modules/ttyname_r (Depends-on): Add extensions.
346         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
347
348 2010-04-25  Bruno Haible  <bruno@clisp.org>
349
350         Use the 'extensions' module for some more functions on Solaris.
351         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
352         module.
353         * doc/posix-functions/ctime_r.texi: Likewise.
354         * doc/posix-functions/getgrgid_r.texi: Likewise.
355         * doc/posix-functions/getgrnam_r.texi: Likewise.
356         * doc/posix-functions/getpwnam_r.texi: Likewise.
357         * doc/posix-functions/getpwuid_r.texi: Likewise.
358         * doc/posix-functions/readdir_r.texi: Likewise.
359         * doc/posix-functions/sigwait.texi: Likewise.
360         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
361         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
362
363 2010-04-25  Bruno Haible  <bruno@clisp.org>
364
365         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
366         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
367         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
368         * lib/ttyname_r.c: Include <limits.h>.
369         (ttyname_r): Define using the system's ttyname_r function, if it exists
370         and not on Solaris.
371         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
372         set.
373         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
374         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
375         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
376         Reported by Simon Josefsson.
377
378 2010-04-25  Bruno Haible  <bruno@clisp.org>
379
380         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
381         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
382         * doc/posix-functions/ctime_r.texi: Likewise.
383         * doc/posix-functions/getgrgid_r.texi: Likewise.
384         * doc/posix-functions/getgrnam_r.texi: Likewise.
385         * doc/posix-functions/getlogin_r.texi: Likewise.
386         * doc/posix-functions/getpwnam_r.texi: Likewise.
387         * doc/posix-functions/getpwuid_r.texi: Likewise.
388         * doc/posix-functions/readdir_r.texi: Likewise.
389         * doc/posix-functions/sigwait.texi: Likewise.
390         * doc/posix-functions/ttyname_r.texi: Likewise.
391         Reported by Simon Josefsson.
392
393 2010-04-25  Bruno Haible  <bruno@clisp.org>
394
395         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
396         * gnulib-tool (func_usage): Document that --with-*-tests options apply
397         also to --create-testdir.
398         (func_acceptable): Don't consider the status of *-tests modules here.
399         (func_modules_transitive_closure): Consider it here, before including a
400         test module.
401         (func_import, func_create_testdir): Set inc_all_direct_tests,
402         inc_all_indirect_tests.
403         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
404         --create-testdir and --create-megatestdir.
405
406 2010-04-25  Bruno Haible  <bruno@clisp.org>
407
408         gnulib-tool: Add --without-*-tests options.
409         * gnulib-tool (func_usage): Document the --without-*-tests options.
410         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
411         excl_unportable_tests): New variables.
412         Fail if they are specified with --import or --update.
413         (func_acceptable): Respect the excl_*_tests variables.
414         (func_import): Set the excl_*_tests variables to empty.
415
416 2010-04-25  Simon Josefsson  <simon@josefsson.org>
417             Bruno Haible  <bruno@clisp.org>
418
419         Work around a MacOS X 10.4 bug with openpty.
420         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
421         * tests/test-openpty.c (main): Close the master side explicitly.
422
423 2010-04-25  Bruno Haible  <bruno@clisp.org>
424
425         strnlen: Fix a C++ test error on MacOS X and Solaris.
426         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
427         the function is not declared.
428         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
429         Simon Josefsson.
430
431 2010-04-24  Bruno Haible  <bruno@clisp.org>
432
433         Avoid a gcc warning.
434         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
435         of correct type for %08lx directive.
436         Reported by Eric Blake.
437
438 2010-04-24  Bruno Haible  <bruno@clisp.org>
439
440         vasnprintf: Correct errno value in case of out-of-memory.
441         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
442         or sprintf. Use the errno value from SNPRINTF or sprintf.
443         Reported by Ian Beckwith <ianb@erislabs.net>.
444
445 2010-04-24  Bruno Haible  <bruno@clisp.org>
446
447         ansi-c++-opt: Find correct compiler when cross-compiling.
448         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
449         AC_CHECK_PROGS.
450         Reported by Simon Josefsson.
451
452 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
453
454         vc-list-files: Add support for subversion
455         * build-aux/vc-list-files: Use "svn list" to generate the list of
456         files controlled by subversion.
457
458 2010-04-23  Jim Meyering  <meyering@redhat.com>
459
460         vc-list-files tests: convert to use init.sh
461         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
462         path_prepend_.
463         Use Exit, not exit.
464         Use skip_ rather than open coding it.
465         Remove trap set-up and compare definitions.
466         * tests/test-vc-list-files-git.sh: Likewise.
467         * modules/vc-list-files-tests (Files): Add tests/init.sh.
468
469 2010-04-22  Simon Josefsson  <simon@josefsson.org>
470
471         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
472         backup files.
473
474 2010-04-21  Simon Josefsson  <simon@josefsson.org>
475
476         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
477
478 2010-04-20  Eric Blake  <eblake@redhat.com>
479
480         tests: be robust to ignored SIGPIPE
481         * tests/test-select-in.sh: Consume all output.
482         * tests/test-lseek.sh: Check correct exit status, while avoiding
483         EPIPE.
484
485 2010-04-20  Simon Josefsson  <simon@josefsson.org>
486             Bruno Haible  <bruno@clisp.org>
487
488         visibility: Don't use -fvisibility if it leads to a warning.
489         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
490         yes, don't pretend that visibility works if it leads to a warning.
491         Reported by Mike Gran <spk121@yahoo.com>.
492
493 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
494
495         * build-aux/bootstrap: Use "git -h" for testing for supported options
496         instead of "git --help".  The short-form option only shows a summary,
497         and doesn't layout the full man page.  Grep for the full option name
498         in the summary, too.
499
500 2010-04-19  Bruno Haible  <bruno@clisp.org>
501
502         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
503         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
504         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
505         mention of RELOCATABLE_STRIP.
506         Reported by Sylvain Beucler <beuc@beuc.net>.
507
508 2010-04-19  Bruno Haible  <bruno@clisp.org>
509
510         * lib/diffseq.h: Fix typo in comment.
511         Reported by Eric Blake.
512
513 2010-04-19  Bruno Haible  <bruno@clisp.org>
514
515         ioctl: Move autoconf macro to a .m4 file.
516         * m4/ioctl.m4: New file, extracted from modules/ioctl.
517         * modules/ioctl (Files): Add it.
518         (configure.ac): Simply invoke gl_FUNC_IOCTL.
519         Reported by Ian Beckwith <ianb@erislabs.net>.
520
521 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
522             Bruno Haible  <bruno@clisp.org>
523
524         diffseq: Accommodate use-case with abstract arrays.
525         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
526         is not defined.
527         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
528         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
529
530 2010-04-18  Bruno Haible  <bruno@clisp.org>
531
532         * doc/posix-headers/stdbool.texi: More precise wording.
533
534 2010-04-17  Jim Meyering  <meyering@redhat.com>
535
536         maint.mk: use gnu-style indentation in an embedded perl script
537         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
538         Rename variable: s/two/last_two_bytes/
539
540 2010-04-16  Eric Blake  <eblake@redhat.com>
541
542         test-stdbool: skip test that fails with Solaris CC
543         * tests/test-stdbool.c (f): Skip test that causes compilation
544         error under buggy C++ compiler.
545         * lib/stdbool.in.h: Document the limitation.
546         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
547
548         setenv: allow compilation with C++
549         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
550         register keyword.
551
552         stdint: allow test to pass with C++
553         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
554
555         getopt: allow compilation with C++
556         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
557         struct.
558         * lib/getopt.c (_getopt_internal_r): Use correct type.
559         Reported by Dagobert Michelson, via Joel E. Denny.
560
561 2010-04-16  Bruno Haible  <bruno@clisp.org>
562
563         Override netdb.h always.
564         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
565         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
566         Reported by Ludovic Courtès <ludo@gnu.org>.
567
568 2010-04-15  Bruno Haible  <bruno@clisp.org>
569
570         openpty: Fix mistake from 2010-03-21.
571         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
572         Reported by Simon Josefsson.
573
574 2010-04-15  Eric Blake  <eblake@redhat.com>
575
576         test-forkpty: fix expected signature
577         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
578         Reported by Simon Josefsson.
579
580 2010-04-15  Jim Meyering  <meyering@redhat.com>
581
582         maint.mk: texinfo_suffix_re_: correct the default regexp
583         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
584
585         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
586         make it configurable via texinfo_suffix_re_.
587
588 2010-04-14  Eric Blake  <eblake@redhat.com>
589
590         strtok_r: relax license to LGPLv2+
591         * modules/strtok_r (License): Relax license.
592         Reported by Matthias Bolte.
593
594 2010-04-14  Simon Josefsson  <simon@josefsson.org>
595
596         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
597         version 1.4.4 by default instead of requiring the libgcrypt
598         version used during build.  This makes it possible to use the
599         application with older but still binary compatible libgcrypt
600         versions.
601
602 2010-04-13  Eric Blake  <eblake@redhat.com>
603
604         getopt-gnu: match recent glibc fixes and posix ruling
605         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
606         '+' handling, when requesting extensions.
607         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
608         'W;' handling.
609         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
610         * doc/posix-functions/getopt.texi (getopt): Document this.
611         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
612         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
613         Likewise.
614
615         getopt: merge bug fixes from glibc
616         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
617         diagnostics.  Honor '+:' correctly.  Reject ';'.
618
619         getopt-posix: detect MacOS bug
620         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
621         optind when missing a required argument.
622         * doc/posix-functions/getopt.texi (getopt): Document the bug.
623         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
624         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
625         Likewise.
626
627         getopt-posix: avoid spurious failure on Solaris
628         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
629         an indicator that setting optind=1 is sufficient for reset.
630
631         getopt-posix: avoid spurious failure on FreeBSD
632         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
633         in POSIX mode, since the m4 test uses it.
634
635         gnulib-tool: silence warning on BSD sh
636         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
637
638 2010-04-13  Jim Meyering  <meyering@redhat.com>
639
640         doc: users.txt: GNU patch now uses gnulib
641         * users.txt: Add patch.
642
643 2010-04-12  Jim Meyering  <meyering@redhat.com>
644
645         maint.mk: generate more concise timing data for syntax-check rules
646         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
647         " done" from each line that reports a syntax-check test duration.
648
649 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
650
651         git-version-gen: use "git update-index..." rather than "git status"
652         * build-aux/git-version-gen: Use git update-index --refresh, not
653         "git status".  With some versions of git, "git status" would fail
654         to update the index and result in an unwarranted "-dirty" suffix.
655
656 2010-04-11  Jim Meyering  <meyering@redhat.com>
657
658         openat: correct formatting (no semantic change)
659         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
660         Suggested by Bruno Haible.
661
662 2010-04-11  Bruno Haible  <bruno@clisp.org>
663
664         Stricter declaration checking in testdirs.
665         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
666         If for_tests is true, augment AM_CPPFLAGS to define
667         GNULIB_STRICT_CHECKING.
668         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
669         GNULIB_STRICT_CHECKING is defined, verify that the function is
670         declared.
671
672 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
673             Bruno Haible  <bruno@clisp.org>
674
675         libunistring: Improve configure output.
676         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
677         Don't say "consider installing GNU libunistring" when checking again
678         with libiconv.
679
680 2010-04-11  Bruno Haible  <bruno@clisp.org>
681
682         libunistring: Correct value of $LTLIBUNISTRING.
683         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
684         correct the value of $LTLIBUNISTRING.
685
686 2010-04-11  Bruno Haible  <bruno@clisp.org>
687
688         havelib: Add static libraries to LIBS in the right order.
689         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
690         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
691
692 2010-04-11  Bruno Haible  <bruno@clisp.org>
693
694         libunistring: Detect libunistring also when it depends on libiconv.
695         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
696         the second AC_LIB_HAVE_LINKFLAGS invocation.
697
698 2010-04-11  James Youngman  <jay@gnu.org>
699
700         close-stream: declare local scalars to be "const"
701         * lib/close-stream.c (close_stream): Make boolean variables const
702         to document the fact that we set but do not change them.
703
704 2010-04-11  Bruno Haible  <bruno@clisp.org>
705
706         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
707
708 2010-04-11  Jim Meyering  <meyering@redhat.com>
709
710         maint.mk: don't include dist-check.mk
711         * top/maint.mk: Remove bogus include directive.
712
713         maint.mk: improve empty-line-at-EOF check
714         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
715         solution, rather than tail+Perl-based one.  The latter would read
716         a few kilobytes from the end of each file, and did not handle empty
717         files properly.
718
719         maint.mk: print the elapsed time for each syntax-check rule
720         * top/maint.mk (sc_m_rules_): Save start time in a file.
721         (sc_z_rules_): New rules: remove temp file and print elapsed time.
722         (local-check): Interpose the .z rules
723
724 2010-04-11  Jim Meyering  <meyering@redhat.com>
725
726         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
727         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
728         empty file with one that ends in an empty line.
729
730 2010-04-10  Bruno Haible  <bruno@clisp.org>
731
732         mkdir: Make it work on mingw64.
733         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
734         * lib/mkdir.c: Update comment.
735         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
736
737 2010-04-10  Bruno Haible  <bruno@clisp.org>
738
739         Don't override improved macro from newer autoconf.
740         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
741         autoconf >= 2.62.
742         Reported by Joel E. Denny <jdenny@clemson.edu>.
743
744 2010-04-10  Jim Meyering  <meyering@redhat.com>
745
746         maint.mk: new syntax-check rule: prohibit empty lines at end of file
747         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
748
749         maint.mk: correct a diagnostic
750         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
751         in diagnostic; now use $prohibit.
752
753 2010-04-10  Bruno Haible  <address@hidden>
754
755         fchownat: Fix a C++ test error on Solaris 8.
756         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
757         the function does not exist.
758
759 2010-04-10  Bruno Haible  <bruno@clisp.org>
760
761         vasnprintf: Add more tests.
762         * tests/test-vasnprintf-posix.c: Include <errno.h>.
763         (test_function): Test converting an invalid wide string.
764
765         vasnprintf: Correct handling of unconvertible wide string arguments.
766         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
767         VASNPRINTF.
768         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
769         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
770         smaller than the expected maximum need for the directive. Set errno to
771         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
772         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
773         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
774         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
775         * modules/vasnprintf (Files): Add m4/printf.m4.
776         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
777
778 2010-04-10  Bruno Haible  <bruno@clisp.org>
779
780         vasnprintf: Fix crash in %ls directive.
781         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
782         string is passed as argument to %ls, with no precision and no width.
783         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
784
785 2010-04-10  Bruno Haible  <bruno@clisp.org>
786
787         vasnprintf: Fix multiple test failures on mingw.
788         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
789         _snprintf, or snwprintf, not _snwprintf.
790
791 2010-04-10  Bruno Haible  <bruno@clisp.org>
792
793         write: Fix a C++ test error on mingw.
794         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
795
796 2010-04-10  Bruno Haible  <bruno@clisp.org>
797
798         vasnprintf test: Reduce code duplication.
799         * tests/test-vasnprintf.c (test_function): New function, extracted from
800         test_vasnprintf.
801         (test_vasnprintf, test_asnprintf): Invoke it.
802
803 2010-04-10  Bruno Haible  <bruno@clisp.org>
804
805         strnlen: Fix warning in C++ mode on MacOS X.
806         * lib/string.in.h (strnlen): Use the modern idiom.
807         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
808         defining strnlen as a macro already in <config.h>.
809         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
810         REPLACE_STRNLEN.
811         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
812         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
813
814 2010-04-08  James Youngman  <jay@gnu.org>
815
816         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
817         the example.
818
819 2010-04-09  Jim Meyering  <meyering@redhat.com>
820
821         maint.mk: print better diagnostic when there is no $(_hv_file)
822         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
823         announce that when $(_hv_file) (aka help-version) does not exist.
824
825         init.sh: run tr in the "C" locale to avoid multibyte interpretation
826         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
827         not try to interpret its random input bytes.  Jarno Rajahalme reported
828         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
829         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
830         (mktempd_): Likewise, just in case.
831
832         ftruncate: add two years to projected module removal date: 2012
833         * m4/ftruncate.m4: Adjust comments.
834
835         ftruncate: mark module as obsolete; even MinGW provides it, now
836         * modules/ftruncate (Status): Obsolete.
837         (Notice): Say that.
838         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
839         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
840
841 2010-04-08  Bruno Haible  <bruno@clisp.org>
842
843         Fix side effects from tests-related modules.
844         * modules/dprintf-posix (Comment): New section.
845         * modules/fprintf-posix (Comment): Likewise.
846         * modules/obstack-printf-posix (Comment): Likewise.
847         * modules/printf-posix (Comment): Likewise.
848         * modules/snprintf-posix (Comment): Likewise.
849         * modules/sprintf-posix (Comment): Likewise.
850         * modules/vasnprintf-posix (Comment): Likewise.
851         * modules/vasprintf-posix (Comment): Likewise.
852         * modules/vdprintf-posix (Comment): Likewise.
853         * modules/vfprintf-posix (Comment): Likewise.
854         * modules/vprintf-posix (Comment): Likewise.
855         * modules/vsnprintf-posix (Comment): Likewise.
856         * modules/vsprintf-posix (Comment): Likewise.
857         * modules/xprintf-posix (Comment): Likewise.
858         * modules/xvasprintf-posix (Comment): Likewise.
859         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
860         * modules/floorf-tests (Depends-on): Likewise.
861         * modules/round-tests (Depends-on): Likewise.
862         * modules/roundf-tests (Depends-on): Likewise.
863         * modules/trunc-tests (Depends-on): Likewise.
864         * modules/truncf-tests (Depends-on): Likewise.
865         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
866         'fprintf-posix' module is not present.
867         * tests/test-floorf2.c (check): Likewise.
868         * tests/test-trunc2.c (check): Likewise.
869         * tests/test-truncf2.c (check): Likewise.
870         * tests/test-round2.c (equal): Likewise.
871         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
872
873 2010-04-07  Karl Berry  <karl@gnu.org>
874
875         * config/srclist.txt,
876         * config/srclistvars.sh,
877         * config/srclist-update: doc fixes.
878
879 2010-04-07  Jim Meyering  <meyering@redhat.com>
880
881         maint.mk: add a PATH crosschecking syntax-check rule
882         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
883         Useful if you use a test like the one in help-version (coreutils,
884         diffutils, grep, gzip) that ensures $(VERSION) matches what is
885         printed by prog --version.
886
887 2010-04-06  Bruno Haible  <bruno@clisp.org>
888
889         Fix link error on mingw.
890         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
891         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
892
893 2010-04-06  Bruno Haible  <bruno@clisp.org>
894
895         Assume rmdir exists.
896         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
897
898 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
899
900         doc: update users.txt
901         * users.txt: Add gcal.
902
903 2010-04-06  Jim Meyering  <meyering@redhat.com>
904
905         init.sh: simply unset TMPDIR rather than risking env -i
906         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
907         although it probably works fine on all Unix-based systems, some
908         systems (Cygwin?) cannot tolerate a totally cleared environment.
909         Suggestion from Eric Blake.
910
911 2010-04-06  Jim Meyering  <meyering@redhat.com>
912
913         init.sh: portability fix: use env's POSIX-specified -i option not -u
914         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
915         than unportable env -u.  Solaris 5.11's env lacks support for -u.
916
917 2010-04-05  Bruno Haible  <bruno@clisp.org>
918
919         btowc: Work around Cygwin 1.7.2 bug.
920         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
921         does not map NUL to 0.
922         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
923
924 2010-04-05  Bruno Haible  <bruno@clisp.org>
925
926         Make the multithread modules work on Cygwin 1.7.2.
927         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
928         imported symbols can be declared weak, so that it returns "no" on
929         Cygwin 1.7.2.
930
931 2010-04-05  Bruno Haible  <bruno@clisp.org>
932
933         Use the module 'strncat'.
934         * modules/unistr/u8-strncat (Depends-on): Add strncat.
935
936         Tests for module 'strncat'.
937         * modules/strncat-tests: New file.
938         * tests/test-strncat.c: New file.
939
940         New module 'strncat'.
941         * lib/string.in.h (strncat): New declaration.
942         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
943         * m4/strncat.m4: New file, based on m4/memchr.m4.
944         * modules/strncat: New file.
945         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
946         is declared.
947         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
948         REPLACE_STRNCAT.
949         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
950         REPLACE_STRNCAT.
951         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
952         module.
953         * tests/test-string-c++.cc: Check signature of strncat.
954
955 2010-04-05  Jim Meyering  <meyering@redhat.com>
956
957         xstrtoumax-tests: convert to use init.sh
958         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
959         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
960         Use Exit, not exit.
961         Remove uses of $EXEEXT and "./" to run a program in the current dir.
962
963         xstrtoimax-tests: convert to use init.sh
964         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
965         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
966         Use Exit, not exit.
967         Remove uses of $EXEEXT and "./" to run a program in the current dir.
968
969 2010-04-05  Bruno Haible  <bruno@clisp.org>
970
971         sys_socket: Avoid #define replacements in C++ mode.
972         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
973         warning to the function if possible, rather than #defining the symbol
974         to a dysfunctional alias.
975
976 2010-04-05  Bruno Haible  <bruno@clisp.org>
977
978         fseeko: Fix C++ test error on mingw.
979         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
980         gl_FUNC_FSEEKO.
981         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
982         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
983         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
984         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
985
986 2010-04-05  Bruno Haible  <bruno@clisp.org>
987
988         duplocale: Improve test output.
989         * tests/test-duplocale.c (main): Print reason for skipped test.
990
991 2010-04-05  Bruno Haible  <bruno@clisp.org>
992
993         Assume rmdir exists.
994         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
995         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
996
997 2010-04-05  Bruno Haible  <bruno@clisp.org>
998
999         Fix link error on Solaris 8 with cc.
1000         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
1001
1002 2010-04-05  Bruno Haible  <bruno@clisp.org>
1003
1004         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
1005         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
1006
1007 2010-04-05  Bruno Haible  <bruno@clisp.org>
1008
1009         vasprintf: Update documentation.
1010         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
1011
1012 2010-04-05  Bruno Haible  <bruno@clisp.org>
1013
1014         ptsname: Improve test.
1015         * tests/test-ptsname.c (main): Also try the various master names of BSD
1016         systems.
1017
1018 2010-04-05  Bruno Haible  <bruno@clisp.org>
1019
1020         memchr: Avoid a possible C++ test error.
1021         * lib/string.in.h (memchr): Provide declaration if function is missing.
1022         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
1023         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
1024         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
1025         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
1026
1027 2010-04-05  Bruno Haible  <bruno@clisp.org>
1028
1029         strtok_r: Improve idiom.
1030         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
1031         AC_LIBOBJ is used.
1032
1033 2010-04-05  Bruno Haible  <bruno@clisp.org>
1034
1035         strdup: Improve idiom.
1036         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
1037         AC_LIBOBJ is used.
1038         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
1039         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
1040         when AC_LIBOBJ is used.
1041
1042 2010-04-05  Bruno Haible  <bruno@clisp.org>
1043
1044         mbsinit, mbrtowc, wcrtomb: Improve idioms.
1045         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
1046         don't set REPLACE_MBSINIT to 1.
1047         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
1048         don't set REPLACE_MBRTOWC to 1.
1049         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
1050         exist, don't set REPLACE_MBSRTOWCS to 1.
1051         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
1052         exist, don't set REPLACE_MBSNRTOWCS to 1.
1053         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
1054         don't set REPLACE_WCRTOMB to 1.
1055         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
1056         exist, don't set REPLACE_WCSRTOMBS to 1.
1057         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
1058         exist, don't set REPLACE_WCSNRTOMBS to 1.
1059
1060 2010-04-05  Bruno Haible  <bruno@clisp.org>
1061
1062         ldexpl: Improve idiom.
1063         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
1064         make sure to set HAVE_DECL_LDEXPL to 0.
1065
1066 2010-04-05  Jim Meyering  <meyering@redhat.com>
1067
1068         xstrtol-tests: convert to use init.sh
1069         * modules/xstrtol-tests (Files): Add tests/init.sh.
1070         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
1071         Use Exit, not exit.
1072         Remove uses of $EXEEXT and "./" to run a program in the current dir.
1073
1074         atexit-tests: convert to use init.sh
1075         * modules/atexit-tests (Files): Add tests/init.sh.
1076         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
1077         Use Exit, not exit.
1078         Remove uses of $EXEEXT and "./" to run a program in the current dir.
1079
1080         init.sh: fix typo
1081         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
1082
1083         init.sh: make it easier for a test script to write to the tty, ...
1084         when using automake's parallel-tests mode.
1085         * tests/init.sh (stderr_fileno_): Define overridable variable.
1086         (warn_): New function, to use it.
1087         (fail_, skip_, framework_failure_): Use warn_.
1088
1089 2010-04-04  Bruno Haible  <bruno@clisp.org>
1090
1091         btowc: Avoid warning.
1092         * lib/btowc.c: Include <stdlib.h>.
1093         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
1094
1095 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
1096             Bruno Haible  <bruno@clisp.org>
1097
1098         wchar: Port to NetBSD 1.5.
1099         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
1100         * lib/wctype.in.h (WEOF): Likewise.
1101
1102 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
1103             Bruno Haible  <bruno@clisp.org>
1104
1105         Port extended stdio to NetBSD 1.5.
1106         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
1107         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
1108         older.
1109
1110 2010-04-04  Bruno Haible  <bruno@clisp.org>
1111
1112         string: Remove unused substitution.
1113         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
1114         HAVE_DECL_STRERROR.
1115         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
1116
1117 2010-04-04  Bruno Haible  <bruno@clisp.org>
1118
1119         strtod: Avoid a possible C++ test error.
1120         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
1121         set REPLACE_STRTOD.
1122
1123 2010-04-04  Bruno Haible  <bruno@clisp.org>
1124
1125         strerror: Update documentation.
1126         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
1127
1128 2010-04-04  Bruno Haible  <bruno@clisp.org>
1129
1130         stdio: Fix some C++ test errors on Solaris 8 with GCC.
1131         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
1132         _GL_CXXALIAS_SYS_CAST.
1133
1134 2010-04-04  Bruno Haible  <bruno@clisp.org>
1135
1136         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
1137         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
1138         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
1139         REPLACE_FREXPL to 1.
1140         * doc/posix-functions/frexpl.texi: Update documentation.
1141
1142 2010-04-04  Bruno Haible  <bruno@clisp.org>
1143
1144         math: Fix some C++ test errors on Solaris 8 and Cygwin.
1145         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
1146
1147 2010-04-04  Bruno Haible  <bruno@clisp.org>
1148
1149         Implement nanosleep for native Windows.
1150         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
1151
1152 2010-04-04  Bruno Haible  <bruno@clisp.org>
1153
1154         math: Fix some C++ test errors on Solaris 8.
1155         * lib/math.in.h (truncf, trunc): Use simpler idiom.
1156
1157 2010-04-04  Bruno Haible  <bruno@clisp.org>
1158
1159         math: Fix some C++ test errors on Cygwin.
1160         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
1161         truncl): Provide declaration if the system does not have it.
1162         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
1163         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
1164         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
1165         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
1166         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
1167         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
1168         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
1169         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
1170         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
1171         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
1172         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
1173         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
1174         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
1175         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
1176         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
1177         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
1178         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
1179         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
1180         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
1181         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
1182         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
1183         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
1184
1185 2010-04-04  Bruno Haible  <bruno@clisp.org>
1186
1187         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
1188         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
1189         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
1190         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
1191         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
1192         * m4/isinf.m4 (gl_ISINF): Likewise.
1193         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
1194
1195 2010-04-04  Bruno Haible  <bruno@clisp.org>
1196
1197         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
1198         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
1199
1200 2010-04-04  Bruno Haible  <bruno@clisp.org>
1201
1202         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
1203         * modules/tmpfile (configure.ac): Update.
1204
1205         tmpfile: Fix C++ test error on mingw.
1206         * lib/stdio.in.h (tmpfile): New declaration.
1207         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
1208         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
1209         * modules/tmpfile (Depends-on): Add stdio.
1210         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
1211         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
1212         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
1213         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
1214         REPLACE_TMPFILE.
1215         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
1216
1217 2010-04-04  Bruno Haible  <bruno@clisp.org>
1218
1219         ioctl: Fix C++ test error on mingw.
1220         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
1221         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
1222         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
1223
1224 2010-04-03  Bruno Haible  <bruno@clisp.org>
1225
1226         wcwidth: Fix C++ test error on mingw.
1227         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
1228         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
1229         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
1230
1231 2010-04-03  Bruno Haible  <bruno@clisp.org>
1232
1233         nanosleep: Fix C++ test error on mingw.
1234         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
1235         * lib/time.in.h (nanosleep): Use modern idiom.
1236         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
1237         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
1238         REPLACE_NANOSLEEP to 1.
1239         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
1240         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
1241
1242 2010-04-03  Bruno Haible  <bruno@clisp.org>
1243
1244         strptime: Fix C++ test error on mingw.
1245         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
1246         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
1247         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
1248         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
1249         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
1250         not REPLACE_STRPTIME.
1251         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
1252         REPLACE_STRPTIME.
1253
1254 2010-04-03  Bruno Haible  <bruno@clisp.org>
1255
1256         timegm: Fix C++ test error on mingw.
1257         * lib/time.in.h (timegm): Use modern idiom.
1258         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
1259         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
1260         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
1261         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
1262
1263 2010-04-03  Bruno Haible  <bruno@clisp.org>
1264
1265         timegm: Assume declaration if function exists.
1266         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
1267         if it exists. Don't clobber ac_cv_func_timegm.
1268
1269 2010-04-03  Bruno Haible  <bruno@clisp.org>
1270
1271         time_r: Fix C++ test error on mingw.
1272         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
1273         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
1274         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
1275         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
1276         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
1277
1278 2010-04-03  Bruno Haible  <bruno@clisp.org>
1279
1280         time_r: Minor updates.
1281         * modules/time_r (Description): Mention the provided functions.
1282         * lib/time_r.c: Don't include <string.h>.
1283         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
1284         * doc/posix-functions/localtime_r.texi: Likewise.
1285
1286 2010-04-03  Bruno Haible  <bruno@clisp.org>
1287
1288         time: Fix regression introduced on 2010-03-08.
1289         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
1290         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
1291
1292 2010-04-03  Jim Meyering  <meyering@redhat.com>
1293
1294         maint.mk: don't silently disable project-specific syntax-check rules
1295         * top/maint.mk (_prohibit_regexp): Define, to help people realize
1296         that they need to convert their project-specific syntax-check rules
1297         to use the new _sc_search_regexp.
1298
1299 2010-04-03  Bruno Haible  <bruno@clisp.org>
1300
1301         fchdir: Fix regression introduced on 2010-03-08.
1302         * lib/unistd.in.h (fchdir): Fix declaration.
1303         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
1304         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
1305         REPLACE_FCHDIR.
1306         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
1307         REPLACE_FCHDIR.
1308
1309 2010-04-03  Bruno Haible  <bruno@clisp.org>
1310
1311         getpagesize: Fix C++ test error on mingw.
1312         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
1313         system does not declare the function.
1314         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
1315         declared.
1316         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1317         HAVE_DECL_GETPAGESIZE.
1318         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
1319
1320 2010-04-03  Bruno Haible  <bruno@clisp.org>
1321
1322         stdio: Make C++ tests work on mingw.
1323         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
1324         does not declare the function.
1325
1326 2010-04-03  Bruno Haible  <bruno@clisp.org>
1327
1328         ftello: Fix C++ test error on mingw.
1329         * lib/stdio.in.h (ftello): Use modern idiom.
1330         * lib/ftello.c (ftello): Renamed from rpl_ftello.
1331         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
1332         is missing and that it needs to be replaced.
1333         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
1334         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
1335         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
1336
1337 2010-04-03  Bruno Haible  <bruno@clisp.org>
1338
1339         fseeko: Fix C++ test error on mingw.
1340         * lib/stdio.in.h (fseeko): Use modern idiom.
1341         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
1342         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
1343         is missing and that it needs to be replaced.
1344         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
1345         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
1346         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
1347
1348 2010-04-03  Bruno Haible  <bruno@clisp.org>
1349
1350         mkstemp: Fix C++ test error on mingw.
1351         * lib/stdlib.in.h (mkstemp): Use modern idiom.
1352         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
1353         function is missing and that it needs to be replaced.
1354         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
1355         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
1356
1357 2010-04-03  Bruno Haible  <bruno@clisp.org>
1358
1359         stpncpy: Fix C++ test error on mingw.
1360         * lib/string.in.h (stpncpy): Use modern idiom.
1361         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
1362         function is missing and that it needs to be replaced.
1363         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
1364         REPLACE_STPNCPY.
1365         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
1366
1367 2010-04-03  Bruno Haible  <bruno@clisp.org>
1368
1369         sys_stat: Fix C++ test error on mingw.
1370         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
1371         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
1372
1373 2010-04-03  Bruno Haible  <bruno@clisp.org>
1374
1375         pty: Update doc.
1376         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
1377
1378 2010-04-03  Bruno Haible  <bruno@clisp.org>
1379
1380         unistd: Fix C++ test error on mingw.
1381         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
1382
1383 2010-04-03  Bruno Haible  <bruno@clisp.org>
1384
1385         Update doc regarding mingw.
1386         * doc/glibc-functions/openpty.texi: Update regarding mingw.
1387         * doc/glibc-functions/login_tty.texi: Likewise.
1388         * doc/glibc-functions/forkpty.texi: Likewise.
1389
1390 2010-04-03  Bruno Haible  <bruno@clisp.org>
1391
1392         stdlib: Avoid compilation failure of c-strtold on mingw.
1393         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
1394
1395 2010-04-03  Bruno Haible  <bruno@clisp.org>
1396
1397         locale: Make C++ tests work on Cygwin and mingw.
1398         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
1399         cannot provide the function.
1400         Reported by Simon Josefsson.
1401
1402 2010-04-03  Bruno Haible  <bruno@clisp.org>
1403
1404         localename: Port to MacOS X 10.6.
1405         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
1406         memory layout of the locales in MacOS X 10.6 as well.
1407         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
1408
1409 2010-04-02  Bruno Haible  <bruno@clisp.org>
1410
1411         gnulib-tool: Ensure that long-running tests are executed last.
1412         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
1413         running tests after the one for the other tests.
1414
1415 2010-04-02  Bruno Haible  <bruno@clisp.org>
1416
1417         gnulib-tool: Ensure the tests in the main directory are executed first.
1418         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
1419         start with the current directory.
1420
1421 2010-04-02  Bruno Haible  <bruno@clisp.org>
1422
1423         Tests for module 'havelib', moved here from GNU gettext.
1424         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
1425         modifications.
1426         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
1427         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
1428         with modifications.
1429         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
1430         modifications.
1431         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
1432         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
1433         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
1434         with modifications.
1435         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
1436         with modifications.
1437         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
1438         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
1439         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
1440         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
1441         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
1442         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
1443         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
1444         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
1445         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
1446         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
1447         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
1448         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
1449         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
1450         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
1451         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
1452         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
1453         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
1454         with modifications.
1455         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
1456         with modifications.
1457         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
1458         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
1459         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
1460         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
1461         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
1462         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
1463         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
1464         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
1465         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
1466         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
1467         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
1468         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
1469         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
1470         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
1471         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
1472         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
1473         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
1474         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
1475         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
1476         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
1477         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
1478         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
1479         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
1480         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
1481         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
1482         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
1483         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
1484         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
1485         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
1486         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
1487         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
1488         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
1489         * tests/havelib/rpathx/rpathx.c: New file, from
1490         gettext/autoconf-lib-link.
1491         * tests/havelib/rpathx/Makefile.am: New file, from
1492         gettext/autoconf-lib-link.
1493         * tests/havelib/rpathx/configure.ac: New file, from
1494         gettext/autoconf-lib-link with modifications.
1495         * tests/havelib/rpathy/rpathy.c: New file, from
1496         gettext/autoconf-lib-link.
1497         * tests/havelib/rpathy/Makefile.am: New file, from
1498         gettext/autoconf-lib-link.
1499         * tests/havelib/rpathy/configure.ac: New file, from
1500         gettext/autoconf-lib-link with modifications.
1501         * tests/havelib/rpathz/rpathz.c: New file, from
1502         gettext/autoconf-lib-link.
1503         * tests/havelib/rpathz/Makefile.am: New file, from
1504         gettext/autoconf-lib-link.
1505         * tests/havelib/rpathz/configure.ac: New file, from
1506         gettext/autoconf-lib-link with modifications.
1507         * tests/havelib/rpathlx/usex.c: New file, from
1508         gettext/autoconf-lib-link.
1509         * tests/havelib/rpathlx/Makefile.am: New file, from
1510         gettext/autoconf-lib-link.
1511         * tests/havelib/rpathlx/configure.ac: New file, from
1512         gettext/autoconf-lib-link with modifications.
1513         * tests/havelib/rpathly/usey.c: New file, from
1514         gettext/autoconf-lib-link.
1515         * tests/havelib/rpathly/Makefile.am: New file, from
1516         gettext/autoconf-lib-link.
1517         * tests/havelib/rpathly/configure.ac: New file, from
1518         gettext/autoconf-lib-link with modifications.
1519         * tests/havelib/rpathlz/usez.c: New file, from
1520         gettext/autoconf-lib-link.
1521         * tests/havelib/rpathlz/Makefile.am: New file, from
1522         gettext/autoconf-lib-link.
1523         * tests/havelib/rpathlz/configure.ac: New file, from
1524         gettext/autoconf-lib-link with modifications.
1525         * tests/havelib/rpathlyx/usey.c: New file, from
1526         gettext/autoconf-lib-link.
1527         * tests/havelib/rpathlyx/Makefile.am: New file, from
1528         gettext/autoconf-lib-link.
1529         * tests/havelib/rpathlyx/configure.ac: New file, from
1530         gettext/autoconf-lib-link with modifications.
1531         * tests/havelib/rpathlzyx/usez.c: New file, from
1532         gettext/autoconf-lib-link.
1533         * tests/havelib/rpathlzyx/Makefile.am: New file, from
1534         gettext/autoconf-lib-link.
1535         * tests/havelib/rpathlzyx/configure.ac: New file, from
1536         gettext/autoconf-lib-link with modifications.
1537         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
1538         with modifications.
1539
1540 2010-04-02  Bruno Haible  <bruno@clisp.org>
1541
1542         gnulib-tool: Create distributed built sources also for the tests.
1543         * gnulib-tool (func_create_testdir): Also generate distributed built
1544         sources in the tests directory.
1545
1546 2010-04-02  Bruno Haible  <bruno@clisp.org>
1547
1548         gnulib-tool: Obey user's environment variables.
1549         * gnulib-tool (func_create_testdir): When creating built sources,
1550         respect the environment variables for autoconf, automake, etc. given by
1551         the user.
1552
1553 2010-04-02  Bruno Haible  <bruno@clisp.org>
1554
1555         gnulib-tool: Provide the value of --m4-base to modules.
1556         * gnulib-tool (func_import, func_create_testdir): Emit a definition
1557         of gl_m4_base.
1558
1559 2010-04-02  Eric Blake  <eblake@redhat.com>
1560
1561         maint.mk: fix some fallout
1562         * NEWS: Document the incompatible change, and its effect on cfg.mk.
1563         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
1564
1565 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
1566
1567         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
1568         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
1569         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
1570         (sc_cast_of_x_alloc_return_value): Likewise.
1571         (sc_cast_of_alloca_return_value): Likewise.
1572         (sc_space_tab): Likewise.
1573         (sc_prohibit_atoi_atof): Likewise.
1574         (sc_prohibit_magic_number_exit): Likewise.
1575         (sc_error_exit_success): Likewise.
1576         (sc_file_system): Likewise.
1577         (sc_prohibit_have_config_h): Likewise.
1578         (sc_require_config_h): Likewise.
1579         (sc_prohibit_HAVE_MBRTOWC): Likewise.
1580         (sc_obsolete_symbols): Likewise.
1581         (sc_changelog): Likewise.
1582         (sc_program_name): Likewise.
1583         (sc_the_the): Likewise.
1584         (sc_trailing_blank): Likewise.
1585         (sc_two_space_separator_in_usage): Likewise.
1586         (sc_useless_cpp_parens): Likewise.
1587         (sc_GPL_version): Likewise.
1588         (sc_GFDL_version): Likewise.
1589         (sc_texinfo_acronym): Likewise.
1590         (sc_prohibit_cvs_keyword): Likewise.
1591         (sc_prohibit_stat_st_blocks): Likewise.
1592         (sc_prohibit_S_IS_definition): Likewise.
1593         (sc_redundant_const): Likewise.
1594         (sc_makefile_TAB_only_indentation): Likewise.
1595         (sc_m4_quote_check): Likewise.
1596         (sc_makefile_path_separator_check): Likewise.
1597         (sc_copyright_check): Likewise.
1598         (sc_Wundef_boolean): Likewise.
1599         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
1600
1601         maint.mk: match 0 or more whitespace-before-function-call '('
1602         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
1603         that have zero or two-and-more spaces between the function name
1604         and the open parenthesis.
1605         (sc_error_message_warn_fatal): Likewise.
1606         (sc_error_message_uppercase): Likewise.
1607         (sc_error_message_period): Likewise.
1608
1609 2010-03-31  Eric Blake  <eblake@redhat.com>
1610
1611         maint.mk: check for [ as well as test
1612         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
1613         Based on a libvirt report by Matthias Bolte.
1614
1615         gnumakefile: don't squelch _version output
1616         * top/GNUmakefile (_version): Create one-shot dependency rather
1617         than using $(shell) when version must be regenerated.
1618         (_autoreconf): Run verbosely, by default.
1619
1620         sys_time: avoid compiler warnings
1621         * lib/sys_time.in.h (includes): Ensure gcc pragma is
1622         unconditional, fixing regression from 2010-03-29.
1623         Reported by Simon Josefsson.
1624
1625 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
1626
1627         maint.mk: s/_header_without_use/_sc_header_without_use/
1628         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
1629         (sc_prohibit_assert_without_use): Use the new name.
1630         (sc_prohibit_close_stream_without_use): Likewise.
1631         (sc_prohibit_getopt_without_use): Likewise.
1632         (sc_prohibit_quotearg_without_use): Likewise.
1633         (sc_prohibit_quote_without_use): Likewise.
1634         (sc_prohibit_long_options_without_use): Likewise.
1635         (sc_prohibit_inttostr_without_use): Likewise.
1636         (sc_prohibit_ignore_value_without_use): Likewise.
1637         (sc_prohibit_error_without_use): Likewise.
1638         (sc_prohibit_xalloc_without_use): Likewise.
1639         (sc_prohibit_hash_without_use): Likewise.
1640         (sc_prohibit_hash_pjw_without_use): Likewise.
1641         (sc_prohibit_safe_read_without_use): Likewise.
1642         (sc_prohibit_argmatch_without_use): Likewise.
1643         (sc_prohibit_canonicalize_without_use): Likewise.
1644         (sc_prohibit_root_dev_ino_without_use): Likewise.
1645         (sc_prohibit_openat_without_use): Likewise.
1646         (sc_prohibit_c_ctype_without_use): Likewise.
1647         (sc_prohibit_signal_without_use): Likewise.
1648         (sc_prohibit_intprops_without_use): Likewise.
1649
1650 2010-03-30  Eric Blake  <eblake@redhat.com>
1651
1652         maint: improve module indicators
1653         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
1654         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
1655         columns, and avoid extra macro expansion.
1656
1657         fdopendir: work around FreeBSD bug
1658         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
1659         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
1660         * modules/dirent (Makefile.am): Substitute it.
1661         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
1662         declaration.
1663         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
1664         fix.
1665         Reported by Christian Weisgerber <naddy@mips.inka.de>.
1666
1667 2010-03-29  Bruno Haible  <bruno@clisp.org>
1668
1669         Emit #pragma system_header after the inclusion guard, not before.
1670         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
1671         guard that spans the entire file, not before. This enables an
1672         optimization in GCC's preprocessor.
1673         * lib/ctype.in.h: Likewise.
1674         * lib/dirent.in.h: Likewise.
1675         * lib/errno.in.h: Likewise.
1676         * lib/float.in.h: Likewise.
1677         * lib/getopt.in.h: Likewise.
1678         * lib/iconv.in.h: Likewise.
1679         * lib/langinfo.in.h: Likewise.
1680         * lib/locale.in.h: Likewise.
1681         * lib/math.in.h: Likewise.
1682         * lib/netdb.in.h: Likewise.
1683         * lib/netinet_in.in.h: Likewise.
1684         * lib/pty.in.h: Likewise.
1685         * lib/sched.in.h: Likewise.
1686         * lib/se-selinux.in.h: Likewise.
1687         * lib/search.in.h: Likewise.
1688         * lib/spawn.in.h: Likewise.
1689         * lib/stdarg.in.h: Likewise.
1690         * lib/stdint.in.h: Likewise.
1691         * lib/string.in.h: Likewise.
1692         * lib/strings.in.h: Likewise.
1693         * lib/sys_file.in.h: Likewise.
1694         * lib/sys_ioctl.in.h: Likewise.
1695         * lib/sys_time.in.h: Likewise.
1696         * lib/sys_times.in.h: Likewise.
1697         * lib/sys_utsname.in.h: Likewise.
1698         * lib/sys_wait.in.h: Likewise.
1699         * lib/sysexits.in.h: Likewise.
1700         * lib/wctype.in.h: Likewise.
1701
1702 2010-03-28  James Youngman  <jay@gnu.org>
1703
1704         save-cwd: don't leak a file descriptor when the caller execs.
1705         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
1706         saved file descriptor.
1707         * modules/save-cwd (Depends-on): Depend on cloexec.
1708
1709 2010-03-29  Bruno Haible  <bruno@clisp.org>
1710
1711         Remove vestiges of fts-lgpl module.
1712         * lib/fts_.h: Assume GNULIB_FTS is 1.
1713         * lib/fts.c: Likewise.
1714         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
1715
1716 2010-03-28  Bruno Haible  <bruno@clisp.org>
1717
1718         Fix definition of tests witness macro.
1719         * gnulib-tool (func_import): Fix definition of witness macro.
1720
1721 2010-03-28  Bruno Haible  <bruno@clisp.org>
1722
1723         Fix ioctl's protoype on glibc systems.
1724         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
1725         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
1726         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
1727         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
1728         signature. If not, arrange to replace the ioctl function.
1729         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
1730         REPLACE_IOCTL.
1731         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
1732         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
1733         Reported by Ludovic Courtès <ludo@gnu.org>.
1734
1735 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
1736
1737         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
1738         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
1739         made it so grep -r --include=GLOB* ... did not work.
1740
1741 2010-03-26  Jim Meyering  <meyering@redhat.com>
1742             Eric Blake  <eblake@redhat.com>
1743
1744         maint.mk: prohibit use of test's -o and -a operators
1745         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
1746
1747 2010-03-28  Bruno Haible  <bruno@clisp.org>
1748
1749         Remove unused GNULIB_XYZ macro definitions.
1750         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
1751         invocation.
1752
1753 2010-03-28  Bruno Haible  <bruno@clisp.org>
1754
1755         Mark privileged tests modules.
1756         * modules/idpriv-drop-tests (Status): New section.
1757         * modules/idpriv-droptemp-tests (Status): New section.
1758
1759 2010-03-28  Bruno Haible  <bruno@clisp.org>
1760
1761         Split C++ tests into separate tests modules.
1762         * modules/dirent-c++-tests: New file, extracted from
1763         modules/dirent-tests.
1764         * modules/dirent-tests: Depend on it.
1765         * modules/fcntl-h-c++-tests: New file, extracted from
1766         modules/fcntl-h-tests.
1767         * modules/fcntl-h-tests: Depend on it.
1768         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
1769         * modules/glob-tests: Depend on it.
1770         * modules/iconv-h-c++-tests: New file, extracted from
1771         modules/iconv-h-tests.
1772         * modules/iconv-h-tests: Depend on it.
1773         * modules/langinfo-c++-tests: New file, extracted from
1774         modules/langinfo-tests.
1775         * modules/langinfo-tests: Depend on it.
1776         * modules/locale-c++-tests: New file, extracted from
1777         modules/locale-tests.
1778         * modules/locale-tests: Depend on it.
1779         * modules/math-c++-tests: New file, extracted from modules/math-tests.
1780         * modules/math-tests: Depend on it.
1781         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
1782         * modules/pty-tests: Depend on it.
1783         * modules/search-c++-tests: New file, extracted from
1784         modules/search-tests.
1785         * modules/search-tests: Depend on it.
1786         * modules/signal-c++-tests: New file, extracted from
1787         modules/signal-tests.
1788         * modules/signal-tests: Depend on it.
1789         * modules/spawn-c++-tests: New file, extracted from
1790         modules/spawn-tests.
1791         * modules/spawn-tests: Depend on it.
1792         * modules/stdio-c++-tests: New file, extracted from
1793         modules/stdio-tests.
1794         * modules/stdio-tests: Depend on it.
1795         * modules/stdlib-c++-tests: New file, extracted from
1796         modules/stdlib-tests.
1797         * modules/stdlib-tests: Depend on it.
1798         * modules/string-c++-tests: New file, extracted from
1799         modules/string-tests.
1800         * modules/string-tests: Depend on it.
1801         * modules/sys_ioctl-c++-tests: New file, extracted from
1802         modules/sys_ioctl-tests.
1803         * modules/sys_ioctl-tests: Depend on it.
1804         * modules/sys_select-c++-tests: New file, extracted from
1805         modules/sys_select-tests.
1806         * modules/sys_select-tests: Depend on it.
1807         * modules/sys_socket-c++-tests: New file, extracted from
1808         modules/sys_socket-tests.
1809         * modules/sys_socket-tests: Depend on it.
1810         * modules/sys_stat-c++-tests: New file, extracted from
1811         modules/sys_stat-tests.
1812         * modules/sys_stat-tests: Depend on it.
1813         * modules/sys_time-c++-tests: New file, extracted from
1814         modules/sys_time-tests.
1815         * modules/sys_time-tests: Depend on it.
1816         * modules/time-c++-tests: New file, extracted from modules/time-tests.
1817         * modules/time-tests: Depend on it.
1818         * modules/unistd-c++-tests: New file, extracted from
1819         modules/unistd-tests.
1820         * modules/unistd-tests: Depend on it.
1821         * modules/wchar-c++-tests: New file, extracted from
1822         modules/wchar-tests.
1823         * modules/wchar-tests: Depend on it.
1824         * modules/wctype-c++-tests: New file, extracted from
1825         modules/wctype-tests.
1826         * modules/wctype-tests: Depend on it.
1827         Reported by Simon Josefsson.
1828
1829 2010-03-28  Bruno Haible  <bruno@clisp.org>
1830
1831         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
1832         * gnulib-tool (func_exists_module): New function, extracted from
1833         func_verify_module.
1834         (func_verify_module): Use it.
1835         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
1836         'foo' only if 'foo' exists.
1837         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
1838         module.
1839
1840 2010-03-28  Bruno Haible  <bruno@clisp.org>
1841
1842         gnulib-tool: Add support for special categories of tests.
1843         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
1844         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
1845         (func_usage): Document them.
1846         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
1847         inc_unportable_tests, inc_all_tests): New variables.
1848         (func_acceptable): Consider these variables.
1849         (func_modules_transitive_closure): Make it work when the 'Status' field
1850         consists of multiple words.
1851         (func_import): Store and restore the values of inc_cxx_tests,
1852         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
1853         inc_all_tests in gnulib-comp.m4.
1854         (func_create_testdir): Set inc_all_tests to true.
1855         * doc/gnulib.texi (Extra tests modules): New section.
1856         Suggested by Jim Meyering.
1857
1858 2010-03-28  Bruno Haible  <bruno@clisp.org>
1859
1860         ansi-c++-opt: Allow turning off the C++ build by default.
1861         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
1862         gl_CXX_CHOICE_DEFAULT_NO is defined.
1863         Requested by Eric Blake.
1864
1865 2010-03-28  Bruno Haible  <bruno@clisp.org>
1866
1867         unistd: Avoid #define replacements in C++ mode.
1868         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
1869         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
1870         setsockopt, shutdown, select): In C++, attach a warning to the function
1871         if possible, rather than #defining the symbol to a dysfunctional alias.
1872         Reported by John W. Eaton <jwe@gnu.org>.
1873
1874 2010-03-28  Bruno Haible  <bruno@clisp.org>
1875
1876         Fix link errors on mingw.
1877         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
1878         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
1879         $(LIBSOCKET).
1880         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
1881         $(LIBSOCKET).
1882
1883 2010-03-28  Bruno Haible  <bruno@clisp.org>
1884             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1885
1886         lib-ignore: Determine different options for different compilers.
1887         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
1888         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
1889         Add comments.
1890         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
1891         * NEWS: Mention the change.
1892
1893 2010-03-27  Bruno Haible  <bruno@clisp.org>
1894
1895         Remove unused GNULIB_XYZ macro definitions.
1896         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
1897         * modules/fseek (configure.ac): Likewise.
1898         * modules/ioctl (configure.ac): Likewise.
1899         * modules/open (configure.ac): Likewise.
1900         * modules/stdlib-safer (configure.ac): Likewise.
1901
1902 2010-03-27  Bruno Haible  <bruno@clisp.org>
1903
1904         Add a remark about certain modules.
1905         * modules/malloc (Comment): New section.
1906         * modules/realloc (Comment): Likewise.
1907         * modules/sigpipe (Comment): Likewise.
1908
1909 2010-03-27  Bruno Haible  <bruno@clisp.org>
1910
1911         Resolve conflict between the two kinds of module indicators.
1912         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
1913         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
1914         * modules/canonicalize (configure.ac): Invoke
1915         gl_MODULE_INDICATOR_FOR_TESTS.
1916         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
1917         GNULIB_XYZ.
1918         * tests/test-dirent-c++.cc: Likewise.
1919         * tests/test-dirent-safer.c: Likewise.
1920         * tests/test-dup2.c: Likewise.
1921         * tests/test-fchdir.c: Likewise.
1922         * tests/test-fcntl-h-c++.cc: Likewise.
1923         * tests/test-getopt.c: Likewise.
1924         * tests/test-getopt.h: Likewise.
1925         * tests/test-langinfo-c++.cc: Likewise.
1926         * tests/test-locale-c++.cc: Likewise.
1927         * tests/test-math-c++.cc: Likewise.
1928         * tests/test-pty-c++.cc: Likewise.
1929         * tests/test-search-c++.cc: Likewise.
1930         * tests/test-signal-c++.cc: Likewise.
1931         * tests/test-spawn-c++.cc: Likewise.
1932         * tests/test-stdio-c++.cc: Likewise.
1933         * tests/test-stdlib-c++.cc: Likewise.
1934         * tests/test-string-c++.cc: Likewise.
1935         * tests/test-sys_ioctl-c++.cc: Likewise.
1936         * tests/test-sys_select-c++.cc: Likewise.
1937         * tests/test-sys_socket-c++.cc: Likewise.
1938         * tests/test-sys_stat-c++.cc: Likewise.
1939         * tests/test-sys_time-c++.cc: Likewise.
1940         * tests/test-time-c++.cc: Likewise.
1941         * tests/test-unistd-c++.cc: Likewise.
1942         * tests/test-wchar-c++.cc: Likewise.
1943         * tests/uninorm/test-u8-nfc.c: Likewise.
1944         * tests/uninorm/test-u8-nfd.c: Likewise.
1945         * tests/uninorm/test-u8-nfkc.c: Likewise.
1946         * tests/uninorm/test-u8-nfkd.c: Likewise.
1947         * tests/uninorm/test-u16-nfc.c: Likewise.
1948         * tests/uninorm/test-u16-nfd.c: Likewise.
1949         * tests/uninorm/test-u16-nfkc.c: Likewise.
1950         * tests/uninorm/test-u16-nfkd.c: Likewise.
1951         * tests/uninorm/test-u32-nfc.c: Likewise.
1952         * tests/uninorm/test-u32-nfc-big.c: Likewise.
1953         * tests/uninorm/test-u32-nfd.c: Likewise.
1954         * tests/uninorm/test-u32-nfd-big.c: Likewise.
1955         * tests/uninorm/test-u32-nfkc.c: Likewise.
1956         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
1957         * tests/uninorm/test-u32-nfkd.c: Likewise.
1958         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
1959         * tests/uninorm/test-u32-normalize-big.c: Likewise.
1960
1961 2010-03-27  Bruno Haible  <bruno@clisp.org>
1962
1963         Distinguish two kinds of module indicators.
1964         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
1965         gl_MODULE_INDICATOR.
1966         (gl_MODULE_INDICATOR): New macro.
1967         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
1968         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
1969         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
1970         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
1971         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
1972         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
1973         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
1974         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
1975         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
1976         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
1977         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
1978         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
1979         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
1980         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
1981         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
1982         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
1983         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
1984         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
1985         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
1986         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
1987         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
1988         * modules/cloexec (configure.ac): Likewise.
1989         * modules/getopt-gnu (configure.ac): Likewise.
1990         * modules/uninorm/u8-normalize (configure.ac): Likewise.
1991         * modules/uninorm/u16-normalize (configure.ac): Likewise.
1992         * modules/uninorm/u32-normalize (configure.ac): Likewise.
1993         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
1994
1995 2010-03-27  Bruno Haible  <bruno@clisp.org>
1996
1997         New module description field 'Comment'.
1998         * gnulib-tool: New option --extract-comment.
1999         (func_usage): Document it.
2000         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
2001         (func_get_comment): New function.
2002         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
2003
2004 2010-03-27  Bruno Haible  <bruno@clisp.org>
2005
2006         Addendum to 2010-02-07 commit.
2007         * gnulib-tool (func_usage): Document --extract-applicability option.
2008
2009 2010-03-27  Bruno Haible  <bruno@clisp.org>
2010
2011         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
2012         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
2013         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
2014         rather than link errors.
2015
2016 2010-03-27  Bruno Haible  <bruno@clisp.org>
2017
2018         Avoid side effects from tests-related modules on the compilation of lib.
2019         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
2020         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
2021         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
2022         parameter. Emit into AM_CPPFLAGS a definition of the designated C
2023         macro.
2024         (func_import): Define a witness macro. Assign it a value that depends
2025         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
2026         tests-related modules.
2027         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
2028         Reported by Jim Meyering.
2029
2030 2010-03-27  Bruno Haible  <bruno@clisp.org>
2031
2032         Factorize common .m4 code.
2033         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
2034         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
2035         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
2036         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
2037         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
2038         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
2039         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
2040         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
2041         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
2042         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
2043         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
2044         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
2045         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
2046         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
2047         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
2048         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
2049         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
2050         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
2051         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
2052         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
2053         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
2054         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
2055         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
2056         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
2057         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
2058         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
2059         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
2060         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
2061         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
2062         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
2063         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
2064         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
2065
2066 2010-03-27  Bruno Haible  <bruno@clisp.org>
2067
2068         Fix a compilation error on Cygwin with g++ >= 4.3.
2069         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
2070         if it is undefined or if we alias it to chmod.
2071         (lstat): Don't warn about the use of this function if it is undefined
2072         or if we alias it to stat.
2073         Reported by Simon Josefsson.
2074
2075 2010-03-27  Bruno Haible  <bruno@clisp.org>
2076
2077         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
2078         * modules/getlogin (configure.ac): Update.
2079
2080         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
2081         * modules/getlogin_r (configure.ac): Update.
2082
2083         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
2084         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
2085         * modules/inet_ntop (configure.ac): Update.
2086
2087         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
2088         * modules/inet_pton (configure.ac): Update.
2089
2090         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
2091         * modules/mbslen (configure.ac): Update.
2092
2093         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
2094         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
2095         * modules/forkpty (configure.ac): Update.
2096         * modules/openpty (configure.ac): Update.
2097
2098 2010-03-26  Simon Josefsson  <simon@josefsson.org>
2099
2100         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
2101         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
2102
2103 2010-03-25  Eric Blake  <eblake@redhat.com>
2104
2105         maint: use pragma consistently across replacement headers
2106         * lib/ctype.in.h (system_header): Hoist for consistent placement.
2107         * lib/dirent.in.h (system_header): Likewise.
2108         * lib/errno.in.h (system_header): Likewise.
2109         * lib/float.in.h (system_header): Likewise.
2110         * lib/getopt.in.h (system_header): Likewise.
2111         * lib/iconv.in.h (system_header): Likewise.
2112         * lib/inttypes.in.h (system_header): Likewise.
2113         * lib/langinfo.in.h (system_header): Likewise.
2114         * lib/locale.in.h (system_header): Likewise.
2115         * lib/math.in.h (system_header): Likewise.
2116         * lib/netdb.in.h (system_header): Likewise.
2117         * lib/netinet_in.in.h (system_header): Likewise.
2118         * lib/pty.in.h (system_header): Likewise.
2119         * lib/sched.in.h (system_header): Likewise.
2120         * lib/se-selinux.in.h (system_header): Likewise.
2121         * lib/search.in.h (system_header): Likewise.
2122         * lib/spawn.in.h (system_header): Likewise.
2123         * lib/stdarg.in.h (system_header): Likewise.
2124         * lib/stdint.in.h (system_header): Likewise.
2125         * lib/string.in.h (system_header): Likewise.
2126         * lib/strings.in.h (system_header): Likewise.
2127         * lib/sys_file.in.h (system_header): Likewise.
2128         * lib/sys_ioctl.in.h (system_header): Likewise.
2129         * lib/sys_socket.in.h (system_header): Likewise.
2130         * lib/sys_times.in.h (system_header): Likewise.
2131         * lib/sys_utsname.in.h (system_header): Likewise.
2132         * lib/sys_wait.in.h (system_header): Likewise.
2133         * lib/sysexits.in.h (system_header): Likewise.
2134         * lib/unistd.in.h (system_header): Likewise.
2135         * lib/wctype.in.h (system_header): Likewise.
2136
2137         arpa/inet: fix mingw compilation warning
2138         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
2139         Reported by Matthew Bolte.
2140
2141 2010-03-25  Bruno Haible  <bruno@clisp.org>
2142
2143         Avoid collision between gnulib wrapper and libintl wrapper.
2144         * lib/printf.c (printf): Don't define if a printf wrapper is already
2145         defined in intl/printf.c.
2146         Reported by Michel Boaventura <michel@michelboaventura.com>.
2147
2148 2010-03-25  Bruno Haible  <bruno@clisp.org>
2149
2150         Use ANSI C.
2151         * lib/readutmp.h (getutent): Provide ANSI C prototype.
2152
2153 2010-03-25  Bruno Haible  <bruno@clisp.org>
2154
2155         Minor formatting changes.
2156         * lib/acosl.c: Insert space before function argument list.
2157         * lib/argz.c: Likewise.
2158         * lib/asinl.c: Likewise.
2159         * lib/expl.c: Likewise.
2160         * lib/gen-uni-tables.c: Likewise.
2161         * lib/gettext.h: Likewise.
2162         * lib/glthread/lock.h: Likewise.
2163         * lib/tanl.c: Likewise.
2164         * lib/uniname/uniname.c: Likewise.
2165         * tests/test-idpriv-drop.c: Likewise.
2166         * tests/test-idpriv-droptemp.c: Likewise.
2167         * tests/test-lock.c: Likewise.
2168         * tests/test-tls.c: Likewise.
2169         * lib/argp-help.c: Insert space before function-like macro argument
2170         list.
2171         * lib/memcmp.c: Likewise.
2172         * tests/test-base64.c: Likewise.
2173         * lib/localename.c: Insert space before sizeof's argument list.
2174         * lib/safe-alloc.h: Likewise.
2175         * lib/file-set.h: Insert space before macro argument list.
2176         * tests/test-argp.c: Likewise.
2177         * lib/argp-namefrob.h: Insert space before function parameter list.
2178         * lib/getaddrinfo.c: Likewise.
2179         * lib/netdb.in.h: Likewise.
2180         * lib/parse-duration.h: Likewise.
2181         * lib/parse-duration.c: Likewise.
2182         * lib/poll.c: Likewise.
2183         * lib/select.c: Likewise.
2184         * lib/trim.h: Likewise.
2185         * tests/test-usleep.c: Likewise.
2186         * lib/ldexpl.c: Insert space before function parameter list and before
2187         function argument list.
2188         * lib/logl.c: Likewise.
2189         * lib/sqrtl.c: Likewise.
2190         * lib/trim.c: Likewise.
2191         * lib/cosl.c: Use GNU style indentation. Insert space before function
2192         argument list.
2193         * lib/sinl.c: Likewise.
2194         * lib/tsearch.c: Insert space after 'for'.
2195         Reported by Jim Meyering.
2196
2197 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
2198
2199         * maint.mk (sc_Wundef_boolean): Check for the presence of the
2200         config header before grepping, as it's not present before
2201         autoreconf/configure are run.  Reported by Simon Josefsson.
2202
2203 2010-03-23  Bruno Haible  <bruno@clisp.org>
2204
2205         pt_chown: Make it work with automake < 1.11.
2206         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
2207         Reported by Simon Josefsson.
2208
2209 2010-03-23  Bruno Haible  <bruno@clisp.org>
2210
2211         pt_chown: Don't depend on GPLed modules.
2212         * lib/pt_chown.c: Don't include idpriv.h.
2213         (main): Don't drop privileges.
2214         * modules/pt_chown (Depends-on): Remove idpriv-drop.
2215         Reported by Simon Josefsson.
2216
2217 2010-03-24  Simon Josefsson  <simon@josefsson.org>
2218
2219         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
2220         suggestions from karl@freefriends.org (Karl Berry).
2221
2222 2010-03-22  Eric Blake  <eblake@redhat.com>
2223
2224         gethostname: further tweaks
2225         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
2226         are overriding gethostname.
2227         Suggested by Bruno Haible.
2228
2229 2010-03-21  Bruno Haible  <bruno@clisp.org>
2230
2231         Fix comments.
2232         * lib/forkpty.c (rpl_forkpty): Fix comment.
2233         * lib/openpty.c (rpl_openpty): Likewise.
2234         Reported by Eric Blake.
2235
2236 2010-03-22  Eric Blake  <eblake@redhat.com>
2237
2238         gethostname: fix build on mingw
2239         * lib/unistd.in.h (includes): Work around fact that mingw
2240         <winsock2.h> re-includes <unistd.h>, by avoiding any
2241         redeclarations if we are being included by <winsock2.h>.
2242         Reported by Matthias Bolte.
2243
2244 2010-03-21  Bruno Haible  <bruno@clisp.org>
2245
2246         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
2247         * lib/forkpty.c (forkpty): New replacement function, from glibc with
2248         modifications.
2249         * lib/pty.in.h (forkpty): Update declaration. Add comments.
2250         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
2251         provide the replacement.
2252         * modules/forkpty (Depends-on): Add openpty, login_tty.
2253         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
2254         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
2255         * doc/glibc-functions/forkpty.texi: More supported platforms.
2256         * config/srclist.txt: Add forkpty.c (commented).
2257
2258 2010-03-21  Bruno Haible  <bruno@clisp.org>
2259
2260         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
2261         (Makefile.am): Verify that PTY_LIB is defined.
2262
2263         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
2264
2265 2010-03-21  Bruno Haible  <bruno@clisp.org>
2266
2267         Tests for module 'login_tty'.
2268         * modules/login_tty-tests: New file.
2269         * tests/test-login_tty.c: New file.
2270
2271         New module 'login_tty'.
2272         * lib/login_tty.c: New file.
2273         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
2274         * modules/login_tty: New file.
2275         * doc/glibc-functions/login_tty.texi: Mention the new module.
2276
2277 2010-03-21  Bruno Haible  <bruno@clisp.org>
2278
2279         login_tty: Documentation.
2280         * doc/glibc-functions/login_tty.texi: New file.
2281         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
2282
2283 2010-03-21  Bruno Haible  <bruno@clisp.org>
2284
2285         pty: Consistent macro naming.
2286         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
2287         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
2288         * modules/pty (configure.ac): Update.
2289
2290 2010-03-21  Bruno Haible  <bruno@clisp.org>
2291
2292         Tests for openpty: Make stricter.
2293         * tests/test-openpty.c (main): Add test of canonical processing and
2294         erase.
2295         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
2296
2297         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
2298         * lib/openpty.c (openpty): New replacement function.
2299         * lib/pty.in.h: Include <termios.h>.
2300         (openpty): Update declaration. Add comments.
2301         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
2302         is not declared, arrange to provide the replacement. Check for _getpty
2303         and posix_openpt.
2304         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
2305         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
2306         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
2307         * modules/pty-tests (test_pty_c___LDADD): New variable.
2308         * doc/glibc-functions/openpty.texi: More supported platforms.
2309
2310 2010-03-21  Bruno Haible  <bruno@clisp.org>
2311
2312         setenv: Tweaks.
2313         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
2314         the test program.
2315         * doc/posix-functions/setenv.texi: Update platforms list.
2316
2317 2010-03-21  Bruno Haible  <bruno@clisp.org>
2318
2319         New module 'unlockpt'.
2320         * lib/unlockpt.c: New file, from glibc with modifications.
2321         * m4/unlockpt.m4: New file.
2322         * modules/unlockpt: New file.
2323         * lib/stdlib.in.h (unlockpt): New declaration.
2324         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
2325         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
2326         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
2327         HAVE_UNLOCKPT.
2328         * doc/posix-functions/unlockpt.texi: Mention the new module.
2329         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
2330         * config/srclist.txt: Add unlockpt.c (commented).
2331
2332 2010-03-21  Jim Meyering  <meyering@redhat.com>
2333
2334         maint.mk: prohibit inclusion of "intprops.h" without use
2335         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
2336
2337 2010-03-21  Bruno Haible  <bruno@clisp.org>
2338
2339         New module 'grantpt'.
2340         * lib/grantpt.c: New file, from glibc with modifications.
2341         * m4/grantpt.m4: New file.
2342         * modules/grantpt: New file.
2343         * lib/stdlib.in.h (grantpt): New declaration.
2344         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
2345         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
2346         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
2347         HAVE_GRANTPT.
2348         * doc/posix-functions/grantpt.texi: Mention the new module.
2349         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
2350         * config/srclist.txt: Add grantpt.c (commented).
2351
2352 2010-03-21  Bruno Haible  <bruno@clisp.org>
2353
2354         New module 'pt_chown'.
2355         * lib/pt_chown.c: New file, from glibc with modifications.
2356         * lib/pty-private.h: New file, from glibc with modifications.
2357         * modules/pt_chown: New file.
2358         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
2359
2360 2010-03-21  Bruno Haible  <bruno@clisp.org>
2361
2362         Tests for module 'ptsname'.
2363         * modules/ptsname-tests: New file.
2364         * tests/test-ptsname.c: New file.
2365
2366         New module 'ptsname'.
2367         * lib/ptsname.c: New file, from glibc with modifications.
2368         * m4/ptsname.m4: New file.
2369         * modules/ptsname: New file.
2370         * lib/stdlib.in.h (ptsname): New declaration.
2371         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
2372         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
2373         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
2374         HAVE_PTSNAME.
2375         * doc/posix-functions/ptsname.texi: Mention the new module.
2376         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
2377         * config/srclist.txt: Add ptsname.c (commented).
2378
2379 2010-03-21  Bruno Haible  <bruno@clisp.org>
2380
2381         Tests for module 'ttyname_r'.
2382         * modules/ttyname_r-tests: New file.
2383         * tests/test-ttyname_r.c: New file.
2384
2385         New module 'ttyname_r'.
2386         * lib/ttyname_r.c: New file.
2387         * m4/ttyname_r.m4: New file.
2388         * modules/ttyname_r: New file.
2389         * lib/unistd.in.h (ttyname_r): New declaration.
2390         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
2391         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
2392         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
2393         HAVE_TTYNAME_R.
2394         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
2395         * doc/posix-functions/ttyname_r.texi: Mention the new module.
2396
2397 2010-03-20  Bruno Haible  <bruno@clisp.org>
2398
2399         signal: Undefine macro definitions in C++ mode.
2400         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
2401         sigfillset): Undefine macro definitions from the system header in C++
2402         mode.
2403         Reported by John W. Eaton <jwe@gnu.org>.
2404
2405 2010-03-20  Bruno Haible  <bruno@clisp.org>
2406
2407         Ensure no #include statements inside extern "C" { ... }.
2408         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
2409         contain #include statements.
2410         * lib/time.in.h: Likewise.
2411
2412 2010-03-20  Bruno Haible  <bruno@clisp.org>
2413
2414         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
2415         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
2416         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
2417         Reported by John W. Eaton <jwe@gnu.org>.
2418
2419 2010-03-20  Bruno Haible  <bruno@clisp.org>
2420
2421         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
2422         Reported by Jim Meyering.
2423
2424 2010-03-20  Bruno Haible  <bruno@clisp.org>
2425
2426         pipe: Set errno upon failure.
2427         * lib/pipe.h: Specify that when -1 is returned, errno is set.
2428         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
2429         errno value in error message.
2430
2431 2010-03-20  Bruno Haible  <bruno@clisp.org>
2432             Jim Meyering  <meyering@redhat.com>
2433
2434         lchown: Avoid "unused variable" warning.
2435         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
2436
2437 2010-03-20  Bruno Haible  <bruno@clisp.org>
2438
2439         Work around unlink() bug on MacOS X 10.5.6.
2440         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
2441         attempting to unlink a parent directory.
2442         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
2443         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
2444         activate for the replacement function.
2445         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
2446
2447 2010-03-20  Bruno Haible  <bruno@clisp.org>
2448
2449         Fix link errors on Solaris 8.
2450         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
2451         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
2452
2453 2010-03-19  Jim Meyering  <meyering@redhat.com>
2454
2455         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
2456         The _LIBC implementation of build_range_exp correctly honors the
2457         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
2458         However, the non-_LIBC implementation would ignore that syntax-bit
2459         flag and return REG_ERANGE unconditionally.
2460         This change makes it honor that flag.
2461         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
2462         Make two pointer parameters "const".
2463         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
2464         (parse_bracket_exp): Update caller.
2465
2466         regex.m4: correct the reversed range endpoint ([b-a]) test
2467         * m4/regex.m4: When requiring that [b-a] evoke failure,
2468         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
2469         test pass once again for x86-based systems.
2470
2471 2010-03-19  Bruno Haible  <bruno@clisp.org>
2472
2473         scandir: Fix link error on Solaris 8.
2474         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
2475         macros.
2476
2477 2010-03-19  Bruno Haible  <bruno@clisp.org>
2478
2479         getusershell: Fix documentation.
2480         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
2481         module.
2482         * doc/glibc-functions/setusershell.texi: Likewise.
2483
2484         getusershell: Provide declaration, missing on Solaris 9.
2485         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
2486         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
2487         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
2488         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
2489         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2490         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
2491         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
2492         HAVE_GETUSERSHELL.
2493         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
2494
2495 2010-03-19  Bruno Haible  <bruno@clisp.org>
2496
2497         wctype: Provide iswblank function.
2498         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
2499         exists and is fine.
2500         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
2501         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
2502         * tests/test-wctype.c (main): Re-enable the iswblank tests.
2503         * doc/posix-functions/iswblank.texi: Update.
2504
2505 2010-03-19  Bruno Haible  <bruno@clisp.org>
2506
2507         Tests of module 'pty' in C++ mode.
2508         * modules/pty-tests: New file.
2509         * tests/test-pty-c++.cc: New file.
2510         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
2511
2512 2010-03-19  Eric Blake  <eblake@redhat.com>
2513
2514         logb: fix documentation
2515         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
2516         1.5 declaration bug.
2517
2518         forkpty, openpty: prefer glibc's const-safe prototype
2519         * lib/forkpty.c (rpl_forkpty): New file.
2520         * lib/openpty.c (rpl_openpty): Likewise.
2521         * modules/forkpty (Files): Distribute it.
2522         * modules/openpty (Files): Likewise.
2523         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
2524         check...
2525         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
2526         replacement for for non-const BSD signature.
2527         * modules/pty (Makefile.am): Substitute witnesses.
2528         * lib/pty.in.h (forkpty, openpty): Declare replacements.
2529         * tests/test-forkpty.c: Update signature check.
2530         * tests/test-openpty.c: Likewise.
2531         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
2532         * doc/glibc-functions/openpty.texi (openpty): Likewise.
2533
2534         forkpty, openpty: split functions into new modules
2535         * modules/pty (Makefile.am): Substitute new witnesses.
2536         (Libraries): Move library detection...
2537         * modules/forkpty: ...into new module.
2538         * modules/openpty: Another new module.
2539         * modules/pty-tests: Rename and split...
2540         * modules/forkpty-tests: ...to this...
2541         * modules/openpty-tests: ...and this.
2542         * tests/test-pty.c: Rename and split...
2543         * tests/test-forkpty.c: ...to this...
2544         * tests/test-openpty.c: ...and this.
2545         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
2546         (gl_PTY): Split library searching...
2547         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
2548         (gl_FORKPTY, gl_OPENPTY): New macros.
2549         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
2550         * NEWS: Mention the split.
2551         * MODULES.html.sh (Misc): Document the modules.
2552         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
2553         * doc/glibc-functions/openpty.texi (openpty): Likewise.
2554
2555         pty: improve replacement header
2556         * lib/pty.in.h: New file.
2557         * modules/pty (Files): Ship it.
2558         (Makefile.am): Always build replacement.
2559         * m4/pty.m4: Rename...
2560         * m4/pty_h.m4: ...to this.
2561         (gl_PTY): Modernize setting of witness macros; update check of
2562         forkpty to take proper advantage of cache.
2563         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
2564
2565         getopt: avoid compiler warning
2566         * lib/getopt.c (attribute_hidden): Remove unused macro.
2567
2568 2010-03-18  Bruno Haible  <bruno@clisp.org>
2569
2570         Fix link errors on Solaris 8.
2571         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
2572         * modules/search-tests (test_search_c___LDADD): Likewise.
2573         * modules/signal-tests (test_signal_c___LDADD): Likewise.
2574         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
2575         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
2576         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
2577         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
2578         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
2579         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
2580
2581 2010-03-18  Bruno Haible  <bruno@clisp.org>
2582
2583         Fix bug introduced on 2010-03-14.
2584         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
2585         (gl_SPAWN_H): Require it.
2586         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
2587         Reported by Simon Josefsson.
2588
2589 2010-03-18  Bruno Haible  <bruno@clisp.org>
2590
2591         Fix typo introduced on 2009-12-31.
2592         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
2593         posix_spawn_file_actions_adddup2.
2594
2595 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
2596         and Eric Blake  <eblake@redhat.com>
2597
2598         test-vc-list-files-git: make more robust
2599         * tests/test-vc-list-files-git.sh: Unset problematic environment
2600         variables.  Chain commands together.
2601
2602 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
2603
2604         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
2605         `AC_CHECK_DECL' invocation.
2606
2607 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
2608
2609         * lib/inttostr.c (inttostr): Make sure the invocation of verify
2610         appears before executable statements. Suggested by Petr Sumbera
2611         <Petr.Sumbera@Sun.COM>.
2612
2613 2010-03-14  Bruno Haible  <bruno@clisp.org>
2614
2615         * tests/test-flock.c (test_exclusive): Comment out a test that causes
2616         portability problems. Instead use a simpler test.
2617         (main): Check that invalid arguments are rejected only on Linux.
2618
2619 2010-03-14  Bruno Haible  <bruno@clisp.org>
2620
2621         Fix bug introduced on 2009-12-31.
2622         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
2623         gl_PREREQ_SYS_H_WINSOCK2 always.
2624         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
2625         SYS_SOCKET_H variable.
2626         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
2627         Update comments.
2628         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
2629         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
2630         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2631         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
2632         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
2633
2634 2010-03-14  Bruno Haible  <bruno@clisp.org>
2635
2636         Fix values returned by sinl, cosl.
2637         * lib/trigl.h: Add specification comments.
2638         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
2639         that combines the values from the precomputed table with the values of
2640         the Chebyshev polynomials.
2641
2642 2010-03-14  Bruno Haible  <bruno@clisp.org>
2643
2644         Fix compilation error when modules 'posix_spawn[p]' are not used.
2645         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
2646         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
2647
2648 2010-03-14  Bruno Haible  <bruno@clisp.org>
2649
2650         Fix compilation error on mingw when module 'time_r' is not used.
2651         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
2652         is 1.
2653         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
2654         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
2655         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
2656         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
2657
2658 2010-03-14  Bruno Haible  <bruno@clisp.org>
2659
2660         Fix compilation error with Sun C.
2661         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
2662         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
2663         instead of GCC specific ULONG_LONG_MAX.
2664         * lib/xstrtoll.c: Likewise.
2665         * lib/xstrtoull.c: Likewise.
2666
2667 2010-03-13  Bruno Haible  <bruno@clisp.org>
2668
2669         Allow the user to disable C++ code and tests.
2670         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
2671         (gl_PROG_ANSI_CXX): Require it.
2672
2673 2010-03-13  Bruno Haible  <bruno@clisp.org>
2674
2675         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
2676         cases.
2677
2678 2010-03-13  Bruno Haible  <bruno@clisp.org>
2679
2680         Test that gnulib does not break the standard C++ headers.
2681         * tests/test-locale-c++2.cc: New file.
2682         * modules/locale-tests (Files): Add it.
2683         (Makefile.am): Compile it for test-locale-c++.
2684         * tests/test-math-c++2.cc: New file.
2685         * modules/math-tests (Files): Add it.
2686         (Makefile.am): Compile it for test-math-c++.
2687         * tests/test-signal-c++2.cc: New file.
2688         * modules/signal-tests (Files): Add it.
2689         (Makefile.am): Compile it for test-signal-c++.
2690         * tests/test-stdio-c++2.cc: New file.
2691         * modules/stdio-tests (Files): Add it.
2692         (Makefile.am): Compile it for test-stdio-c++.
2693         * tests/test-stdlib-c++2.cc: New file.
2694         * modules/stdlib-tests (Files): Add it.
2695         (Makefile.am): Compile it for test-stdlib-c++.
2696         * tests/test-string-c++2.cc: New file.
2697         * modules/string-tests (Files): Add it.
2698         (Makefile.am): Compile it for test-string-c++.
2699         * tests/test-time-c++2.cc: New file.
2700         * modules/time-tests (Files): Add it.
2701         (Makefile.am): Compile it for test-time-c++.
2702         Reported by John W. Eaton <jwe@gnu.org>.
2703
2704 2010-03-13  Bruno Haible  <bruno@clisp.org>
2705
2706         * gnulib-tool (func_usage): Clarify which options are available for
2707         --create-testdir and --create-megatestdir.
2708
2709 2010-03-13  Bruno Haible  <bruno@clisp.org>
2710
2711         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
2712         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
2713         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
2714         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
2715         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
2716         when appropriate.
2717         Reported by Jim Meyering.
2718
2719 2010-03-12  Simon Josefsson  <simon@josefsson.org>
2720
2721         * gnulib-tool (func_import): Explain origin of code.
2722
2723 2010-03-12  Bruno Haible  <bruno@clisp.org>
2724
2725         Fix problem with automake's definition of CXXLINK.
2726         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
2727         Reported by Simon Josefsson and Ludovic Courtès.
2728
2729 2010-03-12  Bruno Haible  <bruno@clisp.org>
2730
2731         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
2732         stable releases.
2733
2734 2010-03-11  Bruno Haible  <bruno@clisp.org>
2735
2736         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
2737         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
2738         whether the system provides one variant or multiple variants of the
2739         function.
2740         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
2741         C++ compilers.
2742         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
2743         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
2744         Reported by Jim Meyering.
2745
2746 2010-03-09  Simon Josefsson  <simon@josefsson.org>
2747
2748         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
2749
2750 2010-03-08  Bruno Haible  <bruno@clisp.org>
2751
2752         gnulib-tool: Add support for --libtool in --create-testdir.
2753         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
2754         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
2755
2756 2010-03-08  Eric Blake  <eblake@redhat.com>
2757
2758         gnulib-tool.texi: mention possibility of git submodule
2759         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
2760         submodules.
2761         * doc/.gitignore: Ignore another generated file.
2762
2763 2010-03-08  Karl Berry  <karl@gnu.org>
2764
2765         * doc/gnulib-tool.texi (VCS Issues): Mention third option
2766         of committing gnulib files while skipping others.
2767
2768 2010-03-07  Bruno Haible  <bruno@clisp.org>
2769
2770         Tests of module 'wctype' in C++ mode.
2771         * tests/test-wctype-c++.cc: New file.
2772         * modules/wctype-tests (Files): Add it and tests/signature.h.
2773         (Depends-on): Add ansi-c++-opt.
2774         (Makefile.am): Arrange to compile and run test-wctype-c++.
2775
2776         Tests of module 'wchar' in C++ mode.
2777         * tests/test-wchar-c++.cc: New file.
2778         * modules/wchar-tests (Files): Add it and tests/signature.h.
2779         (Depends-on): Add ansi-c++-opt.
2780         (Makefile.am): Arrange to compile and run test-wchar-c++.
2781         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
2782         gl_MODULE_INDICATOR.
2783
2784         Tests of module 'unistd' in C++ mode.
2785         * tests/test-unistd-c++.cc: New file.
2786         * modules/unistd-tests (Files): Add it and tests/signature.h.
2787         (Depends-on): Add ansi-c++-opt.
2788         (Makefile.am): Arrange to compile and run test-unistd-c++.
2789         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
2790         gl_MODULE_INDICATOR.
2791
2792         Tests of module 'time' in C++ mode.
2793         * tests/test-time-c++.cc: New file.
2794         * modules/time-tests (Files): Add it and tests/signature.h.
2795         (Depends-on): Add ansi-c++-opt.
2796         (Makefile.am): Arrange to compile and run test-time-c++.
2797         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
2798
2799         Tests of module 'sys_time' in C++ mode.
2800         * tests/test-sys_time-c++.cc: New file.
2801         * modules/sys_time-tests (Files): Add it and tests/signature.h.
2802         (Depends-on): Add ansi-c++-opt.
2803         (Makefile.am): Arrange to compile and run test-sys_time-c++.
2804         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
2805         gl_MODULE_INDICATOR.
2806
2807         Tests of module 'sys_stat' in C++ mode.
2808         * tests/test-sys_stat-c++.cc: New file.
2809         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
2810         (Depends-on): Add ansi-c++-opt.
2811         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
2812         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
2813         gl_MODULE_INDICATOR.
2814
2815         Tests of module 'sys_socket' in C++ mode.
2816         * tests/test-sys_socket-c++.cc: New file.
2817         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
2818         (Depends-on): Add ansi-c++-opt.
2819         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
2820         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
2821         gl_MODULE_INDICATOR.
2822
2823         Tests of module 'sys_select' in C++ mode.
2824         * tests/test-sys_select-c++.cc: New file.
2825         * modules/sys_select-tests (Files): Add it and tests/signature.h.
2826         (Depends-on): Add ansi-c++-opt.
2827         (Makefile.am): Arrange to compile and run test-sys_select-c++.
2828         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
2829         gl_MODULE_INDICATOR.
2830
2831         Tests of module 'sys_ioctl' in C++ mode.
2832         * tests/test-sys_ioctl-c++.cc: New file.
2833         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
2834         (Depends-on): Add ansi-c++-opt.
2835         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
2836         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
2837         gl_MODULE_INDICATOR.
2838
2839         Tests of module 'string' in C++ mode.
2840         * tests/test-string-c++.cc: New file.
2841         * modules/string-tests (Files): Add it and tests/signature.h.
2842         (Depends-on): Add ansi-c++-opt.
2843         (Makefile.am): Arrange to compile and run test-string-c++.
2844         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
2845         gl_MODULE_INDICATOR.
2846
2847         Tests of module 'stdlib' in C++ mode.
2848         * tests/test-stdlib-c++.cc: New file.
2849         * modules/stdlib-tests (Files): Add it and tests/signature.h.
2850         (Depends-on): Add ansi-c++-opt.
2851         (Makefile.am): Arrange to compile and run test-stdlib-c++.
2852         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
2853         gl_MODULE_INDICATOR.
2854
2855         Tests of module 'stdio' in C++ mode.
2856         * tests/test-stdio-c++.cc: New file.
2857         * modules/stdio-tests (Files): Add it and tests/signature.h.
2858         (Depends-on): Add ansi-c++-opt.
2859         (Makefile.am): Arrange to compile and run test-stdio-c++.
2860         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
2861         gl_MODULE_INDICATOR.
2862
2863         Tests of module 'spawn' in C++ mode.
2864         * tests/test-spawn-c++.cc: New file.
2865         * modules/spawn-tests (Files): Add it and tests/signature.h.
2866         (Depends-on): Add ansi-c++-opt.
2867         (Makefile.am): Arrange to compile and run test-spawn-c++.
2868         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
2869         gl_MODULE_INDICATOR.
2870
2871         Tests of module 'signal' in C++ mode.
2872         * tests/test-signal-c++.cc: New file.
2873         * modules/signal-tests (Files): Add it and tests/signature.h.
2874         (Depends-on): Add ansi-c++-opt.
2875         (Makefile.am): Arrange to compile and run test-signal-c++.
2876         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
2877         gl_MODULE_INDICATOR.
2878
2879         Tests of module 'search' in C++ mode.
2880         * tests/test-search-c++.cc: New file.
2881         * modules/search-tests (Files): Add it and tests/signature.h.
2882         (Depends-on): Add ansi-c++-opt.
2883         (Makefile.am): Arrange to compile and run test-search-c++.
2884         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
2885         gl_MODULE_INDICATOR.
2886
2887         Tests of module 'math' in C++ mode.
2888         * tests/test-math-c++.cc: New file.
2889         * modules/math-tests (Files): Add it and tests/signature.h.
2890         (Depends-on): Add ansi-c++-opt.
2891         (Makefile.am): Arrange to compile and run test-math-c++.
2892         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
2893
2894         Tests of module 'locale' in C++ mode.
2895         * tests/test-locale-c++.cc: New file.
2896         * modules/locale-tests (Files): Add it and tests/signature.h.
2897         (Depends-on): Add ansi-c++-opt.
2898         (Makefile.am): Arrange to compile and run test-locale-c++.
2899         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
2900         gl_MODULE_INDICATOR.
2901
2902         Tests of module 'langinfo' in C++ mode.
2903         * tests/test-langinfo-c++.cc: New file.
2904         * modules/langinfo-tests (Files): Add it and tests/signature.h.
2905         (Depends-on): Add ansi-c++-opt.
2906         (Makefile.am): Arrange to compile and run test-langinfo-c++.
2907         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
2908         gl_MODULE_INDICATOR.
2909
2910         Tests of module 'iconv-h' in C++ mode.
2911         * tests/test-iconv-h-c++.cc: New file.
2912         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
2913         (Depends-on): Add ansi-c++-opt.
2914         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
2915
2916         Tests of module 'glob' in C++ mode.
2917         * tests/test-glob-c++.cc: New file.
2918         * modules/glob-tests (Files): Add it.
2919         (Depends-on): Add ansi-c++-opt.
2920         (Makefile.am): Arrange to compile and run test-glob-c++.
2921
2922         Tests of module 'fcntl-h' in C++ mode.
2923         * tests/test-fcntl-h-c++.cc: New file.
2924         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
2925         (Depends-on): Add ansi-c++-opt.
2926         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
2927         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
2928         gl_MODULE_INDICATOR.
2929
2930         Tests of module 'dirent' in C++ mode.
2931         * tests/test-dirent-c++.cc: New file.
2932         * modules/dirent-tests (Files): Add it and tests/signature.h.
2933         (Depends-on): Add ansi-c++-opt.
2934         (Makefile.am): Arrange to compile and run test-dirent-c++.
2935         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
2936         gl_MODULE_INDICATOR.
2937
2938         New module 'ansi-c++-opt'.
2939         * modules/ansi-c++-opt: New file.
2940         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
2941
2942         Document C++ namespace mode.
2943         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
2944
2945         wctype: Avoid #define replacements in C++ mode.
2946         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
2947         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
2948         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
2949         In C++, define a namespaced alias symbol.
2950         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
2951         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
2952         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
2953         rule.
2954
2955         wchar: Avoid #define replacements in C++ mode.
2956         * lib/wchar.in.h: Include c++defs.h.
2957         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
2958         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
2959         symbol.
2960         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
2961         * modules/wchar (Depends-on): Add c++defs.
2962         (Makefile.am): Update wchar.h rule.
2963
2964         unistd: Avoid #define replacements in C++ mode.
2965         * lib/unistd.in.h: Include c++defs.h.
2966         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
2967         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
2968         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
2969         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
2970         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
2971         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
2972         symbol.
2973         (environ): Update.
2974         * modules/unistd (Depends-on): Add c++defs.
2975         (Makefile.am): Update unistd.h rule.
2976
2977         time: Avoid #define replacements in C++ mode.
2978         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
2979         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
2980         define a namespaced alias symbol.
2981         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
2982         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
2983         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
2984         * modules/time (Depends-on): Add c++defs, warn-on-use.
2985         (Makefile.am): Update time.h rule.
2986         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
2987         * modules/nanosleep (configure.ac): Likewise.
2988         * modules/strptime (configure.ac): Likewise.
2989         * modules/timegm (configure.ac): Likewise.
2990
2991         sys_time: Avoid #define replacements in C++ mode.
2992         * lib/sys_time.in.h: Include c++defs.h.
2993         (gettimeofday): In C++, define a namespaced alias symbol.
2994         * modules/sys_time (Depends-on): Add c++defs.
2995         (Makefile.am): Update sys/time.h rule.
2996
2997         sys_stat: Avoid #define replacements in C++ mode.
2998         * lib/sys_stat.in.h: Include c++defs.h.
2999         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
3000         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
3001         namespaced alias symbol.
3002         In C++, define a namespaced alias symbol.
3003         * modules/sys_stat (Depends-on): Add c++defs.
3004         (Makefile.am): Update sys/stat.h rule.
3005
3006         sys_socket: Avoid #define replacements in C++ mode.
3007         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
3008         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
3009         definitions also when the system has a <sys/socket.h>.
3010         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
3011         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
3012         In C++, define a namespaced alias symbol.
3013         * modules/sys_socket (Depends-on): Add c++defs.
3014         (Makefile.am): Update sys/socket.h rule.
3015
3016         sys_select: Avoid #define replacements in C++ mode.
3017         * lib/sys_select.in.h: Include c++defs.h. Enable the function
3018         definitions also when the system has a <sys/select.h>.
3019         (select): In C++, define a namespaced alias symbol.
3020         * modules/sys_select (Depends-on): Add c++defs.
3021         (Makefile.am): Update sys/select.h rule.
3022
3023         sys_ioctl: Avoid #define replacements in C++ mode.
3024         * lib/sys_ioctl.in.h: Include c++defs.h.
3025         (ioctl): In C++, define a namespaced alias symbol.
3026         * modules/sys_ioctl (Depends-on): Add c++defs.
3027         (Makefile.am): Update sys/ioctl.h rule.
3028
3029         string: Avoid #define replacements in C++ mode.
3030         * lib/string.in.h: Include c++defs.h.
3031         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
3032         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
3033         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
3034         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
3035         strsignal, strverscmp): In C++, define a namespaced alias symbol.
3036         * modules/string (Depends-on): Add c++defs.
3037         (Makefile.am): Update string.h rule.
3038
3039         stdlib: Avoid #define replacements in C++ mode.
3040         * lib/stdlib.in.h: Include c++defs.h.
3041         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
3042         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
3043         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
3044         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
3045         symbol.
3046         * modules/stdlib (Depends-on): Add c++defs.
3047         (Makefile.am): Update stdlib.h rule.
3048
3049         stdio: Avoid #define replacements in C++ mode.
3050         * lib/stdio.in.h: Include c++defs.h.
3051         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
3052         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
3053         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
3054         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
3055         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
3056         namespaced alias symbol.
3057         * modules/stdio (Depends-on): Add c++defs.
3058         (Makefile.am): Update stdio.h rule.
3059
3060         spawn: Avoid #define replacements in C++ mode.
3061         * lib/spawn.in.h: Include c++defs.h.
3062         (posix_spawn, posix_spawnp, posix_spawnattr_init,
3063         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
3064         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
3065         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
3066         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
3067         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
3068         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
3069         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
3070         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
3071         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
3072         In C++, define a namespaced alias symbol.
3073         * modules/spawn (Depends-on): Add c++defs.
3074         (Makefile.am): Update spawn.h rule.
3075
3076         signal: Avoid #define replacements in C++ mode.
3077         * lib/signal.in.h: Include c++defs.h.
3078         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
3079         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
3080         namespaced alias symbol.
3081         * modules/signal (Depends-on): Add c++defs.
3082         (Makefile.am): Update signal.h rule.
3083
3084         search: Avoid #define replacements in C++ mode.
3085         * lib/search.in.h: Include c++defs.h.
3086         (_gl_search_compar_fn, _gl_search_action_fn): New types.
3087         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
3088         symbol.
3089         * modules/search (Depends-on): Add c++defs.
3090         (Makefile.am): Update search.h rule.
3091
3092         math: Avoid #define replacements in C++ mode.
3093         * lib/math.in.h: Include c++defs.h.
3094         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
3095         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
3096         trunc, truncl): In C++, define a namespaced alias symbol.
3097         * modules/math (Depends-on): Add c++defs.
3098         (Makefile.am): Update math.h rule.
3099
3100         locale: Avoid #define replacements in C++ mode.
3101         * lib/locale.in.h: Include c++defs.h.
3102         (duplocale): In C++, define a namespaced alias symbol.
3103         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
3104         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
3105         * modules/locale (Depends-on): Add c++defs.
3106         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
3107
3108         langinfo: Avoid #define replacements in C++ mode.
3109         * lib/langinfo.in.h: Include c++defs.h.
3110         (nl_langinfo): In C++, define a namespaced alias symbol.
3111         * modules/langinfo (Depends-on): Add c++defs.
3112         (Makefile.am): Update langinfo.h rule.
3113
3114         iconv-h: Avoid #define replacements in C++ mode.
3115         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
3116         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
3117         symbol.
3118         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
3119         whenever iconv is present.
3120         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
3121         (Makefile.am): Update iconv.h rule.
3122
3123         glob: Avoid #define replacements in C++ mode.
3124         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
3125         (_gl_glob_errfunc_fn): New type.
3126         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
3127         symbol.
3128         * modules/glob (Depends-on): Add c++defs, warn-on-use.
3129         (Makefile.am): Update glob.h rule.
3130
3131         fcntl-h: Avoid #define replacements in C++ mode.
3132         * lib/fcntl.in.h: Include c++defs.h.
3133         (fcntl, open, openat): In C++, define a namespaced alias symbol.
3134         * modules/fcntl-h (Depends-on): Add c++defs.
3135         (Makefile.am): Update fcntl.h rule.
3136
3137         dirent: Avoid #define replacements in C++ mode.
3138         * lib/dirent.in.h: Include c++defs.h.
3139         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
3140         namespaced alias symbol.
3141         (dirfd): Update declaration.
3142         * modules/dirent (Depends-on): Add c++defs.
3143         (Makefile.am): Update dirent.h rule.
3144
3145         ctype: Make it usable in C++ code.
3146         * lib/ctype.in.h: Include c++defs.h.
3147         (isblank): Declare as extern "C".
3148         * modules/ctype (Depends-on): Add c++defs.
3149         (Makefile.am): Update ctype.h rule.
3150
3151         New module 'c++defs'.
3152         * modules/c++defs: New file.
3153         * build-aux/c++defs.h: New file.
3154         Reported by John W. Eaton <jwe@gnu.org>.
3155
3156 2010-03-07  Bruno Haible  <bruno@clisp.org>
3157
3158         logb: Provide missing declaration for Cygwin.
3159         * lib/math.in.h (logb): New declaration.
3160         * m4/logb.m4: New file.
3161         * modules/logb (Files): Add m4/logb.m4.
3162         (Depends-on): Add math.
3163         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
3164         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
3165         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
3166         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
3167         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
3168
3169 2010-03-07  Bruno Haible  <bruno@clisp.org>
3170
3171         Fix test-cond link error.
3172         * tests/test-cond.c: Include <stdio.h>.
3173
3174 2010-03-07  Bruno Haible  <bruno@clisp.org>
3175
3176         Fix test-dirent-safer link error.
3177         * modules/dirent-safer-tests (Makefile.am): Define
3178         test_dirent_safer_LDADD.
3179
3180 2010-03-07  Bruno Haible  <bruno@clisp.org>
3181
3182         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
3183         among default module list.
3184
3185 2010-03-07  Bruno Haible  <bruno@clisp.org>
3186
3187         Fix link error on platforms with GNU libiconv.
3188         * modules/unistr/u8-strcoll-tests (Makefile): Define
3189         test_u8_strcoll_LDADD.
3190         * modules/unistr/u16-strcoll-tests (Makefile): Define
3191         test_u16_strcoll_LDADD.
3192         * modules/unistr/u32-strcoll-tests (Makefile): Define
3193         test_u32_strcoll_LDADD.
3194
3195 2010-03-07  Bruno Haible  <bruno@clisp.org>
3196
3197         Use POSIX declarations for socket functions.
3198         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
3199         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
3200         rpl_sendto): Change declaration to match POSIX.
3201         * lib/connect.c (rpl_connect): Likewise.
3202         * lib/accept.c (rpl_accept): Likewise.
3203         * lib/bind.c (rpl_bind): Likewise.
3204         * lib/getpeername.c (rpl_getpeername): Likewise.
3205         * lib/getsockname.c (rpl_getsockname): Likewise.
3206         * lib/recv.c (rpl_recv): Likewise.
3207         * lib/send.c (rpl_send): Likewise.
3208         * lib/recvfrom.c (rpl_recvfrom): Likewise.
3209         * lib/sendto.c (rpl_sendto): Likewise.
3210
3211 2010-03-06  Bruno Haible  <bruno@clisp.org>
3212
3213         Clarify access, euidaccess, faccessat.
3214         * doc/posix-functions/faccessat.texi: Mention security problem under
3215         "Other problems", not "Portability problems".
3216         * doc/posix-functions/access.texi: Likewise. Mention a related security
3217         problem.
3218         * doc/glibc-functions/euidaccess.texi: Mention security problems.
3219         * lib/euidaccess.c: Add comments about platforms.
3220         * lib/unistd.in.h (access, euidaccess): Add warnings.
3221
3222 2010-03-07  Bruno Haible  <bruno@clisp.org>
3223
3224         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
3225         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
3226         (POSIX_SPAWN_SETSCHEDULER): Likewise.
3227         (POSIX_SPAWN_USEVFORK): Define in a way that works when
3228         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
3229         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
3230         declare when POSIX_SPAWN_SETSCHEDULER is zero.
3231         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
3232         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
3233         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
3234         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
3235         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
3236         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
3237         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
3238         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
3239         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
3240         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
3241         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
3242         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
3243         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
3244         Likewise.
3245         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
3246         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
3247         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
3248         Likewise.
3249         * tests/test-spawn.c (main): Make it work when
3250         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
3251
3252 2010-03-07  Bruno Haible  <bruno@clisp.org>
3253
3254         Fix incorrect Makefile.am generation in German locale.
3255         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
3256         Execute sed command with character range in C locale.
3257
3258 2010-03-06  Bruno Haible  <bruno@clisp.org>
3259
3260         Tests for module 'iconv-h'.
3261         * modules/iconv-h-tests: New file.
3262         * tests/test-iconv-h.c: New file.
3263
3264         New module 'iconv-h'.
3265         * modules/iconv-h: New file.
3266         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
3267         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
3268         (configure.ac): Remove gl_ICONV_H.
3269         (Makefile.am): Remove rule for iconv.h.
3270
3271 2010-03-06  Bruno Haible  <bruno@clisp.org>
3272
3273         More consistent naming of *.m4 files.
3274         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
3275         * modules/wctype (Files): Update.
3276
3277         More consistent naming of *.m4 files.
3278         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
3279         * modules/wchar (Files): Update.
3280
3281 2010-03-06  Jim Meyering  <meyering@redhat.com>
3282
3283         euidaccess: relax license to LGPLv2+
3284         * modules/euidaccess (License): Relax to LGPLv2+.
3285
3286 2010-03-06  Bruno Haible  <bruno@clisp.org>
3287
3288         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
3289         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
3290         (Makefile.am): Augment lib_SOURCES instead.
3291
3292 2010-03-04  Jim Meyering  <meyering@redhat.com>
3293
3294         utime: remove obsolete module
3295         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
3296         unnecessary for years, and has been marked as obsolete for 10 months.
3297         * modules/utime: Remove file.
3298         * lib/utime.c: Remove file.
3299         * m4/utime.m4: Remove file.
3300         * m4/utimes-null.m4: Remove file.
3301         * doc/posix-functions/utime.texi (utime): Remove reference to
3302         the module.  Move the sole "fixed by gnulib" item into the
3303         "problems not fixed by Gnulib" list.
3304         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
3305
3306 2010-03-05  Simon Josefsson  <simon@josefsson.org>
3307
3308         * modules/exit (License): Relax license to LGPLv2+.
3309         (Status): Mark as obsolete.
3310         * NEWS: Mention deprecated 'exit' module.
3311         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
3312         of now obsolete 'exit'.
3313
3314 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3315
3316         fts-lgpl: remove unused module
3317         * modules/fts-lgpl: Remove.
3318         * MODULES.html.sh (func_all_modules): Adjust.
3319         * check-module (find_included_lib_files): Adjust.
3320         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
3321
3322 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
3323
3324         copy-acl: enhance Solaris ACL error handling
3325         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
3326         * lib/set-mode-acl.c (qset_acl): Likewise.
3327
3328 2010-03-02  Bruno Haible  <bruno@clisp.org>
3329
3330         spawn: Don't override the system defined values on FreeBSD 8.
3331         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
3332         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
3333         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
3334         if HAVE_POSIX_SPAWN is 1.
3335         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
3336
3337 2010-03-01  Bruno Haible  <bruno@clisp.org>
3338
3339         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
3340         regarding Automake.
3341
3342 2010-02-25  Bruno Haible  <bruno@clisp.org>
3343
3344         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
3345         * gnulib-tool: Define 'echo' as a function only before the ksh alias
3346         setting, not afterwards.
3347         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
3348
3349 2010-02-24  Eric Blake  <eblake@redhat.com>
3350
3351         bootstrap, git-version-gen: use timestamp
3352         * build-aux/git-version-gen (scriptversion): Force UTC.
3353         * build-aux/bootstrap (scriptversion): New variable.
3354
3355         bootstrap: allow older git
3356         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
3357         older than 1.6.4.  Requested by the libvirt project.
3358
3359 2010-02-23  Eric Blake  <eblake@redhat.com>
3360
3361         warn-on-use: work with old autoconf
3362         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
3363         AS_VAR semantics of autoconf 2.60.
3364         Reported by Bruno Haible.
3365
3366         bootstrap: improve some comments
3367         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
3368         clarification comments.
3369
3370         gettimeofday: provide correct function
3371         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
3372         when replacement is declared, otherwise provide gettimeofday.
3373         Reported by Michael Goffioul.
3374
3375 2010-02-23  Jim Meyering  <meyering@redhat.com>
3376
3377         lib-ignore: relax license to "unlimited", not LGPLv2+
3378         * modules/lib-ignore (License): Relax to "unlimited".
3379
3380 2010-02-23  Jim Meyering  <meyering@redhat.com>
3381
3382         lib-ignore: relax license to LGPLv2+
3383         * modules/lib-ignore (License): Relax to LGPLv2+.
3384
3385 2010-02-22  Eric Blake  <eblake@redhat.com>
3386
3387         lseek: avoid bash 3.2 broken pipe bug
3388         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
3389         warning from bash 3.2.
3390         Reported by Ben Pfaff, with analysis from Bruno Haible.
3391
3392         bootstrap: support non-FSF copyright holder
3393         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
3394         bootstrap.conf override of COPYRIGHT_HOLDER.
3395         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
3396
3397         bootstrap: interoperate with gettext 0.14.1
3398         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
3399
3400         bootstrap: allow for alternate submodule location
3401         * build-aux/bootstrap (gnulib_path): New variable; use instead of
3402         hardcoding submodule location.
3403         (gnulib_mk): Allow direct use of Makefile.am.
3404
3405         bootstrap: use GNULIB_SRCDIR to reduce disk usage
3406         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
3407         rather than reconfiguring where the submodule points.
3408
3409         gettimeofday: restore support for platforms that lack function
3410         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
3411         replacement if function is missing.
3412         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
3413         * modules/sys_time (Makefile.am): Substitute it.
3414         * lib/sys_time.in.h (gettimeofday): Check it.
3415         Reported by Michael Goffioul.
3416
3417 2010-02-21  Bruno Haible  <bruno@clisp.org>
3418
3419         * lib/stdio.in.h (obstack_printf): Fix typo.
3420
3421 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
3422
3423         vc-list-files: use bzr ls's -R option
3424         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
3425         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
3426
3427 2010-02-21  Jim Meyering  <meyering@redhat.com>
3428
3429         init.sh: fix EXEEXT shims to work also for names like test-prog
3430         * tests/init.sh: Re-exec a better shell, when needed.
3431         If the current shell lacks support for posix $(...), an init.sh-using
3432         test will now try to find a shell that supports that.  If EXEEXT is
3433         nonempty, we also require support for hyphen-in-alias-name and shell
3434         substitutions like ${var#glob}.  Failure to find such a shell results
3435         in a skipped test.
3436
3437 2010-02-21  Bruno Haible  <bruno@clisp.org>
3438
3439         Really work around around "broken pipe" error message from bash 3.2.
3440         * gnulib-tool (func_reset_sigpipe): Remove function.
3441         (echo): In bash 3.2, define to a function that uses printf.
3442         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
3443
3444 2010-02-20  Bruno Haible  <bruno@clisp.org>
3445
3446         Restore support for automake 1.9.6 with autoconf 2.61.
3447         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
3448         Reported by James Youngman <jay@gnu.org>.
3449
3450 2010-02-20  Bruno Haible  <bruno@clisp.org>
3451
3452         Improve *printf warning condition.
3453         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
3454         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
3455         and the function is overridden due to SIGPIPE emulation.
3456
3457 2010-02-20  Bruno Haible  <bruno@clisp.org>
3458
3459         * lib/stdio.in.h: Tweak comments.
3460
3461 2010-02-19  Bruno Haible  <bruno@clisp.org>
3462
3463         Make it easier to find modules. New gnulib-tool option '--find'.
3464         * gnulib-tool: New option --find.
3465         (func_usage): Document it.
3466         (func_sanitize_modulelist): New function, extracted from
3467         func_all_modules.
3468         (func_all_modules): Invoke it.
3469         * doc/gnulib-tool.texi (Which modules?): New node.
3470
3471 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
3472
3473         * lib/sys_select.in.h: Provide select replacement even if
3474         sys/select.h exists on a system, for Interix.
3475
3476 2010-02-18  Jim Meyering  <meyering@redhat.com>
3477
3478         init.sh: don't use $(...) just yet
3479         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
3480         to accommodate e.g., Solaris' /bin/sh.
3481
3482 2010-02-17  Bruno Haible  <bruno@clisp.org>
3483
3484         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
3485         Reported by Ludovic Courtès <ludo@gnu.org>.
3486
3487 2010-02-16  Simon Josefsson  <simon@josefsson.org>
3488
3489         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
3490         linking with -lintl.
3491
3492 2010-02-17  Simon Josefsson  <simon@josefsson.org>
3493
3494         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
3495         if not provided by the system's netdb.h.  Reported by
3496         ludo@gnu.org (Ludovic Courtès).
3497
3498 2010-02-15  Jim Meyering  <meyering@redhat.com>
3499
3500         init.sh: improve portability and efficiency
3501         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
3502         "dummy" in a for loop.
3503         Use '!', not '^' to select the complement of a character set used
3504         in a "case" statement.
3505         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
3506         Suggestions from Eric Blake.
3507
3508         init.sh: automatically accommodate programs with the .exe suffix
3509         Automatically arrange for an invocation of "prog" to execute the
3510         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
3511         may use the simpler "prog", yet still work when built on a system
3512         that requires specifying the added suffix.
3513         Do this by constructing a function named "prog" that invokes
3514         "prog.exe" for each .exe file in selected directories.
3515         * tests/init.sh (find_exe_basenames_): New function.
3516         (create_exe_shim_functions_): New function.
3517         (path_prepend_): Use it.
3518
3519         maint.mk: mark syntax-check sc_*.m rules as .PHONY
3520         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
3521         "make -t syntax-check" doesn't create a ton of sc_*.m files.
3522
3523 2010-02-14  Jim Meyering  <meyering@redhat.com>
3524
3525         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
3526         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
3527         (sc_prohibit_hash_pjw_without_use): New rule.
3528
3529         maint.mk: allow the default upload destination dir to be overridden
3530         * top/maint.mk (upload_dest_dir_): Define with a default that
3531         preserves the status quo.
3532         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
3533         Reported by Peter Simons.
3534
3535         maint.mk: prohibit inclusion of "hash.h" without_use
3536         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
3537
3538 2010-02-10  Jim Meyering  <meyering@redhat.com>
3539
3540         maint.mk: prohibit inclusion of "ignore-value.h" without_use
3541         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
3542
3543 2010-02-09  Eric Blake  <ebb9@byu.net>
3544         and Bruno Haible  <bruno@clisp.org>
3545
3546         obstack-printf-posix: ensure declaration
3547         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
3548         extracted from gl_FUNC_OBSTACK_PRINTF.
3549         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
3550         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
3551         Likewise.
3552         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
3553         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
3554         0.
3555
3556 2010-02-08  Bruno Haible  <bruno@clisp.org>
3557
3558         gnulib-tool: Fix typo in 2010-02-07 commit.
3559         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
3560         Reported by Eric Blake.
3561
3562 2010-02-07  Bruno Haible  <bruno@clisp.org>
3563
3564         gnulib-tool: Fix up caching patches.
3565         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
3566         option --no-cache. Use associative arrays when supported by the shell.
3567         (sed_comments): New variable.
3568         (modcache): Renamed from do_cache.
3569         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
3570         abbreviate unnecessarily.
3571         (have_associative): New variable.
3572         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
3573         way also for ksh and zsh.
3574         (func_init_sed_convert_to_cache_statements): New function, extracted
3575         from func_cache_lookup_module. Add support for associative arrays.
3576         Don't set the c_MODULE_cached variable here. Ignore all lines before
3577         the first field header. Remove only the final newline, not all trailing
3578         newlines. Support empty fields correctly. Limit the use of 'eval' to
3579         assignments.
3580         (func_get_description, func_get_status, func_get_notice,
3581         func_get_applicability, func_get_filelist, func_get_dependencies,
3582         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
3583         func_get_automake_snippet, func_get_include_directive,
3584         func_get_link_directive, func_get_license, func_get_maintainer):
3585         Update documentation. List the unoptimized code first. Add support for
3586         associative arrays. Limit the use of 'eval' to assignments.
3587         (func_get_applicability): Undo stylistic pessimisations.
3588         (func_get_automake_snippet, func_get_include_directive): Reduce code
3589         duplication.
3590         (func_modules_transitive_closure, func_modules_add_dummy,
3591         func_modules_notice, func_modules_to_filelist, func_add_file,
3592         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
3593         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
3594         func_create_testdir, func_create_megatestdir): Update documentation.
3595
3596 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3597
3598         * gnulib-tool (func_cache_lookup_module): Store the module name
3599         belonging to the cache variable; error out if two different
3600         module names map to the same cache variable name.
3601
3602 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3603
3604         gnulib-tool: Make caching optional.
3605         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
3606         Update matching short versions of --no-changelog.
3607         (func_usage): Update.
3608         (sed_extract_cache_prog): Renamed from ...
3609         (sed_extract_prog): ... this; revert to old extraction script.
3610         (func_get_description, func_get_status)
3611         (func_get_notice, func_get_applicability, func_get_filelist)
3612         (func_get_dependencies, func_get_autoconf_early_snippet)
3613         (func_get_autoconf_snippet, func_get_automake_snippet)
3614         (func_get_include_directive, func_get_link_directive)
3615         (func_get_license, func_get_maintainer): If $do_cache is false,
3616         use old, non-caching extraction scripts.
3617         Suggestion by Bruno Haible.
3618
3619 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3620
3621         gnulib-tool: cache module metainformation.
3622         * gnulib-tool (sed_extract_prog): Match newline before each
3623         header, and rewrite header to a shell variable suffix.
3624         (func_cache_var, func_cache_lookup_module): New functions,
3625         to turn a module name into a cache variable prefix, and to
3626         look up and cache module metainformation.
3627         (func_get_description, func_get_status)
3628         (func_get_notice, func_get_applicability, func_get_filelist)
3629         (func_get_dependencies, func_get_autoconf_early_snippet)
3630         (func_get_autoconf_snippet, func_get_automake_snippet)
3631         (func_get_include_directive, func_get_link_directive)
3632         (func_get_license, func_get_maintainer): Use
3633         func_cache_lookup_module.
3634
3635 2010-02-07  Bruno Haible  <bruno@clisp.org>
3636
3637         fnctl: Fix missing dependency.
3638         * modules/fcntl (Depends-on): Add getdtablesize.
3639         Reported by John W. Eaton <jwe@gnu.org>.
3640
3641 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
3642
3643         Argp: fix recognition of short alias options.
3644
3645         * lib/argp-parse.c (convert_options): Fix improper use of
3646         `|' between character values.
3647         * tests/test-argp.c (group1_option): New alias option
3648         --read (-r).
3649         (group1_parser): Special handling for 'r'.
3650         (test15): New test case.
3651         (test_fun): Add test15.
3652         * tests/test-argp-2.sh: Update expected --help and --usage
3653         outputs.
3654
3655 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
3656
3657         * tests/test-argp.c: Fix indentation.
3658
3659 2010-02-04  Eric Blake  <ebb9@byu.net>
3660
3661         gettimeofday: expose type of second argument
3662         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
3663         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
3664         * tests/test-gettimeofday.c: Use it to silence warning.
3665         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
3666         the issue.
3667
3668 2010-02-03  Jim Meyering  <meyering@redhat.com>
3669
3670         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
3671         * lib/regcomp.c (TYPE_SIGNED): Define.
3672         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
3673
3674         regcomp.c: avoid a new -Wshadow warning
3675         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
3676
3677 2010-02-01  Jim Meyering  <meyering@redhat.com>
3678
3679         removing useless parentheses in cpp #define directives
3680         For motivation, see commit c0221df4, "define STREQ(a,b)
3681         consistently, removing useless parentheses"
3682         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
3683         * lib/mountlist.c (MNT_IGNORE): Likewise.
3684         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
3685
3686 2010-02-01  Eric Blake  <ebb9@byu.net>
3687
3688         sys_time: use link-warning
3689         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
3690         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
3691         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
3692         * modules/sys_time (Depends-on): Add warn-on-use.
3693         (Makefile.am): Always build replacement.
3694         (configure.ac): Update substitutions.
3695         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
3696         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
3697         bother with SYS_TIME_H.
3698         * modules/gettimeofday (configure.ac): Declare indicator.
3699         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
3700         in use.
3701
3702         closein-tests: silence compiler warning
3703         * tests/test-closein.c (main): Ignore fread result.
3704         * modules/closein-tests (Depends-on): Add ignore-value.
3705
3706         tests: silence warning about system return
3707         * tests/test-areadlink-with-size.c (main): Ignore system result.
3708         * tests/test-areadlink.c (main): Likewise.
3709         * tests/test-areadlinkat-with-size.c (main): Likewise.
3710         * tests/test-areadlinkat.c (main): Likewise.
3711         * tests/test-canonicalize-lgpl.c (main): Likewise.
3712         * tests/test-canonicalize.c (main): Likewise.
3713         * tests/test-chown.c (main): Likewise.
3714         * tests/test-fchownat.c (main): Likewise.
3715         * tests/test-fdutimensat.c (main): Likewise.
3716         * tests/test-fstatat.c (main): Likewise.
3717         * tests/test-futimens.c (main): Likewise.
3718         * tests/test-lchown.c (main): Likewise.
3719         * tests/test-link.c (main): Likewise.
3720         * tests/test-linkat.c (main): Likewise.
3721         * tests/test-lstat.c (main): Likewise.
3722         * tests/test-mkdir.c (main): Likewise.
3723         * tests/test-mkdirat.c (main): Likewise.
3724         * tests/test-mkfifo.c (main): Likewise.
3725         * tests/test-mkfifoat.c (main): Likewise.
3726         * tests/test-mknod.c (main): Likewise.
3727         * tests/test-readlink.c (main): Likewise.
3728         * tests/test-remove.c (main): Likewise.
3729         * tests/test-rename.c (main): Likewise.
3730         * tests/test-renameat.c (main): Likewise.
3731         * tests/test-rmdir.c (main): Likewise.
3732         * tests/test-symlink.c (main): Likewise.
3733         * tests/test-symlinkat.c (main): Likewise.
3734         * tests/test-unlink.c (main): Likewise.
3735         * tests/test-unlinkat.c (main): Likewise.
3736         * tests/test-utimens.c (main): Likewise.
3737         * tests/test-utimensat.c (main): Likewise.
3738         * modules/areadlink-tests (Depends-on): Add ignore-value.
3739         * modules/areadlink-with-size-tests (Depends-on): Likewise.
3740         * modules/areadlinkat-tests (Depends-on): Likewise.
3741         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
3742         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
3743         * modules/canonicalize-tests (Depends-on): Likewise.
3744         * modules/chown-tests (Depends-on): Likewise.
3745         * modules/fdutimensat-tests (Depends-on): Likewise.
3746         * modules/futimens-tests (Depends-on): Likewise.
3747         * modules/lchown-tests (Depends-on): Likewise.
3748         * modules/link-tests (Depends-on): Likewise.
3749         * modules/linkat-tests (Depends-on): Likewise.
3750         * modules/lstat-tests (Depends-on): Likewise.
3751         * modules/mkdir-tests (Depends-on): Likewise.
3752         * modules/mkfifo-tests (Depends-on): Likewise.
3753         * modules/mkfifoat-tests (Depends-on): Likewise.
3754         * modules/mknod-tests (Depends-on): Likewise.
3755         * modules/openat-tests (Depends-on): Likewise.
3756         * modules/readlink-tests (Depends-on): Likewise.
3757         * modules/remove-tests (Depends-on): Likewise.
3758         * modules/rename-tests (Depends-on): Likewise.
3759         * modules/renameat-tests (Depends-on): Likewise.
3760         * modules/rmdir-tests (Depends-on): Likewise.
3761         * modules/symlink-tests (Depends-on): Likewise.
3762         * modules/symlinkat-tests (Depends-on): Likewise.
3763         * modules/unlink-tests (Depends-on): Likewise.
3764         * modules/utimens-tests (Depends-on): Likewise.
3765         * modules/utimensat-tests (Depends-on): Likewise.
3766
3767 2010-01-31  Bruno Haible  <bruno@clisp.org>
3768
3769         Perform the same test for many <math.h> functions.
3770         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
3771         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
3772         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
3773         of gl_MATHFUNC.
3774         * modules/acos (configure.ac): Likewise.
3775         * modules/asin (configure.ac): Likewise.
3776         * modules/atan (configure.ac): Likewise.
3777         * modules/atan2 (configure.ac): Likewise.
3778         * modules/cbrt (configure.ac): Likewise.
3779         * modules/copysign (configure.ac): Likewise.
3780         * modules/cos (configure.ac): Likewise.
3781         * modules/cosh (configure.ac): Likewise.
3782         * modules/erf (configure.ac): Likewise.
3783         * modules/erfc (configure.ac): Likewise.
3784         * modules/exp (configure.ac): Likewise.
3785         * modules/fmod (configure.ac): Likewise.
3786         * modules/hypot (configure.ac): Likewise.
3787         * modules/j0 (configure.ac): Likewise.
3788         * modules/j1 (configure.ac): Likewise.
3789         * modules/jn (configure.ac): Likewise.
3790         * modules/lgamma (configure.ac): Likewise.
3791         * modules/log (configure.ac): Likewise.
3792         * modules/log10 (configure.ac): Likewise.
3793         * modules/log1p (configure.ac): Likewise.
3794         * modules/pow (configure.ac): Likewise.
3795         * modules/remainder (configure.ac): Likewise.
3796         * modules/sin (configure.ac): Likewise.
3797         * modules/sinh (configure.ac): Likewise.
3798         * modules/tan (configure.ac): Likewise.
3799         * modules/tanh (configure.ac): Likewise.
3800         * modules/y0 (configure.ac): Likewise.
3801         * modules/y1 (configure.ac): Likewise.
3802         * modules/yn (configure.ac): Likewise.
3803         Suggested by Paolo Bonzini.
3804
3805 2010-01-31  Bruno Haible  <bruno@clisp.org>
3806
3807         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
3808
3809 2010-01-31  Bruno Haible  <bruno@clisp.org>
3810
3811         Work around getdelim() bug on FreeBSD 8.0.
3812         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
3813         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
3814         not work.
3815         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
3816         is 1.
3817         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
3818         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
3819         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
3820         a non-zero size.
3821         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
3822
3823 2010-01-31  Bruno Haible  <bruno@clisp.org>
3824
3825         Work around getline() bug on FreeBSD 8.0.
3826         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
3827         and a non-zero size.
3828         * tests/test-getline.c (main): Likewise.
3829         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
3830         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
3831
3832 2010-01-28  Eric Blake  <ebb9@byu.net>
3833
3834         regex: fix build failure
3835         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
3836         platforms.
3837
3838 2010-01-28  Jim Meyering  <meyering@redhat.com>
3839
3840         regex: do not ignore memory allocation failure
3841         * lib/regex_internal.c (create_cd_newstate): Detect
3842         re_node_set_init_copy failure.   Extracted from glibc commit
3843         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
3844
3845         regex: sync more white-space changes from libc
3846         * lib/regex_internal.c: White-space only changes.
3847         * lib/regexec.c: Likewise.
3848
3849         regex: add many uses of __attribute_warn_unused_result__
3850         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
3851         * lib/regexec.c: Likewise.
3852         Extracted from a messy glibc commit.
3853
3854         regcomp.c: spelling and merge-artifact from glibc
3855         * lib/regcomp.c: Merge remainder of glibc's
3856         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
3857
3858         regcomp.c: sync white-space changes from glibc
3859         * lib/regcomp.c: Merge to accommodate white space
3860         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
3861
3862         regcomp.c: do not ignore internal return values
3863         * lib/regcomp.c: Do not ignore internal return values.
3864         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
3865         but without its white-space changes and spelling fixes.
3866
3867         regex_internal.h: define __attribute_warn_unused_result__
3868         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
3869
3870         maint: add a syntax-check rule to check for vulnerable Makefile.in
3871         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
3872
3873 2010-01-27  Jim Meyering  <meyering@redhat.com>
3874
3875         ncftpput-ftp: clean up spaces
3876         * build-aux/ncftpput-ftp: Make Copyright line consistent.
3877         Remove trailing blanks.
3878
3879 2010-01-27  Simon Josefsson  <simon@josefsson.org>
3880
3881         * build-aux/git-version-gen: Fix copyright statement.
3882         * build-aux/gnupload: Likewise.
3883         * tests/test-arcfour.c: Likewise.
3884         * tests/test-arctwo.c: Likewise.
3885         * tests/test-count-one-bits.c: Likewise.
3886         * tests/test-crc.c: Likewise.
3887         * tests/test-des.c: Likewise.
3888         * tests/test-gc-arcfour.c: Likewise.
3889         * tests/test-gc-arctwo.c: Likewise.
3890         * tests/test-gc-des.c: Likewise.
3891         * tests/test-gc-hmac-md5.c: Likewise.
3892         * tests/test-gc-hmac-sha1.c: Likewise.
3893         * tests/test-gc-md2.c: Likewise.
3894         * tests/test-gc-md4.c: Likewise.
3895         * tests/test-gc-md5.c: Likewise.
3896         * tests/test-gc-pbkdf2-sha1.c: Likewise.
3897         * tests/test-gc-rijndael.c: Likewise.
3898         * tests/test-gc-sha1.c: Likewise.
3899         * tests/test-gc.c: Likewise.
3900         * tests/test-gethostname.c: Likewise.
3901         * tests/test-gettimeofday.c: Likewise.
3902         * tests/test-hash.c: Likewise.
3903         * tests/test-hmac-md5.c: Likewise.
3904         * tests/test-hmac-sha1.c: Likewise.
3905         * tests/test-md2.c: Likewise.
3906         * tests/test-md4.c: Likewise.
3907         * tests/test-md5.c: Likewise.
3908         * tests/test-memchr.c: Likewise.
3909         * tests/test-memchr2.c: Likewise.
3910         * tests/test-memcmp.c: Likewise.
3911         * tests/test-memmem.c: Likewise.
3912         * tests/test-memrchr.c: Likewise.
3913         * tests/test-rawmemchr.c: Likewise.
3914         * tests/test-read-file.c: Likewise.
3915         * tests/test-rijndael.c: Likewise.
3916         * tests/test-sockets.c: Likewise.
3917         * tests/test-strchrnul.c: Likewise.
3918         * tests/test-strstr.c: Likewise.
3919         * tests/test-strtod.c: Likewise.
3920         * build-aux/ncftpput-ftp: Likewise.
3921
3922 2010-01-26  Eric Blake  <ebb9@byu.net>
3923
3924         ignore-value: update recommended header name
3925         * modules/ignore-value (Include): Only use <> for headers that
3926         exist in glibc.
3927
3928 2010-01-26  Jim Meyering  <meyering@redhat.com>
3929
3930         test-userspec.c: avoid compiler warnings
3931         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
3932         and "initialization discards qualifiers..." warnings.
3933         Put the first "uid" in its own scope, and make char* members "const".
3934
3935 2010-01-25  Bruno Haible  <bruno@clisp.org>
3936
3937         gnulib-tool: Make warning diagnostics consistent.
3938         * gnulib-tool (func_warning): New function.
3939         Use it everywhere where gnulib-tool produces output to stderr and it is
3940         not a fatal error.
3941
3942 2010-01-25  Bruno Haible  <bruno@clisp.org>
3943
3944         Fix test dependencies.
3945         * modules/xstrtol-tests (Depends-on): Add inttypes.
3946         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
3947
3948 2010-01-25 Pádraig Brady <P@draigBrady.com>
3949
3950         syntax-check: detect incorrect boolean macro values in config.h
3951         * modules/maintainer-makefile (configure.ac): Parameterize the location
3952         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
3953         The logic is from Eric Blake and the location indicated by Jim Meyering.
3954         Note the more natural CONFIG_HEADER name is prohibited by automake
3955         for backwards compatibility reasons.
3956         * top/maint.mk (sc_Wundef_boolean): New rule.
3957
3958 2010-01-25  Jim Meyering  <meyering@redhat.com>
3959
3960         bootstrap: detect MacOS 10.6's shasum, too
3961         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
3962         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
3963
3964 2010-01-23  Jim Meyering  <meyering@redhat.com>
3965
3966         xstrtoll: new module
3967         * modules/xstrtoll: New file.
3968         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
3969         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
3970         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
3971         ./configure fails if you use this module and lack "long long".
3972         * modules/xstrtoll-tests: New module.
3973         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
3974         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
3975         new init.sh-based test framework.
3976
3977 2010-01-24  Bruno Haible  <bruno@clisp.org>
3978
3979         Tests for module 'yn'.
3980         * modules/yn-tests: New file.
3981         * tests/test-yn.c: New file.
3982
3983         Tests for module 'y1'.
3984         * modules/y1-tests: New file.
3985         * tests/test-y1.c: New file.
3986
3987         Tests for module 'y0'.
3988         * modules/y0-tests: New file.
3989         * tests/test-y0.c: New file.
3990
3991         Tests for module 'tanh'.
3992         * modules/tanh-tests: New file.
3993         * tests/test-tanh.c: New file.
3994
3995         Tests for module 'tan'.
3996         * modules/tan-tests: New file.
3997         * tests/test-tan.c: New file.
3998
3999         Tests for module 'sqrt'.
4000         * modules/sqrt-tests: New file.
4001         * tests/test-sqrt.c: New file.
4002
4003         Tests for module 'sinh'.
4004         * modules/sinh-tests: New file.
4005         * tests/test-sinh.c: New file.
4006
4007         Tests for module 'sin'.
4008         * modules/sin-tests: New file.
4009         * tests/test-sin.c: New file.
4010
4011         Tests for module 'rint'.
4012         * modules/rint-tests: New file.
4013         * tests/test-rint.c: New file.
4014
4015         Tests for module 'remainder'.
4016         * modules/remainder-tests: New file.
4017         * tests/test-remainder.c: New file.
4018
4019         Tests for module 'pow'.
4020         * modules/pow-tests: New file.
4021         * tests/test-pow.c: New file.
4022
4023         Tests for module 'nextafter'.
4024         * modules/nextafter-tests: New file.
4025         * tests/test-nextafter.c: New file.
4026
4027         Tests for module 'modf'.
4028         * modules/modf-tests: New file.
4029         * tests/test-modf.c: New file.
4030
4031         Tests for module 'logb'.
4032         * modules/logb-tests: New file.
4033         * tests/test-logb.c: New file.
4034
4035         Tests for module 'log1p'.
4036         * modules/log1p-tests: New file.
4037         * tests/test-log1p.c: New file.
4038
4039         Tests for module 'log10'.
4040         * modules/log10-tests: New file.
4041         * tests/test-log10.c: New file.
4042
4043         Tests for module 'log'.
4044         * modules/log-tests: New file.
4045         * tests/test-log.c: New file.
4046
4047         Tests for module 'lgamma'.
4048         * modules/lgamma-tests: New file.
4049         * tests/test-lgamma.c: New file.
4050
4051         Tests for module 'ldexp'.
4052         * modules/ldexp-tests: New file.
4053         * tests/test-ldexp.c: New file.
4054
4055         Tests for module 'jn'.
4056         * modules/jn-tests: New file.
4057         * tests/test-jn.c: New file.
4058
4059         Tests for module 'j1'.
4060         * modules/j1-tests: New file.
4061         * tests/test-j1.c: New file.
4062
4063         Tests for module 'j0'.
4064         * modules/j0-tests: New file.
4065         * tests/test-j0.c: New file.
4066
4067         Tests for module 'hypot'.
4068         * modules/hypot-tests: New file.
4069         * tests/test-hypot.c: New file.
4070
4071         Tests for module 'fmod'.
4072         * modules/fmod-tests: New file.
4073         * tests/test-fmod.c: New file.
4074
4075         Tests for module 'fabs'.
4076         * modules/fabs-tests: New file.
4077         * tests/test-fabs.c: New file.
4078
4079         Tests for module 'exp'.
4080         * modules/exp-tests: New file.
4081         * tests/test-exp.c: New file.
4082
4083         Tests for module 'erfc'.
4084         * modules/erfc-tests: New file.
4085         * tests/test-erfc.c: New file.
4086
4087         Tests for module 'erf'.
4088         * modules/erf-tests: New file.
4089         * tests/test-erf.c: New file.
4090
4091         Tests for module 'cosh'.
4092         * modules/cosh-tests: New file.
4093         * tests/test-cosh.c: New file.
4094
4095         Tests for module 'cos'.
4096         * modules/cos-tests: New file.
4097         * tests/test-cos.c: New file.
4098
4099         Tests for module 'copysign'.
4100         * modules/copysign-tests: New file.
4101         * tests/test-copysign.c: New file.
4102
4103         Tests for module 'cbrt'.
4104         * modules/cbrt-tests: New file.
4105         * tests/test-cbrt.c: New file.
4106
4107         Tests for module 'atan2'.
4108         * modules/atan2-tests: New file.
4109         * tests/test-atan2.c: New file.
4110
4111         Tests for module 'atan'.
4112         * modules/atan-tests: New file.
4113         * tests/test-atan.c: New file.
4114
4115         Tests for module 'asin'.
4116         * modules/asin-tests: New file.
4117         * tests/test-asin.c: New file.
4118
4119         Tests for module 'acos'.
4120         * modules/acos-tests: New file.
4121         * tests/test-acos.c: New file.
4122
4123 2010-01-24  Bruno Haible  <bruno@clisp.org>
4124
4125         Fix tests for common <math.h> functions.
4126         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
4127         code snippet that references the function pointer, rather than merely
4128         calling the function. Substitute the FUNC_LIBM variable.
4129         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
4130         * modules/acos (configure.ac): Likewise.
4131         * modules/asin (configure.ac): Likewise.
4132         * modules/atan (configure.ac): Likewise.
4133         * modules/atan2 (configure.ac): Likewise.
4134         * modules/cbrt (configure.ac): Likewise.
4135         * modules/copysign (configure.ac): Likewise.
4136         * modules/cos (configure.ac): Likewise.
4137         * modules/cosh (configure.ac): Likewise.
4138         * modules/erf (configure.ac): Likewise.
4139         * modules/erfc (configure.ac): Likewise.
4140         * modules/exp (configure.ac): Likewise.
4141         * modules/fabs (configure.ac): Likewise.
4142         * modules/fmod (configure.ac): Likewise.
4143         * modules/hypot (configure.ac): Likewise.
4144         * modules/j0 (configure.ac): Likewise.
4145         * modules/j1 (configure.ac): Likewise.
4146         * modules/jn (configure.ac): Likewise.
4147         * modules/ldexp (configure.ac): Likewise.
4148         * modules/lgamma (configure.ac): Likewise.
4149         * modules/log (configure.ac): Likewise.
4150         * modules/log10 (configure.ac): Likewise.
4151         * modules/log1p (configure.ac): Likewise.
4152         * modules/logb (configure.ac): Likewise.
4153         * modules/modf (configure.ac): Likewise.
4154         * modules/nextafter (configure.ac): Likewise.
4155         * modules/pow (configure.ac): Likewise.
4156         * modules/remainder (configure.ac): Likewise.
4157         * modules/rint (configure.ac): Likewise.
4158         * modules/sin (configure.ac): Likewise.
4159         * modules/sinh (configure.ac): Likewise.
4160         * modules/tan (configure.ac): Likewise.
4161         * modules/tanh (configure.ac): Likewise.
4162         * modules/y0 (configure.ac): Likewise.
4163         * modules/y1 (configure.ac): Likewise.
4164         * modules/yn (configure.ac): Likewise.
4165
4166 2010-01-24  Bruno Haible  <bruno@clisp.org>
4167
4168         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
4169         * tests/test-acosl.c (x): New variable.
4170         (main): Store argument in x and fetch it from x.
4171         * tests/test-asinl.c (x): New variable.
4172         (main): Store argument in x and fetch it from x.
4173         * tests/test-atanl.c (x): New variable.
4174         (main): Store argument in x and fetch it from x.
4175         * tests/test-cosl.c (x): New variable.
4176         (main): Store argument in x and fetch it from x.
4177         * tests/test-expl.c (x): New variable.
4178         (main): Store argument in x and fetch it from x.
4179         * tests/test-logl.c (x): New variable.
4180         (main): Store argument in x and fetch it from x.
4181         * tests/test-sinl.c (x): New variable.
4182         (main): Store argument in x and fetch it from x.
4183         * tests/test-sqrtl.c (x): New variable.
4184         (main): Store argument in x and fetch it from x.
4185         * tests/test-tanl.c (x): New variable.
4186         (main): Store argument in x and fetch it from x.
4187
4188 2010-01-24  Bruno Haible  <bruno@clisp.org>
4189
4190         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
4191         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
4192         assignments to the initial TESTS_ENVIRONMENT.
4193         * doc/gnulib.texi (Unit test modules): Document it.
4194         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
4195         TESTS_ENVIRONMENT.
4196         * modules/btowc-tests (Makefile.am): Likewise.
4197         * modules/c-stack-tests (Makefile.am): Likewise.
4198         * modules/c-strcase-tests (Makefile.am): Likewise.
4199         * modules/copy-file-tests (Makefile.am): Likewise.
4200         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
4201         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
4202         * modules/mbrtowc-tests (Makefile.am): Likewise.
4203         * modules/mbscasecmp-tests (Makefile.am): Likewise.
4204         * modules/mbscasestr-tests (Makefile.am): Likewise.
4205         * modules/mbschr-tests (Makefile.am): Likewise.
4206         * modules/mbscspn-tests (Makefile.am): Likewise.
4207         * modules/mbsinit-tests (Makefile.am): Likewise.
4208         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
4209         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
4210         * modules/mbspbrk-tests (Makefile.am): Likewise.
4211         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
4212         * modules/mbsrchr-tests (Makefile.am): Likewise.
4213         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
4214         * modules/mbsspn-tests (Makefile.am): Likewise.
4215         * modules/mbsstr-tests (Makefile.am): Likewise.
4216         * modules/nl_langinfo-tests (Makefile.am): Likewise.
4217         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
4218         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
4219         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
4220         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
4221         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
4222         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
4223         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
4224         * modules/wcrtomb-tests (Makefile.am): Likewise.
4225         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
4226         * modules/wcsrtombs-tests (Makefile.am): Likewise.
4227         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
4228         assignments from TESTS_ENVIRONMENT.
4229         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
4230         augmentation.
4231         * modules/argp-version-etc-tests (Makefile.am): Likewise.
4232         * modules/atexit-tests (Makefile.am): Likewise.
4233         * modules/binary-io-tests (Makefile.am): Likewise.
4234         * modules/closein-tests (Makefile.am): Likewise.
4235         * modules/dprintf-posix-tests (Makefile.am): Likewise.
4236         * modules/exclude-tests (Makefile.am): Likewise.
4237         * modules/fflush-tests (Makefile.am): Likewise.
4238         * modules/fpending-tests (Makefile.am): Likewise.
4239         * modules/fprintf-posix-tests (Makefile.am): Likewise.
4240         * modules/freadahead-tests (Makefile.am): Likewise.
4241         * modules/freadptr-tests (Makefile.am): Likewise.
4242         * modules/freadseek-tests (Makefile.am): Likewise.
4243         * modules/fseek-tests (Makefile.am): Likewise.
4244         * modules/fseeko-tests (Makefile.am): Likewise.
4245         * modules/ftell-tests (Makefile.am): Likewise.
4246         * modules/ftello-tests (Makefile.am): Likewise.
4247         * modules/idpriv-drop-tests (Makefile.am): Likewise.
4248         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
4249         * modules/lseek-tests (Makefile.am): Likewise.
4250         * modules/parse-duration-tests (Makefile.am): Likewise.
4251         * modules/perror-tests (Makefile.am): Likewise.
4252         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
4253         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
4254         * modules/pipe-tests (Makefile.am): Likewise.
4255         * modules/pread-tests (Makefile.am): Likewise.
4256         * modules/printf-posix-tests (Makefile.am): Likewise.
4257         * modules/select-tests (Makefile.am): Likewise.
4258         * modules/sigpipe-tests (Makefile.am): Likewise.
4259         * modules/tsearch-tests (Makefile.am): Likewise.
4260         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
4261         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
4262         * modules/uniname/uniname-tests (Makefile.am): Likewise.
4263         * modules/uniwidth/width-tests (Makefile.am): Likewise.
4264         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
4265         * modules/version-etc-tests (Makefile.am): Likewise.
4266         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
4267         * modules/vprintf-posix-tests (Makefile.am): Likewise.
4268         * modules/xalloc-die-tests (Makefile.am): Likewise.
4269         * modules/xprintf-posix-tests (Makefile.am): Likewise.
4270         * modules/xstrtoimax-tests (Makefile.am): Likewise.
4271         * modules/xstrtol-tests (Makefile.am): Likewise.
4272         * modules/xstrtoumax-tests (Makefile.am): Likewise.
4273         * modules/yesno-tests (Makefile.am): Likewise.
4274         Suggested by Jim Meyering.
4275
4276 2010-01-24  Bruno Haible  <bruno@clisp.org>
4277
4278         More documentation.
4279         * doc/gnulib.texi (Writing modules): New chapter.
4280         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
4281         the new chapter.
4282
4283 2010-01-24  Jim Meyering  <meyering@redhat.com>
4284
4285         maint.mk: do not prepend "./" after filtering
4286         * top/maint.mk (_prepend_srcdir_prefix): New variable
4287         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
4288         "./" when $(srcdir) is ".".
4289
4290         define STREQ(a,b) consistently, removing useless parentheses
4291         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
4292         since the only risk is that "a" or "b" contains an unparenthesized
4293         comma, but if either did that, STREQ would have 3 or more arguments.
4294         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
4295         * lib/fts.c (STREQ): Remove unnecessary parentheses.
4296         * lib/hash-triple.c (STREQ): Likewise.
4297         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
4298         * lib/getugroups.c (STREQ): Likewise.
4299
4300 2010-01-23  Jim Meyering  <meyering@redhat.com>
4301
4302         maint.mk: fix syntax-check in a non-srcdir build directory
4303         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
4304         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
4305
4306 2010-01-22  Jim Meyering  <meyering@redhat.com>
4307
4308         userspec: add unit tests
4309         * tests/test-userspec.c: New file.
4310         * modules/userspec-tests: Likewise.
4311
4312 2010-01-21  Jim Meyering  <meyering@redhat.com>
4313
4314         maint.mk: handle source file names containing "." robustly
4315         * top/maint.mk (_dot_escaped_srcdir): Define.
4316         (VC_LIST): Use it in LHS of sed substitution.
4317
4318 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
4319
4320         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
4321         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
4322         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
4323         from a non-srcdir build.
4324
4325 2010-01-20  Eric Blake  <ebb9@byu.net>
4326
4327         warn-on-use: use instead of link-warning
4328         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
4329         * modules/unistd (Depends-on, Makefile.am): Likewise.
4330         * modules/arpa_inet (Depends-on): Replace link-warning with
4331         warn-on-use.
4332         (Makefile.am): Update rules accordingly.
4333         * modules/ctype (Depends-on, Makefile.am): Likewise.
4334         * modules/dirent (Depends-on, Makefile.am): Likewise.
4335         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
4336         * modules/inttypes (Depends-on, Makefile.am): Likewise.
4337         * modules/langinfo (Depends-on, Makefile.am): Likewise.
4338         * modules/locale (Depends-on, Makefile.am): Likewise.
4339         * modules/math (Depends-on, Makefile.am): Likewise.
4340         * modules/search (Depends-on, Makefile.am): Likewise.
4341         * modules/signal (Depends-on, Makefile.am): Likewise.
4342         * modules/spawn (Depends-on, Makefile.am): Likewise.
4343         * modules/stdlib (Depends-on, Makefile.am): Likewise.
4344         * modules/string (Depends-on, Makefile.am): Likewise.
4345         * modules/strings (Depends-on, Makefile.am): Likewise.
4346         * modules/sys_file (Depends-on, Makefile.am): Likewise.
4347         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
4348         * modules/sys_select (Depends-on, Makefile.am): Likewise.
4349         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
4350         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
4351         * modules/sys_times (Depends-on, Makefile.am): Likewise.
4352         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
4353         * modules/wchar (Depends-on, Makefile.am): Likewise.
4354         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
4355         should be poisoned.
4356         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
4357         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
4358         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
4359         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
4360         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
4361         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
4362         * m4/math_h.m4 (gl_MATH_H): Likewise.
4363         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
4364         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4365         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4366         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
4367         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
4368         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
4369         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
4370         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
4371         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
4372         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4373         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
4374         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
4375         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4376         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
4377         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4378         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
4379         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
4380         GL_LINK_WARNING.
4381         * lib/ctype.in.h: Likewise.
4382         * lib/dirent.in.h: Likewise.
4383         * lib/fcntl.in.h: Likewise.
4384         * lib/inttypes.in.h: Likewise.
4385         * lib/langinfo.in.h: Likewise.
4386         * lib/locale.in.h: Likewise.
4387         * lib/math.in.h: Likewise.
4388         * lib/search.in.h: Likewise.
4389         * lib/signal.in.h: Likewise.
4390         * lib/spawn.in.h: Likewise.
4391         * lib/stdio.in.h: Likewise.
4392         * lib/stdlib.in.h: Likewise.
4393         * lib/string.in.h: Likewise.
4394         * lib/strings.in.h: Likewise.
4395         * lib/sys_file.in.h: Likewise.
4396         * lib/sys_ioctl.in.h: Likewise.
4397         * lib/sys_select.in.h: Likewise.
4398         * lib/sys_socket.in.h: Likewise.
4399         * lib/sys_stat.in.h: Likewise.
4400         * lib/sys_times.in.h: Likewise.
4401         * lib/sys_utsname.in.h: Likewise.
4402         * lib/unistd.in.h: Likewise.
4403         * lib/wchar.in.h: Likewise.
4404
4405 2010-01-20  Bruno Haible  <bruno@clisp.org>
4406
4407         Avoid duplicate -lm.
4408         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
4409         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
4410         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
4411         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
4412         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
4413         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
4414         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
4415         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
4416         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
4417         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
4418         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
4419         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
4420         Reported by Paolo Bonzini.
4421
4422 2010-01-19  Bruno Haible  <bruno@clisp.org>
4423
4424         langinfo, nl_langinfo: Relicense under LGPLv2+.
4425         * modules/langinfo (License): Change to LGPLv2+.
4426         * modules/nl_langinfo (License): Likewise.
4427         Patch by David Lutterkort <lutter@redhat.com>.
4428
4429 2010-01-19  Bruno Haible  <bruno@clisp.org>
4430
4431         Avoid compilation error with cc on OSF/1 5.1.
4432         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
4433         statement, not before.
4434         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4435
4436 2010-01-18  Bruno Haible  <bruno@clisp.org>
4437
4438         Avoid a link error due to the __printf__ symbol.
4439         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
4440         and 2.6.x.
4441         (__format__, __printf__): Remove definitions.
4442         * lib/argp-fmtstream.h: Likewise.
4443         * lib/argp.h: Likewise.
4444         * lib/error.h: Likewise.
4445         * lib/vasnprintf.h: Likewise.
4446         * lib/xprintf.h: Likewise.
4447         * lib/xvasprintf.h: Likewise.
4448         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4449
4450 2010-01-18  Bruno Haible  <bruno@clisp.org>
4451
4452         Tests for module 'tanl'.
4453         * modules/tanl-tests: New file.
4454         * tests/test-tanl.c: New file.
4455
4456         Tests for module 'sqrtl'.
4457         * modules/sqrtl-tests: New file.
4458         * tests/test-sqrtl.c: New file.
4459
4460         Tests for module 'sinl'.
4461         * modules/sinl-tests: New file.
4462         * tests/test-sinl.c: New file.
4463
4464         Tests for module 'logl'.
4465         * modules/logl-tests: New file.
4466         * tests/test-logl.c: New file.
4467
4468         Tests for module 'expl'.
4469         * modules/expl-tests: New file.
4470         * tests/test-expl.c: New file.
4471
4472         Tests for module 'cosl'.
4473         * modules/cosl-tests: New file.
4474         * tests/test-cosl.c: New file.
4475
4476         Tests for module 'atanl'.
4477         * modules/atanl-tests: New file.
4478         * tests/test-atanl.c: New file.
4479
4480         Tests for module 'asinl'.
4481         * modules/asinl-tests: New file.
4482         * tests/test-asinl.c: New file.
4483
4484         Tests for module 'acosl'.
4485         * modules/acosl-tests: New file.
4486         * tests/test-acosl.c: New file.
4487
4488         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
4489         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
4490         tanl): Use the standard gnulib idiom.
4491         * lib/cosl.c: Don't include trigl.c and sincosl.c.
4492         * lib/sinl.c: Likewise.
4493         * lib/tanl.c: Don't include trigl.c.
4494         (kernel_tanl): Make static.
4495         * lib/sincosl.c: Include trigl.h first.
4496         * lib/trigl.c: Likewise.
4497         * m4/acosl.m4: New file.
4498         * m4/asinl.m4: New file.
4499         * m4/atanl.m4: New file.
4500         * m4/cosl.m4: New file.
4501         * m4/expl.m4: New file.
4502         * m4/logl.m4: New file.
4503         * m4/sinl.m4: New file.
4504         * m4/sqrtl.m4: New file.
4505         * m4/tanl.m4: New file.
4506         * m4/mathl.m4: Remove file.
4507         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
4508         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
4509         Don't initialize GNULIB_MATHL.
4510         * modules/acosl: New file.
4511         * modules/asinl: New file.
4512         * modules/atanl: New file.
4513         * modules/cosl: New file.
4514         * modules/expl: New file.
4515         * modules/logl: New file.
4516         * modules/sinl: New file.
4517         * modules/sqrtl: New file.
4518         * modules/tanl: New file.
4519         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
4520         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
4521         substitute GNULIB_MATHL.
4522         * modules/mathl: Rewritten.
4523         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
4524         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
4525         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
4526         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
4527         * doc/posix-functions/expl.texi: Mention the 'expl' module.
4528         * doc/posix-functions/logl.texi: Mention the 'logl' module.
4529         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
4530         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
4531         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
4532
4533 2010-01-18  Bruno Haible  <bruno@clisp.org>
4534
4535         sqrt: Make gl_FUNC_SQRT requirable.
4536         * m4/sqrt.m4: New file.
4537         * modules/sqrt (Files): Add it.
4538         (configure.ac): Invoke gl_FUNC_SQRT.
4539
4540 2010-01-18  Bruno Haible  <bruno@clisp.org>
4541
4542         New modules for common <math.h> functions.
4543         * m4/mathfunc.m4: New file.
4544         * modules/acos: New file.
4545         * modules/asin: New file.
4546         * modules/atan: New file.
4547         * modules/atan2: New file.
4548         * modules/cbrt: New file.
4549         * modules/copysign: New file.
4550         * modules/cos: New file.
4551         * modules/cosh: New file.
4552         * modules/erf: New file.
4553         * modules/erfc: New file.
4554         * modules/exp: New file.
4555         * modules/fabs: New file.
4556         * modules/fmod: New file.
4557         * modules/hypot: New file.
4558         * modules/j0: New file.
4559         * modules/j1: New file.
4560         * modules/jn: New file.
4561         * modules/ldexp: New file.
4562         * modules/lgamma: New file.
4563         * modules/log: New file.
4564         * modules/log10: New file.
4565         * modules/log1p: New file.
4566         * modules/logb: New file.
4567         * modules/modf: New file.
4568         * modules/nextafter: New file.
4569         * modules/pow: New file.
4570         * modules/remainder: New file.
4571         * modules/rint: New file.
4572         * modules/sin: New file.
4573         * modules/sinh: New file.
4574         * modules/sqrt: New file.
4575         * modules/tan: New file.
4576         * modules/tanh: New file.
4577         * modules/y0: New file.
4578         * modules/y1: New file.
4579         * modules/yn: New file.
4580         * doc/posix-functions/acos.texi: Mention the 'acos' module.
4581         * doc/posix-functions/asin.texi: Mention the 'asin' module.
4582         * doc/posix-functions/atan.texi: Mention the 'atan' module.
4583         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
4584         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
4585         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
4586         * doc/posix-functions/cos.texi: Mention the 'cos' module.
4587         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
4588         * doc/posix-functions/erf.texi: Mention the 'erf' module.
4589         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
4590         * doc/posix-functions/exp.texi: Mention the 'exp' module.
4591         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
4592         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
4593         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
4594         * doc/posix-functions/j0.texi: Mention the 'j0' module.
4595         * doc/posix-functions/j1.texi: Mention the 'j1' module.
4596         * doc/posix-functions/jn.texi: Mention the 'jn' module.
4597         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
4598         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
4599         * doc/posix-functions/log.texi: Mention the 'log' module.
4600         * doc/posix-functions/log10.texi: Mention the 'log10' module.
4601         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
4602         * doc/posix-functions/logb.texi: Mention the 'logb' module.
4603         * doc/posix-functions/modf.texi: Mention the 'modf' module.
4604         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
4605         * doc/posix-functions/pow.texi: Mention the 'pow' module.
4606         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
4607         * doc/posix-functions/rint.texi: Mention the 'rint' module.
4608         * doc/posix-functions/sin.texi: Mention the 'sin' module.
4609         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
4610         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
4611         * doc/posix-functions/tan.texi: Mention the 'tan' module.
4612         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
4613         * doc/posix-functions/y0.texi: Mention the 'y0' module.
4614         * doc/posix-functions/y1.texi: Mention the 'y1' module.
4615         * doc/posix-functions/yn.texi: Mention the 'yn' module.
4616
4617 2010-01-18  Jim Meyering  <meyering@redhat.com>
4618
4619         ignore-value: relax license to LGPLv2+
4620         * modules/ignore-value (License): Relax to LGPLv2+.
4621
4622         getdate: don't leak when TZ contains two or more '"'s
4623         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
4624         double quote in TZ after the first one.
4625
4626         readtokens: do not leak internal token_lengths buffer
4627         * lib/readtokens.c (readtokens): Free the local, lengths,
4628         when the supplied "token_lengths" parameter is NULL.
4629
4630 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4631
4632         Fix a couple of missing LIBTHREAD link failures on AIX.
4633         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
4634         $(LIBTHREAD).
4635         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
4636
4637         Link test-poll against INET_PTON_LIB.
4638         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
4639         for inet_pton on Solaris 10.
4640
4641 2010-01-17  Bruno Haible  <bruno@clisp.org>
4642
4643         unistdio/*-sprintf: Fix typo in module description.
4644         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
4645         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
4646         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
4647         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
4648         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
4649         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
4650         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
4651         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4652
4653 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4654
4655         gnulib-tool: fix filelist for AIX, HP-UX ksh.
4656         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
4657         variables in shell case patterns, for AIX and HP-UX ksh.
4658
4659         Split large sed scripts, for HP-UX sed.
4660         * modules/stdio: Split sed scripts around 50 sed commands,
4661         to avoid HP-UX limit of 99 commands, in the near future.
4662         * modules/string: Likewise.
4663         * modules/unistd: Likewise.
4664
4665         gnulib-tool: avoid writing in the current directory.
4666         * gnulib-tool (func_emit_lib_Makefile_am)
4667         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
4668         not in the current directory, so concurrent gnulib-tool
4669         instances do not interfere.
4670
4671 2010-01-16  Jim Meyering  <meyering@redhat.com>
4672
4673         doc: update users.txt
4674         * users.txt: Add grep.
4675         (diffutils, gzip): Update URLs.
4676
4677 2010-01-12  Bruno Haible  <bruno@clisp.org>
4678
4679         posix_spawn: Avoid test failure on Cygwin.
4680         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
4681         characters.
4682         Reported by Simon Josefsson.
4683
4684 2010-01-12  Bruno Haible  <bruno@clisp.org>
4685
4686         * tests/test-cond.c (main): When skipping the test, show the reason.
4687
4688 2010-01-12  Simon Josefsson  <simon@josefsson.org>
4689
4690         * lib/striconv.c (str_cd_iconv): Avoid if before free.
4691
4692 2010-01-12  Simon Josefsson  <simon@josefsson.org>
4693
4694         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
4695         VC_LIST_ALWAYS_EXCLUDE_REGEX.
4696
4697 2010-01-12  Eric Blake  <ebb9@byu.net>
4698
4699         build: guarantee AS_VAR_IF
4700         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
4701         (gl_AS_VAR_IF): Move...
4702         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
4703         Reported by Simon Josefsson.
4704
4705 2010-01-12  Simon Josefsson  <simon@josefsson.org>
4706
4707         * lib/stdio.in.h: Fix typo.
4708
4709 2010-01-12  Simon Josefsson  <simon@josefsson.org>
4710
4711         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
4712         libgpg-error.
4713
4714 2010-01-12  Simon Josefsson  <simon@josefsson.org>
4715
4716         * tests/test-xalloc-die.sh: Use $EXEEXT.
4717
4718 2010-01-12  Simon Josefsson  <simon@josefsson.org>
4719             Bruno Haible  <bruno@clisp.org>
4720
4721         getlogin, getlogin_r: Avoid test failure.
4722         * tests/test-getlogin.c: Include <stdio.h>.
4723         (main): Skip the test when the function fails because stdin is not a
4724         tty.
4725         * tests/test-getlogin_r.c: Include <stdio.h>.
4726         (main): Skip the test when the function fails because stdin is not a
4727         tty.
4728
4729 2010-01-11  Eric Blake  <ebb9@byu.net>
4730
4731         tests: avoid more large file warnings
4732         * tests/test-fflush.c: Avoid warning about ftell use.
4733         * tests/test-fseek.c: Avoid warning about fseek use.
4734
4735 2010-01-10  Bruno Haible  <bruno@clisp.org>
4736
4737         nproc: Work better on Linux when /proc and /sys are not mounted.
4738         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
4739         as lower bound when, on glibc/Linux systems,
4740         sysconf (_SC_NPROCESSORS_CONF) returns 1.
4741         Suggested by Pádraig Brady <P@draigbrady.com>.
4742         Reported by Dmitry V. Levin <ldv@altlinux.org>.
4743
4744         nproc: Refactor.
4745         * lib/nproc.c (num_processors_via_affinity_mask): New function,
4746         extracted from num_processors.
4747         (num_processors): Call it.
4748
4749 2010-01-11  Jim Meyering  <meyering@redhat.com>
4750
4751         utimecmp: avoid new warning from upcoming gcc-4.5.0
4752         * lib/utimecmp.c (BILLION): Define using #define rather than an
4753         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
4754
4755 2010-01-11  Eric Blake  <ebb9@byu.net>
4756
4757         math: add portability warnings for classification macros
4758         * modules/math (Depends-on): Add warn-on-use.
4759         (Makefile.am): Provide new substitutions.
4760         * m4/math_h.m4 (gl_MATH_H): Require inline.
4761         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
4762         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
4763         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
4764         implement warnings.
4765
4766         unistd: warn on use of environ without module
4767         * modules/unistd (Depends-on): Add warn-on-use.
4768         (Makefile.am): Provide new substitutions.
4769         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
4770         * lib/unistd.in.h (environ): Wrap with a warning helper function.
4771
4772         stdio: warn on suspicious uses
4773         * modules/stdio (Depends-on): Add warn-on-use.
4774         (Makefile.am): Provide new substitutions.
4775         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
4776         fseeko.
4777         * lib/stdio.in.h (gets): Always warn on use.
4778         (fseek, ftell): Adjust when warnings are issued, and honor
4779         _GL_NO_LARGE_FILES as a way to silence the warning.
4780         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
4781         any warning about large file offsets.
4782         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
4783         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
4784         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
4785         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
4786         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
4787         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
4788         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
4789         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
4790
4791         warn-on-use: new module
4792         * modules/warn-on-use: New file.
4793         * build-aux/warn-on-use.h: Likewise.
4794         * m4/warn-on-use.m4: Likewise.
4795         * MODULES.html.sh (Support for building): Mention it.
4796
4797 2010-01-10  Bruno Haible  <bruno@clisp.org>
4798
4799         Tests for module 'unistr/u32-strdup'.
4800         * modules/unistr/u32-strdup-tests: New file.
4801         * tests/unistr/test-u32-strdup.c: New file.
4802
4803         Tests for module 'unistr/u16-strdup'.
4804         * modules/unistr/u16-strdup-tests: New file.
4805         * tests/unistr/test-u16-strdup.c: New file.
4806
4807         Tests for module 'unistr/u8-strdup'.
4808         * modules/unistr/u8-strdup-tests: New file.
4809         * tests/unistr/test-u8-strdup.c: New file.
4810         * tests/unistr/test-strdup.h: New file.
4811
4812         Tests for module 'unistr/u32-strncmp'.
4813         * modules/unistr/u32-strncmp-tests: New file.
4814         * tests/unistr/test-u32-strncmp.c: New file.
4815
4816         Tests for module 'unistr/u16-strncmp'.
4817         * modules/unistr/u16-strncmp-tests: New file.
4818         * tests/unistr/test-u16-strncmp.c: New file.
4819
4820         Tests for module 'unistr/u8-strncmp'.
4821         * modules/unistr/u8-strncmp-tests: New file.
4822         * tests/unistr/test-u8-strncmp.c: New file.
4823         * tests/unistr/test-strncmp.h: New file.
4824
4825         Tests for module 'unistr/u32-strcoll'.
4826         * modules/unistr/u32-strcoll-tests: New file.
4827         * tests/unistr/test-u32-strcoll.c: New file.
4828
4829         Tests for module 'unistr/u16-strcoll'.
4830         * modules/unistr/u16-strcoll-tests: New file.
4831         * tests/unistr/test-u16-strcoll.c: New file.
4832
4833         Tests for module 'unistr/u8-strcoll'.
4834         * modules/unistr/u8-strcoll-tests: New file.
4835         * tests/unistr/test-u8-strcoll.c: New file.
4836
4837         Tests for module 'unistr/u32-strcmp'.
4838         * modules/unistr/u32-strcmp-tests: New file.
4839         * tests/unistr/test-u32-strcmp.c: New file.
4840         * tests/unistr/test-u32-strcmp.h: New file.
4841
4842         Tests for module 'unistr/u16-strcmp'.
4843         * modules/unistr/u16-strcmp-tests: New file.
4844         * tests/unistr/test-u16-strcmp.c: New file.
4845         * tests/unistr/test-u16-strcmp.h: New file.
4846
4847         Tests for module 'unistr/u8-strcmp'.
4848         * modules/unistr/u8-strcmp-tests: New file.
4849         * tests/unistr/test-u8-strcmp.c: New file.
4850         * tests/unistr/test-u8-strcmp.h: New file.
4851         * tests/unistr/test-strcmp.h: New file.
4852
4853         Tests for module 'unistr/u32-strncat'.
4854         * modules/unistr/u32-strncat-tests: New file.
4855         * tests/unistr/test-u32-strncat.c: New file.
4856
4857         Tests for module 'unistr/u16-strncat'.
4858         * modules/unistr/u16-strncat-tests: New file.
4859         * tests/unistr/test-u16-strncat.c: New file.
4860
4861         Tests for module 'unistr/u8-strncat'.
4862         * modules/unistr/u8-strncat-tests: New file.
4863         * tests/unistr/test-u8-strncat.c: New file.
4864         * tests/unistr/test-strncat.h: New file.
4865
4866         Tests for module 'unistr/u32-strcat'.
4867         * modules/unistr/u32-strcat-tests: New file.
4868         * tests/unistr/test-u32-strcat.c: New file.
4869
4870         Tests for module 'unistr/u16-strcat'.
4871         * modules/unistr/u16-strcat-tests: New file.
4872         * tests/unistr/test-u16-strcat.c: New file.
4873
4874         Tests for module 'unistr/u8-strcat'.
4875         * modules/unistr/u8-strcat-tests: New file.
4876         * tests/unistr/test-u8-strcat.c: New file.
4877         * tests/unistr/test-strcat.h: New file.
4878
4879         Tests for module 'unistr/u32-stpncpy'.
4880         * modules/unistr/u32-stpncpy-tests: New file.
4881         * tests/unistr/test-u32-stpncpy.c: New file.
4882
4883         Tests for module 'unistr/u16-stpncpy'.
4884         * modules/unistr/u16-stpncpy-tests: New file.
4885         * tests/unistr/test-u16-stpncpy.c: New file.
4886
4887         Tests for module 'unistr/u8-stpncpy'.
4888         * modules/unistr/u8-stpncpy-tests: New file.
4889         * tests/unistr/test-u8-stpncpy.c: New file.
4890         * tests/unistr/test-stpncpy.h: New file.
4891
4892         Tests for module 'unistr/u32-strncpy'.
4893         * modules/unistr/u32-strncpy-tests: New file.
4894         * tests/unistr/test-u32-strncpy.c: New file.
4895
4896         Tests for module 'unistr/u16-strncpy'.
4897         * modules/unistr/u16-strncpy-tests: New file.
4898         * tests/unistr/test-u16-strncpy.c: New file.
4899
4900         Tests for module 'unistr/u8-strncpy'.
4901         * modules/unistr/u8-strncpy-tests: New file.
4902         * tests/unistr/test-u8-strncpy.c: New file.
4903         * tests/unistr/test-strncpy.h: New file.
4904
4905         Tests for module 'unistr/u32-stpcpy'.
4906         * modules/unistr/u32-stpcpy-tests: New file.
4907         * tests/unistr/test-u32-stpcpy.c: New file.
4908
4909         Tests for module 'unistr/u16-stpcpy'.
4910         * modules/unistr/u16-stpcpy-tests: New file.
4911         * tests/unistr/test-u16-stpcpy.c: New file.
4912
4913         Tests for module 'unistr/u8-stpcpy'.
4914         * modules/unistr/u8-stpcpy-tests: New file.
4915         * tests/unistr/test-u8-stpcpy.c: New file.
4916         * tests/unistr/test-stpcpy.h: New file.
4917
4918         Tests for module 'unistr/u32-strcpy'.
4919         * modules/unistr/u32-strcpy-tests: New file.
4920         * tests/unistr/test-u32-strcpy.c: New file.
4921
4922         Tests for module 'unistr/u16-strcpy'.
4923         * modules/unistr/u16-strcpy-tests: New file.
4924         * tests/unistr/test-u16-strcpy.c: New file.
4925
4926         Tests for module 'unistr/u8-strcpy'.
4927         * modules/unistr/u8-strcpy-tests: New file.
4928         * tests/unistr/test-u8-strcpy.c: New file.
4929         * tests/unistr/test-strcpy.h: New file.
4930
4931         Tests for module 'unistr/u32-strnlen'.
4932         * modules/unistr/u32-strnlen-tests: New file.
4933         * tests/unistr/test-u32-strnlen.c: New file.
4934
4935         Tests for module 'unistr/u16-strnlen'.
4936         * modules/unistr/u16-strnlen-tests: New file.
4937         * tests/unistr/test-u16-strnlen.c: New file.
4938
4939         Tests for module 'unistr/u8-strnlen'.
4940         * modules/unistr/u8-strnlen-tests: New file.
4941         * tests/unistr/test-u8-strnlen.c: New file.
4942         * tests/unistr/test-strnlen.h: New file.
4943
4944         Tests for module 'unistr/u32-strlen'.
4945         * modules/unistr/u32-strlen-tests: New file.
4946         * tests/unistr/test-u32-strlen.c: New file.
4947
4948         Tests for module 'unistr/u16-strlen'.
4949         * modules/unistr/u16-strlen-tests: New file.
4950         * tests/unistr/test-u16-strlen.c: New file.
4951
4952         Tests for module 'unistr/u8-strlen'.
4953         * modules/unistr/u8-strlen-tests: New file.
4954         * tests/unistr/test-u8-strlen.c: New file.
4955
4956         Tests for module 'unistr/u32-prev'.
4957         * modules/unistr/u32-prev-tests: New file.
4958         * tests/unistr/test-u32-prev.c: New file.
4959
4960         Tests for module 'unistr/u16-prev'.
4961         * modules/unistr/u16-prev-tests: New file.
4962         * tests/unistr/test-u16-prev.c: New file.
4963
4964         Tests for module 'unistr/u8-prev'.
4965         * modules/unistr/u8-prev-tests: New file.
4966         * tests/unistr/test-u8-prev.c: New file.
4967
4968         Tests for module 'unistr/u32-next'.
4969         * modules/unistr/u32-next-tests: New file.
4970         * tests/unistr/test-u32-next.c: New file.
4971
4972         Tests for module 'unistr/u16-next'.
4973         * modules/unistr/u16-next-tests: New file.
4974         * tests/unistr/test-u16-next.c: New file.
4975
4976         Tests for module 'unistr/u8-next'.
4977         * modules/unistr/u8-next-tests: New file.
4978         * tests/unistr/test-u8-next.c: New file.
4979
4980         Tests for module 'unistr/u32-strmbtouc'.
4981         * modules/unistr/u32-strmbtouc-tests: New file.
4982         * tests/unistr/test-u32-strmbtouc.c: New file.
4983
4984         Tests for module 'unistr/u16-strmbtouc'.
4985         * modules/unistr/u16-strmbtouc-tests: New file.
4986         * tests/unistr/test-u16-strmbtouc.c: New file.
4987
4988         Tests for module 'unistr/u8-strmbtouc'.
4989         * modules/unistr/u8-strmbtouc-tests: New file.
4990         * tests/unistr/test-u8-strmbtouc.c: New file.
4991
4992         Tests for module 'unistr/u32-strmblen'.
4993         * modules/unistr/u32-strmblen-tests: New file.
4994         * tests/unistr/test-u32-strmblen.c: New file.
4995
4996         Tests for module 'unistr/u16-strmblen'.
4997         * modules/unistr/u16-strmblen-tests: New file.
4998         * tests/unistr/test-u16-strmblen.c: New file.
4999
5000         Tests for module 'unistr/u8-strmblen'.
5001         * modules/unistr/u8-strmblen-tests: New file.
5002         * tests/unistr/test-u8-strmblen.c: New file.
5003
5004         Tests for module 'unistr/u32-cpy-alloc'.
5005         * modules/unistr/u32-cpy-alloc-tests: New file.
5006         * tests/unistr/test-u32-cpy-alloc.c: New file.
5007
5008         Tests for module 'unistr/u16-cpy-alloc'.
5009         * modules/unistr/u16-cpy-alloc-tests: New file.
5010         * tests/unistr/test-u16-cpy-alloc.c: New file.
5011
5012         Tests for module 'unistr/u8-cpy-alloc'.
5013         * modules/unistr/u8-cpy-alloc-tests: New file.
5014         * tests/unistr/test-u8-cpy-alloc.c: New file.
5015         * tests/unistr/test-cpy-alloc.h: New file.
5016
5017         Tests for module 'unistr/u32-mbsnlen'.
5018         * modules/unistr/u32-mbsnlen-tests: New file.
5019         * tests/unistr/test-u32-mbsnlen.c: New file.
5020
5021         Tests for module 'unistr/u16-mbsnlen'.
5022         * modules/unistr/u16-mbsnlen-tests: New file.
5023         * tests/unistr/test-u16-mbsnlen.c: New file.
5024
5025         Tests for module 'unistr/u8-mbsnlen'.
5026         * modules/unistr/u8-mbsnlen-tests: New file.
5027         * tests/unistr/test-u8-mbsnlen.c: New file.
5028
5029         Tests for module 'unistr/u32-chr'.
5030         * modules/unistr/u32-chr-tests: New file.
5031         * tests/unistr/test-u32-chr.c: New file.
5032
5033         Tests for module 'unistr/u16-chr'.
5034         * modules/unistr/u16-chr-tests: New file.
5035         * tests/unistr/test-u16-chr.c: New file.
5036
5037         Tests for module 'unistr/u8-chr'.
5038         * modules/unistr/u8-chr-tests: New file.
5039         * tests/unistr/test-u8-chr.c: New file.
5040         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
5041
5042         Tests for module 'unistr/u32-cmp2'.
5043         * modules/unistr/u32-cmp2-tests: New file.
5044         * tests/unistr/test-u32-cmp2.c: New file.
5045
5046         Tests for module 'unistr/u16-cmp2'.
5047         * modules/unistr/u16-cmp2-tests: New file.
5048         * tests/unistr/test-u16-cmp2.c: New file.
5049
5050         Tests for module 'unistr/u8-cmp2'.
5051         * modules/unistr/u8-cmp2-tests: New file.
5052         * tests/unistr/test-u8-cmp2.c: New file.
5053         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
5054
5055         Tests for module 'unistr/u32-cmp'.
5056         * modules/unistr/u32-cmp-tests: New file.
5057         * tests/unistr/test-u32-cmp.c: New file.
5058
5059         Tests for module 'unistr/u16-cmp'.
5060         * modules/unistr/u16-cmp-tests: New file.
5061         * tests/unistr/test-u16-cmp.c: New file.
5062
5063         Tests for module 'unistr/u8-cmp'.
5064         * modules/unistr/u8-cmp-tests: New file.
5065         * tests/unistr/test-u8-cmp.c: New file.
5066         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
5067
5068         Tests for module 'unistr/u32-set'.
5069         * modules/unistr/u32-set-tests: New file.
5070         * tests/unistr/test-u32-set.c: New file.
5071
5072         Tests for module 'unistr/u16-set'.
5073         * modules/unistr/u16-set-tests: New file.
5074         * tests/unistr/test-u16-set.c: New file.
5075
5076         Tests for module 'unistr/u8-set'.
5077         * modules/unistr/u8-set-tests: New file.
5078         * tests/unistr/test-u8-set.c: New file.
5079         * tests/unistr/test-set.h: New file.
5080
5081         Tests for module 'unistr/u32-move'.
5082         * modules/unistr/u32-move-tests: New file.
5083         * tests/unistr/test-u32-move.c: New file.
5084
5085         Tests for module 'unistr/u16-move'.
5086         * modules/unistr/u16-move-tests: New file.
5087         * tests/unistr/test-u16-move.c: New file.
5088
5089         Tests for module 'unistr/u8-move'.
5090         * modules/unistr/u8-move-tests: New file.
5091         * tests/unistr/test-u8-move.c: New file.
5092         * tests/unistr/test-move.h: New file.
5093
5094         Tests for module 'unistr/u32-cpy'.
5095         * modules/unistr/u32-cpy-tests: New file.
5096         * tests/unistr/test-u32-cpy.c: New file.
5097
5098         Tests for module 'unistr/u16-cpy'.
5099         * modules/unistr/u16-cpy-tests: New file.
5100         * tests/unistr/test-u16-cpy.c: New file.
5101
5102         Tests for module 'unistr/u8-cpy'.
5103         * modules/unistr/u8-cpy-tests: New file.
5104         * tests/unistr/test-u8-cpy.c: New file.
5105         * tests/unistr/test-cpy.h: New file.
5106
5107 2010-01-09  Bruno Haible  <bruno@clisp.org>
5108
5109         Tests for module 'unistr/u32-uctomb'.
5110         * modules/unistr/u32-uctomb-tests: New file.
5111         * tests/unistr/test-u32-uctomb.c: New file.
5112
5113         Tests for module 'unistr/u16-uctomb'.
5114         * modules/unistr/u16-uctomb-tests: New file.
5115         * tests/unistr/test-u16-uctomb.c: New file.
5116
5117         Tests for module 'unistr/u8-uctomb'.
5118         * modules/unistr/u8-uctomb-tests: New file.
5119         * tests/unistr/test-u8-uctomb.c: New file.
5120
5121         Tests for module 'unistr/u32-mbtoucr'.
5122         * modules/unistr/u32-mbtoucr-tests: New file.
5123         * tests/unistr/test-u32-mbtoucr.c: New file.
5124
5125         Tests for module 'unistr/u16-mbtoucr'.
5126         * modules/unistr/u16-mbtoucr-tests: New file.
5127         * tests/unistr/test-u16-mbtoucr.c: New file.
5128
5129         Tests for module 'unistr/u8-mbtoucr'.
5130         * modules/unistr/u8-mbtoucr-tests: New file.
5131         * tests/unistr/test-u8-mbtoucr.c: New file.
5132
5133         Tests for module 'unistr/u32-mbtouc'.
5134         * modules/unistr/u32-mbtouc-tests: New file.
5135         * tests/unistr/test-u32-mbtouc.c: New file.
5136
5137         Tests for module 'unistr/u16-mbtouc'.
5138         * modules/unistr/u16-mbtouc-tests: New file.
5139         * tests/unistr/test-u16-mbtouc.c: New file.
5140
5141         Tests for module 'unistr/u8-mbtouc'.
5142         * modules/unistr/u8-mbtouc-tests: New file.
5143         * tests/unistr/test-u8-mbtouc.c: New file.
5144
5145         Tests for module 'unistr/u32-mbtouc-unsafe'.
5146         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
5147         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
5148         * tests/unistr/test-u32-mbtouc.h: New file.
5149
5150         Tests for module 'unistr/u16-mbtouc-unsafe'.
5151         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
5152         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
5153         * tests/unistr/test-u16-mbtouc.h: New file.
5154
5155         Tests for module 'unistr/u8-mbtouc-unsafe'.
5156         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
5157         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
5158         * tests/unistr/test-u8-mbtouc.h: New file.
5159
5160         Tests for module 'unistr/u32-mblen'.
5161         * modules/unistr/u32-mblen-tests: New file.
5162         * tests/unistr/test-u32-mblen.c: New file.
5163
5164         Tests for module 'unistr/u16-mblen'.
5165         * modules/unistr/u16-mblen-tests: New file.
5166         * tests/unistr/test-u16-mblen.c: New file.
5167
5168         Tests for module 'unistr/u8-mblen'.
5169         * modules/unistr/u8-mblen-tests: New file.
5170         * tests/unistr/test-u8-mblen.c: New file.
5171
5172         Tests for module 'unistr/u32-to-u16'.
5173         * modules/unistr/u32-to-u16-tests: New file.
5174         * tests/unistr/test-u32-to-u16.c: New file.
5175
5176         Tests for module 'unistr/u32-to-u8'.
5177         * modules/unistr/u32-to-u8-tests: New file.
5178         * tests/unistr/test-u32-to-u8.c: New file.
5179
5180         Tests for module 'unistr/u16-to-u32'.
5181         * modules/unistr/u16-to-u32-tests: New file.
5182         * tests/unistr/test-u16-to-u32.c: New file.
5183
5184         Tests for module 'unistr/u16-to-u8'.
5185         * modules/unistr/u16-to-u8-tests: New file.
5186         * tests/unistr/test-u16-to-u8.c: New file.
5187
5188         Tests for module 'unistr/u8-to-u32'.
5189         * modules/unistr/u8-to-u32-tests: New file.
5190         * tests/unistr/test-u8-to-u32.c: New file.
5191
5192         Tests for module 'unistr/u8-to-u16'.
5193         * modules/unistr/u8-to-u16-tests: New file.
5194         * tests/unistr/test-u8-to-u16.c: New file.
5195
5196         Tests for module 'unistr/u32-check'.
5197         * modules/unistr/u32-check-tests: New file.
5198         * tests/unistr/test-u32-check.c: New file.
5199
5200         Tests for module 'unistr/u16-check'.
5201         * modules/unistr/u16-check-tests: New file.
5202         * tests/unistr/test-u16-check.c: New file.
5203
5204         Tests for module 'unistr/u8-check'.
5205         * modules/unistr/u8-check-tests: New file.
5206         * tests/unistr/test-u8-check.c: New file.
5207
5208         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
5209         (category_equals): New function.
5210         (main): Add more tests.
5211         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
5212
5213         * tests/unictype/test-bidi_byname.c (main): Add more tests.
5214
5215 2010-01-10  Bruno Haible  <bruno@clisp.org>
5216
5217         unistr/u*-strcoll: Try harder to distinguish different strings.
5218         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
5219         compare s1 and s2 to see if they are different.
5220
5221 2010-01-10  Bruno Haible  <bruno@clisp.org>
5222
5223         unistr/u*-stpncpy: Fix the return value.
5224         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
5225         description of the return value consistent with stpncpy in glibc.
5226         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
5227         written non-NUL unit.
5228
5229 2010-01-10  Bruno Haible  <bruno@clisp.org>
5230
5231         unistr/u*-next: Add missing dependencies.
5232         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
5233         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
5234         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
5235
5236 2010-01-10  Bruno Haible  <bruno@clisp.org>
5237
5238         unistr/u8-mbsnlen: Fix return value for incomplete character.
5239         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
5240         u8_mblen.
5241         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
5242         Remove unistr/u8-mblen.
5243         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
5244         u16_mblen.
5245         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
5246         Remove unistr/u16-mblen.
5247
5248 2010-01-10  Bruno Haible  <bruno@clisp.org>
5249
5250         wchar: Fix compilation error when <wchar.h> is used from coreutils.
5251         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
5252         Reported by Brian Gough <bjg@gnu.org> and
5253         Chris Clayton <chris2553@googlemail.com> via
5254         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
5255
5256 2010-01-09  Bruno Haible  <bruno@clisp.org>
5257
5258         unistr/u16-to-u32: Reject invalid input.
5259         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
5260         u16_mbtouc.
5261         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
5262         Remove unistr/u16-mbtouc.
5263
5264         unistr/u16-to-u8: Reject invalid input.
5265         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
5266         u16_mbtouc.
5267         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
5268         Remove unistr/u16-mbtouc.
5269
5270         unistr/u8-to-u32: Reject invalid input.
5271         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
5272         u8_mbtouc.
5273         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
5274         Remove unistr/u8-mbtouc.
5275
5276         unistr/u8-to-u16: Reject invalid input.
5277         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
5278         u8_mbtouc.
5279         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
5280         Remove unistr/u8-mbtouc.
5281
5282 2010-01-09  Bruno Haible  <bruno@clisp.org>
5283
5284         Tests for module 'getlogin'.
5285         * modules/getlogin-tests: New file.
5286         * tests/test-getlogin.c: New file.
5287
5288         New module 'getlogin'.
5289         * lib/unistd.in.h (getlogin): New declaration.
5290         * lib/getlogin.c: New file.
5291         * m4/getlogin.m4: New file.
5292         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
5293         HAVE_GETLOGIN.
5294         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
5295         HAVE_GETLOGIN.
5296         * modules/getlogin: New file.
5297         * doc/posix-functions/getlogin.texi: Mention the new module.
5298         Reported by John W. Eaton <jwe@gnu.org>.
5299
5300 2010-01-09  Bruno Haible  <bruno@clisp.org>
5301
5302         getlogin_r: Support for native Windows.
5303         * lib/getlogin_r.c: Include <windows.h>
5304         (getlogin_r): Implement for native Windows.
5305         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
5306         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
5307         via John W. Eaton <jwe@gnu.org>.
5308
5309 2010-01-09  Bruno Haible  <bruno@clisp.org>
5310
5311         getlogin_r: Small fixes.
5312         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
5313         succeeds.
5314         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
5315         before testing whether getlogin_r is declared. No need to set
5316         HAVE_DECL_GETLOGIN_R to 1.
5317         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
5318
5319 2010-01-09  Bruno Haible  <bruno@clisp.org>
5320
5321         * lib/unistd.in.h (getlogin_r): Add comment.
5322
5323 2010-01-09  Bruno Haible  <bruno@clisp.org>
5324
5325         Tests for module 'getlogin_r'.
5326         * modules/getlogin_r-tests: New file.
5327         * tests/test-getlogin_r.c: New file.
5328
5329 2010-01-09  Jim Meyering  <meyering@redhat.com>
5330
5331         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
5332         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
5333         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
5334
5335 2010-01-08  Simon Josefsson  <simon@josefsson.org>
5336
5337         * lib/dup2.c (rpl_dup2): Improve comment.
5338
5339 2010-01-08  Eric Blake  <ebb9@byu.net>
5340
5341         maint.mk: allow packages to add makefile @@ exceptions
5342         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
5343         (sc_makefile_check): Rename...
5344         (sc_makefile_at_at_check): ...to this, and use hook.
5345
5346         dup2: work around mingw bug
5347         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
5348         Reported by Simon Josefsson.
5349
5350 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
5351
5352         glob: Fix C++ compilation.
5353         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
5354         C++.
5355
5356 2010-01-07  Bruno Haible  <bruno@clisp.org>
5357
5358         Fix indentation of wctype.in.h, broken since 2007-01-06.
5359         * lib/wctype.in.h: Fix indentation of preprocessor directives.
5360
5361 2010-01-07  Bruno Haible  <bruno@clisp.org>
5362
5363         mbslen: Avoid collision with system function.
5364         * lib/string.in.h [MirBSD]: Include <wchar.h>.
5365         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
5366         * m4/mbslen.m4: New file.
5367         * modules/mbslen (Files): Add it.
5368         (configure.ac): Invoke gl_MBSLEN.
5369         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
5370         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
5371         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
5372         via Ian Beckwith <ianb@erislabs.net>.
5373
5374 2010-01-07  Bruno Haible  <bruno@clisp.org>
5375
5376         dirent: Document the last fix.
5377         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
5378
5379 2010-01-07  Bruno Haible  <bruno@clisp.org>
5380
5381         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
5382         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
5383         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
5384         va_list are defined.
5385         * doc/posix-headers/stdio.texi: Document the bug of missing types.
5386         Reported by Eric Blake.
5387
5388 2010-01-07  Bruno Haible  <bruno@clisp.org>
5389
5390         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
5391         * modules/xlist (Depends-on): Add 'list',
5392         * modules/xoset (Depends-on): Add 'oset'.
5393         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5394
5395 2010-01-07  Bruno Haible  <bruno@clisp.org>
5396
5397         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
5398         * doc/posix-functions/strncasecmp.texi: Likewise.
5399
5400 2010-01-07  Bruno Haible  <bruno@clisp.org>
5401
5402         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
5403
5404 2010-01-07  John W. Eaton  <jwe@octave.org>
5405
5406         wctype: allow C++ use
5407         * lib/wctype.in.h: Add extern "C" block for C++.
5408
5409 2010-01-06  Eric Blake  <ebb9@byu.net>
5410
5411         maint.mk: detect incorrect GFDL usage
5412         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
5413
5414 2010-01-06  Jim Meyering  <meyering@redhat.com>
5415         and Eric Blake  <ebb9@byu.net>
5416
5417         maint.mk: ignore multi-line copyright in NEWS
5418         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
5419
5420 2010-01-06  Eric Blake  <ebb9@byu.net>
5421
5422         select: add missing dependency
5423         * modules/select-tests (Depends-on): Move sockets dependency...
5424         * modules/select (Depends-on): ...here.
5425         Reported by Ian Beckwith.
5426
5427         doc: regenerate INSTALL
5428         * doc/INSTALL: Reflect recent autoconf update.
5429         * doc/INSTALL.ISO: Likewise.
5430         * doc/INSTALL.UTF-8: Likewise.
5431
5432         pread: fix compilation on glibc
5433         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
5434         Reported by Ralf Wildenhues.
5435
5436         dirent: fix test failure
5437         * lib/dirent.in.h (includes): Guarantee ino_t.
5438         Reported by Ralf Wildenhues.
5439
5440 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
5441
5442         linkat, renameat: avoid bad free
5443         * lib/at-func2.c (at_func2): Fix typo.
5444         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
5445
5446 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5447
5448         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
5449         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
5450         to avoid failure of symlink test later.
5451
5452 2010-01-06  Eric Blake  <ebb9@byu.net>
5453
5454         stdio, unistd: guarantee ssize_t
5455         * lib/unistd.in.h (includes): Ensure that types required by POSIX
5456         2008 are exposed when needed.
5457         * lib/stdio.in.h (includes): Likewise.
5458         Reported by Ralf Wildenhues.
5459
5460 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
5461
5462         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
5463         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
5464         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
5465
5466 2010-01-06  Jim Meyering  <meyering@redhat.com>
5467
5468         readtokens: this module *does* require xalloc.h
5469         It uses only functions that were omitted by the old syntax-check rule.
5470         * lib/readtokens.c: Include "xalloc.h" once again.
5471         * modules/readtokens (Depends-on): Add xalloc.
5472         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
5473
5474 2010-01-05  Eric Blake  <ebb9@byu.net>
5475
5476         maint: support 'make announcement' from a VPATH build
5477         * top/maint.mk (announcement): Look for correct NEWS file.
5478
5479 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
5480
5481         utimens (fdutimens): ignore a negative FD, per contract
5482         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
5483         when we have a valid file descriptor.  Otherwise, using a brand
5484         new glibc (with just-patched futimens that now fails with EBADF)
5485         would cause this function to fail with ENOSYS.
5486         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
5487         See also http://bugzilla.redhat.com/552320.
5488
5489 2010-01-05  Eric Blake  <ebb9@byu.net>
5490
5491         strcase: document what it provides
5492         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
5493         gnulib module.
5494         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
5495         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
5496
5497 2010-01-05  Jim Meyering  <meyering@redhat.com>
5498
5499         maint: remove useless inclusions of "xalloc.h"
5500         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
5501         * lib/readtokens.c: Likewise.
5502         * lib/same.c: Likewise.
5503         * modules/getloadavg (Depends-on): Remove xalloc.
5504         * modules/readtokens: Likewise.
5505         * modules/same: Likewise.
5506
5507         maint.mk: include 4 more function names in alloca.h-checking regexp
5508         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
5509         regexp.  Before, we would give a false-positive (saying alloca.h
5510         is included unnecessarily) when the only uses involved omitted symbols.
5511
5512         xalloc.h: use consistent formatting
5513         * lib/xalloc.h: Move declarations to start in the first column.
5514
5515 2010-01-05  Eric Blake  <ebb9@byu.net>
5516
5517         mkdir: avoid xalloc
5518         * lib/mkdir.c (includes): Drop unused header.
5519         Reported by John W. Eaton.
5520
5521 2010-01-04  Jim Meyering  <meyering@redhat.com>
5522
5523         nl_langinfo: avoid configure-time syntax error
5524         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
5525         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
5526         the empty string.  Don't let that provoke a shell syntax error.
5527
5528         regcomp, regexec, fnmatch: avoid array bounds read error
5529         * lib/regcomp.c (build_equiv_class): From glibc:
5530         Use only the low 24 bits of a findidx return value as an index
5531         into the weights array.  Patch by Ulrich Drepper:
5532         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
5533         * lib/regexec.c (check_node_accept_bytes): Likewise.
5534         * lib/fnmatch_loop.c (FCT): Likewise.
5535
5536         regcomp: skip collseq lookup when there are no rules
5537         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
5538         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
5539
5540         regcomp: recognize ill-formed { } expressions
5541         * lib/regcomp.c (parse_dup_op): From glibc:
5542         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
5543
5544         regcomp: fix typo in comment
5545         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
5546         s/satisfy/satisfies/.
5547
5548         regcomp: sync from glibc: remove dead store
5549         * lib/regcomp.c (duplicate_node_closure): Remove useless
5550         search_duplicated_node call and dead store.
5551
5552         regcomp: sync from glibc; always use nl_langinfo
5553         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
5554         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
5555         * modules/regex (Depends-on): Add nl_langinfo.
5556
5557 2010-01-04  Eric Blake  <ebb9@byu.net>
5558
5559         fdopendir: fix configure test
5560         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
5561
5562 2010-01-01  Bruno Haible  <bruno@clisp.org>
5563
5564         wchar: Remove unused configure check.
5565         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
5566
5567 2010-01-01  Eric Blake  <ebb9@byu.net>
5568
5569         headers: make check of system header explicit
5570         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
5571         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
5572         ourselves.
5573         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
5574         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5575         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
5576         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
5577         internals.
5578         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
5579         missing.
5580         Suggested by Bruno Haible.
5581
5582 2010-01-01  Jim Meyering  <meyering@redhat.com>
5583
5584         ChangeLog: tweak to eliminate unnecessary copyright line
5585         * ChangeLog: Remove a copyright line that was mistakenly updated
5586         by today's update-copyright run.  Reported by Eric Blake.
5587
5588         test-update-copyright: don't let envvar setting cause test failure
5589         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
5590
5591 2010-01-01  Bruno Haible  <bruno@clisp.org>
5592
5593         localename: Avoid gcc warning.
5594         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
5595         function if it is not used.
5596
5597 2010-01-01  Jim Meyering  <meyering@redhat.com>
5598
5599         update nearly all FSF copyright year lists to include 2010
5600         Use the same procedure as for 2009, outlined in
5601         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
5602
5603         version-etc: set COPYRIGHT_YEAR to 2010
5604         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
5605
5606 2009-12-31  Eric Blake  <ebb9@byu.net>
5607
5608         doc: correct availability of cygwin 1.5.x getopt
5609         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
5610         variables.
5611         * doc/posix-functions/opterr.texi (opterr): Likewise.
5612         * doc/posix-functions/optind.texi (optind): Likewise.
5613         * doc/posix-functions/optopt.texi (optopt): Likewise.
5614         * doc/posix-functions/tzname.texi (tzname): Likewise.
5615
5616         openat: update maintainer
5617         * modules/openat (Maintainer): Add myself.
5618
5619         utimens: avoid shadowing warning
5620         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
5621         buffers into one, to avoid shadowing, as well as avoiding a
5622         redundant stat.
5623         Reported by Jim Meyering.
5624
5625         test-dup2: avoid compiler warning
5626         * tests/test-dup2.c (is_inheritable): Only define if used.
5627
5628 2010-01-01  Bruno Haible  <bruno@clisp.org>
5629
5630         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
5631         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
5632         defined, use wctomb instead of wcrtomb.
5633
5634 2010-01-01  Bruno Haible  <bruno@clisp.org>
5635
5636         iconv: Reject native Solaris iconv.
5637         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
5638         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
5639
5640 2009-12-31  Bruno Haible  <bruno@clisp.org>
5641
5642         * tests/test-signal.c (main): Remove test of 'SIG'.
5643
5644 2009-12-31  Bruno Haible  <bruno@clisp.org>
5645
5646         spawn: Fix incomplete fix.
5647         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
5648         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
5649         warnings for GNULIB_POSIXCHECK again.
5650         Reported by Eric Blake.
5651
5652 2009-12-31  Bruno Haible  <bruno@clisp.org>
5653
5654         Avoid namespace pollution on glibc systems.
5655         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
5656         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
5657         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
5658         glibc systems.
5659
5660 2009-12-31  Bruno Haible  <bruno@clisp.org>
5661
5662         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
5663         (gl_REPLACE_WCHAR_H): Turn into a no-op.
5664         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
5665         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
5666         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
5667         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
5668         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
5669
5670 2009-12-31  Bruno Haible  <bruno@clisp.org>
5671
5672         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
5673         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
5674         afterwards.
5675
5676 2009-12-31  Bruno Haible  <bruno@clisp.org>
5677
5678         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
5679         SYS_UTSNAME_H.
5680
5681 2009-12-31  Bruno Haible  <bruno@clisp.org>
5682
5683         spawn: Fix misapplied patch.
5684         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
5685         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
5686         warnings for GNULIB_POSIXCHECK.
5687
5688 2009-12-31  Bruno Haible  <bruno@clisp.org>
5689
5690         times: Update after sys_times changed.
5691         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
5692         * modules/times (Files): Add it.
5693         (configure.ac): Invoke gl_FUNC_TIMES.
5694
5695 2009-12-31  Bruno Haible  <bruno@clisp.org>
5696
5697         Use AC_C_INLINE where necessary.
5698         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
5699         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
5700         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
5701         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
5702         * m4/mbfile.m4 (gl_MBFILE): Likewise.
5703         * m4/mbiter.m4 (gl_MBITER): Likewise.
5704         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
5705         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
5706         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
5707         * modules/u64 (configure.ac): Likewise.
5708
5709 2009-12-31  Bruno Haible  <bruno@clisp.org>
5710
5711         Use AC_C_INLINE instead of module 'inline' where possible.
5712         * modules/inline (Description): Clarify purpose.
5713         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
5714         * modules/count-one-bits (Depends-on): Remove inline.
5715         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
5716         * modules/openat (Depends-on): Remove inline.
5717         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
5718         instead of depending on module 'inline'.
5719         * modules/filevercmp (Depends-on, configure.ac): Likewise.
5720         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
5721         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
5722         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
5723         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
5724         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
5725         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
5726         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
5727         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
5728         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
5729         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
5730         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
5731         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
5732         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
5733         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
5734         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
5735         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
5736         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
5737         Likewise.
5738         * modules/unictype/property-ascii-hex-digit (Depends-on,
5739         configure.ac): Likewise.
5740         * modules/unictype/property-bidi-arabic-digit (Depends-on,
5741         configure.ac): Likewise.
5742         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
5743         configure.ac): Likewise.
5744         * modules/unictype/property-bidi-block-separator (Depends-on,
5745         configure.ac): Likewise.
5746         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
5747         configure.ac): Likewise.
5748         * modules/unictype/property-bidi-common-separator (Depends-on,
5749         configure.ac): Likewise.
5750         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
5751         Likewise.
5752         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
5753         configure.ac): Likewise.
5754         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
5755         configure.ac): Likewise.
5756         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
5757         configure.ac): Likewise.
5758         * modules/unictype/property-bidi-european-digit (Depends-on,
5759         configure.ac): Likewise.
5760         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
5761         configure.ac): Likewise.
5762         * modules/unictype/property-bidi-left-to-right (Depends-on,
5763         configure.ac): Likewise.
5764         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
5765         configure.ac): Likewise.
5766         * modules/unictype/property-bidi-other-neutral (Depends-on,
5767         configure.ac): Likewise.
5768         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
5769         Likewise.
5770         * modules/unictype/property-bidi-segment-separator (Depends-on,
5771         configure.ac): Likewise.
5772         * modules/unictype/property-bidi-whitespace (Depends-on,
5773         configure.ac): Likewise.
5774         * modules/unictype/property-combining (Depends-on, configure.ac):
5775         Likewise.
5776         * modules/unictype/property-composite (Depends-on, configure.ac):
5777         Likewise.
5778         * modules/unictype/property-currency-symbol (Depends-on,
5779         configure.ac): Likewise.
5780         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
5781         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
5782         Likewise.
5783         * modules/unictype/property-default-ignorable-code-point (Depends-on,
5784         configure.ac): Likewise.
5785         * modules/unictype/property-deprecated (Depends-on, configure.ac):
5786         Likewise.
5787         * modules/unictype/property-diacritic (Depends-on, configure.ac):
5788         Likewise.
5789         * modules/unictype/property-extender (Depends-on, configure.ac):
5790         Likewise.
5791         * modules/unictype/property-format-control (Depends-on, configure.ac):
5792         Likewise.
5793         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
5794         Likewise.
5795         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
5796         Likewise.
5797         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
5798         Likewise.
5799         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
5800         Likewise.
5801         * modules/unictype/property-hyphen (Depends-on, configure.ac):
5802         Likewise.
5803         * modules/unictype/property-id-continue (Depends-on, configure.ac):
5804         Likewise.
5805         * modules/unictype/property-id-start (Depends-on, configure.ac):
5806         Likewise.
5807         * modules/unictype/property-ideographic (Depends-on, configure.ac):
5808         Likewise.
5809         * modules/unictype/property-ids-binary-operator (Depends-on,
5810         configure.ac): Likewise.
5811         * modules/unictype/property-ids-trinary-operator (Depends-on,
5812         configure.ac): Likewise.
5813         * modules/unictype/property-ignorable-control (Depends-on,
5814         configure.ac): Likewise.
5815         * modules/unictype/property-iso-control (Depends-on, configure.ac):
5816         Likewise.
5817         * modules/unictype/property-join-control (Depends-on, configure.ac):
5818         Likewise.
5819         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
5820         Likewise.
5821         * modules/unictype/property-line-separator (Depends-on, configure.ac):
5822         Likewise.
5823         * modules/unictype/property-logical-order-exception (Depends-on,
5824         configure.ac): Likewise.
5825         * modules/unictype/property-lowercase (Depends-on, configure.ac):
5826         Likewise.
5827         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
5828         * modules/unictype/property-non-break (Depends-on, configure.ac):
5829         Likewise.
5830         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
5831         Likewise.
5832         * modules/unictype/property-numeric (Depends-on, configure.ac):
5833         Likewise.
5834         * modules/unictype/property-other-alphabetic (Depends-on,
5835         configure.ac): Likewise.
5836         * modules/unictype/property-other-default-ignorable-code-point
5837         (Depends-on, configure.ac): Likewise.
5838         * modules/unictype/property-other-grapheme-extend (Depends-on,
5839         configure.ac): Likewise.
5840         * modules/unictype/property-other-id-continue (Depends-on,
5841         configure.ac): Likewise.
5842         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
5843         Likewise.
5844         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
5845         Likewise.
5846         * modules/unictype/property-other-math (Depends-on, configure.ac):
5847         Likewise.
5848         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
5849         Likewise.
5850         * modules/unictype/property-paired-punctuation (Depends-on,
5851         configure.ac): Likewise.
5852         * modules/unictype/property-paragraph-separator (Depends-on,
5853         configure.ac): Likewise.
5854         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
5855         Likewise.
5856         * modules/unictype/property-pattern-white-space (Depends-on,
5857         configure.ac): Likewise.
5858         * modules/unictype/property-private-use (Depends-on, configure.ac):
5859         Likewise.
5860         * modules/unictype/property-punctuation (Depends-on, configure.ac):
5861         Likewise.
5862         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
5863         Likewise.
5864         * modules/unictype/property-radical (Depends-on, configure.ac):
5865         Likewise.
5866         * modules/unictype/property-sentence-terminal (Depends-on,
5867         configure.ac): Likewise.
5868         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
5869         Likewise.
5870         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
5871         * modules/unictype/property-terminal-punctuation (Depends-on,
5872         configure.ac): Likewise.
5873         * modules/unictype/property-titlecase (Depends-on, configure.ac):
5874         Likewise.
5875         * modules/unictype/property-unassigned-code-value (Depends-on,
5876         configure.ac): Likewise.
5877         * modules/unictype/property-unified-ideograph (Depends-on,
5878         configure.ac): Likewise.
5879         * modules/unictype/property-uppercase (Depends-on, configure.ac):
5880         Likewise.
5881         * modules/unictype/property-variation-selector (Depends-on,
5882         configure.ac): Likewise.
5883         * modules/unictype/property-white-space (Depends-on, configure.ac):
5884         Likewise.
5885         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
5886         Likewise.
5887         * modules/unictype/property-xid-start (Depends-on, configure.ac):
5888         Likewise.
5889         * modules/unictype/property-zero-width (Depends-on, configure.ac):
5890         Likewise.
5891         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
5892         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
5893         Likewise.
5894
5895 2009-12-31  Bruno Haible  <bruno@clisp.org>
5896
5897         Remove unnecessary AC_C_INLINE invocation.
5898         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
5899         since 2009-08-21.
5900
5901 2009-12-31  Jim Meyering  <meyering@redhat.com>
5902
5903         maint.mk: don't require explicit gpg_key_ID in cfg.mk
5904         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
5905         With this change, we can all remove the gpg_key_ID = ... definition
5906         from our respective cfg.mk files.
5907
5908         maint.mk: create announcement template in ~/, not in /tmp
5909         * top/maint.mk (emit_upload_commands): Adjust.
5910         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
5911         Remove temporary file, .ci-msg.
5912
5913 2009-12-31  Eric Blake  <ebb9@byu.net>
5914
5915         link-warning: always build headers with link warnings
5916         * modules/arpa_inet (Makefile.am): Always build replacement
5917         header.
5918         * modules/ctype (Makefile.am): Likewise.
5919         * modules/dirent (Makefile.am): Likewise.
5920         * modules/inttypes (Makefile.am): Likewise.
5921         * modules/langinfo (Makefile.am): Likewise.
5922         * modules/locale (Makefile.am): Likewise.
5923         * modules/spawn (Makefile.am): Likewise.
5924         * modules/sys_file (Makefile.am): Likewise.
5925         * modules/sys_ioctl (Makefile.am): Likewise.
5926         * modules/sys_select (Makefile.am): Likewise.
5927         * modules/sys_socket (Makefile.am): Likewise.
5928         * modules/sys_times (Makefile.am): Likewise.
5929         * modules/sys_utsname (Makefile.am): Likewise.
5930         * modules/sys_wait (Makefile.am): Likewise.
5931         * modules/wchar (Makefile.am): Likewise.
5932         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
5933         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
5934         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
5935         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
5936         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
5937         Likewise.
5938         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
5939         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
5940         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
5941         Likewise.
5942         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
5943         Likewise.
5944         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
5945         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
5946         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
5947         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5948         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
5949         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
5950         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
5951         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
5952         (gl_WCHAR_H_DEFAULTS): Likewise.
5953
5954 2009-12-31  Eric Blake  <ebb9@byu.net>
5955
5956         signal, spawn: use link warnings
5957         * lib/signal.in.h (sigset_t): Make unconditional.
5958         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
5959         (sigpending, sigprocmask, sigaction): Add link warnings.
5960         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
5961         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
5962         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
5963         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
5964         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
5965         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
5966         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
5967         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
5968         (posix_spawn_file_actions_destroy)
5969         (posix_spawn_file_actions_addopen)
5970         (posix_spawn_file_actions_addclose)
5971         (posix_spawn_file_actions_adddup2): Likewise.
5972         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
5973         * tests/test-signal.c (main): Enhance test.
5974
5975         spawn: improve wrapper support
5976         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
5977         (gl_SPAWN_H_DEFAULTS): New defaults.
5978         * modules/spawn (Makefile.am): Substitute them.
5979         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
5980         Only declare if missing or broken.
5981
5982         sys_times, sys_utsname: use include_next
5983         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
5984         header.
5985         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
5986         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
5987         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
5988         * modules/sys_times (Depends-on): Add include_next.
5989         (Makefile.am): Substitute additional values.
5990         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
5991         * lib/sys_times.in.h (includes): Include native header, if
5992         available.
5993         * lib/sys_utsname.in.h (includes): Likewise.
5994         * tests/test-sys_times.c (main): Enhance test.
5995
5996         fdutimensat: revert prior patch
5997         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
5998         utimens.h.
5999         Reported by Bruno Haible.
6000
6001 2009-12-30  Eric Blake  <ebb9@byu.net>
6002
6003         sys_wait: drop link-warning dependency
6004         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
6005         link-warning efforts.
6006         * lib/sys_wait.in.h: Likewise.
6007
6008         fdutimensat: remove bogus dependency
6009         * modules/fdutimensat (Depends-on): Drop inline.
6010
6011         unistd: fix typo
6012         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
6013
6014 2009-12-30  Bruno Haible  <bruno@clisp.org>
6015
6016         Fix compilation error with Solaris cc.
6017         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
6018         * lib/unicase/u16-is-invariant.c: Likewise.
6019         * lib/unicase/u32-is-invariant.c: Likewise.
6020         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
6021
6022 2009-12-30  Bruno Haible  <bruno@clisp.org>
6023
6024         Fix test crash.
6025         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
6026         locales.
6027         Reported by Simon Josefsson <simon@josefsson.org>.
6028
6029 2009-12-30  Bruno Haible  <bruno@clisp.org>
6030
6031         Fix compilation error on most platforms.
6032         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
6033         Reported by Simon Josefsson <simon@josefsson.org>
6034         and Nelson H. F. Beebe <beebe@math.utah.edu>.
6035
6036 2009-12-30  Eric Blake  <ebb9@byu.net>
6037
6038         futimens, utimensat: work around ntfs-3g bug
6039         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
6040         a ctime bug is present, and expand workaround to cover ntfs-3g.
6041         * lib/utimens.c (fdutimens, lutimens): Likewise.
6042         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
6043         (validate_timespec): Adjust return value.
6044         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
6045         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
6046         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
6047
6048 2009-12-29  Eric Blake  <ebb9@byu.net>
6049
6050         link-warning: make usage consistent
6051         * modules/ctype (Depends-on): Add link-warning.
6052         (Makefile.am): Update rules accordingly.
6053         * modules/langinfo (Depends-on, Makefile.am): Likewise.
6054         * modules/locale (Depends-on, Makefile.am): Likewise.
6055         * modules/sys_file (Makefile.am): Likewise.
6056         * modules/getopt-posix (Makefile.am): Delete unused link warning
6057         efforts.
6058         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
6059         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
6060         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
6061         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
6062
6063         stdio: remove unused variables
6064         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
6065         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
6066         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
6067
6068         tests: test more substitute headers
6069         * modules/ctype-tests: New file.
6070         * modules/dirent-tests: Likewise.
6071         * modules/spawn-tests: Likewise.
6072         * modules/sys_file-tests: Likewise.
6073         * modules/sys_ioctl-tests: Likewise.
6074         * modules/sys_wait-tests: Likewise.
6075         * tests/test-ctype.c: Likewise.
6076         * tests/test-dirent.c: Likewise.
6077         * tests/test-spawn.c: Likewise.
6078         * tests/test-sys_file.c: Likewise.
6079         * tests/test-sys_ioctl.c: Likewise.
6080         * tests/test-sys_wait.c: Likewise.
6081         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
6082         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
6083         whether or not flock is in use.
6084
6085         tests: remove License section from module
6086         * modules/arpa_inet-tests: Remove unneeded section.
6087         * modules/byteswap-tests: Likewise.
6088         * modules/ceilf-tests: Likewise.
6089         * modules/ceill-tests: Likewise.
6090         * modules/crypto/des-tests: Likewise.
6091         * modules/crypto/gc-arcfour-tests: Likewise.
6092         * modules/crypto/gc-arctwo-tests: Likewise.
6093         * modules/crypto/gc-des-tests: Likewise.
6094         * modules/crypto/gc-hmac-md5-tests: Likewise.
6095         * modules/crypto/gc-hmac-sha1-tests: Likewise.
6096         * modules/crypto/gc-md2-tests: Likewise.
6097         * modules/crypto/gc-md4-tests: Likewise.
6098         * modules/crypto/gc-md5-tests: Likewise.
6099         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
6100         * modules/crypto/gc-rijndael-tests: Likewise.
6101         * modules/crypto/gc-sha1-tests: Likewise.
6102         * modules/crypto/gc-tests: Likewise.
6103         * modules/crypto/md2-tests: Likewise.
6104         * modules/crypto/md4-tests: Likewise.
6105         * modules/fcntl-h-tests: Likewise.
6106         * modules/floorf-tests: Likewise.
6107         * modules/floorl-tests: Likewise.
6108         * modules/frexp-nolibm-tests: Likewise.
6109         * modules/frexp-tests: Likewise.
6110         * modules/frexpl-nolibm-tests: Likewise.
6111         * modules/frexpl-tests: Likewise.
6112         * modules/getaddrinfo-tests: Likewise.
6113         * modules/inttypes-tests: Likewise.
6114         * modules/isfinite-tests: Likewise.
6115         * modules/isinf-tests: Likewise.
6116         * modules/ldexpl-tests: Likewise.
6117         * modules/locale-tests: Likewise.
6118         * modules/math-tests: Likewise.
6119         * modules/netdb-tests: Likewise.
6120         * modules/netinet_in-tests: Likewise.
6121         * modules/printf-frexp-tests: Likewise.
6122         * modules/printf-frexpl-tests: Likewise.
6123         * modules/priv-set-tests: Likewise.
6124         * modules/random_r-tests: Likewise.
6125         * modules/round-tests: Likewise.
6126         * modules/roundf-tests: Likewise.
6127         * modules/roundl-tests: Likewise.
6128         * modules/search-tests: Likewise.
6129         * modules/select-tests: Likewise.
6130         * modules/signal-tests: Likewise.
6131         * modules/stdbool-tests: Likewise.
6132         * modules/stddef-tests: Likewise.
6133         * modules/stdint-tests: Likewise.
6134         * modules/stdio-tests: Likewise.
6135         * modules/stdlib-tests: Likewise.
6136         * modules/string-tests: Likewise.
6137         * modules/strings-tests: Likewise.
6138         * modules/sys_select-tests: Likewise.
6139         * modules/sys_socket-tests: Likewise.
6140         * modules/sys_stat-tests: Likewise.
6141         * modules/sys_time-tests: Likewise.
6142         * modules/sys_utsname-tests: Likewise.
6143         * modules/sysexits-tests: Likewise.
6144         * modules/time-tests: Likewise.
6145         * modules/trunc-tests: Likewise.
6146         * modules/truncf-tests: Likewise.
6147         * modules/truncl-tests: Likewise.
6148         * modules/tsearch-tests: Likewise.
6149         * modules/unistd-tests: Likewise.
6150         * modules/wchar-tests: Likewise.
6151         * modules/wctype-tests: Likewise.
6152
6153         tests: fix license on several tests
6154         * tests/test-des.c: Update to GPLv3+.
6155         * tests/test-flock.c: Likewise.
6156         * tests/test-fsync.c: Likewise.
6157         * tests/test-futimens.h: Likewise.
6158         * tests/test-gc-arcfour.c: Likewise.
6159         * tests/test-gc-arctwo.c: Likewise.
6160         * tests/test-gc-des.c: Likewise.
6161         * tests/test-gc-hmac-md5.c: Likewise.
6162         * tests/test-gc-hmac-sha1.c: Likewise.
6163         * tests/test-gc-md2.c: Likewise.
6164         * tests/test-gc-md4.c: Likewise.
6165         * tests/test-gc-md5.c: Likewise.
6166         * tests/test-gc-pbkdf2-sha1.c: Likewise.
6167         * tests/test-gc-rijndael.c: Likewise.
6168         * tests/test-gc-sha1.c: Likewise.
6169         * tests/test-gc.c: Likewise.
6170         * tests/test-getcwd.c: Likewise.
6171         * tests/test-link.c: Likewise.
6172         * tests/test-link.h: Likewise.
6173         * tests/test-lutimens.h: Likewise.
6174         * tests/test-md2.c: Likewise.
6175         * tests/test-md4.c: Likewise.
6176         * tests/test-mkdir.h: Likewise.
6177         * tests/test-rename.c: Likewise.
6178         * tests/test-rename.h: Likewise.
6179         * tests/test-safe-alloc.c: Likewise.
6180         * tests/test-utimens-common.h: Likewise.
6181         * tests/test-utimens.h: Likewise.
6182
6183         maint: sync license texts
6184         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
6185         * doc/gpl-3.0.texi: Revert copyright year update.
6186         * doc/lgpl-3.0.texi: Likewise.
6187
6188 2009-12-29  Jim Meyering  <meyering@redhat.com>
6189
6190         update nearly all FSF copyright year lists to include 2009
6191         The files named by the following are exempted:
6192             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
6193               test -f "$dst" && { echo "$dst"; continue; }
6194               test -d "$dst" || continue
6195               echo "$dst"/$(basename "$src")
6196             done > exempt
6197             git ls-files tests/unictype >> exempt
6198         In the remaining files, convert to all-interval notation if
6199         - there is already at least one year interval like 2000-2003
6200         - the file is maintained by me
6201         - the file is in lib/uni*/, where that style already prevails
6202         Otherwise, use update-copyright's default.
6203
6204 2009-12-29  Simon Josefsson  <simon@josefsson.org>
6205         and Eric Blake  <ebb9@byu.net>
6206
6207         tests: don't require debug system() to pass
6208         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
6209         * tests/test-rmdir.h (test_rmdir_func): Likewise.
6210         * tests/test-unlink.h (test_unlink_func): Likewise.
6211         * tests/test-fstatat.c (main): ...into callers.
6212         * tests/test-lstat.c (main): Likewise.
6213         * tests/test-rmdir.c (main): Likewise.
6214         * tests/test-unlink.c (main): Likewise.
6215         * tests/test-unlinkat.c (main): Likewise.
6216         * tests/test-areadlink-with-size.c (main): Don't require a
6217         debug-only system call to pass, aiding cross-testing to mingw.
6218         * tests/test-areadlink.c (main): Likewise.
6219         * tests/test-areadlinkat-with-size.c (main): Likewise.
6220         * tests/test-areadlinkat.c (main): Likewise.
6221         * tests/test-canonicalize-lgpl.c (main): Likewise.
6222         * tests/test-canonicalize.c (main): Likewise.
6223         * tests/test-chown.c (main): Likewise.
6224         * tests/test-fchownat.c (main): Likewise.
6225         * tests/test-lchown.c (main): Likewise.
6226         * tests/test-fdutimensat.c (main): Likewise.
6227         * tests/test-futimens.c (main): Likewise.
6228         * tests/test-link.c (main): Likewise.
6229         * tests/test-linkat.c (main): Likewise.
6230         * tests/test-mkdir.c (main): Likewise.
6231         * tests/test-mkdirat.c (main): Likewise.
6232         * tests/test-mkfifo.c (main): Likewise.
6233         * tests/test-mkfifoat.c (main): Likewise.
6234         * tests/test-mknod.c (main): Likewise.
6235         * tests/test-readlink.c (main): Likewise.
6236         * tests/test-remove.c (main): Likewise.
6237         * tests/test-rename.c (main): Likewise.
6238         * tests/test-renameat.c (main): Likewise.
6239         * tests/test-symlink.c (main): Likewise.
6240         * tests/test-symlinkat.c (main): Likewise.
6241         * tests/test-utimens.c (main): Likewise.
6242         * tests/test-utimensat.c (main): Likewise.
6243
6244 2009-12-29  Simon Josefsson  <simon@josefsson.org>
6245
6246         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
6247         on $(UNUSED_PARAMETER_H) to avoid build failure.
6248
6249 2009-12-28  Jim Meyering  <meyering@redhat.com>
6250
6251         update-copyright: you may specify a max. line length other than 72
6252         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
6253
6254         maint: use consistent FSF copyright line syntax
6255         * lib/posixtm.c: Add missing comma in FSF copyright line.
6256         * lib/posixtm.h: Likewise.
6257         * lib/getugroups.c: Add missing ", Inc.".
6258
6259         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
6260         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
6261         FSF copyright line.  Remove trailing blanks.
6262
6263 2009-12-28  Eric Blake  <ebb9@byu.net>
6264
6265         test-dup2: reduce dependencies
6266         * modules/cloexec (Configure.ac): Set witness.
6267         * modules/dup2-tests (Depends-on): Drop cloexec.
6268         * tests/test-dup2.c (main): Skip portion of test if cloexec module
6269         not present.
6270         Suggested by Bruno Haible.
6271
6272 2009-12-26  Bruno Haible  <bruno@clisp.org>
6273
6274         Remove an unneeded dependency.
6275         * modules/fseterr (Depends-on): Remove dup2.
6276
6277 2009-12-26  Eric Blake  <ebb9@byu.net>
6278
6279         tests: use macros.h in more places
6280         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
6281         (ASSERT_STREAM): Provide default of stderr.
6282         * tests/test-dirent-safer.c: Include macros.h, using alternate
6283         stream for assertions.
6284         * tests/test-dup-safer.c: Likewise.
6285         * tests/test-freopen-safer.c: Likewise.
6286         * tests/test-getopt.c: Likewise.
6287         * tests/test-openat-safer.c: Likewise.
6288         * tests/test-pipe.c: Likewise.
6289         * tests/test-popen-safer.c: Likewise.
6290         * modules/dirent-safer-tests (Files): Include macros.h.
6291         * modules/unistd-safer-tests (Files): Likewise.
6292         * modules/freopen-safer-tests (Files): Likewise.
6293         * modules/getopt-posix-tests (Files): Likewise.
6294         * modules/openat-safer-tests (Files): Likewise.
6295         * modules/pipe-tests (Files): Likewise.
6296
6297 2009-12-26  Bruno Haible  <bruno@clisp.org>
6298
6299         javacomp: Portability fix.
6300         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
6301         that it also works on Solaris.
6302
6303 2009-12-26  Bruno Haible  <bruno@clisp.org>
6304
6305         localename: Fix storage allocation of gl_locale_name_thread's result.
6306         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
6307         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
6308         all platforms that have 'uselocale'.
6309         (gl_locale_name_thread_unsafe): New function, extracted from
6310         gl_locale_name_thread.
6311         (gl_locale_name_thread): Call struniq on all platforms that have
6312         'uselocale'.
6313         * tests/test-localename.c (test_locale_name_thread): Check that the
6314         resulting strings are permanently allocated.
6315         * modules/localename-tests (Depends-on): Add strdup.
6316
6317 2009-12-26  Bruno Haible  <bruno@clisp.org>
6318
6319         * tests/test-localename.c (categories): Fill in the strings.
6320
6321 2009-12-26  Jim Meyering  <meyering@redhat.com>
6322
6323         isdir: complete the removal of m4/isdir.m4
6324         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
6325
6326         isdir: clean up, since at least grep still uses it
6327         * lib/isdir.c: Include "isdir.h".
6328         (S_ISDIR): Remove now-unneeded definition.
6329         * modules/isdir (Files): Add lib/isdir.h.
6330         * lib/isdir.h: New file, with declaration.
6331         * m4/isdir.m4: Remove file -- unneeded.
6332
6333 2009-12-25  Bruno Haible  <bruno@clisp.org>
6334
6335         selinux-h: Make generated .h files standalone.
6336         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
6337         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
6338         * lib/se-selinux.in.h: Likewise.
6339         * modules/selinux-h (Depends-on): Add unused-parameter.
6340         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
6341         selinux/selinux.h and selinux/context.h.
6342         Suggested by Eric Blake.
6343
6344 2009-12-25  Bruno Haible  <bruno@clisp.org>
6345
6346         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
6347         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
6348         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
6349         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
6350         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
6351
6352 2009-12-24  Bruno Haible  <bruno@clisp.org>
6353
6354         openat: Fix warning.
6355         * lib/openat-proc.c: Include <unistd.h>.
6356
6357 2009-12-24  Bruno Haible  <bruno@clisp.org>
6358
6359         New module 'unused-parameter'.
6360         * build-aux/unused-parameter.h: New file, extracted from earlier
6361         gnulib-common.m4.
6362         * modules/unused-parameter: New file.
6363         * lib/unistr.h: Include unused-parameter.h.
6364         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
6365         _GL_UNUSED.
6366         * modules/unistr/base (Depends-on): Add unused-parameter.
6367
6368 2009-12-24  Bruno Haible  <bruno@clisp.org>
6369
6370         Add missing dependencies to 'extensions' module.
6371         * m4/extensions.m4: Add comment.
6372         * modules/accept4 (Depends-on): Add extensions.
6373         * modules/dup3 (Depends-on): Likewise.
6374         * modules/fcntl (Depends-on): Likewise.
6375         * modules/futimens (Depends-on): Likewise.
6376         * modules/mknod (Depends-on): Likewise.
6377         * modules/pipe2 (Depends-on): Likewise.
6378         * modules/stat-time (Depends-on): Likewise.
6379         * modules/strcasestr-simple (Depends-on): Likewise.
6380         * modules/strsignal (Depends-on): Likewise.
6381         * modules/utimensat (Depends-on): Likewise.
6382         * modules/localcharset (Depends-on): Likewise. Needed because of
6383         gl_FCNTL_O_FLAGS.
6384         * modules/wcrtomb (Depends-on): Likewise. Needed because of
6385         AC_TYPE_MBSTATE_T.
6386         * modules/wcsnrtombs (Depends-on): Likewise.
6387         * modules/wcsrtombs (Depends-on): Likewise.
6388
6389 2009-12-24  Bruno Haible  <bruno@clisp.org>
6390
6391         binary-io: Avoid gcc warning due to SET_BINARY.
6392         * lib/binary-io.h (SET_BINARY): Cast the result to void.
6393         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
6394
6395 2009-12-24  Bruno Haible  <bruno@clisp.org>
6396
6397         Avoid future namespace pollution on glibc systems.
6398         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
6399         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
6400         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
6401         glibc systems.
6402
6403 2009-12-24  Bruno Haible  <bruno@clisp.org>
6404
6405         Refactor common macros used in tests.
6406         * tests/macros.h: New file.
6407         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
6408         and/or <stdlib.h>, if appropriate.
6409         (ASSERT, SIZEOF): Remove macros.
6410         * tests/test-areadlink-with-size.c: Likewise.
6411         * tests/test-areadlinkat.c: Likewise.
6412         * tests/test-areadlinkat-with-size.c: Likewise.
6413         * tests/test-argmatch.c: Likewise.
6414         * tests/test-argv-iter.c: Likewise.
6415         * tests/test-array-mergesort.c: Likewise.
6416         * tests/test-array_list.c: Likewise.
6417         * tests/test-array_oset.c: Likewise.
6418         * tests/test-avltree_list.c: Likewise.
6419         * tests/test-avltree_oset.c: Likewise.
6420         * tests/test-avltreehash_list.c: Likewise.
6421         * tests/test-base64.c: Likewise.
6422         * tests/test-binary-io.c: Likewise.
6423         * tests/test-bitrotate.c: Likewise.
6424         * tests/test-btowc.c: Likewise.
6425         * tests/test-byteswap.c: Likewise.
6426         * tests/test-c-ctype.c: Likewise.
6427         * tests/test-c-stack.c: Likewise.
6428         * tests/test-c-strcasecmp.c: Likewise.
6429         * tests/test-c-strcasestr.c: Likewise.
6430         * tests/test-c-strncasecmp.c: Likewise.
6431         * tests/test-c-strstr.c: Likewise.
6432         * tests/test-canonicalize-lgpl.c: Likewise.
6433         * tests/test-canonicalize.c: Likewise.
6434         * tests/test-carray_list.c: Likewise.
6435         * tests/test-ceilf1.c: Likewise.
6436         * tests/test-ceilf2.c: Likewise.
6437         * tests/test-ceill.c: Likewise.
6438         * tests/test-chown.c: Likewise.
6439         * tests/test-cloexec.c: Likewise.
6440         * tests/test-copy-acl.c: Likewise.
6441         * tests/test-copy-file.c: Likewise.
6442         * tests/test-count-one-bits.c: Likewise.
6443         * tests/test-dprintf-posix.c: Likewise.
6444         * tests/test-dup2.c: Likewise.
6445         * tests/test-dup3.c: Likewise.
6446         * tests/test-duplocale.c: Likewise.
6447         * tests/test-fbufmode.c: Likewise.
6448         * tests/test-fchdir.c: Likewise.
6449         * tests/test-fchownat.c: Likewise.
6450         * tests/test-fcntl-safer.c: Likewise.
6451         * tests/test-fcntl.c: Likewise.
6452         * tests/test-fdopendir.c: Likewise.
6453         * tests/test-fdutimensat.c: Likewise.
6454         * tests/test-fflush2.c: Likewise.
6455         * tests/test-file-has-acl.c: Likewise.
6456         * tests/test-filevercmp.c: Likewise.
6457         * tests/test-flock.c: Likewise.
6458         * tests/test-floorf1.c: Likewise.
6459         * tests/test-floorf2.c: Likewise.
6460         * tests/test-floorl.c: Likewise.
6461         * tests/test-fnmatch.c: Likewise.
6462         * tests/test-fopen.h: Likewise.
6463         * tests/test-fpending.c: Likewise.
6464         * tests/test-fprintf-posix.c: Likewise.
6465         * tests/test-fpurge.c: Likewise.
6466         * tests/test-freadable.c: Likewise.
6467         * tests/test-freadahead.c: Likewise.
6468         * tests/test-freading.c: Likewise.
6469         * tests/test-freadptr.c: Likewise.
6470         * tests/test-freadptr2.c: Likewise.
6471         * tests/test-freadseek.c: Likewise.
6472         * tests/test-freopen.c: Likewise.
6473         * tests/test-frexp.c: Likewise.
6474         * tests/test-frexpl.c: Likewise.
6475         * tests/test-fseek.c: Likewise.
6476         * tests/test-fseeko.c: Likewise.
6477         * tests/test-fstatat.c: Likewise.
6478         * tests/test-fstrcmp.c: Likewise.
6479         * tests/test-fsync.c: Likewise.
6480         * tests/test-ftell.c: Likewise.
6481         * tests/test-ftello.c: Likewise.
6482         * tests/test-func.c: Likewise.
6483         * tests/test-futimens.c: Likewise.
6484         * tests/test-fwritable.c: Likewise.
6485         * tests/test-fwriting.c: Likewise.
6486         * tests/test-getcwd.c: Likewise.
6487         * tests/test-getdate.c: Likewise.
6488         * tests/test-getdelim.c: Likewise.
6489         * tests/test-getdtablesize.c: Likewise.
6490         * tests/test-getgroups.c: Likewise.
6491         * tests/test-getline.c: Likewise.
6492         * tests/test-getndelim2.c: Likewise.
6493         * tests/test-glob.c: Likewise.
6494         * tests/test-hash.c: Likewise.
6495         * tests/test-i-ring.c: Likewise.
6496         * tests/test-iconv-utf.c: Likewise.
6497         * tests/test-iconv.c: Likewise.
6498         * tests/test-idpriv-drop.c: Likewise.
6499         * tests/test-idpriv-droptemp.c: Likewise.
6500         * tests/test-inet_ntop.c: Likewise.
6501         * tests/test-inet_pton.c: Likewise.
6502         * tests/test-isblank.c: Likewise.
6503         * tests/test-isfinite.c: Likewise.
6504         * tests/test-isinf.c: Likewise.
6505         * tests/test-isnan.c: Likewise.
6506         * tests/test-isnand.h: Likewise.
6507         * tests/test-isnanf.h: Likewise.
6508         * tests/test-isnanl.h: Likewise.
6509         * tests/test-lchown.c: Likewise.
6510         * tests/test-ldexpl.c: Likewise.
6511         * tests/test-link.c: Likewise.
6512         * tests/test-linkat.c: Likewise.
6513         * tests/test-linked_list.c: Likewise.
6514         * tests/test-linkedhash_list.c: Likewise.
6515         * tests/test-localename.c: Likewise.
6516         * tests/test-lseek.c: Likewise.
6517         * tests/test-lstat.c: Likewise.
6518         * tests/test-mbmemcasecmp.c: Likewise.
6519         * tests/test-mbmemcasecoll.c: Likewise.
6520         * tests/test-mbrtowc.c: Likewise.
6521         * tests/test-mbscasecmp.c: Likewise.
6522         * tests/test-mbscasestr1.c: Likewise.
6523         * tests/test-mbscasestr2.c: Likewise.
6524         * tests/test-mbscasestr3.c: Likewise.
6525         * tests/test-mbscasestr4.c: Likewise.
6526         * tests/test-mbschr.c: Likewise.
6527         * tests/test-mbscspn.c: Likewise.
6528         * tests/test-mbsinit.c: Likewise.
6529         * tests/test-mbsncasecmp.c: Likewise.
6530         * tests/test-mbsnrtowcs.c: Likewise.
6531         * tests/test-mbspbrk.c: Likewise.
6532         * tests/test-mbspcasecmp.c: Likewise.
6533         * tests/test-mbsrchr.c: Likewise.
6534         * tests/test-mbsrtowcs.c: Likewise.
6535         * tests/test-mbsspn.c: Likewise.
6536         * tests/test-mbsstr1.c: Likewise.
6537         * tests/test-mbsstr2.c: Likewise.
6538         * tests/test-mbsstr3.c: Likewise.
6539         * tests/test-memchr.c: Likewise.
6540         * tests/test-memchr2.c: Likewise.
6541         * tests/test-memcmp.c: Likewise.
6542         * tests/test-memmem.c: Likewise.
6543         * tests/test-memrchr.c: Likewise.
6544         * tests/test-mkdir.c: Likewise.
6545         * tests/test-mkdirat.c: Likewise.
6546         * tests/test-mkfifo.c: Likewise.
6547         * tests/test-mkfifoat.c: Likewise.
6548         * tests/test-mknod.c: Likewise.
6549         * tests/test-nanosleep.c: Likewise.
6550         * tests/test-nl_langinfo.c: Likewise.
6551         * tests/test-obstack-printf.c: Likewise.
6552         * tests/test-open.c: Likewise.
6553         * tests/test-openat.c: Likewise.
6554         * tests/test-pipe-filter-gi1.c: Likewise.
6555         * tests/test-pipe-filter-gi2-main.c: Likewise.
6556         * tests/test-pipe-filter-ii1.c: Likewise.
6557         * tests/test-pipe-filter-ii2-main.c: Likewise.
6558         * tests/test-pipe2.c: Likewise.
6559         * tests/test-popen.h: Likewise.
6560         * tests/test-posixtm.c: Likewise.
6561         * tests/test-pread.c: Likewise.
6562         * tests/test-printf-frexp.c: Likewise.
6563         * tests/test-printf-frexpl.c: Likewise.
6564         * tests/test-printf-posix.c: Likewise.
6565         * tests/test-priv-set.c: Likewise.
6566         * tests/test-quotearg.c: Likewise.
6567         * tests/test-random_r.c: Likewise.
6568         * tests/test-rawmemchr.c: Likewise.
6569         * tests/test-rbtree_list.c: Likewise.
6570         * tests/test-rbtree_oset.c: Likewise.
6571         * tests/test-rbtreehash_list.c: Likewise.
6572         * tests/test-readlink.c: Likewise.
6573         * tests/test-remove.c: Likewise.
6574         * tests/test-rename.c: Likewise.
6575         * tests/test-renameat.c: Likewise.
6576         * tests/test-rmdir.c: Likewise.
6577         * tests/test-round1.c: Likewise.
6578         * tests/test-roundf1.c: Likewise.
6579         * tests/test-roundl.c: Likewise.
6580         * tests/test-safe-alloc.c: Likewise.
6581         * tests/test-sameacls.c: Likewise.
6582         * tests/test-set-mode-acl.c: Likewise.
6583         * tests/test-setenv.c: Likewise.
6584         * tests/test-sigaction.c: Likewise.
6585         * tests/test-signbit.c: Likewise.
6586         * tests/test-sleep.c: Likewise.
6587         * tests/test-snprintf-posix.c: Likewise.
6588         * tests/test-snprintf.c: Likewise.
6589         * tests/test-sprintf-posix.c: Likewise.
6590         * tests/test-stat-time.c: Likewise.
6591         * tests/test-stat.c: Likewise.
6592         * tests/test-strcasestr.c: Likewise.
6593         * tests/test-strchrnul.c: Likewise.
6594         * tests/test-strerror.c: Likewise.
6595         * tests/test-striconv.c: Likewise.
6596         * tests/test-striconveh.c: Likewise.
6597         * tests/test-striconveha.c: Likewise.
6598         * tests/test-strsignal.c: Likewise.
6599         * tests/test-strstr.c: Likewise.
6600         * tests/test-strtod.c: Likewise.
6601         * tests/test-strverscmp.c: Likewise.
6602         * tests/test-symlink.c: Likewise.
6603         * tests/test-symlinkat.c: Likewise.
6604         * tests/test-trunc1.c: Likewise.
6605         * tests/test-trunc2.c: Likewise.
6606         * tests/test-truncf1.c: Likewise.
6607         * tests/test-truncf2.c: Likewise.
6608         * tests/test-truncl.c: Likewise.
6609         * tests/test-uname.c: Likewise.
6610         * tests/test-unlink.c: Likewise.
6611         * tests/test-unlinkat.c: Likewise.
6612         * tests/test-unsetenv.c: Likewise.
6613         * tests/test-usleep.c: Likewise.
6614         * tests/test-utimens.c: Likewise.
6615         * tests/test-utimensat.c: Likewise.
6616         * tests/test-vasnprintf-posix.c: Likewise.
6617         * tests/test-vasnprintf-posix2.c: Likewise.
6618         * tests/test-vasnprintf.c: Likewise.
6619         * tests/test-vasprintf-posix.c: Likewise.
6620         * tests/test-vasprintf.c: Likewise.
6621         * tests/test-vdprintf-posix.c: Likewise.
6622         * tests/test-vfprintf-posix.c: Likewise.
6623         * tests/test-vprintf-posix.c: Likewise.
6624         * tests/test-vsnprintf-posix.c: Likewise.
6625         * tests/test-vsnprintf.c: Likewise.
6626         * tests/test-vsprintf-posix.c: Likewise.
6627         * tests/test-wcrtomb.c: Likewise.
6628         * tests/test-wcsnrtombs.c: Likewise.
6629         * tests/test-wcsrtombs.c: Likewise.
6630         * tests/test-wctype.c: Likewise.
6631         * tests/test-wcwidth.c: Likewise.
6632         * tests/test-xfprintf-posix.c: Likewise.
6633         * tests/test-xmemdup0.c: Likewise.
6634         * tests/test-xprintf-posix.c: Likewise.
6635         * tests/test-xvasprintf.c: Likewise.
6636         * tests/unicase/test-locale-language.c: Likewise.
6637         * tests/unicase/test-mapping-part1.h: Likewise.
6638         * tests/unicase/test-predicate-part1.h: Likewise.
6639         * tests/unicase/test-u8-casecmp.c: Likewise.
6640         * tests/unicase/test-u8-casecoll.c: Likewise.
6641         * tests/unicase/test-u8-casefold.c: Likewise.
6642         * tests/unicase/test-u8-is-cased.c: Likewise.
6643         * tests/unicase/test-u8-is-casefolded.c: Likewise.
6644         * tests/unicase/test-u8-is-lowercase.c: Likewise.
6645         * tests/unicase/test-u8-is-titlecase.c: Likewise.
6646         * tests/unicase/test-u8-is-uppercase.c: Likewise.
6647         * tests/unicase/test-u8-tolower.c: Likewise.
6648         * tests/unicase/test-u8-totitle.c: Likewise.
6649         * tests/unicase/test-u8-toupper.c: Likewise.
6650         * tests/unicase/test-u16-casecmp.c: Likewise.
6651         * tests/unicase/test-u16-casecoll.c: Likewise.
6652         * tests/unicase/test-u16-casefold.c: Likewise.
6653         * tests/unicase/test-u16-is-cased.c: Likewise.
6654         * tests/unicase/test-u16-is-casefolded.c: Likewise.
6655         * tests/unicase/test-u16-is-lowercase.c: Likewise.
6656         * tests/unicase/test-u16-is-titlecase.c: Likewise.
6657         * tests/unicase/test-u16-is-uppercase.c: Likewise.
6658         * tests/unicase/test-u16-tolower.c: Likewise.
6659         * tests/unicase/test-u16-totitle.c: Likewise.
6660         * tests/unicase/test-u16-toupper.c: Likewise.
6661         * tests/unicase/test-u32-casecmp.c: Likewise.
6662         * tests/unicase/test-u32-casecoll.c: Likewise.
6663         * tests/unicase/test-u32-casefold.c: Likewise.
6664         * tests/unicase/test-u32-is-cased.c: Likewise.
6665         * tests/unicase/test-u32-is-casefolded.c: Likewise.
6666         * tests/unicase/test-u32-is-lowercase.c: Likewise.
6667         * tests/unicase/test-u32-is-titlecase.c: Likewise.
6668         * tests/unicase/test-u32-is-uppercase.c: Likewise.
6669         * tests/unicase/test-u32-tolower.c: Likewise.
6670         * tests/unicase/test-u32-totitle.c: Likewise.
6671         * tests/unicase/test-u32-toupper.c: Likewise.
6672         * tests/unicase/test-ulc-casecmp.c: Likewise.
6673         * tests/unicase/test-ulc-casecoll.c: Likewise.
6674         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
6675         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
6676         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
6677         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
6678         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
6679         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
6680         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
6681         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
6682         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
6683         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
6684         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
6685         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
6686         * tests/unictype/test-bidi_byname.c: Likewise.
6687         * tests/unictype/test-bidi_name.c: Likewise.
6688         * tests/unictype/test-bidi_of.c: Likewise.
6689         * tests/unictype/test-bidi_test.c: Likewise.
6690         * tests/unictype/test-block_list.c: Likewise.
6691         * tests/unictype/test-block_of.c: Likewise.
6692         * tests/unictype/test-block_test.c: Likewise.
6693         * tests/unictype/test-categ_and.c: Likewise.
6694         * tests/unictype/test-categ_and_not.c: Likewise.
6695         * tests/unictype/test-categ_byname.c: Likewise.
6696         * tests/unictype/test-categ_name.c: Likewise.
6697         * tests/unictype/test-categ_none.c: Likewise.
6698         * tests/unictype/test-categ_of.c: Likewise.
6699         * tests/unictype/test-categ_or.c: Likewise.
6700         * tests/unictype/test-categ_test_withtable.c: Likewise.
6701         * tests/unictype/test-combining.c: Likewise.
6702         * tests/unictype/test-decdigit.c: Likewise.
6703         * tests/unictype/test-digit.c: Likewise.
6704         * tests/unictype/test-mirror.c: Likewise.
6705         * tests/unictype/test-numeric.c: Likewise.
6706         * tests/unictype/test-pr_byname.c: Likewise.
6707         * tests/unictype/test-pr_test.c: Likewise.
6708         * tests/unictype/test-predicate-part1.h: Likewise.
6709         * tests/unictype/test-scripts.c: Likewise.
6710         * tests/unictype/test-sy_c_ident.c: Likewise.
6711         * tests/unictype/test-sy_java_ident.c: Likewise.
6712         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
6713         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
6714         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
6715         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
6716         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
6717         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
6718         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
6719         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
6720         * tests/uninorm/test-canonical-decomposition.c: Likewise.
6721         * tests/uninorm/test-compat-decomposition.c: Likewise.
6722         * tests/uninorm/test-composition.c: Likewise.
6723         * tests/uninorm/test-decomposing-form.c: Likewise.
6724         * tests/uninorm/test-decomposition.c: Likewise.
6725         * tests/uninorm/test-u8-nfc.c: Likewise.
6726         * tests/uninorm/test-u8-nfd.c: Likewise.
6727         * tests/uninorm/test-u8-nfkc.c: Likewise.
6728         * tests/uninorm/test-u8-nfkd.c: Likewise.
6729         * tests/uninorm/test-u8-normcmp.c: Likewise.
6730         * tests/uninorm/test-u8-normcoll.c: Likewise.
6731         * tests/uninorm/test-u16-nfc.c: Likewise.
6732         * tests/uninorm/test-u16-nfd.c: Likewise.
6733         * tests/uninorm/test-u16-nfkc.c: Likewise.
6734         * tests/uninorm/test-u16-nfkd.c: Likewise.
6735         * tests/uninorm/test-u16-normcmp.c: Likewise.
6736         * tests/uninorm/test-u16-normcoll.c: Likewise.
6737         * tests/uninorm/test-u32-nfc.c: Likewise.
6738         * tests/uninorm/test-u32-nfd.c: Likewise.
6739         * tests/uninorm/test-u32-nfkc.c: Likewise.
6740         * tests/uninorm/test-u32-nfkd.c: Likewise.
6741         * tests/uninorm/test-u32-normalize-big.c: Likewise.
6742         * tests/uninorm/test-u32-normcmp.c: Likewise.
6743         * tests/uninorm/test-u32-normcoll.c: Likewise.
6744         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
6745         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
6746         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
6747         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
6748         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
6749         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
6750         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
6751         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
6752         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
6753         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
6754         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
6755         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
6756         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
6757         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
6758         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
6759         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
6760         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
6761         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
6762         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
6763         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
6764         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
6765         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
6766         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
6767         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
6768         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
6769         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
6770         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
6771         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
6772         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
6773         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
6774         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
6775         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
6776         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
6777         * tests/uniwidth/test-u8-strwidth.c: Likewise.
6778         * tests/uniwidth/test-u8-width.c: Likewise.
6779         * tests/uniwidth/test-u16-strwidth.c: Likewise.
6780         * tests/uniwidth/test-u16-width.c: Likewise.
6781         * tests/uniwidth/test-u32-strwidth.c: Likewise.
6782         * tests/uniwidth/test-u32-width.c: Likewise.
6783         * tests/uniwidth/test-uc_width.c: Likewise.
6784         * tests/uniwidth/test-uc_width2.c: Likewise.
6785         * modules/acl-tests (Files): Add tests/macros.h.
6786         * modules/areadlink-tests (Files): Likewise.
6787         * modules/areadlink-with-size-tests (Files): Likewise.
6788         * modules/areadlinkat-tests (Files): Likewise.
6789         * modules/areadlinkat-with-size-tests (Files): Likewise.
6790         * modules/argmatch-tests (Files): Likewise.
6791         * modules/argv-iter-tests (Files): Likewise.
6792         * modules/array-list-tests (Files): Likewise.
6793         * modules/array-mergesort-tests (Files): Likewise.
6794         * modules/array-oset-tests (Files): Likewise.
6795         * modules/avltree-list-tests (Files): Likewise.
6796         * modules/avltree-oset-tests (Files): Likewise.
6797         * modules/avltreehash-list-tests (Files): Likewise.
6798         * modules/base64-tests (Files): Likewise.
6799         * modules/binary-io-tests (Files): Likewise.
6800         * modules/bitrotate-tests (Files): Likewise.
6801         * modules/btowc-tests (Files): Likewise.
6802         * modules/byteswap-tests (Files): Likewise.
6803         * modules/c-ctype-tests (Files): Likewise.
6804         * modules/c-stack-tests (Files): Likewise.
6805         * modules/c-strcase-tests (Files): Likewise.
6806         * modules/c-strcasestr-tests (Files): Likewise.
6807         * modules/c-strstr-tests (Files): Likewise.
6808         * modules/canonicalize-lgpl-tests (Files): Likewise.
6809         * modules/canonicalize-tests (Files): Likewise.
6810         * modules/carray-list-tests (Files): Likewise.
6811         * modules/ceilf-tests (Files): Likewise.
6812         * modules/ceill-tests (Files): Likewise.
6813         * modules/chown-tests (Files): Likewise.
6814         * modules/cloexec-tests (Files): Likewise.
6815         * modules/copy-file-tests (Files): Likewise.
6816         * modules/count-one-bits-tests (Files): Likewise.
6817         * modules/dprintf-posix-tests (Files): Likewise.
6818         * modules/dup2-tests (Files): Likewise.
6819         * modules/dup3-tests (Files): Likewise.
6820         * modules/duplocale-tests (Files): Likewise.
6821         * modules/fbufmode-tests (Files): Likewise.
6822         * modules/fchdir-tests (Files): Likewise.
6823         * modules/fcntl-safer-tests (Files): Likewise.
6824         * modules/fcntl-tests (Files): Likewise.
6825         * modules/fdopendir-tests (Files): Likewise.
6826         * modules/fdutimensat-tests (Files): Likewise.
6827         * modules/fflush-tests (Files): Likewise.
6828         * modules/filevercmp-tests (Files): Likewise.
6829         * modules/flock-tests (Files): Likewise.
6830         * modules/floorf-tests (Files): Likewise.
6831         * modules/floorl-tests (Files): Likewise.
6832         * modules/fnmatch-tests (Files): Likewise.
6833         * modules/fopen-safer-tests (Files): Likewise.
6834         * modules/fopen-tests (Files): Likewise.
6835         * modules/fpending-tests (Files): Likewise.
6836         * modules/fprintf-posix-tests (Files): Likewise.
6837         * modules/fpurge-tests (Files): Likewise.
6838         * modules/freadable-tests (Files): Likewise.
6839         * modules/freadahead-tests (Files): Likewise.
6840         * modules/freading-tests (Files): Likewise.
6841         * modules/freadptr-tests (Files): Likewise.
6842         * modules/freadseek-tests (Files): Likewise.
6843         * modules/freopen-tests (Files): Likewise.
6844         * modules/frexp-nolibm-tests (Files): Likewise.
6845         * modules/frexp-tests (Files): Likewise.
6846         * modules/frexpl-nolibm-tests (Files): Likewise.
6847         * modules/frexpl-tests (Files): Likewise.
6848         * modules/fseek-tests (Files): Likewise.
6849         * modules/fseeko-tests (Files): Likewise.
6850         * modules/fstrcmp-tests (Files): Likewise.
6851         * modules/fsync-tests (Files): Likewise.
6852         * modules/ftell-tests (Files): Likewise.
6853         * modules/ftello-tests (Files): Likewise.
6854         * modules/func-tests (Files): Likewise.
6855         * modules/futimens-tests (Files): Likewise.
6856         * modules/fwritable-tests (Files): Likewise.
6857         * modules/fwriting-tests (Files): Likewise.
6858         * modules/getcwd-tests (Files): Likewise.
6859         * modules/getdate-tests (Files): Likewise.
6860         * modules/getdelim-tests (Files): Likewise.
6861         * modules/getdtablesize-tests (Files): Likewise.
6862         * modules/getgroups-tests (Files): Likewise.
6863         * modules/getline-tests (Files): Likewise.
6864         * modules/getndelim2-tests (Files): Likewise.
6865         * modules/glob-tests (Files): Likewise.
6866         * modules/hash-tests (Files): Likewise.
6867         * modules/i-ring-tests (Files): Likewise.
6868         * modules/iconv-tests (Files): Likewise.
6869         * modules/iconv_open-utf-tests (Files): Likewise.
6870         * modules/idpriv-drop-tests (Files): Likewise.
6871         * modules/idpriv-droptemp-tests (Files): Likewise.
6872         * modules/inet_ntop-tests (Files): Likewise.
6873         * modules/inet_pton-tests (Files): Likewise.
6874         * modules/isblank-tests (Files): Likewise.
6875         * modules/isfinite-tests (Files): Likewise.
6876         * modules/isinf-tests (Files): Likewise.
6877         * modules/isnan-tests (Files): Likewise.
6878         * modules/isnand-nolibm-tests (Files): Likewise.
6879         * modules/isnand-tests (Files): Likewise.
6880         * modules/isnanf-nolibm-tests (Files): Likewise.
6881         * modules/isnanf-tests (Files): Likewise.
6882         * modules/isnanl-nolibm-tests (Files): Likewise.
6883         * modules/isnanl-tests (Files): Likewise.
6884         * modules/lchown-tests (Files): Likewise.
6885         * modules/ldexpl-tests (Files): Likewise.
6886         * modules/link-tests (Files): Likewise.
6887         * modules/linkat-tests (Files): Likewise.
6888         * modules/linked-list-tests (Files): Likewise.
6889         * modules/linkedhash-list-tests (Files): Likewise.
6890         * modules/localename-tests (Files): Likewise.
6891         * modules/lseek-tests (Files): Likewise.
6892         * modules/lstat-tests (Files): Likewise.
6893         * modules/mbmemcasecmp-tests (Files): Likewise.
6894         * modules/mbmemcasecoll-tests (Files): Likewise.
6895         * modules/mbrtowc-tests (Files): Likewise.
6896         * modules/mbscasecmp-tests (Files): Likewise.
6897         * modules/mbscasestr-tests (Files): Likewise.
6898         * modules/mbschr-tests (Files): Likewise.
6899         * modules/mbscspn-tests (Files): Likewise.
6900         * modules/mbsinit-tests (Files): Likewise.
6901         * modules/mbsncasecmp-tests (Files): Likewise.
6902         * modules/mbsnrtowcs-tests (Files): Likewise.
6903         * modules/mbspbrk-tests (Files): Likewise.
6904         * modules/mbspcasecmp-tests (Files): Likewise.
6905         * modules/mbsrchr-tests (Files): Likewise.
6906         * modules/mbsrtowcs-tests (Files): Likewise.
6907         * modules/mbsspn-tests (Files): Likewise.
6908         * modules/mbsstr-tests (Files): Likewise.
6909         * modules/memchr-tests (Files): Likewise.
6910         * modules/memchr2-tests (Files): Likewise.
6911         * modules/memcmp-tests (Files): Likewise.
6912         * modules/memmem-tests (Files): Likewise.
6913         * modules/memrchr-tests (Files): Likewise.
6914         * modules/mkdir-tests (Files): Likewise.
6915         * modules/mkfifo-tests (Files): Likewise.
6916         * modules/mkfifoat-tests (Files): Likewise.
6917         * modules/mknod-tests (Files): Likewise.
6918         * modules/nanosleep-tests (Files): Likewise.
6919         * modules/nl_langinfo-tests (Files): Likewise.
6920         * modules/obstack-printf-tests (Files): Likewise.
6921         * modules/open-tests (Files): Likewise.
6922         * modules/openat-tests (Files): Likewise.
6923         * modules/pipe-filter-gi-tests (Files): Likewise.
6924         * modules/pipe-filter-ii-tests (Files): Likewise.
6925         * modules/pipe2-tests (Files): Likewise.
6926         * modules/popen-safer-tests (Files): Likewise.
6927         * modules/popen-tests (Files): Likewise.
6928         * modules/posixtm-tests (Files): Likewise.
6929         * modules/pread-tests (Files): Likewise.
6930         * modules/printf-frexp-tests (Files): Likewise.
6931         * modules/printf-frexpl-tests (Files): Likewise.
6932         * modules/printf-posix-tests (Files): Likewise.
6933         * modules/priv-set-tests (Files): Likewise.
6934         * modules/quotearg-tests (Files): Likewise.
6935         * modules/random_r-tests (Files): Likewise.
6936         * modules/rawmemchr-tests (Files): Likewise.
6937         * modules/rbtree-list-tests (Files): Likewise.
6938         * modules/rbtree-oset-tests (Files): Likewise.
6939         * modules/rbtreehash-list-tests (Files): Likewise.
6940         * modules/readlink-tests (Files): Likewise.
6941         * modules/remove-tests (Files): Likewise.
6942         * modules/rename-tests (Files): Likewise.
6943         * modules/renameat-tests (Files): Likewise.
6944         * modules/rmdir-tests (Files): Likewise.
6945         * modules/round-tests (Files): Likewise.
6946         * modules/roundf-tests (Files): Likewise.
6947         * modules/roundl-tests (Files): Likewise.
6948         * modules/safe-alloc-tests (Files): Likewise.
6949         * modules/setenv-tests (Files): Likewise.
6950         * modules/sigaction-tests (Files): Likewise.
6951         * modules/signbit-tests (Files): Likewise.
6952         * modules/sleep-tests (Files): Likewise.
6953         * modules/snprintf-posix-tests (Files): Likewise.
6954         * modules/snprintf-tests (Files): Likewise.
6955         * modules/sprintf-posix-tests (Files): Likewise.
6956         * modules/stat-tests (Files): Likewise.
6957         * modules/stat-time-tests (Files): Likewise.
6958         * modules/strcasestr-tests (Files): Likewise.
6959         * modules/strchrnul-tests (Files): Likewise.
6960         * modules/strerror-tests (Files): Likewise.
6961         * modules/striconv-tests (Files): Likewise.
6962         * modules/striconveh-tests (Files): Likewise.
6963         * modules/striconveha-tests (Files): Likewise.
6964         * modules/strsignal-tests (Files): Likewise.
6965         * modules/strstr-tests (Files): Likewise.
6966         * modules/strtod-tests (Files): Likewise.
6967         * modules/strverscmp-tests (Files): Likewise.
6968         * modules/symlink-tests (Files): Likewise.
6969         * modules/symlinkat-tests (Files): Likewise.
6970         * modules/trunc-tests (Files): Likewise.
6971         * modules/truncf-tests (Files): Likewise.
6972         * modules/truncl-tests (Files): Likewise.
6973         * modules/uname-tests (Files): Likewise.
6974         * modules/unicase/cased-tests (Files): Likewise.
6975         * modules/unicase/ignorable-tests (Files): Likewise.
6976         * modules/unicase/locale-language-tests (Files): Likewise.
6977         * modules/unicase/tolower-tests (Files): Likewise.
6978         * modules/unicase/totitle-tests (Files): Likewise.
6979         * modules/unicase/toupper-tests (Files): Likewise.
6980         * modules/unicase/u8-casecmp-tests (Files): Likewise.
6981         * modules/unicase/u8-casecoll-tests (Files): Likewise.
6982         * modules/unicase/u8-casefold-tests (Files): Likewise.
6983         * modules/unicase/u8-is-cased-tests (Files): Likewise.
6984         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
6985         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
6986         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
6987         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
6988         * modules/unicase/u8-tolower-tests (Files): Likewise.
6989         * modules/unicase/u8-totitle-tests (Files): Likewise.
6990         * modules/unicase/u8-toupper-tests (Files): Likewise.
6991         * modules/unicase/u16-casecmp-tests (Files): Likewise.
6992         * modules/unicase/u16-casecoll-tests (Files): Likewise.
6993         * modules/unicase/u16-casefold-tests (Files): Likewise.
6994         * modules/unicase/u16-is-cased-tests (Files): Likewise.
6995         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
6996         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
6997         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
6998         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
6999         * modules/unicase/u16-tolower-tests (Files): Likewise.
7000         * modules/unicase/u16-totitle-tests (Files): Likewise.
7001         * modules/unicase/u16-toupper-tests (Files): Likewise.
7002         * modules/unicase/u32-casecmp-tests (Files): Likewise.
7003         * modules/unicase/u32-casecoll-tests (Files): Likewise.
7004         * modules/unicase/u32-casefold-tests (Files): Likewise.
7005         * modules/unicase/u32-is-cased-tests (Files): Likewise.
7006         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
7007         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
7008         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
7009         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
7010         * modules/unicase/u32-tolower-tests (Files): Likewise.
7011         * modules/unicase/u32-totitle-tests (Files): Likewise.
7012         * modules/unicase/u32-toupper-tests (Files): Likewise.
7013         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
7014         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
7015         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
7016         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
7017         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
7018         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
7019         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
7020         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
7021         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
7022         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
7023         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
7024         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
7025         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
7026         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
7027         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
7028         * modules/unictype/bidicategory-name-tests (Files): Likewise.
7029         * modules/unictype/bidicategory-of-tests (Files): Likewise.
7030         * modules/unictype/bidicategory-test-tests (Files): Likewise.
7031         * modules/unictype/block-list-tests (Files): Likewise.
7032         * modules/unictype/block-of-tests (Files): Likewise.
7033         * modules/unictype/block-test-tests (Files): Likewise.
7034         * modules/unictype/category-C-tests (Files): Likewise.
7035         * modules/unictype/category-Cc-tests (Files): Likewise.
7036         * modules/unictype/category-Cf-tests (Files): Likewise.
7037         * modules/unictype/category-Cn-tests (Files): Likewise.
7038         * modules/unictype/category-Co-tests (Files): Likewise.
7039         * modules/unictype/category-Cs-tests (Files): Likewise.
7040         * modules/unictype/category-L-tests (Files): Likewise.
7041         * modules/unictype/category-Ll-tests (Files): Likewise.
7042         * modules/unictype/category-Lm-tests (Files): Likewise.
7043         * modules/unictype/category-Lo-tests (Files): Likewise.
7044         * modules/unictype/category-Lt-tests (Files): Likewise.
7045         * modules/unictype/category-Lu-tests (Files): Likewise.
7046         * modules/unictype/category-M-tests (Files): Likewise.
7047         * modules/unictype/category-Mc-tests (Files): Likewise.
7048         * modules/unictype/category-Me-tests (Files): Likewise.
7049         * modules/unictype/category-Mn-tests (Files): Likewise.
7050         * modules/unictype/category-N-tests (Files): Likewise.
7051         * modules/unictype/category-Nd-tests (Files): Likewise.
7052         * modules/unictype/category-Nl-tests (Files): Likewise.
7053         * modules/unictype/category-No-tests (Files): Likewise.
7054         * modules/unictype/category-P-tests (Files): Likewise.
7055         * modules/unictype/category-Pc-tests (Files): Likewise.
7056         * modules/unictype/category-Pd-tests (Files): Likewise.
7057         * modules/unictype/category-Pe-tests (Files): Likewise.
7058         * modules/unictype/category-Pf-tests (Files): Likewise.
7059         * modules/unictype/category-Pi-tests (Files): Likewise.
7060         * modules/unictype/category-Po-tests (Files): Likewise.
7061         * modules/unictype/category-Ps-tests (Files): Likewise.
7062         * modules/unictype/category-S-tests (Files): Likewise.
7063         * modules/unictype/category-Sc-tests (Files): Likewise.
7064         * modules/unictype/category-Sk-tests (Files): Likewise.
7065         * modules/unictype/category-Sm-tests (Files): Likewise.
7066         * modules/unictype/category-So-tests (Files): Likewise.
7067         * modules/unictype/category-Z-tests (Files): Likewise.
7068         * modules/unictype/category-Zl-tests (Files): Likewise.
7069         * modules/unictype/category-Zp-tests (Files): Likewise.
7070         * modules/unictype/category-Zs-tests (Files): Likewise.
7071         * modules/unictype/category-and-not-tests (Files): Likewise.
7072         * modules/unictype/category-and-tests (Files): Likewise.
7073         * modules/unictype/category-byname-tests (Files): Likewise.
7074         * modules/unictype/category-name-tests (Files): Likewise.
7075         * modules/unictype/category-none-tests (Files): Likewise.
7076         * modules/unictype/category-of-tests (Files): Likewise.
7077         * modules/unictype/category-or-tests (Files): Likewise.
7078         * modules/unictype/category-test-withtable-tests (Files): Likewise.
7079         * modules/unictype/combining-class-tests (Files): Likewise.
7080         * modules/unictype/ctype-alnum-tests (Files): Likewise.
7081         * modules/unictype/ctype-alpha-tests (Files): Likewise.
7082         * modules/unictype/ctype-blank-tests (Files): Likewise.
7083         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
7084         * modules/unictype/ctype-digit-tests (Files): Likewise.
7085         * modules/unictype/ctype-graph-tests (Files): Likewise.
7086         * modules/unictype/ctype-lower-tests (Files): Likewise.
7087         * modules/unictype/ctype-print-tests (Files): Likewise.
7088         * modules/unictype/ctype-punct-tests (Files): Likewise.
7089         * modules/unictype/ctype-space-tests (Files): Likewise.
7090         * modules/unictype/ctype-upper-tests (Files): Likewise.
7091         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
7092         * modules/unictype/decimal-digit-tests (Files): Likewise.
7093         * modules/unictype/digit-tests (Files): Likewise.
7094         * modules/unictype/mirror-tests (Files): Likewise.
7095         * modules/unictype/numeric-tests (Files): Likewise.
7096         * modules/unictype/property-alphabetic-tests (Files): Likewise.
7097         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
7098         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
7099         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
7100         Likewise.
7101         * modules/unictype/property-bidi-block-separator-tests (Files):
7102         Likewise.
7103         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
7104         Likewise.
7105         * modules/unictype/property-bidi-common-separator-tests (Files):
7106         Likewise.
7107         * modules/unictype/property-bidi-control-tests (Files): Likewise.
7108         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
7109         Likewise.
7110         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
7111         Likewise.
7112         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
7113         Likewise.
7114         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
7115         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
7116         Likewise.
7117         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
7118         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
7119         Likewise.
7120         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
7121         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
7122         * modules/unictype/property-bidi-segment-separator-tests (Files):
7123         Likewise.
7124         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
7125         * modules/unictype/property-byname-tests (Files): Likewise.
7126         * modules/unictype/property-combining-tests (Files): Likewise.
7127         * modules/unictype/property-composite-tests (Files): Likewise.
7128         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
7129         * modules/unictype/property-dash-tests (Files): Likewise.
7130         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
7131         * modules/unictype/property-default-ignorable-code-point-tests (Files):
7132         Likewise.
7133         * modules/unictype/property-deprecated-tests (Files): Likewise.
7134         * modules/unictype/property-diacritic-tests (Files): Likewise.
7135         * modules/unictype/property-extender-tests (Files): Likewise.
7136         * modules/unictype/property-format-control-tests (Files): Likewise.
7137         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
7138         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
7139         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
7140         * modules/unictype/property-hex-digit-tests (Files): Likewise.
7141         * modules/unictype/property-hyphen-tests (Files): Likewise.
7142         * modules/unictype/property-id-continue-tests (Files): Likewise.
7143         * modules/unictype/property-id-start-tests (Files): Likewise.
7144         * modules/unictype/property-ideographic-tests (Files): Likewise.
7145         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
7146         * modules/unictype/property-ids-trinary-operator-tests (Files):
7147         Likewise.
7148         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
7149         * modules/unictype/property-iso-control-tests (Files): Likewise.
7150         * modules/unictype/property-join-control-tests (Files): Likewise.
7151         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
7152         * modules/unictype/property-line-separator-tests (Files): Likewise.
7153         * modules/unictype/property-logical-order-exception-tests (Files):
7154         Likewise.
7155         * modules/unictype/property-lowercase-tests (Files): Likewise.
7156         * modules/unictype/property-math-tests (Files): Likewise.
7157         * modules/unictype/property-non-break-tests (Files): Likewise.
7158         * modules/unictype/property-not-a-character-tests (Files): Likewise.
7159         * modules/unictype/property-numeric-tests (Files): Likewise.
7160         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
7161         * modules/unictype/property-other-default-ignorable-code-point-tests
7162         (Files): Likewise.
7163         * modules/unictype/property-other-grapheme-extend-tests (Files):
7164         Likewise.
7165         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
7166         * modules/unictype/property-other-id-start-tests (Files): Likewise.
7167         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
7168         * modules/unictype/property-other-math-tests (Files): Likewise.
7169         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
7170         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
7171         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
7172         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
7173         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
7174         * modules/unictype/property-private-use-tests (Files): Likewise.
7175         * modules/unictype/property-punctuation-tests (Files): Likewise.
7176         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
7177         * modules/unictype/property-radical-tests (Files): Likewise.
7178         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
7179         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
7180         * modules/unictype/property-space-tests (Files): Likewise.
7181         * modules/unictype/property-terminal-punctuation-tests (Files):
7182         Likewise.
7183         * modules/unictype/property-test-tests (Files): Likewise.
7184         * modules/unictype/property-titlecase-tests (Files): Likewise.
7185         * modules/unictype/property-unassigned-code-value-tests (Files):
7186         Likewise.
7187         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
7188         * modules/unictype/property-uppercase-tests (Files): Likewise.
7189         * modules/unictype/property-variation-selector-tests (Files): Likewise.
7190         * modules/unictype/property-white-space-tests (Files): Likewise.
7191         * modules/unictype/property-xid-continue-tests (Files): Likewise.
7192         * modules/unictype/property-xid-start-tests (Files): Likewise.
7193         * modules/unictype/property-zero-width-tests (Files): Likewise.
7194         * modules/unictype/scripts-tests (Files): Likewise.
7195         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
7196         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
7197         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
7198         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
7199         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
7200         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
7201         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
7202         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
7203         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
7204         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
7205         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
7206         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
7207         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
7208         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
7209         * modules/uninorm/composition-tests (Files): Likewise.
7210         * modules/uninorm/decomposing-form-tests (Files): Likewise.
7211         * modules/uninorm/decomposition-tests (Files): Likewise.
7212         * modules/uninorm/filter-tests (Files): Likewise.
7213         * modules/uninorm/nfc-tests (Files): Likewise.
7214         * modules/uninorm/nfd-tests (Files): Likewise.
7215         * modules/uninorm/nfkc-tests (Files): Likewise.
7216         * modules/uninorm/nfkd-tests (Files): Likewise.
7217         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
7218         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
7219         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
7220         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
7221         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
7222         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
7223         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
7224         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
7225         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
7226         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
7227         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
7228         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
7229         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
7230         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
7231         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
7232         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
7233         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
7234         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
7235         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
7236         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
7237         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
7238         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
7239         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
7240         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
7241         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
7242         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
7243         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
7244         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
7245         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
7246         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
7247         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
7248         * modules/uniwidth/u8-width-tests (Files): Likewise.
7249         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
7250         * modules/uniwidth/u16-width-tests (Files): Likewise.
7251         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
7252         * modules/uniwidth/u32-width-tests (Files): Likewise.
7253         * modules/uniwidth/width-tests (Files): Likewise.
7254         * modules/unlink-tests (Files): Likewise.
7255         * modules/unsetenv-tests (Files): Likewise.
7256         * modules/usleep-tests (Files): Likewise.
7257         * modules/utimens-tests (Files): Likewise.
7258         * modules/utimensat-tests (Files): Likewise.
7259         * modules/vasnprintf-posix-tests (Files): Likewise.
7260         * modules/vasnprintf-tests (Files): Likewise.
7261         * modules/vasprintf-posix-tests (Files): Likewise.
7262         * modules/vasprintf-tests (Files): Likewise.
7263         * modules/vdprintf-posix-tests (Files): Likewise.
7264         * modules/vfprintf-posix-tests (Files): Likewise.
7265         * modules/vprintf-posix-tests (Files): Likewise.
7266         * modules/vsnprintf-posix-tests (Files): Likewise.
7267         * modules/vsnprintf-tests (Files): Likewise.
7268         * modules/vsprintf-posix-tests (Files): Likewise.
7269         * modules/wcrtomb-tests (Files): Likewise.
7270         * modules/wcsnrtombs-tests (Files): Likewise.
7271         * modules/wcsrtombs-tests (Files): Likewise.
7272         * modules/wctype-tests (Files): Likewise.
7273         * modules/wcwidth-tests (Files): Likewise.
7274         * modules/xmemdup0-tests (Files): Likewise.
7275         * modules/xprintf-posix-tests (Files): Likewise.
7276         * modules/xvasprintf-tests (Files): Likewise.
7277
7278 2009-12-24  Eric Blake  <ebb9@byu.net>
7279
7280         test-nanosleep: fix typo
7281         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
7282         patch.
7283         Reported by Bruno Haible.
7284
7285 2009-12-24  Bruno Haible  <bruno@clisp.org>
7286
7287         Reduce namespace pollution on glibc systems.
7288         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
7289         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
7290         systems.
7291         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
7292         <getopt.h> on glibc systems.
7293         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
7294         systems.
7295         * lib/fcntl.c: Include <unistd.h> here instead.
7296
7297 2009-12-24  Bruno Haible  <bruno@clisp.org>
7298
7299         * lib/stdlib.in.h (includes): Fix typo in today's commit.
7300
7301 2009-12-24  Eric Blake  <ebb9@byu.net>
7302
7303         tests: add signature checks
7304         * tests/signature.h (SIGNATURE_CHECK): New file.
7305         * modules/atexit-tests (Files): Use it.
7306         * modules/btowc-tests (Files): Likewise.
7307         * modules/canonicalize-lgpl-tests (Files): Likewise.
7308         * modules/ceilf-tests (Files): Likewise.
7309         * modules/ceill-tests (Files): Likewise.
7310         * modules/chown-tests (Files): Likewise.
7311         * modules/dprintf-posix-tests (Files): Likewise.
7312         * modules/dup2-tests (Files): Likewise.
7313         * modules/dup3-tests (Files): Likewise.
7314         * modules/duplocale-tests (Files): Likewise.
7315         * modules/fchdir-tests (Files): Likewise.
7316         * modules/fcntl-tests (Files): Likewise.
7317         * modules/fdopendir-tests (Files): Likewise.
7318         * modules/fflush-tests (Files): Likewise.
7319         * modules/flock-tests (Files): Likewise.
7320         * modules/floorf-tests (Files): Likewise.
7321         * modules/floorl-tests (Files): Likewise.
7322         * modules/fnmatch-tests (Files): Likewise.
7323         * modules/fopen-tests (Files): Likewise.
7324         * modules/fprintf-posix-tests (Files): Likewise.
7325         * modules/freopen-tests (Files): Likewise.
7326         * modules/frexp-nolibm-tests (Files): Likewise.
7327         * modules/frexp-tests (Files): Likewise.
7328         * modules/frexpl-nolibm-tests (Files): Likewise.
7329         * modules/frexpl-tests (Files): Likewise.
7330         * modules/fseek-tests (Files): Likewise.
7331         * modules/fseeko-tests (Files): Likewise.
7332         * modules/fsync-tests (Files): Likewise.
7333         * modules/ftell-tests (Files): Likewise.
7334         * modules/ftello-tests (Files): Likewise.
7335         * modules/futimens-tests (Files): Likewise.
7336         * modules/getaddrinfo-tests (Files): Likewise.
7337         * modules/getcwd-tests (Files): Likewise.
7338         * modules/getdelim-tests (Files): Likewise.
7339         * modules/getdtablesize-tests (Files): Likewise.
7340         * modules/getgroups-tests (Files): Likewise.
7341         * modules/gethostname-tests (Files): Likewise.
7342         * modules/getline-tests (Files): Likewise.
7343         * modules/getopt-posix-tests (Files): Likewise.
7344         * modules/gettimeofday-tests (Files): Likewise.
7345         * modules/glob-tests (Files): Likewise.
7346         * modules/iconv-tests (Files): Likewise.
7347         * modules/inet_ntop-tests (Files): Likewise.
7348         * modules/inet_pton-tests (Files): Likewise.
7349         * modules/isblank-tests (Files): Likewise.
7350         * modules/lchown-tests (Files): Likewise.
7351         * modules/ldexpl-tests (Files): Likewise.
7352         * modules/link-tests (Files): Likewise.
7353         * modules/linkat-tests (Files): Likewise.
7354         * modules/lseek-tests (Files): Likewise.
7355         * modules/lstat-tests (Files): Likewise.
7356         * modules/mbrtowc-tests (Files): Likewise.
7357         * modules/mbsinit-tests (Files): Likewise.
7358         * modules/mbsnrtowcs-tests (Files): Likewise.
7359         * modules/mbsrtowcs-tests (Files): Likewise.
7360         * modules/memchr-tests (Files): Likewise.
7361         * modules/memcmp-tests (Files): Likewise.
7362         * modules/memmem-tests (Files): Likewise.
7363         * modules/memrchr-tests (Files): Likewise.
7364         * modules/mkdir-tests (Files): Likewise.
7365         * modules/mkfifo-tests (Files): Likewise.
7366         * modules/mkfifoat-tests (Files): Likewise.
7367         * modules/mknod-tests (Files): Likewise.
7368         * modules/nanosleep-tests (Files): Likewise.
7369         * modules/nl_langinfo-tests (Files): Likewise.
7370         * modules/obstack-printf-tests (Files): Likewise.
7371         * modules/open-tests (Files): Likewise.
7372         * modules/openat-tests (Files): Likewise.
7373         * modules/perror-tests (Files): Likewise.
7374         * modules/pipe2-tests (Files): Likewise.
7375         * modules/poll-tests (Files): Likewise.
7376         * modules/popen-tests (Files): Likewise.
7377         * modules/posix_spawn-tests (Files): Likewise.
7378         * modules/posix_spawnp-tests (Files): Likewise.
7379         * modules/pread-tests (Files): Likewise.
7380         * modules/printf-posix-tests (Files): Likewise.
7381         * modules/pty-tests (Files): Likewise.
7382         * modules/random_r-tests (Files): Likewise.
7383         * modules/rawmemchr-tests (Files): Likewise.
7384         * modules/readlink-tests (Files): Likewise.
7385         * modules/remove-tests (Files): Likewise.
7386         * modules/rename-tests (Files): Likewise.
7387         * modules/renameat-tests (Files): Likewise.
7388         * modules/rmdir-tests (Files): Likewise.
7389         * modules/round-tests (Files): Likewise.
7390         * modules/roundf-tests (Files): Likewise.
7391         * modules/roundl-tests (Files): Likewise.
7392         * modules/select-tests (Files): Likewise.
7393         * modules/setenv-tests (Files): Likewise.
7394         * modules/sigaction-tests (Files): Likewise.
7395         * modules/sleep-tests (Files): Likewise.
7396         * modules/snprintf-posix-tests (Files): Likewise.
7397         * modules/snprintf-tests (Files): Likewise.
7398         * modules/sprintf-posix-tests (Files): Likewise.
7399         * modules/stat-tests (Files): Likewise.
7400         * modules/strcasestr-tests (Files): Likewise.
7401         * modules/strchrnul-tests (Files): Likewise.
7402         * modules/strerror-tests (Files): Likewise.
7403         * modules/strsignal-tests (Files): Likewise.
7404         * modules/strstr-tests (Files): Likewise.
7405         * modules/strtod-tests (Files): Likewise.
7406         * modules/strverscmp-tests (Files): Likewise.
7407         * modules/symlink-tests (Files): Likewise.
7408         * modules/symlinkat-tests (Files): Likewise.
7409         * modules/times-tests (Files): Likewise.
7410         * modules/trunc-tests (Files): Likewise.
7411         * modules/truncf-tests (Files): Likewise.
7412         * modules/truncl-tests (Files): Likewise.
7413         * modules/tsearch-tests (Files): Likewise.
7414         * modules/uname-tests (Files): Likewise.
7415         * modules/unlink-tests (Files): Likewise.
7416         * modules/unsetenv-tests (Files): Likewise.
7417         * modules/usleep-tests (Files): Likewise.
7418         * modules/utimensat-tests (Files): Likewise.
7419         * modules/vasprintf-tests (Files): Likewise.
7420         * modules/vdprintf-posix-tests (Files): Likewise.
7421         * modules/vfprintf-posix-tests (Files): Likewise.
7422         * modules/vprintf-posix-tests (Files): Likewise.
7423         * modules/vsnprintf-posix-tests (Files): Likewise.
7424         * modules/vsnprintf-tests (Files): Likewise.
7425         * modules/vsprintf-posix-tests (Files): Likewise.
7426         * modules/wcrtomb-tests (Files): Likewise.
7427         * modules/wcsnrtombs-tests (Files): Likewise.
7428         * modules/wcsrtombs-tests (Files): Likewise.
7429         * modules/wcwidth-tests (Files): Likewise.
7430         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
7431         * tests/test-isinf.c (isinf): Likewise.
7432         * tests/test-isnan.c (isnan): Likewise.
7433         * tests/test-signbit.c (signbit): Likewise.
7434         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
7435         declaration, either as macro or with correct signature.
7436         (select): Ensure function under test is declared with correct
7437         signature in correct header.
7438         * tests/test-atexit.c (atexit): Likewise.
7439         * tests/test-btowc.c (btowc): Likewise.
7440         * tests/test-canonicalize-lgpl.c (realpath)
7441         (canonicalize_file_name): Likewise.
7442         * tests/test-ceilf1.c (ceilf): Likewise.
7443         * tests/test-ceill.c (ceill): Likewise.
7444         * tests/test-chown.c (chown): Likewise.
7445         * tests/test-dprintf-posix.c (dprintf): Likewise.
7446         * tests/test-dup2.c (dup2): Likewise.
7447         * tests/test-dup3.c (dup3): Likewise.
7448         * tests/test-duplocale.c (duplocale): Likewise.
7449         * tests/test-fchdir.c (fchdir): Likewise.
7450         * tests/test-fchownat.c (fchownat): Likewise.
7451         * tests/test-fcntl.c (fcntl): Likewise.
7452         * tests/test-fdopendir.c (fdopendir): Likewise.
7453         * tests/test-fflush.c (fflush): Likewise.
7454         * tests/test-flock.c (flock): Likewise.
7455         * tests/test-floorf1.c (floorf): Likewise.
7456         * tests/test-floorl.c (floorl): Likewise.
7457         * tests/test-fnmatch.c (fnmatch): Likewise.
7458         * tests/test-fopen.c (fopen): Likewise.
7459         * tests/test-fprintf-posix.c (fprintf): Likewise.
7460         * tests/test-freopen.c (freopen): Likewise.
7461         * tests/test-frexp.c (frexp): Likewise.
7462         * tests/test-frexpl.c (frexpl): Likewise.
7463         * tests/test-fseek.c (fseek): Likewise.
7464         * tests/test-fseeko.c (fseeko): Likewise.
7465         * tests/test-fstatat.c (fstatat): Likewise.
7466         * tests/test-fsync.c (fsync): Likewise.
7467         * tests/test-ftell.c (ftell): Likewise.
7468         * tests/test-ftello.c (ftello): Likewise.
7469         * tests/test-futimens.c (futimens): Likewise.
7470         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
7471         (gai_strerror): Likewise.
7472         * tests/test-getcwd.c (getcwd): Likewise.
7473         * tests/test-getdelim.c (getdelim): Likewise.
7474         * tests/test-getdtablesize.c (getdtablesize): Likewise.
7475         * tests/test-getgroups.c (getgroups): Likewise.
7476         * tests/test-gethostname.c (gethostname): Likewise.
7477         * tests/test-getline.c (getline): Likewise.
7478         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
7479         Likewise.
7480         * tests/test-gettimeofday.c (gettimeofday): Likewise.
7481         * tests/test-glob.c (glob, globfree): Likewise.
7482         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
7483         * tests/test-inet_ntop.c (inet_ntop): Likewise.
7484         * tests/test-inet_pton.c (inet_pton): Likewise.
7485         * tests/test-isblank.c (isblank): Likewise.
7486         * tests/test-lchown.c (lchown): Likewise.
7487         * tests/test-ldexpl.c (ldexpl): Likewise.
7488         * tests/test-link.c (link): Likewise.
7489         * tests/test-linkat.c (linkat): Likewise.
7490         * tests/test-lseek.c (lseek): Likewise.
7491         * tests/test-lstat.c (lstat): Likewise.
7492         * tests/test-mbrtowc.c (mbrtowc): Likewise.
7493         * tests/test-mbsinit.c (mbsinit): Likewise.
7494         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
7495         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
7496         * tests/test-memchr.c (memchr): Likewise.
7497         * tests/test-memcmp.c (memcmp): Likewise.
7498         * tests/test-memmem.c (memmem): Likewise.
7499         * tests/test-memrchr.c (memrchr): Likewise.
7500         * tests/test-mkdir.c (mkdir): Likewise.
7501         * tests/test-mkdirat.c (mkdirat): Likewise.
7502         * tests/test-mkfifo.c (mkfifo): Likewise.
7503         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
7504         * tests/test-mknod.c (mknod): Likewise.
7505         * tests/test-nanosleep.c (nanosleep): Likewise.
7506         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
7507         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
7508         Likewise.
7509         * tests/test-open.c (open): Likewise.
7510         * tests/test-openat.c (openat): Likewise.
7511         * tests/test-perror.c (perror): Likewise.
7512         * tests/test-pipe2.c (pipe2): Likewise.
7513         * tests/test-poll.c (poll): Likewise.
7514         * tests/test-popen.c (popen, pclose): Likewise.
7515         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
7516         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
7517         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
7518         (posix_spawn_file_actions_destroy)
7519         (posix_spawn_file_actions_addclose)
7520         (posix_spawn_file_actions_addopen)
7521         (posix_spawn_file_actions_adddup2): Likewise.
7522         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
7523         * tests/test-pread.c (pread): Likewise.
7524         * tests/test-printf-posix.c (printf): Likewise.
7525         * tests/test-pty.c (openpty, forkpty): Likewise.
7526         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
7527         (random_r): Likewise.
7528         * tests/test-rawmemchr.c (rawmemchr): Likewise.
7529         * tests/test-readlink.c (readlink): Likewise.
7530         * tests/test-remove.c (remove): Likewise.
7531         * tests/test-rename.c (rename): Likewise.
7532         * tests/test-renameat.c (renameat): Likewise.
7533         * tests/test-rmdir.c (rmdir): Likewise.
7534         * tests/test-round1.c (round): Likewise.
7535         * tests/test-roundf1.c (roundf): Likewise.
7536         * tests/test-roundl.c (roundl): Likewise.
7537         * tests/test-setenv.c (setenv): Likewise.
7538         * tests/test-sigaction.c (sigaction): Likewise.
7539         * tests/test-sleep.c (sleep): Likewise.
7540         * tests/test-snprintf.c (snprintf): Likewise.
7541         * tests/test-sprintf-posix.c (sprintf): Likewise.
7542         * tests/test-stat.c (stat): Likewise.
7543         * tests/test-stpncpy.c (stpncpy): Likewise.
7544         * tests/test-strcasestr.c (strcasestr): Likewise.
7545         * tests/test-strchrnul.c (strchrnul): Likewise.
7546         * tests/test-strerror.c (strerror): Likewise.
7547         * tests/test-strsignal.c (strsignal): Likewise.
7548         * tests/test-strstr.c (strstr): Likewise.
7549         * tests/test-strtod.c (strtod): Likewise.
7550         * tests/test-strverscmp.c (strverscmp): Likewise.
7551         * tests/test-symlink.c (symlink): Likewise.
7552         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
7553         * tests/test-times.c (times): Likewise.
7554         * tests/test-trunc1.c (trunc): Likewise.
7555         * tests/test-truncf1.c (truncf): Likewise.
7556         * tests/test-truncl.c (truncl): Likewise.
7557         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
7558         Likewise.
7559         * tests/test-uname.c (uname): Likewise.
7560         * tests/test-unlink.c (unlink): Likewise.
7561         * tests/test-unlinkat.c (unlinkat): Likewise.
7562         * tests/test-unsetenv.c (unsetenv): Likewise.
7563         * tests/test-usleep.c (usleep): Likewise.
7564         * tests/test-utimensat.c (utimensat): Likewise.
7565         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
7566         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
7567         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
7568         * tests/test-vprintf-posix.c (vprintf): Likewise.
7569         * tests/test-vsnprintf.c (vsnprintf): Likewise.
7570         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
7571         * tests/test-wcrtomb.c (wcrtomb): Likewise.
7572         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
7573         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
7574         * tests/test-wcwidth.c (wcwidth): Likewise.
7575
7576         build: pull in conditional headers during GNULIB_POSIXCHECK
7577         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
7578         definitions from any conditionally-included headers.
7579         * lib/stdlib.in.h (includes): Likewise.
7580         * lib/unistd.in.h (includes): Likewise.
7581
7582 2009-12-24  Bruno Haible  <bruno@clisp.org>
7583
7584         * tests/test-argv-iter.c: Include header file being tested immediately
7585         after config.h.
7586         * tests/test-base64.c: Likewise.
7587         * tests/test-flock.c: Likewise.
7588         * tests/test-fsync.c: Likewise.
7589         * tests/test-getdate.c: Likewise.
7590         * tests/test-getndelim2.c: Likewise.
7591         * tests/test-isfinite.c: Likewise.
7592         * tests/test-isinf.c: Likewise.
7593         * tests/test-strerror.c: Likewise.
7594         * tests/test-strsignal.c: Likewise.
7595
7596 2009-12-23  Eric Blake  <ebb9@byu.net>
7597
7598         unistd: work around cygwin bug
7599         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
7600         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
7601         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
7602
7603 2009-12-23  Bruno Haible  <bruno@clisp.org>
7604
7605         localename: More tests.
7606         * tests/test-localename.c (SIZEOF): New macro.
7607         (categories): New variable.
7608         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
7609         test_locale_name_default): Add test w.r.t. thread locale.
7610         (test_locale_name_thread): New function.
7611         (main): Invoke it.
7612
7613         localename: Make aware of thread locale.
7614         * lib/localename.h (gl_locale_name_thread): New declaration.
7615         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
7616         behaviour with respect to thread locale.
7617         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
7618         <langinfo.h>, glthread/lock.h.
7619         (SIZE_BITS): New macro.
7620         (string_hash): New function.
7621         (struct hash_node): New type.
7622         (HASH_TABLE_SIZE): New macro.
7623         (struniq_hash_table, struniq_lock): New variables.
7624         (struniq): New function.
7625         (gl_locale_name_thread): New function.
7626         (gl_locale_name): Invoke it.
7627         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
7628         * modules/localename (Depends-on): Add lock.
7629         Reported by Mike Gran <spk121@yahoo.com>.
7630
7631 2009-12-23  Eric Blake  <ebb9@byu.net>
7632
7633         va-args: new module
7634         * modules/va-args: New file.
7635         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
7636         * MODULES.html.sh (Core language properties): Mention it.
7637
7638         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
7639         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
7640         named alias for __attribute__((__unused__)).
7641         * lib/chown.c: Update client.
7642         * lib/fchmodat.c: Likewise.
7643         * lib/fts.c: Likewise.
7644         * lib/getdate.y: Likewise.
7645         * lib/getgroups.c: Likewise.
7646         * lib/getopt.c: Likewise.
7647         * lib/getugroups.c: Likewise.
7648         * lib/mkdir.c: Likewise.
7649         * lib/mkfifo.c: Likewise.
7650         * lib/mkfifoat.c: Likewise.
7651         * lib/mknod.c: Likewise.
7652         * lib/mknodat.c: Likewise.
7653         * lib/readlink.c: Likewise.
7654         * lib/se-context.in.h: Likewise.
7655         * lib/se-selinux.in.h: Likewise.
7656         * lib/sockets.c: Likewise.
7657         * lib/symlink.c: Likewise.
7658         * lib/symlinkat.c: Likewise.
7659         * lib/unicodeio.c: Likewise.
7660         * lib/unistr.h: Likewise.
7661         * tests/test-areadlink.c: Likewise.
7662         * tests/test-areadlinkat.c: Likewise.
7663         * tests/test-filenamecat.c: Likewise.
7664         * tests/test-fseeko.c: Likewise.
7665         * tests/test-ftello.c: Likewise.
7666         * tests/test-getdate.c: Likewise.
7667         * tests/test-getgroups.c: Likewise.
7668         * tests/test-gethostname.c: Likewise.
7669         * tests/test-quotearg.c: Likewise.
7670         * tests/test-version-etc.c: Likewise.
7671         * tests/test-xalloc-die.c: Likewise.
7672         * tests/test-xfprintf-posix.c: Likewise.
7673         * tests/test-xprintf-posix.c: Likewise.
7674         * tests/test-xvasprintf.c: Likewise.
7675
7676         tests: avoid compiler warnings
7677         * tests/test-fcntl.c (main): Delete unused parameters.
7678         * tests/test-freopen-safer.c (main): Likewise.
7679         * tests/test-xalloc-die.c (main): Mark unused parameters.
7680         * tests/test-fseeko.c (main): Likewise.
7681         * tests/test-ftello.c (main): Likewise.
7682         * tests/test-nanosleep.c (main): Avoid declaration warning.
7683         * tests/test-sleep.c (main): Likewise.
7684         * tests/test-unsetenv.c (main): Silence warning about string
7685         literal.
7686         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
7687
7688 2009-12-23  Bruno Haible  <bruno@clisp.org>
7689
7690         * tests/test-localename.c (test_locale_name): New function, extracted
7691         from main. Also test mixed situations.
7692         (test_locale_name_posix, test_locale_name_environ,
7693         test_locale_name_default): New functions.
7694         (main): Invoke them all.
7695         * modules/localename-tests (configure.ac): Test for newlocale.
7696
7697 2009-12-23  Bruno Haible  <bruno@clisp.org>
7698
7699         unistd: Ensure getcwd gets declared before being overridden.
7700         * lib/unistd.in.h: Conditionally include <io.h>.
7701
7702 2009-12-22  Bruno Haible  <bruno@clisp.org>
7703
7704         wchar: Diagnose broken combination of glibc and gcc versions and flags.
7705         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
7706         (gl_WCHAR_H): Invoke it.
7707         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
7708         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
7709         Reported by Karl Berry <karl@freefriends.org>.
7710
7711 2009-12-22  Eric Blake  <ebb9@byu.net>
7712
7713         math, unistd: avoid redundant includes
7714         * lib/math.in.h (isnan): No need to re-include <math.h>.
7715         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
7716
7717         getsubopt: work around cygwin bug
7718         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
7719         avoid conflicting with system getsubopt.
7720         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
7721         bug.
7722
7723         getopt: synchronize from glibc
7724         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
7725         parameter order.  Adjust all callers.
7726         (_getopt_internal_r, main): Adjust quoting in error messages.
7727         Drop considerations for outdated POSIX 1003.2 error message.
7728         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
7729         callers.
7730         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
7731
7732         test-getopt: test stderr behavior
7733         * modules/getopt-posix-tests (Depends-on): Add dup2.
7734         * tests/test-getopt.c (ASSERT): Avoid stderr.
7735         (main): Move stderr to a temporary file.
7736         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
7737         Instead, add parameter to inform caller if output occurred.
7738         (test_getopt): Adjust all existing tests to expect silence, and
7739         add new tests of leading ":".
7740         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
7741         glibc shortcomings with leading "-:" or "+:" in optstring.
7742         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7743         Likewise.
7744         * doc/posix-functions/getopt.texi (getopt): Likewise.
7745
7746         test-getopt: enhance test
7747         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
7748         supports optind=0.
7749         * tests/test-getopt.c (OPTIND_MIN): Move...
7750         * tests/test-getopt.h (OPTIND_MIN): ...here.
7751         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
7752         Require that optind=0 works, since modern BSD supports it in
7753         addition to optreset, and since coreutils expects it.
7754         (test_getopt_long_only): New test.
7755         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
7756         glibc shortcomings with 'W;', and enforcement of optind=0.
7757         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7758         Likewise.
7759
7760 2009-12-21  Bruno Haible  <bruno@clisp.org>
7761
7762         localename: Improvements for MacOS X and Cygwin.
7763         * lib/localename.h (gl_locale_name_environ): New declaration.
7764         * lib/localename.c (gl_locale_name_environ): New function, extracted from
7765         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
7766         (gl_locale_name_posix): Invoke it.
7767         (gl_locale_name_default): Add comments. Use Windows native API also on
7768         Cygwin.
7769
7770 2009-12-21  Bruno Haible  <bruno@clisp.org>
7771
7772         Update list of Win32 locale ids.
7773         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
7774         (LANG_SAMI): Renamed from LANG_SAAMI.
7775         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
7776         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
7777         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
7778         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
7779         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
7780         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
7781         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
7782         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
7783         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
7784         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
7785         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
7786         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
7787         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
7788         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
7789         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
7790         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
7791         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
7792         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
7793         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
7794         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
7795         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
7796         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
7797         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
7798         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
7799         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
7800         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
7801         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
7802         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
7803         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
7804         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
7805         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
7806         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
7807         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
7808         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
7809         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
7810         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
7811         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
7812         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
7813         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
7814         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
7815         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
7816         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
7817         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
7818         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
7819         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
7820         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
7821         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
7822         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
7823         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
7824         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
7825         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
7826         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
7827         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
7828         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
7829         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
7830         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
7831         Add more languages and countries for Sami, Sorbian. Add more countries
7832         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
7833         for Pashto. Change country for Syriac, Tswana.
7834
7835 2009-12-21  Eric Blake  <ebb9@byu.net>
7836
7837         test-utimens: avoid spurious failure
7838         * tests/test-chown.h (nap): Factor...
7839         * tests/nap.h: ...into new file.
7840         * tests/test-lchown.h (nap): Avoid duplication.
7841         * tests/test-utimens-common.h (nap): Use shared implementation,
7842         necessary on file systems with 1-second resolution.
7843         * modules/chown-tests (Files): Include new file.
7844         * modules/fdutimensat-tests (Files): Likewise.
7845         * modules/futimens-tests (Files): Likewise.
7846         * modules/lchown-tests (Files): Likewise.
7847         * modules/openat-tests (Files): Likewise.
7848         * modules/utimens-tests (Files): Likewise.
7849         * modules/utimensat-tests (Files): Likewise.
7850
7851 2009-12-19  Eric Blake  <ebb9@byu.net>
7852
7853         futimens, utimensat: work around Linux bug
7854         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
7855         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7856         * lib/utimensat.c (rpl_utimensat): Work around it.
7857         * lib/futimens.c (rpl_futimens): Adjust comment.
7858
7859         utimens: work around Linux ctime bug
7860         * lib/utimens.c (detect_ctime_bug): New helper function.
7861         (update_timespec): Differentiate between workaround needed for
7862         this bug vs. what is needed for systems that lack utimensat.
7863         (fdutimens, lutimens): Work around bug.
7864
7865         utimens: check for ctime update
7866         * tests/test-utimens-common.h (check_ctime): Define.
7867         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
7868         * tests/test-futimens.h (test_futimens): Likewise.
7869         * tests/test-lutimens.h (test_lutimens): Likewise.
7870         * doc/posix-functions/futimens.texi (futimens): Document the bug.
7871         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7872
7873 2009-12-19  Bruno Haible  <bruno@clisp.org>
7874
7875         dprintf-posix: Check against memory leak fixed on 2009-12-15.
7876         * tests/test-dprintf-posix2.sh: New file.
7877         * tests/test-dprintf-posix2.c: New file.
7878         * modules/dprintf-posix-tests (Files): Add them.
7879         (configure.ac): Check for getrlimit and setrlimit.
7880         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
7881
7882 2009-12-19  Bruno Haible  <bruno@clisp.org>
7883
7884         fprintf-posix: Check against memory leak fixed on 2009-12-15.
7885         * tests/test-fprintf-posix3.sh: New file.
7886         * tests/test-fprintf-posix3.c: New file.
7887         * modules/fprintf-posix-tests (Files): Add them.
7888         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
7889
7890 2009-12-19  Eric Blake  <ebb9@byu.net>
7891
7892         dirfd: fix prototype
7893         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
7894         * lib/dirfd.c (dirfd): Likewise.
7895
7896         canonicalize: reduce memory usage
7897         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
7898         allocation to size.
7899         Reported by Solar Designer <solar@openwall.com>.
7900
7901 2009-12-19  Bruno Haible  <bruno@clisp.org>
7902
7903         New module attribute 'Applicability'.
7904         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
7905         * gnulib-tool: New option --extract-applicability.
7906         (func_usage): Document it.
7907         (sed_extract_prog): Recognize it.
7908         (func_get_applicability): New function.
7909         (func_import): Generalize handling of 'link-warning' module.
7910         * modules/link-warning (Applicability): New section.
7911         * modules/arg-nonnull (Applicability): New section.
7912         Repoted by Simon Josefsson <simon@josefsson.org>.
7913
7914 2009-12-19  Bruno Haible  <bruno@clisp.org>
7915
7916         fflush: tweak
7917         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
7918         * lib/fseeko.c (rpl_fseeko): Likewise.
7919
7920 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
7921
7922         * lib/gl_list.h: Fix typo in comment.
7923
7924 2009-12-16  Eric Blake  <ebb9@byu.net>
7925
7926         fcntl: use to simplify other modules
7927         * modules/cloexec (Depends-on): Add fcntl.
7928         * modules/fchdir (Depends-on): Likewise.
7929         * modules/fd-safer-flag (Depends-on): Likewise.
7930         * modules/unistd-safer (Depends-on): Likewise.
7931         * modules/dup3 (configure.ac): Set module indicator.
7932         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
7933         missing.
7934         * lib/fchdir.c (_gl_register_dup): Fix comment.
7935         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
7936         * lib/dup-safer.c (dup_safer): Likewise.
7937         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
7938         * lib/dup3.c (dup3): Likewise.
7939         * tests/test-fchdir.c (main): Enhance test.
7940         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
7941
7942         fcntl: port portions of fcntl to mingw
7943         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
7944         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
7945         replacement for mingw.
7946         * modules/fcntl (Description): Update.
7947         (Depends-on): Add dup2.
7948         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
7949         * modules/fcntl-h (Makefile.am): Substitute it.
7950         * lib/fcntl.in.h (fcntl): Update declaration.
7951         (F_DUPFD, F_GETFD): New macros, when needed.
7952         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
7953         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
7954         * tests/test-fcntl.c (check_flags, main): Enhance test for items
7955         we now guarantee.
7956
7957         fcntl: work around cygwin bug in F_DUPFD
7958         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
7959         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
7960         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
7961         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
7962         * doc/posix-functions/fcntl.texi (fcntl): Document it.
7963
7964         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
7965         * modules/fcntl (Files): List new files.
7966         (configure.ac): Run a test.
7967         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
7968         * lib/fcntl.c (rpl_fcntl): Likewise.
7969         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
7970         (gl_FCNTL_H): Always replace fcntl.h.
7971         * modules/fcntl-h (Makefile.am): Substitute witnesses.
7972         * lib/fcntl.in.h (fcntl): Declare replacement.
7973         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
7974         needed, plus a witness.
7975         * doc/posix-functions/fcntl.texi (fcntl): Document this.
7976         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
7977         * tests/test-fcntl.c: New file.
7978         * modules/fcntl-tests: Likewise.
7979
7980         binary-io: avoid potential compilation warning
7981         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
7982         directives.
7983
7984         fflush: avoid compilation error on NetBSD
7985         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
7986         between off_t and fpos_t, since the latter is sometimes a struct.
7987         * lib/fseeko.c (rpl_fseeko): Likewise.
7988         Reported by Alexander Nasonov <alnsn@yandex.ru>.
7989
7990 2009-12-15  Eric Blake  <ebb9@byu.net>
7991
7992         fcntl-h, stdio, sys_ioctl: fix declarations
7993         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
7994         function must not take arguments.
7995         * lib/sys_ioctl.in.h (ioctl): Likewise.
7996         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
7997         (open): Add a link warning.
7998
7999 2009-12-15  Jim Meyering  <meyering@redhat.com>
8000
8001         areadlink, areadlink-with-size: relax license to LGPLv2+
8002         * modules/areadlink (License): Relax to LGPLv2+.
8003         * modules/areadlink-with-size (License): Likewise.
8004
8005 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
8006             Bruno Haible  <bruno@clisp.org>
8007
8008         *printf: Fix memory leak.
8009         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
8010         * lib/vfprintf.c (vfprintf): Likewise.
8011         * lib/dprintf.c (dprintf): Likewise.
8012         * lib/vdprintf.c (vdprintf): Likewise.
8013
8014 2009-12-14  Eric Blake  <ebb9@byu.net>
8015
8016         accept4: adjust module dependencies
8017         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
8018
8019         utimens: one more try at avoiding compiler warning
8020         * lib/utimens.c (lutimens): Lower scope of result.
8021
8022 2009-12-13  Bruno Haible  <bruno@clisp.org>
8023
8024         Move the malloc checking from module 'list' to new module 'xlist'.
8025         * modules/xlist: New file.
8026         * lib/gl_xlist.h: New file.
8027         * lib/gl_xlist.c: New file.
8028         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
8029         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
8030         gl_list_add_last, gl_list_add_before, gl_list_add_after,
8031         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
8032         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
8033         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
8034         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
8035         gl_sortedlist_nx_add): New declarations.
8036         (struct gl_list_implementation): Rename and change methods accordingly.
8037         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
8038         (gl_list_nx_create): Renamed from gl_list_create.
8039         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
8040         (gl_list_nx_set_at): Renamed from gl_list_set_at.
8041         (gl_list_nx_add_first): Renamed from gl_list_add_first.
8042         (gl_list_nx_add_last): Renamed from gl_list_add_last.
8043         (gl_list_nx_add_before): Renamed from gl_list_add_before.
8044         (gl_list_nx_add_after): Renamed from gl_list_add_after.
8045         (gl_list_nx_add_at): Renamed from gl_list_add_at.
8046         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
8047         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
8048         gl_list_create_empty.
8049         (gl_list_nx_create): Renamed from gl_list_create.
8050         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
8051         (gl_list_nx_set_at): Renamed from gl_list_set_at.
8052         (gl_list_nx_add_first): Renamed from gl_list_add_first.
8053         (gl_list_nx_add_last): Renamed from gl_list_add_last.
8054         (gl_list_nx_add_before): Renamed from gl_list_add_before.
8055         (gl_list_nx_add_after): Renamed from gl_list_add_after.
8056         (gl_list_nx_add_at): Renamed from gl_list_add_at.
8057         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
8058         * lib/gl_array_list.c: Don't include xalloc.h.
8059         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
8060         NULL upon out-of-memory.
8061         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
8062         out-of-memory.
8063         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
8064         Change return type to 'int'.
8065         (gl_array_nx_set_at): Renamed from gl_array_set_at.
8066         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
8067         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
8068         upon out-of-memory.
8069         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
8070         upon out-of-memory.
8071         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
8072         upon out-of-memory.
8073         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
8074         upon out-of-memory.
8075         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
8076         out-of-memory.
8077         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
8078         Update.
8079         (gl_array_list_implementation): Update.
8080         * lib/gl_carray_list.c: Don't include xalloc.h.
8081         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
8082         Return NULL upon out-of-memory.
8083         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
8084         out-of-memory.
8085         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
8086         Change return type to 'int'.
8087         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
8088         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
8089         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
8090         upon out-of-memory.
8091         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
8092         upon out-of-memory.
8093         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
8094         out-of-memory.
8095         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
8096         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
8097         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
8098         Update.
8099         (gl_carray_list_implementation): Update.
8100         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
8101         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
8102         gl_linked_create_empty. Return NULL upon out-of-memory.
8103         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
8104         out-of-memory.
8105         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
8106         Change return type to 'int'. Return -1 upon out-of-memory.
8107         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
8108         out-of-memory.
8109         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
8110         upon out-of-memory.
8111         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
8112         upon out-of-memory.
8113         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
8114         NULL upon out-of-memory.
8115         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
8116         upon out-of-memory.
8117         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
8118         out-of-memory.
8119         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
8120         Update.
8121         * lib/gl_linked_list.c: Don't include xalloc.h.
8122         (gl_linked_list_implementation): Update.
8123         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
8124         (add_to_bucket): Change return type to 'int'.
8125         (gl_linkedhash_list_implementation): Update.
8126         * lib/gl_anytree_list1.h (free_subtree): New function.
8127         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
8128         gl_tree_create_empty. Return NULL upon out-of-memory.
8129         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
8130         Change return type to 'int'. Return -1 upon out-of-memory.
8131         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
8132         out-of-memory.
8133         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
8134         (gl_tree_remove_node): New function, moved here from
8135         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
8136         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
8137         Update.
8138         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
8139         malloc, not xmalloc. Return NULL upon out-of-memory.
8140         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
8141         out-of-memory.
8142         (gl_tree_remove_node_from_tree): New function, extracted from
8143         gl_tree_remove_node.
8144         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
8145         upon out-of-memory.
8146         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
8147         out-of-memory.
8148         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
8149         upon out-of-memory.
8150         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
8151         upon out-of-memory.
8152         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
8153         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
8154         not xmalloc. Return NULL upon out-of-memory.
8155         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
8156         out-of-memory.
8157         (gl_tree_remove_node_from_tree): New function, extracted from
8158         gl_tree_remove_node.
8159         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
8160         upon out-of-memory.
8161         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
8162         out-of-memory.
8163         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
8164         upon out-of-memory.
8165         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
8166         upon out-of-memory.
8167         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
8168         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
8169         gl_anytree_list1.h before gl_anyavltree_list2.h.
8170         (gl_avltree_list_implementation): Update.
8171         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
8172         gl_anytree_list1.h before gl_anyavltree_list2.h.
8173         (gl_rbtree_list_implementation): Update.
8174         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
8175         Change return type to 'int'. Return -1 upon out-of-memory. Use
8176         __builtin_expect.
8177         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
8178         (gl_avltreehash_list_implementation): Update.
8179         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
8180         (gl_rbtreehash_list_implementation): Update.
8181         * modules/array-list (Depends-on): Remove xalloc.
8182         * modules/carray-list (Depends-on): Likewise.
8183         * modules/linked-list (Depends-on): Likewise.
8184         * modules/linkedhash-list (Depends-on): Likewise.
8185         * modules/avltree-list (Depends-on): Likewise.
8186         * modules/rbtree-list (Depends-on): Likewise.
8187         * modules/avltreehash-list (Depends-on): Likewise.
8188         * modules/rbtreehash-list (Depends-on): Likewise.
8189
8190         * modules/xsublist: New file.
8191         * lib/gl_xsublist.h: New file.
8192         * lib/gl_xsublist.c: New file.
8193         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
8194         (gl_sublist_nx_create): New declaration.
8195         * lib/gl_sublist.c: Don't include xalloc.h.
8196         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
8197         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
8198         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
8199         Change return type to 'int'. Return -1 upon out-of-memory.
8200         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
8201         upon out-of-memory.
8202         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
8203         NULL upon out-of-memory.
8204         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
8205         upon out-of-memory.
8206         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
8207         NULL upon out-of-memory.
8208         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
8209         NULL upon out-of-memory.
8210         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
8211         upon out-of-memory.
8212         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
8213         (gl_sublist_list_implementation): Update.
8214         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
8215         upon out-of-memory.
8216         * modules/sublist (Depends-on): Remove xalloc.
8217
8218         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
8219         * tests/test-carray_list.c: Likewise.
8220         * tests/test-linked_list.c: Likewise.
8221         * tests/test-linkedhash_list.c: Likewise.
8222         * tests/test-avltree_list.c: Likewise.
8223         * tests/test-rbtree_list.c: Likewise.
8224         * tests/test-avltreehash_list.c: Likewise.
8225         * tests/test-rbtreehash_list.c: Likewise.
8226         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
8227         * modules/carray-list-tests (Makefile.am): Likewise.
8228         * modules/linked-list-tests (Makefile.am): Likewise.
8229         * modules/linkedhash-list-tests (Makefile.am): Likewise.
8230         * modules/avltree-list-tests (Makefile.am): Likewise.
8231         * modules/rbtree-list-tests (Makefile.am): Likewise.
8232         * modules/avltreehash-list-tests (Makefile.am): Likewise.
8233         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
8234
8235         * NEWS: Mention the changes.
8236
8237         * lib/clean-temp.c: Include gl_xlist.h.
8238         * modules/clean-temp (Depends-on): Add xlist.
8239
8240         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
8241         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
8242
8243         * tests/test-array_oset.c: Include gl_xlist.h.
8244         * modules/array-oset-tests (Depends-on): Add xlist.
8245
8246         Reported by José E. Marchesi <jemarch@gnu.org>.
8247
8248 2009-12-13  Bruno Haible  <bruno@clisp.org>
8249
8250         Move the malloc checking from module 'oset' to new module 'xoset'.
8251         * modules/xoset: New file.
8252         * lib/gl_xoset.h: New file.
8253         * lib/gl_xoset.c: New file.
8254         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
8255         declarations.
8256         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
8257         (struct gl_oset_implementation): Rename and change methods accordingly.
8258         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
8259         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
8260         'int'. Mark as __warn_unused_result__.
8261         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
8262         gl_oset_create_empty.
8263         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
8264         'int'.
8265         * lib/gl_array_oset.c: Don't include xalloc.h.
8266         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
8267         malloc, not xmalloc.
8268         (grow): Change return type to 'int'. Don't call xalloc_die.
8269         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
8270         to 'int'.
8271         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
8272         'int'.
8273         (gl_array_oset_implementation): Update.
8274         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
8275         gl_tree_create_empty.
8276         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
8277         'int'.
8278         * lib/gl_avltree_oset.c: Don't include xalloc.h.
8279         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
8280         xmalloc.
8281         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
8282         not xmalloc.
8283         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
8284         xmalloc.
8285         (gl_avltree_oset_implementation): Update.
8286         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
8287         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
8288         xmalloc.
8289         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
8290         not xmalloc.
8291         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
8292         xmalloc.
8293         (gl_rbtree_oset_implementation): Update.
8294         * modules/array-oset (Depends-on): Remove xalloc.
8295         * modules/avltree-oset (Depends-on): Likewise.
8296         * modules/rbtree-oset (Depends-on): Likewise.
8297         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
8298         * tests/test-avltree_oset.c: Likewise.
8299         * tests/test-rbtree_oset.c: Likewise.
8300         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
8301         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
8302         * modules/rbtree-oset-tests (Makefile.am): Likewise.
8303         * NEWS: Mention the change.
8304
8305 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
8306
8307         maint.mk: allow a project to override release-prep commands
8308         * top/maint.mk (alpha, beta, stable): Move release-preparatory
8309         commands into a new rule.
8310         (release-prep): New rule.
8311         (release-prep-hook): New overridable variable.
8312
8313 2009-12-13  Bruno Haible  <bruno@clisp.org>
8314
8315         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
8316
8317 2009-12-13  Jim Meyering  <meyering@redhat.com>
8318
8319         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
8320         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
8321
8322 2009-12-12  Bruno Haible  <bruno@clisp.org>
8323
8324         duplocale: Tweak.
8325         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
8326
8327 2009-12-12  Karl Berry  <karl@gnu.org>
8328
8329         * config/srclist.txt (strtoll.c): tab changes, no more sync.
8330
8331 2009-12-12  Bruno Haible  <bruno@clisp.org>
8332
8333         * m4/po.m4: Undo incorrect untabification.
8334
8335 2009-12-12  Bruno Haible  <bruno@clisp.org>
8336
8337         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
8338         * modules/c-strtod (Depends-on): Add locale.
8339         * modules/c-strtold (Depends-on): Likewise.
8340
8341 2009-12-12  Bruno Haible  <bruno@clisp.org>
8342
8343         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
8344
8345 2009-12-11  Eric Blake  <ebb9@byu.net>
8346
8347         setenv: relax requirement in light of POSIX ruling
8348         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
8349         not NULL.
8350         * tests/test-setenv.c (main): Relax test.
8351         * tests/test-unsetenv.c (main): Likewise.
8352         * doc/posix-functions/setenv.texi (setenv): Document this.
8353         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
8354
8355 2009-12-11  Bruno Haible  <bruno@clisp.org>
8356
8357         New module 'fd-safer-flag'.
8358         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
8359         * lib/dup-safer.c (dup_safer_flag): Remove function.
8360         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
8361         * lib/fd-safer.c (fd_safer_flag): Remove function.
8362         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
8363         * modules/cloexec (configure.ac): Drop indicator macro.
8364         * modules/fd-safer-flag: New file.
8365         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
8366         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
8367         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
8368
8369 2009-12-11  Bruno Haible  <bruno@clisp.org>
8370
8371         Tests for module 'nl_langinfo'.
8372         * modules/nl_langinfo-tests: New file.
8373         * tests/test-nl_langinfo.sh: New file.
8374         * tests/test-nl_langinfo.c: New file.
8375
8376         New module 'nl_langinfo'.
8377         * lib/nl_langinfo.c: New file.
8378         * m4/nl_langinfo.m4: New file.
8379         * modules/nl_langinfo: New file.
8380         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
8381
8382 2009-12-11  Bruno Haible  <bruno@clisp.org>
8383
8384         Tests for module 'langinfo'.
8385         * modules/langinfo-tests: New file.
8386         * tests/test-langinfo.c: New file.
8387
8388         New module 'langinfo'.
8389         * lib/langinfo.in.h: New file.
8390         * m4/langinfo_h.m4: New file.
8391         * modules/langinfo: New file.
8392         * doc/posix-headers/langinfo.texi: Mention the new module.
8393
8394 2009-12-11  Bruno Haible  <bruno@clisp.org>
8395
8396         * lib/config.charset: Untabify.
8397
8398 2009-12-11  Bruno Haible  <bruno@clisp.org>
8399
8400         * modules/unistd-safer (configure.ac): Drop indicator macro.
8401
8402 2009-12-11  Bruno Haible  <bruno@clisp.org>
8403
8404         Move pipe2-safer code to its own file.
8405         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
8406         * lib/pipe-safer.c (pipe2_safer): Remove function.
8407         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
8408         (Makefile.am): Add it to lib_SOURCES.
8409
8410 2009-12-10  Bruno Haible  <bruno@clisp.org>
8411
8412         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
8413
8414 2009-12-10  Bruno Haible  <bruno@clisp.org>
8415
8416         Declare which arguments expect non-NULL values, for GCC and clang.
8417         * build-aux/arg-nonnull.h: New file.
8418         * modules/arg-nonnull: New file.
8419         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
8420         (inet_ntop, inet_pton): Use it.
8421         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
8422         (closedir, dirfd, opendir, scandir, alphasort): Use it.
8423         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
8424         (open, openat): Use it.
8425         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
8426         (fnmatch): Use it.
8427         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
8428         (getopt, getopt_long, getopt_long_only): Use it.
8429         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
8430         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
8431         Use it.
8432         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
8433         (iconv_open): Use it.
8434         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
8435         (strtoimax, strtoumax): Use it.
8436         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
8437         (duplocale): Use it.
8438         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
8439         (frexp, frexpl): Use it.
8440         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
8441         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
8442         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
8443         (tsearch, tfind, tdelete, twalk): Use it.
8444         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
8445         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
8446         sigpending): Use it.
8447         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
8448         (posix_spawn, posix_spawnp, posix_spawnattr_init,
8449         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
8450         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
8451         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
8452         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
8453         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
8454         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
8455         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
8456         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
8457         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
8458         Use it.
8459         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
8460         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
8461         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
8462         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
8463         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
8464         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
8465         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
8466         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
8467         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
8468         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
8469         strtoull, unsetenv): Use it.
8470         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
8471         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
8472         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
8473         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
8474         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
8475         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
8476         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
8477         (strcasecmp, strncasecmp): Use it.
8478         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
8479         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
8480         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
8481         rpl_setsockopt): Use it.
8482         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
8483         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
8484         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
8485         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
8486         (gettimeofday): Use it.
8487         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
8488         (times): Use it.
8489         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
8490         (uname): Use it.
8491         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
8492         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
8493         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
8494         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
8495         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
8496         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
8497         unlinkat, write): Use it.
8498         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
8499         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
8500         * lib/argv-iter.h: Include arg-nonnull.h.
8501         (_ATTRIBUTE_NONNULL_): Remove macro.
8502         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
8503         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
8504         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
8505         optimization.
8506         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
8507         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
8508         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
8509         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
8510         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
8511         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
8512         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
8513         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
8514         * modules/arpa_inet (Depends-on): Add arg-nonnull.
8515         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
8516         * modules/dirent (Depends-on): Add arg-nonnull.
8517         (Makefile.am): Insert arg-nonnull.h into dirent.h.
8518         * modules/fcntl-h (Depends-on): Add arg-nonnull.
8519         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
8520         * modules/fnmatch (Depends-on): Add arg-nonnull.
8521         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
8522         * modules/getopt-posix (Depends-on): Add arg-nonnull.
8523         (Makefile.am): Insert arg-nonnull.h into getopt.h.
8524         * modules/glob (Depends-on): Add arg-nonnull.
8525         (Makefile.am): Insert arg-nonnull.h into glob.h.
8526         * modules/iconv_open (Depends-on): Add arg-nonnull.
8527         (Makefile.am): Insert arg-nonnull.h into iconv.h.
8528         * modules/inttypes (Depends-on): Add arg-nonnull.
8529         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
8530         * modules/locale (Depends-on): Add arg-nonnull.
8531         (Makefile.am): Insert arg-nonnull.h into locale.h.
8532         * modules/math (Depends-on): Add arg-nonnull.
8533         (Makefile.am): Insert arg-nonnull.h into math.h.
8534         * modules/netdb (Depends-on): Add arg-nonnull.
8535         (Makefile.am): Insert arg-nonnull.h into netdb.h.
8536         * modules/search (Depends-on): Add arg-nonnull.
8537         (Makefile.am): Insert arg-nonnull.h into search.h.
8538         * modules/signal (Depends-on): Add arg-nonnull.
8539         (Makefile.am): Insert arg-nonnull.h into signal.h.
8540         * modules/spawn (Depends-on): Add arg-nonnull.
8541         (Makefile.am): Insert arg-nonnull.h into spawn.h.
8542         * modules/stdio (Depends-on): Add arg-nonnull.
8543         (Makefile.am): Insert arg-nonnull.h into stdio.h.
8544         * modules/stdlib (Depends-on): Add arg-nonnull.
8545         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
8546         * modules/string (Depends-on): Add arg-nonnull.
8547         (Makefile.am): Insert arg-nonnull.h into string.h.
8548         * modules/strings (Depends-on): Add arg-nonnull.
8549         (Makefile.am): Insert arg-nonnull.h into strings.h.
8550         * modules/sys_socket (Depends-on): Add arg-nonnull.
8551         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
8552         * modules/sys_stat (Depends-on): Add arg-nonnull.
8553         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
8554         * modules/sys_time (Depends-on): Add arg-nonnull.
8555         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
8556         * modules/sys_times (Depends-on): Add arg-nonnull.
8557         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
8558         * modules/sys_utsname (Depends-on): Add arg-nonnull.
8559         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
8560         * modules/time (Depends-on): Add arg-nonnull.
8561         (Makefile.am): Insert arg-nonnull.h into time.h.
8562         * modules/unistd (Depends-on): Add arg-nonnull.
8563         (Makefile.am): Insert arg-nonnull.h into unistd.h.
8564         * modules/wchar (Depends-on): Add arg-nonnull.
8565         (Makefile.am): Insert arg-nonnull.h into wchar.h.
8566         * modules/argv-iter (Depends-on): Add arg-nonnull.
8567         * tests/test-canonicalize.c (null_ptr): New function.
8568         (main): Use it.
8569         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
8570         (main): Use it.
8571         * tests/test-memmem.c (null_ptr): New function.
8572         (main): Use it.
8573         Reported by Jim Meyering.
8574
8575 2009-12-10  Bruno Haible  <bruno@clisp.org>
8576
8577         Use spaces for indentation, not tabs.
8578         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
8579         * m4/*.m4: Untabify.
8580         * build-aux/*.h: Untabify.
8581         * tests/**/*.[hc]: Untabify.
8582         * README: New section "Indent with spaces, not TABs", based on
8583         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
8584         * NEWS: Mention the change.
8585
8586 2009-12-10  Bruno Haible  <bruno@clisp.org>
8587
8588         pty test: Fix link error.
8589         * modules/pty-tests (Makefile.am): Add the default LDADD value to
8590         test_pty_LDADD.
8591
8592 2009-12-07  Simon Josefsson  <simon@josefsson.org>
8593
8594         * modules/pty: New file.
8595         * modules/pty-tests: New file.
8596         * m4/pty.m4: New file.
8597         * tests/test-pty.c: New file.
8598         * doc/glibc-headers/pty.texi: Modified.
8599         * doc/glibc-functions/forkpty.texi: Modified.
8600         * doc/glibc-functions/openpty.texi: Modified.
8601
8602 2009-12-10  Bruno Haible  <bruno@clisp.org>
8603
8604         Avoid syntax error in C++ mode.
8605         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
8606
8607 2009-12-10  Bruno Haible  <bruno@clisp.org>
8608
8609         Use sed with option -e.
8610         * gnulib-tool (func_version, func_emit_copyright_notice,
8611         func_emit_initmacro_end, func_import, func_create_testdir): Pass
8612         option -e to sed.
8613         * modules/link-warning (Makefile.am): Likewise.
8614
8615 2009-12-10  Jim Meyering  <meyering@redhat.com>
8616
8617         mgetgroups: do not write bytes beyond end of malloc'd buffer
8618         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
8619         username, we call getgroups with a one-element-shorter buffer,
8620         but still told it the length was original, max_n_groups.
8621
8622 2009-12-09  Eric Blake  <ebb9@byu.net>
8623
8624         cloexec: relax license
8625         * modules/cloexec (Maintainer): Add myself.
8626         (License): Use LGPL, not GPL.
8627
8628         link-warning: optimize generation
8629         * modules/link-warning (Makefile.am): Reduce process usage.
8630
8631 2009-12-09  Bruno Haible  <bruno@clisp.org>
8632
8633         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
8634         workaround was added on 2009-11-17.
8635
8636 2009-12-09  Jim Meyering  <meyering@redhat.com>
8637             Bruno Haible  <bruno@clisp.org>
8638
8639         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
8640         * modules/link-warning (Makefile.am): Make the comment-removing sed
8641         command more robust in the face of bootstrap-prepended comment lines.
8642
8643 2009-12-09  Bruno Haible  <bruno@clisp.org>
8644
8645         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
8646         most one group.
8647
8648 2009-12-09  Simon Josefsson <simon@josefsson.org>
8649             Bruno Haible  <bruno@clisp.org>
8650
8651         * build-aux/link-warning.h: Add copyright notice.
8652         * modules/link-warning (Makefile.am): Generate link-warning.h from
8653         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
8654         * NEWS: Mention change in link-warning module.
8655         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
8656         * modules/dirent (Makefile.am): Add dependency to dirent.h.
8657         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
8658         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
8659         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
8660         * modules/math (Makefile.am): Add dependency to math.h.
8661         * modules/search (Makefile.am): Add dependency to search.h.
8662         * modules/signal (Makefile.am): Add dependency to signal.h.
8663         * modules/spawn (Makefile.am): Add dependency to spawn.h.
8664         * modules/stdio (Makefile.am): Add dependency to stdio.h.
8665         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
8666         * modules/string (Makefile.am): Add dependency to string.h.
8667         * modules/strings (Makefile.am): Add dependency to strings.h.
8668         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
8669         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
8670         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
8671         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
8672         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
8673         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
8674         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
8675         * modules/unistd (Makefile.am): Add dependency to unistd.h.
8676         * modules/wchar (Makefile.am): Add dependency to wchar.h.
8677
8678 2009-12-09  Bruno Haible  <bruno@clisp.org>
8679
8680         fchdir: Optimize away rpl_fstat when possible.
8681         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
8682         REPLACE_OPEN_DIRECTORY.
8683         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
8684
8685 2009-12-09  Bruno Haible  <bruno@clisp.org>
8686
8687         * lib/fchdir.c: Update comment.
8688
8689 2009-12-09  Bruno Haible  <bruno@clisp.org>
8690
8691         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
8692
8693 2009-12-08  Eric Blake  <ebb9@byu.net>
8694
8695         fchdir: avoid memory leak on re-registration.
8696         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
8697
8698 2009-12-08  Jim Meyering  <meyering@redhat.com>
8699
8700         init.sh: avoid Solaris 10 /bin/sh portability problem
8701         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
8702         sourced script:
8703           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
8704           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
8705           bar
8706         tests/init.sh relied on that, accepting a --set-path=DIR argument,
8707         and two tests used that idiom.
8708         * tests/init.sh: Update suggested usage comments.
8709         (path_prepend_): New function, to be used in place
8710         of the --src-path=DIR option.
8711         (setup_): Move PATH-prepending code into path_prepend_.
8712         * tests/test-pread.sh: Adapt to new usage.
8713         * tests/test-xalloc-die.sh: Likewise.
8714
8715 2009-12-08  Simon Josefsson  <simon@josefsson.org>
8716
8717         * doc/gnulib.texi (Glibc pty.h): Add.
8718         * doc/glibc-functions/forkpty.texi: Add.
8719         * doc/glibc-functions/openpty.texi: Add.
8720         Suggested by Bruno Haible.
8721
8722 2009-12-08  Eric Blake  <ebb9@byu.net>
8723
8724         fchdir: fix logic bugs
8725         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
8726         * tests/test-fchdir.c (main): Enhance test.
8727         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
8728         is in use.
8729
8730         dup2: fix logic bugs
8731         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
8732         REPLACE_DUP2 to decide when rpl_dup2 is needed.
8733         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
8734         exists.
8735         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
8736
8737 2009-12-07  Eric Blake  <ebb9@byu.net>
8738
8739         unlink: fix m4 detection
8740         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
8741
8742         unistd-safer: add unit test
8743         * modules/unistd-safer-tests: New file.
8744         * tests/test-dup-safer.c: Likewise.
8745         * tests/test-cloexec.c (setmode): Avoid compiler warning.
8746         * tests/test-dup2.c (setmode): Likewise.
8747         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
8748
8749         cloexec: preserve text vs. binary across dup_cloexec
8750         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
8751         mode.
8752         * modules/dup2-tests (Depends-on): Add binary-io.
8753         * modules/cloexec-tests (Depends-on): Likewise.
8754         * tests/test-dup2.c (setmode, is_mode): New helpers.
8755         (main): Add tests that translation mode is preserved.
8756         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
8757         Reported by Bruno Haible.
8758
8759         mgetgroups: reduce duplicate listings
8760         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
8761         resulting array.
8762         * tests/test-chown.h (test_chown): Simplify client.
8763         * tests/test-lchown.h (test_lchown): Likewise.
8764
8765 2009-12-06  Bruno Haible  <bruno@clisp.org>
8766
8767         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
8768         value.
8769
8770 2009-12-06  Bruno Haible  <bruno@clisp.org>
8771
8772         * lib/progname.c: Include stdio.h, stdlib.h.
8773         (set_program_name): Reject a NULL argument.
8774
8775 2009-12-05  Eric Blake  <ebb9@byu.net>
8776
8777         pipe2-safer: new module
8778         * modules/pipe2-safer: New file.
8779         * lib/unistd-safer.h (pipe2_safer): New prototype.
8780         * lib/unistd--.h (pipe2): New wrapper.
8781         * lib/pipe-safer.c (pipe2_safer): New function.
8782         * modules/pipe (Depends-on): Add pipe2-safer.
8783         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
8784
8785         stdlib-safer: preserve cloexec flag for mkostemp[s]
8786         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
8787         fd_safer_flag.
8788
8789         unistd-safer: allow preservation of cloexec status via flag
8790         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
8791         prototypes.
8792         * lib/dup-safer.c (dup_safer_flag): New function.
8793         * lib/fd-safer.c (fd_safer_flag): Likewise.
8794         * modules/cloexec (configure.ac): Set witness.
8795
8796         test-dup2: enhance test
8797         * modules/dup2-tests (Depends-on): Add cloexec.
8798         * tests/test-dup2.c (main): Enhance test.
8799
8800         cloexec: add dup_cloexec
8801         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
8802         header and comments.
8803         * lib/cloexec.c (set_cloexec_flag): Add comments.
8804         (dup_cloexec): New function, with mingw implementation borrowed
8805         from...
8806         * lib/w32spawn.h (dup_noinherit): ...here.
8807         * modules/execute (Depends-on): Add cloexec.
8808         * modules/pipe (Depends-on): Likewise.
8809         * modules/cloexec (Depends-on): Add dup2.
8810         * modules/cloexec-tests (Files): New file.
8811         * tests/test-cloexec.c: Likewise.
8812
8813         test-xalloc-die: fix test for mingw
8814         * modules/xalloc-die-tests (Files): Add tests/init.sh.
8815         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
8816         directory and .exe suffix off argv[0] output.
8817
8818         test-fseeko: fix test for mingw
8819         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
8820         than undefining fseek, so test will pass on mingw.
8821
8822 2009-12-05  Bruno Haible  <bruno@clisp.org>
8823
8824         * lib/progname.h (set_program_name): Clarify specification.
8825         * lib/progname.c (set_program_name): Likewise.
8826         Reported by Jim Meyering.
8827
8828 2009-12-05  Jim Meyering  <meyering@redhat.com>
8829
8830         maint.mk: backslash-escape parens in default regexp
8831         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
8832         backslash-escape the literal parentheses.
8833
8834         maint.mk: news-date-check: use grep -E
8835         * top/maint.mk (today): Define a Make variable, not a...
8836         (news-date-check): ...shell variable.
8837         (news-date-regexp): Use the Make variable.
8838         Use grep's -E option.  Change the failing diagnostic to mention
8839         the variable, $(news-date-regexp).
8840
8841 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
8842
8843         maintainer-makefile: allow customization of NEWS entry format
8844         * top/maint.mk (news-date-regexp): New overridable variable.
8845         (news-date-check): Use it.
8846
8847 2009-12-04  Eric Blake  <ebb9@byu.net>
8848
8849         mgetgroups: add xgetgroups, and avoid ENOSYS failures
8850         * lib/mgetgroups.h (xgetgroups): New prototype.
8851         * lib/mgetgroups.c (xgetgroups): New wrapper.
8852         (mgetgroups): Handle ENOSYS.
8853         * modules/mgetgroups (Depends-on): Add realloc.
8854         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
8855
8856         mgetgroups: avoid argument promotion issues with -1
8857         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
8858         for invalid gid_t.
8859         * tests/test-chown.h (getegid, test_chown): Likewise.
8860         * tests/test-lchown.h (getegid, test_lchown): Likewise.
8861
8862 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
8863
8864         exclude: Fix header file problems.
8865         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
8866
8867 2009-12-01  Jim Meyering  <meyering@redhat.com>
8868
8869         fts: fts_open: do not let an empty string cause immediate failure
8870         This is required in support of GNU rm, for which the command
8871         "rm A '' B" must process and remove both A and B, in spite of
8872         the empty string argument.
8873         * lib/fts.c (fts_open): Do not let the presence of an empty string
8874         cause fts_open to fail immediately.  Most fts-using tools must be
8875         able to process all arguments, in order, and can be expected to
8876         diagnose such arguments themselves.
8877
8878 2009-11-30  Eric Blake  <ebb9@byu.net>
8879
8880         utimens: fix compilation error
8881         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
8882         Declare variable at right scope.
8883
8884 2009-11-29  Jim Meyering  <meyering@redhat.com>
8885
8886         bootstrap: handle perl-5.11's changed --version output
8887         * build-aux/bootstrap (get_version): Handle perl separately,
8888         since perl-5.11's --version output is different.
8889
8890 2009-11-28  Jim Meyering  <meyering@redhat.com>
8891
8892         userspec: depend on the inttostr module, too
8893         * modules/userspec (Depends-on): Add inttostr.
8894
8895         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
8896         * lib/userspec.c (parse_with_separator): Do not accept a user ID
8897         number of MAXUID when it evaluates to (uid_t) -1.
8898         Likewise for group ID.  Reported by Matt McCutchen in
8899         <http://savannah.gnu.org/bugs/?28113>
8900
8901         userspec: reformat to use spaces, not TABs
8902         * lib/userspec.c: Expand TABs to spaces.
8903         Add Emacs' "indent-tabs-mode: nil" hint.
8904
8905 2009-11-27  Eric Blake  <ebb9@byu.net>
8906
8907         getopt-gnu: flush out another BSD bug
8908         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
8909         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
8910         flush out BSD bug.
8911         * tests/test-getopt.h (test_getopt): End lists with NULL.
8912         * tests/test-getopt_long.h (test_getopt_long): Likewise.
8913         (test_getopt_long_posix): Enhance test.
8914         * modules/getopt-posix-tests (Depends-on): Add stdbool.
8915         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
8916         getopt-gnu.
8917         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8918         Likewise.
8919
8920 2009-11-27  Simon Josefsson  <simon@josefsson.org>
8921
8922         * modules/idpriv-droptemp-tests (Notice): Fix text.
8923
8924 2009-11-27  Jim Meyering  <meyering@redhat.com>
8925
8926         test-xalloc-die: avoid spurious failure due to libtool argv difference
8927         In a libtool-enabled project, this test would fail due to a difference
8928         in the emitted program name, e.g.,
8929         -test-xalloc-die: memory exhausted
8930         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
8931         Use program to avoid that.
8932         * modules/xalloc-die-tests (Depends-on): Add progname.
8933         * tests/test-xalloc-die.c: Include progname.h".
8934         (program_name): Remove decl.
8935         (main): Call set_program_name.
8936         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
8937
8938 2009-11-26  Richard Jones  <rjones@redhat.com>
8939
8940         w32sock: leave win32 error in place.
8941         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
8942
8943 2009-11-26  Eric Blake  <ebb9@byu.net>
8944
8945         init.sh: suggest to use skip_ and fail_ functions in comments
8946         * tests/init.sh: Add a sentence.
8947
8948 2009-11-25  Bruno Haible  <bruno@clisp.org>
8949
8950         init.sh: add documentation in comments
8951         * tests/init.sh: Add some developer and user documentation.
8952
8953 2009-11-26  Jim Meyering  <meyering@redhat.com>
8954
8955         init.sh: accommodate even those who specify bogus srcdir manually
8956         * tests/init.sh: Normally, srcdir is guaranteed by automake and
8957         configure-time tests to be sanitized, so that there is no need to
8958         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
8959         (with no double quotes) suffices.  However, since tests may be
8960         invoked manually, and since you may explicitly set srcdir to the
8961         name of a directory containing spaces, do quote its uses here.
8962         * tests/test-pread.sh: Likewise.
8963         Suggested by Bruno Haible.
8964
8965         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
8966         * tests/test-pread.sh: Write no data into the pipe, because
8967         test-pread actually reads none.  This avoids a diagnostic,
8968         "bash: echo: write error: Broken pipe", that arises in the unusual
8969         event something is ignoring SIGPIPE, and might be interpreted
8970         as some sort of failure.  Reported by Bruno Haible.
8971
8972 2009-11-25  Jim Meyering  <meyering@redhat.com>
8973
8974         test-pread: cover failure with ESPIPE and EINVAL
8975         * tests/test-pread.c (main): Test for failure, too.
8976         * tests/test-pread.sh: Invoke with stdin on a pipe.
8977         Suggested by Eric Blake.
8978
8979         pread: improvement and fix
8980         * modules/pread (Depends-on): Depend on lseek, for portability to
8981         e.g., mingw.  Suggested by Eric Blake.
8982         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
8983
8984         unistd.in.h: correct declaration of pread
8985         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
8986         Reported by Richard W.M. Jones.
8987
8988         test-pread.sh: distribute the test script
8989         * modules/pread-tests (Files): Include test-pread.sh.
8990
8991         test-pread.sh: clean up
8992         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
8993         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
8994         That is unnecessary, since it's always ".".
8995         Suggestion from Eric Blake.
8996
8997         test-pread.sh: make executable
8998         * tests/test-pread.sh: Set executable bit.
8999         Reported by Eric Blake.
9000
9001         correct typo in test-pread.sh
9002         * tests/test-pread.sh: Add #! line.
9003
9004         test pread
9005         * tests/test-pread.c: New file.
9006         * tests/test-pread.sh: Likewise.
9007         * modules/pread-tests: Likewise.
9008
9009         pread: new module
9010         * modules/pread: New file.
9011         * lib/unistd.in.h (pread): Define/declare.
9012         * lib/pread.c (pread): New file.
9013         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
9014         * modules/unistd (Makefile.am): Substitute witnesses.
9015         * doc/posix-functions/pread.texi (pread): Update.
9016         * MODULES.html.sh: Add pread.
9017
9018 2009-11-25  Jim Meyering  <meyering@redhat.com>
9019
9020         tests/init.sh: new file to be used via most *.sh tests
9021         * tests/init.sh: New file.
9022
9023 2009-11-25  Eric Blake  <ebb9@byu.net>
9024
9025         utimens: work around older Linux failure with symlinks
9026         * lib/utimens.c (lutimensat_works_really): New variable.
9027         (fdutimens, lutimens): Use it to manage kernels that support
9028         nanosecond times on files, but not on symlinks.
9029         Reported by OndÅ™ej Vašík.
9030
9031         utimes: fix configure grammar
9032         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
9033
9034 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
9035
9036         regex: Fix fastmap for multibyte character ranges.
9037         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
9038         characters when a multibyte character range is included.
9039
9040 2009-11-22  Andy Wingo  <wingo@pobox.com>
9041
9042         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
9043         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
9044
9045 2009-11-24  Bruno Haible  <bruno@clisp.org>
9046
9047         doc: Most *_l functions exist in MacOS X 10.5.
9048         * doc/posix-functions/duplocale.texi: Update platforms list.
9049         * doc/posix-functions/freelocale.texi: Likewise.
9050         * doc/posix-functions/newlocale.texi: Likewise.
9051         * doc/posix-functions/uselocale.texi: Likewise.
9052         * doc/posix-functions/isalnum_l.texi: Likewise.
9053         * doc/posix-functions/isalpha_l.texi: Likewise.
9054         * doc/posix-functions/isblank_l.texi: Likewise.
9055         * doc/posix-functions/iscntrl_l.texi: Likewise.
9056         * doc/posix-functions/isdigit_l.texi: Likewise.
9057         * doc/posix-functions/isgraph_l.texi: Likewise.
9058         * doc/posix-functions/islower_l.texi: Likewise.
9059         * doc/posix-functions/isprint_l.texi: Likewise.
9060         * doc/posix-functions/ispunct_l.texi: Likewise.
9061         * doc/posix-functions/isspace_l.texi: Likewise.
9062         * doc/posix-functions/isupper_l.texi: Likewise.
9063         * doc/posix-functions/iswalnum_l.texi: Likewise.
9064         * doc/posix-functions/iswalpha_l.texi: Likewise.
9065         * doc/posix-functions/iswblank_l.texi: Likewise.
9066         * doc/posix-functions/iswcntrl_l.texi: Likewise.
9067         * doc/posix-functions/iswctype_l.texi: Likewise.
9068         * doc/posix-functions/iswdigit_l.texi: Likewise.
9069         * doc/posix-functions/iswgraph_l.texi: Likewise.
9070         * doc/posix-functions/iswlower_l.texi: Likewise.
9071         * doc/posix-functions/iswprint_l.texi: Likewise.
9072         * doc/posix-functions/iswpunct_l.texi: Likewise.
9073         * doc/posix-functions/iswspace_l.texi: Likewise.
9074         * doc/posix-functions/iswupper_l.texi: Likewise.
9075         * doc/posix-functions/iswxdigit_l.texi: Likewise.
9076         * doc/posix-functions/isxdigit_l.texi: Likewise.
9077         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
9078         * doc/posix-functions/strcasecmp_l.texi: Likewise.
9079         * doc/posix-functions/strcoll_l.texi: Likewise.
9080         * doc/posix-functions/strfmon_l.texi: Likewise.
9081         * doc/posix-functions/strftime_l.texi: Likewise.
9082         * doc/posix-functions/strncasecmp_l.texi: Likewise.
9083         * doc/posix-functions/strxfrm_l.texi: Likewise.
9084         * doc/posix-functions/tolower_l.texi: Likewise.
9085         * doc/posix-functions/toupper_l.texi: Likewise.
9086         * doc/posix-functions/towctrans_l.texi: Likewise.
9087         * doc/posix-functions/towlower_l.texi: Likewise.
9088         * doc/posix-functions/towupper_l.texi: Likewise.
9089         * doc/posix-functions/wcscoll_l.texi: Likewise.
9090         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
9091         * doc/posix-functions/wctrans_l.texi: Likewise.
9092         * doc/posix-functions/wctype_l.texi: Likewise.
9093         * doc/glibc-functions/strptime_l.texi: Likewise.
9094         * doc/glibc-functions/strtod_l.texi: Likewise.
9095         * doc/glibc-functions/strtof_l.texi: Likewise.
9096         * doc/glibc-functions/strtol_l.texi: Likewise.
9097         * doc/glibc-functions/strtold_l.texi: Likewise.
9098         * doc/glibc-functions/strtoll_l.texi: Likewise.
9099         * doc/glibc-functions/strtoul_l.texi: Likewise.
9100         * doc/glibc-functions/strtoull_l.texi: Likewise.
9101         * doc/glibc-functions/wcsftime_l.texi: Likewise.
9102         * doc/glibc-functions/wcstod_l.texi: Likewise.
9103         * doc/glibc-functions/wcstof_l.texi: Likewise.
9104         * doc/glibc-functions/wcstol_l.texi: Likewise.
9105         * doc/glibc-functions/wcstold_l.texi: Likewise.
9106         * doc/glibc-functions/wcstoll_l.texi: Likewise.
9107         * doc/glibc-functions/wcstoul_l.texi: Likewise.
9108         * doc/glibc-functions/wcstoull_l.texi: Likewise.
9109
9110 2009-11-24  Bruno Haible  <bruno@clisp.org>
9111
9112         duplocale: Fix logic bug.
9113         * lib/duplocale.c: Don't include <langinfo.h>.
9114         (_NL_LOCALE_NAME): Remove macro.
9115         (rpl_duplocale): Use setlocale instead of nl_langinfo.
9116         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
9117
9118 2009-11-23  Jim Meyering  <meyering@redhat.com>
9119
9120         test-update-copyright: don't hard-code /usr/bin/perl
9121         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
9122         perl to print the current year.  Gilles Espinasse reported that
9123         the replaced use of perl was hard-coded as /usr/bin/perl.
9124
9125 2009-11-23  Bruno Haible  <bruno@clisp.org>
9126
9127         duplocale: Add support for glibc 2.3.x.
9128         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
9129
9130 2009-11-22  Bruno Haible  <bruno@clisp.org>
9131
9132         vasnprintf: Tiny optimization.
9133         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
9134         MacOS X.
9135
9136 2009-11-22  Bruno Haible  <bruno@clisp.org>
9137
9138         Tests for module 'duplocale'.
9139         * modules/duplocale-tests: New file.
9140         * tests/test-duplocale.c: New file.
9141
9142         New module 'duplocale'.
9143         * m4/duplocale.m4: New file.
9144         * lib/locale.in.h (duplocale): New declaration.
9145         * lib/duplocale.c: New file.
9146         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
9147         gl_LOCALE_H_DEFAULTS): New macros.
9148         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
9149         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
9150         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
9151         REPLACE_DUPLOCALE.
9152         * modules/duplocale: New file.
9153         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
9154
9155 2009-11-22  Bruno Haible  <bruno@clisp.org>
9156
9157         * modules/locale-tests (configure.ac): Test for newlocale function.
9158         * tests/test-locale.c: When the system has extended locale functions,
9159         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
9160
9161         locale: Make locale_t available when possible.
9162         * lib/locale.in.h: Include <xlocale.h> when it exists.
9163         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
9164         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
9165         * modules/locale (Depends-on): Add extensions.
9166         (Makefile.am): Also substitute HAVE_XLOCALE_H.
9167         * doc/posix-headers/locale.texi: Document the problem with locale_t.
9168
9169 2009-11-22  Bruno Haible  <bruno@clisp.org>
9170
9171         Add comments.
9172         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
9173         invocation.
9174         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
9175         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9176         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
9177
9178 2009-11-22  Bruno Haible  <bruno@clisp.org>
9179
9180         error: account for the possibility of freopen (stdout).
9181         * lib/error.c: Include <unistd.h>.
9182         (flush_stdout): New function, extracted from error and error_at_line.
9183         Determine stdout's fd dynamically.
9184         (error, error_at_line): Invoke flush_stdout.
9185         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
9186         * modules/error (Depends-on): Add unistd.
9187
9188 2009-11-22  Bruno Haible  <bruno@clisp.org>
9189
9190         diffseq: Add comment.
9191         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
9192
9193 2009-11-22  Jim Meyering  <meyering@redhat.com>
9194
9195         c-stack: avoid defining an unused static function
9196         * lib/c-stack.c (find_stack_direction): Do not define this function
9197         when it will not be used.
9198
9199         diffseq: avoid spurious gcc warnings
9200         * lib/diffseq.h (IF_LINT2): Define.
9201         (compareseq): Use it to initialize two members of "part".
9202         This avoids two used-uninitialized warnings.
9203
9204 2009-11-21  Jim Meyering  <meyering@redhat.com>
9205
9206         c-stack: avoid "ignoring return value of `write'" warning
9207         * lib/c-stack.c: Include "ignore-value.h".
9208         (die): Explicitly ignore each write return value.
9209         * modules/c-stack (Depends-on): Add ignore-value.
9210
9211 2009-11-21  Bruno Haible  <bruno@clisp.org>
9212
9213         diffseq: reduce scope of variable 'best'.
9214         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
9215         variable, earlier used for two different purposes.
9216
9217 2009-11-21  Jim Meyering  <meyering@redhat.com>
9218
9219         diffseq: remove useless assignment to "best"
9220         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
9221         assignment.  At that point "best" is already guaranteed to be zero.
9222
9223 2009-11-20  Eric Blake  <ebb9@byu.net>
9224
9225         build: mention ftp redirector in release announcements
9226         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
9227         values that used to come from cfg.mk; mention FTP redirect URL.
9228         * build-aux/announce-gen: Mention the mirror list.
9229         Suggested by Karl Berry.
9230
9231         nanosleep: improve port to mingw
9232         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
9233         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
9234         LIB_NANOSLEEP, but only when needed.
9235         * modules/select (Link): Document LIBSOCKET.
9236         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
9237         enough.
9238
9239         nanosleep: work around cygwin bug
9240         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
9241         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
9242         bug.
9243         (getnow): Delete, not needed.
9244         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
9245         LIB_CLOCK_GETTIME.
9246         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
9247         clock-time, gettime.
9248         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
9249         bug.
9250         * modules/nanosleep-tests: New test.
9251         * tests/test-nanosleep.c: New file.
9252
9253         sleep: work around cygwin bug
9254         * lib/sleep.c (rpl_sleep): Work around the bug.
9255         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
9256         (gl_PREREQ_SLEEP): Delete unused macro.
9257         * modules/sleep (Depends-on): Add verify.
9258         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
9259         * modules/unistd (Makefile.am): Substitute witness.
9260         * lib/unistd.in.h (sleep): Update prototype.
9261         * doc/posix-functions/sleep.texi (sleep): Document the bug.
9262         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
9263         * modules/sleep-tests (Depends-on): Check for alarm.
9264
9265 2009-11-20  Jim Meyering  <meyering@redhat.com>
9266
9267         maint.mk: improve sc_prohibit_magic_number_exit
9268         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
9269         so it does not match uses like System.exit(1).
9270         Add comments showing how to correct all offenders.
9271
9272 2009-11-19  Eric Blake  <ebb9@byu.net>
9273
9274         xalloc-die-tests: add missing library
9275         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
9276
9277         test-xvasprintf: silence compiler warnings
9278         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
9279         empty string from gcc.
9280
9281 2009-11-19  Jim Meyering  <meyering@redhat.com>
9282
9283         xfreopen: new module, from coreutils
9284         * modules/xfreopen: New module.
9285         * lib/xfreopen.c: New file.
9286         * lib/xfreopen.h: New file.
9287         * MODULES.html.sh (File stream based Input/Output"): Add it.
9288
9289 2009-11-19  Eric Blake  <ebb9@byu.net>
9290
9291         manywarnings: depend on warnings
9292         * modules/manywarnings (Depends-on): Add warnings.
9293
9294         build: avoid compiler warnings
9295         * lib/select.c (rpl_select): Delete unused variable.
9296         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
9297
9298 2009-11-18  Eric Blake  <ebb9@byu.net>
9299
9300         tests: avoid false negative with --with-packager
9301         * tests/test-version-etc.sh: Discard packager information.
9302         * tests/test-argp-version-etc-1.sh: Likewise.
9303         Reported by Mike Frysinger.
9304
9305         utimens: fix regression on Solaris
9306         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
9307         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
9308         can only change fd timestamps via futimesat.  Instead, use an
9309         additional witness macro to avoid BSD bug.
9310         Reported by Jim Meyering.
9311
9312 2009-11-17  Eric Blake  <ebb9@byu.net>
9313
9314         usleep: use it to simplify tests
9315         * modules/stat-time-tests (Depends-on): Add usleep.
9316         (configure.ac): Drop usleep check.
9317         * modules/chown-tests (Depends-on, configure.ac): Likewise.
9318         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
9319         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
9320         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
9321         * modules/openat-tests (Depends-on, configure.ac): Likewise.
9322         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
9323         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
9324         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
9325         Likewise.
9326         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
9327         * tests/test-lchown.h (nap): Likewise.
9328         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
9329         * tests/test-stat-time.c (nap): Likewise.
9330         * tests/test-utimens-common.h (nap): Update comments.
9331
9332         usleep: new module
9333         * modules/usleep: New file.
9334         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
9335         * lib/usleep.c (usleep): Likewise.
9336         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
9337         * modules/unistd (Makefile.am): Substitute witnesses.
9338         * lib/unistd.in.h (usleep): Add declaration.
9339         * doc/pastposix-functions/usleep.texi (usleep): Document this.
9340         * MODULES.html.sh (Date and time): Likewise.
9341         * modules/usleep-tests (Depends-on): New test.
9342         * tests/test-usleep.c: New file.
9343
9344         chown: work around OpenBSD bug
9345         * lib/chown.c (rpl_chown): Work around the bug.
9346         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
9347         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
9348         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
9349         * modules/chown (Depends-on): Add stdbool.
9350         * modules/lchown (Depends-on): Likewise.
9351         * doc/posix-functions/chown.texi (chown): Document the bug.
9352         * doc/posix-functions/lchown.texi (lchown): Likewise.
9353         * tests/test-lchown.h (test_chown): Relax test.
9354
9355         mkstemp: avoid conflict with C++ keyword template
9356         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
9357         * lib/mkostemp.c (mkostemp): Likewise.
9358         * lib/mkostemps.c (mkostemps): Likewise.
9359         * lib/mkstemp.c (mkstemp): Likewise.
9360         * lib/mkstemps.c (mkstemps): Likewise.
9361
9362         xalloc-die-tests: optimize
9363         * tests/test-xalloc-die.sh: Reduce number of processes.
9364
9365 2009-11-17  Simon Josefsson  <simon@josefsson.org>
9366
9367         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
9368         patch from ludo@gnu.org (Ludovic Courtès).
9369
9370 2009-11-17  Jim Meyering  <meyering@redhat.com>
9371
9372         version-etc: use proper license string
9373         * modules/version-etc (License): Use LGPL, not LGPLv3+.
9374         * modules/version-etc-fsf: Likewise.
9375
9376 2009-11-17  Simon Josefsson  <simon@josefsson.org>
9377
9378         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
9379         printed to stdout.  Deal with EOL differences.
9380
9381 2009-11-17  Eric Blake  <ebb9@byu.net>
9382
9383         unsetenv: work around Solaris bug
9384         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
9385         * lib/unsetenv.c (rpl_unsetenv): Work around it.
9386         Reported by Jim Meyering.
9387
9388         vasnprintf: avoid compiler warnings
9389         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
9390         variables.
9391         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
9392
9393 2009-11-17  Simon Josefsson  <simon@josefsson.org>
9394
9395         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
9396         settings since xalloc-die is no longer the self test,
9397         xalloc-die.sh is.
9398
9399 2009-11-17  Jim Meyering  <meyering@redhat.com>
9400
9401         test-xalloc-die.sh: make the code agree with the commit log
9402         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
9403         at the end, just in case you happen to have a test-xalloc-die
9404         program in some other PATH directory.
9405
9406         test-xalloc-die.sh: fix a portability bug
9407         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
9408         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
9409         Otherwise, argv[0] (as often seen in diagnostics) would be too
9410         system-dependent, sometimes with, and sometimes without the leading "./".
9411
9412         version-etc-fsf: relax license to LGPLv3+
9413         * modules/version-etc-fsf (License): Relax license.
9414
9415 2009-11-16  Eric Blake  <ebb9@byu.net>
9416
9417         xalloc-die-tests: avoid printing null pointer
9418         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
9419         shell script.
9420         * tests/test-xalloc-die.c (program_name): Declare.
9421         * tests/test-xalloc-die.sh (tmpfiles): New file.
9422
9423         setenv, unsetenv: work around various bugs
9424         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
9425         (setenv) [HAVE_SETENV]: Work around bugs.
9426         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
9427         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
9428         for bugs.
9429         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
9430         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
9431         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
9432         * modules/stdlib (Makefile.am): Update substitutions.
9433         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
9434         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
9435         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
9436         * modules/setenv-tests: New test.
9437         * modules/unsetenv-tests: Likewise.
9438         * tests/test-setenv.c: New file.
9439         * tests/test-unsetenv.c: Likewise.
9440
9441 2009-11-16  Jim Meyering  <meyering@redhat.com>
9442
9443         version-etc: relax license to LGPLv3+
9444         * modules/version-etc (License): Relax license.
9445
9446         better AC_REQUIRE expanded-before-required-warning avoidance
9447         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
9448         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
9449         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
9450         which is no longer needed.
9451
9452 2009-11-16  Eric Blake  <ebb9@byu.net>
9453
9454         test-freading: clean up temporary file
9455         * tests/test-freading.c (main): Remove file on success, and use
9456         ASSERT more liberally.
9457         Reported by Jim Meyering.
9458
9459 2009-11-16  Jim Meyering  <meyering@redhat.com>
9460
9461         avoid new AC_REQUIRE expanded-before-required warnings
9462         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
9463         merely using it.
9464         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
9465         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
9466
9467 2009-11-15  Simon Josefsson  <simon@josefsson.org>
9468
9469         * tests/test-xalloc-die.c: New file.
9470         * modules/xalloc-die-tests: New file.
9471         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
9472         XFAIL_TESTS so it can be appended by modules.
9473
9474 2009-11-15  Simon Josefsson  <simon@josefsson.org>
9475
9476         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
9477         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
9478
9479 2009-11-14  Eric Blake  <ebb9@byu.net>
9480
9481         fnmatch: avoid compiler warning
9482         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
9483         to silence compiler warning about mismatch signedness in ?:.
9484         Reported by Robert Millan.
9485
9486         intprops: add double-inclusion guard
9487         * lib/intprops.h: Allow idempotent includes.
9488         Suggested by Bruce Korb.
9489
9490         openat: detect Solaris fchownat bug
9491         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
9492         penalizing glibc chownat when only lchownat is broken.
9493         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
9494         trailing slash bugs.
9495         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
9496         * modules/openat-tests (Files): Include more files.
9497         (Depends-on): Add mgetgroups, sleep, stat-time.
9498         (configure.ac): Add additional checks.
9499         (Makefile.am): Build new test.
9500         * tests/test-fchownat.c: New file.
9501
9502         lchown: detect Solaris and FreeBSD bug
9503         * lib/lchown.c (rpl_lchown): Work around bug.
9504         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
9505         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9506         * modules/unistd (Makefile.am): Populate it.
9507         * lib/unistd.in.h (lchown): Update declaration.
9508         * doc/posix-functions/lchown.texi (lchown): Document the bug.
9509         * modules/lchown-tests: New file.
9510         * tests/test-lchown.h (test_lchown): Likewise.
9511         * tests/test-lchown.c (main): Likewise.
9512
9513         chown: detect Solaris and FreeBSD bug
9514         * lib/chown.c (rpl_chown): Work around bug.
9515         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
9516         (gl_PREREQ_CHOWN): Delete.
9517         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9518         * modules/unistd (Makefile.am): Populate it.
9519         * lib/unistd.in.h (chown): Update declaration.
9520         * lib/lchown.c (chown): Update client.
9521         * modules/lchown (Depends-on): Add lstat.
9522         * doc/posix-functions/chown.texi (chown): Document the bug.
9523         * doc/posix-functions/getgroups.texi (getgroups): Document
9524         getgroups pitfall.
9525         * modules/chown-tests: New file.
9526         * tests/test-chown.h (test_chown): Likewise.
9527         * tests/test-chown.c (main): Likewise.
9528
9529 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
9530
9531         gnulib-tool: correctly detect absence of m4 directories
9532         * gnulib-tool: Avoid extra newline on data passed to wc -l.
9533
9534 2009-11-14  Jim Meyering  <meyering@redhat.com>
9535
9536         maint.mk: Prohibit inclusion of "xalloc.h" without use.
9537         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
9538
9539 2009-11-14  John W. Eaton  <jwe@gnu.org>
9540
9541         strftime.h: wrap funtion declaration in extern "C" block
9542         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
9543
9544 2009-11-13  Eric Blake  <ebb9@byu.net>
9545
9546         getgroups: avoid compiler warning
9547         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
9548
9549         getgroups: work around FreeBSD bug
9550         * lib/getgroups.c (rpl_getgroups): Work around the bug.
9551         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
9552         * doc/posix-functions/getgroups.texi (getgroups): Document it.
9553         * tests/test-getgroups.c (main): Fix buffer overrun.
9554
9555         getgroups: avoid compilation failure
9556         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
9557         * modules/getgroups (Depends-on): Add stdint.
9558
9559 2009-11-13  Jim Meyering  <meyering@redhat.com>
9560
9561         test-getgroups: avoid compilation failure
9562         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
9563
9564 2009-11-13  Eric Blake  <ebb9@byu.net>
9565
9566         mgetgroups: new module, taken from coreutils
9567         * modules/mgetgroups: New file.
9568         * lib/mgetgroups.h: Likewise.
9569         * lib/mgetgroups.c (mgetgroups): Likewise.
9570         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
9571         * MODULES.html.sh (Users and groups): Mention it.
9572
9573         getgroups: don't expose GETGROUPS_T to user
9574         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
9575         an element at a time if GETGROUPS_T is wrong size.
9576         * lib/getugroups.h (getugroups): Change signature.
9577         * lib/unistd.in.h (getgroups): Likewise.
9578         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
9579         signature needs fixing.
9580         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
9581         AC_TYPE_GETGROUPS.
9582         * modules/group-member (Depends-on): Add getgroups.
9583         * lib/group-member.c (group_info, get_group_info): Use gid_t.
9584         (group_member): Rely on getgroups replacement.
9585         * lib/getugroups.c (getugroups): Use gid_t.
9586         * tests/test-getgroups.c (main): Likewise.
9587         * NEWS: Mention the signature change.
9588         * doc/posix-functions/getgroups.texi (getgroups): Mention the
9589         problem with signature.
9590         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
9591         GETGROUPS_T is still useful for setgroups.
9592
9593         getgroups, getugroups: provide stubs for mingw
9594         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
9595         * lib/getugroups.c (getugroups): Likewise.
9596         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
9597         function.  Modernize replacement scheme.
9598         (gl_PREREQ_GETGROUPS): Delete.
9599         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
9600         * modules/getgroups (configure.ac): Declare witness.
9601         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
9602         * modules/unistd (Depends-on): Substitute witness.
9603         * lib/unistd.in.h (getgroups): Declare replacement.
9604
9605         getgroups: avoid calling exit
9606         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
9607         drop xalloc.
9608         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
9609         dependencies.
9610         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
9611         exiting, in the rare case of malloc failure.
9612
9613         getgroups: fix logic error
9614         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
9615         has more than 20 groups.
9616         * modules/getgroups-tests: New test.
9617         * tests/test-getgroups.c: New file.
9618
9619 2009-11-13  Simon Josefsson  <simon@josefsson.org>
9620
9621         * tests/test-base64.c: Improve.
9622
9623 2009-11-13  Simon Josefsson  <simon@josefsson.org>
9624
9625         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
9626         Blake <ebb9@byu.net>.
9627
9628 2009-11-13  Simon Josefsson  <simon@josefsson.org>
9629
9630         * tests/test-xvasprintf.c: Add %s%s related checks.
9631
9632 2009-11-12  Eric Blake  <ebb9@byu.net>
9633
9634         version-etc: match standards.texi style
9635         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
9636         and use <> only for URLs.
9637
9638 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
9639
9640         fts: do not fail on a submount during traversal
9641         * lib/fts.c (fts_build): Read the stat info again after opening
9642         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
9643         Original report at http://bugzilla.redhat.com/501848.
9644
9645 2009-11-12  Jim Meyering  <meyering@redhat.com>
9646
9647         bootstrap: sync from coreutils
9648         * build-aux/bootstrap (bootstrap_epilogue): New function.
9649         Use git_modules_config in one more place.  This make bootstrap's
9650         --gnulib-srcdir option more useful for testing.
9651
9652         bootstrap: generalize autoheader check
9653         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
9654         AC_CONFIG_HEADERS.
9655
9656 2009-11-11  Eric Blake  <ebb9@byu.net>
9657
9658         mkfifoat: use new modules for Solaris and BSD bugs
9659         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
9660         * lib/mkfifoat.c (mknodat): Split...
9661         * lib/mknodat.c (mknodat): ...into new file.
9662         * modules/mkfifoat (Files): Ship new file.
9663         (Depends-on): Add mkfifo, mknod.
9664         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
9665         (Depends-on): Add symlink.
9666         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
9667         redundant with test_mkfifo.h.
9668         (do_mkfifoat, do_mknodat): New helpers.
9669
9670         mknod: new module
9671         * modules/mknod: New file.
9672         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
9673         * lib/mknod.c (mknod): Likewise.
9674         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
9675         defaults.
9676         * modules/sys_stat (Makefile.am): Substitute them.
9677         * lib/sys_stat.in.h (mknod): Declare replacement.
9678         * MODULES.html.sh (Support for systems lacking POSIX:2008):
9679         Document it.
9680         * doc/posix-functions/mknod.texi (mknod): Likewise.
9681         * modules/mknod-tests: New test.
9682         * tests/test-mknod.c: Likewise.
9683
9684         mkfifo: new module
9685         * modules/mkfifo: New file.
9686         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
9687         * lib/mkfifo.c (mkfifo): Likewise.
9688         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
9689         defaults.
9690         * modules/sys_stat (Makefile.am): Substitute them.
9691         * lib/sys_stat.in.h (mkfifo): Declare replacement.
9692         * MODULES.html.sh (Support for systems lacking POSIX:2008):
9693         Document it.
9694         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
9695         * modules/mkfifo-tests: New test.
9696         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
9697         from test-mkfifoat.c.
9698         * tests/test-mkfifo.c: New file.
9699
9700         readlink: detect FreeBSD bug
9701         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
9702         slash on symlink.
9703         * doc/posix-functions/readlink.texi (readlink): Document the bug.
9704         * tests/test-readlink.h (test_readlink): Enhance test.
9705
9706         symlink: detect FreeBSD bug
9707         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
9708         slash on symlink.
9709         * doc/posix-functions/symlink.texi (symlink): Document the bug.
9710         * tests/test-symlink.h (test_symlink): Enhance test.
9711
9712 2009-11-10  Eric Blake  <ebb9@byu.net>
9713
9714         link: detect FreeBSD bug
9715         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
9716         symlink.
9717         * doc/posix-functions/link.texi (link): Document the bug.
9718         * tests/test-link.h (test_link): Enhance test.
9719         * tests/test-linkat.c (main): Update caller.
9720
9721         unlink, remove: detect FreeBSD bug
9722         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
9723         slash on symlink.
9724         * doc/posix-functions/unlink.texi (unlink): Document the bug.
9725         * doc/posix-functions/remove.texi (remove): Likewise.
9726         * tests/test-unlink.h (test_unlink): Enhance test.
9727         * tests/test-remove.c (main): Likewise.
9728
9729 2009-11-09  Eric Blake  <ebb9@byu.net>
9730
9731         rename: detect FreeBSD bug
9732         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
9733         slash on symlink.
9734         * modules/renameat-tests (Depends-on): Add filenamecat.
9735         * tests/test-rename.h (test_rename): Allow one more errno.
9736         * tests/test-renameat.c (main): Likewise.
9737         * doc/posix-functions/rename.texi (rename): Document the bug.
9738
9739         open: detect FreeBSD bug
9740         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
9741         symlink.
9742         * doc/posix-functions/open.texi (open): Document the bug.
9743         * doc/posix-functions/utimes.texi (utimes): Likewise.
9744         * tests/test-open.h (test_open): Add parameters, and test symlink
9745         handling.
9746         * tests/test-open.c (main): Adjust caller.
9747         * tests/test-fcntl-safer.c (main): Likewise.
9748         * modules/open-tests (Depends-on): Add stdbool, symlink.
9749         * modules/fcntl-safer-tests (Depends-on): Likewise.
9750         * tests/test-openat.c (main): Add test-open tests.
9751
9752         stat: detect FreeBSD bug
9753         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
9754         symlink.
9755         * doc/posix-functions/stat.texi (stat): Document the bug.
9756         * tests/test-stat.h (test_stat_func): Add argument.
9757         * tests/test-stat.c (main): Adjust caller.
9758         * tests/test-fstatat.c (main): Likewise.
9759         * modules/stat-tests (Depends-on): Add stdbool, symlink.
9760         Reported by Jim Meyering.
9761
9762 2009-11-09  James Youngman  <jay@gnu.org>
9763
9764         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
9765         * lib/strftime.c: Correct placement of #include "ignore-value.h".
9766
9767 2009-11-08  Jim Meyering  <meyering@redhat.com>
9768
9769         utimens: remove invalid futimesat call
9770         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
9771         It used the file descriptor of the target file as the DIR_FD
9772         parameter and NULL as the file name.  That caused failure with
9773         errno == EFAULT on FreeBSD-8.0-rc2
9774
9775 2009-11-07  Eric Blake  <ebb9@byu.net>
9776
9777         fflush, freadseek: use fseeko, not fseek
9778         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
9779         (clear_ungetc_buffer): Avoid potential problems on large files.
9780         * lib/freadseek.c (freadseek): Likewise.
9781         * modules/freadseek (Depends-on): Add fseeko.
9782         * modules/fseek (configure.ac): Set a witness.
9783         * tests/test-fflush.c (main): Use fseeko.
9784         * tests/test-fpurge.c (fseek): Disable link warning.
9785         * tests/test-freadable.c (fseek): Likewise.
9786         * tests/test-freading.c (fseek): Likewise.
9787         * tests/test-fseeko.c (fseek): Likewise.
9788         * tests/test-ftell.c (fseek): Likewise.
9789         * tests/test-ftello.c (fseek): Likewise.
9790         * tests/test-fwritable.c (fseek): Likewise.
9791         * tests/test-fwriting.c (fseek): Likewise.
9792
9793 2009-11-06  Simon Josefsson  <simon@josefsson.org>
9794
9795         * modules/memchr (Depends-on): Drop getpagesize dependency.
9796
9797 2009-11-06  Simon Josefsson  <simon@josefsson.org>
9798
9799         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
9800         Reported by Ludovic Courtès.
9801         * build-aux/pmccabe2html: Improve example usage.
9802         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
9803
9804 2009-11-06  Jim Meyering  <meyering@redhat.com>
9805
9806         do-release-commit-and-tag: New module.
9807         Automate the release-commit and tag process.
9808         * build-aux/do-release-commit-and-tag: New script, from coreutils.
9809         * modules/do-release-commit-and-tag: New file.
9810         * MODULES.html.sh (Support for maintaining and releasing): Add it.
9811
9812 2009-11-06  Simon Josefsson  <simon@josefsson.org>
9813
9814         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
9815         because test-select.c uses inet_pton.
9816
9817 2009-11-06  Simon Josefsson  <simon@josefsson.org>
9818
9819         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
9820         GETADDRINFO_LIB.  Bump serial number.
9821         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
9822         Suggested by Eric Blake <ebb9@byu.net>.
9823
9824 2009-11-05  Eric Blake  <ebb9@byu.net>
9825
9826         strtod: detect darwin bug
9827         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
9828         Reported by Leo Davis.
9829
9830         freopen-safer: new module
9831         * modules/freopen-safer: New module.
9832         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
9833         * lib/freopen-safer.c (freopen_safer): New file.
9834         * lib/stdio-safer.h (freopen_safer): New declaration.
9835         * lib/stdio--.h (freopen): New override.
9836         * MODULES.html.sh (File stream based Input/Output): Mention it.
9837         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
9838         freopen-safer module.
9839         * doc/posix-functions/stderr.texi (stderr): Likewise.
9840         * doc/posix-functions/stdin.texi (stdin): Likewise.
9841         * doc/posix-functions/stdout.texi (stdout): Likewise.
9842         * modules/freopen-safer-tests: New test.
9843         * tests/test-reopen-safer.c: New file.
9844
9845 2009-11-05  Jim Meyering  <meyering@redhat.com>
9846
9847         maint.mk: Prohibit inclusion of "close-stream.h" without use.
9848         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
9849
9850 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9851
9852         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
9853
9854 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9855
9856         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
9857
9858 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9859
9860         Fix link error.
9861         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
9862         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
9863
9864 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9865
9866         * tests/test-func.c: Also test value of __func__.
9867
9868 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9869
9870         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
9871         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
9872
9873 2009-11-05  Bruno Haible  <bruno@clisp.org>
9874
9875         Fix link error.
9876         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
9877         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
9878         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
9879
9880 2009-11-05  Bruno Haible  <bruno@clisp.org>
9881
9882         Tests for module 'inet_pton'.
9883         * modules/inet_pton-tests: New file.
9884         * tests/test-inet_pton.c: New file.
9885
9886 2009-11-05  Bruno Haible  <bruno@clisp.org>
9887
9888         Tests for module 'inet_ntop'.
9889         * modules/inet_ntop-tests: New file.
9890         * tests/test-inet_ntop.c: New file.
9891
9892 2009-11-04  Eric Blake  <ebb9@byu.net>
9893
9894         stdlib-safer: wrap all mkstemp variants
9895         * modules/mkostemp (configure.ac): Set witness.
9896         * modules/mkostemps (configure.ac): Likewise.
9897         * modules/mkstemps (configure.ac): Likewise.
9898         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
9899         (mkstemps_safer): Wrap more functions.
9900         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
9901         wrapping.
9902         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
9903         (mkstemps_safer): Implement the wrappers.
9904
9905         mkstemps, mkostemps: new modules
9906         * modules/mkostemps: New module.
9907         * modules/mkstemps: Likewise.
9908         * lib/mkostemps.c (mkostemps): New file.
9909         * lib/mkstemps.c (mkstemps): Likewise.
9910         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
9911         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
9912         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
9913         * modules/stdlib (Makefile.am): Substitute them.
9914         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
9915         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
9916         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
9917         * doc/gnulib.texi (Glibc stdlib.h): Include them.
9918         * MODULES.html.sh (File system functions): Mention them.
9919
9920         tempname: resync from glibc
9921         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
9922         same values for __GT_FILE as glibc.  Abort even when assertions
9923         are disabled.
9924         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
9925         match its value otherwise.  Allow idempotent inclusion.
9926         * lib/mkdtemp.c (mkdtemp): Adjust caller.
9927         * lib/mkostemp.c (mkostemp): Likewise.
9928         * lib/mkstemp.c (mkstemp): Likewise.
9929         * lib/tmpfile.c (tmpfile): Likewise.
9930         * NEWS: Document this.
9931
9932         utimens: fix use of futimens on older Linux
9933         * lib/utimens.c (fdutimens): Use updated, rather than original,
9934         timespec to avoid bug in older Linux kernel.
9935         Reported by Simon Josefsson.
9936
9937 2009-11-04  Bruno Haible  <bruno@clisp.org>
9938
9939         Make num_processors more flexible and consistent.
9940         * lib/nproc.h (enum nproc_query): New type.
9941         (num_processors): Add a 'query' argument.
9942         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
9943         (num_processors): Add a 'query' argument. Test the value of the
9944         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
9945         mingw, count the number of CPUs available for the current process.
9946         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
9947         Check for sched_getaffinity and sched_getaffinity_np.
9948         * modules/nproc (Depends-on): Add c-ctype, extensions.
9949         * NEWS: Mention the change.
9950
9951 2009-11-03  Bruno Haible  <bruno@clisp.org>
9952
9953         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
9954
9955 2009-11-03  Jim Meyering  <meyering@redhat.com>
9956
9957         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
9958         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
9959         if it is defined.
9960
9961 2009-11-02  Eric Blake  <ebb9@byu.net>
9962
9963         mktime, timegm: share common declaration
9964         * lib/mktime-internal.h: New file.
9965         * lib/mktime.c: Use it rather than open-coding a declaration.
9966         * lib/timegm.c: Likewise.
9967         * modules/mktime (Files): Ship it.
9968         * modules/timegm (Files): Likewise.
9969         Suggested by Bruno Haible.
9970
9971         test-update-copyright: update test to match script changes
9972         * tests/test-update-copyright.sh: Avoid hard-coding perl
9973         location.  Don't update *.bak created by earlier runs.
9974
9975 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
9976             Simon Josefsson  <simon@josefsson.org>
9977             Bruno Haible  <bruno@clisp.org>
9978
9979         Fix link error on Solaris 8.
9980         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
9981         also in libnsl. Define also INET_PTON_LIB.
9982         * modules/inet_pton (Link): New section.
9983
9984 2009-11-02  Simon Josefsson  <simon@josefsson.org>
9985             Bruno Haible  <bruno@clisp.org>
9986
9987         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
9988         * modules/inet_ntop (Link): New section.
9989         Reported by Boyan Kasarov <bkasarov@gmail.com>.
9990
9991 2009-11-02  Eric Blake  <ebb9@byu.net>
9992
9993         maint: avoid compiler warnings in m4 macros
9994         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
9995         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
9996
9997 2009-11-02  Simon Josefsson  <simon@josefsson.org>
9998
9999         * m4/pmccabe2html.m4: Remove file.
10000         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
10001         function.  Change maintainer.
10002         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
10003         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
10004         Courtès).
10005
10006 2009-10-31  Eric Blake  <ebb9@byu.net>
10007
10008         fseeko: fix m4 regression
10009         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
10010         regression from 2009-10-27.
10011         Reported by Ralf Wildenhues.
10012
10013 2009-10-31  Jim Meyering  <meyering@redhat.com>
10014
10015         inttostr: aesthetics and improved (compile-time) safety
10016         Define inttype_is_signed rather than inttype_is_unsigned,
10017         since the sole use is via "#if inttype_is_signed".
10018         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
10019         inttype_is_unsigned.
10020         * lib/offtostr.c (inttype_is_signed): Likewise.
10021         * lib/uinttostr.c (inttype_is_signed): Likewise.
10022         * lib/umaxtostr.c (inttype_is_signed): Likewise.
10023         * lib/inttostr.c (inttostr): Use verify to cross-check the
10024         inttype_is_signed value and the signedness of the actual type.
10025         * modules/inttostr (Depends-on): Add verify.
10026
10027 2009-10-30  Eric Blake  <ebb9@byu.net>
10028
10029         build: avoid compiler warnings
10030         * lib/fchmodat.c (lchmod): Mark unused variables.
10031         * lib/getopt.c (_getopt_initialize): Likewise.
10032         * lib/mktime.c (__mktime_internal): Provide prototype.
10033         * lib/inttostr.c (inttostr): Avoid compiler warning even with
10034         older gcc that do not understand #pragma GCC diagnostic.
10035         * lib/uinttostr.c (inttype_is_unsigned): Define.
10036         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
10037
10038 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
10039
10040         stat: fix compilation on AIX
10041         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
10042         only see struct stat64.
10043
10044 2009-10-30  Eric Blake  <ebb9@byu.net>
10045
10046         exclude: make more robust
10047         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
10048         rather than masking a coding bug.
10049         Suggested by Bruno Haible.
10050
10051 2009-10-30  Jim Meyering  <meyering@redhat.com>
10052
10053         perl scripts: remove #!/usr/bin/perl in favor of more portable...
10054         Rather than putting #!/usr/bin/perl on the first line,
10055         start with a variant of what's recommended by "man perlrun" that
10056         invokes the first "perl" program from your shell's search path.
10057         * build-aux/gitlog-to-changelog: Replace #!... as above.
10058         Add a "Local Variables" perl mode setting.
10059         Prompted by a patch from Ludovic Courtès.
10060         Improved by Eric Blake.
10061         * build-aux/useless-if-before-free: Likewise.
10062         * build-aux/announce-gen: Likewise.
10063         * build-aux/update-copyright: Likewise.
10064
10065 2009-10-29  Eric Blake  <ebb9@byu.net>
10066
10067         filenamecat-lgpl: adjust clients
10068         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
10069         filenamecat.
10070         * modules/renameat (Depends-on): Likewise.
10071
10072         filenamecat: split into filenamecat-lgpl
10073         * modules/filenamecat-lgpl: New module.
10074         * modules/filenamecat (Files): Move library-safe files into
10075         filenamecat-lgpl.
10076         (Depends-on): Add filenamecat-lgpl.
10077         (configure.ac): Declare witness.
10078         * lib/filenamecat.h (file_name_concat): Only declare when using
10079         GPL module.
10080         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
10081         Move...
10082         * lib/filenamecat-lgpl.c: ...into new file.
10083         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
10084         (gl_FILE_NAME_CONCAT): Use it.
10085         * MODULES.html.sh (File system functions): Mention new module.
10086
10087         argp: avoid memory leak
10088         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
10089         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
10090         base_name, since the latter malloc()s and can call exit().
10091         Leak introduced 2006-07-03.
10092
10093         dirname-lgpl: adjust clients that don't need full dirname
10094         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
10095         * modules/filenamecat (Depends-on): Likewise.
10096         * modules/linkat (Depends-on): Likewise.
10097         * modules/mkancesdirs (Depends-on): Likewise.
10098         * modules/mkdir (Depends-on): Likewise.
10099         * modules/openat (Depends-on): Likewise.
10100         * modules/savewd (Depends-on): Likewise.
10101         * modules/rename (Depends-on): Likewise.
10102         (License): Relax license.
10103         * modules/mkdir-tests (Depends-on): Drop progname.
10104         (Makefile.am): Delete unneeded LDADD.
10105         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
10106
10107         dirname: split into dirname-lgpl
10108         * modules/dirname-lgpl: New module.
10109         * modules/dirname (Files): Move library-safe files into
10110         dirname-lgpl.
10111         (Depends-on): Add dirname-lgpl.
10112         (configure.ac): Declare witness.
10113         * modules/double-slash-root (License): Relax license.
10114         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
10115         module.
10116         * lib/dirname.c (dir_len, mdir_name): Move...
10117         * lib/dirname-lgpl.c: ...into new file.
10118         * lib/basename.c (last_component, base_len): Move...
10119         * lib/basename-lgpl.c: ...into new file.
10120         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
10121         (gl_DIRNAME): Use it.
10122         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
10123         Mention new module.
10124         * modules/dirname-tests (Depends-on): Add progname.
10125         * tests/test-dirname.c (program_name): Delete.
10126
10127         mkdir: make safe for libraries
10128         * modules/mkdir (Depends-on): Drop xalloc.
10129         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
10130         exit.
10131
10132         tests: avoid some compiler warnings
10133         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
10134         literals.
10135         * tests/test-memchr.c (main): Avoid type mismatch.
10136         * tests/test-arpa_inet.c (main): Avoid unused parameters.
10137         * tests/test-base64.c (main): Likewise.
10138         * tests/test-getdelim.c (main): Likewise.
10139         * tests/test-gethostname.c (main): Likewise.
10140         * tests/test-getline.c (main): Likewise.
10141         * tests/test-netinet_in.c (main): Likewise.
10142         * tests/test-select.c (open_server_socket, main): Likewise.
10143         * tests/test-select-stdin.c (main): Likewise.
10144         * tests/test-sockets.c (main): Likewise.
10145         * tests/test-strsignal.c (main): Likewise.
10146         * tests/test-sys_select.c (main): Likewise.
10147         * tests/test-sys_socket.c (main): Likewise.
10148         * tests/test-u64.c (main): Likewise.
10149         * tests/test-xfprintf-posix.c (main): Likewise.
10150         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
10151
10152         sockets: avoid compiler warning
10153         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
10154
10155         maint: detect usage(1) and other suspicious exits
10156         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
10157
10158 2009-10-29  Jim Meyering  <meyering@redhat.com>
10159
10160         timespec: long-to-int truncation could make timespec_cmp malfunction
10161         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
10162         a multiple of 2^32 nanoseconds as no difference.
10163
10164 2009-10-28  Jim Meyering  <meyering@redhat.com>
10165
10166         fprintftime: wrap macro code argument in "do {...} while(0)"
10167         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
10168         cpy macro must be a statement that can be followed by a semicolon.
10169         Now that the else clause contains a comment and is hence longer
10170         than one line, I require curly braces.  That in turn requires
10171         that we wrap this code block in the standard do...while(0).
10172
10173         fprintftime: remove stray semicolon from previous change
10174         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
10175
10176         fprintftime: avoid a warning about ignored fwrite return value
10177         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
10178         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
10179         that is unsafe.
10180         * modules/fprintftime (Depends-on): Add ignore-value.
10181
10182         exclude: avoid an unwarranted warning
10183         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
10184
10185 2009-10-27  Eric Blake  <ebb9@byu.net>
10186
10187         fseek: avoid compilation failure when fflush is replaced
10188         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
10189         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
10190         module is in use.
10191         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
10192         module is not in use; since REPLACE_FSEEK worked otherwise.
10193         (GNULIB_FTELLO): Likewise for ftell.
10194         Reported by Ian Beckwith and others.
10195
10196 2009-10-27  Bruno Haible  <bruno@clisp.org>
10197
10198         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
10199         Reported by Jim Meyering.
10200
10201 2009-10-27  Jim Meyering  <jim@meyering.net>
10202             Bruno Haible  <bruno@clisp.org>
10203
10204         Avoid warning despite dropping the return value of fwrite.
10205         * lib/unicodeio.c: Include ignore-value.h.
10206         (fwrite_success_callback): Explicitly ignore fwrite's return value.
10207         * modules/unicodeio (Depends-on): Add ignore-value.
10208
10209 2009-10-26  Eric Blake  <ebb9@byu.net>
10210
10211         areadlinkat: fix fallback path
10212         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
10213         pointer and zero.
10214
10215 2009-10-22  Pádraig Brady  <P@draigBrady.com>
10216
10217         Use a better IO block size for modern systems
10218         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
10219         * lib/md2.c: Likewise.
10220         * lib/md4.c: Likewise.
10221         * lib/md5.c: Likewise.
10222         * lib/sha1.c: Likewise.
10223         * lib/sha256.c: Likewise.
10224         * lib/sha512.c: Likewise.
10225
10226 2009-10-22  Eric Blake  <ebb9@byu.net>
10227
10228         tests: avoid several compiler warnings
10229         * tests/test-getcwd.c (main): Avoid buffer underflow.
10230         * tests/test-getdate.c (main): String literals are not safe with
10231         putenv, so use setenv.  Declare unused argument.
10232         * modules/getdate-tests (Depends-on): Add setenv.
10233         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
10234         problems with string literals in char *.
10235         * tests/test-hash.c (main): Avoid shadowing declaration.
10236         (insert_new): Treat string literals as char const *.
10237         * tests/test-getopt.h (test_getopt): Likewise.
10238         (getopt_loop): Alter types to minimize casting elsewhere.
10239         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
10240         (test_getopt_long_posix): Likewise.
10241         (do_getopt_long): Add wrapper to minimize casting.
10242         * tests/test-atexit.c (clear_temp_file): Use void.
10243         * tests/test-areadlink-with-size.c (main): Declare unused
10244         arguments.
10245         * tests/test-areadlink.c (main): Likewise.
10246         * tests/test-areadlinkat-with-size.c (main): Likewise.
10247         * tests/test-areadlinkat.c (main): Likewise.
10248         * tests/test-canonicalize-lgpl.c (main): Likewise.
10249         * tests/test-canonicalize.c (main): Likewise.
10250         * tests/test-dirent-safer.c (main): Likewise.
10251         * tests/test-dirname.c (main): Likewise.
10252         * tests/test-dup2.c (main): Likewise.
10253         * tests/test-fchdir.c (main): Likewise.
10254         * tests/test-fcntl-h.c (main): Likewise.
10255         * tests/test-fcntl-safer.c (main): Likewise.
10256         * tests/test-fdopendir.c (main): Likewise.
10257         * tests/test-fdutimensat.c (main): Likewise.
10258         * tests/test-fflush.c (main): Likewise.
10259         * tests/test-filenamecat.c (main): Likewise.
10260         * tests/test-filevercmp.c (main): Likewise.
10261         * tests/test-fopen-safer.c (main): Likewise.
10262         * tests/test-fopen.c (main): Likewise.
10263         * tests/test-fpending.c (main): Likewise.
10264         * tests/test-fpurge.c (main): Likewise.
10265         * tests/test-freading.c (main): Likewise.
10266         * tests/test-fstatat.c (main): Likewise.
10267         * tests/test-fsync.c (main): Likewise.
10268         * tests/test-futimens.c (main): Likewise.
10269         * tests/test-getndelim2.c (main): Likewise.
10270         * tests/test-gettimeofday.c (main): Likewise.
10271         * tests/test-getopt.c (main): Likewise.
10272         * tests/test-i-ring.c (main): Likewise.
10273         * tests/test-inttypes.c (main): Likewise.
10274         * tests/test-link.c (main): Likewise.
10275         * tests/test-lstat.c (main): Likewise.
10276         * tests/test-math.c (main): Likewise.
10277         * tests/test-md5.c (main): Likewise.
10278         * tests/test-memchr2.c (main): Likewise.
10279         * tests/test-memrchr.c (main): Likewise.
10280         * tests/test-mkdir.c (main): Likewise.
10281         * tests/test-mkdirat.c (main): Likewise.
10282         * tests/test-mkfifoat.c (main): Likewise.
10283         * tests/test-open.c (main): Likewise.
10284         * tests/test-openat-safer.c (main): Likewise.
10285         * tests/test-openat.c (main): Likewise.
10286         * tests/test-quotearg.c (main): Likewise.
10287         * tests/test-rawmemchr.c (main): Likewise.
10288         * tests/test-readlink.c (main): Likewise.
10289         * tests/test-remove.c (main): Likewise.
10290         * tests/test-rename.c (main): Likewise.
10291         * tests/test-renameat.c (main): Likewise.
10292         * tests/test-rmdir.c (main): Likewise.
10293         * tests/test-sha1.c (main): Likewise.
10294         * tests/test-signal.c (main): Likewise.
10295         * tests/test-sigaction.c (main): Likewise.
10296         * tests/test-stat.c (main): Likewise.
10297         * tests/test-stat-time.c (main): Likewise.
10298         * tests/test-stddef.c (main): Likewise.
10299         * tests/test-stdint.c (main): Likewise.
10300         * tests/test-stdio.c (main): Likewise.
10301         * tests/test-stdlib.c (main): Likewise.
10302         * tests/test-strchrnul.c (main): Likewise.
10303         * tests/test-strerror.c (main): Likewise.
10304         * tests/test-string.c (main): Likewise.
10305         * tests/test-strtod.c (main): Likewise.
10306         * tests/test-strverscmp.c (main): Likewise.
10307         * tests/test-symlink.c (main): Likewise.
10308         * tests/test-symlinkat.c (main): Likewise.
10309         * tests/test-sys_stat.c (main): Likewise.
10310         * tests/test-sys_time.c (main): Likewise.
10311         * tests/test-time.c (main): Likewise.
10312         * tests/test-unistd.c (main): Likewise.
10313         * tests/test-unlink.c (main): Likewise.
10314         * tests/test-unlinkat.c (main): Likewise.
10315         * tests/test-utimens.c (main): Likewise.
10316         * tests/test-utimensat.c (main): Likewise.
10317         * tests/test-version-etc.c (main): Likewise.
10318         * tests/test-wchar.c (main): Likewise.
10319         * tests/test-wctype.c (main): Likewise.
10320         * tests/test-xprintf-posix.c (main): Likewise.
10321         * tests/test-posixtm.c (main): Likewise.
10322         (STREQ): Delete unused macro.
10323         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
10324         shadowed variables.
10325         * tests/test-memchr.c (main): Likewise.
10326
10327 2009-10-21  Eric Blake  <ebb9@byu.net>
10328
10329         areadlinkat: avoid failure on older glibc
10330         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
10331         rather than mis-comparing 0 against FUNC_RESULT of char*.
10332
10333 2009-10-21  Bruno Haible  <bruno@clisp.org>
10334
10335         * modules/stpncpy (License): Relicense under LGPLv2+.
10336         Reported by David Lutterkort <lutter@redhat.com>.
10337
10338 2009-10-20  Eric Blake  <ebb9@byu.net>
10339
10340         utimensat: work around Solaris 9 bug
10341         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
10342         has trailing slash bugs.
10343         * tests/test-lutimens.h (test_lutimens): Enhance test.
10344         * tests/test-utimens.h (test_utimens): Likewise.
10345         * doc/posix-functions/utime.texi (utime): Enhance documentation.
10346         * doc/posix-functions/utimes.texi (utimes): Likewise.
10347         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
10348         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
10349         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
10350         * doc/posix-functions/futimens.texi (futimens): Likewise.
10351
10352         fdutimensat: new module
10353         * modules/fdutimensat: New file.
10354         * lib/fdutimensat.c (fdutimensat): Likewise.
10355         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
10356         * MODULES.html.sh (File system functions): Mention module.
10357         * modules/fdutimensat-tests: New test.
10358         * tests/test-fdutimensat.c: Likewise.
10359
10360         doc: regenerate INSTALL
10361         * doc/INSTALL: Reflect recent autoconf update.
10362         * doc/INSTALL.ISO: Likewise.
10363         * doc/INSTALL.UTF-8: Likewise.
10364
10365 2009-10-20  Pádraig Brady  <P@draigBrady.com>
10366
10367         acl: warn if ACL support is not detected
10368         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
10369
10370 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
10371
10372         * lib/nproc.h: Add extern "C" block for C++.
10373
10374 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
10375             Bruno Haible  <bruno@clisp.org>
10376
10377         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
10378         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
10379         * doc/posix-functions/isalpha.texi: Likewise.
10380         * doc/posix-functions/isblank.texi: Likewise.
10381         * doc/posix-functions/iscntrl.texi: Likewise.
10382         * doc/posix-functions/isdigit.texi: Likewise.
10383         * doc/posix-functions/isgraph.texi: Likewise.
10384         * doc/posix-functions/islower.texi: Likewise.
10385         * doc/posix-functions/isprint.texi: Likewise.
10386         * doc/posix-functions/ispunct.texi: Likewise.
10387         * doc/posix-functions/isspace.texi: Likewise.
10388         * doc/posix-functions/isupper.texi: Likewise.
10389         * doc/posix-functions/isxdigit.texi: Likewise.
10390
10391 2009-10-18  Bruno Haible  <bruno@clisp.org>
10392
10393         Tests for module 'isblank'.
10394         * modules/isblank-tests: New file.
10395         * tests/test-isblank.c: New file.
10396
10397         New module 'isblank'.
10398         * lib/isblank.c: New file.
10399         * m4/isblank.m4: New file.
10400         * modules/isblank: New file.
10401         * doc/posix-functions/isblank.texi: Mention the new module.
10402
10403 2009-10-18  Bruno Haible  <bruno@clisp.org>
10404
10405         New module 'ctype'.
10406         * lib/ctype.in.h: New file.
10407         * m4/ctype.m4: New file.
10408         * modules/ctype: New file.
10409         * doc/posix-headers/ctype.texi: Mention the new module.
10410
10411 2009-10-18  Jim Meyering  <meyering@redhat.com>
10412
10413         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
10414         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
10415         right after its initialization, rather than farther down.
10416         Keeping these in close proximity makes it easier to ensure
10417         that each such variable is initialized.  E.g.,
10418
10419             LIB_CLOCK_GETTIME=
10420             AC_SUBST([LIB_CLOCK_GETTIME])
10421
10422         This change also increments these serial numbers.
10423         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
10424         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
10425         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
10426
10427 2009-10-18  Bruno Haible  <bruno@clisp.org>
10428
10429         Don't let environment variables perturb build.
10430         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
10431         (gl_PREREQ_GETHRXTIME): ... not here.
10432
10433 2009-10-18  Bruno Haible  <bruno@clisp.org>
10434
10435         Avoid symlink attack in localcharset module.
10436         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
10437         (O_NOFOLLOW): Define fallback.
10438         (get_charset_aliases): Don't open the file if it is a symbolic link.
10439         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
10440         gl_FCNTL_H.
10441         (gl_FCNTL_H): Require it.
10442         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
10443         * modules/localcharset (Files): Add m4/fcntl_h.m4.
10444         Reported by Fergal Glynn <fglynn@veracode.com>.
10445
10446 2009-10-18  Bruno Haible  <bruno@clisp.org>
10447
10448         Implement nproc for mingw.
10449         * lib/nproc.c: Include <windows.h>
10450         (num_processors): On native Windows platforms, try GetSystemInfo.
10451
10452 2009-10-18  Bruno Haible  <bruno@clisp.org>
10453
10454         Implement nproc for IRIX.
10455         * lib/nproc.c: Include <sys/sysmp.h>.
10456         (num_processors): On IRIX systems, try sysmp.
10457         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
10458
10459 2009-10-18  Bruno Haible  <bruno@clisp.org>
10460
10461         Implement nproc for HP-UX.
10462         * lib/nproc.c: Include <sys/pstat.h>
10463         (num_processors): On HP-UX systems, try pstat_getdynamic.
10464         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
10465         pstat_getdynamic.
10466
10467 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
10468             Bruno Haible  <bruno@clisp.org>
10469
10470         Implement nproc for NetBSD, OpenBSD.
10471         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
10472         (ARRAY_SIZE): New macro.
10473         (num_processors): On BSD systems, try sysctl of HW_NCPU.
10474         * m4/nproc.m4: New file.
10475         * modules/nproc (Files): Add m4/nproc.m4.
10476         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
10477         (Makefile.am): Instead, augment lib_SOURCES.
10478
10479 2009-10-18  Bruno Haible  <bruno@clisp.org>
10480
10481         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
10482         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
10483         sys/param.h.
10484
10485 2009-10-16  Eric Blake  <ebb9@byu.net>
10486
10487         utimensat: new module
10488         * modules/utimensat: New file.
10489         * lib/utimensat.c (utimensat): Likewise.
10490         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
10491         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
10492         so we can work around Linux bugs.
10493         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10494         * modules/sys_stat (Makefile.am): Substitute them.
10495         * lib/sys_stat.in.h (utimensat): Declare it.
10496         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10497         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
10498         * modules/utimensat-tests: New test.
10499         * tests/test-utimensat.c: Likewise.
10500
10501         utimens: let lutimens work on non-symlinks
10502         * lib/utimens.c (lutimens): Fall back to utimens rather than
10503         failing with ENOSYS, when file is not a symlink.
10504         (utimens): Reduce redirection.
10505         * tests/test-lutimens.h (test_lutimens): Update test to cover
10506         non-symlinks.
10507         * tests/test-utimens.h (test_utimens): Update test to cover
10508         symlinks.
10509         * tests/test-utimens.c (main): Update caller.
10510
10511         utimens: cache whether utimensat syscall works
10512         * lib/utimens.c (utimensat_works_really): New cache variable.
10513         (fdutimens, lutimens): Use it to avoid failing syscall.
10514
10515         test-stat-time, test-utimens: improve portability
10516         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
10517         ext4 on alpha, and for cygwin.
10518         * tests/test-utimens-common.h: New file.
10519         (nap): Factor delays into single function.
10520         * tests/test-lutimens.h (test_lutimens): Use new header.
10521         * tests/test-futimens.h (test_futimens): Likewise.
10522         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
10523         timestamps to occur from same machine, as was done previously for
10524         test_utimens.
10525         * modules/utimens-tests (Files): Ship new file.
10526         * modules/futimens-tests (Files): Likewise.
10527         Reported in part by Jim Meyering.
10528
10529         sys_stat: sort replacement declarations
10530         * lib/sys_stat.in.h: Sort declarations.
10531         * lib/futimens.c (futimens): Fix typo.
10532
10533 2009-10-15  Jim Meyering  <meyering@redhat.com>
10534
10535         don't let environment settings perturb build
10536         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
10537         could cause a configure-time and/or build-time malfunction.
10538         Typically, a configure-time function-in-library test is performed
10539         via code like this:
10540
10541           LIB_VAR=
10542           AC_SUBST([LIB_VAR])
10543           prefix_saved_LIBS=$LIBS
10544             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
10545                        [test "$ac_cv_search_FUNC" = "none required" ||
10546                         LIB_VAR=$ac_cv_search_FUNC])
10547           LIBS=$prefix_saved_LIBS
10548
10549         However, in each of the files affected by this change, the LIB_VAR=
10550         initialization was omitted.  Thus, when set in the environment, its
10551         value would propagate into generated Makefiles when FUNC is not found
10552         in LIB_NAME.
10553         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
10554         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
10555         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
10556
10557 2009-10-14  Eric Blake  <ebb9@byu.net>
10558
10559         fchdir: avoid infinite recursion in mingw
10560         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
10561         recursing.
10562
10563         test-stat-time: port to mingw
10564         * tests/test-stat-time.c (force_unlink): Return a value.
10565         (test_ctime) [W32]: Fix compilation error.
10566         (nap): Don't call usleep with too large an argument.  Use
10567         force_unlink.
10568         * doc/pastposix-functions/usleep.texi (usleep): Document the
10569         portability issue.
10570
10571 2009-10-13  Jim Meyering  <meyering@redhat.com>
10572
10573         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
10574         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
10575         * modules/pipe-filter-ii: Likewise.
10576         * modules/sys_socket-tests: Likewise.
10577         * modules/tsearch-tests: Likewise.
10578         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
10579         (check): Depend on it.
10580
10581 2009-10-12  Eric Blake  <ebb9@byu.net>
10582
10583         utimens-tests: port to NFS file systems
10584         * tests/test-utimens.h (test_utimens): Refactor utimecmp
10585         comparisons to avoid spurious failures from timestamp drift
10586         between NFS machines.
10587
10588 2009-10-12  Eric Blake  <ebb9@byu.net>
10589
10590         stat-time-tests: minor cleanups
10591         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
10592         * tests/test-stat-time.c (nap): Separate assignment from call.
10593         Suggested by Paolo Bonzini and Bruno Haible.
10594
10595         sys_stat: guarantee struct timespec
10596         * lib/sys_stat.in.h (includes): Always include <time.h>
10597         * modules/sys_stat (Depends-on): Add time.
10598         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
10599         mode_t permission values.
10600         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
10601         get at subsecond timestamps.
10602
10603 2009-10-10  Eric Blake  <ebb9@byu.net>
10604
10605         futimens: new module
10606         * modules/futimens: New file.
10607         * lib/futimens.c (futimens): Likewise.
10608         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
10609         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
10610         we can work around Linux bugs.
10611         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10612         * modules/sys_stat (Makefile.am): Substitute them.
10613         * lib/sys_stat.in.h (futimens): Declare it.
10614         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10615         * doc/posix-functions/futimens.texi (futimens): Likewise.
10616         * modules/futimens-tests: New test.
10617         * tests/test-futimens.c: Likewise.
10618
10619         utimens: introduce fdutimens
10620         * lib/utimens.h (fdutimens): New prototype.
10621         * lib/utimens.c (gl_futimens): Move guts...
10622         (fdutimens): ...to new interface.
10623         * tests/test-utimens.c (do_fdutimens): Use it.
10624
10625         utimens: add UTIME_NOW and UTIME_OMIT support
10626         * lib/utimens.c (validate_timespec, update_timespec): New helper
10627         functions.
10628         (gl_futimens, lutimens): Use them.
10629         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
10630         stdbool, sys_stat.
10631         (Link): Mention resulting library dependency.
10632         * modules/utimecmp (Link): Likewise.
10633         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
10634         (Makefile.am): Pick up library dependency.
10635         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
10636         definition.
10637         * tests/test-sys_stat.c: Test the definitions.
10638         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
10639         * NEWS: Document library dependency.
10640
10641         utimecmp: support symlink timestamps
10642         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
10643         hashing when possible.  Use pathconf when available.
10644         (SYSCALL_RESOLUTION): Recognize tighter resolution.
10645         * modules/utimecmp (Depends-on): Add lstat.
10646
10647         utimens: add lutimens interface
10648         * lib/utimens.c (lutimens): New function.
10649         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
10650         * lib/utimens.h (lutimens): Declare new interface.
10651         * tests/test-utimens.c (main): Enhance test.
10652         * tests/test-lutimens.h (test_lutimens): New file.
10653         * modules/utimens-tests (Files): Distribute it.
10654         (Depends-on): Add symlink.
10655         (configure.ac): Check for usleep.
10656
10657         utimens: validate futimens usage
10658         * lib/utimens.c (gl_futimens): Require valid fd up front, using
10659         fewer syscalls on failure later on.  Avoid compiler warning on
10660         mingw.
10661         * modules/utimens (Depends-on): Add dup2.
10662
10663         utimens: add test
10664         * modules/utimens-tests: New test.
10665         * tests/test-utimens.h: New file.
10666         * tests/test-futimens.h: Likewise.
10667         * tests/test-utimens.c: Likewise.
10668
10669         doc: mention timestamp portability issues
10670         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
10671         instead.
10672         * doc/posix-functions/utime.texi (utime): Likewise.
10673         * doc/posix-functions/utimes.texi (utimes): Likewise.
10674         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
10675         instead.
10676         * doc/posix-functions/futimens.texi (futimens): Mention utimens
10677         module.
10678         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
10679         Mention weakness with symlink timestamps.
10680         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
10681         to utimensat/futimens instead.
10682         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
10683
10684         test-dup2: enhance test
10685         * tests/test-dup2.c (main): Also check AT_FDCWD.
10686
10687         test-stat-time: avoid more spurious failures
10688         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
10689         xfs; and avoid race if the two timestamps cross quantization edge.
10690
10691         relocatable: prefer 'file system' over 'filesystem'
10692         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
10693         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
10694         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
10695         * doc/relocatable.texi (Enabling Relocatability): Likewise.
10696         * lib/relocatable.c (compute_curr_prefix): Likewise.
10697
10698 2009-10-10  Jim Meyering  <meyering@redhat.com>
10699
10700         stat-time-tests: check for the usleep function
10701         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
10702
10703 2009-10-10  Bruno Haible  <bruno@clisp.org>
10704
10705         * modules/xnanosleep: Put the Link section after the Include section.
10706
10707 2009-10-09  Eric Blake  <ebb9@byu.net>
10708
10709         dup2: work around FreeBSD 6.1 bug
10710         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
10711         * doc/posix-functions/dup2.texi (dup2): Document it.
10712         Reported by Nelson H. F. Beebe and Jim Meyering.
10713
10714         test-stat-time: port to buggy NFS clients
10715         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
10716         (test_ctime): Also skip test if mtime and ctime are skewed.
10717
10718         maint: prefer 'file system' over 'filesystem'
10719         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
10720         * doc/posix-functions/lstat.texi (lstat): Likewise.
10721         * lib/file-has-acl.c (file_has_acl): Likewise.
10722         * lib/fwriteerror.c [TEST]: Likewise.
10723         * tests/test-areadlink.h (test_areadlink): Likewise.
10724         * tests/test-areadlinkat-with-size.c (main): Likewise.
10725         * tests/test-areadlinkat.c (main): Likewise.
10726         * tests/test-canonicalize-lgpl.c (main): Likewise.
10727         * tests/test-canonicalize.c (main): Likewise.
10728         * tests/test-fstatat.c (main): Likewise.
10729         * tests/test-linkat.c (main): Likewise.
10730         * tests/test-lstat.h (test_lstat_func): Likewise.
10731         * tests/test-mkdir.h (test_mkdir): Likewise.
10732         * tests/test-readlink.h (test_readlink): Likewise.
10733         * tests/test-remove.c (main): Likewise.
10734         * tests/test-rename.h (test_rename): Likewise.
10735         * tests/test-renameat.c (main): Likewise.
10736         * tests/test-rmdir.h (test_rmdir_func): Likewise.
10737         * tests/test-symlink.h (test_symlink): Likewise.
10738         * tests/test-symlinkat.c (main): Likewise.
10739         * tests/test-unlink.h (test_unlink_func): Likewise.
10740         * tests/test-unlinkat.c (main): Likewise.
10741
10742         maint: make realtime library usage explicit
10743         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
10744         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
10745         * modules/settime (Link): Likewise.
10746         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
10747
10748         test-stat-time: speed up execution
10749         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
10750         warning on mingw.
10751         (nap): New helper function.
10752         (prepare_test): Use it to reduce sleep time.
10753         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
10754         execution.
10755         * modules/stat-time-tests (configure.ac): Check for usleep.
10756
10757 2009-10-09  Jim Meyering  <meyering@redhat.com>
10758
10759         selinux-h: always use getfilecon wrappers
10760         * lib/getfilecon.c: New file.
10761         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
10762         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
10763         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
10764         (fgetfilecon): Provide a stub.
10765         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
10766         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
10767         file unconditionally.
10768         When <selinux/selinux.h> is found, arrange to use wrappers.
10769         * modules/selinux-h (Files): Add getfilecon.c.
10770         (Makefile.am): Substitute include-next-related bits
10771         into the now-always-generated selinux/selinux.h file.
10772         * doc/glibc-functions/lgetfilecon.texi: New file.
10773         * doc/glibc-functions/fgetfilecon.texi: New file.
10774         * doc/glibc-functions/getfilecon.texi: New file.
10775         * doc/glibc-functions/getfilecon-desc.texi: New file.
10776         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
10777         which to pull in the new files.
10778         * MODULES.html.sh (Misc): Add selinux-h.
10779
10780 2009-10-08  Jim Meyering  <meyering@redhat.com>
10781
10782         unistd: fix comment typo
10783         * lib/unistd.in.h (euidaccess): Fix a comment typo.
10784
10785 2009-10-08  Eric Blake  <ebb9@byu.net>
10786
10787         areadlink: use SIZE_MAX consistently
10788         * modules/areadlink (Depends-on): Add stdint.
10789         * modules/areadlink-with-size (Depends-on): Likewise.
10790         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
10791         gives NULL; drop sys/types, since unistd gives size_t; and add
10792         stdint for SIZE_MAX.
10793         (SIZE_MAX): Rely on headers.
10794         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
10795         and add stdint.
10796         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
10797         (SIZE_MAX): Likewise.
10798         (INITIAL_BUF_SIZE): Turn into enum.
10799         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
10800
10801 2009-10-08  Jim Meyering  <meyering@redhat.com>
10802
10803         areadlinkat: avoid compilation failure
10804         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
10805         Fix typo in comment.
10806
10807 2009-10-07  Eric Blake  <ebb9@byu.net>
10808
10809         areadlinkat-with-size: new module
10810         * modules/areadlinkat-with-size: New module.
10811         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
10812         * lib/areadlink.h (areadlinkat): Declare it.
10813         * MODULES.html.sh (File system functions): Mention it.
10814         * modules/areadlinkat-with-size-tests: New test.
10815         * tests/test-areadlinkat-with-size.c: New file.
10816
10817         xreadlinkat: new module
10818         * modules/xreadlinkat: New module.
10819         * lib/xreadlinkat.c (xreadlinkat): New file.
10820         * lib/xreadlink.h (xreadlinkat): Declare it.
10821         * MODULES.html.sh (File system functions): Mention it.
10822
10823         areadlinkat: new module
10824         * lib/at-func.c (FUNC_FAIL): New define.
10825         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
10826         * modules/areadlinkat: New module.
10827         * lib/linkat.c (areadlinkat): Move...
10828         * lib/areadlinkat.c (areadlinkat): ...to new file.
10829         * lib/areadlink.h (areadlinkat): Declare it.
10830         * modules/linkat (Depends-on): Add areadlinkat.
10831         * MODULES.html.sh (File system functions): Mention it.
10832         * modules/areadlinkat-tests: New test.
10833         * tests/test-areadlinkat.c: New file.
10834
10835         areadlink, areadlink-with-size: add tests
10836         * modules/areadlink-tests: New test.
10837         * modules/areadlink-with-size-tests: Likewise.
10838         * tests/test-areadlink.h: New file.
10839         * tests/test-areadlink.c: Likewise.
10840         * tests/test-areadlink-with-size.c: Likewise.
10841
10842         maint: minor cleanups
10843         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
10844         _UNUSED_PARAMETER_ instead.
10845         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
10846         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
10847         * modules/linkat-tests (Files): Distribute test-link.h.
10848
10849         openat, utimens: whitespace cleanup
10850         * lib/openat.c: Prefer space throughout, rather than mix of 8
10851         spaces vs. tabs.
10852         * lib/at-func.c: Likewise.
10853         * lib/utimens.c: Likewise.
10854
10855         openat: avoid using wrong fd
10856         * lib/openat.c (openat_permissive): Reject user's fd if saving the
10857         working directory chooses same fd.
10858         * lib/at-func.c (AT_FUNC_NAME): Likewise.
10859
10860         mkdir, mkdirat: fix cygwin 1.5.x bug
10861         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
10862         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
10863         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
10864         bug.
10865         (gl_PREREQ_MKDIR): Delete unused macro.
10866         * modules/mkdir (Files): Track file rename.
10867         (configure.ac): Update macro name.
10868         * modules/openat (Depends-on): Add mkdir.
10869         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
10870
10871         mkdir, mkdirat: add tests
10872         * modules/mkdir-tests: New test.
10873         * tests/test-mkdir.h: New file.
10874         * tests/test-mkdir.c: Likewise.
10875         * tests/test-mkdirat.c: Likewise.
10876         * modules/openat-tests (Files): Add new files.
10877         (Makefile.am): Run new test.
10878
10879 2009-10-06  Eric Blake  <ebb9@byu.net>
10880
10881         doc: tweak *at function documentation
10882         * doc/posix-functions/faccessat.texi (faccessat): Mention
10883         known issue with replacement.
10884         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
10885         * doc/posix-functions/linkat.texi (linkat): Likewise.
10886         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
10887         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
10888         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10889         * doc/posix-functions/renameat.texi (renameat): Likewise.
10890         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
10891
10892         openat: fix GNU/Hurd bug in unlinkat
10893         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
10894         broken.
10895         * doc/posix-functions/unlink.texi (unlink): Document this.
10896         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
10897
10898         fdopendir: fix GNU/Hurd bug
10899         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
10900         allowing non-directory fds.
10901         * lib/fdopendir.c (rpl_fdopendir): Work around it.
10902         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
10903         * modules/dirent (Makefile.am): Substitute it.
10904         * lib/dirent.in.h (fdopendir): Declare replacement.
10905         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
10906         * tests/test-fdopendir.c (main): Test something other than
10907         /dev/null, since on Hurd that behaves like a directory.
10908
10909         test-symlink: port to GNU/Hurd
10910         * tests/test-symlink.h (test_symlink): Relax expected errno.
10911
10912         doc: tweak more cygwin information
10913         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
10914         now compatible with glibc.
10915         * doc/posix-functions/getopt.texi (getopt): Likewise.
10916
10917         getopt-gnu: add another test
10918         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
10919         guarantee behavior relied on by m4.
10920         * tests/test-getopt.c (main): Use it.
10921         * modules/getopt-posix-tests (Depends-on): Add setenv.
10922         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
10923
10924         getopt: fix compilation on darwin
10925         * lib/getopt.in.h (includes): Leave breadcrumbs during system
10926         include.
10927         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
10928         Reported by Ludovic Courtès.
10929
10930 2009-10-06  Bruno Haible  <bruno@clisp.org>
10931
10932         * modules/size_max (Description): Discourage its use.
10933         Reported by Simon Josefsson.
10934
10935 2009-10-06  Jim Meyering  <meyering@redhat.com>
10936
10937         linkat: avoid compilation failure
10938         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
10939
10940 2009-10-05  Eric Blake  <ebb9@byu.net>
10941
10942         linkat: support Linux 2.6.17
10943         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
10944         linkat on Linux, but allow cache variable override.
10945         * lib/linkat.c (rpl_linkat): Define override.
10946         * modules/linkat (Depends-on): Add symlinkat.
10947         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
10948         * modules/unistd (Makefile.am): Substitute it.
10949         * lib/unistd.in.h (linkat): Declare replacement.
10950         Reported by Pádraig Brady.
10951
10952         quotearg: port test to systems with C.UTF-8 locale
10953         * tests/test-quotearg.c (struct result_strings): Add another
10954         member, differentiating between C.ASCII and C.UTF-8 handling.
10955         (compare_strings): Add parameter.
10956         (main): Adjust all callers.
10957
10958         getopt: avoid clash with FreeBSD _getopt_internal
10959         * lib/getopt.in.h (_getopt_internal): Override the name.
10960         * lib/getopt_int.h (includes): Pick up any overrides.
10961         Reported by Reuben Thomas.
10962
10963         hash: allow C89 compilation
10964         * lib/hash.c (check_tuning): Move declaration before statement.
10965         Reported by Reuben Thomas.
10966
10967 2009-10-05  Karl Berry  <karl@gnu.org>
10968
10969         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
10970
10971 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
10972             Bruno Haible  <bruno@clisp.org>
10973
10974         * lib/uname.c (uname): Use a table-driven algorithm to compute
10975         Windows NT versions.
10976
10977 2009-10-04  Bruno Haible  <bruno@clisp.org>
10978
10979         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
10980         program_invocation_short_name.
10981         * modules/progname (configure.ac): Test for presence of
10982         program_invocation_short_name.
10983         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
10984
10985 2009-10-04  Bruno Haible  <bruno@clisp.org>
10986
10987         * lib/progname.c (set_program_name): Fix comment.
10988         Reported by Jim Meyering.
10989
10990 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
10991             Bruno Haible  <bruno@clisp.org>
10992
10993         * lib/uname.c: Include <string.h>.
10994         (uname): Do only one call to GetVersionEx in the common case.
10995
10996 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
10997             Bruno Haible  <bruno@clisp.org>
10998
10999         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
11000         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
11001         (uname): Add support for Windows CE and various non-x86 CPU types.
11002
11003 2009-10-03  Bruno Haible  <bruno@clisp.org>
11004
11005         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
11006         invocation to tests/configure.ac.
11007         Reported by Ian Beckwith <ianb@erislabs.net>.
11008
11009 2009-10-02  Eric Blake  <ebb9@byu.net>
11010
11011         fchdir: avoid compiler warning
11012         * lib/fchdir.c (canonicalize_file_name)
11013         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
11014
11015         test-open: support mingw errno values
11016         * tests/test-open.h (test_open): Relax test.
11017         * tests/test-fopen.h (test_fopen): Likewise.
11018         * tests/test-openat-safer.c (main): Likewise.
11019
11020         open: fix opening directory on mingw
11021         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
11022
11023         test-open: on GNU/Hurd, /dev/null is a directory
11024         * tests/test-fopen.h (main): Rename...
11025         (test_fopen): ...to this.  Use a guaranteed non-directory when
11026         confirming open behavior on trailing slash.
11027         * tests/test-openat-safer.c (main): Likewise.
11028         * tests/test-open.h (main): Likewise....
11029         (test_open): ...to this.
11030         * tests/test-fopen.c (main): Adjust caller.
11031         * tests/test-fopen-safer.c (main): Likewise.
11032         * tests/test-open.c (main): Likewise.
11033         * tests/test-fcntl-safer.c (main): Likewise.
11034         Reported by Samuel Thibault.
11035
11036         rename, fchdir: don't ignore chdir failure
11037         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
11038         * lib/rename.c (rpl_rename) [W32]: Likewise.
11039         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
11040         an empty destination directory if source cannot be renamed,
11041         although there is still possibility for failure.
11042         * doc/posix-functions/rename.texi (rename): Document the race.
11043         Reported by Jim Meyering.
11044
11045         maint: cleanup whitespace in recent commits
11046         * lib/rename.c (rpl_rename): Remove tabs.
11047         * tests/test-link.h (test_link): Likewise.
11048         * lib/fchdir.c (get_name): Likewise.
11049         Reported by Jim Meyering.
11050
11051 2009-10-02  Ben Pfaff  <blp@gnu.org>
11052
11053         relocatable-prog-wrapper: Add missing dependency on
11054         double-slash-root.
11055         * modules/relocatable-prog-wrapper: Add dependency.
11056         Reported by Ian Beckwith <ianb@erislabs.net>.
11057
11058 2009-10-02  Eric Blake  <ebb9@byu.net>
11059
11060         renameat: fix Solaris bugs
11061         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
11062         needed fixing.
11063         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
11064         * modules/stdio (Makefile.am): Substitute it.
11065         * lib/stdio.in.h (renameat): Declare replacement.
11066         * lib/renameat.c (rpl_renameat): Implement fix.
11067
11068         renameat: new module
11069         * modules/renameat: New file.
11070         * lib/renameat.c (renameat): Likewise.
11071         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
11072         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
11073         * modules/stdio (Makefile.am): Substitute them.
11074         * lib/stdio.in.h (renameat): Declare it.
11075         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
11076         * doc/posix-functions/renameat.texi (renameat): Likewise.
11077         * modules/renameat-tests: New test.
11078         * tests/test-renameat.c: Likewise.
11079
11080         rename: fix mingw bugs
11081         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
11082         directory overwrite bugs.
11083
11084         rename: fix another cygwin 1.5 bug
11085         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
11086         checks.
11087         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
11088         unnecessary cygwin workarounds.  Also work around bug with moving
11089         full directory onto an empty one.
11090         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
11091
11092         rename-dest-slash: merge into rename module
11093         * modules/rename-dest-slash (Status): Mark obsolete.
11094         (Depends-on): Add rename.
11095         (Files): Let rename do it all.
11096         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
11097         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
11098         * m4/rename-dest-slash.m4: ...so this file can be deleted.
11099         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
11100         * lib/rename.c (rpl_rename): Update comments.
11101
11102         rename: fix cygwin 1.5.x bugs
11103         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
11104         * lib/rename.c (rpl_rename): Work around them.
11105         * modules/rename (Depends-on): Add same-inode.
11106
11107         rename: fix Solaris 10 bug
11108         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
11109         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
11110         was the only bug.
11111
11112         rename: fix Solaris 9 bug
11113         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
11114         on non-directory.  Avoid calling exit.
11115         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
11116         strdup.
11117         * modules/rename-tests (Depends-on): Drop lstat.
11118         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
11119         (gl_PREREQ_RENAME): Delete unused macro.
11120
11121         rename-dest-slash: fix NetBSD bug
11122         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
11123         links.
11124         * modules/rename-dest-slash (Depends-on): Add same-inode.
11125
11126         rename-tests: new test, exposes several platform bugs
11127         * modules/rename-tests: New file.
11128         * tests/test-rename.h: Likewise.
11129         * tests/test-rename.c: Likewise.
11130         * doc/posix-functions/rename.texi (rename): Improve documentation,
11131         including bugs that will eventually be fixed in gnulib.
11132
11133 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
11134
11135         * lib/uname.c: Include <stdlib.h>
11136         (uname): Assume version info is available.
11137
11138 2009-10-02  Jim Meyering  <meyering@redhat.com>
11139
11140         gnu-web-doc-update: correct --help output
11141         * build-aux/gnu-web-doc-update: Make --help output relevant.
11142
11143         gnu-web-doc-update: add standard options
11144         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
11145
11146         gnu-web-doc-update: New module.
11147         Use this script to automatically update the on-line web documentation
11148         for your GNU project at http://www.gnu.org/software/$pkg/manual/
11149         * modules/gnu-web-doc-update: New file, from coreutils.
11150         * build-aux/gnu-web-doc-update: New script.
11151
11152 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
11153
11154         link: LoadLibrary is not needed.
11155         * lib/link.c: Use GetModuleHandle.
11156
11157 2009-10-01  Eric Blake  <ebb9@byu.net>
11158
11159         getopt: bump serial number
11160         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
11161         change.
11162
11163         tests: tighten link, rmdir, and remove tests
11164         * tests/test-link.h (includes): No need to use <config.h> here.
11165         Clean up if directory hard link was created, otherwise test for
11166         trailing '.'.
11167         * tests/test-linkat.c (main): Simplify.
11168         * tests/test-remove.c (main): Enhance test for trailing '.'.
11169         * tests/test-rmdir.h (test_rmdir_func): Likewise.
11170
11171 2009-10-01  Jim Meyering  <meyering@redhat.com>
11172
11173         maint.mk: requiring "make major" was annoying, for a "minor" release.
11174         What is intended is "stable", to contrast with alpha and beta,
11175         so require "make stable", not "make major".
11176         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
11177         (get_tool_versions): Likewise.
11178         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
11179
11180 2009-09-30  Ben Pfaff  <blp@gnu.org>
11181
11182         Fix broken build of replacement for Windows tmpfile().
11183         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
11184         flags argument added along with the 'mkostemp' module.
11185
11186 2009-09-28  Bruno Haible  <bruno@clisp.org>
11187
11188         Avoid identifier clash with POSIX function 'remove' defined as a macro.
11189         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
11190         to 'remove_elt'.
11191         (gl_list_remove): Update.
11192         * lib/gl_list.c (gl_list_remove): Update.
11193         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
11194         to 'remove_elt'.
11195         (gl_oset_remove): Update.
11196         * lib/gl_list.c (gl_oset_remove): Update.
11197         Reported by Eric Blake.
11198
11199 2009-09-28  Eric Blake  <ebb9@byu.net>
11200
11201         doc: mention yet more cygwin 1.7 status
11202         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
11203         cygwin.
11204         * doc/glibc-functions/execvpe.texi (execvpe): New file.
11205         * doc/gnulib.texi (Glibc unistd.h): Mention it.
11206
11207         argp: fix test failure
11208         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
11209         that are not upper-case.  Pass correct range to tolower.
11210
11211 2009-09-27  Jim Meyering  <meyering@redhat.com>
11212
11213         test-yesno: work around sparc-dash here-document infelicity
11214         Without this change, the literal \177 byte in a here document
11215         would make dash 0.5.5.1-3 access uninitialized memory.
11216         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
11217         Instead, use a marker, "@", and filter through tr to create the desired
11218         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
11219
11220 2009-09-27  Bruno Haible  <bruno@clisp.org>
11221
11222         Disable untested support for new flavours of ACLs on AIX.
11223         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
11224         progress.
11225         * lib/set-mode-acl.c (qset_acl): Likewise.
11226
11227 2008-12-07  Bruno Haible  <bruno@clisp.org>
11228
11229         Add support for new flavours of ACLs on AIX. (Untested.)
11230         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
11231         (file_has_acl): Add support for newer AIX.
11232         * lib/set-mode-acl.c (qset_acl): Likewise.
11233         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
11234         Rainer Tammer <tammer@tammer.net>.
11235
11236 2009-09-26  Eric Blake  <ebb9@byu.net>
11237
11238         argp: fix compilation of getopt
11239         * lib/getopt.in.h (includes): Use different guard than glibc.
11240         Reported by Sergey Poznyakoff.
11241
11242         doc: mention more cygwin 1.7 status
11243         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
11244         bug.
11245         * doc/posix-functions/execl.texi (execl): Likewise.
11246         * doc/posix-functions/execle.texi (execle): Likewise.
11247         * doc/posix-functions/execlp.texi (execlp): Likewise.
11248         * doc/posix-functions/execv.texi (execv): Likewise.
11249         * doc/posix-functions/execve.texi (execve): Likewise.
11250         * doc/posix-functions/execvp.texi (execvp): Likewise.
11251         * doc/glibc-functions/canonicalize_file_name.texi
11252         (canonicalize_file_name): Cygwin 1.7 now provides this.
11253         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
11254         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
11255         on AT_SYMLINK_NOFOLLOW.
11256
11257 2009-09-24  Eric Blake  <ebb9@byu.net>
11258
11259         test-linkat: make test more robust
11260         * tests/test-linkat.c (main): Avoid collision with EEXIST.
11261
11262         getopt: fix inclusion guards for cygwin
11263         * modules/getopt-posix (Depends-on): Add include-next.
11264         (Makefile.am): Substitute more items in replacement header.
11265         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
11266         <getopt.h>.
11267         * lib/getopt.in.h (includes): Use split inclusion guard, and
11268         prefer <getopt.h> over include <unistd.h> when one is present.
11269         (option): Also override name of 'struct option'.
11270
11271         same-inode: revert prior change; it is not yet ready
11272         * NEWS: Undo mention of this change.
11273         * lib/same-inode.h (same-inode.h): Undo tri-state change.
11274         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
11275         * lib/cycle-check.c (cycle_check): Likewise.
11276         * lib/same.c (same_name): Likewise.
11277         * lib/at-func2.c (at_func2): Likewise.
11278
11279 2009-09-23  Eric Blake  <ebb9@byu.net>
11280
11281         linkat: new module
11282         * modules/linkat: New file.
11283         * lib/at-func2.c (at_func2): Likewise.
11284         * lib/linkat.c (linkat): Likewise.
11285         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
11286         * lib/openat-priv.h (at_func2): Add declaration.
11287         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
11288         * modules/unistd (Makefile.am): Substitute them.
11289         * lib/unistd.in.h (linkat): Declare it.
11290         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
11291         * doc/posix-functions/linkat.texi (linkat): Likewise.
11292         * doc/posix-functions/link.texi (link): Tweak wording.
11293         * tests/test-link.c (main): Move guts...
11294         * tests/test-link.h (test_link): ...into new file.
11295         * modules/linkat-tests: New test.
11296         * tests/test-linkat.c: Likewise.
11297         * modules/link-tests (Files): Ship new file.
11298         (Depends-on): Add stdbool.
11299
11300         dirname: add library-safe mdir_name
11301         * lib/dirname.h (mdir_name): New prototype.
11302         * lib/dirname.c (dir_name): Move guts...
11303         (mdir_name): ...to new function that avoids xalloc_die.
11304
11305         fchdir: another mingw fix
11306         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
11307         * lib/fchdir.c (get_name): New helper method; skips canonicalize
11308         on mingw (where it has not yet been ported), and make it optional
11309         elsewhere.
11310         (_gl_register_fd): Use it.
11311
11312         same-inode: make SAME_INODE tri-state, to port to mingw
11313         * NEWS: Mention this change.
11314         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
11315         st_ino always being 0.
11316         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
11317         * lib/cycle-check.c (cycle_check): Likewise.
11318         * lib/same.c (same_name): Likewise.
11319
11320         lstat: avoid mingw compilation error
11321         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
11322         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
11323         lstat ourselves.
11324         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
11325         was adequate.
11326         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
11327         the checks for lstat.
11328         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
11329
11330         link: fix test failure on Solaris 9
11331         * lib/link.c (rpl_link): Don't assume link will catch bogus
11332         trailing slash on source.
11333
11334         test-symlinkat: enhance test
11335         * tests/test-readlink.c (main): Move guts...
11336         * tests/test-readlink.h (test_readlink): ...into new file.
11337         * tests/test-symlink.c (main): Move guts...
11338         * tests/test-symlink.h (test_symlink): ...into new file.
11339         * tests/test-symlinkat.c (main): Use new files for further
11340         coverage.
11341         (do_symlink, do_readlink): New helper functions.
11342         * modules/symlink-tests (Files): Ship new file.
11343         (Depends-on): Add stdbool.
11344         * modules/readlink-tests (Files): Ship new file.
11345         (Depends-on): Add stdbool.
11346         * modules/symlinkat-tests (Files): Use new files.
11347
11348 2009-09-23  Eric Blake  <ebb9@byu.net>
11349
11350         readlink: document portability issue with symlink length
11351         * doc/posix-functions/lstat.texi (lstat): Mention that some file
11352         systems have bogus st_size on symlinks, and mention the
11353         areadlink-with-size module.
11354         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
11355         * doc/posix-functions/readlink.texi (readlink): Mention the
11356         areadlink module, and ERANGE failure.
11357         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
11358         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
11359
11360         readlink: fix Solaris 9 bug with trailing slash
11361         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
11362         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
11363         * doc/posix-functions/readlink.texi (readlink): Document this.
11364         * modules/readlink-tests: New test.
11365         * tests/test-readlink.c: Likewise.
11366
11367         readlink: fix cygwin 1.5.x bug with return type
11368         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
11369         * lib/unistd.in.h (readlink): Use ssize_t.
11370         * lib/readlink.c (readlink): Likewise.
11371         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11372         * modules/unistd (Makefile.am): Substitute it.
11373         * lib/unistd.in.h (readlink): Declare replacement.
11374         * doc/posix-functions/readlink.texi (readlink): Document this.
11375
11376         symlink: use throughout gnulib
11377         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
11378         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
11379         symlink is not used.
11380         * modules/symlinkat (Depends-on): Add symlink.
11381         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
11382         * modules/canonicalize-tests (Depends-on): Likewise.
11383         * modules/lstat-tests (Depends-on): Likewise.
11384         * modules/openat-tests (Depends-on): Likewise.
11385         * modules/remove-tests (Depends-on): Likewise.
11386         * modules/rmdir-tests (Depends-on): Likewise.
11387         * modules/unlink-tests (Depends-on): Likewise.
11388         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
11389         * tests/test-canonicalize.c (symlink): Likewise.
11390         * tests/test-fstatat.c (symlink): Likewise.
11391         * tests/test-lstat.c (symlink): Likewise.
11392         * tests/test-remove.c (symlink): Likewise.
11393         * tests/test-rmdir.c (symlink): Likewise.
11394         * tests/test-unlink.c (symlink): Likewise.
11395         * tests/test-unlinkat.c (symlink): Likewise.
11396
11397         symlink: new module, for Solaris 9 bug
11398         * modules/symlink: New file.
11399         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
11400         * lib/symlink.c: Likewise.
11401         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
11402         * modules/unistd (Makefile.am): Substitute them.
11403         * lib/unistd.in.h (symlink): Declare replacement.
11404         * MODULES.html.sh (File system functions): Mention it.
11405         * doc/posix-functions/symlink.texi (symlink): Likewise.
11406         * modules/symlink-tests: New test.
11407         * tests/test-symlink.c: Likewise.
11408
11409 2009-09-23  Bruno Haible  <bruno@clisp.org>
11410
11411         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
11412         when needed.
11413         Test case: gnulib-tool --import --with-tests atexit inttypes.
11414         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
11415
11416 2009-09-23  Bruno Haible  <bruno@clisp.org>
11417
11418         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
11419         subcommand, not in a subshell.
11420
11421 2009-09-22  Eric Blake  <ebb9@byu.net>
11422
11423         unistd: sort replacement declarations
11424         * lib/unistd.in.h: Sort declarations.
11425
11426         open, openat: minor optimization
11427         * lib/open.c (open): If open succeeded, len is non-zero.
11428         * lib/openat.c (rpl_openat): Likewise.
11429
11430         link-follow: ensure correct result
11431         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
11432         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
11433         distinguish between possible failures.
11434
11435 2009-09-21  Eric Blake  <ebb9@byu.net>
11436
11437         fts: avoid compiler warning
11438         * lib/fts.c (dirent_inode_sort_may_be_useful)
11439         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
11440
11441 2009-09-19  Bruno Haible  <bruno@clisp.org>
11442
11443         * lib/progreloc.c (canonicalize_file_name): New declaration.
11444
11445 2009-09-19  Eric Blake  <ebb9@byu.net>
11446
11447         link: fix quoting
11448         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
11449
11450         openat: fix openat bugs on Solaris 9
11451         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
11452         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
11453         * modules/openat (Depends-on): Add open.
11454         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
11455         * modules/fcntl-h (Makefile.am): Substitute it.
11456         * lib/fcntl.in.h (openat): Declare replacement.
11457         * doc/posix-functions/openat.texi (openat): Document this.
11458
11459         openat: move fstatat and unlinkat into correct files
11460         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
11461         compiled.
11462         * lib/openat.c (fstatat, unlinkat): Move...
11463         * lib/fstatat.c (fstatat): ...into correct files.
11464         * lib/unlinkat.c (unlinkat): Likewise.
11465
11466         openat: fix unlinkat bugs on Solaris 9
11467         * lib/unlinkat.c (unlinkat): New file.
11468         * modules/openat (Depends-on): Add unlink.
11469         (Files): Distribute it.
11470         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
11471         trailing slash behavior is broken.
11472         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11473         * modules/unistd (Makefile.am): Substitute it.
11474         * lib/unistd.in.h (unlinkat): Declare replacement.
11475         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
11476
11477         openat: fix fstatat bugs on Solaris 9
11478         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
11479         stat.
11480         * doc/posix-functions/fstatat.texi (fstatat): Document this.
11481
11482         test-unlinkat: enhance test, to expose Solaris 9 bug
11483         * tests/test-unlink.c (main): Factor guts...
11484         * tests/test-unlink.h (test_rmdir_func): ...into new file.
11485         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
11486         * tests/test-rmdir.c (main): Adjust caller.
11487         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
11488         (unlinker): New helper function.
11489         (rmdirat): Enhance check.
11490         * modules/rmdir-tests (Depends-on): Add stdbool.
11491         * modules/unlink-tests (Depends-on): Likewise.
11492         (Files): Add test-unlink.h.
11493         * modules/openat-tests (Files): Likewise.
11494         (Depends-on): Add unlinkdir.
11495
11496         test-fstatat: new test, to expose Solaris 9 bugs
11497         * tests/test-stat.c (main): Factor guts...
11498         * tests/test-stat.h (test_stat_func): ...into new file.
11499         * tests/test-lstat.c (main): Factor guts...
11500         * tests/test-lstat.h (test_lstat_func): ...into new file.
11501         * tests/test-fstatat.c: New file.
11502         * modules/stat-tests (Files): Add test-stat.h.
11503         * modules/lstat-tests (Files): Add test-lstat.h.
11504         (Depends-on): Add stdbool.
11505         * modules/openat-tests (Depends-on): Add pathmax.
11506         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
11507         (Makefile.am): Run new test.
11508
11509         remove: new module, for mingw and Solaris 9 bugs
11510         * modules/remove: New file.
11511         * lib/remove.c: Likewise.
11512         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
11513         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
11514         * modules/stdio (Makefile.am): Use them.
11515         * lib/stdio.in.h (remove): Declare replacement.
11516         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
11517         * doc/posix-functions/remove.texi (remove): Likewise.
11518         * modules/remove-tests: New test.
11519         * tests/test-remove.c: Likewise.
11520
11521         unlink: new module, for Solaris 9 bug
11522         * modules/unlink: New file.
11523         * lib/unlink.c: Likewise.
11524         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
11525         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
11526         * modules/unistd (Makefile.am): Use them.
11527         * lib/unistd.in.h (stat): Declare replacement.
11528         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
11529         * doc/posix-functions/unlink.texi (unlink): Likewise.
11530         * modules/unlink-tests: New test.
11531         * tests/test-unlink.c: Likewise.
11532
11533         lstat: fix Solaris 9 bug
11534         * lib/lstat.c (lstat): Also check for trailing slash on
11535         non-symlink, non-directories.  Use stat module to simplify logic.
11536         * doc/posix-functions/lstat.texi (lstat): Document it.
11537         * modules/lstat-tests (Depends-on): Add errno, same-inode.
11538         (configure.ac): Check for symlink.
11539         * tests/test-lstat.c (main): Add more tests.
11540
11541         stat: add as dependency to other modules
11542         * modules/chown (Depends-on): Add stat.
11543         * modules/euidaccess (Depends-on): Likewise.
11544         * modules/fchdir (Depends-on): Likewise.
11545         * modules/isdir (Depends-on): Likewise.
11546         * modules/link (Depends-on): Likewise.
11547         * modules/lstat (Depends-on): Likewise.
11548         * modules/mkdir-p (Depends-on): Likewise.
11549         * modules/modechange (Depends-on): Likewise.
11550         * modules/open (Depends-on): Likewise.
11551         * modules/readlink (Depends-on): Likewise.
11552         * modules/same (Depends-on): Likewise.
11553
11554         stat: fix Solaris 9 bug
11555         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
11556         slash.
11557         * lib/stat.c (rpl_stat): Work around it.
11558         * doc/posix-functions/stat.texi (stat): Update documentation.
11559
11560         stat: new module, for mingw bug
11561         * modules/stat: New file.
11562         * lib/stat.c: Likewise.
11563         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
11564         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
11565         * modules/sys_stat (Makefile.am): Use them.
11566         * lib/sys_stat.in.h (stat): Declare replacement.
11567         * lib/openat.c (fstatat): Deal with lstat and stat being function
11568         macros.
11569         * modules/openat (Depends-on): Add inline.
11570         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
11571         * doc/posix-functions/stat.texi (stat): Likewise.
11572         * modules/stat-tests: New test.
11573         * tests/test-stat.c: Likewise.
11574
11575 2009-09-19  Jim Meyering  <meyering@redhat.com>
11576
11577         syntax-check: detect unnecessary inclusion of canonicalize.h
11578         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
11579
11580 2009-09-19  Eric Blake  <ebb9@byu.net>
11581
11582         canonicalize-lgpl: adjust clients to use correct header
11583         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
11584         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
11585         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
11586         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
11587         * lib/progreloc.c (includes): Likewise.
11588
11589 2009-09-19  Jim Meyering  <meyering@redhat.com>
11590
11591         test-posixtm.c: correct a comment
11592         * tests/test-posixtm.c: Correct first-line comment.
11593         Spotted by Eric Blake.
11594
11595 2009-09-16  Jim Meyering  <meyering@redhat.com>
11596
11597         posixtm-tests: make T const-correct; add a test case
11598         * tests/test-posixtm.c (T): Declare const.
11599         Add a test for -(2^31+1).
11600         Remove useless can-succeed-only-in-2002 test.
11601
11602         posixtm-tests: adjust the sole failing test
11603         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
11604         expected output matches what mktime now produces.  Cross-checked via
11605         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
11606
11607         posixtm: move #ifdef'd tests into a new module
11608         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
11609         * tests/test-posixtm.c: ... this new file.
11610         * modules/posixtm-tests: New module.
11611
11612 2009-09-19  Eric Blake  <ebb9@byu.net>
11613
11614         openat: simplify use of at-func.c
11615         * lib/at-func.c (includes): Include prerequisites here, to
11616         simplify requirements on client files.
11617         * lib/openat-priv.h: Add double-inclusion guard.
11618         * lib/faccessat.c (includes): Simplify.
11619         * lib/fchmodat.c (includes): Likewise.
11620         * lib/fchownat.c (includes): Likewise.
11621         * lib/mkdirat.c (includes): Likewise.
11622         * lib/mkfifoat.c (includes): Likewise.
11623         * lib/symlinkat.c (includes): Likewise.
11624
11625         openat: allow return of fd 0
11626         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
11627         * modules/save-cwd (Depends-on): Replace fcntl-safer with
11628         unistd-safer.
11629         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
11630         <fcntl.h>; this module does not leak fds.
11631         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
11632         must be allowed to return 0, leaving openat_safer to add the
11633         safety.
11634         (openat_permissive): Avoid writing to just-opened fd 2 if
11635         restoring the current directory fails.
11636         * lib/openat-die.c (openat_restore_fail): Add comment.
11637         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
11638         (save_cwd): Guarantee safe fd, but without use of open_safer.
11639         * tests/test-openat.c: New test.
11640         * modules/openat-tests (Files, Makefile.am): Distribute and build
11641         new file.
11642
11643         relocatable-prog-wrapper: fix build
11644         * modules/relocatable-prog-wrapper (Files): Update name of
11645         canonicalize m4 file, broken on 2009-09-17.
11646         Reported by emad hajjar <aleppos@hotmail.com>.
11647
11648 2009-09-19  Bruno Haible  <bruno@clisp.org>
11649
11650         * lib/safe-alloc.h: Use the standard header with GPL copyright.
11651         * lib/safe-alloc.c: Likewise.
11652         Reported by Ian Beckwith <ianb@erislabs.net>.
11653
11654 2009-09-18  Bruno Haible  <bruno@clisp.org>
11655
11656         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
11657         Reported by <erobles@sensacd.com.mx>.
11658
11659 2009-09-17  Eric Blake  <ebb9@byu.net>
11660
11661         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
11662         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
11663         slashes when checking if last component is missing.
11664         * tests/test-canonicalize.c (main): Test this.
11665
11666         canonicalize, canonicalize-lgpl: honor // if distinct from /
11667         * modules/canonicalize (Files): Add double-slash-root.m4.
11668         * modules/canonicalize-lgpl (Files): Likewise.
11669         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
11670         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
11671         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
11672         fallback definition.
11673         (canonicalize_filename_mode): Use it to protect //.
11674         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
11675         (__realpath): Likewise.
11676         * tests/test-canonicalize.c (main): Test this.
11677         * tests/test-canonicalize-lgpl.c (main): Likewise.
11678         * modules/canonicalize-tests (Depends-on): Add same-inode.
11679         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
11680
11681         canonicalize-lgpl: fix glibc bug with trailing slash
11682         * m4/canonicalize-lgpl.m4: Move contents...
11683         * m4/canonicalize.m4: ...here.
11684         (gl_CANONICALIZE_LGPL): Factor realpath check...
11685         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
11686         glibc 2.3.5 bug, fixed 2005-04-27.
11687         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
11688         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
11689         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
11690         * modules/canonicalize-lgpl (Files): Manage file rename.
11691         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
11692         * modules/stdlib (Makefile.am): Substitute witness.
11693         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
11694         is needed.
11695         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
11696         replacement is required.
11697         * lib/canonicalize.c (canonicalize_file_name): Likewise.
11698         * doc/glibc-functions/canonicalize_file_name.texi
11699         (canonicalize_file_name): Document this.
11700         * doc/posix-functions/realpath.texi (realpath): Likewise.
11701
11702         canonicalize-lgpl: reject non-directory with trailing slash
11703         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
11704         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
11705         catches failures in glibc 2.3.5.
11706         * tests/test-canonicalize.c (main): Likewise.
11707
11708         canonicalize-lgpl: use native realpath if it works
11709         * lib/canonicalize-lgpl.c (realpath): Guard with
11710         FUNC_REALPATH_WORKS.
11711         * lib/stdlib.in.h (realpath): Make declaration optional based on
11712         HAVE_REALPATH.
11713         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
11714         native realpath works.
11715         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
11716         * modules/stdlib (Makefile.am): Substitute witness.
11717
11718         canonicalize, canonicalize-lgpl: use <stdlib.h>
11719         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
11720         (Include): Mention <stdlib.h>.
11721         (configure.ac): Mention functions we provide.
11722         * modules/canonicalize (configure.ac): Likewise.
11723         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
11724         realpath if canonicalize_file_name is missing.
11725         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
11726         * modules/stdlib (Makefile.am): Substitute witnesses.
11727         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
11728         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
11729         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
11730         * NEWS: Document this.
11731         * doc/glibc-functions/canonicalize_file_name.texi
11732         (canonicalize_file_name): Likewise.
11733         * doc/posix-functions/realpath.texi (realpath): Likewise.
11734         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
11735
11736         test-canonicalize: consolidate into single C program
11737         * tests/test-canonicalize.sh: Delete; move setup into...
11738         * tests/test-canonicalize.c (main): ...the program, making it
11739         easier to run in debugger.  Add some tests.
11740         * modules/canonicalize-tests (Files): Remove unused file.
11741         (Depends-on): Add progname.
11742         (configure.ac, Makefile.am): Simplify.
11743
11744         test-canonicalize-lgpl: consolidate into single C program
11745         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
11746         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
11747         easier to run in debugger.  Add some tests.
11748         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
11749         (configure.ac, Makefile.am): Simplify.
11750
11751         canonicalize: avoid resolvepath
11752         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
11753         unnecessary checks.
11754         * lib/canonicalize.c (includes): Simplify.
11755         (canonicalize_file_name): Drop resolvepath implementation.
11756         * modules/canonicalize (Depends-on): Drop filenamecat.
11757
11758         canonicalize: don't lose errno
11759         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
11760         over calls to free.
11761
11762         canonicalize: simplify errno handling
11763         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
11764         assignment.
11765
11766         canonicalize, canonicalize-lgpl: update module dependencies
11767         * modules/canonicalize (Depends-on): Add extensions, lstat,
11768         pathmax, stdlib.
11769         (Files): Drop pathmax.h.
11770         (configure.ac): Adjust macro name.
11771         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
11772         lstat, stdlib, sys_stat.
11773         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
11774         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
11775         extensions.
11776         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
11777         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
11778         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
11779         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
11780         declaration, if available.
11781         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
11782         we can rely on the readlink module.
11783         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
11784         (includes): Use <unistd.h> unconditionally.
11785
11786 2009-09-17  Eric Blake  <ebb9@byu.net>
11787
11788         maint: make Include sections of modules consistent
11789         * modules/alloca: Use only header name; no need to list #include.
11790         * modules/alloca-opt: Likewise.
11791         * modules/arpa_inet: Likewise.
11792         * modules/canon-host: Likewise.
11793         * modules/configmake: Likewise.
11794         * modules/dirent: Likewise.
11795         * modules/eealloc: Likewise.
11796         * modules/environ: Likewise.
11797         * modules/fchdir: Likewise.
11798         * modules/fcntl: Likewise.
11799         * modules/fcntl-h: Likewise.
11800         * modules/gethrxtime: Likewise.
11801         * modules/gettime: Likewise.
11802         * modules/ignore-value: Likewise.
11803         * modules/inet_ntop: Likewise.
11804         * modules/inet_pton: Likewise.
11805         * modules/inttypes: Likewise.
11806         * modules/isnand-nolibm: Likewise.
11807         * modules/isnanf-nolibm: Likewise.
11808         * modules/mbchar: Likewise.
11809         * modules/mbfile: Likewise.
11810         * modules/mbiter: Likewise.
11811         * modules/mbuiter: Likewise.
11812         * modules/netdb: Likewise.
11813         * modules/netinet_in: Likewise.
11814         * modules/nproc: Likewise.
11815         * modules/pagealign_alloc: Likewise.
11816         * modules/poll: Likewise.
11817         * modules/printf-frexp: Likewise.
11818         * modules/pthread: Likewise.
11819         * modules/putenv: Likewise.
11820         * modules/random_r: Likewise.
11821         * modules/relocatable-prog: Likewise.
11822         * modules/search: Likewise.
11823         * modules/select: Likewise.
11824         * modules/selinux-h: Likewise.
11825         * modules/settime: Likewise.
11826         * modules/signal: Likewise.
11827         * modules/size_max: Likewise.
11828         * modules/socklen: Likewise.
11829         * modules/ssize_t: Likewise.
11830         * modules/stdarg: Likewise.
11831         * modules/stdbool: Likewise.
11832         * modules/stddef: Likewise.
11833         * modules/stdint: Likewise.
11834         * modules/stdio: Likewise.
11835         * modules/stdlib: Likewise.
11836         * modules/string: Likewise.
11837         * modules/strings: Likewise.
11838         * modules/sys_file: Likewise.
11839         * modules/sys_ioctl: Likewise.
11840         * modules/sys_select: Likewise.
11841         * modules/sys_socket: Likewise.
11842         * modules/sys_stat: Likewise.
11843         * modules/sys_time: Likewise.
11844         * modules/sys_times: Likewise.
11845         * modules/sys_utsname: Likewise.
11846         * modules/sys_wait: Likewise.
11847         * modules/sysexits: Likewise.
11848         * modules/time: Likewise.
11849         * modules/times: Likewise.
11850         * modules/tmpfile: Likewise.
11851         * modules/trim: Likewise.
11852         * modules/unistd: Likewise.
11853         * modules/wchar: Likewise.
11854         * modules/wctype: Likewise.
11855
11856 2009-09-17  Bruno Haible  <bruno@clisp.org>
11857
11858         Make getdate.y compile on QNX and NetBSD 5 / i386.
11859         * m4/getdate.m4 (gl_GETDATE): Conditionally define
11860         TIME_T_FITS_IN_LONG_INT.
11861         * lib/getdate.y (long_time_t): New type.
11862         (relative_time): Change type of 'seconds' field to long_time_t.
11863         (get_date): Update types of local variables. Check against overflow
11864         during conversion from long_time_t to time_t.
11865         Reported by Matt Kraai <kraai@ftbfs.org>
11866         and Hasso Tepper <hasso@netbsd.org>.
11867
11868 2009-09-17  Bruno Haible  <bruno@clisp.org>
11869
11870         * modules/COPYING: Update copyright years.
11871         * modules/README: Likeiwse.
11872         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
11873         Reported by Ian Beckwith <ianb@erislabs.net>.
11874
11875 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
11876
11877         * users.txt: Update references for gnuit package.
11878
11879 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
11880
11881         * m4/getdelim.m4: Fix typo in copyright line.
11882
11883 2009-09-17  Bruno Haible  <bruno@clisp.org>
11884
11885         * lib/atoll.c: Use the standard header with GPL copyright.
11886         * lib/argz.in.h: Likewise.
11887         * lib/glob.c: Likewise.
11888         * lib/glob-libc.h: Likewise.
11889         * lib/random_r.c: Likewise.
11890         * lib/siglist.h: Likewise.
11891         * lib/strsignal.c: Likewise.
11892         Reported by Ian Beckwith <ianb@erislabs.net>.
11893
11894 2009-09-17  Eric Blake  <ebb9@byu.net>
11895
11896         rmdir: ensure correct dependency order
11897         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
11898
11899 2009-09-17  Bruno Haible  <bruno@clisp.org>
11900
11901         Disable assertion that fails on NetBSD 5 / i386.
11902         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
11903         Reported by Sam Steingold <sds@gnu.org>
11904         and Hasso Tepper <hasso@netbsd.org>.
11905
11906 2009-09-16  Eric Blake  <ebb9@byu.net>
11907
11908         unlinkdir: port to mingw
11909         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
11910         on which no one can unlink a directory.
11911
11912         stdlib: sort witness names
11913         * modules/stdlib (Makefile.am): Sort replacements.
11914         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
11915         * lib/stdlib.in.h: Likewise.
11916
11917         parse-duration-tests: avoid link failure
11918         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
11919         LIBINTL.
11920         Reported by Tom G. Christensen.
11921
11922         openat-tests: ensure unlinkat behaves like rmdir
11923         * tests/test-rmdir.c (main): Factor guts...
11924         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
11925         * modules/rmdir-tests (Files): Ship new file.
11926         * modules/openat-tests: New test.
11927         * tests/test-unlinkat.c: Likewise.
11928
11929         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
11930         * modules/rmdir-errno (Status, Notice): Now obsolete.
11931
11932         rmdir: work around cygwin 1.5.x and mingw bugs
11933         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
11934         * lib/rmdir.c (rmdir): Work around it.
11935         * modules/rmdir (Status, Notice): No longer obsolete.
11936         (Files): Add dos.m4.
11937         (Depends-on): Add unistd.
11938         (configure.ac): Set witnesses.
11939         (License): Relax to LGPLv2+.
11940         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
11941         * modules/unistd (Makefile.am): Substitute witnesses.
11942         * lib/unistd.in.h (rmdir): Declare replacement.
11943         * doc/posix-functions/rmdir.texi (rmdir): Document this.
11944         * modules/rmdir-tests: New tests.
11945         * tests/test-rmdir.c: Likewise.
11946
11947 2009-09-15  Eric Blake  <ebb9@byu.net>
11948
11949         fchdir: improve use of replacement functions
11950         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
11951         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
11952         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
11953         REPLACE_CLOSEDIR.
11954         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
11955         * modules/sys_stat (Makefile.am): Substitute correct witness.
11956         * modules/dirent (Makefile.am): Likewise.
11957         * modules/unistd (Makefile.am): Likewise.
11958         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
11959         * lib/unistd.in.h (dup): Likewise.
11960         * lib/sys_stat.in.h (fstat): Likewise.
11961
11962         maint: ignore gnulib-tool temp files
11963         * .gitignore: Ignore files created during gnulib-tool --test.
11964
11965 2009-09-13  Jim Meyering  <meyering@redhat.com>
11966
11967         posixtm: don't reject a time that specify "60" as the number of seconds
11968         * lib/posixtm.c (posixtime): The code to reject invalid dates
11969         would also reject a time specified with the .60 suffix.
11970         But POSIX allows that, in order to accommodate leap seconds.
11971         So don't reject it.
11972         (main): Adjust tests accordingly.
11973         * modules/posixtm (Depends-on): Add stpcpy.
11974
11975 2009-09-11  Jim Meyering  <meyering@redhat.com>
11976
11977         announce-gen: include [$release_type] in emitted Subject:
11978         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
11979         e.g., [stable] in the emitted Subject: line.
11980
11981 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11982
11983         Remove obsolete macros from several modules.
11984         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
11985         obsolete Autoconf macros with their modern counterparts.
11986         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
11987         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
11988         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
11989         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
11990         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
11991         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11992         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
11993         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
11994         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
11995         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
11996         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11997         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11998         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
11999         * m4/sockets.m4 (gl_SOCKETS): Likewise.
12000         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
12001         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
12002         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
12003         * m4/time_r.m4 (gl_TIME_R): Likewise.
12004         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
12005         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
12006         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
12007
12008         Fix copyright header in build-aux scripts.
12009         * build-aux/git-version-gen: Fix copyright header to match GPLv3
12010         recommendation.
12011         * build-aux/ncftpput-ftp: Likewise.
12012         * build-aux/update-copyright: Likewise.
12013
12014 2009-09-09  Eric Blake  <ebb9@byu.net>
12015
12016         test-link: allow Linux choice of errno
12017         * tests/test-link.c (main): Relax test for alternate error.
12018
12019         strndup: fix improper m4 caching
12020         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
12021         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
12022         (gl_PREREQ_STRNDUP): Delete.
12023         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
12024         * modules/string (Makefile.am): Substitute it.
12025         * lib/string.in.h (strndup): Modernize prototype.
12026
12027         getcwd: port to mingw
12028         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
12029         different from the POSIX assumptions made throughout the getcwd
12030         module; fortunately, the mingw getcwd does not need replacement.
12031         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
12032         * modules/getcwd-tests: New test.
12033         * tests/test-getcwd.c: Likewise.
12034
12035         link: fix platform bugs
12036         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
12037         * lib/link.c (link): Work around them.  Fix related mingw bug.
12038         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
12039         * modules/unistd (Makefile.am): Substitute it.
12040         * lib/unistd.in.h (link): Declare replacement.
12041         * doc/posix-functions/link.texi (link): Document this.
12042         * modules/link (Depends-on): Add strdup-posix, sys_stat.
12043
12044         test-link: consolidate into single C program, test more cases
12045         * tests/test-link.sh: Delete.
12046         * tests/test-link.c: Test more error conditions.  Exposes bugs on
12047         at least Cygwin and Solaris.
12048         * modules/link-tests (Files): Remove unused file.
12049         (Depends-on): Add errno, sys_stat.
12050         (Makefile.am): Simplify.
12051
12052 2009-09-08  Bruno Haible  <bruno@clisp.org>
12053
12054         Work around towlower, towupper bug on mingw.
12055         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
12056         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
12057         * doc/posix-functions/towlower.texi: Mention the mingw bug.
12058         * doc/posix-functions/towupper.texi: Likewise.
12059         Reported by Eric Blake.
12060
12061 2009-09-08  Jim Meyering  <meyering@redhat.com>
12062
12063         build: don't try to run autoheader if we don't use it
12064         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
12065         is not used in configure.ac.
12066
12067 2009-09-08  Eric Blake  <ebb9@byu.net>
12068
12069         euidaccess: fix compilation error
12070         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
12071
12072         rawmemchr: relax license
12073         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
12074         okay.
12075         Reported by Jim Meyering.
12076
12077         mkfifoat: new module
12078         * modules/mkfifoat: New file.
12079         * lib/mkfifoat.c: Likewise.
12080         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
12081         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
12082         * modules/sys_stat (Makefile.am): Use them.
12083         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
12084         * MODULES.html.sh (File system functions): Mention module.
12085         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
12086         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
12087         * modules/mkfifoat-tests: New test.
12088         * tests/test-mkfifoat.c: Likewise.
12089
12090         strchrnul: relax license
12091         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
12092         okay.
12093         Reported by Jim Meyering.
12094
12095 2009-09-08  Eric Blake  <ebb9@byu.net>
12096
12097         fstatat: fix compilation on Solaris
12098         * lib/fstatat.c (includes): Add fcntl.h.
12099         Reported by Pádraig Brady.
12100
12101 2009-09-07  Eric Blake  <ebb9@byu.net>
12102
12103         rename: modernize replacement
12104         * modules/rename (Depends-on): Add stdio.
12105         (configure.ac): Declare witness.
12106         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
12107         stdio take care of replacement.
12108         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
12109         * modules/stdio (Makefile.am): Substitute them.
12110         * lib/stdio.in.h (rename): Declare replacement.
12111         * lib/rename.c (includes): Allow cross-compilation to non-windows
12112         machines.
12113         * doc/posix-functions/rename.texi (rename): Improve
12114         documentation.
12115
12116         stdio: sort witness names
12117         * modules/stdio (Makefile.am): Sort replacements.
12118         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
12119         * lib/stdio.in.h: Likewise.
12120
12121         getcwd: minor cleanups
12122         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
12123         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
12124
12125         openat: provide more convenience names
12126         * modules/faccessat (configure.ac): Add C witness.
12127         * lib/unistd.in.h (readlinkat): Fix typo.
12128         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
12129         convenience wrappers.
12130         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
12131         wrappers in syntax checks.
12132
12133 2009-09-06  Eric Blake  <ebb9@byu.net>
12134
12135         doc: fix comments in recent patches
12136         * lib/faccessat.c: Mention correct function.
12137         * lib/fchmodat.c: Likewise.
12138         * lib/fchownat.c: Likewise.
12139         * lib/symlinkat.c: Likewise.
12140         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
12141         constants.
12142
12143         faccessat, symlinkat: continue cleanup of previous patch
12144         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
12145         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
12146         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
12147         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
12148         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
12149         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
12150         set.
12151
12152 2009-09-06  Bruno Haible  <bruno@clisp.org>
12153
12154         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
12155         (fstatat): Declare if GNULIB_FSTATAT is set.
12156         (mkdirat): Declare if GNULIB_MKDIRAT is set.
12157         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
12158         (unlinkat): Declare if GNULIB_UNLINKAT is set.
12159         * modules/fcntl-h (Files): Remove m4/openat.m4.
12160         * modules/sys_stat (Files): Remove m4/openat.m4.
12161         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
12162         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
12163         * modules/unistd (Files): Remove m4/openat.m4.
12164         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
12165         GNULIB_OPENAT.
12166         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
12167         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
12168         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
12169         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
12170         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
12171         gl_OPENAT_DEFAULTS.
12172         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
12173         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
12174         Don't require gl_OPENAT_DEFAULTS.
12175         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
12176         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
12177         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
12178         (gl_OPENAT_DEFAULTS): Remove macro.
12179
12180 2009-09-06  Bruno Haible  <bruno@clisp.org>
12181
12182         * modules/openat (configure.ac): Remove unneeded witness.
12183
12184 2009-09-06  Bruno Haible  <bruno@clisp.org>
12185
12186         Set errno to ENOSYS when a function is entirely unsupported.
12187         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
12188         EOPNOTSUPP.
12189         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
12190         * modules/chown (Depends-on): Remove errno.
12191
12192 2009-09-06  Bruno Haible  <bruno@clisp.org>
12193
12194         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
12195
12196 2009-09-06  Bruno Haible  <bruno@clisp.org>
12197
12198         * lib/sys_stat.in.h: Fix preprocessor command indentation.
12199
12200 2009-09-06  Ben Pfaff  <blp@gnu.org>
12201             Bruno Haible  <bruno@clisp.org>
12202
12203         Work around a glibc bug in strtok_r.
12204         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
12205         Undefine if UNDEFINE_STRTOK_R is set.
12206         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
12207         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
12208         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
12209         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
12210         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
12211         UNDEFINE_STRTOK_R.
12212         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
12213
12214 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
12215
12216         exclude: minor fix
12217         * lib/exclude.c: Include wctype.h
12218
12219 2009-09-06  Akim Demaille  <demaille@gostai.com>
12220
12221         bootstrap: improve error message
12222         * build-aux/bootstrap (find_tool): Upon failure, report the list
12223         of candidates.
12224         Honor the initial value of the envvar.
12225
12226 2009-09-05  Eric Blake  <ebb9@byu.net>
12227
12228         symlinkat: new module
12229         * modules/symlinkat: New file.
12230         * lib/symlinkat.c: Likewise.
12231         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
12232         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
12233         * modules/unistd (Makefile.am): Use them.
12234         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
12235         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
12236         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
12237         * MODULES.html.sh (File system functions): Mention module.
12238         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
12239         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
12240         * modules/symlinkat-tests: New test.
12241         * tests/test-symlinkat.c: Likewise.
12242
12243         test-openat-safer: add more checks
12244         * tests/test-openat-safer.c (main): Check more code paths.
12245
12246 2009-09-05  Jim Meyering  <meyering@redhat.com>
12247
12248         syntax-check: detect unnecessary inclusion of openat.h
12249         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
12250
12251 2009-09-05  Bruno Haible  <bruno@clisp.org>
12252
12253         Support towlower, towupper.
12254         * doc/posix-functions/towlower.texi: Mention module wctype.
12255         * doc/posix-functions/towupper.texi: Likewise.
12256         * lib/wctype.in.h (towlower, towupper): New functions.
12257         * tests/test-wctype.c: Include stdio.h, stdlib.h.
12258         (ASSERT): New macro.
12259         (e): New variable.
12260         (main): Test also towlower, towupper. Test WEOF argument.
12261         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
12262
12263 2009-09-05  Bruno Haible  <bruno@clisp.org>
12264
12265         Fix conversion behaviour when the input is invalid.
12266         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
12267         mark occurring in first pass of indirect conversion.
12268         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
12269         input.
12270         Found by clang's static analyzer.
12271
12272 2009-09-05  Bruno Haible  <bruno@clisp.org>
12273
12274         * tests/test-striconveh.c (main): Test indirect conversion on platforms
12275         where direct conversion is possible.
12276
12277 2009-09-04  Eric Blake  <ebb9@byu.net>
12278
12279         openat: fail with ENOENT on empty name
12280         * lib/openat-proc.c (openat_proc_name): Special-case the empty
12281         buffer.
12282
12283         link-follow: fix logic bug in prior patch
12284         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
12285         reversed sense of yes and no in prior patch.  Avoid confusing
12286         compilation failure with desired semantics.
12287
12288         link-follow: accomodate mingw and cross-compilation
12289         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
12290         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
12291         cross-compilation results to -1, to make linkat easier to
12292         implement when cross-compiling.  Trivially support mingw.
12293         * modules/link-follow (configure.ac): Call new name.
12294         * NEWS: Mention this.
12295
12296 2009-09-03  Eric Blake  <ebb9@byu.net>
12297
12298         faccessat: compile replacement
12299         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
12300         needed.
12301
12302         fts: fix compilation error
12303         * lib/fts.c (includes): Re-add "openat.h", for
12304         openat_needs_fchdir.
12305
12306         faccessat: new module
12307         * modules/faccessat: New file.
12308         * lib/faccessat.c: Likewise.
12309         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
12310         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
12311         * modules/unistd (Makefile.am): Use it.
12312         * lib/unistd.in.h (faccessat): Declare it.
12313         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
12314         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
12315         * MODULES.html.sh (File system functions): Mention it.
12316         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
12317         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
12318
12319         euidaccess: prefer POSIX over non-standard implementation
12320         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
12321         * lib/euidaccess.c (euidaccess): Use it if available.
12322
12323         openat: make template easier to use
12324         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
12325         AT_FUNC_F2 to be undefined.
12326         (VALIDATE_FLAG): New macro; use it to reject bad flags.
12327         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
12328         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
12329         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
12330         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
12331         Likewise.
12332         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
12333         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
12334         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
12335         Likewise.
12336
12337         openat: declare in POSIX headers
12338         * NEWS: Mention this.
12339         * modules/openat (configure.ac): Declare witnesses.
12340         (Depends-on): Add fcntl-h, sys_stat, unistd.
12341         (Include): Mention correct headers.
12342         * modules/fcntl-h (Depends-on): Add link-warning.
12343         (Files): Add openat.m4.
12344         (Makefile.am): Substitute witnesses.
12345         * modules/sys_stat (Files, Makefile.am): Likewise.
12346         * modules/unistd (Files, Makefile.am): Likewise.
12347         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
12348         (gl_OPENAT_DEFAULTS): New macro.
12349         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
12350         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
12351         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
12352         (SYS_STAT_H): Remove unused variable.
12353         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
12354         * lib/fcntl--.h (includes): Remove unneeded header.
12355         * lib/openat-safer.c (includes): Likewise.
12356         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
12357         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
12358         appropriate headers.
12359         (__OPENAT_PREFIX): Delete.
12360         * lib/fcntl.in.h (openat): Provide declaration.
12361         (AT_FDCWD): Fix Solaris bug.
12362         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
12363         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
12364         * lib/fchmodat.c (includes):  Adjust to find declaration.
12365         * lib/fchownat.c (includes): Likewise.
12366         * lib/mkdirat.c (includes): Likewise.
12367         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
12368         still visible.
12369
12370 2009-09-02  Eric Blake  <ebb9@byu.net>
12371
12372         errno: use consistently
12373         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
12374         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
12375         * lib/canonicalize.c (ELOOP): Likewise.
12376         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
12377         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
12378         * lib/lchown.c (EOPNOTSUPP): Likewise.
12379         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
12380         * lib/savewd.c (ESTALE): Likewise.
12381         * lib/settime.c (ENOSYS): Likewise.
12382         * lib/utimens.c (ENOSYS): Likewise.
12383         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
12384         * lib/chdir-safer.c (ELOOP): Likewise.
12385         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
12386         * modules/c-stack (Depends-on): Add errno.
12387         * modules/canonicalize (Depends-on): Likewise.
12388         * modules/chdir-safer (Depends-on): Likewise.
12389         * modules/fdopendir (Depends-on): Likewise.
12390         * modules/inet_ntop (Depends-on): Likewise.
12391         * modules/inet_pton (Depends-on): Likewise.
12392         * modules/lchown (Depends-on): Likewise.
12393         * modules/openat (Depends-on): Likewise.
12394         * modules/savewd (Depends-on): Likewise.
12395         * modules/settime (Depends-on): Likewise.
12396         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
12397
12398         fts: avoid leaking fds
12399         * modules/fts (Depends-on): Add cloexec.
12400         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
12401         flag.
12402
12403         fts: make directory fds more robust
12404         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
12405         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
12406
12407         backupfile, chdir-long, fts, savedir: make safer
12408         * lib/backupfile.c (includes): Use "dirent--.h", since
12409         numbered_backup can write to stderr during readdir.
12410         * lib/savedir.c (includes): Likewise.
12411         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
12412         emulation can write to stderr on failure.
12413         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
12414         * lib/getcwd.c: Document why opendir_safer is unused.
12415         * lib/glob.c: Likewise.
12416         * lib/scandir.c: Likewise.
12417         * lib/openat-proc.c: Likewise, for open_safer.
12418         * modules/backupfile (Depends-on): Add dirent-safer.
12419         * modules/savedir (Depends-on): Likewise.
12420         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
12421         * modules/chdir-long (Depends-on): Add openat-safer.
12422
12423         openat-safer: new module
12424         * modules/openat-safer: New file.
12425         * lib/openat-safer.c: Likewise.
12426         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
12427         * lib/fcntl-safer.h (openat_safer): Declare.
12428         * lib/fcntl--.h (openat): Override.
12429         * MODULES.html.sh (File descriptor based I/O): Mention it.
12430         * lib/openat.h: Add double-inclusion guards.
12431         * lib/openat.c (includes): Only include "fcntl-safer.h", not
12432         "fcntl--.h", so we can implement openat.
12433         * modules/openat-safer-tests: New test.
12434         * tests/test-openat-safer.c: New file.
12435
12436         dirent-safer: new module
12437         * modules/dirent-safer: New file.
12438         * lib/dirent--.h: Likewise.
12439         * lib/dirent-safer.h: Likewise.
12440         * lib/opendir-safer.c: Likewise.
12441         * m4/dirent-safer.m4: Likewise.
12442         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
12443         * modules/dirent-safer-tests: New test.
12444         * tests/test-dirent-safer.c: New file.
12445         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
12446
12447         fdopendir: optimize on mingw
12448         * lib/unistd.in.h (_gl_directory_name): New prototype.
12449         * lib/fchdir.c (_gl_directory_name): Implement it.
12450         (fchdir): Use it to simplify implementation.
12451         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
12452         fchdir, when available, to avoid calling [f]chdir().
12453
12454         fdopendir: split into its own module
12455         * lib/openat.c (fdopendir): Move...
12456         * lib/fdopendir.c: ...into new file.
12457         * modules/fdopendir: New module.
12458         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
12459         * modules/openat (Depends-on): Add fdopendir.
12460         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
12461         fdopendir here.
12462         * modules/savedir (Depends-on): Only need fdopendir, not full
12463         openat.
12464         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
12465         * lib/openat.h (fdopendir): Drop prototype.
12466         * lib/dirent.in.h (fdopendir): Provide prototype.
12467         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
12468         * modules/dirent (Makefile.am): Substitute them.
12469         * MODULES.html.sh (File system functions): Mention it.
12470         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
12471         * modules/fdopendir-tests: New file.
12472         * tests/test-fdopendir.c: Likewise.
12473
12474         fchdir: use more consistent macro convention
12475         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
12476         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
12477         REPLACE_FCHDIR, rather than relying on config.h macros.
12478         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
12479         inside a single make-time REPLACE_FCHDIR block, rather than using
12480         the config.h FCHDIR_REPLACEMENT.
12481         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
12482         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
12483         Manage fstat replacement.
12484         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
12485         REPLACE_FCHDIR.
12486         * modules/sys_stat (Files): Add m4/unistd_h.m4.
12487         (Makefile.am): Substitute REPLACE_FCHDIR.
12488         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
12489         FCHDIR_REPLACEMENT.
12490         * lib/dup-safer.c (dup_safer): Likewise.
12491         * lib/dup2.c (rpl_dup2): Likewise.
12492         * lib/dup3.c (rpl_dup3): Likewise.
12493         * lib/open.c (rpl_open): Likewise.
12494
12495         fchdir: simplify error handling, and support dup3
12496         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
12497         stdbool, malloc-posix, realloc-posix.
12498         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
12499         (ensure_dirs_slot): Return false on allocation failure.
12500         (rpl_dup2): Delete.
12501         (_gl_register_dup): New function.
12502         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
12503         (_gl_register_fd): Close fd on allocation failure.
12504         * lib/fcntl.in.h (_gl_register_fd): Update signature.
12505         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
12506         prototype.
12507         (rpl_dup2_fchdir): Delete prototype.
12508         * lib/open.c (open): Update caller.
12509         * lib/dup2.c (dup2): Track fchdir metadata.
12510         * lib/dup3.c (dup3): Likewise.
12511         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
12512         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
12513
12514 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12515
12516         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
12517         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
12518         don't pass arguments to AC_OUTPUT.
12519
12520 2009-09-02  Bruno Haible  <bruno@clisp.org>
12521
12522         * modules/mkdtemp (License): Relicense under LGPLv2+.
12523         Reported by Paolo Bonzini.
12524
12525 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12526
12527         Replace uses of obsolete autoconf macros in Jim's modules.
12528         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
12529         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
12530         can evoke a warning from autoconf when run with -Wobsolete
12531         enabled.  They were declared obsolete for good reasons (see
12532         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
12533         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
12534         should not continue using the deprecated macros.
12535         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
12536         obsolete Autoconf macros with modern counterparts.
12537         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12538         * m4/dos.m4 (gl_AC_DOS): Likewise.
12539         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
12540         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
12541         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
12542         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
12543         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
12544         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
12545         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
12546         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
12547         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
12548         Likewise.
12549         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
12550         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
12551         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
12552         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
12553         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
12554         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
12555
12556 2009-09-01  Eric Blake  <ebb9@byu.net>
12557
12558         fchdir: fix off-by-one bug in previous patch
12559         * lib/fchdir.c (rpl_fstat): Use correct bounds.
12560         (_gl_unregister_fd): Delete useless if.
12561
12562 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
12563
12564         maint.mk: sort the list of syntax-check rules
12565         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
12566         easier to get a sense of progress when the rules are run sequentially
12567         and take a long time.
12568
12569 2009-09-01  Simon Josefsson  <simon@josefsson.org>
12570
12571         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
12572         * modules/netinet_in: Likewise.
12573         * modules/sys_file: Likewise.
12574         * modules/sys_ioctl: Likewise.
12575         * modules/sys_select: Likewise.
12576         * modules/sys_socket: Likewise.
12577         * modules/sys_stat: Likewise.
12578         * modules/sys_time: Likewise.
12579         * modules/sys_times: Likewise.
12580         * modules/sys_utsname: Likewise.
12581         * modules/sys_wait: Likewise.
12582
12583 2009-09-01  Jim Meyering  <meyering@redhat.com>
12584
12585         fts: help ensure that return values are not ignored
12586         * lib/fts_.h (__GNUC_PREREQ): Define.
12587         (__attribute_warn_unused_result__): Define.
12588         (fts_children, fts_close, fts_open, fts_read): Declare with
12589         __attribute_warn_unused_result__.
12590
12591         fts: fts_close now fails also when closing a dir file descriptor fails
12592         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
12593         and propagate to caller, along with errno.
12594
12595         announce-gen: correct formatting in --help output
12596         * build-aux/announce-gen (usage): Move the one-line description in
12597         --help output "up", to where it belongs, just after Usage:.
12598
12599 2009-08-31  Eric Blake  <ebb9@byu.net>
12600
12601         fchdir: port to mingw
12602         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
12603         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
12604         opened, then use a substitute.
12605         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
12606         replacement.
12607         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
12608         (_gl_register_fd): No need to check stat if open already filters
12609         all directories.
12610         (fchdir): Fix error condition to match POSIX.
12611         * modules/fchdir (Depends-on): Add sys_stat.
12612         * doc/posix-functions/open.texi (open): Document the limitation.
12613         * modules/fchdir-tests: New file.
12614         * tests/test-fchdir.c: Likewise.
12615
12616         canonicalize: allow cross-testing from cygwin to mingw
12617         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
12618         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
12619         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
12620         Likewise.
12621         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
12622         target does not support symlinks.
12623         * tests/test-canonicalize-lgpl.sh: Likewise.
12624
12625         chown: avoid compilation warning on mingw
12626         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
12627         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
12628         mingw.
12629         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
12630         * modules/chown (Depends-on): Add errno.
12631
12632 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
12633
12634         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
12635         command.
12636
12637 2009-08-31  Jim Meyering  <meyering@redhat.com>
12638
12639         canonicalize: remove useless initialization
12640         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
12641         initialization of local, "end".
12642
12643 2009-08-30  Bruno Haible  <bruno@clisp.org>
12644
12645         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
12646         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
12647         ENOSYS.
12648
12649 2009-08-30  Bruno Haible  <bruno@clisp.org>
12650
12651         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
12652         /usr/xpg4/bin/tr when it exists.
12653         * tests/test-pipe-filter-gi1.sh: Likewise.
12654
12655 2009-08-30  Bruno Haible  <bruno@clisp.org>
12656
12657         Work around deficient /usr/bin/id program on Solaris.
12658         * tests/test-file-has-acl.sh (ID): New variable.
12659         * tests/test-set-mode-acl.sh (ID): Likewise.
12660         * tests/test-copy-acl.sh (ID): Likewise.
12661         * tests/test-copy-file.sh (ID): Likewise.
12662
12663 2009-08-30  Bruno Haible  <bruno@clisp.org>
12664
12665         New module 'xstriconveh'.
12666         * lib/xstriconveh.h: New file.
12667         * lib/xstriconveh.c: New file.
12668         * modules/xstriconveh: New file.
12669
12670 2009-08-30  Bruno Haible  <bruno@clisp.org>
12671
12672         Make it easier to use mem_cd_iconveh.
12673         * lib/striconveh.h (iconveh_t): New type.
12674         (iconveh_open, iconveh_close): New declarations.
12675         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
12676         with a single 'const iconveh_t *' argument.
12677         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
12678         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
12679         with a single 'const iconveh_t *' argument.
12680         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
12681         * tests/test-striconveh.c (main): Update.
12682         * NEWS: Mention the change.
12683
12684 2009-08-30  Bruno Haible  <bruno@clisp.org>
12685
12686         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
12687         problem.
12688
12689 2009-08-30  Bruno Haible  <bruno@clisp.org>
12690
12691         Work around iconv_open problem on Solaris.
12692         * lib/iconv_open-solaris.gperf: New file.
12693         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
12694         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
12695         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
12696         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
12697         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
12698         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
12699
12700 2009-08-29  Jim Meyering  <meyering@redhat.com>
12701
12702         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
12703         * top/maint.mk (cvs-check): Remove target; it was just an alias
12704         to the better-named vc-diff-check.
12705         (maintainer-distcheck): Remove rule.  It was used only from
12706         the (alpha/beta/major) target, and all of its commands but one
12707         were coreutils-specific.
12708         (vc-dist): Remove rule.
12709         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
12710         Run vc-diff-check, not vc-dist.
12711         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
12712
12713 2009-08-27  Bruno Haible  <bruno@clisp.org>
12714
12715         * tests/test-bitrotate.c (main): Remove test that uses a shift count
12716         of 0.
12717
12718 2009-08-27  Bruno Haible  <bruno@clisp.org>
12719
12720         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
12721         compilers.
12722         * doc/func.texi: Document the SunPRO C bug.
12723
12724 2009-08-27  Bruno Haible  <bruno@clisp.org>
12725
12726         Fix link error on Solaris.
12727         * tests/test-parse-duration.c (xstrdup): Remove function.
12728
12729 2009-08-26  Pádraig Brady  <P@draigbrady.com>
12730
12731         ignore-value: handle pointer types, too
12732         * lib/ignore-value.h (__attribute__): Remove definition.
12733         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
12734         of a more concise and more-often effective "(void) i" statement.
12735         (ignore_ptr): New function to suppress warnings from functions that
12736         return pointers, and to make it explicit that one function doesn't
12737         handle all cases.
12738
12739 2009-08-25  Bruno Haible  <bruno@clisp.org>
12740
12741         dup2: work around a Linux bug.
12742         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
12743         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
12744         * doc/posix-functions/dup2.texi: Mention the Linux bug.
12745         Reported by Simon Josefsson.
12746
12747 2009-08-25  Jim Meyering  <meyering@redhat.com>
12748
12749         libguestfs uses gnulib
12750         * users.txt: Add libguestfs.
12751
12752 2009-08-24  Eric Blake  <ebb9@byu.net>
12753
12754         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
12755         * lib/pipe2.c (includes): Add binary-io.h.
12756         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
12757
12758 2009-08-24  Bruno Haible  <bruno@clisp.org>
12759
12760         Tolerate declared but missing accept4 syscall.
12761         * lib/accept4.c (accept4): Invoke original accept4 function first, if
12762         available.
12763         * lib/sys_socket.in.h (accept4): If the function is already present,
12764         override it.
12765         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
12766         * modules/accept4 (Makefile.am): Compile accept4.c always.
12767         Reported by Paolo Bonzini and Eric Blake.
12768
12769 2009-08-23  Bruno Haible  <bruno@clisp.org>
12770
12771         New module 'accept4'.
12772         * lib/sys_socket.in.h (accept4): New declaration.
12773         * lib/accept4.c: New file.
12774         * m4/accept4.m4: New file.
12775         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
12776         GNULIB_ACCEPT4, HAVE_ACCEPT4.
12777         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
12778         HAVE_ACCEPT4.
12779         * modules/accept4: New file.
12780         * doc/glibc-functions/accept4.texi: Mention the new module.
12781
12782 2009-08-24  Jim Meyering  <meyering@redhat.com>
12783
12784         progname: also set global program_invocation_name, when possible
12785         Before this change, a libtool-enabled program that calls glibc's
12786         error function would report the program name as
12787         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
12788         * modules/progname (configure.ac): Check for a declaration of
12789         program_invocation_name.
12790         * lib/progname.c:  Include <errno.h>.
12791         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
12792         Set program_invocation_name.
12793
12794 2009-08-23  Bruno Haible  <bruno@clisp.org>
12795
12796         * lib/dup3.c: Include <string.h>.
12797
12798 2009-08-23  Bruno Haible  <bruno@clisp.org>
12799
12800         * lib/dup3.c (dup3): Test only once whether the system actually exists.
12801         * lib/pipe2.c (pipe2): Likewise.
12802         Suggested by Eric Blake.
12803
12804 2009-08-23  Bruno Haible  <bruno@clisp.org>
12805
12806         Tolerate declared but missing dup3 syscall.
12807         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
12808         * lib/unistd.in.h (dup3): If the function is already present,
12809         override it.
12810         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
12811         * modules/dup3 (Makefile.am): Compile dup3.c always.
12812         Reported by Paolo Bonzini.
12813
12814 2009-08-23  Bruno Haible  <bruno@clisp.org>
12815
12816         Tolerate declared but missing pipe2 syscall.
12817         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
12818         available.
12819         * lib/unistd.in.h (pipe2): If the function is already present,
12820         override it.
12821         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
12822         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
12823         Reported by Paolo Bonzini.
12824
12825 2009-08-23  Bruno Haible  <bruno@clisp.org>
12826
12827         * lib/pipe2.c (pipe2): Move #ifs inside function.
12828
12829 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
12830
12831         quotearg: document limitations of quote_these_too
12832         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
12833         those limitations are created.
12834         * lib/quotearg.h (set_char_quoting): Document that digits and
12835         letters that are special after backslash are not permitted.
12836         (quotearg_char): Cross-reference set_char_quoting documentation.
12837
12838 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
12839
12840         quotearg: implement custom_quoting_style
12841         * lib/quotearg.c: (struct quoting_options): Add left_quote and
12842         right_quote fields.
12843         (set_custom_quoting): New public function.
12844         (quotearg_buffer_restyled): Add left_quote and right_quote
12845         arguments, handle them very much like locale quoting, and update
12846         all uses.
12847         (quotearg_n_custom): New public function.
12848         (quotearg_n_custom_mem): New public function.
12849         (quotearg_custom): New public function.
12850         (quotearg_custom_mem): New public function.
12851         * lib/quotearg.h: Prototype and document new public functions.
12852         (enum quoting_style): For escape_quoting_style and
12853         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
12854         ignored even though they're otherwise like c_quoting_style.
12855         Add custom_quoting_style member and document with comparison to
12856         clocale_quoting_style.
12857         * tests/test-quotearg.c (custom_quotes): New array.
12858         (custom_results): New array.
12859         (main): Extend to test custom quoting.
12860
12861 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
12862
12863         quotearg: fix right quote escaping when it's in quote_these_too
12864         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
12865         quote, be sure to prepend only one backslash.
12866         * tests/test-quotearg.c (use_quote_double_quotes): New function.
12867         (main): Test it.
12868
12869 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
12870
12871         quotearg-tests: test escaping of embedded locale quotes
12872         * tests/test-quotearg.c (struct result_strings): Add member for
12873         new input.
12874         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
12875         (inputs): Add new input.
12876         (results_g): Add expected results.
12877         (flag_results): Likewise.
12878         (locale_results): Likewise.
12879         (compare_strings): Check those.
12880
12881 2009-08-23  Bruno Haible  <bruno@clisp.org>
12882
12883         Tests for module 'dup3'.
12884         * modules/dup3-tests: New file.
12885         * tests/test-dup3.c: New file.
12886
12887         New module 'dup3'.
12888         * lib/unistd.in.h (dup3): New declaration.
12889         * lib/dup3.c: New file.
12890         * m4/dup3.m4: New file.
12891         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
12892         HAVE_DUP3.
12893         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
12894         * modules/dup3: New file.
12895         * doc/glibc-functions/dup3.texi: Mention the new module.
12896
12897 2009-08-23  Bruno Haible  <bruno@clisp.org>
12898
12899         Tweak the dup2 test.
12900         * tests/test-dup2.c (main): Create the test file empty. Verify that an
12901         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
12902         the test file is still empty. Fix argument order of lseek.
12903
12904 2009-08-23  Bruno Haible  <bruno@clisp.org>
12905
12906         Avoid test link errors when the modules getopt-gnu, gettext are used.
12907         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
12908         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12909
12910 2009-08-23  Bruno Haible  <bruno@clisp.org>
12911
12912         Fix getdtablesize() on mingw.
12913         * lib/getdtablesize.c (getdtablesize): Implement differently.
12914         * lib/unistd.in.h (getdtablesize): Improve comment.
12915
12916 2009-08-23  Bruno Haible  <bruno@clisp.org>
12917
12918         New module 'mkostemp'.
12919         Based on Ulrich Drepper's 2007-08-10 change in glibc.
12920         * lib/stdlib.in.h (mksotemp): New declaration.
12921         * lib/mkostemp.c: New file, from glibc with modifications.
12922         * lib/tempname.h (GT_FILE): Remove outdated comment.
12923         (gen_tempname): Add flags argument.
12924         * lib/tempname.c (__GT_BIGFILE): Remove macro.
12925         (__GT_FILE): Map to 1.
12926         (small_open, large_open): Remove macros.
12927         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
12928         * lib/mkstemp.c (mkstemp): Update.
12929         * lib/mkdtemp.c (mkdtemp): Likewise.
12930         * m4/mkostemp.m4: New file.
12931         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
12932         HAVE_MKOSTEMP.
12933         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
12934         HAVE_MKOSTEMP.
12935         * modules/mkostemp: New file, based on modules/mkstemp.
12936         * doc/glibc-functions/mkostemp.texi: Mention the new module.
12937         * NEWS: Mention the change.
12938
12939 2009-08-23  Bruno Haible  <bruno@clisp.org>
12940
12941         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
12942         Reported by Eric Blake.
12943
12944 2009-08-23  Bruno Haible  <bruno@clisp.org>
12945
12946         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
12947         Reported by Eric Blake.
12948
12949 2009-08-23  Bruno Haible  <bruno@clisp.org>
12950
12951         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
12952         * modules/pipe2 (Depends-on): Likewise.
12953
12954 2009-08-23  Eric Blake  <ebb9@byu.net>
12955
12956         fcntl-h: add O_TTY_INIT support
12957         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
12958         * tests/test-fcntl-h.c (o): Test it.
12959         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
12960
12961         fcntl-h: rename from fcntl, in preparation for fcntl(2)
12962         * modules/fcntl: Move <fcntl.h> header replacement...
12963         * modules/fcntl-h: ...to new name, so as not to collide with
12964         like-named function.
12965         * tests/test-fcntl.c: Rename...
12966         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
12967         * modules/fcntl-tests: Rename...
12968         * modules/fcntl-h-tests: ...to this.  Update test file name.
12969         * modules/chdir-long (Depends-on): Update clients.
12970         * modules/chdir-safer (Depends-on): Likewise.
12971         * modules/fcntl-safer (Depends-on): Likewise.
12972         * modules/fts (Depends-on): Likewise.
12973         * modules/mkancesdirs (Depends-on): Likewise.
12974         * modules/mkdir-p (Depends-on): Likewise.
12975         * modules/open (Depends-on): Likewise.
12976         * modules/savewd (Depends-on): Likewise.
12977         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
12978         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
12979
12980 2009-08-22  Bruno Haible  <bruno@clisp.org>
12981
12982         * modules/binary-io (License): Relicense under LGPL.
12983         * modules/pipe2 (License): Likewise.
12984
12985 2009-08-22  Bruno Haible  <bruno@clisp.org>
12986
12987         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
12988         return value.
12989         * lib/pipe-filter-gi.c (filter_init): Likewise.
12990         Reported by Eric Blake.
12991
12992 2009-08-22  Bruno Haible  <bruno@clisp.org>
12993
12994         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
12995         * modules/pipe (Depends-on): Add pipe2.
12996
12997 2009-08-22  Bruno Haible  <bruno@clisp.org>
12998
12999         Tests for module 'pipe2'.
13000         * modules/pipe2-tests: New file.
13001         * tests/test-pipe2.c: New file.
13002
13003         New module 'pipe2'.
13004         * lib/unistd.in.h (pipe2): New declaration.
13005         * lib/pipe2.c: New file.
13006         * m4/pipe2.m4: New file.
13007         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
13008         HAVE_PIPE2.
13009         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
13010         * modules/pipe2: New file.
13011         * doc/glibc-functions/pipe2.texi: Mention the new module.
13012
13013 2009-08-22  Bruno Haible  <bruno@clisp.org>
13014
13015         Reference some new glibc functions.
13016         * doc/glibc-functions/accept4.texi: New file.
13017         * doc/glibc-functions/dup3.texi: New file.
13018         * doc/glibc-functions/mkostemp.texi: New file.
13019         * doc/glibc-functions/pipe2.texi: New file.
13020         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
13021         (Glibc sys/socket.h): Refer to accept4.
13022         (Glibc unistd.h): Refer to dup3, pipe2.
13023         Reported by Eric Blake.
13024
13025 2009-08-22  Jim Meyering  <meyering@redhat.com>
13026             Bruno Haible  <bruno@clisp.org>
13027
13028         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
13029         This makes it so packages using automake-1.11's silent-rules option
13030         can print e.g., a single "GEN    configmake.h" line, rather than
13031         the 30+ statements that perform the job.  If you want to see the
13032         actual commands, you can still run "make V=1".
13033         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
13034         so that make output is abbreviated when those variables are defined
13035         appropriately.
13036         * modules/argz: Likewise.
13037         * modules/arpa_inet: Likewise.
13038         * modules/byteswap: Likewise.
13039         * modules/configmake: Likewise.
13040         * modules/dirent: Likewise.
13041         * modules/errno: Likewise.
13042         * modules/fcntl: Likewise.
13043         * modules/float: Likewise.
13044         * modules/fnmatch: Likewise.
13045         * modules/getopt-posix: Likewise.
13046         * modules/glob: Likewise.
13047         * modules/iconv_open: Likewise.
13048         * modules/inttypes: Likewise.
13049         * modules/localcharset: Likewise.
13050         * modules/locale: Likewise.
13051         * modules/math: Likewise.
13052         * modules/netdb: Likewise.
13053         * modules/netinet_in: Likewise.
13054         * modules/poll: Likewise.
13055         * modules/posix_spawnp-tests: Likewise.
13056         * modules/sched: Likewise.
13057         * modules/search: Likewise.
13058         * modules/selinux-h: Likewise.
13059         * modules/signal: Likewise.
13060         * modules/spawn: Likewise.
13061         * modules/stdarg: Likewise.
13062         * modules/stdbool: Likewise.
13063         * modules/stddef: Likewise.
13064         * modules/stdint: Likewise.
13065         * modules/stdio: Likewise.
13066         * modules/stdlib: Likewise.
13067         * modules/string: Likewise.
13068         * modules/strings: Likewise.
13069         * modules/sys_file: Likewise.
13070         * modules/sys_ioctl: Likewise.
13071         * modules/sys_select: Likewise.
13072         * modules/sys_socket: Likewise.
13073         * modules/sys_stat: Likewise.
13074         * modules/sys_time: Likewise.
13075         * modules/sys_times: Likewise.
13076         * modules/sys_utsname: Likewise.
13077         * modules/sys_wait: Likewise.
13078         * modules/sysexits: Likewise.
13079         * modules/time: Likewise.
13080         * modules/unistd: Likewise.
13081         * modules/wchar: Likewise.
13082         * modules/wctype: Likewise.
13083
13084 2009-08-22  Jim Meyering  <meyering@redhat.com>
13085
13086         announce-gen: detect write failure
13087         * build-aux/announce-gen: Add Coda at end.
13088         Remove equivalent-but-more-verbose block at top.
13089
13090 2009-08-19  Akim Demaille  <demaille@gostai.com>
13091
13092         bootstrap: --help to stdout.
13093         * bootstrap (usage): Don't send --help to stderr.
13094         Use a here doc instead of a long string.
13095
13096 2009-08-21  Eric Blake  <ebb9@byu.net>
13097
13098         test-popen-safer: split from test-popen
13099         * tests/test-popen.c (main): Move...
13100         * tests/test-popen.h: ...into new file.
13101         * tests/test-popen-safer2.c: New file.
13102         * modules/popen-tests (Files): Add test-popen.h.
13103         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
13104         Suggested by Bruno Haible.
13105
13106         test-fcntl-safer: split from test-open
13107         * tests/test-open.c (main): Move...
13108         * tests/test-open.h: ...into new file.
13109         * tests/test-fcntl-safer.c: New file.
13110         * modules/open-tests (Files): Add test-open.h.
13111         * modules/fcntl-safer-tests: New file.
13112         Suggested by Bruno Haible.
13113
13114         test-fopen-safer: split from test-fopen
13115         * tests/test-fopen.c (main): Move...
13116         * tests/test-fopen.h: ...into new file.
13117         * tests/test-fopen-safer.c: New file.
13118         * modules/fopen-tests (Files): Add test-fopen.h.
13119         * modules/fopen-safer-tests: New file.
13120         Suggested by Bruno Haible.
13121
13122 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
13123
13124         popen-safer: test O_CLOEXEC at run-time.
13125         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
13126
13127 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
13128
13129         fcntl: move more flags to the header
13130         * lib/cloexec.c: Do not define FD_CLOEXEC here.
13131         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
13132         * lib/fcntl.in.h: Do both things here.
13133
13134 2009-08-21  Jim Meyering  <meyering@redhat.com>
13135
13136         consistently remove $@-t before redirecting to it
13137         * modules/argz: Remove $@-t and $@ before redirecting to the former.
13138         * modules/alloca-opt: Likewise.
13139         * modules/byteswap: Likewise.
13140         * modules/fnmatch: Likewise.
13141         * modules/getopt-posix: Likewise.
13142         * modules/glob: Likewise.
13143         * modules/poll: Likewise.
13144         * modules/posix_spawnp-tests: Likewise.
13145         * modules/sys_socket: Likewise.
13146         * modules/sysexits: Likewise.
13147
13148 2009-08-21  Eric Blake  <ebb9@byu.net>
13149
13150         popen: simplify access to original popen
13151         * lib/popen.c (rpl_popen): No need to worry about popen being a
13152         macro.
13153         Reported by Bruno Haible.
13154
13155 2009-08-20  Eric Blake  <ebb9@byu.net>
13156
13157         build: avoid some compiler warnings
13158         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
13159         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
13160         type.
13161         (new_exclude_segment, excluded_file_pattern_p)
13162         (excluded_file_name_p): Reduce scope.
13163         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
13164         old-style declaration.
13165
13166 2009-08-20  Simon Josefsson  <simon@josefsson.org>
13167
13168         * tests/test-exclude1.sh: Handle Windows EOL.
13169         * tests/test-exclude2.sh: Likewise.
13170         * tests/test-exclude3.sh: Likewise.
13171         * tests/test-exclude4.sh: Likewise.
13172         * tests/test-exclude5.sh: Likewise.
13173         * tests/test-exclude6.sh: Likewise.
13174         * tests/test-exclude7.sh: Likewise.
13175
13176 2009-08-19  Akim Demaille  <demaille@gostai.com>
13177
13178         bootstrap: find sha1sum when named gsha1sum.
13179         * bootstrap (find_tool): New.
13180         ($SHA1SUM): New.
13181         Use it.
13182
13183 2009-08-20  Jim Meyering  <meyering@redhat.com>
13184
13185         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
13186         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
13187         expression that converts "." in a file name to "\." in the resulting
13188         regexp.  Start with a dummy statement, so that prior shell variable
13189         definitions are expanded portably.  Reported by Simon Josefsson.
13190
13191 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
13192
13193         Fix polling for writeability of a screen buffer.
13194         * lib/poll.c: Distinguish input and screen buffers for the
13195         Win32 implementation.
13196         * lib/select.c: Likewise.
13197
13198 2009-08-19  Eric Blake  <ebb9@byu.net>
13199
13200         popen-safer: prevent popen from clobbering std descriptors
13201         * modules/popen-safer: New file.
13202         * lib/popen-safer.c: Likewise.
13203         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
13204         * lib/stdio--.h (popen): Provide override.
13205         * lib/stdio-safer.h (popen_safer): Provide declaration.
13206         * tests/test-popen.c (includes): Partially test this.
13207         * modules/popen-safer-tests: New file, for more tests.
13208         * tests/test-popen-safer.c: Likewise.
13209         * MODULES.html.sh (file stream based Input/Output): Mention it.
13210
13211         tests: test some of the *-safer modules
13212         * modules/fopen-safer (Depends-on): Add fopen.
13213         * modules/fcntl-safer (Depends-on): Add fcntl.
13214         * modules/stdlib-safer (Depends-on): Add stdlib.
13215         (configure.ac): Set indicator.
13216         * modules/unistd-safer (configure.ac): Likewise.
13217         * modules/tmpfile-safer (configure.ac): Likewise.
13218         (Depends-on): Add tmpfile.
13219         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
13220         active.
13221         * tests/test-fopen.c (includes): Test safer versions when they are
13222         in use.
13223         * tests/test-open.c (includes): Likewise.
13224
13225         popen: fix cygwin 1.5 bug when stdin closed
13226         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
13227         * modules/popen: New file.
13228         * modules/popen-tests: Likewise.
13229         * tests/test-popen.c: Likewise.
13230         * m4/popen.m4: Likewise.
13231         * lib/popen.c: Likewise.
13232         * lib/stdio.in.h (popen): New declaration.
13233         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
13234         * modules/stdio (Makefile.am): Likewise.
13235         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
13236
13237 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
13238
13239         maint.mk: give full control over update-copyright exclusions
13240         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
13241         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
13242         (update-copyright): Don't force inclusion of top-level
13243         ChangeLog.  Don't force exclusion of all COPYING files, but make
13244         them the default exclusion instead.
13245
13246 2009-08-16  Bruno Haible  <bruno@clisp.org>
13247
13248         Fix test failures on Solaris 10.
13249         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
13250         tests when Solaris iconv() is used.
13251         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
13252         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
13253         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
13254         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
13255         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
13256
13257 2009-08-16  Bruno Haible  <bruno@clisp.org>
13258
13259         Fix test failures on Solaris 10.
13260         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
13261         'tr' program and pass it as first argument.
13262         * tests/test-pipe-filter-gi1.sh: Likewise.
13263         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
13264         program as first argument.
13265         * tests/test-pipe-filter-gi1.c (main): Likewise.
13266
13267 2009-08-16  Eric Blake  <ebb9@byu.net>
13268
13269         fpurge: fix previous commits
13270         * modules/fpurge (Makefile.am): Make replacement conditional,
13271         partially reverting 2007-04-29 change; missed in previous
13272         attempt.
13273         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
13274         is missing.
13275
13276 2009-08-16  Bruno Haible  <bruno@clisp.org>
13277
13278         Clarify fpurge's effect on the file position.
13279         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
13280         * tests/test-fpurge.c (main): Make a second pass for checking the file
13281         position.
13282
13283 2009-08-16  Bruno Haible  <bruno@clisp.org>
13284
13285         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
13286         declaration of fpurge is missing.
13287         * tests/test-fpurge.c (main): Check that the file has not more contents
13288         than expected. Close the file before removing it.
13289
13290 2009-08-15  Eric Blake  <ebb9@byu.net>
13291
13292         fpurge: don't wrap working cygwin implementation
13293         * lib/fpurge.c (fpurge): Fix comment typo.
13294         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
13295         1.7 to avoid replacement.
13296         * tests/test-fpurge.c (main): Enhance test.
13297
13298 2009-08-15  Eric Blake  <ebb9@byu.net>
13299         and Jim Meyering  <meyering@redhat.com>
13300
13301         test-update-copyright: skip if perl is insufficient
13302         * tests/test-update-copyright.sh: Failure to run maintainer tool
13303         should not cause testsuite failure on cygwin 1.5.
13304
13305 2009-08-14  Eric Blake  <ebb9@byu.net>
13306
13307         doc: mention more functions added in cygwin 1.7.0
13308         * doc/posix-headers/limits.texi (limits.h): Update for recent
13309         cygwin additions.
13310         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
13311         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
13312         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
13313         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
13314         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
13315
13316 2009-08-14  Eric Blake  <ebb9@byu.net>
13317
13318         maint.mk: simplify update-copyright rule
13319         * top/maint.mk (update-copyright-local): Delete, and document how
13320         to do it in cfg.mk instead.
13321         (update-copyright-exclude-regexp): Delete, and document how to do
13322         it in .x-update-copyright instead.
13323         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
13324         exclude ChangeLog.
13325
13326 2009-08-14  Bruno Haible  <bruno@clisp.org>
13327
13328         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
13329
13330 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
13331
13332         maint.mk: support update-copyright-env
13333         * top/maint.mk (update-copyright-env): Define place-holder.
13334         (update-copyright): Expand $(update-copyright-env) before
13335         invoking update-copyright.
13336
13337 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
13338
13339         update-copyright: implement forced reformatting
13340         * build-aux/update-copyright: Implement and document
13341         UPDATE_COPYRIGHT_FORCE.
13342         * tests/test-update-copyright.sh: Test it.
13343
13344 2009-08-14  Eric Blake  <ebb9@byu.net>
13345         and Bruno Haible  <bruno@clisp.org>
13346
13347         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
13348         * tests/test-locale.c: Revert previous patch related to NULL.
13349         * tests/test-stdio.c: Likewise.
13350         * tests/test-stdlib.c: Likewise.
13351         * tests/test-string.c: Likewise.
13352         * tests/test-unistd.c: Likewise.
13353         * modules/time-tests (Depends-on): Add verify.
13354         * modules/wchar-tests (Depends-on): Likewise.
13355         * tests/test-time.c: Test for NULL compliance.
13356         * tests/test-wchar.c: Likewise.
13357         * modules/locale (Depends-on): Add stddef.
13358         * modules/stdio (Depends-on): Likewise.
13359         * modules/stdlib (Depends-on): Likewise.
13360         * modules/string (Depends-on): Likewise.
13361         * modules/time (Depends-on): Likewise.
13362         * modules/unistd (Depends-on): Likewise.
13363         * modules/wchar (Depends-on): Likewise.
13364         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
13365         * lib/stdlib.in.h (includes): Likewise.
13366         * lib/string.in.h (includes): Likewise.
13367         * lib/time.in.h (includes): Likewise.
13368         * lib/unistd.in.h (includes): Likewise.
13369         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
13370         replaced.
13371         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
13372         * m4/stddef_h.m4: New file.
13373         * modules/stddef: Likewise.
13374         * lib/stddef.in.h: Likewise.
13375         * modules/stddef-tests: Likewise.
13376         * tests/test-stddef.c: Likewise.
13377         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
13378         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
13379         * doc/posix-headers/locale.texi (locale.h): Likewise.
13380         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
13381         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
13382         * doc/posix-headers/string.texi (string.h): Likewise.
13383         * doc/posix-headers/time.texi (time.h): Likewise.
13384         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
13385         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
13386
13387 2009-08-14  Eric Blake  <ebb9@byu.net>
13388
13389         doc: improve git diff of texinfo files
13390         * .gitattributes: Add rule for *.texi files, with hint on how to
13391         use it.
13392         Copied from m4, and based on a report by Bruno Haible.
13393
13394 2009-08-14  Bruno Haible  <bruno@clisp.org>
13395
13396         Disable multithread support by default on Cygwin 1.5.x for real.
13397         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
13398
13399 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
13400
13401         update-copyright: much ado about intervals
13402         * build-aux/update-copyright: Implement and document
13403         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
13404         of copyright year intervals.
13405         Also, document UPDATE_COPYRIGHT_YEAR.
13406         * tests/test-update-copyright.sh: Test it.
13407
13408         update-copyright: convert 2-digit to 4-digit years
13409         * build-aux/update-copyright: Implement and document.
13410         * tests/test-update-copyright.sh: Update.
13411
13412 2009-08-14  Jim Meyering  <meyering@redhat.com>
13413
13414         test-exclude: avoid coreutils "make check" failure
13415         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
13416         just as in test-argmatch.c.
13417
13418 2009-08-13  Eric Blake  <ebb9@byu.net>
13419
13420         test-dup2: fix bad assumption
13421         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
13422         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
13423
13424         test-version-etc: fix CRLF portability issue
13425         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
13426         recognize \r.
13427         * tests/test-argp-version-etc-1.sh: Likewise.
13428
13429         getopt: update client modules
13430         * modules/argp (Depends-on): Use getopt-gnu.
13431         * modules/git-merge-changelog (Depends-on): Likewise.
13432         * modules/long-options (Depends-on): Likewise.
13433         * modules/xstrtol (Depends-on): Likewise.
13434
13435 2009-08-13  Simon Josefsson  <simon@josefsson.org>
13436
13437         * tests/test-version-etc.sh: Don't fail on different
13438         project/version.  Don't fail on CRLF differences.  Rewrite to use
13439         multiple -e instead of multiple sed forks, suggested by Eric Blake
13440         <ebb9@byu.net>.
13441         * tests/test-argp-version-etc-1.sh: Likewise.
13442
13443 2009-08-13  Simon Josefsson  <simon@josefsson.org>
13444
13445         * tests/test-version-etc.sh: Don't fail on different
13446         project/version.
13447
13448 2009-08-12  Bruno Haible  <bruno@clisp.org>
13449
13450         Tests for modules 'getopt-posix', 'getopt-gnu'.
13451         * modules/getopt-posix-tests: New file.
13452         * tests/test-getopt.c: New file.
13453         * tests/test-getopt.h: New file.
13454         * tests/test-getopt_long.h: New file.
13455
13456         New modules 'getopt-posix', 'getopt-gnu'.
13457         * modules/getopt-gnu: New file, renamed from modules/getopt.
13458         * modules/getopt-posix: New file.
13459         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
13460         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
13461         (gl_GETOPT): Remove macro.
13462         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
13463         Disable the test against BSD systems that declare optreset. Test
13464         against mingw bug. Test against lack of support of optional arguments
13465         on many platforms.
13466         * doc/glibc-headers/getopt.texi: Update module name and list of
13467         relevant platforms.
13468         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
13469         'getopt-gnu' and more portability problems.
13470         * NEWS: Mention the changes.
13471
13472 2009-08-12  Bruno Haible  <bruno@clisp.org>
13473
13474         Ensure that optarg etc. get declared by <unistd.h>.
13475         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
13476         AC_USE_SYSTEM_EXTENSIONS.
13477         * modules/getopt (Depends-on): Add 'extensions'.
13478
13479 2009-08-12  Bruno Haible  <bruno@clisp.org>
13480
13481         Avoid test link errors.
13482         * modules/pipe-filter-ii-tests (Makefile.am): Define
13483         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
13484         * modules/pipe-filter-gi-tests (Makefile.am): Define
13485         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
13486         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13487
13488 2009-08-12  Bruno Haible  <bruno@clisp.org>
13489
13490         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
13491         gl_GETOPT_SUBSTITUTE before.
13492         (gl_GETOPT): Use it.
13493         * m4/argp.m4 (gl_ARGP): Update.
13494         Reported by Sergey Poznyakoff.
13495
13496         * m4/getopt.m4: Reorder macros.
13497         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
13498         (gl_GETOPT_SUBSTITUTE): Remove macro.
13499
13500 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
13501
13502         Minor improvement in gitlog-to-changelog
13503
13504         * build-aux/gitlog-to-changelog: New option `--format' makes
13505         output format string configurable.
13506
13507 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
13508
13509         Optimize exclude: use hash tables for non-wildcard patterns.
13510
13511         * lib/exclude.c: Include hash.h and mbuiter.h
13512         (struct exclude_pattern, exclude_segment): New data types.
13513         (struct exclude): Rewrite.
13514         (fnmatch_pattern_has_wildcards): New function.
13515         (new_exclude_segment, free_exclude_segment): New functions.
13516         (excluded_file_pattern_p, excluded_file_name_p): New functions.
13517         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
13518         * lib/exclude.h (is_fnmatch_pattern): New prototype.
13519         * modules/exclude: Depend on hash and mbuiter.
13520
13521         * modules/exclude-tests: New file.
13522         * tests/test-exclude.c: New file.
13523         * tests/test-exclude1.sh: New file.
13524         * tests/test-exclude2.sh: New file.
13525         * tests/test-exclude3.sh: New file.
13526         * tests/test-exclude4.sh: New file.
13527         * tests/test-exclude5.sh: New file.
13528         * tests/test-exclude6.sh: New file.
13529         * tests/test-exclude7.sh: New file.
13530
13531 2009-08-12  Bruno Haible  <bruno@clisp.org>
13532
13533         Ensure that getopt() gets declared by <unistd.h>.
13534         * lib/unistd.in.h: Conditionally include getopt.h.
13535         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
13536         Set GNULIB_UNISTD_H_GETOPT.
13537         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13538         GNULIB_UNISTD_H_GETOPT.
13539         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
13540
13541 2009-08-12  Bruno Haible  <bruno@clisp.org>
13542
13543         Clarify logic.
13544         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
13545         gl_replace_getopt instead of GETOPT_H.
13546
13547 2009-08-12  Bruno Haible  <bruno@clisp.org>
13548
13549         * m4/getopt.m4: Add comments.
13550
13551 2009-08-12  Bruno Haible  <bruno@clisp.org>
13552
13553         Disable multithread support by default on Cygwin 1.5.x.
13554         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
13555         set gl_use_threads=no if not specified otherwise.
13556
13557 2009-08-11  Bruno Haible  <bruno@clisp.org>
13558
13559         Avoid compilation error on NetBSD 5.0.
13560         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
13561         * tests/test-stdio.c: Likewise.
13562         * tests/test-stdlib.c: Likewise.
13563         * tests/test-string.c: Likewise.
13564         * tests/test-unistd.c: Likewise.
13565         Reported by Greg Troxel <gdt@ir.bbn.com>
13566         at <https://savannah.gnu.org/support/?106973>.
13567
13568 2009-08-11  Bruno Haible  <bruno@clisp.org>
13569
13570         * modules/dup2-tests (Depends-on): Remove close.
13571
13572         Undo 2009-07-19 commit.
13573         * modules/acl-tests (Depends-on): Remove close.
13574         * modules/binary-io-tests (Depends-on): Likewise.
13575         * modules/closein-tests (Depends-on): Likewise.
13576         * modules/flock-tests (Depends-on): Likewise.
13577         * modules/fsync-tests (Depends-on): Likewise.
13578         * modules/lseek-tests (Depends-on): Likewise.
13579         * modules/pipe-tests (Depends-on): Likewise.
13580         * modules/posix_spawn-tests (Depends-on): Likewise.
13581         * modules/posix_spawnp-tests (Depends-on): Likewise.
13582         * modules/stat-time-tests (Depends-on): Likewise.
13583         * modules/yesno-tests (Depends-on): Likewise.
13584
13585 2009-08-10  Bruno Haible  <bruno@clisp.org>
13586
13587         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
13588
13589 2009-08-10  Bruno Haible  <bruno@clisp.org>
13590
13591         Fix a gcc warning.
13592         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
13593
13594 2009-08-10  Bruno Haible  <bruno@clisp.org>
13595
13596         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
13597         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
13598         not only the first time.
13599         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
13600         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
13601         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
13602         is 1, not only the the first time.
13603
13604 2009-08-10  Bruno Haible  <bruno@clisp.org>
13605
13606         Make it possible to use module 'gethostname' without module 'close'.
13607         * lib/unistd.in.h (close): Evoke a link error only if
13608         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
13609         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13610         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
13611         * modules/unistd (Makefile.am): Substitute
13612         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
13613         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
13614         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
13615         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
13616         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
13617         * modules/sys_ioctl (Makefile.am): Substitute
13618         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
13619         * modules/socket (configure.ac): On native Windows, set
13620         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
13621         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
13622         Reported by Sam Steingold <sds@gnu.org>.
13623
13624 2009-08-10  Bruno Haible  <bruno@clisp.org>
13625
13626         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
13627         * modules/ioctl (configure.ac): Likewise.
13628
13629 2009-08-10  Bruno Haible  <bruno@clisp.org>
13630
13631         Avoid collision between gnulib wrapper and libintl wrapper.
13632         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
13633         already defined in intl/printf.c.
13634         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
13635         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
13636
13637 2009-08-09  Bruno Haible  <bruno@clisp.org>
13638
13639         Make <sys/select.h> really self-contained, also on Solaris 10.
13640         * lib/sys_select.in.h: Include <string.h>.
13641         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
13642         Solaris 10 problem.
13643         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
13644         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
13645         Reported by Jim Meyering.
13646
13647 2009-08-09  Bruno Haible  <bruno@clisp.org>
13648
13649         Avoid warnings from 'aclocal' that are due to a use of macro name
13650         AM_XGETTEXT_OPTION that is not defined in automake.
13651         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
13652         automake.
13653         * modules/error (configure.ac): Likewise.
13654         * modules/propername (configure.ac): Likewise.
13655         * modules/vasprintf (configure.ac): Likewise.
13656         * modules/verror (configure.ac): Likewise.
13657         * modules/xprintf (configure.ac): Likewise.
13658         * modules/xvasprintf (configure.ac): Likewise.
13659
13660 2009-08-08  Bruno Haible  <bruno@clisp.org>
13661
13662         Avoid compilation error in C++ mode.
13663         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
13664         Reported by Sam Steingold <sds@gnu.org>.
13665
13666 2009-08-08  Bruno Haible  <bruno@clisp.org>
13667
13668         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
13669         for the various Unix platforms.
13670         * doc/posix-headers/limits.texi: Update platforms list regarding
13671         HOST_NAME_MAX.
13672         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13673
13674 2009-08-07  Jim Meyering  <meyering@redhat.com>
13675
13676         selinux-at: fix typo in a comment
13677         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
13678         Spotted by Paolo Bonzini.
13679
13680         selinux-at: remove redundant m4 code, add documentation
13681         * modules/selinux-at (configure.ac): Remove redundant code.
13682         LIB_SELINUX is already set via the dependent module, selinux-h.
13683         (Include): Add quotes around selinux-at.h.
13684         * lib/selinux-at.h: Add documentation.
13685         Reported by Bruno Haible in
13686         http://marc.info/?l=gnulib-bug&m=124958988300749
13687
13688 2009-08-07  Bruno Haible  <bruno@clisp.org>
13689
13690         Avoid link error on MacOS X 10.3 and 10.4.
13691         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
13692         on non-ELF systems.
13693         * lib/argp-pv.c (argp_program_version): Likewise.
13694         Reported by Simon Josefsson.
13695
13696 2009-08-07  Simon Josefsson  <simon@josefsson.org>
13697
13698         * tests/test-version-etc.sh: Use $EXEEXT.
13699
13700 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
13701
13702         update-copyright: update documentation to point to maint.mk
13703         * build-aux/update-copyright: Here.
13704
13705 2009-08-06  Jim Meyering  <meyering@redhat.com>
13706
13707         maint.mk: support update-copyright-local
13708         * top/maint.mk (update-copyright-local): Define place-holder.
13709         (update-copyright): Depend on $(update-copyright-local).
13710
13711 2009-08-06  Jim Meyering  <meyering@redhat.com>
13712
13713         selinux-at: new module
13714         Initially written for coreutils, this module will soon be
13715         used by findutils, too.
13716         * MODULES.html.sh [Misc]: Add selinux-at.
13717         * lib/selinux-at.h: New file, from coreutils.
13718         * lib/selinux-at.c: Likewise.
13719         * modules/selinux-at: Likewise.
13720         (License): Change from LGPL to GPL, since it depends
13721         on the GPL'd openat module.
13722
13723         doc: update README
13724         * README: Remove references to cogito.
13725         Remove cvs-repo-updating instructions from 2007.
13726         Don't imply that CVS is better if you have limited disk space.
13727
13728 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
13729
13730         update-copyright: support C-style comments
13731         * build-aux/update-copyright: Implement and document.
13732         * tests/test-update-copyright.sh: Test.
13733
13734 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
13735
13736         update-copyright: support omitted "(C)"
13737         * build-aux/update-copyright: Implement and document.  Also,
13738         allow variable whitespace before "(C)".
13739         * tests/test-update-copyright.sh: Test.
13740
13741 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
13742
13743         update-copyright: don't trip on non-FSF copyright statements
13744         * build-aux/update-copyright: Fix so that the first correctly
13745         formatted FSF copyright statement is recognized no matter what
13746         appears before it.  Update documentation.
13747         * tests/test-update-copyright.sh: Test that.
13748
13749 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
13750
13751         update-copyright: clean up code a little
13752         * build-aux/update-copyright: Append "_re" to the name of any
13753         variable holding a regular expression.
13754         Replace "old" and "new" with "stmt" in variable names.
13755         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
13756         handled correctly.
13757         Format code more consistently.
13758
13759 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
13760
13761         update-copyright-tests: improve portability
13762         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
13763         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
13764
13765 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
13766
13767         update-copyright: support @copyright{} and &copy;
13768         * build-aux/update-copyright: Implement and document.
13769         * tests/test-update-copyright.sh: Test.
13770
13771 2009-08-04  Jim Meyering  <meyering@redhat.com>
13772
13773         update-copyright-tests: correctly test EOL=\r\n handling
13774         * tests/test-update-copyright.sh: Put \r at the end of some lines
13775         for the dos-eol tests.  Based on a patch by Joel E. Denny.
13776
13777         maint.mk: make update-copyright exclusion list more configurable
13778         * top/maint.mk (update-copyright): Default to excluding COPYING,
13779         but allow an override, in case someone does want to update that file.
13780
13781         maint.mk: don't update copyright date in COPYING
13782         * top/maint.mk (update-copyright): Exclude COPYING.
13783
13784         maint.mk: add a copyright-updating rule
13785         * top/maint.mk (update-copyright): New rule.
13786         Derived from coreutils/Makefile.am.
13787
13788         update-copyright: rename some variables
13789         * build-aux/update-copyright: Rename a few variables for clarity.
13790         Tweak syntax.  List Joel E. Denny as coauthor.
13791
13792 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
13793
13794         update-copyright: fix bug for 2-digit last year and add tests
13795         * build-aux/update-copyright: Fix bug.
13796         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
13797         specified.
13798         * modules/update-copyright-tests: New
13799         * tests/test-update-copyright.sh: New.
13800
13801 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
13802
13803         update-copyright: handle leading tabs in line prefix
13804         * build-aux/update-copyright: Count leading tabs as 8 spaces
13805         when computing margin.  This helps with the formatting of
13806         ChangeLogs, for example.
13807         Fix documentation a little.
13808
13809 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
13810
13811         update-copyright: support EOL=\r\n
13812         * build-aux/update-copyright: Implement that.
13813
13814 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
13815
13816         update-copyright: automatically format copyright statements
13817         * build-aux/update-copyright: Implement that.
13818         Also, be a little more predictable and safer by always failing
13819         when the full copyright format is not perfectly recognized as an
13820         unbroken whole.  Discussed at
13821         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
13822         Rewrite documentation.
13823
13824 2009-08-03  Bruno Haible  <bruno@clisp.org>
13825
13826         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
13827
13828 2009-08-02  Bruno Haible  <bruno@clisp.org>
13829
13830         Tests for module 'uname'.
13831         * modules/uname-tests: New file.
13832         * tests/test-uname.c: New file.
13833
13834         New module 'uname'.
13835         * lib/uname.c: New file.
13836         * m4/uname.m4: New file.
13837         * modules/uname: New file.
13838         * doc/posix-functions/uname.texi: Mention the new module.
13839
13840 2009-08-02  Bruno Haible  <bruno@clisp.org>
13841
13842         Tests for module 'sys_utsname'.
13843         * modules/sys_utsname-tests: New file.
13844         * tests/test-sys_utsname.c: New file.
13845
13846         New module 'sys_utsname'.
13847         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
13848         * m4/sys_utsname_h.m4: New file.
13849         * modules/sys_utsname: New file.
13850         * doc/posix-headers/sys_utsname.texi: Mention the new module.
13851
13852 2009-08-02  Bruno Haible  <bruno@clisp.org>
13853
13854         Implicitly initialize the sockets library.
13855         * lib/gethostname.c: Include sockets.h.
13856         (rpl_gethostname): Invoke gl_sockets_startup.
13857         * lib/socket.c: Include sockets.h.
13858         (rpl_socket): Invoke gl_sockets_startup.
13859         * modules/gethostname (Depends-on): Add sockets.
13860         * modules/socket (Depends-on): Likewise.
13861         * tests/test-poll.c: Don't include sockets.h.
13862         (main): Don't invoke gl_sockets_startup.
13863         * tests/test-select.c: Don't include sockets.h.
13864         (main): Don't invoke gl_sockets_startup.
13865
13866 2009-08-02  Bruno Haible  <bruno@clisp.org>
13867
13868         Allow multiple calls to gl_sockets_startup.
13869         * lib/sockets.c (initialized_sockets_version): New variable.
13870         (gl_sockets_startup): Do nothing if already called for this or a higher
13871         version.
13872         (gl_sockets_cleanup): Reset initialized_sockets_version.
13873
13874 2009-08-03  Simon Josefsson  <simon@josefsson.org>
13875
13876         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
13877         different project/version.
13878
13879 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
13880             Bruno Haible  <bruno@clisp.org>
13881
13882         Tests for module 'pipe-filter-gi'.
13883         * modules/pipe-filter-gi-tests: New file.
13884         * tests/test-pipe-filter-gi1.sh: New file.
13885         * tests/test-pipe-filter-gi1.c: New file.
13886         * tests/test-pipe-filter-gi2.sh: New file.
13887         * tests/test-pipe-filter-gi2-main.c: New file.
13888         * tests/test-pipe-filter-gi2-child.c: New file.
13889
13890         New module 'pipe-filter-gi'.
13891         * lib/pipe-filter-gi.c: New file.
13892         * modules/pipe-filter-gi: New file.
13893
13894 2009-08-02  Bruno Haible  <bruno@clisp.org>
13895             Paolo Bonzini  <bonzini@gnu.org>
13896
13897         Tests for module 'pipe-filter-ii'.
13898         * modules/pipe-filter-ii-tests: New file.
13899         * tests/test-pipe-filter-ii1.sh: New file.
13900         * tests/test-pipe-filter-ii1.c: New file.
13901         * tests/test-pipe-filter-ii2.sh: New file.
13902         * tests/test-pipe-filter-ii2-main.c: New file.
13903         * tests/test-pipe-filter-ii2-child.c: New file.
13904
13905         New module 'pipe-filter-ii'.
13906         * lib/pipe-filter.h: New file.
13907         * lib/pipe-filter-ii.c: New file.
13908         * lib/pipe-filter-aux.h: New file.
13909         * modules/pipe-filter-ii: New file.
13910
13911 2009-08-02  Simon Josefsson  <simon@josefsson.org>
13912
13913         * lib/gc-libgcrypt.c: Change copyright to FSF.
13914         * lib/gc-gnulib.c: Likewise.
13915
13916 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
13917
13918         * lib/gethostname.c: Include limits.h.
13919
13920 2009-08-02  Simon Josefsson  <simon@josefsson.org>
13921             Bruno Haible  <bruno@clisp.org>
13922
13923         Ensure HOST_NAME_MAX as part of the gethostname module.
13924         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
13925         define also HOST_NAME_MAX.
13926         * tests/test-gethostname.c: Include <limits.h>.
13927         (main): Check also HOST_NAME_MAX.
13928         * doc/posix-headers/limits.texi: Document the mingw problem.
13929
13930 2009-08-02  Bruno Haible  <bruno@clisp.org>
13931
13932         * lib/gethostname.c (gethostname): Fix handling of large len argument.
13933         Add comments.
13934
13935 2009-03-31  Simon Josefsson  <simon@josefsson.org>
13936
13937         * lib/gethostname.c: Add Windows wrapper.
13938         * m4/gethostname.m4: Look for gethostname in -lws2_32.
13939         * modules/gethostname: Depend on sys_socket & errno, for also
13940         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
13941         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
13942
13943 2009-07-31  Jim Meyering  <meyering@redhat.com>
13944
13945         getloadavg: fix symbol name in comment
13946         * lib/getloadavg.c: Correct a typo I introduced when adding
13947         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
13948         Matt Kraai spotted the problem.
13949
13950 2009-07-29  Matt Kraai  <mkraai@beckman.com>
13951
13952         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
13953         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
13954         code also if ! defined N_NAME_POINTER.
13955         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
13956         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
13957         but the n_name member is a 12-byte array.
13958
13959 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
13960
13961         update-copyright: generalize comment handling
13962         * build-aux/update-copyright: Handle copyright statements
13963         within more comment styles.
13964         Document usage.
13965         Report any file with an external copyright holder or parse failure.
13966
13967 2009-07-29  Jim Meyering  <meyering@redhat.com>
13968
13969         mktime: correct setting of REPLACE_MKTIME
13970         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
13971
13972         update-copyright: new module
13973         * modules/update-copyright: New file.
13974         * build-aux/update-copyright: New file.
13975         * MODULES.html.sh (maint+release support): Add update-copyright.
13976
13977 2009-07-27  Bruno Haible  <bruno@clisp.org>
13978
13979         Fix compilation error when <ctime> is used and mktime is replaced.
13980         * lib/time.in.h (mktime): New declaration.
13981         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
13982         REPLACE_MKTIME instead of defining mktime in config.h.
13983         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
13984         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
13985         Reported by Ross McFarland <rwmcfa1@neces.com>.
13986
13987 2009-07-27  Bruno Haible  <bruno@clisp.org>
13988
13989         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
13990         Reported by Matt Kraai <mkraai@beckman.com>.
13991
13992 2009-07-25  Jim Meyering  <meyering@redhat.com>
13993
13994         maint.mk: avoid warnings about missing files
13995         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
13996         diagnostic when .prev-version does not exist.
13997         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
13998         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
13999         nonexistent cfg.mk.
14000         Suggestions from Simon Josefsson.
14001
14002 2009-07-25  Bruno Haible  <bruno@clisp.org>
14003
14004         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
14005         defined as macros. Needed on QNX 6.4.1.
14006         Reported by Matt Kraai <mkraai@beckman.com>.
14007
14008 2009-07-23  Jim Meyering  <meyering@redhat.com>
14009
14010         maint.mk: invoke "make dist" with a working value of XZ_OPT
14011         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
14012
14013 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
14014
14015         Make fseeko.c compile on QNX.
14016         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
14017
14018 2009-07-22  Peter Simons  <simons@cryp.to>
14019
14020         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
14021         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
14022         * lib/md4.h: Likewise.
14023         * lib/md5.h: Likewise.
14024         * lib/sha1.h: Likewise.
14025         * lib/sha256.h: Likewise.
14026         * lib/sha512.h: Likewise.
14027
14028         tests-sha1: don't assign literal string to 'char *' variable
14029         * tests/test-sha1.c (main): Declare locals with "const" to match
14030         attributes of the right hand side.
14031
14032 2009-07-21  Eric Blake  <ebb9@byu.net>
14033
14034         dup2: fix more mingw problems
14035         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
14036         fd to itself.
14037         * doc/posix-functions/dup2.texi (dup2): Document the bug.
14038         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
14039         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
14040         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
14041         care of mingw bugs.
14042
14043 2009-07-21  Jim Meyering  <meyering@redhat.com>
14044
14045         vc-list-files: avoid failure when /bin/sh is dash
14046         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
14047         On some Debian based systems, /bin/sh is a symlink to dash, and running
14048         this command would omit the "/" following each 'tests' prefix:
14049           dash -x build-aux/vc-list-files -C . tests
14050         That is because bash and dash work differently:
14051           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
14052           bash ok
14053           dash odd
14054
14055 2009-07-21  Eric Blake  <ebb9@byu.net>
14056
14057         dup2-tests: test previous patch
14058         * modules/dup2-tests: New file.
14059         * tests/test-dup2.c: Likewise.
14060         * tests/test-open.c (main): Avoid unspecified behavior.
14061         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
14062         test.
14063
14064         dup2: work around mingw and cygwin 1.5 bug
14065         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
14066         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14067         * modules/unistd (Makefile.am): Substitute it.
14068         * lib/unistd.in.h (dup2): Declare the replacement.
14069         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
14070         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
14071         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
14072         * modules/execute (Depends-on): Add dup2.
14073         * modules/fseterr (Depends-on): Likewise.
14074         * modules/pipe (Depends-on): Likewise.
14075         * modules/posix_spawn-internal (Depends-on): Likewise.
14076
14077 2009-07-21  Bruno Haible  <bruno@clisp.org>
14078
14079         * modules/.gitattributes: New file.
14080
14081 2009-07-20  Bruno Haible  <bruno@clisp.org>
14082
14083         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
14084         (main): Use it.
14085
14086 2009-07-20  Eric Blake  <ebb9@byu.net>
14087
14088         test-pipe: make a bit more robust.
14089         * tests/test-pipe.c (myerr): Allow error messages regardless of
14090         what we do to stderr.
14091         (test_pipe): Rearrange to avoid deadlock.
14092         (child_main): Try a larger read, to ensure we avoided deadlock.
14093         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
14094         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
14095         if misused.
14096
14097 2009-07-19  Jim Meyering  <meyering@redhat.com>
14098
14099         fts: avoid false-positive cycle-detection
14100         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
14101         for each new command line argument.
14102
14103 2009-07-19  Bruno Haible  <bruno@clisp.org>
14104
14105         Fix build error on mingw with the modules sys_select and unistd.
14106         * modules/acl-tests (Depends-on): Add close.
14107         * modules/binary-io-tests (Depends-on): Likewise.
14108         * modules/closein-tests (Depends-on): Likewise.
14109         * modules/flock-tests (Depends-on): Likewise.
14110         * modules/fsync-tests (Depends-on): Likewise.
14111         * modules/lseek-tests (Depends-on): Likewise.
14112         * modules/pipe-tests (Depends-on): Likewise.
14113         * modules/posix_spawn-tests (Depends-on): Likewise.
14114         * modules/posix_spawnp-tests (Depends-on): Likewise.
14115         * modules/stat-time-tests (Depends-on): Likewise.
14116         * modules/yesno-tests (Depends-on): Likewise.
14117
14118 2009-07-19  Bruno Haible  <bruno@clisp.org>
14119
14120         Unify conditionals.
14121         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
14122         macros, not at the compiler macros.
14123         * lib/pipe.c: Likewise.
14124         * lib/execute.c: Likewise.
14125         * lib/spawni.c: Likewise.
14126
14127 2009-07-19  Bruno Haible  <bruno@clisp.org>
14128
14129         Fix handling of closed stdin/stdout/stderr on mingw.
14130         * lib/w32spawn.h: Include unistd.h.
14131         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
14132         file descriptor with O_NOINHERIT flag.
14133         (fd_safer_noinherit): New function, based on fd-safer.c.
14134         (dup_safer_noinherit): New function, based on dup-safer.c.
14135         (undup_safer_noinherit): New function.
14136         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
14137         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
14138         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
14139         instead of fd_safer.
14140         * tests/test-pipe.c: Include <windows.h>.
14141         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
14142
14143         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
14144         from main.
14145         (test_pipe): Pass an extra argument for disambiguation.
14146         (main): Invoke parent_main or child_main.
14147
14148         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
14149         consistently.
14150
14151 2009-07-18  Eric Blake  <ebb9@byu.net>
14152
14153         test-pipe: fix mingw build
14154         * tests/test-pipe.c (main): Avoid fcntl on mingw.
14155
14156 2009-07-18  Bruno Haible  <bruno@clisp.org>
14157
14158         * modules/pipe-tests (Makefile.am): Fix typo.
14159
14160 2009-07-18  Eric Blake  <ebb9@byu.net>
14161
14162         error: fix mingw build
14163         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
14164         Reported by Bruno Haible.
14165
14166         error: avoid undefined use of stdout
14167         * lib/error.c (error, error_at_line): Check that fd 1 is open
14168         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
14169         is handling faults and the close_stdout module wants to report the
14170         detection of closed stdout as an error.
14171
14172 2009-07-17  Eric Blake  <ebb9@byu.net>
14173
14174         pipe: be robust in face of closed fds
14175         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
14176         should cause child to misbehave.
14177         * modules/pipe-tests: New module.
14178         * tests/test-pipe.c: New file.
14179         * tests/test-pipe.sh: New file.
14180         Reported by Akim Demaille.
14181
14182 2009-07-14  Bruno Haible  <bruno@clisp.org>
14183
14184         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
14185         Reported by anonymous kc.
14186
14187 2009-07-07  Jim Meyering  <meyering@redhat.com>
14188
14189         maint.mk: don't look for translatable strings in *.m4 or *.mk
14190         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
14191         when searching for translatable strings.
14192
14193 2009-07-05  Jim Meyering  <meyering@redhat.com>
14194
14195         remove superfluous parentheses in STREQ definition
14196         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
14197         * lib/getugroups.c (STREQ): Likewise.
14198         * lib/fnmatch.c (STREQ): Likewise.
14199         Spotted by Bruno Haible.
14200
14201 2009-07-04  Jim Meyering  <meyering@redhat.com>
14202
14203         argv-iter: new module
14204         * MODULES.html.sh: Add argv-iter.
14205         * lib/argv-iter.c, lib/argv-iter.h: New files.
14206         * modules/argv-iter: New file.
14207         * modules/argv-iter-tests: New file.
14208         * tests/test-argv-iter.c: Test it.
14209
14210 2009-07-04  Bruno Haible  <bruno@clisp.org>
14211
14212         Fix assertion.
14213         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
14214         contains more exact copies of a given entry than file2, leave the extra
14215         copies unpaired rather than aborting.
14216         Reported by Eric Blake.
14217
14218 2009-07-02  Bruno Haible  <bruno@clisp.org>
14219
14220         Speedup git-merge-changelog for git cherry-pick.
14221         * lib/git-merge-changelog.c (struct entries_mapping): New type.
14222         (entries_mapping_get): New function, extracted from compute_mapping.
14223         (entries_mapping_reverse_get): New function.
14224         (compute_mapping): Add a 'full' argument. Return the result in a
14225         'struct entries_mapping'.
14226         (main): Update. Access the mappings through entries_mapping_get.
14227         Reported by Eric Blake.
14228
14229 2009-07-02  Bruno Haible  <bruno@clisp.org>
14230
14231         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
14232         best_i.
14233
14234 2009-07-02  Bruno Haible  <bruno@clisp.org>
14235
14236         Speed up approximate search for matching ChangeLog entries.
14237         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
14238         argument. Call fstrcmp_bounded instead of fstrcmp.
14239         (compute_mapping, try_split_merged_entry, main): Update callers.
14240
14241 2009-07-02  Bruno Haible  <bruno@clisp.org>
14242
14243         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
14244
14245 2009-06-30  Bruno Haible  <bruno@clisp.org>
14246
14247         Reduce the number of uc_is_cased calls.
14248         * lib/unicase.h (casing_suffix_context_t): Add
14249         'first_char_except_ignorable' field.
14250         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
14251         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
14252         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
14253         Update initializer.
14254         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
14255         case-ignorable characters.
14256         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
14257         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
14258         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
14259         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
14260         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
14261
14262 2009-06-30  Bruno Haible  <bruno@clisp.org>
14263
14264         Tests for module 'unicase/ignorable'.
14265         * modules/unicase/ignorable-tests: New file.
14266         * tests/unicase/test-ignorable.c: New file, generated by
14267         gen-uni-tables.
14268
14269         Tests for module 'unicase/cased'.
14270         * modules/unicase/cased-tests: New file.
14271         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
14272         * tests/unicase/test-predicate-part1.h: New file, derived from
14273         tests/unictype/test-predicate-part1.h.
14274         * tests/unicase/test-predicate-part2.h: New file, same as
14275         tests/unictype/test-predicate-part2.h.
14276
14277         Fix evaluation of "Before C" condition of FINAL_SIGMA.
14278         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
14279         (output_casing_properties): New function.
14280         (main): Call it.
14281         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
14282         * lib/unicase/cased.c: Include unictype/bitmap.h.
14283         (uc_is_cased): Define through a bitmap lookup.
14284         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
14285         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
14286         (uc_is_case_ignorable): Define through a bitmap lookup.
14287         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
14288         lib/unictype/bitmap.h.
14289         (Depends-on): Add inline. Clean up.
14290         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
14291         lib/unictype/bitmap.h.
14292         (Depends-on): Add inline. Clean up.
14293         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
14294         recognition.
14295         * tests/unicase/test-u16-tolower.c (main): Likewise.
14296         * tests/unicase/test-u32-tolower.c (main): Likewise.
14297
14298 2009-06-30  Bruno Haible  <bruno@clisp.org>
14299
14300         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
14301         * lib/unicase/u16-casemap.c: Likewise.
14302         * lib/unicase/u32-casemap.c: Likewise.
14303
14304 2009-06-29  Bruno Haible  <bruno@clisp.org>
14305
14306         Define u32_casefold as a wrapper around u32_ct_casefold.
14307         * lib/unicase/u32-casefold.c: Update.
14308         * modules/unicase/u32-casefold (Depends-on): Add
14309         unicase/u32-ct-casefold, unicase/empty-prefix-context,
14310         unicase/empty-suffix-context. Clean up.
14311
14312         Define u16_casefold as a wrapper around u16_ct_casefold.
14313         * lib/unicase/u16-casefold.c: Update.
14314         * modules/unicase/u16-casefold (Depends-on): Add
14315         unicase/u16-ct-casefold, unicase/empty-prefix-context,
14316         unicase/empty-suffix-context. Clean up.
14317
14318         Define u8_casefold as a wrapper around u8_ct_casefold.
14319         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
14320         * lib/unicase/u8-casefold.c: Update.
14321         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
14322         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
14323
14324         Define u32_totitle as a wrapper around u32_ct_totitle.
14325         * lib/unicase/u32-totitle.c: Update.
14326         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
14327         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
14328
14329         Define u16_totitle as a wrapper around u16_ct_totitle.
14330         * lib/unicase/u16-totitle.c: Update.
14331         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
14332         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
14333
14334         Define u8_totitle as a wrapper around u8_ct_totitle.
14335         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
14336         functions.
14337         (FUNC): Delegate to U_CT_TOTITLE.
14338         * lib/unicase/u8-totitle.c: Update.
14339         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
14340         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
14341
14342         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
14343         invocation.
14344         * modules/unicase/u32-tolower (Depends-on): Add
14345         unicase/empty-prefix-context, unicase/empty-suffix-context.
14346
14347         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
14348         invocation.
14349         * modules/unicase/u16-tolower (Depends-on): Add
14350         unicase/empty-prefix-context, unicase/empty-suffix-context.
14351
14352         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
14353         * modules/unicase/u8-tolower (Depends-on): Add
14354         unicase/empty-prefix-context, unicase/empty-suffix-context.
14355
14356         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
14357         invocation.
14358         * modules/unicase/u32-toupper (Depends-on): Add
14359         unicase/empty-prefix-context, unicase/empty-suffix-context.
14360
14361         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
14362         invocation.
14363         * modules/unicase/u16-toupper (Depends-on): Add
14364         unicase/empty-prefix-context, unicase/empty-suffix-context.
14365
14366         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
14367         * modules/unicase/u8-toupper (Depends-on): Add
14368         unicase/empty-prefix-context, unicase/empty-suffix-context.
14369
14370         New module 'unicase/u32-ct-casefold'.
14371         * lib/unicase/u32-ct-casefold.c: New file.
14372         * modules/unicase/u32-ct-casefold: New file.
14373
14374         New module 'unicase/u16-ct-casefold'.
14375         * lib/unicase/u16-ct-casefold.c: New file.
14376         * modules/unicase/u16-ct-casefold: New file.
14377
14378         New module 'unicase/u8-ct-casefold'.
14379         * lib/unicase/u8-ct-casefold.c: New file.
14380         * lib/unicase/u-ct-casefold.h: New file, derived from
14381         lib/unicase/u-casefold.h.
14382         * modules/unicase/u8-ct-casefold: New file.
14383
14384         New module 'unicase/u32-ct-totitle'.
14385         * lib/unicase/u32-ct-totitle.c: New file.
14386         * modules/unicase/u32-ct-totitle: New file.
14387
14388         New module 'unicase/u16-ct-totitle'.
14389         * lib/unicase/u16-ct-totitle.c: New file.
14390         * modules/unicase/u16-ct-totitle: New file.
14391
14392         New module 'unicase/u8-ct-totitle'.
14393         * lib/unicase/u8-ct-totitle.c: New file.
14394         * lib/unicase/u-ct-totitle.h: New file, derived from
14395         lib/unicase/u-totitle.h.
14396         * modules/unicase/u8-ct-totitle: New file.
14397
14398         New module 'unicase/u32-ct-tolower'.
14399         * lib/unicase/u32-ct-tolower.c: New file.
14400         * modules/unicase/u32-ct-tolower: New file.
14401
14402         New module 'unicase/u16-ct-tolower'.
14403         * lib/unicase/u16-ct-tolower.c: New file.
14404         * modules/unicase/u16-ct-tolower: New file.
14405
14406         New module 'unicase/u8-ct-tolower'.
14407         * lib/unicase/u8-ct-tolower.c: New file.
14408         * modules/unicase/u8-ct-tolower: New file.
14409
14410         New module 'unicase/u32-ct-toupper'.
14411         * lib/unicase/u32-ct-toupper.c: New file.
14412         * modules/unicase/u32-ct-toupper: New file.
14413
14414         New module 'unicase/u16-ct-toupper'.
14415         * lib/unicase/u16-ct-toupper.c: New file.
14416         * modules/unicase/u16-ct-toupper: New file.
14417
14418         New module 'unicase/u8-ct-toupper'.
14419         * lib/unicase/u8-ct-toupper.c: New file.
14420         * modules/unicase/u8-ct-toupper: New file.
14421
14422         Add context arguments to u*_casemap functions.
14423         * lib/unicase/unicasemap.h: Include unicase.h.
14424         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
14425         suffix_context arguments.
14426         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
14427         functions.
14428         (FUNC): Add prefix_context and suffix_context arguments. Use
14429         uc_is_cased and uc_is_case_ignorable.
14430         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
14431         * lib/unicase/u16-casemap.c: Likewise.
14432         * lib/unicase/u32-casemap.c: Likewise.
14433         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
14434         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
14435         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
14436         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
14437         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
14438         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
14439
14440         New module 'unicase/u32-suffix-context'.
14441         * lib/unicase/u32-suffix-context.c: New file.
14442         * modules/unicase/u32-suffix-context: New file.
14443
14444         New module 'unicase/u16-suffix-context'.
14445         * lib/unicase/u16-suffix-context.c: New file.
14446         * modules/unicase/u16-suffix-context: New file.
14447
14448         New module 'unicase/u8-suffix-context'.
14449         * lib/unicase/u8-suffix-context.c: New file.
14450         * lib/unicase/u-suffix-context.h: New file.
14451         * modules/unicase/u8-suffix-context: New file.
14452
14453         New module 'unicase/empty-suffix-context'.
14454         * lib/unicase/empty-suffix-context.c: New file.
14455         * modules/unicase/empty-suffix-context: New file.
14456
14457         New module 'unicase/u32-prefix-context'.
14458         * lib/unicase/u32-prefix-context.c: New file.
14459         * modules/unicase/u32-prefix-context: New file.
14460
14461         New module 'unicase/u16-prefix-context'.
14462         * lib/unicase/u16-prefix-context.c: New file.
14463         * modules/unicase/u16-prefix-context: New file.
14464
14465         New module 'unicase/u8-prefix-context'.
14466         * lib/unicase/u8-prefix-context.c: New file.
14467         * lib/unicase/u-prefix-context.h: New file.
14468         * lib/unicase/context.h: New file.
14469         * modules/unicase/u8-prefix-context: New file.
14470
14471         New module 'unicase/empty-prefix-context'.
14472         * lib/unicase/empty-prefix-context.c: New file.
14473         * modules/unicase/empty-prefix-context: New file.
14474
14475         New module 'unicase/ignorable'.
14476         * lib/unicase/ignorable.c: New file.
14477         * modules/unicase/ignorable: New file.
14478
14479         New module 'unicase/cased'.
14480         * lib/unicase/caseprop.h: New file.
14481         * lib/unicase/cased.c: New file.
14482         * modules/unicase/cased: New file.
14483
14484         New functions for case mapping of substrings.
14485         * lib/unicase.h (casing_prefix_context_t): New type.
14486         (unicase_empty_prefix_context): New variable.
14487         (u8_casing_prefix_context, u16_casing_prefix_context,
14488         u32_casing_prefix_context, u8_casing_prefixes_context,
14489         u16_casing_prefixes_context, u32_casing_prefixes_context): New
14490         declarations.
14491         (casing_suffix_context_t): New type.
14492         (unicase_empty_suffix_context): New variable.
14493         (u8_casing_suffix_context, u16_casing_suffix_context,
14494         u32_casing_suffix_context, u8_casing_suffixes_context,
14495         u16_casing_suffixes_context, u32_casing_suffixes_context,
14496         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
14497         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
14498         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
14499         declarations.
14500
14501 2009-06-28  Jim Meyering  <meyering@redhat.com>
14502
14503         boostrap: indent only with spaces
14504         * build-aux/bootstrap: Indent only with spaces, never TABs.
14505
14506         bootstrap: split long lines
14507         * build-aux/bootstrap: Keep line length < 80.
14508
14509         bootstrap: sync from coreutils
14510         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
14511         just as autoreconf does.  Verify a list of prerequisite
14512         package-name,version-number pairs if defined in bootstrap.conf.
14513         Refer to README-prereq, if prerequisites are not satisfied.
14514
14515 2009-06-27  Eric Blake  <ebb9@byu.net>
14516
14517         tests: add test for bogus NULL definition
14518         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
14519         * tests/test-stdlib.c: Likewise.
14520         * tests/test-string.c: Likewise.
14521         * tests/test-locale.c: Likewise.
14522         * tests/test-unistd.c: Likewise.
14523         * modules/stdio-tests (Depends-on): Add verify.
14524         * modules/stdlib-tests (Depends-on): Likewise.
14525         * modules/string-tests (Depends-on): Likewise.
14526         * modules/locale-tests (Depends-on): Likewise.
14527         * modules/unistd-tests (Depends-on): Likewise.
14528
14529 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
14530
14531         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
14532         self-explaining comment.
14533         * m4/selinux-selinux-h: Update serial.
14534         (gl_LIBSELINUX): New macro, adding a warning for missing development
14535         packages to code extracted from...
14536         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
14537         Add warning for missing development packages here, too.
14538
14539 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
14540
14541         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
14542
14543 2009-06-25  Eric Blake  <ebb9@byu.net>
14544
14545         version-etc: fix regression
14546         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
14547         gcc.
14548         (version_etc): Use it, to catch bugs with trailing NULL.
14549         * lib/version-etc.c (version_etc_arn): Delete unused argument.
14550         (version_etc_va): Fix logic bug.
14551         * modules/version-etc-tests: Add test.
14552         * tests/test-version-etc.c: New file.
14553         * tests/test-version-etc.sh: Likewise.
14554
14555 2009-06-25  Sam Steingold  <sds@gnu.org>
14556
14557         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
14558         mbtowc declaration.
14559
14560 2009-06-25  Eric Blake  <ebb9@byu.net>
14561
14562         fpurge: migrate into <stdio.h>
14563         * lib/fpurge.h: Delete...
14564         * lib/stdio.in.h (fpurge): ...and declare here, instead.
14565         * lib/fpurge.c (fpurge): Change declaring header.
14566         * modules/fpurge (Files): Drop deleted file.
14567         (Depends-on): Add stdio.
14568         (configure.ac): Set witness.
14569         * modules/stdio (Makefile.am): Support fpurge macros.
14570         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
14571         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
14572         * lib/fflush.c: Update client.
14573         * tests/test-fpurge.c: Likewise.
14574         * NEWS: Mention the change.
14575
14576 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
14577
14578         * lib/argp-version-etc.c (program_authors): Add const
14579         qualifier.
14580         * lib/version-etc.c: Fix typos in the comments.
14581         * modules/argp-version-etc: Depends on version-etc.
14582
14583 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
14584
14585         argp-version-etc: new module.
14586
14587         * lib/argp-version-etc.c: New file.
14588         * lib/argp-version-etc.h: New file.
14589         * modules/argp-version-etc: New file.
14590         * modules/argp-version-etc-tests: New file.
14591         * tests/test-argp-version-etc.c: New test.
14592         * tests/test-argp-version-etc-1.sh: New test.
14593
14594 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
14595
14596         Provide additional interfaces and documentation for version-etc
14597         module.
14598
14599         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
14600         interfaces.
14601         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
14602         prototypes.
14603
14604 2009-06-24  Bruno Haible  <bruno@clisp.org>
14605
14606         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
14607         HAVE_LIB${NAME} macro.
14608         Reported by Sam Steingold <sds@gnu.org>.
14609
14610 2009-06-23  Simon Josefsson  <simon@josefsson.org>
14611
14612         * modules/hash-tests (test_hash_LDADD): Link to libintl when
14613         needed.
14614
14615 2009-06-21  Bruno Haible  <bruno@clisp.org>
14616
14617         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
14618         work.
14619         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
14620         together with LIB${NAME}, LTLIB${NAME}.
14621         Reported by Sam Steingold <sds@gnu.org>.
14622
14623 2009-06-20  Jim Meyering  <meyering@redhat.com>
14624
14625         tests: make sc_require_test_exit_idiom more generic
14626         * top/maint.mk (Exit_witness_file): New overridable variable.
14627         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
14628         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
14629
14630 2009-06-19  Jim Meyering  <meyering@redhat.com>
14631
14632         hash: reverse order of src/dst parameters in an internal interface
14633         * lib/hash.c (transfer_entries): Reverse order of parameters to
14634         put DST before SRC.  Adjust callers.
14635
14636         tests: test-hash: avoid wholesale duplication
14637         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
14638         Instead, use a loop and add a single conditional.
14639
14640         tests: test-hash: allow seed selection via a command line argument
14641         * tests/test-hash.c (get_seed): New function.
14642         (main): Use it.
14643
14644 2009-06-19  Eric Blake  <ebb9@byu.net>
14645
14646         hash: avoid memory leak on allocation failure
14647         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
14648         failure.  Factor repeated algorithm...
14649         (transfer_entries): ...into new helper routine.
14650         (hash_delete): React to hash_rehash return value.
14651
14652         hash: reduce memory pressure in hash_rehash no-op case
14653         * lib/hash.c (next_prime): Avoid overflow.
14654         (hash_initialize): Factor bucket size computation...
14655         (compute_bucket_size): ...into new helper function.
14656         (hash_rehash): Use new function and open coding to reduce memory
14657         pressure, and avoid a memory leak in USE_OBSTACK code.
14658         Reported by Jim Meyering.
14659
14660 2009-06-18  Eric Blake  <ebb9@byu.net>
14661
14662         hash: make rotation more obvious
14663         * modules/hash (Depends-on): Add bitrotate and stdint.
14664         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
14665         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
14666         (SIZE_MAX): Rely on headers for definition.
14667         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
14668         (raw_hasher): Use rotr_sz.
14669         Suggested by Jim Meyering.
14670
14671         hash: fix memory leak in last patch
14672         * lib/hash.c (hash_rehash): Avoid memory leak.
14673
14674         hash: avoid no-op rehashing
14675         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
14676
14677         hash: provide default callback functions
14678         * lib/hash.c (raw_hasher, raw_comparator): New functions.
14679         (hash_initialize): Use them as defaults.
14680         * tests/test-hash.c (main): Test this.
14681
14682         hash: minor optimization
14683         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
14684         when possible.
14685         (hash_initialize): Document this promise.
14686         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
14687         * tests/test-hash.c (hash_compare_strings): Test this.
14688
14689 2009-06-18  Bruno Haible  <bruno@clisp.org>
14690
14691         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
14692         going to be replaced anyway.
14693
14694 2009-06-18  Bruno Haible  <bruno@clisp.org>
14695
14696         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
14697         in one place.
14698         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
14699         be replaced anyway.
14700
14701 2009-06-18  Eric Blake  <ebb9@byu.net>
14702
14703         hash: check for resize before insertion
14704         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
14705         threshold before insertion, so that a pathological hash_rehash
14706         that fills every bucket can still trigger another rehash.
14707
14708 2009-06-18  Jim Meyering  <meyering@redhat.com>
14709
14710         hash-tests: add a loop around the small tests
14711         * tests/test-hash.c (main): Repeat small tests with selected
14712         small initial table sizes.
14713
14714 2009-06-17  Eric Blake  <ebb9@byu.net>
14715
14716         hash: minor cleanups
14717         * lib/hash.h (hash_entry): Make opaque, by moving...
14718         * lib/hash.c (hash_entry): ...here.
14719         (hash_insert): Clarify restrictions on what can be inserted.
14720         (hash_get_next): Clarify when it is safe to remove an element
14721         during traversal.
14722         (check_tuning): Skip verification when tuning is known safe.
14723         (hash_initialize): Clarify restrictions on tuning.
14724
14725 2009-06-17  Jim Meyering  <jim@meyering.net>
14726         and Eric Blake  <ebb9@byu.net>
14727
14728         hash-tests: new module
14729         * modules/hash-tests: New file.
14730         * tests/test-hash.c: New file.
14731
14732 2009-06-17  Eric Blake  <ebb9@byu.net>
14733
14734         strstr-simple: document new module
14735         * MODULES.html.sh: Document new module.
14736
14737         strstr, strcasestr: replace on platforms with broken memchr
14738         * modules/strstr: Split into...
14739         * modules/strstr-simple: ...new module that does not care about
14740         performance, but does care about glibc bug.
14741         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
14742         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
14743         if platform memchr is broken, per Debian bug 521737.
14744         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
14745         memchr.
14746         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
14747         * doc/posix-functions/strstr.texi (strstr): Document the fix.
14748         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
14749         * modules/mountlist (Depends-on): Add strstr-simple.
14750         * modules/gen-uni-tables (Depends-on): Likewise.
14751         * modules/argz (Depends-on): Add strstr.
14752
14753 2009-06-17  Bruno Haible  <bruno@clisp.org>
14754
14755         * modules/posix_spawn-internal (Depends-on): Add errno.
14756
14757 2009-06-17  Bruno Haible  <bruno@clisp.org>
14758
14759         Define missing ESTALE on Interix 3.5.
14760         * lib/errno.in.h (ESTALE): Assign a value if missing.
14761         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
14762         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
14763         missing.
14764         * doc/posix-headers/errno.texi: Mention the Interix bug.
14765         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
14766
14767 2009-06-15  Eric Blake  <ebb9@byu.net>
14768
14769         memchr, memchr2: add valgrind exception
14770         * lib/memchr.valgrind: New file.
14771         * lib/memchr2.valgrind: New file.
14772         * modules/memchr (Files): Distribute valgrind file.
14773         * modules/memchr2 (Files): Likewise.
14774
14775         docs: memchr is no longer obsolete
14776         * MODULES.html.sh: Move memchr from obsolete to string.h section.
14777         * lib/string.in.h (memchr): Simplify logic.
14778
14779 2009-06-14  Jim Meyering  <meyering@redhat.com>
14780
14781         link-follow: fix the "checking..." message to not mention trailing slash
14782         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
14783         never considered trailing slashes.
14784
14785 2009-06-14  Bruno Haible  <bruno@clisp.org>
14786
14787         * m4/memchr.m4: Mention also the bug on IA-64.
14788         * doc/posix-functions/memchr.texi: Likewise.
14789
14790 2009-06-12  Eric Blake  <ebb9@byu.net>
14791
14792         memchr: detect broken x86_64 and alpha implementations
14793         * modules/memchr-tests (Depends-on): Move mmap detection...
14794         * modules/memchr (Depends-on): ...here.
14795         (configure.ac): Set indicator.
14796         * lib/string.in.h (memchr): Declare replacement.
14797         * modules/string (Makefile.am): Trigger replacement.
14798         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
14799         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
14800         bugs.
14801         * doc/posix-functions/memchr.texi (memchr): Document the bug.
14802         * modules/getpagesize (License): Relax license.
14803
14804 2009-06-11  Bruno Haible  <bruno@clisp.org>
14805
14806         * lib/idpriv.h: Add more references.
14807
14808 2009-06-08  Bruno Haible  <bruno@clisp.org>
14809
14810         Tests for module 'idpriv-droptemp'.
14811         * modules/idpriv-droptemp-tests: New file.
14812         * tests/test-idpriv-droptemp.sh: New file.
14813         * tests/test-idpriv-droptemp.su.sh: New file.
14814         * tests/test-idpriv-droptemp.c: New file.
14815
14816         New module 'idpriv-droptemp'.
14817         * lib/idpriv-droptemp.c: New file.
14818         * modules/idpriv-droptemp: New file.
14819
14820 2009-06-08  Bruno Haible  <bruno@clisp.org>
14821
14822         Tests for module 'idpriv-drop'.
14823         * modules/idpriv-drop-tests: New file.
14824         * tests/test-idpriv-drop.sh: New file.
14825         * tests/test-idpriv-drop.su.sh: New file.
14826         * tests/test-idpriv-drop.c: New file.
14827
14828         New module 'idpriv-drop'.
14829         * lib/idpriv.h: New file.
14830         * lib-idpriv-drop.c: New file.
14831         * m4/idpriv.m4: New file.
14832         * modules/idpriv-drop: New file.
14833
14834 2009-06-08  Bruno Haible  <bruno@clisp.org>
14835
14836         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
14837         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
14838         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
14839         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
14840         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
14841         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
14842         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
14843
14844 2009-06-08  Eric Blake  <ebb9@byu.net>
14845
14846         test-strstr: use memory fence, when possible
14847         * tests/test-strstr.c (main): Use memory fence, in order to be
14848         more likely to trigger Debian bug 521737.
14849         * modules/strstr-tests (Files): Pull in additional files.
14850
14851         memchr: no longer obsolete, for wider field testing
14852         * modules/memchr (Status, Notice): Delete, this module is no
14853         longer obsolete.
14854         * modules/vasnprintf (Depends-on): Add memchr.
14855
14856 2009-06-07  Jim Meyering  <meyering@redhat.com>
14857
14858         hash: declare some functions with the warn_unused_result attribute
14859         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
14860
14861 2009-06-07  Bruno Haible  <bruno@clisp.org>
14862
14863         * tests/test-alignof.c: Don't test int64_t if it does not exist.
14864         Reported by Eric Blake.
14865
14866 2009-06-06  Eric Blake  <ebb9@byu.net>
14867
14868         test-alignof: fix typo with long double
14869         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
14870         compiler error.
14871
14872 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
14873
14874         Escape non-texinfo { and }s.
14875         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
14876         markup error.
14877
14878 2009-06-04  Jim Meyering  <meyering@redhat.com>
14879
14880         gitlog-to-changelog: don't infloop on an empty commit log
14881         * build-aux/gitlog-to-changelog: Warn about an empty log message.
14882         Reported by Boris Petersen <transacid@centerim.org>.
14883
14884 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
14885
14886         version-etc: extend for packagers
14887         Add three new configure options, intended for packagers:
14888           --with-packager="packager name"
14889           --with-packager-version="packager-specific version"
14890           --with-packager-bug-reports="packager bug reporting"
14891         An example with coreutils:
14892           $ ./configure \
14893             --with-packager=Gentoo \
14894             --with-packager-bug-report=http://bugs.gentoo.org/ \
14895             --with-packager-version="patchset 1.6"
14896           $ ./src/ls --version | head -n2
14897           ls (GNU coreutils) 7.1-dirty
14898           Packaged by Gentoo (patchset 1.6)
14899         Note that the bug reporting info via --help doesn't show up because
14900         coreutils uses its own custom emit_bug_reporting_address() implementation
14901         in src/system.h.  If it didn't, it'd look like:
14902           $ ./src/ls --help | tail -n4
14903           Report bugs to <bug-coreutils@gnu.org>.
14904           Report Gentoo bugs to <http://bugs.gentoo.org/>.
14905           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
14906           General help using GNU software: <http://www.gnu.org/gethelp/>.
14907         * lib/version-etc.c: Print new information, if provided.
14908         * m4/version-etc.m4: New file.
14909         * modules/version-etc (Files): Add m4/version-etc.m4.
14910         (configure.ac): Add gl_VERSION_ETC.
14911
14912 2009-05-31  Bruno Haible  <bruno@clisp.org>
14913
14914         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
14915         and 'int64_t'.
14916         * modules/alignof-tests (Dependencies): Add stdint.
14917         Reported by Eric Blake.
14918
14919 2009-05-31  Bruno Haible  <bruno@clisp.org>
14920
14921         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
14922         restriction due to compiler bugs.
14923         Reported by Eric Blake.
14924
14925 2009-05-31  Simon Josefsson  <simon@josefsson.org>
14926             Bruno Haible  <bruno@clisp.org>
14927
14928         Fix test-alignof failure.
14929         * lib/alignof.h (alignof_slot): New macro.
14930         (alignof_type): New macro, with the same semantics as the previous
14931         'alignof'.
14932         (alignof): Alias to alignof_slot.
14933         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
14934         check that the results are usable as constant expressions.
14935
14936 2009-05-31  Bruno Haible  <bruno@clisp.org>
14937
14938         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
14939         * tests/test-memchr.c (main): Check that memchr does not read past the
14940         first occurrence of the byte.
14941         * tests/test-strstr.c (main): Update comment.
14942         Suggested by Eric Blake.
14943
14944 2009-05-30  Bruno Haible  <bruno@clisp.org>
14945
14946         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
14947         detail how to use dumpbin.
14948         Reported by David Byron <dbyron@dbyron.com>.
14949
14950 2009-06-02  Simon Josefsson  <simon@josefsson.org>
14951
14952         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
14953
14954 2009-06-02  Simon Josefsson  <simon@josefsson.org>
14955
14956         * m4/manywarnings.m4: Add GCC 4.4 warnings.
14957
14958 2009-05-28  Bruno Haible  <bruno@clisp.org>
14959
14960         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
14961         build-aux/ files.
14962
14963 2009-05-28  Simon Josefsson  <simon@josefsson.org>
14964
14965         * gnulib-tool (func_import): Transform license on build-aux/ files too.
14966
14967 2009-05-27  Simon Josefsson  <simon@josefsson.org>
14968
14969         * gnulib-tool (sed_transform_main_lib_file)
14970         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
14971         regexps.
14972
14973 2009-05-26  Simon Josefsson  <simon@josefsson.org>
14974
14975         * tests/test-strstr.c: Add another self-test.
14976         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
14977         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
14978
14979 2009-05-23  Bruno Haible  <bruno@clisp.org>
14980
14981         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
14982         change.
14983
14984 2009-05-21  Bruno Haible  <bruno@clisp.org>
14985
14986         Simplify use of mode_t varargs.
14987         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
14988         uses 'mode_t' or 'int'.
14989         * lib/openat.c (openat): Likewise.
14990         * lib/open-safer.c (open_safer): Likewise.
14991         * m4/mode_t.m4: New file.
14992         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
14993         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
14994         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
14995         * modules/open (Files): Add m4/mode_t.m4.
14996         * modules/openat (Files): Likewise.
14997         * modules/fcntl-safer (Files): Likewise.
14998         Suggested by Eric Blake.
14999
15000 2009-05-21  Pádraig Brady  <P@draigbrady.com>
15001
15002         * doc/glibc-functions/fallocate.texi: New file.
15003         * doc/gnulib.texi: Include it.
15004
15005 2009-05-21  Eric Blake  <ebb9@byu.net>
15006             Bruno Haible  <bruno@clisp.org>
15007
15008         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
15009         invocations.
15010         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
15011
15012 2009-05-21  Eric Blake  <ebb9@byu.net>
15013             Bruno Haible  <bruno@clisp.org>
15014
15015         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
15016         include_next. Fix of 2008-11-20 commit.
15017         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
15018         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
15019         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
15020         NEXT_MATH_H.
15021         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
15022         instead of NEXT_MATH_H.
15023
15024 2009-05-21  Bruno Haible  <bruno@clisp.org>
15025
15026         Avoid redefinition warnings for SIZE_MAX.
15027         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
15028         Reported by Simon Josefsson.
15029
15030 2009-05-21  Bruno Haible  <bruno@clisp.org>
15031
15032         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
15033         AC_CACHE_VAL.
15034
15035 2009-05-20  Bruno Haible  <bruno@clisp.org>
15036
15037         Make zeroptr.h work on mingw.
15038         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
15039         mprotect.
15040         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
15041         * modules/memchr2-tests (configure.ac): Likewise.
15042         * modules/memcmp-tests (configure.ac): Likewise.
15043         * modules/memmem-tests (configure.ac): Likewise.
15044         * modules/memrchr-tests (configure.ac): Likewise.
15045         Reported by Simon Josefsson.
15046
15047 2009-05-20  Simon Josefsson  <simon@josefsson.org>
15048
15049         * tests/test-glob.c: Include string.h for strcmp prototype.
15050
15051 2009-05-20  Simon Josefsson  <simon@josefsson.org>
15052
15053         * modules/getdelim (Depends-on): Add explicit stdint, although it
15054         was implicitly already pulled in via realloc-posix.
15055         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
15056
15057 2009-05-20  Simon Josefsson  <simon@josefsson.org>
15058
15059         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
15060         G. Christensen" <tgc@jupiterrise.com>.
15061         * m4/sys_socket_h.m4: Check for sa_family_t.
15062         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
15063         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
15064         * tests/test-sys_socket.c: Check that sa_family_t works.
15065
15066 2009-05-18  Eric Blake  <ebb9@byu.net>
15067
15068         maint.mk: allow gnulib_dir in VPATH build
15069         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
15070
15071 2009-05-15  Jim Meyering  <meyering@redhat.com>
15072
15073         maint.mk: Give gnulib_dir a default definition.
15074         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
15075         Thus, most packages no longer need to specify this variable in cfg.mk
15076
15077 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
15078
15079         rename.m4: fix typos that would make non-mingw cross-configure fail
15080         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
15081
15082 2009-05-13  Eric Blake  <ebb9@byu.net>
15083
15084         mmap-anon: avoid out-of-order autoconf expansion
15085         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
15086         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
15087         * modules/memchr-tests (Depends-on): Add extensions.
15088         * modules/memchr2-tests (Depends-on): Add extensions.
15089         * modules/memcmp-tests (Depends-on): Add extensions.
15090         * modules/memmem-tests (Depends-on): Add extensions.
15091         * modules/memrchr-tests (Depends-on): Add extensions.
15092
15093 2009-05-13  Bruno Haible  <bruno@clisp.org>
15094
15095         Make some tests ISO C 99 compliant.
15096         * tests/zerosize-ptr.h: New file.
15097         * tests/test-memchr.c: Include zerosize-ptr.h.
15098         (main): Use a zero-size object pointer instead of NULL.
15099         * tests/test-memchr2.c: Include zerosize-ptr.h.
15100         (main): Use a zero-size object pointer instead of NULL.
15101         * tests/test-memcmp.c: Include zerosize-ptr.h.
15102         (main): Use a zero-size object pointer instead of NULL.
15103         * tests/test-memmem.c: Include zerosize-ptr.h.
15104         (main): Use a zero-size object pointer instead of NULL.
15105         * tests/test-memrchr.c: Include zerosize-ptr.h.
15106         (main): Use a zero-size object pointer instead of NULL.
15107         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
15108         m4/mmap-anon.m4.
15109         (Depends-on): Add getpagesize.
15110         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
15111         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
15112         m4/mmap-anon.m4.
15113         (Depends-on): Add getpagesize.
15114         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
15115         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
15116         m4/mmap-anon.m4.
15117         (Depends-on): Add getpagesize.
15118         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
15119         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
15120         m4/mmap-anon.m4.
15121         (Depends-on): Add getpagesize.
15122         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
15123         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
15124         m4/mmap-anon.m4.
15125         (Depends-on): Add getpagesize.
15126         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
15127
15128 2009-05-12  Bruno Haible  <bruno@clisp.org>
15129
15130         Tests for module 'alignof'.
15131         * modules/alignof-tests: New file.
15132         * tests/test-alignof.c: New file.
15133
15134 2009-05-12  Bruno Haible  <bruno@clisp.org>
15135
15136         Fix alignof macro.
15137         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
15138         vendor compilers that are always correct.
15139
15140 2009-05-12  Bruno Haible  <bruno@clisp.org>
15141
15142         Make the MAP_ANONYMOUS detection work on HP-UX 11.
15143         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
15144         not whether its fully works.
15145
15146 2009-05-12  Bruno Haible  <bruno@clisp.org>
15147
15148         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
15149
15150 2009-05-12  Jim Meyering  <meyering@redhat.com>
15151
15152         * top/maint.mk: Adjust backslash alignment.
15153
15154 2009-05-11  Simon Josefsson  <simon@josefsson.org>
15155
15156         * top/maint.mk: Make $(srcdir)/build-aux configurable.
15157
15158 2009-05-11  Eric Blake  <ebb9@byu.net>
15159
15160         argp: avoid undefined behavior
15161         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
15162         macros.
15163
15164 2009-05-08  Simon Josefsson  <simon@josefsson.org>
15165
15166         * tests/test-vc-list-files-git.sh: Do git config of user.email and
15167         user.name to prevent git commit from complaining.
15168
15169 2009-05-10  Bruno Haible  <bruno@clisp.org>
15170
15171         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
15172         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
15173         it rewrites every file name only once.
15174         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
15175
15176 2009-05-08  Bruno Haible  <bruno@clisp.org>
15177
15178         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
15179         instead of 'max'.
15180
15181 2009-05-08  Simon Josefsson  <simon@josefsson.org>
15182
15183         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
15184         sockaddr_storage test.
15185
15186 2009-05-07  Simon Josefsson  <simon@josefsson.org>
15187
15188         * modules/sys_socket (Makefile.am): Substitute
15189         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
15190         * m4/sys_socket_h.m4: Check for sockaddr_storage.
15191         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
15192         * tests/test-sys_socket.c: Check sockaddr_storage.
15193
15194 2009-05-08  Bruno Haible  <bruno@clisp.org>
15195
15196         New module 'alignof'.
15197         * lib/alignof.h: New file.
15198         * modules/alignof: New file.
15199
15200 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
15201             Bruno Haible  <bruno@clisp.org>
15202
15203         Fix test-file-has-acl on FreeBSD.
15204         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
15205         mask is implicitly added.
15206         * tests/test-file-has-acl.c: Include <signal.h>.
15207         (main): Terminate the test after 5 seconds.
15208         * modules/acl-tests (configure.ac): Check for alarm function.
15209
15210 2009-05-04  Bruno Haible  <bruno@clisp.org>
15211
15212         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
15213         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
15214         * modules/errno (configure.ac): Drop AC_REQUIRE.
15215         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
15216         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
15217
15218 2009-05-04  Simon Josefsson  <simon@josefsson.org>
15219
15220         * modules/glob-tests: New module.
15221         * tests/test-glob.c: Add.
15222
15223 2009-05-04  Simon Josefsson  <simon@josefsson.org>
15224
15225         * modules/fnmatch-tests: New module.
15226         * tests/test-fnmatch.c: Add.
15227
15228 2009-05-04  Eric Blake  <ebb9@byu.net>
15229
15230         maint: make the new no-submodule-changes rule VPATH-safe
15231         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
15232
15233 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
15234             Bruno Haible  <bruno@clisp.org>
15235
15236         acl: Fix infinite loop on FreeBSD.
15237         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
15238         of return value from acl_get_entry.
15239         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
15240         Likewise.
15241
15242 2009-05-03  Bruno Haible  <bruno@clisp.org>
15243
15244         * lib/acl-internal.h (acl_entries): Clarify return value.
15245         * lib/acl_entries.c (acl_entries): Likewise.
15246
15247 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
15248
15249         Bug fix in acl module.
15250         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
15251
15252 2009-05-03  Bruno Haible  <bruno@clisp.org>
15253
15254         Create gperf-generated file in the source dir, not in the build dir.
15255         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
15256         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
15257         * modules/unicase/locale-language (unicase/locale-languages.h):
15258         Likewise.
15259         * modules/unicase/special-casing (unicase/special-casing-table.h):
15260         Likewise.
15261         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
15262         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
15263         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
15264         Reported by Ralf Wildenhues.
15265
15266 2009-05-03  Bruno Haible  <bruno@clisp.org>
15267
15268         * modules/fnmatch (Description, configure.ac): Taken from
15269         fnmatch-posix.
15270         * modules/fnmatch-posix: Turn into a symbolic reference to the
15271         'fnmatch' module, and deprecate.
15272         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
15273
15274 2009-05-03  Bruno Haible  <bruno@clisp.org>
15275
15276         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
15277         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
15278         Reported by Ralf Wildenhues.
15279
15280 2009-05-04  Simon Josefsson  <simon@josefsson.org>
15281
15282         * m4/fnmatch.m4: Fix fnmatch re-define.
15283
15284 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
15285
15286         priv-set: new module and tests; adapt write-any-file
15287         * lib/priv-set.c: New file.
15288         * lib/priv-set.h: New file.
15289         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
15290         * lib/write-any-file.c: Simplify by using priv-set module.
15291         * m4/priv-set.m4: New file.
15292         * modules/priv-set: New file.
15293         * modules/unlinkdir: Add dependency on priv-set module.
15294         * modules/write-any-file: Likewise.
15295
15296         Tests for module 'priv-set'.
15297         * modules/priv-set-tests: New file.
15298         * tests/test-priv-set.c: New file.
15299
15300 2009-05-03  Jim Meyering  <meyering@redhat.com>
15301             Bruno Haible  <bruno@clisp.org>
15302
15303         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
15304         use the converted UTF-8 variant of the name instead.
15305
15306 2009-05-03  Jim Meyering  <meyering@redhat.com>
15307
15308         tests: tighten some getdate tests
15309         * tests/test-getdate.c (main): Tighten tests: require equality,
15310         not just greater than.  Set TZ envvar to UTC0.
15311
15312 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
15313
15314         getdate: correctly interpret "next monday" when run on a Monday
15315         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
15316         that e.g., "next tues" (when run on a tuesday) results in a date
15317         that is one week in the future, and not today's date.
15318         I.e., add a week when the wday is the same as the current one.
15319         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
15320         and earlier by Martin Bernreuther and Jan Minář.
15321         * tests/test-getdate.c (main): Check that "next DAY" is always in
15322         the future and that "last DAY" is always in the past.
15323
15324 2009-05-02  Jim Meyering  <meyering@redhat.com>
15325
15326         build: ensure that a release build fails when a submodule is unclean
15327         * top/maint.mk (no-submodule-changes): New rule.
15328         (alpha beta major): Depend on it.
15329
15330 2009-05-02  Bruno Haible  <bruno@clisp.org>
15331
15332         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
15333         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
15334         shell variable gl_fnmatch_required to detect which variant is
15335         requested.
15336         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
15337         gl_FUNC_FNMATCH_POSIX.
15338         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
15339         exclude fnmatch-posix.
15340
15341 2009-05-02  Bruno Haible  <bruno@clisp.org>
15342
15343         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
15344         * modules/mbsrtowcs (License): Change to LGPLv2+.
15345         * modules/strnlen1 (License): Likewise.
15346         Reported by Simon Josefsson.
15347
15348 2009-05-02  Bruno Haible  <bruno@clisp.org>
15349
15350         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
15351         "cross".
15352         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
15353         gnulib-tool was called with option --source-base=lib.
15354
15355 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15356
15357         Use automake *-local hooks without commands, for extensibility.
15358         * modules/localcharset (Makefile.am): Rename install-exec-local
15359         rule to install-exec-localcharset, and make it a prerequisite of
15360         install-exec-local.  Likewise, rename the uninstall-local rule to
15361         uninstall-localcharset, and make it a prerequisite of the former.
15362
15363 2009-05-01  Bruno Haible  <bruno@clisp.org>
15364
15365         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
15366         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
15367         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
15368         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
15369         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
15370         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
15371         m4/locale-zh.m4, m4/codeset.m4.
15372
15373         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
15374         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
15375         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
15376         m4/locale-zh.m4.
15377
15378         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
15379         REPLACE_WCRTOMB if mbstate_t must be replaced.
15380         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
15381         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
15382
15383 2009-05-01  Bruno Haible  <bruno@clisp.org>
15384
15385         Avoid compiler warnings when redefining macros defined by <libintl.h>.
15386         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
15387         dngettext, dcngettext, textdomain, bindtextdomain,
15388         bind_textdomain_codeset): Undefine before redefining.
15389
15390 2009-04-30  Bruno Haible  <bruno@clisp.org>
15391
15392         Fix bug introduced on 2009-04-25.
15393         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
15394         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
15395         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
15396         is defined.
15397         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
15398         is defined.
15399         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
15400         is defined.
15401         Reported by Elbert_Pol <elbert.pol@gmail.com>.
15402
15403 2009-04-28  Bruno Haible  <bruno@clisp.org>
15404
15405         Comment tweaks.
15406         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
15407         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
15408         * lib/unicase.h (u*_casexfrm): Likewise.
15409         Reported by Paolo Bonzini.
15410
15411 2009-04-28  Bruno Haible  <bruno@clisp.org>
15412
15413         Fix a compilation error.
15414         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
15415         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
15416         Reported by Jim Meyering.
15417
15418 2009-04-27  Bruno Haible  <bruno@clisp.org>
15419
15420         New module 'libunistring'.
15421         * modules/libunistring: New file.
15422         * m4/libunistring.m4: New file.
15423         * MODULES.html.sh (Unicode string functions): Add it.
15424
15425 2009-04-27  Eric Blake  <ebb9@byu.net>
15426
15427         maint.mk: allow package-specific header to provide <config.h>
15428         * top/maint.mk (sc_require_config_h): New variable.
15429         (sc_require_config_h, sc_require_config_h_first): Use it.
15430
15431 2009-04-27  Simon Josefsson  <simon@josefsson.org>
15432
15433         * top/maint.mk (sc_avoid_if_before_free): Except
15434         useless-if-before-free script.
15435
15436 2009-04-27  Eric Blake  <ebb9@byu.net>
15437
15438         maintainer-makefile: depend on all required helper scripts
15439         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
15440         useless-if-before-free.
15441         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
15442         version, rather than assuming gnulib checkout is available.
15443         Reported by Simen Josefsson.
15444
15445 2009-04-26  Bruno Haible  <bruno@clisp.org>
15446
15447         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
15448         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
15449         "../" or "..".
15450
15451 2009-04-26  Bruno Haible  <bruno@clisp.org>
15452
15453         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
15454         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
15455         AC_LIB_HAVE_LINKFLAGS.
15456
15457 2009-04-26  Bruno Haible  <bruno@clisp.org>
15458
15459         Simplify calling convention of u*_conv_from_encoding.
15460         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
15461         u32_conv_from_encoding): Expect a resultbuf argument and return the
15462         result directly as a pointer.
15463         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
15464         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
15465         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
15466         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
15467         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
15468         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
15469         Update.
15470         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
15471         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
15472         * lib/vasnprintf.c (VASNPRINTF): Update.
15473         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
15474         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
15475         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
15476         * NEWS: Mention the change.
15477
15478 2009-04-26  Bruno Haible  <bruno@clisp.org>
15479
15480         Simplify calling convention of u*_conv_to_encoding.
15481         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
15482         u32_conv_to_encoding): Expect a resultbuf argument and return the
15483         result directly as a pointer.
15484         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
15485         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
15486         freeing scaled_offsets if mem_iconveha failed.
15487         * lib/unicase/u-casexfrm.h (FUNC): Update.
15488         * lib/uninorm/u-normxfrm.h (FUNC): Update.
15489         * lib/vasnprintf.c (VASNPRINTF): Update.
15490         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
15491         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
15492         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
15493         * NEWS: Mention the change.
15494
15495 2009-04-26  Bruno Haible  <bruno@clisp.org>
15496
15497         Avoid test failures on AIX and OSF/1.
15498         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
15499         malloc(0).
15500         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
15501         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
15502         Likewise.
15503         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
15504         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
15505         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
15506         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
15507         * doc/posix-functions/malloc.texi: Document the portability problem
15508         related to malloc(0).
15509
15510 2009-04-26  Bruno Haible  <bruno@clisp.org>
15511
15512         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
15513         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
15514         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
15515
15516 2009-04-25  Bruno Haible  <bruno@clisp.org>
15517
15518         Avoid link error when creating a namespace clean library.
15519         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
15520         as macro with arguments if already defined as an alias.
15521         * lib/signbitf.c (gl_signbitf): Don't undefine.
15522         * lib/signbitd.c (gl_signbitd): Don't undefine.
15523         * lib/signbitl.c (gl_signbitl): Don't undefine.
15524
15525 2009-04-25  Jim Meyering  <meyering@redhat.com>
15526
15527         vc-list-files: fix another quoting bug
15528         * build-aux/vc-list-files: Avoid sed backslash expansion
15529         of pathological directory names.
15530
15531 2009-04-25  Eric Blake  <ebb9@byu.net>
15532
15533         vc-list-files: fix shell quoting error
15534         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
15535         timestamp.
15536
15537 2009-04-25  Jim Meyering  <meyering@redhat.com>
15538
15539         vc-list-files: restore lost functionality with subdir argument
15540         * build-aux/vc-list-files: When given a non-"." sub-directory
15541         argument, substitute the $dir/ prefix back onto each resulting name.
15542         Otherwise, coreutils' root_tests check would fail.
15543
15544 2009-04-24  Eric Blake  <ebb9@byu.net>
15545
15546         vc-list-files: ignore git symlinks
15547         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
15548         than ls-files, to ignore git symlinks.
15549
15550         maint.mk: import improvements from m4
15551         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
15552         (move_if_change): Delete unused macro.
15553         (news-date-check, vc-diff-check): Support VPATH builds.
15554         (announcement): Likewise.  Split --bootstrap-tools list...
15555         (boostrap-tools): ...into separate list, which can be overridden
15556         in cfg.mk.
15557         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
15558         requiring dependency on useless-if-before-free module.
15559         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
15560         Support VPATH builds.
15561
15562 2009-04-24  Jim Meyering  <meyering@redhat.com>
15563
15564         maint.mk: remove coreutils-specific rules and variables
15565         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
15566         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
15567         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
15568
15569         maint.mk: remove obsolete rule
15570         * top/maint.mk (rel-check): Remove rule.
15571         (WGET, WGETFLAGS): Remove now-unused variables.
15572
15573 2009-04-24  Simon Josefsson  <simon@josefsson.org>
15574
15575         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
15576         consistency.
15577
15578         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
15579         '$(PATH_SEPARATOR)' instead of ':'.
15580
15581 2009-04-24  Simon Josefsson  <simon@josefsson.org>
15582
15583         * lib/getopt1.c (main): Use 'const' for static array.
15584
15585 2009-04-24  Simon Josefsson  <simon@josefsson.org>
15586
15587         * top/maint.mk: Sync with coreutils.
15588         * NEWS: Explain incompatibilities.
15589
15590 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15591             Bruno Haible  <bruno@clisp.org>
15592
15593         Fix cross-compilation results.
15594         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
15595         statement, as third argument of AC_TRY_RUN.
15596         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
15597         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
15598         Likewise.
15599         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
15600         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
15601         Likewise.
15602         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
15603         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
15604         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
15605
15606 2009-04-20  Bruno Haible  <bruno@clisp.org>
15607
15608         Avoid test failure on mingw.
15609         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
15610
15611 2009-04-20  Bruno Haible  <bruno@clisp.org>
15612
15613         Avoid compilation error on mingw.
15614         * modules/localename-tests (Depends-on): Add locale.
15615
15616 2009-04-19  Bruno Haible  <bruno@clisp.org>
15617
15618         Support for building a shared library on Windows platforms.
15619         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
15620         (main): Test the presence of UNINORM_NFC here.
15621         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
15622         (main): Test the presence of UNINORM_NFD here.
15623         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
15624         (main): Test the presence of UNINORM_NFKC here.
15625         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
15626         (main): Test the presence of UNINORM_NFKD here.
15627
15628 2009-04-19  Bruno Haible  <bruno@clisp.org>
15629
15630         Avoid a compiler warning.
15631         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
15632         Change type of variable 'sequence'.
15633
15634 2009-04-19  Bruno Haible  <bruno@clisp.org>
15635
15636         * modules/configmake (Makefile.am): When the contents of configmake.h
15637         does not change, arrange to preserve its modification time.
15638
15639 2009-04-17  Simon Josefsson  <simon@josefsson.org>
15640
15641         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
15642         gettext domain.
15643
15644 2009-04-16  Jim Meyering  <meyering@redhat.com>
15645
15646         useless-if-before-free: improve conversion code
15647         * build-aux/useless-if-before-free: Adjust code-in-comment to match
15648         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
15649
15650 2009-04-14  Bruno Haible  <bruno@clisp.org>
15651
15652         * modules/fcntl (Depends-on): Add extensions.
15653         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
15654
15655 2009-04-12  Ben Pfaff  <blp@gnu.org>
15656
15657         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
15658         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
15659
15660 2009-03-20  Ben Pfaff  <blp@gnu.org>
15661
15662         Make rename replace existing destinations on Windows.
15663         * m4/rename.m4: Add test for Mingw.
15664         * lib/rename.c: Add rename replacement that uses MoveFileEx with
15665         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
15666         * doc/posix-functions/rename.texi: Document.
15667
15668 2009-04-10  Bruno Haible  <bruno@clisp.org>
15669
15670         New include file "iconveh.h".
15671         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
15672         * lib/striconveh.h: Include it.
15673         (enum iconv_ilseq_handler): Remove definition.
15674         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
15675         striconveh.h.
15676         * lib/striconveha.c: Include striconveh.h.
15677         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
15678         * modules/striconveh (Files): Add lib/iconveh.h.
15679         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
15680         lib/striconveh.h.
15681
15682 2009-04-10  Bruno Haible  <bruno@clisp.org>
15683
15684         * lib/uniconv.h: Update comment.
15685
15686 2009-04-10  Bruno Haible  <bruno@clisp.org>
15687
15688         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
15689         always.
15690         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
15691         * lib/unistr/u16-mbtouc-aux.c: Likewise.
15692         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
15693         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
15694         "unistring-notinline.h", so that the function gets defined always.
15695         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
15696         * lib/unistr/u8-uctomb.c: Likewise.
15697         * lib/unistr/u16-mbtouc.c: Likewise.
15698         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
15699         * lib/unistr/u16-uctomb.c: Likewise.
15700         * lib/unistr/u32-mbtouc.c: Likewise.
15701         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
15702         * lib/unistr/u32-uctomb.c: Likewise.
15703
15704 2009-04-10  Bruno Haible  <bruno@clisp.org>
15705
15706         Mark 'utime' obsolete.
15707         * modules/utime (Status, Notice): New sections.
15708         Suggested by Jim Meyering.
15709
15710         Fix cross-compile guess for utime test.
15711         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
15712         autoconf.
15713         * doc/posix-functions/utime.texi: Give more precisions.
15714         Reported by Jan <ipif@ymail.com>.
15715
15716 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
15717
15718         filevercmp: correct today's change
15719         * lib/filevercmp.c: Also handle coreutils' test inputs.
15720         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
15721
15722         Fix regression in 'filevercmp' module. Thanks Sven Joachim
15723         for reporting it.
15724         * lib/filevercmp.c: Special handle for "", "." and "..".
15725         * tests/test-filevercmp.c: Enlarge the set suite.
15726
15727 2009-04-07  Jim Meyering  <meyering@redhat.com>
15728
15729         useless-if-before-free: show how to remove braced useless free, too
15730         * build-aux/useless-if-before-free: still only in a comment, though.
15731
15732 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
15733
15734         maint.mk: import changes to syntax-check macros from coreutils
15735         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
15736         Use them in the relevant macros.
15737
15738 2009-04-06  Bruno Haible  <bruno@clisp.org>
15739
15740         Fix unportable use of bit-fields.
15741         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
15742         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
15743         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
15744
15745 2009-04-06  Bruno Haible  <bruno@clisp.org>
15746
15747         Avoid test failures on AIX and OSF/1.
15748         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
15749         that malloc(0) = NULL.
15750         * tests/unicase/test-u8-tolower.c (check): Likewise.
15751         * tests/unicase/test-u8-totitle.c (check): Likewise.
15752         * tests/unicase/test-u8-toupper.c (check): Likewise.
15753         * tests/unicase/test-u16-casefold.c (check): Likewise.
15754         * tests/unicase/test-u16-tolower.c (check): Likewise.
15755         * tests/unicase/test-u16-totitle.c (check): Likewise.
15756         * tests/unicase/test-u16-toupper.c (check): Likewise.
15757         * tests/unicase/test-u32-casefold.c (check): Likewise.
15758         * tests/unicase/test-u32-tolower.c (check): Likewise.
15759         * tests/unicase/test-u32-totitle.c (check): Likewise.
15760         * tests/unicase/test-u32-toupper.c (check): Likewise.
15761         * tests/uninorm/test-u8-nfc.c (check): Likewise.
15762         * tests/uninorm/test-u8-nfd.c (check): Likewise.
15763         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
15764         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
15765         * tests/uninorm/test-u16-nfc.c (check): Likewise.
15766         * tests/uninorm/test-u16-nfd.c (check): Likewise.
15767         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
15768         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
15769         * tests/uninorm/test-u32-nfc.c (check): Likewise.
15770         * tests/uninorm/test-u32-nfd.c (check): Likewise.
15771         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
15772         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
15773
15774 2009-04-05  Bruno Haible  <bruno@clisp.org>
15775
15776         Work around an autoconf limitation.
15777         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
15778         comment line if it would be longer than 3 KB.
15779
15780 2009-04-05  Bruno Haible  <bruno@clisp.org>
15781
15782         Avoid test failure with libiconv-1.13.
15783         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
15784         of the expected test results.
15785
15786 2009-04-05  Bruno Haible  <bruno@clisp.org>
15787
15788         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
15789         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
15790         that it should be installed.
15791
15792 2009-04-05  Bruno Haible  <bruno@clisp.org>
15793
15794         * gnulib-tool: New option --copy-file.
15795         (func_usage): Document it.
15796         (func_dest_tmpfilename): Moved out of func_import.
15797         (func_add_file, func_update_file): New functions, extracted from
15798         func_import.
15799         (func_import): Update.
15800
15801 2009-04-05  Karl Berry  <karl@gnu.org>
15802
15803         * README: prominently mention gnulib-tool.
15804         Rearrange sections so getting the code is near the top.
15805
15806 2009-04-05  Bruno Haible  <bruno@clisp.org>
15807
15808         * lib/unicase.h: Mention u*_cmp2.
15809         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
15810         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
15811         * lib/unicase/ulc-casecmp.c: Likewise.
15812         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
15813         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
15814         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
15815         unistr/u8-cmp.
15816         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
15817         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
15818         unistr/u16-cmp.
15819         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
15820         unistr/u32-cmp.
15821
15822         * lib/uninorm.h: Mention u*_cmp2.
15823         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
15824         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
15825         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
15826         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
15827         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
15828         unistr/u8-cmp.
15829         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
15830         unistr/u16-cmp.
15831         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
15832         unistr/u32-cmp.
15833
15834         New module 'unistr/u32-cmp2'.
15835         * lib/unistr/u32-cmp2.c: New file.
15836         * modules/unistr/u32-cmp2: New file.
15837
15838         New module 'unistr/u16-cmp2'.
15839         * lib/unistr/u16-cmp2.c: New file.
15840         * modules/unistr/u16-cmp2: New file.
15841
15842         New module 'unistr/u8-cmp2'.
15843         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
15844         * lib/unistr/u8-cmp2.c: New file.
15845         * lib/unistr/u-cmp2.h: New file.
15846         * modules/unistr/u8-cmp2: New file.
15847
15848 2009-04-05  Bruno Haible  <bruno@clisp.org>
15849
15850         * lib/unictype.h (uc_property_is_valid): New macro.
15851         * tests/unictype/test-pr_byname.c (main): Use it.
15852
15853         * lib/unistr.h: Doc fixes.
15854         * lib/uniconv.h: Doc fixes.
15855         * lib/unictype.h: Doc fixes.
15856
15857 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
15858
15859         Port coreutils 7.2 to Solaris 8.
15860
15861         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
15862         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
15863         for Solaris 8.  This is a bit of a hack, as it means it's the
15864         caller's responsibility to add -lnsl if needed, but most likely it
15865         won't be needed since only getaddrinfo uses this and getaddrinfo
15866         isn't needed on Solaris 8.
15867
15868         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
15869         problem to Solaris 8 encountered with coreutils 7.2, which
15870         resulted in a message "fnmatch.c:292: warning: passing argument 4
15871         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
15872         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
15873
15874 2009-04-03  Simon Josefsson  <simon@josefsson.org>
15875
15876         * m4/ld-version-script.m4: Add FIXME comment.
15877
15878 2009-04-02  Simon Josefsson  <simon@josefsson.org>
15879
15880         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
15881         SOVERSION variable.
15882
15883 2009-04-02  Bruno Haible  <bruno@clisp.org>
15884
15885         * Makefile (info, html, dvi, pdf): Combine the rules.
15886         Suggested by Jim Meyering.
15887
15888 2009-04-01  Bruno Haible  <bruno@clisp.org>
15889
15890         * Makefile (info, html, dvi, pdf): New targets.
15891         Reported by Reuben Thomas <rrt@sc3d.org>.
15892
15893 2009-04-01  Bruno Haible  <bruno@clisp.org>
15894
15895         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
15896         can be put into PATH.
15897         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
15898
15899 2009-04-01  Bruno Haible  <bruno@clisp.org>
15900
15901         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
15902
15903 2009-04-01  Bruno Haible  <bruno@clisp.org>
15904
15905         Rename module 'visibility'.
15906         * modules/lib-symbol-visibility: Renamed from modules/visibility.
15907         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
15908         * doc/gnulib.texi: Update.
15909         * MODULES.html.sh (Misc): Update.
15910         * NEWS: Mention the change.
15911
15912 2009-04-01  Simon Josefsson  <simon@josefsson.org>
15913
15914         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
15915         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
15916         Eric Blake <ebb9@byu.net> for review.
15917         * MODULES.html.sh: Add lib-msvc-compat.
15918         * doc/gnulib.texi: Link to new section.
15919         * m4/ld-output-def.m4: New file.
15920         * doc/ld-output-def.texi: New file.
15921
15922 2009-04-01  Simon Josefsson  <simon@josefsson.org>
15923
15924         Rename ld-version-script to lib-symbol-versions.  Suggested by
15925         Bruno Haible <bruno@clisp.org>.
15926         * modules/ld-version-script: Renamed to lib-symbol-versions.
15927         * doc/ld-version-script.texi: Fix module name.
15928         * MODULES.html.sh: Add lib-symbol-versions.
15929
15930 2009-03-31  Simon Josefsson  <simon@josefsson.org>
15931
15932         * modules/u64-tests: New file.
15933         * tests/test-u64.c: New file.
15934
15935 2009-03-04  Simon Josefsson  <simon@josefsson.org>
15936
15937         * MODULES.html.sh: Mention u64.
15938         * modules/u64: New module.
15939         * modules/crypto/sha512: Depend on u64 module instead of providing
15940         u64.h.
15941
15942 2009-03-27  Eric Blake  <ebb9@byu.net>
15943
15944         test-strerror: make debugging EAI_SYSTEM easier
15945         * modules/getaddrinfo-tests (Depends-on): Add strerror.
15946         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
15947         failure was EAI_SYSTEM.
15948
15949 2009-03-25  Bruno Haible  <bruno@clisp.org>
15950
15951         Fix a problem with --enable-relocatable on Solaris 7.
15952         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
15953         since 2008-02-24.
15954
15955 2009-03-25  Eric Blake  <ebb9@byu.net>
15956
15957         test-sockets: avoid gcc warning
15958         * tests/test-sockets.c (main): Silence compiler warning.
15959
15960 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
15961
15962         New modules nproc, pthread, contributed by Glen Lenker.
15963
15964         * MODULES.html.sh: Add pthread, nproc.
15965         * lib/nproc.c: New file.
15966         * lib/nproc.h: New file.
15967         * lib/pthread.in.h: New file.
15968         * m4/pthread.m4: New file.
15969         * modules/nproc: New file.
15970         * modules/pthread: New file.
15971
15972 2009-03-24  Simon Josefsson  <simon@josefsson.org>
15973
15974         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
15975         New variable.
15976
15977 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
15978
15979         filevercmp: handle simple~ and numbered.~3~ backup suffixes
15980         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
15981         * tests/test-filevercmp.c: Add tests for backup suffixes.
15982
15983 2009-03-24  Simon Josefsson  <simon@josefsson.org>
15984
15985         * modules/stdlib (Depends-on): Add stdint, needed when defining
15986         struct random_data on, for example, HP-UX 10.20.  Reported by
15987         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15988
15989 2009-03-24  Simon Josefsson  <simon@josefsson.org>
15990
15991         * lib/readline.c (readline): Call fflush on stdout after printing
15992         prompt.
15993
15994 2009-03-20  Bruno Haible  <bruno@clisp.org>
15995
15996         Remove dependency from 'close' module to -lws2_32 on native Windows.
15997         * lib/close-hook.h: New file.
15998         * lib/close-hook.c: New file.
15999         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
16000         w32sock.h.
16001         (_gl_close_fd_maybe_socket): Remove function.
16002         (rpl_close): Invoke execute_all_close_hooks instead of
16003         _gl_close_fd_maybe_socket.
16004         * lib/sockets.c: Include close-hook.h, w32sock.h.
16005         (close_fd_maybe_socket): New function, essentially from lib/close.c.
16006         (close_sockets_hook): New variable.
16007         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
16008         (gl_sockets_cleanup): Unregister it.
16009         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
16010         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
16011         * modules/close-hook: New file.
16012         * modules/close (Files): Remove lib/w32sock.h.
16013         (Depends-on): Add close-hook.
16014         (Link): Remove section.
16015         * modules/sockets (Files): Add lib/w32sock.h.
16016         (Depends-on): Add close-hook.
16017         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
16018         invocation.
16019         * NEWS: Mention that LIB_CLOSE is gone.
16020
16021 2009-03-23  Eric Blake  <ebb9@byu.net>
16022
16023         signal-tests: test previous patch
16024         * tests/test-signal.c: New file.
16025         * modules/signal-tests: Likewise.
16026
16027         signal.h: always support 'volatile sig_atomic_t'
16028         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
16029         (gl_SIGNAL_H_DEFAULTS): Add a default.
16030         * modules/signal (Makefile.am): Substitute if needed.
16031         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
16032         users can blindly add volatile.
16033         * doc/posix-headers/signal.texi (signal.h): Document it.
16034         Reported by Matthew Woehlke.
16035
16036 2009-03-23  Jim Meyering  <meyering@redhat.com>
16037
16038         pathmax: PATH_MAX: use pathconf only when available
16039         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
16040         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
16041         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
16042         This avoids a link failure in a PSP cross-compilation environment
16043         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
16044
16045         * lib/vasnprintf.c (divide): Fix typo in comment.
16046
16047 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16048
16049         * gnulib-tool (func_filter_filelist): Fix comment.
16050
16051 2009-03-20  Bruno Haible  <bruno@clisp.org>
16052
16053         Make sockets.h self-contained.
16054         * lib/sockets.c: Include sockets.h first.
16055         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
16056
16057 2009-03-19  Eric Blake  <ebb9@byu.net>
16058
16059         doc: mention more functions added in cygwin 1.7.0
16060         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
16061         addition.
16062         * doc/posix-functions/log2f.texi: Likewise.
16063
16064 2009-03-19  Jim Meyering  <meyering@redhat.com>
16065
16066         fsusage: avoid syntax error due to statement-before-declaration
16067         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
16068         after all declarations.  Reported by Matthew Woehlke in
16069         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
16070
16071 2009-03-18  Eric Blake  <ebb9@byu.net>
16072
16073         build-aux/compile: sync from automake
16074         * build-aux/compile: New file, from automake.
16075         * config/srclist.txt: Mention build-aux/compile.
16076
16077 2009-03-17  Bruno Haible  <bruno@clisp.org>
16078
16079         * lib/git-merge-changelog.c: Fix typo in comment.
16080         Reported by Reuben Thomas <rrt@sc3d.org>.
16081
16082 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
16083
16084         * m4/regex.m4: update and improve help for
16085         --without-included-regex.
16086
16087 2009-03-17  Simon Josefsson  <simon@josefsson.org>
16088
16089         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
16090         failure on missing include files.
16091
16092 2009-03-17  Eric Blake  <ebb9@byu.net>
16093
16094         doc: mention more functions added in cygwin 1.7.0
16095         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
16096         addition.
16097         * doc/posix-functions/fwscanf.texi: Likewise.
16098         * doc/posix-functions/swprintf.texi: Likewise.
16099         * doc/posix-functions/swscanf.texi: Likewise.
16100         * doc/posix-functions/vfwprintf.texi: Likewise.
16101         * doc/posix-functions/vfwscanf.texi: Likewise.
16102         * doc/posix-functions/vswprintf.texi: Likewise.
16103         * doc/posix-functions/vswscanf.texi: Likewise.
16104         * doc/posix-functions/vwprintf.texi: Likewise.
16105         * doc/posix-functions/vwscanf.texi: Likewise.
16106         * doc/posix-functions/wcscasecmp.texi: Likewise.
16107         * doc/posix-functions/wcsdup.texi: Likewise.
16108         * doc/posix-functions/wcsftime.texi: Likewise.
16109         * doc/posix-functions/wcsncasecmp.texi: Likewise.
16110         * doc/posix-functions/wprintf.texi: Likewise.
16111         * doc/posix-functions/wscanf.texi: Likewise.
16112         * doc/glibc-functions/gethostbyname2.texi: Likewise.
16113
16114 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16115
16116         maint.mk: really add $(AM_MAKEFLAGS)
16117         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
16118         was inadvertently omitted in the last commit.
16119         Spotted by Bruno Haible.
16120
16121         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
16122         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
16123         $(AM_MAKEFLAGS)' rather than plain `make'.
16124
16125         gnulib-tool: execute $MAKE not make
16126         * gnulib-tool: Default $MAKE to 'make'.
16127         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
16128         than make.  Initialize $MAKE in the do-autobuild script.
16129
16130         gnulib-tool: use $MAKE not make in generated files
16131         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
16132         make, in generated files.  Initialize $MAKE in the do-autobuild
16133         script.
16134
16135         * top/GNUmakefile (_have-git-version-gen): Fix typo.
16136
16137         GNUmakefile: disable parallelism only for multiple, recursive targets
16138         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
16139         additions in the Makefile.
16140         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
16141         by Automake.
16142         (.NOTPARALLEL): Only disable parallel builds if multiple targets
16143         are listed on the command line and at least one of them is
16144         listed in $(ALL_RECURSIVE_TARGETS).
16145
16146 2009-03-14  Bruno Haible  <bruno@clisp.org>
16147
16148         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
16149         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
16150         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
16151         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
16152         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
16153         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
16154         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
16155         unistr/u8-uctomb.
16156         * modules/unistr/u8-strchr (Depends-on): Likewise.
16157         * modules/unistr/u8-strrchr (Depends-on): Likewise.
16158         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
16159         unistr/u16-uctomb.
16160         * modules/unistr/u16-strchr (Depends-on): Likewise.
16161         * modules/unistr/u16-strrchr (Depends-on): Likewise.
16162
16163 2009-03-12  Bruno Haible  <bruno@clisp.org>
16164
16165         Work around select() bug on Interix 3.5.
16166         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
16167         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
16168         * m4/select.m4: New file.
16169         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
16170         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
16171         * modules/select (Files): Add m4/select.m4.
16172         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
16173         * modules/nanosleep (Depends-on): Add select.
16174         * modules/poll (Depends-on): Likewise.
16175         * doc/posix-functions/select.texi: Mention the Interix bug.
16176         Reported by Markus Duft <mduft@gentoo.org>.
16177
16178         * lib/select.c: Renamed from lib/winsock-select.c.
16179         * modules/select (Files): Add lib/select.c, remove
16180         lib/winsock-select.c.
16181         (configure.ac): Update.
16182
16183 2009-03-12  Jim Meyering  <meyering@redhat.com>
16184
16185         avoid gcc warnings about unused macro definitions
16186         * lib/readtokens.c (STREQ): Remove unused definition.
16187         * lib/xmalloc.c (SIZE_MAX): Likewise.
16188         * lib/openat-die.c (N_): Likewise.
16189         * lib/mountlist.c (SIZE_MAX): Remove definition.
16190         Instead, include <stdint.h>.
16191         * lib/readutmp.c: Likewise.
16192         * modules/readutmp (Depends-on): Add stdint.
16193         * modules/mountlist (Depends-on): Add stdint.
16194         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
16195
16196 2009-03-10  Bruno Haible  <bruno@clisp.org>
16197
16198         Tests for module 'mbmemcasecoll'.
16199         * modules/mbmemcasecoll-tests: New file.
16200         * tests/test-mbmemcasecoll1.sh: New file.
16201         * tests/test-mbmemcasecoll2.sh: New file.
16202         * tests/test-mbmemcasecoll3.sh: New file.
16203         * tests/test-mbmemcasecoll.c: New file.
16204
16205         New module 'mbmemcasecoll'.
16206         * lib/mbmemcasecoll.h: New file.
16207         * lib/mbmemcasecoll.c: New file.
16208         * modules/mbmemcasecoll: New file.
16209
16210         * tests/test-mbmemcasecmp.h: New file, extracted from
16211         tests/test-mbmemcasecmp.c.
16212         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
16213         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
16214         (main): Update.
16215         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
16216
16217 2009-03-09  Bruno Haible  <bruno@clisp.org>
16218
16219         Tests for module 'mbmemcasecmp'.
16220         * modules/mbmemcasecmp-tests: New file.
16221         * tests/test-mbmemcasecmp1.sh: New file.
16222         * tests/test-mbmemcasecmp2.sh: New file.
16223         * tests/test-mbmemcasecmp3.sh: New file.
16224         * tests/test-mbmemcasecmp.c: New file.
16225
16226         New module 'mbmemcasecmp'.
16227         * lib/mbmemcasecmp.h: New file.
16228         * lib/mbmemcasecmp.c: New file.
16229         * modules/mbmemcasecmp: New file.
16230
16231 2009-03-09  Bruno Haible  <bruno@clisp.org>
16232
16233         Tests for module 'unicase/ulc-casecoll'.
16234         * modules/unicase/ulc-casecoll-tests: New file.
16235         * tests/unicase/test-ulc-casecoll1.sh: New file.
16236         * tests/unicase/test-ulc-casecoll2.sh: New file.
16237         * tests/unicase/test-ulc-casecoll.c: New file.
16238
16239         New module 'unicase/ulc-casecoll'.
16240         * lib/unicase.h (ulc_casecoll): New declaration.
16241         * lib/unicase/ulc-casecoll.c: New file.
16242         * modules/unicase/ulc-casecoll: New file.
16243
16244         New module 'unicase/ulc-casexfrm'.
16245         * lib/unicase.h (ulc_casexfrm): New declaration.
16246         * lib/unicase/ulc-casexfrm.c: New file.
16247         * modules/unicase/ulc-casexfrm: New file.
16248
16249 2009-03-09  Bruno Haible  <bruno@clisp.org>
16250
16251         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
16252         invocations.
16253
16254         * m4/mbscasecmp.m4: Remove file.
16255         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
16256         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
16257
16258         * m4/mbscasestr.m4: Remove file.
16259         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
16260         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
16261
16262         * m4/mbschr.m4: Remove file.
16263         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
16264         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
16265
16266         * m4/mbscspn.m4: Remove file.
16267         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
16268         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
16269
16270         * m4/mbslen.m4: Remove file.
16271         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
16272         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
16273
16274         * m4/mbsncasecmp.m4: Remove file.
16275         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
16276         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
16277
16278         * m4/mbsnlen.m4: Remove file.
16279         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
16280         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
16281
16282         * m4/mbspbrk.m4: Remove file.
16283         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
16284         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
16285
16286         * m4/mbspcasecmp.m4: Remove file.
16287         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
16288         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
16289
16290         * m4/mbsrchr.m4: Remove file.
16291         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
16292         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
16293
16294         * m4/mbssep.m4: Remove file.
16295         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
16296         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
16297
16298         * m4/mbsspn.m4: Remove file.
16299         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
16300         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
16301
16302         * m4/mbsstr.m4: Remove file.
16303         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
16304         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
16305
16306         * m4/mbstok_r.m4: Remove file.
16307         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
16308         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
16309
16310         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
16311
16312         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
16313         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
16314
16315         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
16316
16317 2009-03-08  Bruno Haible  <bruno@clisp.org>
16318
16319         Tests for module 'unicase/ulc-casecmp'.
16320         * modules/unicase/ulc-casecmp-tests: New file.
16321         * tests/unicase/test-ulc-casecmp1.sh: New file.
16322         * tests/unicase/test-ulc-casecmp2.sh: New file.
16323         * tests/unicase/test-ulc-casecmp.c: New file.
16324
16325         New module 'unicase/ulc-casecmp'.
16326         * lib/unicase.h (ulc_casecmp): New declaration.
16327         * lib/unicase/ulc-casecmp.c: New file.
16328         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
16329         'const SRC_UNIT *'.
16330         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
16331         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
16332         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
16333         * modules/unicase/ulc-casecmp: New file.
16334
16335         Tests for module 'unicase/u32-is-cased'.
16336         * modules/unicase/u32-is-cased-tests: New file.
16337         * tests/unicase/test-u32-is-cased.c: New file.
16338
16339         Tests for module 'unicase/u16-is-cased'.
16340         * modules/unicase/u16-is-cased-tests: New file.
16341         * tests/unicase/test-u16-is-cased.c: New file.
16342
16343         Tests for module 'unicase/u8-is-cased'.
16344         * modules/unicase/u8-is-cased-tests: New file.
16345         * tests/unicase/test-u8-is-cased.c: New file.
16346         * tests/unicase/test-is-cased.h: New file.
16347
16348         New module 'unicase/u32-is-cased'.
16349         * lib/unicase/u32-is-cased.c: New file.
16350         * modules/unicase/u32-is-cased: New file.
16351
16352         New module 'unicase/u16-is-cased'.
16353         * lib/unicase/u16-is-cased.c: New file.
16354         * modules/unicase/u16-is-cased: New file.
16355
16356         New module 'unicase/u8-is-cased'.
16357         * lib/unicase/u8-is-cased.c: New file.
16358         * lib/unicase/u-is-cased.h: New file.
16359         * modules/unicase/u8-is-cased: New file.
16360
16361         Tests for module 'unicase/u32-is-casefolded'.
16362         * modules/unicase/u32-is-casefolded-tests: New file.
16363         * tests/unicase/test-u32-is-casefolded.c: New file.
16364
16365         Tests for module 'unicase/u16-is-casefolded'.
16366         * modules/unicase/u16-is-casefolded-tests: New file.
16367         * tests/unicase/test-u16-is-casefolded.c: New file.
16368
16369         Tests for module 'unicase/u8-is-casefolded'.
16370         * modules/unicase/u8-is-casefolded-tests: New file.
16371         * tests/unicase/test-u8-is-casefolded.c: New file.
16372         * tests/unicase/test-is-casefolded.h: New file.
16373
16374         New module 'unicase/u32-is-casefolded'.
16375         * lib/unicase/u32-is-casefolded.c: New file.
16376         * modules/unicase/u32-is-casefolded: New file.
16377
16378         New module 'unicase/u16-is-casefolded'.
16379         * lib/unicase/u16-is-casefolded.c: New file.
16380         * modules/unicase/u16-is-casefolded: New file.
16381
16382         New module 'unicase/u8-is-casefolded'.
16383         * lib/unicase/u8-is-casefolded.c: New file.
16384         * modules/unicase/u8-is-casefolded: New file.
16385
16386         Tests for module 'unicase/u32-is-titlecase'.
16387         * modules/unicase/u32-is-titlecase-tests: New file.
16388         * tests/unicase/test-u32-is-titlecase.c: New file.
16389
16390         Tests for module 'unicase/u16-is-titlecase'.
16391         * modules/unicase/u16-is-titlecase-tests: New file.
16392         * tests/unicase/test-u16-is-titlecase.c: New file.
16393
16394         Tests for module 'unicase/u8-is-titlecase'.
16395         * modules/unicase/u8-is-titlecase-tests: New file.
16396         * tests/unicase/test-u8-is-titlecase.c: New file.
16397         * tests/unicase/test-is-titlecase.h: New file.
16398
16399         New module 'unicase/u32-is-titlecase'.
16400         * lib/unicase/u32-is-titlecase.c: New file.
16401         * modules/unicase/u32-is-titlecase: New file.
16402
16403         New module 'unicase/u16-is-titlecase'.
16404         * lib/unicase/u16-is-titlecase.c: New file.
16405         * modules/unicase/u16-is-titlecase: New file.
16406
16407         New module 'unicase/u8-is-titlecase'.
16408         * lib/unicase/u8-is-titlecase.c: New file.
16409         * modules/unicase/u8-is-titlecase: New file.
16410
16411         Tests for module 'unicase/u32-is-lowercase'.
16412         * modules/unicase/u32-is-lowercase-tests: New file.
16413         * tests/unicase/test-u32-is-lowercase.c: New file.
16414
16415         Tests for module 'unicase/u16-is-lowercase'.
16416         * modules/unicase/u16-is-lowercase-tests: New file.
16417         * tests/unicase/test-u16-is-lowercase.c: New file.
16418
16419         Tests for module 'unicase/u8-is-lowercase'.
16420         * modules/unicase/u8-is-lowercase-tests: New file.
16421         * tests/unicase/test-u8-is-lowercase.c: New file.
16422         * tests/unicase/test-is-lowercase.h: New file.
16423
16424         New module 'unicase/u32-is-lowercase'.
16425         * lib/unicase/u32-is-lowercase.c: New file.
16426         * modules/unicase/u32-is-lowercase: New file.
16427
16428         New module 'unicase/u16-is-lowercase'.
16429         * lib/unicase/u16-is-lowercase.c: New file.
16430         * modules/unicase/u16-is-lowercase: New file.
16431
16432         New module 'unicase/u8-is-lowercase'.
16433         * lib/unicase/u8-is-lowercase.c: New file.
16434         * modules/unicase/u8-is-lowercase: New file.
16435
16436         Tests for module 'unicase/u32-is-uppercase'.
16437         * modules/unicase/u32-is-uppercase-tests: New file.
16438         * tests/unicase/test-u32-is-uppercase.c: New file.
16439
16440         Tests for module 'unicase/u16-is-uppercase'.
16441         * modules/unicase/u16-is-uppercase-tests: New file.
16442         * tests/unicase/test-u16-is-uppercase.c: New file.
16443
16444         Tests for module 'unicase/u8-is-uppercase'.
16445         * modules/unicase/u8-is-uppercase-tests: New file.
16446         * tests/unicase/test-u8-is-uppercase.c: New file.
16447         * tests/unicase/test-is-uppercase.h: New file.
16448
16449         New module 'unicase/u32-is-uppercase'.
16450         * lib/unicase/u32-is-uppercase.c: New file.
16451         * modules/unicase/u32-is-uppercase: New file.
16452
16453         New module 'unicase/u16-is-uppercase'.
16454         * lib/unicase/u16-is-uppercase.c: New file.
16455         * modules/unicase/u16-is-uppercase: New file.
16456
16457         New module 'unicase/u8-is-uppercase'.
16458         * lib/unicase/u8-is-uppercase.c: New file.
16459         * modules/unicase/u8-is-uppercase: New file.
16460
16461         New module 'unicase/u32-is-invariant'.
16462         * lib/unicase/u32-is-invariant.c: New file.
16463         * modules/unicase/u32-is-invariant: New file.
16464
16465         New module 'unicase/u16-is-invariant'.
16466         * lib/unicase/u16-is-invariant.c: New file.
16467         * modules/unicase/u16-is-invariant: New file.
16468
16469         New module 'unicase/u8-is-invariant'.
16470         * lib/unicase/u8-is-invariant.c: New file.
16471         * lib/unicase/invariant.h: New file.
16472         * lib/unicase/u-is-invariant.h: New file.
16473         * modules/unicase/u8-is-invariant: New file.
16474
16475         Tests for module 'unicase/u32-casecoll'.
16476         * modules/unicase/u32-casecoll-tests: New file.
16477         * tests/unicase/test-u32-casecoll.c: New file.
16478
16479         Tests for module 'unicase/u16-casecoll'.
16480         * modules/unicase/u16-casecoll-tests: New file.
16481         * tests/unicase/test-u16-casecoll.c: New file.
16482
16483         Tests for module 'unicase/u8-casecoll'.
16484         * modules/unicase/u8-casecoll-tests: New file.
16485         * tests/unicase/test-u8-casecoll.c: New file.
16486
16487         New module 'unicase/u32-casecoll'.
16488         * lib/unicase/u32-casecoll.c: New file.
16489         * modules/unicase/u32-casecoll: New file.
16490
16491         New module 'unicase/u16-casecoll'.
16492         * lib/unicase/u16-casecoll.c: New file.
16493         * modules/unicase/u16-casecoll: New file.
16494
16495         New module 'unicase/u8-casecoll'.
16496         * lib/unicase/u8-casecoll.c: New file.
16497         * lib/unicase/u-casecoll.h: New file.
16498         * modules/unicase/u8-casecoll: New file.
16499
16500         New module 'unicase/u32-casexfrm'.
16501         * lib/unicase/u32-casexfrm.c: New file.
16502         * modules/unicase/u32-casexfrm: New file.
16503
16504         New module 'unicase/u16-casexfrm'.
16505         * lib/unicase/u16-casexfrm.c: New file.
16506         * modules/unicase/u16-casexfrm: New file.
16507
16508         New module 'unicase/u8-casexfrm'.
16509         * lib/unicase/u8-casexfrm.c: New file.
16510         * lib/unicase/u-casexfrm.h: New file.
16511         * modules/unicase/u8-casexfrm: New file.
16512
16513         Tests for module 'unicase/u32-casecmp'.
16514         * modules/unicase/u32-casecmp-tests: New file.
16515         * tests/unicase/test-u32-casecmp.c: New file.
16516
16517         Tests for module 'unicase/u16-casecmp'.
16518         * modules/unicase/u16-casecmp-tests: New file.
16519         * tests/unicase/test-u16-casecmp.c: New file.
16520
16521         Tests for module 'unicase/u8-casecmp'.
16522         * modules/unicase/u8-casecmp-tests: New file.
16523         * tests/unicase/test-u8-casecmp.c: New file.
16524         * tests/unicase/test-casecmp.h: New file.
16525
16526         New module 'unicase/u32-casecmp'.
16527         * lib/unicase/u32-casecmp.c: New file.
16528         * modules/unicase/u32-casecmp: New file.
16529
16530         New module 'unicase/u16-casecmp'.
16531         * lib/unicase/u16-casecmp.c: New file.
16532         * modules/unicase/u16-casecmp: New file.
16533
16534         New module 'unicase/u8-casecmp'.
16535         * lib/unicase/u8-casecmp.c: New file.
16536         * lib/unicase/u-casecmp.h: New file.
16537         * modules/unicase/u8-casecmp: New file.
16538
16539         Tests for module 'unicase/u32-casefold'.
16540         * modules/unicase/u32-casefold-tests: New file.
16541         * tests/unicase/test-u32-casefold.c: New file.
16542
16543         Tests for module 'unicase/u16-casefold'.
16544         * modules/unicase/u16-casefold-tests: New file.
16545         * tests/unicase/test-u16-casefold.c: New file.
16546
16547         Tests for module 'unicase/u8-casefold'.
16548         * modules/unicase/u8-casefold-tests: New file.
16549         * tests/unicase/test-u8-casefold.c: New file.
16550
16551         New module 'unicase/u32-casefold'.
16552         * lib/unicase/u32-casefold.c: New file.
16553         * modules/unicase/u32-casefold: New file.
16554
16555         New module 'unicase/u16-casefold'.
16556         * lib/unicase/u16-casefold.c: New file.
16557         * modules/unicase/u16-casefold: New file.
16558
16559         New module 'unicase/u8-casefold'.
16560         * lib/unicase/u8-casefold.c: New file.
16561         * lib/unicase/u-casefold.h: New file.
16562         * modules/unicase/u8-casefold: New file.
16563
16564         New module 'unicase/tocasefold'.
16565         * lib/unicase/casefold.h: New file.
16566         * lib/unicase/tocasefold.c: New file.
16567         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
16568         * modules/unicase/tocasefold: New file.
16569
16570         Tests for module 'unicase/u32-totitle'.
16571         * modules/unicase/u32-totitle-tests: New file.
16572         * tests/unicase/test-u32-totitle.c: New file.
16573
16574         Tests for module 'unicase/u16-totitle'.
16575         * modules/unicase/u16-totitle-tests: New file.
16576         * tests/unicase/test-u16-totitle.c: New file.
16577
16578         Tests for module 'unicase/u8-totitle'.
16579         * modules/unicase/u8-totitle-tests: New file.
16580         * tests/unicase/test-u8-totitle.c: New file.
16581
16582         New module 'unicase/u32-totitle'.
16583         * lib/unicase/u32-totitle.c: New file.
16584         * modules/unicase/u32-totitle: New file.
16585
16586         New module 'unicase/u16-totitle'.
16587         * lib/unicase/u16-totitle.c: New file.
16588         * modules/unicase/u16-totitle: New file.
16589
16590         New module 'unicase/u8-totitle'.
16591         * lib/unicase/u8-totitle.c: New file.
16592         * lib/unicase/u-totitle.h: New file.
16593         * modules/unicase/u8-totitle: New file.
16594
16595         Tests for module 'unicase/u32-tolower'.
16596         * modules/unicase/u32-tolower-tests: New file.
16597         * tests/unicase/test-u32-tolower.c: New file.
16598
16599         Tests for module 'unicase/u16-tolower'.
16600         * modules/unicase/u16-tolower-tests: New file.
16601         * tests/unicase/test-u16-tolower.c: New file.
16602
16603         Tests for module 'unicase/u8-tolower'.
16604         * modules/unicase/u8-tolower-tests: New file.
16605         * tests/unicase/test-u8-tolower.c: New file.
16606
16607         New module 'unicase/u32-tolower'.
16608         * lib/unicase/u32-tolower.c: New file.
16609         * modules/unicase/u32-tolower: New file.
16610
16611         New module 'unicase/u16-tolower'.
16612         * lib/unicase/u16-tolower.c: New file.
16613         * modules/unicase/u16-tolower: New file.
16614
16615         New module 'unicase/u8-tolower'.
16616         * lib/unicase/u8-tolower.c: New file.
16617         * modules/unicase/u8-tolower: New file.
16618
16619         Tests for module 'unicase/u32-toupper'.
16620         * modules/unicase/u32-toupper-tests: New file.
16621         * tests/unicase/test-u32-toupper.c: New file.
16622
16623         Tests for module 'unicase/u16-toupper'.
16624         * modules/unicase/u16-toupper-tests: New file.
16625         * tests/unicase/test-u16-toupper.c: New file.
16626
16627         Tests for module 'unicase/u8-toupper'.
16628         * modules/unicase/u8-toupper-tests: New file.
16629         * tests/unicase/test-u8-toupper.c: New file.
16630
16631         New module 'unicase/u32-toupper'.
16632         * lib/unicase/u32-toupper.c: New file.
16633         * modules/unicase/u32-toupper: New file.
16634
16635         New module 'unicase/u16-toupper'.
16636         * lib/unicase/u16-toupper.c: New file.
16637         * modules/unicase/u16-toupper: New file.
16638
16639         New module 'unicase/u8-toupper'.
16640         * lib/unicase/u8-toupper.c: New file.
16641         * modules/unicase/u8-toupper: New file.
16642
16643         New module 'unicase/u32-casemap'.
16644         * lib/unicase/u32-casemap.c: New file.
16645         * modules/unicase/u32-casemap: New file.
16646
16647         New module 'unicase/u16-casemap'.
16648         * lib/unicase/u16-casemap.c: New file.
16649         * modules/unicase/u16-casemap: New file.
16650
16651         New module 'unicase/u8-casemap'.
16652         * lib/unicase/unicasemap.h: New file.
16653         * lib/unicase/u8-casemap.c: New file.
16654         * lib/unicase/u-casemap.h: New file.
16655         * modules/unicase/u8-casemap: New file.
16656
16657         New module 'unicase/special-casing'.
16658         * lib/unicase/special-casing.h: New file.
16659         * lib/unicase/special-casing.c: New file.
16660         * lib/unicase/special-casing-table.gperf: New file, generated by
16661         gen-uni-tables.c.
16662         * modules/unicase/special-casing: New file.
16663
16664         Tests for module 'unicase/locale-language'.
16665         * modules/unicase/locale-language-tests: New file.
16666         * tests/unicase/test-locale-language.sh: New file.
16667         * tests/unicase/test-locale-language.c: New file.
16668
16669         New module 'unicase/locale-language'.
16670         * lib/unicase/locale-language.c: New file.
16671         * lib/unicase/locale-languages.gperf: New file.
16672         * modules/unicase/locale-language: New file.
16673
16674         Generate more tables for case conversion and case folding.
16675         * lib/gen-uni-tables.c (SCC_*): New enum items.
16676         (struct special_casing_rule): New type.
16677         (casing_rules, num_casing_rules, allocated_casing_rules): New
16678         variables.
16679         (add_casing_rule, fill_casing_rules): New functions.
16680         (struct casefold_rule): New type.
16681         (casefolding_rules, num_casefolding_rules,
16682         allocated_casefolding_rules): New variables.
16683         (fill_casefolding_rules): New function.
16684         (unicode_casefold): New variable.
16685         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
16686         sort_casing_rules, output_casing_rules): New functions.
16687         (main): Accept to more arguments: SpecialCasing.txt and
16688         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
16689         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
16690         Output mapping for casefolding.
16691
16692         * lib/unicase.h: Include stdbool.h, uninorm.h.
16693         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
16694         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
16695         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
16696         arguments.
16697         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
16698         resultp arguments.
16699         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
16700         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
16701         resultp arguments.
16702         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
16703         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
16704         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
16705         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
16706         declarations.
16707         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
16708
16709 2009-03-08  Bruno Haible  <bruno@clisp.org>
16710
16711         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
16712         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
16713         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
16714         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
16715
16716 2009-03-07  Bruno Haible  <bruno@clisp.org>
16717
16718         Adjust u*_normcmp, u*_normcoll API.
16719         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
16720         u16_normcoll, u32_normcoll): Change failure conventions.
16721         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
16722         errno and return -1.
16723         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
16724
16725 2009-03-07  Bruno Haible  <bruno@clisp.org>
16726
16727         Tests for module 'uninorm/u32-normcoll'.
16728         * modules/uninorm/u32-normcoll-tests: New file.
16729         * tests/uninorm/test-u32-normcoll.c: New file.
16730
16731         Tests for module 'uninorm/u16-normcoll'.
16732         * modules/uninorm/u16-normcoll-tests: New file.
16733         * tests/uninorm/test-u16-normcoll.c: New file.
16734
16735         Tests for module 'uninorm/u8-normcoll'.
16736         * modules/uninorm/u8-normcoll-tests: New file.
16737         * tests/uninorm/test-u8-normcoll.c: New file.
16738
16739 2009-03-07  Bruno Haible  <bruno@clisp.org>
16740
16741         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
16742         tests/uninorm/test-u32-normcmp.c.
16743         * tests/uninorm/test-u32-normcmp.c: Include it.
16744         (test_nonascii): New function, extracted from main. Add some more
16745         tests.
16746         (main): Invoke test_ascii and test_nonascii.
16747         * modules/uninorm/u32-normcmp-tests (Files): Add
16748         tests/uninorm/test-u32-normcmp.h.
16749         (Depends-on): Remove uninorm/u32-normcmp.
16750
16751         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
16752         tests/uninorm/test-u16-normcmp.c.
16753         * tests/uninorm/test-u16-normcmp.c: Include it.
16754         (test_nonascii): New function, extracted from main. Add some more
16755         tests.
16756         (main): Invoke test_ascii and test_nonascii.
16757         * modules/uninorm/u16-normcmp-tests (Files): Add
16758         tests/uninorm/test-u16-normcmp.h.
16759         (Depends-on): Remove uninorm/u16-normcmp.
16760
16761         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
16762         tests/uninorm/test-u8-normcmp.c.
16763         * tests/uninorm/test-u8-normcmp.c: Include it.
16764         (test_nonascii): New function, extracted from main. Add some more
16765         tests.
16766         (main): Invoke test_ascii and test_nonascii.
16767         * modules/uninorm/u8-normcmp-tests (Files): Add
16768         tests/uninorm/test-u8-normcmp.h.
16769         (Depends-on): Remove uninorm/u8-normcmp.
16770
16771 2009-03-07  Bruno Haible  <bruno@clisp.org>
16772
16773         New module 'uninorm/u32-normcoll'.
16774         * lib/uninorm/u32-normcoll.c: New file.
16775         * modules/uninorm/u32-normcoll: New file.
16776
16777         New module 'uninorm/u16-normcoll'.
16778         * lib/uninorm/u16-normcoll.c: New file.
16779         * modules/uninorm/u16-normcoll: New file.
16780
16781         New module 'uninorm/u8-normcoll'.
16782         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
16783         declarations.
16784         * lib/uninorm/u8-normcoll.c: New file.
16785         * lib/uninorm/u-normcoll.h: New file.
16786         * modules/uninorm/u8-normcoll: New file.
16787
16788         New module 'uninorm/u32-normxfrm'.
16789         * lib/uninorm/u32-normxfrm.c: New file.
16790         * modules/uninorm/u32-normxfrm: New file.
16791
16792         New module 'uninorm/u16-normxfrm'.
16793         * lib/uninorm/u16-normxfrm.c: New file.
16794         * modules/uninorm/u16-normxfrm: New file.
16795
16796         New module 'uninorm/u8-normxfrm'.
16797         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
16798         declarations.
16799         * lib/uninorm/u8-normxfrm.c: New file.
16800         * lib/uninorm/u-normxfrm.h: New file.
16801         * modules/uninorm/u8-normxfrm: New file.
16802
16803 2009-03-07  Bruno Haible  <bruno@clisp.org>
16804
16805         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
16806         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
16807         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
16808
16809 2009-03-07  Bruno Haible  <bruno@clisp.org>
16810
16811         New module 'memxfrm'.
16812         * lib/memxfrm.h: New file.
16813         * lib/memxfrm.c: New file.
16814         * modules/memxfrm: New file.
16815
16816 2009-03-07  Bruno Haible  <bruno@clisp.org>
16817
16818         New module 'memcmp2'.
16819         * lib/memcmp2.h: New file.
16820         * lib/memcmp2.c: New file.
16821         * modules/memcmp2: New file.
16822
16823 2009-03-07  Bruno Haible  <bruno@clisp.org>
16824
16825         Tests for module 'uninorm/decomposing-form'.
16826         * modules/uninorm/decomposing-form-tests: New file.
16827         * tests/uninorm/test-decomposing-form.c: New file.
16828
16829         New module 'uninorm/decomposing-form'.
16830         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
16831         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
16832         Add 'decomposing_variant' field.
16833         * lib/uninorm/decomposing-form.c: New file.
16834         * lib/uninorm/nfc.c (uninorm_nfc): Update.
16835         * lib/uninorm/nfd.c (uninorm_nfd): Update.
16836         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
16837         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
16838         * modules/uninorm/decomposing-form: New file.
16839         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
16840         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
16841
16842 2009-03-07  Bruno Haible  <bruno@clisp.org>
16843
16844         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
16845         strings.
16846
16847 2009-03-06  Bruno Haible  <bruno@clisp.org>
16848
16849         Tests for module 'uninorm/u32-normcmp'.
16850         * tests/uninorm/test-u32-normcmp.c: New file.
16851         * modules/uninorm/u32-normcmp-tests: New file.
16852
16853         Tests for module 'uninorm/u16-normcmp'.
16854         * tests/uninorm/test-u16-normcmp.c: New file.
16855         * modules/uninorm/u16-normcmp-tests: New file.
16856
16857         Tests for module 'uninorm/u8-normcmp'.
16858         * tests/uninorm/test-u8-normcmp.c: New file.
16859         * modules/uninorm/u8-normcmp-tests: New file.
16860
16861         New module 'uninorm/u32-normcmp'.
16862         * lib/uninorm/u32-normcmp.c: New file.
16863         * modules/uninorm/u32-normcmp: New file.
16864
16865         New module 'uninorm/u16-normcmp'.
16866         * lib/uninorm/u16-normcmp.c: New file.
16867         * modules/uninorm/u16-normcmp: New file.
16868
16869         New module 'uninorm/u8-normcmp'.
16870         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
16871         declarations.
16872         * lib/uninorm/u8-normcmp.c: New file.
16873         * lib/uninorm/u-normcmp.h: New file.
16874         * modules/uninorm/u8-normcmp: New file.
16875
16876 2009-03-06  Bruno Haible  <bruno@clisp.org>
16877
16878         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
16879         Reported by Eric Blake.
16880
16881 2009-03-06  Eric Blake  <ebb9@byu.net>
16882             Bruno Haible  <bruno@clisp.org>
16883
16884         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
16885         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
16886         condition.
16887         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
16888         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
16889         condition.
16890         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
16891
16892 2009-03-06  Eric Blake  <ebb9@byu.net>
16893
16894         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
16895         to avoid compiler warnings.
16896         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
16897
16898 2009-03-05  Bruno Haible  <bruno@clisp.org>
16899
16900         * tests/test-ftell.c (main): Disable test beyond end of file on
16901         FreeMiNT.
16902         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
16903
16904 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
16905
16906         * lib/filevercmp.c: Move hidden files up in ordering.
16907         * tests/test-filevercmp.c: Add tests for hidden files.
16908
16909 2009-03-04  Bruno Haible  <bruno@clisp.org>
16910
16911         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
16912         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
16913         AM_CFLAGS.
16914         Reported by Simon Josefsson.
16915
16916 2009-03-03  Bruno Haible  <bruno@clisp.org>
16917
16918         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
16919         Reported by Simon Josefsson.
16920
16921         * doc/ld-version-script.texi: Update node reference.
16922
16923 2009-03-03  Bruno Haible  <bruno@clisp.org>
16924
16925         * modules/visibility (License): Change to 'unlimited'.
16926         Suggested by Simon Josefsson.
16927
16928 2009-03-03  Jim Meyering  <meyering@redhat.com>
16929
16930         unlinkdir: cannot_unlink_dir may modify process state
16931         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
16932         it's neither thread-safe nor appropriate for use in a library.
16933
16934 2009-03-03  Eric Blake  <ebb9@byu.net>
16935
16936         test-closein: silence test under Darwin
16937         * tests/test-closein.sh: Ignore stderr from cat, since we don't
16938         care if it dies from EPIPE or EBADF.
16939
16940 2009-03-03  Bruno Haible  <bruno@clisp.org>
16941
16942         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
16943         earlier.
16944         * doc/visibility.texi: Fix @node and @section.
16945
16946 2009-03-03  Simon Josefsson  <simon@josefsson.org>
16947
16948         * doc/gnulib.texi: Link to sections for ld version script and
16949         visibility.
16950         * doc/visibility.texi: Add @node and @section.
16951         * modules/ld-version-script: New module.
16952         * m4/ld-version-script.m4: New file.
16953         * doc/ld-version-script.texi: New file.
16954
16955 2009-03-02  David Lutterkort  <lutter@redhat.com>
16956
16957         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
16958         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16959
16960 2009-03-02  Bruno Haible  <bruno@clisp.org>
16961
16962         * doc/visibility.texi: Mention libtool's -export-symbols option.
16963
16964 2009-03-02  Jim Meyering  <meyering@redhat.com>
16965
16966         announce-gen: new option: --no-print-checksums
16967         * build-aux/announce-gen (usage): Describe it.
16968         (print_checksums): Print a newline here, not in the [*] footnote.
16969         (main): Honor it.
16970
16971 2009-03-01  Bruno Haible  <bruno@clisp.org>
16972
16973         Use socklen_t in the native Windows replacements prototypes.
16974         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
16975         instead of 'int'.
16976         * lib/getsockopt.c (rpl_getsockopt): Likewise.
16977         * lib/setsockopt.c (rpl_setsockopt): Likewise.
16978         * modules/getsockopt (Depends-on): Add socklen.
16979         * modules/setsockopt (Depends-on): Add socklen.
16980
16981 2009-03-01  Bruno Haible  <bruno@clisp.org>
16982
16983         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
16984         least 4.2.
16985
16986 2009-03-01  Eric Blake  <ebb9@byu.net>
16987             Bruno Haible  <bruno@clisp.org>
16988
16989         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
16990         error messages.
16991         * lib/wait-process.c (wait_subprocess): Omit error message about
16992         deadly signal sent to the child of termsigp != NULL.
16993
16994 2009-03-01  Eric Blake  <ebb9@byu.net>
16995
16996         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
16997
16998 2009-03-01  Bruno Haible  <bruno@clisp.org>
16999
17000         Avoid a gcc warning.
17001         * tests/test-sched.c (b): Make global.
17002         Reported by Eric Blake.
17003
17004 2009-01-19  Martin Lambers  <marlam@marlam.de>
17005
17006         Provide POSIX semantics for socket timeout options on W32.
17007         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
17008         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
17009         * modules/setsockopt: Depend on sys_time module for struct timeval.
17010         * modules/getsockopt: Depend on sys_time module for struct timeval.
17011
17012 2009-03-01  Simon Josefsson  <simon@josefsson.org>
17013
17014         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
17015         __USE_GNU, for consistency with netdb.in.h.
17016         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
17017
17018 2009-03-01  Bruno Haible  <bruno@clisp.org>
17019
17020         More support for FreeMiNT.
17021         * lib/fseeko.c (rpl_fseeko): Complete last commit.
17022         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
17023
17024 2009-03-01  Bruno Haible  <bruno@clisp.org>
17025
17026         More support for FreeMiNT.
17027         * lib/fpurge.c (fpurge): Correct last commit.
17028         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
17029
17030 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17031
17032         Fix unportable awk script in vc-list-files.
17033         * build-aux/vc-list-files: In the replacement awk script, use
17034         substr with a second argument of 1, not zero.
17035         Report by Simon Josefsson.
17036
17037 2009-02-28  Bruno Haible  <bruno@clisp.org>
17038
17039         More support for FreeMiNT.
17040         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
17041         to FreeMiNT today.
17042         * lib/fwriting.c (fwriting): Likewise.
17043         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
17044
17045 2009-02-28  Bruno Haible  <bruno@clisp.org>
17046
17047         * tests/test-freadseek.c (main): Disable test beyond end of file on
17048         FreeMiNT.
17049         * tests/test-ftello.c (main): Likewise.
17050         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
17051
17052 2009-02-28  Bruno Haible  <bruno@clisp.org>
17053
17054         Add tentative support for FreeMiNT.
17055         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
17056         * lib/fpurge.c (fpurge): Likewise.
17057         * lib/freadable.c (freadable): Likewise.
17058         * lib/freading.c (freading): Likewise.
17059         * lib/freadptr.c (freadptr): Likewise.
17060         * lib/freadseek.c (freadptrinc): Likewise.
17061         * lib/fseeko.c (rpl_fseeko): Likewise.
17062         * lib/fseterr.c (fseterr): Likewise.
17063         * lib/fwritable.c (fwritable): Likewise.
17064         * lib/fwriting.c (fwriting): Likewise.
17065         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
17066         Hourihane.
17067         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
17068
17069 2009-02-28  Bruno Haible  <bruno@clisp.org>
17070
17071         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
17072         SIGCHLD.
17073         Reported by Jim Meyering.
17074
17075 2009-02-28  Bruno Haible  <bruno@clisp.org>
17076
17077         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
17078         Mention the results of these tests on various platforms.
17079         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
17080         order.
17081         * doc/posix-functions/printf.texi: Likewise.
17082         * doc/posix-functions/snprintf.texi: Likewise.
17083         * doc/posix-functions/sprintf.texi: Likewise.
17084         * doc/posix-functions/vfprintf.texi: Likewise.
17085         * doc/posix-functions/vprintf.texi: Likewise.
17086         * doc/posix-functions/vsnprintf.texi: Likewise.
17087         * doc/posix-functions/vsprintf.texi: Likewise.
17088         * doc/glibc-functions/obstack_printf.texi: Likewise.
17089         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
17090
17091 2009-02-28  Bruno Haible  <bruno@clisp.org>
17092
17093         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
17094         Reported by Loïc Minier <lool@dooz.org>.
17095
17096 2009-02-27  Bruno Haible  <bruno@clisp.org>
17097
17098         * gnulib-tool (func_import): Make the sed expression used to create the
17099         sed script for updating the .gitignore file POSIX compliant.
17100         Reported by Eric Blake.
17101
17102 2009-02-27  Bruno Haible  <bruno@clisp.org>
17103
17104         * gnulib-tool (sed): Don't alias as "sed --posix".
17105         Reported by Eric Blake.
17106
17107 2009-02-27  Bruno Haible  <bruno@clisp.org>
17108
17109         Avoid test link errors.
17110         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
17111         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
17112         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
17113         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
17114         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17115
17116 2009-02-27  Bruno Haible  <bruno@clisp.org>
17117
17118         Avoid spurious "(cached)" in configure output.
17119         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
17120         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
17121         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
17122         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
17123         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
17124         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
17125         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
17126         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
17127         Reported by Eric Blake.
17128
17129 2009-02-27  Eric Blake  <ebb9@byu.net>
17130
17131         printf: fix regression in previous patch
17132         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
17133
17134 2009-02-27  Bruno Haible  <bruno@clisp.org>
17135
17136         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
17137         value.
17138         * lib/stdint.in.h: Likewise.
17139         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
17140
17141 2009-02-27  Eric Blake  <ebb9@byu.net>
17142
17143         doc: mention more functions added in cygwin 1.7.0
17144         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
17145         addition.
17146         * doc/posix-functions/open_wmemstream.texi: Likewise.
17147         * doc/posix-functions/wcsnlen.texi: Likewise.
17148         * doc/posix-functions/wcsnrtombs.texi: Likewise.
17149         * doc/posix-functions/wcstod.texi: Likewise.
17150         * doc/posix-functions/wcstof.texi: Likewise.
17151         * doc/posix-functions/wcstoimax.texi: Likewise.
17152         * doc/posix-functions/wcstok.texi: Likewise.
17153         * doc/posix-functions/wcstoumax.texi: Likewise.
17154
17155         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
17156         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
17157         * doc/posix-functions/fprintf.texi: Update.
17158         * doc/posix-functions/printf.texi: Update.
17159         * doc/posix-functions/snprintf.texi: Update.
17160         * doc/posix-functions/sprintf.texi: Update.
17161         * doc/posix-functions/vfprintf.texi: Update.
17162         * doc/posix-functions/vprintf.texi: Update.
17163         * doc/posix-functions/vsnprintf.texi: Update.
17164         * doc/posix-functions/vsprintf.texi: Update.
17165         * doc/glibc-functions/obstack_printf.texi: Update.
17166         * doc/glibc-functions/obstack_vprintf.texi: Update.
17167
17168 2009-02-26  Eric Blake  <ebb9@byu.net>
17169
17170         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
17171         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
17172         compilation bug by using runtime conversion.
17173         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
17174         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
17175         * modules/ceill-tests (Files): Use nan.h.
17176         * modules/floorl-tests (Files): Likewise.
17177         * modules/frexpl-tests (Files): Likewise.
17178         * modules/isnanl-tests (Files): Likewise.
17179         * modules/ldexpl-tests (Files): Likewise.
17180         * modules/roundl-tests (Files): Likewise.
17181         * modules/truncl-tests (Files): Likewise.
17182         * tests/test-ceill.c (main): Use a working NaN.
17183         * tests/test-floorl.c (main): Likewise.
17184         * tests/test-frexpl.c (main): Likewise.
17185         * tests/test-isnan.c (test_long_double): Likewise.
17186         * tests/test-isnanl.h (main): Likewise.
17187         * tests/test-ldexpl.h (main): Likewise.
17188         * tests/test-roundl.h (main): Likewise.
17189         * tests/test-truncl.h (main): Likewise.
17190         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
17191
17192 2009-02-26  Eric Blake  <ebb9@byu.net>
17193             Bruno Haible  <bruno@clisp.org>
17194
17195         Work around a *printf bug with %ls on Solaris.
17196         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
17197         precision is specified, sprintf stops converting the wide string
17198         argument when the number of bytes that have been produced by this
17199         conversion equals or exceeds the precision.
17200         * doc/posix-functions/fprintf.texi: Update.
17201         * doc/posix-functions/printf.texi: Update.
17202         * doc/posix-functions/snprintf.texi: Update.
17203         * doc/posix-functions/sprintf.texi: Update.
17204         * doc/posix-functions/vfprintf.texi: Update.
17205         * doc/posix-functions/vprintf.texi: Update.
17206         * doc/posix-functions/vsnprintf.texi: Update.
17207         * doc/posix-functions/vsprintf.texi: Update.
17208         * doc/glibc-functions/obstack_printf.texi: Update.
17209         * doc/glibc-functions/obstack_vprintf.texi: Update.
17210
17211 2009-02-26  Eric Blake  <ebb9@byu.net>
17212
17213         stdlib: favor compiler check of random.h
17214         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
17215         to avoid an ObjC random.h installed by Swarm.
17216
17217 2009-02-26  Bruno Haible  <bruno@clisp.org>
17218
17219         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
17220         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
17221         Reported by Gary V. Vaughan <gary@gnu.org>.
17222
17223 2009-02-26  Bruno Haible  <bruno@clisp.org>
17224
17225         Fix *printf behaviour regarding the %ls directive.
17226         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
17227         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
17228         NEED_PRINTF_DIRECTIVE_LS.
17229         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
17230         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
17231         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
17232         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
17233         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
17234         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
17235         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
17236         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
17237         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
17238         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
17239         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
17240         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
17241         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
17242         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
17243         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
17244         * doc/posix-functions/fprintf.texi: Update.
17245         * doc/posix-functions/printf.texi: Update.
17246         * doc/posix-functions/snprintf.texi: Update.
17247         * doc/posix-functions/sprintf.texi: Update.
17248         * doc/posix-functions/vfprintf.texi: Update.
17249         * doc/posix-functions/vprintf.texi: Update.
17250         * doc/posix-functions/vsnprintf.texi: Update.
17251         * doc/posix-functions/vsprintf.texi: Update.
17252         * doc/glibc-functions/obstack_printf.texi: Update.
17253         * doc/glibc-functions/obstack_vprintf.texi: Update.
17254         Reported by Eric Blake.
17255
17256 2009-02-25  Bruno Haible  <bruno@clisp.org>
17257
17258         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
17259         with known value.
17260         Reported by Gary V. Vaughan <gary@gnu.org>.
17261
17262 2009-02-25  Bruno Haible  <bruno@clisp.org>
17263
17264         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
17265         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
17266         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
17267         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
17268         Reported by Gary V. Vaughan <gary@gnu.org>.
17269
17270 2009-02-25  Bruno Haible  <bruno@clisp.org>
17271
17272         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
17273         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
17274         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
17275         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
17276         Reported by Gary V. Vaughan <gary@gnu.org>.
17277
17278 2009-02-25  Eric Blake  <ebb9@byu.net>
17279
17280         tests: skip fseek/ftell tests if ungetc is broken
17281         * m4/ungetc.m4: New file.
17282         * modules/fseek-tests: Split test, so ungetc dependency is
17283         separate from rest of test.
17284         * modules/fseeko-tests: Likewise.
17285         * modules/ftell-tests: Likewise.
17286         * modules/ftello-tests: Likewise.
17287         * tests/test-fseek.c (main): Isolate ungetc dependency.
17288         * tests/test-fseeko.c (main): Likewise.
17289         * tests/test-ftell.c (main): Likewise.
17290         * tests/test-ftello.c (main): Likewise.
17291         * tests/test-fseek2.sh: New file.
17292         * tests/test-fseeko2.sh: Likewise.
17293         * tests/test-ftell2.sh: Likewise.
17294         * tests/test-ftello2.sh: Likewise.
17295
17296 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
17297
17298         test-getaddrinfo: fix usage of skip return code 77
17299         * tests/test-gettaddrinfo.c: Return skip code 77 only
17300         for first occurance of skip (4x77 is not 77)
17301
17302 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
17303
17304         strtod: avoid C99 decl-after-statement
17305         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
17306
17307 2009-02-24  Eric Blake  <ebb9@byu.net>
17308
17309         strtod: detect HP-UX 11.31 bug
17310         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
17311         Reported by Gary V. Vaughan.
17312
17313 2009-02-23  Bruno Haible  <bruno@clisp.org>
17314
17315         Fix invalid read past end of memory block.
17316         * lib/vasnprintf.c (DCHAR_SET): Define.
17317         (local_wcslen): Define only when needed.
17318         (local_strnlen, local_wcsnlen): New functions.
17319         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
17320         directives that involve a conversion ourselves.
17321         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
17322         wcsnlen, mbrtowc, wcrtomb.
17323         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
17324         * tests/test-vasprintf-posix.c (test_function): Likewise.
17325         * tests/test-snprintf-posix.h (test_function): Likewise.
17326         * tests/test-sprintf-posix.h (test_function): Likewise.
17327         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17328
17329 2009-02-22  Bruno Haible  <bruno@clisp.org>
17330
17331         Implement new clarified decomposition of Hangul syllables.
17332         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
17333         of type LTV, return only a pairwise decomposition.
17334         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
17335         Likewise.
17336         * tests/uninorm/test-decomposition.c (main): Updated expected result.
17337         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
17338         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
17339
17340 2009-02-22  Bruno Haible  <bruno@clisp.org>
17341
17342         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
17343         zero-length results and shrink excess allocated memory.
17344         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
17345         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
17346         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
17347         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
17348         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
17349         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
17350         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
17351         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
17352         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
17353         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
17354         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
17355         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
17356
17357 2009-02-21  Bruno Haible  <bruno@clisp.org>
17358
17359         * doc/gnulib.texi: Include safe-alloc.texi earlier.
17360         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
17361         spaces after a period. Put a space between a macro name and its
17362         argument list. Trivial rewordings.
17363         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
17364         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
17365         (main): Return 0 explicitly.
17366
17367 2009-02-21  Bruno Haible  <bruno@clisp.org>
17368
17369         Tests for module 'uninorm/filter'.
17370         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
17371         * modules/uninorm/filter-tests: New file.
17372
17373         New module 'uninorm/filter'.
17374         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
17375         uninorm_filter_flush, uninorm_filter_free): New declarations.
17376         * lib/uninorm/uninorm-filter.c: New file.
17377         * modules/uninorm/filter: New file.
17378
17379 2009-02-21  Bruno Haible  <bruno@clisp.org>
17380
17381         Tests for module 'uninorm/nfkc'.
17382         * tests/uninorm/test-nfkc.c: New file.
17383         * tests/uninorm/test-u8-nfkc.c: New file.
17384         * tests/uninorm/test-u16-nfkc.c: New file.
17385         * tests/uninorm/test-u32-nfkc.c: New file.
17386         * tests/uninorm/test-u32-nfkc-big.sh: New file.
17387         * tests/uninorm/test-u32-nfkc-big.c: New file.
17388         * modules/uninorm/nfkc-tests: New file.
17389
17390         New module 'uninorm/nfkc'.
17391         * lib/uninorm/nfkc.c: New file.
17392         * modules/uninorm/nfkc: New file.
17393
17394         Tests for module 'uninorm/nfkd'.
17395         * tests/uninorm/test-nfkd.c: New file.
17396         * tests/uninorm/test-u8-nfkd.c: New file.
17397         * tests/uninorm/test-u16-nfkd.c: New file.
17398         * tests/uninorm/test-u32-nfkd.c: New file.
17399         * tests/uninorm/test-u32-nfkd-big.sh: New file.
17400         * tests/uninorm/test-u32-nfkd-big.c: New file.
17401         * modules/uninorm/nfkd-tests: New file.
17402
17403         New module 'uninorm/nfkd'.
17404         * lib/uninorm/nfkd.c: New file.
17405         * modules/uninorm/nfkd: New file.
17406
17407         Tests for module 'uninorm/nfc'.
17408         * tests/uninorm/test-nfc.c: New file.
17409         * tests/uninorm/test-u8-nfc.c: New file.
17410         * tests/uninorm/test-u16-nfc.c: New file.
17411         * tests/uninorm/test-u32-nfc.c: New file.
17412         * tests/uninorm/test-u32-nfc-big.sh: New file.
17413         * tests/uninorm/test-u32-nfc-big.c: New file.
17414         * modules/uninorm/nfc-tests: New file.
17415
17416         New module 'uninorm/nfc'.
17417         * lib/uninorm/nfc.c: New file.
17418         * modules/uninorm/nfc: New file.
17419
17420         Tests for module 'uninorm/nfd'.
17421         * tests/uninorm/test-nfd.c: New file.
17422         * tests/uninorm/test-u8-nfd.c: New file.
17423         * tests/uninorm/test-u16-nfd.c: New file.
17424         * tests/uninorm/test-u32-nfd.c: New file.
17425         * tests/uninorm/test-u32-nfd-big.sh: New file.
17426         * tests/uninorm/test-u32-nfd-big.c: New file.
17427         * tests/uninorm/test-u32-normalize-big.h: New file.
17428         * tests/uninorm/test-u32-normalize-big.c: New file.
17429         * tests/uninorm/NormalizationTest.txt: New file, created from
17430         Unicode 5.1.0 NormalizationTest.txt.
17431         * modules/uninorm/nfd-tests: New file.
17432
17433         New module 'uninorm/nfd'.
17434         * lib/uninorm/nfd.c: New file.
17435         * modules/uninorm/nfd: New file.
17436
17437         New module 'uninorm/u32-normalize'.
17438         * lib/uninorm/u32-normalize.c: New file.
17439         * modules/uninorm/u32-normalize: New file.
17440
17441         New module 'uninorm/u16-normalize'.
17442         * lib/uninorm/u16-normalize.c: New file.
17443         * modules/uninorm/u16-normalize: New file.
17444
17445         New module 'uninorm/u8-normalize'.
17446         * lib/uninorm/u8-normalize.c: New file.
17447         * lib/uninorm/normalize-internal.h: New file.
17448         * lib/uninorm/u-normalize-internal.h: New file.
17449         * modules/uninorm/u8-normalize: New file.
17450
17451         New module 'uninorm/decompose-internal'.
17452         * lib/uninorm/decompose-internal.c: New file.
17453         * modules/uninorm/decompose-internal: New file.
17454
17455         Tests for module 'uninorm/composition'.
17456         * tests/uninorm/test-composition.c: New file.
17457         * modules/uninorm/composition-tests: New file.
17458
17459         New module 'uninorm/composition'.
17460         * lib/uninorm/composition.c: New file.
17461         * lib/uninorm/composition-table.gperf: New file, generated by
17462         gen-uni-tables.
17463         * modules/uninorm/composition: New file.
17464
17465         Tests for module 'uninorm/compat-decomposition'.
17466         * tests/uninorm/test-compat-decomposition.c: New file.
17467         * modules/uninorm/compat-decomposition-tests: New file.
17468
17469         New module 'uninorm/compat-decomposition'.
17470         * lib/uninorm/decompose-internal.h: New file.
17471         * lib/uninorm/compat-decomposition.c: New file.
17472         * modules/uninorm/compat-decomposition: New file.
17473
17474         Tests for module 'uninorm/canonical-decomposition'.
17475         * tests/uninorm/test-canonical-decomposition.c: New file.
17476         * modules/uninorm/canonical-decomposition-tests: New file.
17477
17478         New module 'uninorm/canonical-decomposition'.
17479         * lib/uninorm/canonical-decomposition.c: New file.
17480         * modules/uninorm/canonical-decomposition: New file.
17481
17482         Tests for module 'uninorm/decomposition'.
17483         * tests/uninorm/test-decomposition.c: New file.
17484         * modules/uninorm/decomposition-tests: New file.
17485
17486         New module 'uninorm/decomposition'.
17487         * lib/uninorm/decomposition.c: New file.
17488         * modules/uninorm/decomposition: New file.
17489
17490         New module 'uninorm/decomposition-table'.
17491         * lib/uninorm/decomposition-table.h: New file.
17492         * lib/uninorm/decomposition-table.c: New file.
17493         * lib/uninorm/decomposition-table1.h: New file, generated by
17494         gen-uni-tables.
17495         * lib/uninorm/decomposition-table2.h: New file, generated by
17496         gen-uni-tables.
17497         * modules/uninorm/decomposition-table: New file.
17498
17499         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
17500         (UC_DECOMP_*): New enumeration items.
17501         (get_decomposition): New function.
17502         (struct decomp_table): New type.
17503         (output_decomposition, output_decomposition_tables): New functions.
17504         (unicode_composition_exclusions): New variable.
17505         (fill_composition_exclusions, debug_output_composition_tables): New
17506         functions.
17507         (main): Accept one more argument. Invoke fill_composition_exclusions.
17508         Output decomposition and composition tables.
17509
17510         New module 'uninorm/base'.
17511         * lib/uninorm.h: New file.
17512         * lib/unictype.h: Update comment.
17513         * modules/uninorm/base: New file.
17514
17515 2009-02-21  David Lutterkort  <lutter@redhat.com>
17516
17517         Tests for module 'safe-alloc'.
17518         * tests/test-safe-alloc.c: New file.
17519         * modules/safe-alloc-tests: New file.
17520
17521         New module 'safe-alloc'.
17522         * lib/safe-alloc.h: New file.
17523         * lib/safe-alloc.c: New file.
17524         * m4/safe-alloc.m4: New file.
17525         * modules/safe-alloc: New file.
17526         * doc/safe-alloc.texi: New file.
17527         * doc/gnulib.texi: Include it.
17528         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
17529         safe-alloc.
17530
17531 2009-02-18  Bruno Haible  <bruno@clisp.org>
17532
17533         Fix link error on non-glibc systems.
17534         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
17535         variable.
17536         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17537
17538 2009-02-18  Jim Meyering  <meyering@redhat.com>
17539
17540         fts: avoid used-uninitialized error due to recent change
17541         * lib/fts.c (fts_read): Guard uses of the new member,
17542         parent->fts_n_dirs_remaining, since it's not relevant for
17543         the parent of a directory specified on the command-line.
17544
17545 2009-02-17  James Youngman  <jay@gnu.org>
17546             Bruno Haible  <bruno@clisp.org>
17547
17548         * m4/include_next.m4: Reformulate comment.
17549
17550 2009-02-16  Jim Meyering  <meyering@redhat.com>
17551
17552         fts: add #if guards so that the fts_lgpl module still builds
17553         * lib/fts.c: Guard just-added hash-table-using parts with
17554         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
17555         Reported by Simon Josefsson.
17556
17557 2009-02-15  Bruno Haible  <bruno@clisp.org>
17558
17559         * modules/array-mergesort-tests: New file.
17560         * tests/test-array-mergesort.c: New file.
17561
17562         New module 'array-mergesort'.
17563         * modules/array-mergesort: New file.
17564         * lib/array-mergesort.h: New file.
17565
17566 2009-02-15  Bruno Haible  <bruno@clisp.org>
17567
17568         Fix 2009-02-07 commit.
17569         * lib/gen-uni-tables.c (output_predicate, output_category,
17570         output_combclass, output_bidi_category, output_decimal_digit,
17571         output_digit, output_numeric, output_mirror, output_scripts,
17572         output_ident_category, output_simple_mapping): Fix format directives.
17573         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
17574
17575 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
17576
17577         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
17578         fixes are available from IBM.
17579
17580 2009-02-13  Jim Meyering  <meyering@redhat.com>
17581
17582         fts: arrange not to stat non-directories in more cases
17583         This makes GNU find (when it doesn't need to stat each file)
17584         *much* more efficient at traversing reiserfs file systems.
17585         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
17586         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
17587         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
17588         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
17589         (leaf_optimization_applies): New function.
17590         (LCO_hash, LCO_compare): New helper functions.
17591         (link_count_optimize_ok): New function.
17592         (fts_stat): Initialize new member (if dir).
17593         (fts_read): Decrement parent's fts_n_dirs_remaining count if
17594         we've just stat'ed a directory.  Skip the stat call when possible.
17595         ---
17596         Note this AFS-related exchange:
17597         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
17598         and note find's pioctl call in find/fstype.c.
17599         But that is necessary only if you want to enable the
17600         optimization for AFS, and for now, I don't.
17601
17602         fts: move a function definition "up" (no semantic change)
17603         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
17604         "up" to precede upcoming use of a related function.
17605
17606 2009-02-11  Jim Meyering  <meyering@redhat.com>
17607
17608         fts: correct internal computation of nlinks (optimization-related)
17609         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
17610         whether the current entry is a directory, so don't test it.
17611
17612 2009-02-10  Bruno Haible  <bruno@clisp.org>
17613
17614         Tests for module 'uniwbrk/ulc-wordbreaks'.
17615         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
17616         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
17617         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
17618
17619         Tests for module 'uniwbrk/u32-wordbreaks'.
17620         * modules/uniwbrk/u32-wordbreaks-tests: New file.
17621         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
17622
17623         Tests for module 'uniwbrk/u16-wordbreaks'.
17624         * modules/uniwbrk/u16-wordbreaks-tests: New file.
17625         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
17626
17627         Tests for module 'uniwbrk/u8-wordbreaks'.
17628         * modules/uniwbrk/u8-wordbreaks-tests: New file.
17629         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
17630
17631 2009-02-10  Bruno Haible  <bruno@clisp.org>
17632
17633         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
17634         property.
17635         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
17636         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
17637         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
17638
17639 2009-02-10  Simon Josefsson  <simon@josefsson.org>
17640
17641         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
17642         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
17643
17644 2009-02-10  Bruno Haible  <bruno@clisp.org>
17645
17646         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
17647         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
17648         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
17649         * lib/unilbrk/u8-possible-linebreaks.c: Update.
17650         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
17651         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
17652
17653 2009-02-09  Simon Josefsson  <simon@josefsson.org>
17654
17655         * lib/sockets.h (gl_fd_to_handle): New function.
17656
17657         * tests/test-sockets.c: Call gl_fd_to_handle.
17658
17659 2009-02-09  Bruno Haible  <bruno@clisp.org>
17660
17661         * doc/havelib.texi: Document the conventions on bi-arch systems.
17662
17663 2009-02-08  Bruno Haible  <bruno@clisp.org>
17664
17665         Document the AC_LIB_LINKFLAGS macro.
17666         * doc/havelib.texi: New file, mostly written on 2005-05-24.
17667         * doc/gnulib.texi: Include it.
17668
17669 2009-02-08  Bruno Haible  <bruno@clisp.org>
17670
17671         Fix wrong order of sections, compared to TOC.
17672         * doc/gnulib.texi: Include relocatable-maint.texi after the
17673         "Regular expressions" node, not before.
17674
17675 2009-02-08  Bruno Haible  <bruno@clisp.org>
17676
17677         Tests for module 'unicase/totitle'.
17678         * modules/unicase/totitle-tests: New file.
17679
17680         Tests for module 'unicase/tolower'.
17681         * modules/unicase/tolower-tests: New file.
17682
17683         Tests for module 'unicase/toupper'.
17684         * modules/unicase/toupper-tests: New file.
17685         * tests/unicase/test-mapping-part1.h: New file.
17686         * tests/unicase/test-mapping-part2.h: New file.
17687
17688         New module 'unicase/totitle'.
17689         * modules/unicase/totitle: New file.
17690         * lib/unicase/totitle.c: New file.
17691
17692         New module 'unicase/tolower'.
17693         * modules/unicase/tolower: New file.
17694         * lib/unicase/tolower.c: New file.
17695
17696         New module 'unicase/toupper'.
17697         * modules/unicase/toupper: New file.
17698         * lib/unicase/toupper.c: New file.
17699         * lib/unicase/simple-mapping.h: New file.
17700
17701         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
17702         (mapping_table): New structure.
17703         (output_simple_mapping): New function.
17704         (main): Invoke output_simple_mapping_test and output_simple_mapping.
17705         * modules/gen-uni-tables (Description): Update.
17706         * lib/unicase/toupper.h: New file, automatically generated by
17707         gen-uni-tables.
17708         * lib/unicase/tolower.h: New file, automatically generated by
17709         gen-uni-tables.
17710         * lib/unicase/totitle.h: New file, automatically generated by
17711         gen-uni-tables.
17712         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
17713         gen-uni-tables.
17714         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
17715         gen-uni-tables.
17716         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
17717         gen-uni-tables.
17718
17719         New module 'unicase/base'.
17720         * modules/unicase/base: New file.
17721         * lib/unicase.h: New file.
17722
17723 2009-02-08  Bruno Haible  <bruno@clisp.org>
17724
17725         New module 'uniwbrk/ulc-wordbreaks'.
17726         * modules/uniwbrk/ulc-wordbreaks: New file.
17727         * lib/uniwbrk/ulc-wordbreaks.c: New file.
17728
17729         New module 'uniwbrk/u32-wordbreaks'.
17730         * modules/uniwbrk/u32-wordbreaks: New file.
17731         * lib/uniwbrk/u32-wordbreaks.c: New file.
17732
17733         New module 'uniwbrk/u16-wordbreaks'.
17734         * modules/uniwbrk/u16-wordbreaks: New file.
17735         * lib/uniwbrk/u16-wordbreaks.c: New file.
17736
17737         New module 'uniwbrk/u8-wordbreaks'.
17738         * modules/uniwbrk/u8-wordbreaks: New file.
17739         * lib/uniwbrk/u8-wordbreaks.c: New file.
17740         * lib/uniwbrk/u-wordbreaks.h: New file.
17741
17742         New module 'uniwbrk/table'.
17743         * modules/uniwbrk/table: New file.
17744         * lib/uniwbrk/wbrktable.h: New file.
17745         * lib/uniwbrk/wbrktable.c: New file.
17746
17747         New module 'uniwbrk/wordbreak-property'.
17748         * modules/uniwbrk/wordbreak-property: New file.
17749         * lib/uniwbrk/wordbreak-property.c: New file.
17750
17751         * lib/gen-uni-tables.c (WBP_*): New enum items.
17752         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
17753         (unicode_org_wbp): New variable.
17754         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
17755         New functions.
17756         (wbp_table): New structure.
17757         (output_wbp, output_wbrk_tables): New functions.
17758         (main): Accept additional argument. Invoke fill_org_wbp,
17759         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
17760         output_wbrk_tables.
17761         * modules/gen-uni-tables (Description): Update.
17762         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
17763         gen-uni-tables.
17764
17765         New module 'uniwbrk/base'.
17766         * modules/uniwbrk/base: New file.
17767         * lib/uniwbrk.h: New file.
17768
17769 2009-02-08  Bruno Haible  <bruno@clisp.org>
17770
17771         Update to Unicode 5.1.0.
17772         * lib/gen-uni-tables.c (is_property_alphabetic): Include
17773         U+2185..U+2188.
17774         (is_property_default_ignorable_code_point): Don't include characters
17775         of category Cc or Cs and not-a-characters.
17776         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
17777         U+0D79, U+109E, U+109F, U+A60C.
17778         * lib/unictype/bidi_of.h: Regenerated.
17779         * lib/unictype/blocks.h: Regenerated.
17780         * lib/unictype/categ_C.h: Regenerated.
17781         * lib/unictype/categ_Cf.h: Regenerated.
17782         * lib/unictype/categ_Cn.h: Regenerated.
17783         * lib/unictype/categ_L.h: Regenerated.
17784         * lib/unictype/categ_Ll.h: Regenerated.
17785         * lib/unictype/categ_Lm.h: Regenerated.
17786         * lib/unictype/categ_Lo.h: Regenerated.
17787         * lib/unictype/categ_Lu.h: Regenerated.
17788         * lib/unictype/categ_M.h: Regenerated.
17789         * lib/unictype/categ_Mc.h: Regenerated.
17790         * lib/unictype/categ_Me.h: Regenerated.
17791         * lib/unictype/categ_Mn.h: Regenerated.
17792         * lib/unictype/categ_N.h: Regenerated.
17793         * lib/unictype/categ_Nd.h: Regenerated.
17794         * lib/unictype/categ_Nl.h: Regenerated.
17795         * lib/unictype/categ_No.h: Regenerated.
17796         * lib/unictype/categ_P.h: Regenerated.
17797         * lib/unictype/categ_Pd.h: Regenerated.
17798         * lib/unictype/categ_Pe.h: Regenerated.
17799         * lib/unictype/categ_Pf.h: Regenerated.
17800         * lib/unictype/categ_Pi.h: Regenerated.
17801         * lib/unictype/categ_Po.h: Regenerated.
17802         * lib/unictype/categ_Ps.h: Regenerated.
17803         * lib/unictype/categ_S.h: Regenerated.
17804         * lib/unictype/categ_Sk.h: Regenerated.
17805         * lib/unictype/categ_Sm.h: Regenerated.
17806         * lib/unictype/categ_So.h: Regenerated.
17807         * lib/unictype/categ_of.h: Regenerated.
17808         * lib/unictype/combining.h: Regenerated.
17809         * lib/unictype/ctype_alnum.h: Regenerated.
17810         * lib/unictype/ctype_alpha.h: Regenerated.
17811         * lib/unictype/ctype_graph.h: Regenerated.
17812         * lib/unictype/ctype_lower.h: Regenerated.
17813         * lib/unictype/ctype_print.h: Regenerated.
17814         * lib/unictype/ctype_punct.h: Regenerated.
17815         * lib/unictype/ctype_upper.h: Regenerated.
17816         * lib/unictype/decdigit.h: Regenerated.
17817         * lib/unictype/digit.h: Regenerated.
17818         * lib/unictype/mirror.h: Regenerated.
17819         * lib/unictype/numeric.h: Regenerated.
17820         * lib/unictype/pr_alphabetic.h: Regenerated.
17821         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
17822         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
17823         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
17824         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
17825         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
17826         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
17827         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
17828         * lib/unictype/pr_combining.h: Regenerated.
17829         * lib/unictype/pr_dash.h: Regenerated.
17830         * lib/unictype/pr_decimal_digit.h: Regenerated.
17831         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
17832         * lib/unictype/pr_deprecated.h: Regenerated.
17833         * lib/unictype/pr_diacritic.h: Regenerated.
17834         * lib/unictype/pr_extender.h: Regenerated.
17835         * lib/unictype/pr_format_control.h: Regenerated.
17836         * lib/unictype/pr_grapheme_base.h: Regenerated.
17837         * lib/unictype/pr_grapheme_extend.h: Regenerated.
17838         * lib/unictype/pr_grapheme_link.h: Regenerated.
17839         * lib/unictype/pr_id_continue.h: Regenerated.
17840         * lib/unictype/pr_id_start.h: Regenerated.
17841         * lib/unictype/pr_ideographic.h: Regenerated.
17842         * lib/unictype/pr_ignorable_control.h: Regenerated.
17843         * lib/unictype/pr_lowercase.h: Regenerated.
17844         * lib/unictype/pr_math.h: Regenerated.
17845         * lib/unictype/pr_numeric.h: Regenerated.
17846         * lib/unictype/pr_other_alphabetic.h: Regenerated.
17847         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
17848         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
17849         * lib/unictype/pr_other_id_continue.h: Regenerated.
17850         * lib/unictype/pr_other_lowercase.h: Regenerated.
17851         * lib/unictype/pr_other_math.h: Regenerated.
17852         * lib/unictype/pr_punctuation.h: Regenerated.
17853         * lib/unictype/pr_sentence_terminal.h: Regenerated.
17854         * lib/unictype/pr_soft_dotted.h: Regenerated.
17855         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
17856         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
17857         * lib/unictype/pr_unified_ideograph.h: Regenerated.
17858         * lib/unictype/pr_uppercase.h: Regenerated.
17859         * lib/unictype/pr_xid_continue.h: Regenerated.
17860         * lib/unictype/pr_xid_start.h: Regenerated.
17861         * lib/unictype/pr_zero_width.h: Regenerated.
17862         * lib/unictype/scripts.h: Regenerated.
17863         * lib/unictype/scripts_byname.gperf: Regenerated.
17864         * lib/unictype/sy_java_ident.h: Regenerated.
17865         * lib/unilbrk/lbrkprop1.h: Regenerated.
17866         * lib/unilbrk/lbrkprop2.h: Regenerated.
17867         * tests/unictype/test-categ_C.c: Regenerated.
17868         * tests/unictype/test-categ_Cf.c: Regenerated.
17869         * tests/unictype/test-categ_Cn.c: Regenerated.
17870         * tests/unictype/test-categ_L.c: Regenerated.
17871         * tests/unictype/test-categ_Ll.c: Regenerated.
17872         * tests/unictype/test-categ_Lm.c: Regenerated.
17873         * tests/unictype/test-categ_Lo.c: Regenerated.
17874         * tests/unictype/test-categ_Lu.c: Regenerated.
17875         * tests/unictype/test-categ_M.c: Regenerated.
17876         * tests/unictype/test-categ_Mc.c: Regenerated.
17877         * tests/unictype/test-categ_Me.c: Regenerated.
17878         * tests/unictype/test-categ_Mn.c: Regenerated.
17879         * tests/unictype/test-categ_N.c: Regenerated.
17880         * tests/unictype/test-categ_Nd.c: Regenerated.
17881         * tests/unictype/test-categ_Nl.c: Regenerated.
17882         * tests/unictype/test-categ_No.c: Regenerated.
17883         * tests/unictype/test-categ_P.c: Regenerated.
17884         * tests/unictype/test-categ_Pd.c: Regenerated.
17885         * tests/unictype/test-categ_Pe.c: Regenerated.
17886         * tests/unictype/test-categ_Pf.c: Regenerated.
17887         * tests/unictype/test-categ_Pi.c: Regenerated.
17888         * tests/unictype/test-categ_Po.c: Regenerated.
17889         * tests/unictype/test-categ_Ps.c: Regenerated.
17890         * tests/unictype/test-categ_S.c: Regenerated.
17891         * tests/unictype/test-categ_Sk.c: Regenerated.
17892         * tests/unictype/test-categ_Sm.c: Regenerated.
17893         * tests/unictype/test-categ_So.c: Regenerated.
17894         * tests/unictype/test-ctype_alnum.c: Regenerated.
17895         * tests/unictype/test-ctype_alpha.c: Regenerated.
17896         * tests/unictype/test-ctype_graph.c: Regenerated.
17897         * tests/unictype/test-ctype_lower.c: Regenerated.
17898         * tests/unictype/test-ctype_print.c: Regenerated.
17899         * tests/unictype/test-ctype_punct.c: Regenerated.
17900         * tests/unictype/test-ctype_upper.c: Regenerated.
17901         * tests/unictype/test-decdigit.h: Regenerated.
17902         * tests/unictype/test-digit.h: Regenerated.
17903         * tests/unictype/test-numeric.h: Regenerated.
17904         * tests/unictype/test-pr_alphabetic.c: Regenerated.
17905         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
17906         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
17907         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
17908         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
17909         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
17910         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
17911         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
17912         * tests/unictype/test-pr_combining.c: Regenerated.
17913         * tests/unictype/test-pr_dash.c: Regenerated.
17914         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
17915         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
17916         * tests/unictype/test-pr_deprecated.c: Regenerated.
17917         * tests/unictype/test-pr_diacritic.c: Regenerated.
17918         * tests/unictype/test-pr_extender.c: Regenerated.
17919         * tests/unictype/test-pr_format_control.c: Regenerated.
17920         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
17921         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
17922         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
17923         * tests/unictype/test-pr_id_continue.c: Regenerated.
17924         * tests/unictype/test-pr_id_start.c: Regenerated.
17925         * tests/unictype/test-pr_ideographic.c: Regenerated.
17926         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
17927         * tests/unictype/test-pr_lowercase.c: Regenerated.
17928         * tests/unictype/test-pr_math.c: Regenerated.
17929         * tests/unictype/test-pr_numeric.c: Regenerated.
17930         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
17931         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
17932         Regenerated.
17933         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
17934         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
17935         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
17936         * tests/unictype/test-pr_other_math.c: Regenerated.
17937         * tests/unictype/test-pr_punctuation.c: Regenerated.
17938         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
17939         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
17940         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
17941         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
17942         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
17943         * tests/unictype/test-pr_uppercase.c: Regenerated.
17944         * tests/unictype/test-pr_xid_continue.c: Regenerated.
17945         * tests/unictype/test-pr_xid_start.c: Regenerated.
17946         * tests/unictype/test-pr_zero_width.c: Regenerated.
17947
17948         Update to Unicode 5.1.0.
17949         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
17950         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
17951         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
17952         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
17953         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
17954         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
17955         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
17956         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
17957         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
17958         (nonspacing_table_ind): Update.
17959         * tests/uniwidth/test-uc_width2.sh: Update expected result.
17960
17961         Update to Unicode 5.1.0.
17962         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
17963         code transform.
17964         * lib/uniname/uniname.c (unicode_character_name,
17965         unicode_name_character): Add the range 0x1Fxxx to the code transform.
17966         * lib/uniname/uninames.h: Regenerated.
17967         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
17968
17969 2009-02-07  Bruno Haible  <bruno@clisp.org>
17970
17971         Merge gen-ctype and gen-lbrk into a single program.
17972         * lib/gen-uni-tables.c: New file, incorporating
17973         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
17974         Add directory prefixes to the names of the generated files.
17975         * lib/unictype/gen-ctype.c: Remove file.
17976         * lib/unilbrk/gen-lbrk.c: Remove file.
17977         * modules/gen-uni-tables: New file.
17978         * modules/unictype/gen-ctype: Remove file.
17979         * modules/unilbrk/gen-lbrk: Remove file.
17980
17981 2009-02-07  Bruno Haible  <bruno@clisp.org>
17982
17983         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
17984
17985         New module 'unistr/u32-strcoll'.
17986         * modules/unistr/u32-strcoll: New file.
17987         * lib/unistr/u32-strcoll.c: New file.
17988
17989         New module 'unistr/u16-strcoll'.
17990         * modules/unistr/u16-strcoll: New file.
17991         * lib/unistr/u16-strcoll.c: New file.
17992
17993         New module 'unistr/u8-strcoll'.
17994         * modules/unistr/u8-strcoll: New file.
17995         * lib/unistr/u8-strcoll.c: New file.
17996         * lib/unistr/u-strcoll.h: New file.
17997
17998 2009-02-07  Bruno Haible  <bruno@clisp.org>
17999
18000         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
18001         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
18002         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
18003         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
18004         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
18005         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
18006
18007 2009-02-07  Bruno Haible  <bruno@clisp.org>
18008
18009         Make 64-bit clean.
18010         * lib/unictype/gen-ctype.c (output_predicate, output_category,
18011         output_combclass, output_bidi_category, output_decimal_digit,
18012         output_digit, output_numeric, output_mirror, output_scripts,
18013         output_ident_category): Use proper width specifier in format strings.
18014
18015 2009-02-07  Bruno Haible  <bruno@clisp.org>
18016
18017         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
18018         failure behaviour.
18019
18020 2009-02-07  Jim Meyering  <meyering@redhat.com>
18021
18022         regex: avoid compilation failure with upcoming gcc-4.4
18023         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
18024         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
18025         "... error: integer overflow in preprocessor expression".
18026
18027 2009-02-05  Ben Pfaff  <blp@gnu.org>
18028
18029         Fix link errors on Windows when close module is used.
18030         * modules/close: Add $(LIB_CLOSE) to Link section.
18031         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
18032         $(LIB_CLOSE) on Windows.
18033
18034 2009-02-05  Jim Meyering  <meyering@redhat.com>
18035
18036         still avoid unused-parameter warnings, but do it cleanly
18037         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
18038         (get_fs_usage): Cast to void instead.
18039         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
18040         (dev_from_mount_options, read_file_system_list): Cast to void.
18041         Prompted by Bruno Haible.
18042
18043 2009-02-04  Jim Meyering  <meyering@redhat.com>
18044
18045         fsusage.c: correct copyright year
18046         * lib/fsusage.c: Reflect year in which the change is pushed into
18047
18048         avoid misc. warnings
18049         * lib/fsusage.c (UNUSED_PARAM): Define.
18050         (get_fs_usage): Mark parameter "disk" as unused.
18051         * lib/getugroups.c (getgrent): Use "void" in prototype.
18052         * lib/mountlist.c: Mark unused parameters.
18053         (read_file_system_list): Declare a local with "const".
18054         * lib/nanosleep.c (getnow): Declare static.
18055         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
18056
18057         dirfd: set errno upon failure
18058         * lib/dirfd.c: Include <errno.h>.
18059         Set errno to ENOTSUP when returning -1.
18060         * modules/dirfd (Depends-on): Add errno.
18061         Suggested by John Kodis <kodis@comcast.net>.
18062
18063 2009-02-01  Bruno Haible  <bruno@clisp.org>
18064
18065         Don't assume sizeof (long) >= sizeof (void *).
18066         * lib/memcmp.c: Include stdint.h.
18067         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
18068         srcp2 to 'const byte *'.
18069         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
18070         types to uintptr_t.
18071         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
18072         * modules/memcmp (Depends-on): Add stdint.
18073         Reported by Ozkan Sezer <sezeroz@gmail.com>.
18074
18075 2009-01-30  Eric Blake  <ebb9@byu.net>
18076
18077         fix more require-before-expand issues
18078         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
18079         expand, AC_PROG_AWK.
18080         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
18081
18082 2009-01-28  Eric Blake  <ebb9@byu.net>
18083
18084         version-etc: use consistent URL formatting
18085         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
18086         Improve formatting.  Use fputs for string without %.
18087
18088 2009-01-28  Jim Meyering  <meyering@redhat.com>
18089
18090         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
18091         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
18092         "underquoted definition of NAME" from autoconf-2.59.
18093
18094 2009-01-28  Bruno Haible  <bruno@clisp.org>
18095
18096         * doc/gnulib.texi: Add "Obsolete modules" to index.
18097
18098 2009-01-28  Jim Meyering  <meyering@redhat.com>
18099
18100         useless-if-before-free: recognize more variants
18101         * build-aux/useless-if-before-free: Also recognize e.g.,
18102         if (NULL != p) free (p);
18103
18104 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
18105
18106         test-getaddrinfo: skip (don't fail) this test when there's no network
18107         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
18108         on the presumption that it means you lack network access.
18109
18110 2009-01-26  Jim Meyering  <meyering@redhat.com>
18111
18112         fflush: avoid warnings on modern systems
18113         * lib/fflush.c (rpl_fflush): Move declarations of locals,
18114         pos and result, into scopes where they're used.
18115
18116 2009-01-26  Eric Blake  <ebb9@byu.net>
18117
18118         Silence warning reintroduced by recent extensions patch.
18119         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
18120         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
18121         autoconf.
18122
18123         Backport improved autoconf semantics of AC_DEFUN_ONCE.
18124         * m4/00gnulib.m4: New file.
18125         * gnulib-tool (func_get_filelist): Always use it.
18126         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
18127         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
18128
18129 2009-01-25  Bruno Haible  <bruno@clisp.org>
18130
18131         Make test-quotearg work on MacOS X and AIX.
18132         * tests/test-quotearg.sh: New file.
18133         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
18134         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
18135         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
18136         include <libintl.h>.
18137         (fake_locale): Remove variable.
18138         (gettext, dgettext, dcgettext): Remove functions.
18139         (main): Instead of setting a fake locale, set a real locale. Call
18140         textdomain and bindtextdomain.
18141         * modules/quotearg-tests (Files): Add the new files.
18142         (Depends-on): Add gettext, setenv, unsetenv.
18143         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
18144         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
18145         Augment TESTS_ENVIRONMENT.
18146
18147 2009-01-25  Bruno Haible  <bruno@clisp.org>
18148
18149         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
18150         fr_FR.ISO8859-1 locale on MacOS X.
18151         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
18152         ja_JP.eucJP locale on MacOS X.
18153         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
18154         zh_CN.GB18030 locale on MacOS X.
18155
18156 2009-01-25  Bruno Haible  <bruno@clisp.org>
18157
18158         Avoid link errors on MacOS X 10.3.
18159         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
18160         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
18161
18162 2009-01-25  Bruno Haible  <bruno@clisp.org>
18163
18164         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
18165         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
18166         * modules/pipe (Files): Remove m4/posix_spawn.m4.
18167         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
18168         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
18169         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
18170         posix_spawnattr_init, posix_spawnattr_setsigmask,
18171         posix_spawnattr_setflags, posix_spawnattr_destroy.
18172
18173         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
18174         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
18175         * modules/execute (Files): Remove m4/posix_spawn.m4.
18176         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
18177         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
18178         posix_spawnattr_init, posix_spawnattr_setsigmask,
18179         posix_spawnattr_setflags, posix_spawnattr_destroy.
18180
18181 2009-01-25  Bruno Haible  <bruno@clisp.org>
18182
18183         * lib/glthread/threadlib.c: Include <stdlib.h>.
18184
18185 2009-01-25  Bruno Haible  <bruno@clisp.org>
18186
18187         * lib/glthread/threadlib.c (dummy): New declaration.
18188
18189 2009-01-25  Bruno Haible  <bruno@clisp.org>
18190
18191         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
18192         multibyte characters also for the GB18030 encoding. Don't crash when
18193         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
18194
18195 2009-01-25  Bruno Haible  <bruno@clisp.org>
18196
18197         Avoid redefining 'struct random_data' on OSF/1 5.1.
18198         * lib/stdlib.in.h: Include <random.h> if it exists.
18199         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
18200         HAVE_RANDOM_H. Include <random.h> when testing whether
18201         'struct random_data' exists.
18202         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
18203
18204 2009-01-25  Bruno Haible  <bruno@clisp.org>
18205
18206         Don't install charset.alias on MacOS X >= 10.3.
18207         * lib/localcharset.c (DARWIN7): New macro.
18208         (get_charset_aliases): Hardcode the result for Darwin7.
18209         * modules/localcharset (install-exec-local): Don't install
18210         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
18211
18212 2009-01-25  Bruno Haible  <bruno@clisp.org>
18213
18214         Don't install charset.alias on mingw and Cygwin.
18215         * modules/localcharset (install-exec-local): Don't install
18216         charset.alias on mingw and Cygwin, if the file does not yet exist.
18217         The result for these platforms is hardcoded in localcharset.c.
18218
18219 2009-01-25  Bruno Haible  <bruno@clisp.org>
18220
18221         Make it possible again to use AC_GNU_SOURCE together with gnulib.
18222         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
18223         before requiring AC_USE_SYSTEM_EXTENSIONS.
18224
18225 2009-01-25  Jim Meyering  <meyering@redhat.com>
18226
18227         c-strtod: avoid warnings
18228         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
18229         "assignment discards qualifiers from pointer target type" warnings.
18230
18231 2009-01-24  Bruno Haible  <bruno@clisp.org>
18232
18233         Add support for non-UTF-8 locales on MacOS X.
18234         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
18235         canonical encodings. For Darwin 7 and newer, don't map traditional
18236         encodings to UTF-8.
18237         Reported by Vincent Lefevre <vincent@vinc17.org>
18238         at <http://savannah.gnu.org/bugs/?25235>.
18239
18240 2009-01-24  Bruno Haible  <bruno@clisp.org>
18241
18242         * doc/gnulib.texi (Obsolete modules): New section.
18243         Reported by Mike Frysinger <vapier@gentoo.org>.
18244
18245 2009-01-24  Bruno Haible  <bruno@clisp.org>
18246
18247         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
18248         (%.dvi): New rule.
18249
18250 2009-01-24  Bruno Haible  <bruno@clisp.org>
18251
18252         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
18253         Reported by Eric Blake.
18254
18255 2009-01-24  Bruno Haible  <bruno@clisp.org>
18256
18257         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
18258         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
18259         Reported by Gary V. Vaughan <gary@gnu.org>.
18260
18261 2009-01-24  Bruno Haible  <bruno@clisp.org>
18262
18263         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
18264
18265 2009-01-23  Bruno Haible  <bruno@clisp.org>
18266
18267         Make c-strtod, c-strtold usable in libraries.
18268         * lib/c-strtod.c: Include string.h instead of xalloc.h.
18269         (C_STRTOD): Call strdup instead of xstrdup.
18270         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
18271         * modules/c-strtold (Depends-on): Likewise.
18272         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
18273         * NEWS: Mention the change.
18274         Reported by Michael Gold <mgold@ncf.ca>.
18275
18276 2009-01-23  Jim Meyering  <meyering@redhat.com>
18277
18278         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
18279         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
18280         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
18281
18282 2009-01-23  Simon Josefsson  <simon@josefsson.org>
18283
18284         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
18285         GNU CoreUtils.
18286         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
18287         * modules/version-etc (Description): Update.
18288
18289 2009-01-22  Bruno Haible  <bruno@clisp.org>
18290
18291         Cache the C locale object.
18292         * lib/c-strtod.c (c_locale_cache): New variable.
18293         (c_locale): New function.
18294         (C_STRTOD): Use it, and don't call freelocale.
18295         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
18296         Suggested by Paolo Bonzini.
18297
18298 2009-01-21  Bruno Haible  <bruno@clisp.org>
18299
18300         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
18301         conditions other than overflow.
18302
18303 2009-01-21  Bruno Haible  <bruno@clisp.org>
18304
18305         * lib/c-strtod.c: Include errno.h.
18306         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
18307         value from STRTOD_L and STRTOD.
18308
18309 2009-01-21  Bruno Haible  <bruno@clisp.org>
18310         and Jim Meyering  <meyering@redhat.com>
18311
18312         nanosleep: skip configure test (fail it) for apple universal builds
18313         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
18314         universal builds, assume that nanosleep does not work.
18315         * modules/nanosleep (Depends-on): Add multiarch.
18316
18317         mktime: skip configure test (fail it) for apple universal builds
18318         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
18319         universal builds, assume that mktime does not work.
18320         * modules/mktime (Depends-on): Add multiarch.
18321
18322 2009-01-21  Eric Blake  <ebb9@byu.net>
18323
18324         multiarch: avoid expand-before-require warning
18325         * modules/multiarch (configure.ac): Require, rather than expand,
18326         gl_MULTIARCH.
18327         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
18328         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
18329         enforce that all clients require it.  Partial reversion of
18330         2008-12-29 patch.
18331
18332         error: avoid expand-before-require warning
18333         * modules/errno (configure.ac): Require, rather than expand,
18334         gl_HEADER_ERRNO_H.
18335         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
18336         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
18337         enforce that all clients require it.
18338
18339         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
18340         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
18341         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
18342         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
18343
18344 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
18345
18346         Revert:
18347         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
18348
18349         regex: do not depend on obsolete modules.
18350         * modules/regex: Remove memcmp and memmove.
18351
18352 2009-01-20  Bruno Haible  <bruno@clisp.org>
18353
18354         Make the 'link' module link on Windows NT 4.
18355         * lib/link.c (_WIN32_WINNT): Don't define.
18356         (CreateHardLinkFuncType): New type.
18357         (CreateHardLinkFunc, initialized): New variables.
18358         (initialize): New function.
18359         (link): Invoke CreateHardLink indirectly through the function pointer.
18360
18361 2009-01-20  Bruno Haible  <bruno@clisp.org>
18362
18363         Fix compilation failure on mingw.
18364         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
18365
18366 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
18367
18368         * doc/c-strtod.texi: Mention a couple of restrictions.
18369
18370 2009-01-20  Jim Meyering  <meyering@redhat.com>
18371
18372         gettimeofday: move more declarations out of functions
18373         * lib/gettimeofday.c: Move extern declarations of tzset and
18374         gmtime out of containing functions.  Prompted by Bruno Haible.
18375
18376 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
18377
18378         regex: do not depend on obsolete modules.
18379         * modules/regex: Remove memcmp and memmove.
18380
18381 2009-01-19  Bruno Haible  <bruno@clisp.org>
18382
18383         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
18384         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
18385         gl_BIGENDIAN, not AC_C_BIGENDIAN.
18386         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
18387         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
18388
18389 2009-01-19  Bruno Haible  <bruno@clisp.org>
18390
18391         * tests/test-link.c: Include <errno.h>.
18392         (main): Exit with code 77 when a hard link cannot be created due to
18393         the file system.
18394         * tests/test-link.sh: Skip test when a hard link cannot be created due
18395         to the file system.
18396         Suggested by Eric Blake.
18397
18398 2009-01-19  Martin Lambers  <marlam@marlam.de>
18399
18400         * modules/link-tests: New file.
18401         * tests/test-link.sh: New file.
18402         * tests/test-link.c: New file.
18403
18404 2009-01-19  Eric Blake  <ebb9@byu.net>
18405
18406         doc: mention another function added in cygwin 1.7.0
18407         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
18408         Another new function in cygwin 1.7.
18409
18410 2009-01-19  Bruno Haible  <bruno@clisp.org>
18411
18412         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
18413         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
18414         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
18415         gl_BIGENDIAN, not AC_C_BIGENDIAN.
18416         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18417         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
18418         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18419         * m4/md4.m4 (gl_MD4): Likewise.
18420         * m4/md5.m4 (gl_MD5): Likewise.
18421         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
18422         * m4/sha1.m4 (gl_SHA1): Likewise.
18423         * m4/sha256.m4 (gl_SHA256): Likewise.
18424         * m4/sha512.m4 (gl_SHA512): Likewise.
18425
18426 2009-01-19  Bruno Haible  <bruno@clisp.org>
18427
18428         * modules/uniname/uniname-tests (Depends-on): Add progname.
18429         * tests/uniname/test-uninames.c: Include progname.h.
18430         (main): Call set_program_name.
18431
18432         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
18433         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
18434         (main): Call set_program_name.
18435
18436         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
18437         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
18438         (main): Call set_program_name.
18439
18440         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
18441         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
18442         (main): Call set_program_name.
18443
18444         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
18445         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
18446         (main): Call set_program_name.
18447
18448         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
18449         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
18450         (main): Call set_program_name.
18451
18452         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
18453         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
18454         (main): Call set_program_name.
18455
18456         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
18457         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
18458         (main): Call set_program_name.
18459
18460         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
18461         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
18462         (main): Call set_program_name.
18463
18464 2009-01-19  Eric Blake  <ebb9@byu.net>
18465
18466         test-unistd: test previous patch
18467         * tests/test-unistd.c: Test *_FILENO macros.
18468
18469         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
18470         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
18471         Guarantee a definition.
18472         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
18473         * modules/unistd-safer (Depends-on): Add dependency on unistd.
18474         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
18475         * lib/dup-safer.c (STDERR_FILENO): Likewise.
18476         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
18477         Likewise.
18478         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
18479         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
18480         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
18481         Likewise.
18482         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
18483         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
18484         (STDERR_FILENO): Likewise.
18485         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
18486         (STDERR_FILENO): Likewise.
18487         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
18488         (STDERR_FILENO): Likewise.
18489         Reported by Elbert Pol.
18490
18491 2009-01-19  Eric Blake  <ebb9@byu.net>
18492
18493         doc: mention more functions added in cygwin 1.7.0
18494         * doc/posix-functions/abort.texi (abort): Update wording related
18495         to cygwin.
18496         * doc/posix-functions/daylight.texi (daylight): Likewise.
18497         * doc/posix-functions/optarg.texi (optarg): Likewise.
18498         * doc/posix-functions/optarg.texi (opterr): Likewise.
18499         * doc/posix-functions/optarg.texi (optind): Likewise.
18500         * doc/posix-functions/optarg.texi (optopt): Likewise.
18501         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
18502         worked in 1.5.x, and was withdrawn in 1.7.
18503         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
18504         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
18505         cygwin versions.
18506         * doc/posix-functions/perror.texi (perror): Likewise.
18507         * doc/posix-functions/printf.texi (printf): Likewise.
18508         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
18509         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
18510         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
18511         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
18512         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
18513         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
18514         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
18515         Likewise.
18516         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
18517         Likewise.
18518         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
18519         this function.
18520         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
18521         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
18522         Likewise.
18523         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
18524         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
18525         * doc/posix-functions/confstr.texi (confstr): Likewise.
18526         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
18527         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
18528         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
18529         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
18530         * doc/posix-functions/fputws.texi (fputws): Likewise.
18531         * doc/posix-functions/fwide.texi (fwide): Likewise.
18532         * doc/posix-functions/getwc.texi (getwc): Likewise.
18533         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
18534         * doc/posix-functions/putwc.texi (putwc): Likewise.
18535         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
18536         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
18537         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
18538         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
18539         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
18540         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
18541         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
18542         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
18543         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
18544         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
18545         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
18546
18547 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
18548
18549         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
18550         * lib/ioctl.c: Include <sys/ioctl.h>.
18551
18552 2009-01-19  Simon Josefsson  <simon@josefsson.org>
18553
18554         * modules/getdate-tests (Depends-on): Add progname.
18555         * tests/test-getdate.c: Use progname module, to avoid link errors
18556         on non-glibc systems.
18557
18558 2009-01-18  Simon Josefsson  <simon@josefsson.org>
18559
18560         * modules/filenamecat-tests (Depends-on): Add progname.
18561         * modules/fstrcmp-tests (Depends-on): Likewise.
18562
18563         * tests/test-filenamecat.c: Use progname module, to avoid link
18564         errors on non-glibc systems.
18565         * tests/test-fstrcmp.c: Likewise.
18566
18567 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
18568
18569         gettimeofday: avoid warning: nested extern declaration of 'localtime'
18570         * lib/gettimeofday.c: Move extern declaration out of function.
18571
18572 2009-01-18  Bruno Haible  <bruno@clisp.org>
18573
18574         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
18575         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
18576         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
18577
18578 2009-01-18  Bruno Haible  <bruno@clisp.org>
18579
18580         * lib/strftime.c (MEMPCPY): Remove unused macro.
18581         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
18582
18583 2009-01-18  Martin Lambers  <marlam@marlam.de>
18584
18585         New module 'link'.
18586         * lib/unistd.in.h (link): New declaration.
18587         * lib/link.c: New file.
18588         * m4/link.m4: New file.
18589         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
18590         HAVE_LINK.
18591         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
18592         * modules/link: New file.
18593         * doc/posix-functions/link.texi: Mention the new module.
18594
18595 2009-01-18  Bruno Haible  <bruno@clisp.org>
18596
18597         * tests/test-avltree_list.c (main): Call set_program_name.
18598         * tests/test-avltree_oset.c (main): Likewise.
18599         * tests/test-obstack-printf.c: Include progname.h.
18600         (main): Call set_program_name.
18601         * tests/test-quotearg.c: Include progname.h.
18602         (main): Call set_program_name.
18603         * tests/test-xmemdup0.c: Include progname.h.
18604         (main): Call set_program_name.
18605
18606 2009-01-18  Bruno Haible  <bruno@clisp.org>
18607
18608         New module 'alphasort'.
18609         * lib/dirent.in.h (alphasort): New declaration.
18610         * lib/alphasort.c: New file, from glibc with modifications.
18611         * m4/alphasort.m4: New file.
18612         * modules/alphasort: New file.
18613         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
18614         HAVE_ALPHASORT.
18615         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
18616         HAVE_ALPHASORT.
18617         * doc/posix-functions/alphasort.texi: Mention the new module and the
18618         portability problems.
18619
18620 2009-01-18  Bruno Haible  <bruno@clisp.org>
18621
18622         New module 'scandir'.
18623         * lib/dirent.in.h (scandir): New declaration.
18624         * lib/scandir.c: New file, from glibc with modifications.
18625         * m4/scandir.m4: New file.
18626         * modules/scandir: New file.
18627         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
18628         HAVE_SCANDIR.
18629         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
18630         HAVE_SCANDIR.
18631         * doc/posix-functions/scandir.texi: Mention the new module and the
18632         portability problems.
18633
18634 2009-01-17  Bruno Haible  <bruno@clisp.org>
18635
18636         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
18637         Update documentation.
18638         (func_remove_suffix): Escape all dots in the suffix. Update
18639         documentation.
18640         (func_filter_filelist): Update documentation.
18641         Reported by Ralf Wildenhues.
18642
18643 2009-01-17  Bruno Haible  <bruno@clisp.org>
18644
18645         * modules/dprintf-posix-tests: New file.
18646         * tests/test-dprintf-posix.sh: New file.
18647         * tests/test-dprintf-posix.c: New file.
18648
18649         New modules 'dprintf', 'dprintf-posix'.
18650         * lib/stdio.in.h (dprintf): New declaration.
18651         * lib/dprintf.c: New file.
18652         * m4/dprintf.m4: New file.
18653         * m4/dprintf-posix.m4: New file.
18654         * modules/dprintf: New file.
18655         * modules/dprintf-posix: New file.
18656         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
18657         HAVE_DPRINTF, REPLACE_DPRINTF.
18658         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
18659         HAVE_DPRINTF, REPLACE_DPRINTF.
18660         * doc/posix-functions/dprintf.texi: Mention the new modules.
18661
18662 2009-01-17  Bruno Haible  <bruno@clisp.org>
18663
18664         * modules/vdprintf-posix-tests: New file.
18665         * tests/test-vdprintf-posix.sh: New file.
18666         * tests/test-vdprintf-posix.c: New file.
18667
18668         New modules 'vdprintf', 'vdprintf-posix'.
18669         * lib/stdio.in.h (vdprintf): New declaration.
18670         * lib/vdprintf.c: New file.
18671         * m4/vdprintf.m4: New file.
18672         * m4/vdprintf-posix.m4: New file.
18673         * modules/vdprintf: New file.
18674         * modules/vdprintf-posix: New file.
18675         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
18676         HAVE_VDPRINTF, REPLACE_VDPRINTF.
18677         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
18678         HAVE_VDPRINTF, REPLACE_VDPRINTF.
18679         * doc/posix-functions/vdprintf.texi: Mention the new modules.
18680
18681 2009-01-17  Bruno Haible  <bruno@clisp.org>
18682
18683         Fix replacement of fopen on mingw.
18684         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
18685         mingw.
18686
18687 2009-01-17  Bruno Haible  <bruno@clisp.org>
18688
18689         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
18690         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
18691
18692 2009-01-17  Bruno Haible  <bruno@clisp.org>
18693
18694         Avoid test-fflush2.sh failure on mingw.
18695         * tests/test-fflush2.c: Include binary-io.h.
18696         (main): Put standard input into binary mode.
18697         * modules/fflush-tests (Depends-on): Add binary-io.
18698
18699 2009-01-17  Bruno Haible  <bruno@clisp.org>
18700
18701         * lib/wchar.in.h: In another particular situation, include only the
18702         system's <wchar.h> file.
18703         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
18704         Reported by Albert Chin-A-Young <china@thewrittenword.com>
18705         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
18706
18707 2009-01-17  Bruno Haible  <bruno@clisp.org>
18708
18709         Support for stripping executables in --enable-relocatable.
18710         * build-aux/install-reloc: Expect one more argument, or an environment
18711         variable RELOC_STRIP_PROG. If set, strip the destination program and
18712         its wrapper.
18713         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
18714         RELOC_STRIP_PROG.
18715         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
18716         to set RELOCATABLE_STRIP.
18717         * NEWS: Mention the new Makefile requirement.
18718
18719 2009-01-17  Bruno Haible  <bruno@clisp.org>
18720
18721         * build-aux/install-reloc: Remove debugging information left over by
18722         C compiler on MacOS X.
18723
18724 2009-01-17  Bruno Haible  <bruno@clisp.org>
18725
18726         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
18727         * lib/progreloc.c (find_executable): Fix type of pointer passed to
18728         _NSGetExecutablePath.
18729
18730 2009-01-16  Jim Meyering  <meyering@redhat.com>
18731
18732         strerror: avoid warnings about discarding "const"
18733         * lib/strerror.c (rpl_strerror): Instead of returning a const
18734         string from each and every "case", use a variable, and add a single
18735         cast after the switch.
18736
18737 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
18738
18739         * lib/arpa_inet.in.h: Add extern "C" block for C++.
18740
18741 2009-01-16  Bruno Haible  <bruno@clisp.org>
18742
18743         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
18744         array initializer syntax that also works in C++ mode.
18745         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18746
18747 2009-01-16  Jim Meyering  <meyering@redhat.com>
18748
18749         poll: suppress a warning
18750         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
18751         to ignore "...unsigned expression < 0 is always false" warnings.
18752
18753 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
18754
18755         poll: remove declarations of unused variables
18756         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
18757         sockbuf and optlen.
18758
18759 2009-01-15  Bruno Haible  <bruno@clisp.org>
18760
18761         Make fflush-after-ungetc POSIX compliant on BSD systems.
18762         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
18763         (clear_ungetc_buffer): Implement also for other systems.
18764         (rpl_fflush): On glibc systems, invoke
18765         clear_ungetc_buffer_preserving_position. Otherwise, invoke
18766         clear_ungetc_buffer after fetching the stream's position, not before.
18767
18768 2009-01-15  Bruno Haible  <bruno@clisp.org>
18769
18770         Make fflush-after-ungetc POSIX compliant on glibc systems.
18771         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
18772         after ungetc.
18773         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
18774         (rpl_fflush): On glibc systems, simply call the system's fflush
18775         function after clearing the ungetc buffer.
18776         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
18777         Instead, lseek only to the end of file, then use the system's fseeko
18778         for the rest. On glibc systems, reset the EOF indicator bit.
18779
18780 2009-01-15  Jim Meyering  <meyering@redhat.com>
18781
18782         openmp.m4: revert quote-adding change, for portability to older autoconf
18783         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
18784         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
18785         Simon Josefsson noticed the problem when using autoconf-2.61.
18786
18787 2009-01-15  Bruno Haible  <bruno@clisp.org>
18788
18789         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
18790         * tests/test-fflush2.c (ASSERT): Always fail.
18791         (main): Add two tests for fflush() after ungetc(), taking into account
18792         the Austin Group's clarification.
18793         Suggested by Eric Blake.
18794
18795 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
18796
18797         mktime.m4: remove K&R-style function prototypes
18798         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
18799         for the Sun C++ compiler.
18800
18801 2009-01-14  Bruno Haible  <bruno@clisp.org>
18802
18803         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
18804         while including <wchar.h>.
18805         * lib/wchar.in.h: In two particular situations on HP-UX, include only
18806         the system's <wchar.h> file.
18807         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18808
18809 2009-01-14  Bruno Haible  <bruno@clisp.org>
18810
18811         * m4/csharp.m4: Don't mention gettext on the serial number line.
18812         * m4/csharpexec.m4: Likewise.
18813         * m4/eaccess.m4: Likewise.
18814         * m4/javaexec.m4: Likewise.
18815         * m4/sig_atomic_t.m4: Likewise.
18816         * m4/tmpdir.m4: Likewise.
18817         * m4/intldir.m4: Bump gettext version.
18818         * m4/lib-ld.m4: Likewise.
18819
18820 2009-01-14  Bruno Haible  <bruno@clisp.org>
18821
18822         * lib/progname.c (set_program_name): Add more comments.
18823         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
18824
18825 2009-01-14  Simon Josefsson  <simon@josefsson.org>
18826
18827         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
18828         were sys/stat.h does not define it.
18829
18830 2009-01-14  Jim Meyering  <meyering@redhat.com>
18831
18832         many *.m4 files: improve m4 quoting
18833         99% of this change was performed by running the following commands:
18834         git ls-files | grep '\.m4$' | xargs perl -pi \
18835           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
18836           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
18837           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
18838           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
18839         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
18840         The remainder were to add Copyright dates, increment serial numbers,
18841         undo some changes in comments, exclude m4/intl.m4, and add quotes
18842         around the "1" in ",1" where the unusual spacing prohibited the
18843         above regexps from doing the job.  For more details, see
18844         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
18845         * m4/acl.m4: Modified.
18846         * m4/afs.m4: Likewise.
18847         * m4/alloca.m4: Likewise.
18848         * m4/argp.m4: Likewise.
18849         * m4/argz.m4: Likewise.
18850         * m4/atexit.m4: Likewise.
18851         * m4/bison-i18n.m4: Likewise.
18852         * m4/bison.m4: Likewise.
18853         * m4/byteswap.m4: Likewise.
18854         * m4/c-stack.m4: Likewise.
18855         * m4/c-strtod.m4: Likewise.
18856         * m4/calloc.m4: Likewise.
18857         * m4/canonicalize-lgpl.m4: Likewise.
18858         * m4/chown.m4: Likewise.
18859         * m4/clock_time.m4: Likewise.
18860         * m4/codeset.m4: Likewise.
18861         * m4/copy-file.m4: Likewise.
18862         * m4/csharp.m4: Likewise.
18863         * m4/csharpcomp.m4: Likewise.
18864         * m4/csharpexec.m4: Likewise.
18865         * m4/d-ino.m4: Likewise.
18866         * m4/d-type.m4: Likewise.
18867         * m4/dirfd.m4: Likewise.
18868         * m4/double-slash-root.m4: Likewise.
18869         * m4/eaccess.m4: Likewise.
18870         * m4/eealloc.m4: Likewise.
18871         * m4/environ.m4: Likewise.
18872         * m4/errno_h.m4: Likewise.
18873         * m4/euidaccess.m4: Likewise.
18874         * m4/execute.m4: Likewise.
18875         * m4/fatal-signal.m4: Likewise.
18876         * m4/fchdir.m4: Likewise.
18877         * m4/fcntl_h.m4: Likewise.
18878         * m4/fileblocks.m4: Likewise.
18879         * m4/filenamecat.m4: Likewise.
18880         * m4/findprog.m4: Likewise.
18881         * m4/flexmember.m4: Likewise.
18882         * m4/fnmatch.m4: Likewise.
18883         * m4/fopen.m4: Likewise.
18884         * m4/fpending.m4: Likewise.
18885         * m4/fprintf-posix.m4: Likewise.
18886         * m4/free.m4: Likewise.
18887         * m4/frexp.m4: Likewise.
18888         * m4/frexpl.m4: Likewise.
18889         * m4/fsusage.m4: Likewise.
18890         * m4/ftruncate.m4: Likewise.
18891         * m4/gc-camellia.m4: Likewise.
18892         * m4/gc-random.m4: Likewise.
18893         * m4/gc.m4: Likewise.
18894         * m4/getaddrinfo.m4: Likewise.
18895         * m4/getcwd-abort-bug.m4: Likewise.
18896         * m4/getcwd-path-max.m4: Likewise.
18897         * m4/getdate.m4: Likewise.
18898         * m4/getdomainname.m4: Likewise.
18899         * m4/getgroups.m4: Likewise.
18900         * m4/gethostname.m4: Likewise.
18901         * m4/gethrxtime.m4: Likewise.
18902         * m4/getline.m4: Likewise.
18903         * m4/getloadavg.m4: Likewise.
18904         * m4/getndelim2.m4: Likewise.
18905         * m4/getpass.m4: Likewise.
18906         * m4/gettext.m4: Likewise.
18907         * m4/gettime.m4: Likewise.
18908         * m4/gettimeofday.m4: Likewise.
18909         * m4/gnulib-common.m4: Likewise.
18910         * m4/group-member.m4: Likewise.
18911         * m4/host-os.m4: Likewise.
18912         * m4/iconv.m4: Likewise.
18913         * m4/iconv_open.m4: Likewise.
18914         * m4/inet_ntop.m4: Likewise.
18915         * m4/inet_pton.m4: Likewise.
18916         * m4/inline.m4: Likewise.
18917         * m4/intldir.m4: Likewise.
18918         * m4/intlmacosx.m4: Likewise.
18919         * m4/intmax.m4: Likewise.
18920         * m4/intmax_t.m4: Likewise.
18921         * m4/inttypes.m4: Likewise.
18922         * m4/inttypes_h.m4: Likewise.
18923         * m4/inttypes-pri.m4: Likewise.
18924         * m4/isapipe.m4: Likewise.
18925         * m4/isnand.m4: Likewise.
18926         * m4/isnanf.m4: Likewise.
18927         * m4/isnanl.m4: Likewise.
18928         * m4/javacomp.m4: Likewise.
18929         * m4/javaexec.m4: Likewise.
18930         * m4/jm-winsz1.m4: Likewise.
18931         * m4/jm-winsz2.m4: Likewise.
18932         * m4/lchown.m4: Likewise.
18933         * m4/lcmessage.m4: Likewise.
18934         * m4/ldexpl.m4: Likewise.
18935         * m4/lib-ld.m4: Likewise.
18936         * m4/lib-link.m4: Likewise.
18937         * m4/libsigsegv.m4: Likewise.
18938         * m4/link-follow.m4: Likewise.
18939         * m4/localcharset.m4: Likewise.
18940         * m4/locale-fr.m4: Likewise.
18941         * m4/locale-ja.m4: Likewise.
18942         * m4/locale-tr.m4: Likewise.
18943         * m4/locale-zh.m4: Likewise.
18944         * m4/lock.m4: Likewise.
18945         * m4/longlong.m4: Likewise.
18946         * m4/ls-mntd-fs.m4: Likewise.
18947         * m4/lstat.m4: Likewise.
18948         * m4/malloc.m4: Likewise.
18949         * m4/mathl.m4: Likewise.
18950         * m4/mbrtowc.m4: Likewise.
18951         * m4/mbstate_t.m4: Likewise.
18952         * m4/mbswidth.m4: Likewise.
18953         * m4/memchr.m4: Likewise.
18954         * m4/memcmp.m4: Likewise.
18955         * m4/memcpy.m4: Likewise.
18956         * m4/memmem.m4: Likewise.
18957         * m4/memmove.m4: Likewise.
18958         * m4/mempcpy.m4: Likewise.
18959         * m4/memrchr.m4: Likewise.
18960         * m4/memset.m4: Likewise.
18961         * m4/minmax.m4: Likewise.
18962         * m4/mkdir-slash.m4: Likewise.
18963         * m4/mkdtemp.m4: Likewise.
18964         * m4/mktime.m4: Likewise.
18965         * m4/mmap-anon.m4: Likewise.
18966         * m4/mountlist.m4: Likewise.
18967         * m4/nanosleep.m4: Likewise.
18968         * m4/nls.m4: Likewise.
18969         * m4/nocrash.m4: Likewise.
18970         * m4/open.m4: Likewise.
18971         * m4/openat.m4: Likewise.
18972         * m4/openmp.m4: Likewise.
18973         * m4/pathmax.m4: Likewise.
18974         * m4/perl.m4: Likewise.
18975         * m4/physmem.m4: Likewise.
18976         * m4/pipe.m4: Likewise.
18977         * m4/po.m4: Likewise.
18978         * m4/poll.m4: Likewise.
18979         * m4/posixtm.m4: Likewise.
18980         * m4/posixver.m4: Likewise.
18981         * m4/printf-frexp.m4: Likewise.
18982         * m4/printf-frexpl.m4: Likewise.
18983         * m4/printf-posix.m4: Likewise.
18984         * m4/printf-posix-rpl.m4: Likewise.
18985         * m4/printf.m4: Likewise.
18986         * m4/progtest.m4: Likewise.
18987         * m4/putenv.m4: Likewise.
18988         * m4/readline.m4: Likewise.
18989         * m4/readlink.m4: Likewise.
18990         * m4/readutmp.m4: Likewise.
18991         * m4/realloc.m4: Likewise.
18992         * m4/regex.m4: Likewise.
18993         * m4/relocatable.m4: Likewise.
18994         * m4/relocatable-lib.m4: Likewise.
18995         * m4/rename-dest-slash.m4: Likewise.
18996         * m4/rename.m4: Likewise.
18997         * m4/rmdir-errno.m4: Likewise.
18998         * m4/rmdir.m4: Likewise.
18999         * m4/roundf.m4: Likewise.
19000         * m4/roundl.m4: Likewise.
19001         * m4/rpmatch.m4: Likewise.
19002         * m4/save-cwd.m4: Likewise.
19003         * m4/selinux-selinux-h.m4: Likewise.
19004         * m4/setenv.m4: Likewise.
19005         * m4/settime.m4: Likewise.
19006         * m4/sig2str.m4: Likewise.
19007         * m4/sig_atomic_t.m4: Likewise.
19008         * m4/signalblocking.m4: Likewise.
19009         * m4/signbit.m4: Likewise.
19010         * m4/sigpipe.m4: Likewise.
19011         * m4/sockets.m4: Likewise.
19012         * m4/sockpfaf.m4: Likewise.
19013         * m4/st_dm_mode.m4: Likewise.
19014         * m4/stat-time.m4: Likewise.
19015         * m4/stdbool.m4: Likewise.
19016         * m4/stdint.m4: Likewise.
19017         * m4/stdint_h.m4: Likewise.
19018         * m4/stpcpy.m4: Likewise.
19019         * m4/stpncpy.m4: Likewise.
19020         * m4/strcase.m4: Likewise.
19021         * m4/strchrnul.m4: Likewise.
19022         * m4/strcspn.m4: Likewise.
19023         * m4/strdup.m4: Likewise.
19024         * m4/strftime.m4: Likewise.
19025         * m4/strndup.m4: Likewise.
19026         * m4/strnlen.m4: Likewise.
19027         * m4/strpbrk.m4: Likewise.
19028         * m4/strptime.m4: Likewise.
19029         * m4/strsep.m4: Likewise.
19030         * m4/strtod.m4: Likewise.
19031         * m4/strtoimax.m4: Likewise.
19032         * m4/strtok_r.m4: Likewise.
19033         * m4/strtol.m4: Likewise.
19034         * m4/strtoll.m4: Likewise.
19035         * m4/strtoul.m4: Likewise.
19036         * m4/strtoull.m4: Likewise.
19037         * m4/strtoumax.m4: Likewise.
19038         * m4/strverscmp.m4: Likewise.
19039         * m4/threadlib.m4: Likewise.
19040         * m4/timegm.m4: Likewise.
19041         * m4/tm_gmtoff.m4: Likewise.
19042         * m4/tmpdir.m4: Likewise.
19043         * m4/tmpfile.m4: Likewise.
19044         * m4/tzset.m4: Likewise.
19045         * m4/uintmax_t.m4: Likewise.
19046         * m4/unlinkdir.m4: Likewise.
19047         * m4/unlocked-io.m4: Likewise.
19048         * m4/uptime.m4: Likewise.
19049         * m4/userspec.m4: Likewise.
19050         * m4/utimbuf.m4: Likewise.
19051         * m4/utime.m4: Likewise.
19052         * m4/utimes-null.m4: Likewise.
19053         * m4/utimes.m4: Likewise.
19054         * m4/vararrays.m4: Likewise.
19055         * m4/vasnprintf.m4: Likewise.
19056         * m4/vfprintf-posix.m4: Likewise.
19057         * m4/vprintf-posix.m4: Likewise.
19058         * m4/wait-process.m4: Likewise.
19059         * m4/wchar_t.m4: Likewise.
19060         * m4/wint_t.m4: Likewise.
19061         * m4/write-any-file.m4: Likewise.
19062         * m4/yield.m4: Likewise.
19063
19064 2009-01-13  Bruno Haible  <bruno@clisp.org>
19065
19066         Avoid test-copy-file.sh failures when ACL support insufficient.
19067         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
19068         TESTS_ENVIRONMENT.
19069         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
19070         Reported by Jim Meyering.
19071
19072 2009-01-13  Bruno Haible  <bruno@clisp.org>
19073
19074         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
19075         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
19076         * modules/unistdio/u8-printf-parse (Files): Likewise.
19077         * modules/unistdio/u32-printf-parse (Files): Likewise.
19078         * modules/unistdio/ulc-printf-parse (Files): Likewise.
19079
19080 2009-01-13  Simon Josefsson  <simon@josefsson.org>
19081
19082         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
19083         and m4/inttypes_h.m4 too.
19084
19085 2009-01-12  Eric Blake  <ebb9@byu.net>
19086
19087         tests: IRIX 6.2 cc can't compile -0.0 into .data
19088         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
19089         rather than at compile-time.
19090         * tests/test-floorl.c (minus_zero): Likewise.
19091         * tests/test-frexpl.c (minus_zero): Likewise.
19092         * tests/test-isnan.c (minus_zerol): Likewise.
19093         * tests/test-isnanl.h (minus_zero): Likewise.
19094         * tests/test-ldexpl.c (minus_zero): Likewise.
19095         * tests/test-roundl.c (minus_zero): Likewise.
19096         * tests/test-signbit.c (minus_zerol): Likewise.
19097         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
19098         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
19099         * tests/test-truncl.c (minus_zero): Likewise.
19100         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
19101         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
19102         Reported by Tom G. Christensen and Nelson H. F. Beebe.
19103
19104 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
19105
19106         regex: fix glibc bug 9697
19107         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
19108         handling.
19109
19110 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
19111
19112         regex: fix glibc bug 697
19113         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
19114         being NULL also if there are no backreferences.
19115
19116 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
19117
19118         regex: merge glibc changes
19119         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
19120         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
19121         re_string_skip_chars, re_string_reconstruct): Likewise.
19122         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
19123
19124 2009-01-07  Jim Meyering  <meyering@redhat.com>
19125
19126         poll: filter through cppi
19127         * lib/poll.c: Indent cpp directives to reflect nesting.
19128
19129 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
19130
19131         poll: don't return uninitialized
19132         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
19133
19134 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
19135
19136         avoid compile failure on AIX 6.1
19137         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
19138         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
19139
19140 2009-01-04  Jim Meyering  <meyering@redhat.com>
19141
19142         remove duplicate inclusion of <stdio.h>
19143         * tests/test-fprintf-posix.c: Likewise.
19144         * tests/test-printf-posix.c: Likewise.
19145         * tests/test-snprintf-posix.c: Likewise.
19146         * tests/test-sprintf-posix.c: Likewise.
19147         * tests/test-vasprintf-posix.c: Likewise.
19148         * tests/test-vfprintf-posix.c: Likewise.
19149         * tests/test-vprintf-posix.c: Likewise.
19150         * tests/test-vsnprintf-posix.c: Likewise.
19151         * tests/test-vsprintf-posix.c: Likewise.
19152
19153 2009-01-03  Jim Meyering  <meyering@redhat.com>
19154
19155         gnulib-tool: fix sed-based filtering
19156         * gnulib-tool (func_filter_filelist): Remove extra backslash
19157         in sed_fff_filter definition.
19158
19159 2009-01-02  Jim Meyering  <meyering@redhat.com>
19160
19161         strftime: avoid compilation failure on Solaris 2.6
19162         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
19163         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
19164         Don't #define mbrlen or mbsinit, since now they're guaranteed to
19165         be available.  Reported by Tom G. Christensen.  Details in
19166         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
19167
19168 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19169             Bruno Haible  <bruno@clisp.org>
19170
19171         Speed up gnulib-tool by doing more string processing through shell
19172         built-ins.
19173         * gnulib-tool (fast_func_append): New variable.
19174         (func_remove_prefix, func_remove_suffix): New functions.
19175         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
19176         (func_filter_filelist): New function.
19177         (func_get_dependencies): Use func_remove_suffix instead of sed.
19178         (func_get_automake_snippet): Use func_filter_filelist instead of a
19179         subshell and sed invocation.
19180
19181 2009-01-01  Bruno Haible  <bruno@clisp.org>
19182
19183         Fix a security bug.
19184         * gnulib-tool (func_import, import, update): Don't allow the characters
19185         '"', '$', '`', '\' in macro arguments that become part of commands that
19186         are evaluated.
19187
19188 2009-01-01  Bruno Haible  <bruno@clisp.org>
19189
19190         * gnulib-tool (func_reset_sigpipe): Add more comments.
19191
19192 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19193
19194         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
19195         func_emit_tests_Makefile_am, func_import): Abort loops early if we
19196         already know the answer.
19197
19198 2009-01-01  Jim Meyering  <meyering@redhat.com>
19199
19200         * lib/version-etc.c (version_etc_va): Update copyright year.
19201
19202 2008-12-30  Bruno Haible  <bruno@clisp.org>
19203
19204         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
19205         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
19206         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
19207
19208 2008-12-29  Eric Blake  <ebb9@byu.net>
19209
19210         multiarch: avoid autoconf AC_REQUIRE bug
19211         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
19212         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
19213         2.63 and older.
19214         Reported by Bruno Haible, and analyzed in
19215         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
19216
19217 2008-12-29  Bruno Haible  <bruno@clisp.org>
19218
19219         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
19220         files in subdirectories correctly.
19221         Reported by Ralf Wildenhues.
19222
19223 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19224
19225         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
19226         rather than 'join FILE -', for Solaris join.
19227
19228 2008-12-29  Bruno Haible  <bruno@clisp.org>
19229
19230         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
19231         quoting.
19232         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
19233         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
19234         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
19235         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
19236         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
19237         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
19238         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
19239         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
19240         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
19241         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
19242         * m4/nls.m4 (AM_NLS): Likewise.
19243         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
19244         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
19245         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
19246         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
19247         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
19248         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
19249         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
19250         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
19251         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
19252         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
19253         * m4/xsize.m4 (gl_XSIZE): Likewise.
19254         Suggested by Jim Meyering.
19255
19256 2008-11-17  Bruce Korb  <bkorb@gnu.org>
19257
19258         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
19259         * lib/parse-duration.c: use a switch instead of cascading if's.
19260
19261 2008-12-29  Eric Blake  <ebb9@byu.net>
19262
19263         wchar.h: supply WEOF on Irix 5.3
19264         * lib/wchar.in.h (wint_t): Also supply WEOF.
19265         * lib/wctype.in.h (wint_t): Likewise.
19266         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
19267         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
19268         Reported by Tom G. Christensen.
19269
19270 2008-12-26  Bruno Haible  <bruno@clisp.org>
19271
19272         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
19273         i486, i586, i686.
19274
19275 2008-12-26  Bruno Haible  <bruno@clisp.org>
19276
19277         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
19278
19279 2008-12-26  Bruno Haible  <bruno@clisp.org>
19280
19281         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
19282         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
19283         not __STDC_CONSTANT_MACROS.
19284         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
19285
19286 2008-12-25  Bruno Haible  <bruno@clisp.org>
19287
19288         Add support for universal builds to vasnprintf.
19289         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
19290         universal builds, guess no.
19291         * modules/vasnprintf-posix (Depends-on): Add multiarch.
19292         * modules/vasprintf-posix (Depends-on): Likewise.
19293         * modules/fprintf-posix (Depends-on): Likewise.
19294         * modules/vfprintf-posix (Depends-on): Likewise.
19295         * modules/snprintf-posix (Depends-on): Likewise.
19296         * modules/vsnprintf-posix (Depends-on): Likewise.
19297         * modules/sprintf-posix (Depends-on): Likewise.
19298         * modules/vsprintf-posix (Depends-on): Likewise.
19299         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
19300         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19301         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19302         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19303         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19304         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19305         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19306
19307         Add support for universal builds to <inttypes.h>.
19308         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
19309         _SCNu64_PREFIX): In Apple
19310         universal builds, define directly, using _LP64.
19311         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
19312         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
19313         * modules/inttypes (Depends-on): Add multiarch.
19314         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
19315
19316         Add support for universal builds to <stdint.h>.
19317         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
19318         universal builds, define directly, using _LP64.
19319         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
19320         Apple universal builds, don't test for the size and suffix of ptrdiff_t
19321         and size_t.
19322         * modules/stdint (Depends-on): Add multiarch.
19323         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
19324
19325         New module 'multiarch'.
19326         * modules/multiarch: New file.
19327         * m4/multiarch.m4: New file.
19328
19329 2008-12-25  Bruno Haible  <bruno@clisp.org>
19330
19331         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
19332
19333 2008-12-25  Bruno Haible  <bruno@clisp.org>
19334
19335         * modules/btowc (License): Relicense under LGPLv2+.
19336         * modules/mbsinit (License): Likewise.
19337         * modules/mbrtowc (License): Likewise.
19338         * modules/wcrtomb (License): Likewise.
19339         * modules/streq (License): Likewise.
19340         Reported by David Lutterkort <lutter@redhat.com>.
19341
19342 2008-12-23  Bruno Haible  <bruno@clisp.org>
19343
19344         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
19345
19346 2008-12-23  Bruno Haible  <bruno@clisp.org>
19347
19348         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
19349         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
19350         GETADDRINFO_LIB, not in LIBS.
19351         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
19352         * modules/canon-host (Link): Likewise.
19353         * NEWS: Mention the change.
19354         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
19355         GETADDRINFO_LIB.
19356
19357 2008-12-22  Bruno Haible  <bruno@clisp.org>
19358
19359         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
19360         * doc/posix-functions/iswalpha_l.texi: Likewise.
19361         * doc/posix-functions/iswblank_l.texi: Likewise.
19362         * doc/posix-functions/iswcntrl_l.texi: Likewise.
19363         * doc/posix-functions/iswctype_l.texi: Likewise.
19364         * doc/posix-functions/iswdigit_l.texi: Likewise.
19365         * doc/posix-functions/iswgraph_l.texi: Likewise.
19366         * doc/posix-functions/iswlower_l.texi: Likewise.
19367         * doc/posix-functions/iswprint_l.texi: Likewise.
19368         * doc/posix-functions/iswpunct_l.texi: Likewise.
19369         * doc/posix-functions/iswspace_l.texi: Likewise.
19370         * doc/posix-functions/iswupper_l.texi: Likewise.
19371         * doc/posix-functions/iswxdigit_l.texi: Likewise.
19372         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
19373         * doc/posix-functions/open_wmemstream.texi: Likewise.
19374         * doc/posix-functions/swscanf.texi: Likewise.
19375         * doc/posix-functions/towctrans_l.texi: Likewise.
19376         * doc/posix-functions/towlower.texi: Likewise.
19377         * doc/posix-functions/towlower_l.texi: Likewise.
19378         * doc/posix-functions/towupper.texi: Likewise.
19379         * doc/posix-functions/towupper_l.texi: Likewise.
19380         * doc/posix-functions/vfwprintf.texi: Likewise.
19381         * doc/posix-functions/vfwscanf.texi: Likewise.
19382         * doc/posix-functions/vswscanf.texi: Likewise.
19383         * doc/posix-functions/vwprintf.texi: Likewise.
19384         * doc/posix-functions/vwscanf.texi: Likewise.
19385         * doc/posix-functions/wcpcpy.texi: Likewise.
19386         * doc/posix-functions/wcpncpy.texi: Likewise.
19387         * doc/posix-functions/wcscasecmp.texi: Likewise.
19388         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
19389         * doc/posix-functions/wcscoll_l.texi: Likewise.
19390         * doc/posix-functions/wcsdup.texi: Likewise.
19391         * doc/posix-functions/wcsncasecmp.texi: Likewise.
19392         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
19393         * doc/posix-functions/wcsnlen.texi: Likewise.
19394         * doc/posix-functions/wcsnrtombs.texi: Likewise.
19395         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
19396         * doc/posix-functions/wctrans_l.texi: Likewise.
19397         * doc/posix-functions/wctype_l.texi: Likewise.
19398         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
19399         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
19400         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
19401         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
19402         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
19403         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
19404         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
19405         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
19406         * doc/glibc-functions/wcschrnul.texi: Likewise.
19407         * doc/glibc-functions/wcsftime_l.texi: Likewise.
19408         * doc/glibc-functions/wcstod_l.texi: Likewise.
19409         * doc/glibc-functions/wcstof_l.texi: Likewise.
19410         * doc/glibc-functions/wcstol_l.texi: Likewise.
19411         * doc/glibc-functions/wcstold_l.texi: Likewise.
19412         * doc/glibc-functions/wcstoll_l.texi: Likewise.
19413         * doc/glibc-functions/wcstoq.texi: Likewise.
19414         * doc/glibc-functions/wcstoul_l.texi: Likewise.
19415         * doc/glibc-functions/wcstoull_l.texi: Likewise.
19416         * doc/glibc-functions/wcstouq.texi: Likewise.
19417         * doc/glibc-functions/wmempcpy.texi: Likewise.
19418
19419 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
19420             Eric Blake  <ebb9@byu.net>
19421             Paolo Bonzini  <bonzini@gnu.org>
19422             Bruno Haible  <bruno@clisp.org>
19423
19424         Make c-stack work on Haiku.
19425         * lib/c-stack.c (SA_ONSTACK): Define fallback.
19426         (c_stack_action): Use SA_ONSTACK flag.
19427
19428 2008-12-22  Bruno Haible  <bruno@clisp.org>
19429
19430         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
19431
19432 2008-12-22  Bruno Haible  <bruno@clisp.org>
19433
19434         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
19435         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
19436         being overridden.
19437         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
19438         New macros.
19439         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
19440         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
19441         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
19442         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
19443
19444 2008-12-22  Bruno Haible  <bruno@clisp.org>
19445
19446         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
19447         from test code.
19448
19449 2008-12-22  Eric Blake  <ebb9@byu.net>
19450
19451         Avoid gcc warnings on cygwin.
19452         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
19453         Avoid unused variable.
19454         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
19455         Likewise.
19456
19457 2008-12-22  Bruno Haible  <bruno@clisp.org>
19458
19459         Remove HAVE_MBRTOWC conditionals.
19460         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
19461         (mbscasecmp): Assume mbrtowc function.
19462         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
19463         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
19464         * lib/mbschr.c: Include mbuiter.h unconditionally.
19465         (mbschr): Assume mbrtowc function.
19466         * lib/mbscspn.c: Include mbuiter.h unconditionally.
19467         (mbscspn): Assume mbrtowc function.
19468         * lib/mbslen.c: Include mbuiter.h unconditionally.
19469         (mbslen): Assume mbrtowc function.
19470         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
19471         (mbsncasecmp): Assume mbrtowc function.
19472         * lib/mbsnlen.c: Include mbiter.h unconditionally.
19473         (mbsnlen): Assume mbrtowc function.
19474         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
19475         (mbspbrk): Assume mbrtowc function.
19476         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
19477         (mbspcasecmp): Assume mbrtowc function.
19478         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
19479         (mbsrchr): Assume mbrtowc function.
19480         * lib/mbssep.c: Include mbuiter.h unconditionally.
19481         (mbssep): Assume mbrtowc function.
19482         * lib/mbsspn.c: Include mbuiter.h unconditionally.
19483         (mbsspn): Assume mbrtowc function.
19484         * lib/mbsstr.c: Include mbuiter.h unconditionally.
19485         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
19486         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
19487         (mbstok_r): Assume mbrtowc function.
19488         * lib/propername.c: Include mbuiter.h unconditionally.
19489         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
19490         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
19491         (trim2): Assume mbrtowc function.
19492         * lib/mbswidth.c (mbsinit): Remove fallback definition.
19493         (mbsnwidth): Assume mbrtowc function.
19494         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
19495         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
19496         fallback definitions.
19497         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
19498
19499 2008-12-22  Bruno Haible  <bruno@clisp.org>
19500
19501         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
19502
19503 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
19504
19505         * modules/regex: Request emulations for the mb*/wc* functions we need.
19506         * m4/regex.m4: Don't look for those functions here.
19507         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
19508
19509 2008-12-22  Bruno Haible  <bruno@clisp.org>
19510
19511         * modules/fnmatch (Depends-on): Remove duplicated dependency.
19512
19513 2008-12-21  Bruno Haible  <bruno@clisp.org>
19514
19515         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
19516         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
19517         (Include): Remove conditionalization.
19518         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
19519         (Include): Remove conditionalization.
19520         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
19521         (Include): Remove conditionalization.
19522         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
19523         * m4/mbfile.m4 (gl_MBFILE): Likewise.
19524         * NEWS: Mention the change.
19525         Reported by Alan Hourihane <alanh@fairlite.co.uk>
19526         via Sergey Poznyakoff <gray@gnu.org.ua>.
19527
19528 2008-12-21  Bruno Haible  <bruno@clisp.org>
19529
19530         * MODULES.html.sh (Extended multibyte and wide character utilities
19531         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
19532         wcrtomb, wcsrtombs.
19533         (Support for systems lacking POSIX:2008): Add accept, bind, close,
19534         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
19535         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
19536         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
19537
19538 2008-12-21  Bruno Haible  <bruno@clisp.org>
19539
19540         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
19541
19542 2008-12-21  Bruno Haible  <bruno@clisp.org>
19543
19544         * modules/wcsnrtombs-tests: New file.
19545         * tests/test-wcsnrtombs1.sh: New file.
19546         * tests/test-wcsnrtombs2.sh: New file.
19547         * tests/test-wcsnrtombs3.sh: New file.
19548         * tests/test-wcsnrtombs4.sh: New file.
19549         * tests/test-wcsnrtombs.c: New file.
19550
19551         New module 'wcsnrtombs'.
19552         * lib/wchar.in.h (wcsnrtombs): New declaration.
19553         * lib/wcsnrtombs.c: New file.
19554         * lib/wcsrtombs-state.c: New file.
19555         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
19556         (internal_state): Remove variable.
19557         * m4/wcsnrtombs.m4: New file.
19558         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
19559         compilation units.
19560         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
19561         HAVE_WCSNRTOMBS.
19562         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
19563         HAVE_WCSNRTOMBS.
19564         * modules/wcsnrtombs: New file.
19565         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
19566         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
19567
19568 2008-12-21  Bruno Haible  <bruno@clisp.org>
19569
19570         * modules/wcsrtombs-tests: New file.
19571         * tests/test-wcsrtombs1.sh: New file.
19572         * tests/test-wcsrtombs2.sh: New file.
19573         * tests/test-wcsrtombs3.sh: New file.
19574         * tests/test-wcsrtombs4.sh: New file.
19575         * tests/test-wcsrtombs.c: New file.
19576
19577         New module 'wcsrtombs'.
19578         * lib/wchar.in.h (wcsrtombs): New declaration.
19579         * lib/wcsrtombs.c: New file.
19580         * m4/wcsrtombs.m4: New file.
19581         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
19582         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
19583         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
19584         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
19585         * modules/wcsrtombs: New file.
19586         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
19587         bugs.
19588
19589 2008-12-21  Bruno Haible  <bruno@clisp.org>
19590
19591         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
19592         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
19593         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
19594         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
19595         if not correct.
19596         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
19597         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
19598         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
19599         m4/locale-zh.m4, m4/codeset.m4.
19600         * doc/posix-functions/wcrtomb.texi: Document the bug.
19601
19602 2008-12-21  Bruno Haible  <bruno@clisp.org>
19603
19604         Work around a btowc() bug on IRIX 6.5.
19605         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
19606         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
19607         REPLACE_WTOBC if not.
19608         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
19609         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
19610         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
19611
19612 2008-12-21  Bruno Haible  <bruno@clisp.org>
19613
19614         * modules/wcrtomb-tests: New file.
19615         * tests/test-wcrtomb.sh: New file.
19616         * tests/test-wcrtomb.c: New file.
19617
19618         New module 'wcrtomb'.
19619         * lib/wchar.in.h (wcrtomb): New declaration.
19620         * lib/wcrtomb.c: New file.
19621         * m4/wcrtomb.m4: New file.
19622         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
19623         HAVE_WCRTOMB.
19624         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
19625         HAVE_WCRTOMB.
19626         * modules/wcrtomb: New file.
19627         * doc/posix-functions/wcrtomb.texi: Mention the new module.
19628
19629 2008-12-21  Bruno Haible  <bruno@clisp.org>
19630
19631         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
19632         * modules/mbsrtowcs (Files): Likewise.
19633         * modules/wctob (Files): Likewise.
19634         * modules/c-strcase-tests (Files): Likewise.
19635         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
19636         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
19637         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
19638         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
19639         * modules/vasnprintf-posix-tests (Files): Likewise.
19640
19641 2008-12-21  William Pursell  <bill.pursell@gmail.com>
19642
19643         gitlog-to-changelog: pass all command-line arguments to git-log
19644         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
19645         it is sometimes convenient to filter the commits in various ways.
19646         gitlog-to-changelog only allows --since to specify a start date,
19647         but git-log itself supports many other filtering mechanisms.
19648         At the moment, I want to filter by branch name.  Rather than
19649         adding a --branch option to gitlog-to-changelog, it seems more
19650         flexible to simply pass all options directly to git-log and let
19651         git do the work.  Notice that this effectively makes --since a
19652         redundant option for gitlog-to-changelog, but removing it would
19653         require current usage to change since calls would then require
19654         an additional '--'.
19655
19656 2008-12-21  Bruno Haible  <bruno@clisp.org>
19657
19658         * modules/mbsnrtowcs-tests: New file.
19659         * tests/test-mbsnrtowcs1.sh: New file.
19660         * tests/test-mbsnrtowcs2.sh: New file.
19661         * tests/test-mbsnrtowcs3.sh: New file.
19662         * tests/test-mbsnrtowcs4.sh: New file.
19663         * tests/test-mbsnrtowcs.c: New file.
19664
19665         New module 'mbsnrtowcs'.
19666         * lib/wchar.in.h (mbsnrtowcs): New declaration.
19667         * lib/mbsnrtowcs.c: New file.
19668         * lib/mbsrtowcs-state.c: New file.
19669         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
19670         (internal_state): Remove variable.
19671         * m4/mbsnrtowcs.m4: New file.
19672         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
19673         compilation units.
19674         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
19675         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
19676         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
19677         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
19678         * modules/mbsnrtowcs: New file.
19679         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
19680         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
19681         portability problem.
19682
19683 2008-12-21  Bruno Haible  <bruno@clisp.org>
19684
19685         Work around mbsrtowcs bug.
19686         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
19687         (gl_FUNC_MBSRTOWCS): Invoke it.
19688         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
19689         m4/locale-zh.m4.
19690         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
19691
19692 2008-12-21  Bruno Haible  <bruno@clisp.org>
19693
19694         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
19695
19696 2008-12-21  Bruno Haible  <bruno@clisp.org>
19697
19698         Update doc for AIX.
19699         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
19700         16-bit wchar_t type.
19701         * doc/posix-functions/btowc.texi: Likewise.
19702         * doc/posix-functions/fgetwc.texi: Likewise.
19703         * doc/posix-functions/fgetws.texi: Likewise.
19704         * doc/posix-functions/fputwc.texi: Likewise.
19705         * doc/posix-functions/fputws.texi: Likewise.
19706         * doc/posix-functions/fwide.texi: Likewise.
19707         * doc/posix-functions/fwprintf.texi: Likewise.
19708         * doc/posix-functions/fwscanf.texi: Likewise.
19709         * doc/posix-functions/getwchar.texi: Likewise.
19710         * doc/posix-functions/getwc.texi: Likewise.
19711         * doc/posix-functions/iswalnum.texi: Likewise.
19712         * doc/posix-functions/iswalpha.texi: Likewise.
19713         * doc/posix-functions/iswblank.texi: Likewise.
19714         * doc/posix-functions/iswcntrl.texi: Likewise.
19715         * doc/posix-functions/iswctype.texi: Likewise.
19716         * doc/posix-functions/iswdigit.texi: Likewise.
19717         * doc/posix-functions/iswgraph.texi: Likewise.
19718         * doc/posix-functions/iswlower.texi: Likewise.
19719         * doc/posix-functions/iswprint.texi: Likewise.
19720         * doc/posix-functions/iswpunct.texi: Likewise.
19721         * doc/posix-functions/iswspace.texi: Likewise.
19722         * doc/posix-functions/iswupper.texi: Likewise.
19723         * doc/posix-functions/iswxdigit.texi: Likewise.
19724         * doc/posix-functions/mbrtowc.texi: Likewise.
19725         * doc/posix-functions/mbsrtowcs.texi: Likewise.
19726         * doc/posix-functions/mbstowcs.texi: Likewise.
19727         * doc/posix-functions/mbtowc.texi: Likewise.
19728         * doc/posix-functions/putwchar.texi: Likewise.
19729         * doc/posix-functions/putwc.texi: Likewise.
19730         * doc/posix-functions/swprintf.texi: Likewise.
19731         * doc/posix-functions/tolower.texi: Likewise.
19732         * doc/posix-functions/toupper.texi: Likewise.
19733         * doc/posix-functions/towctrans.texi: Likewise.
19734         * doc/posix-functions/ungetwc.texi: Likewise.
19735         * doc/posix-functions/vswprintf.texi: Likewise.
19736         * doc/posix-functions/wcrtomb.texi: Likewise.
19737         * doc/posix-functions/wcscat.texi: Likewise.
19738         * doc/posix-functions/wcschr.texi: Likewise.
19739         * doc/posix-functions/wcscmp.texi: Likewise.
19740         * doc/posix-functions/wcscoll.texi: Likewise.
19741         * doc/posix-functions/wcscpy.texi: Likewise.
19742         * doc/posix-functions/wcscspn.texi: Likewise.
19743         * doc/posix-functions/wcsftime.texi: Likewise.
19744         * doc/posix-functions/wcslen.texi: Likewise.
19745         * doc/posix-functions/wcsncat.texi: Likewise.
19746         * doc/posix-functions/wcsncmp.texi: Likewise.
19747         * doc/posix-functions/wcsncpy.texi: Likewise.
19748         * doc/posix-functions/wcspbrk.texi: Likewise.
19749         * doc/posix-functions/wcsrchr.texi: Likewise.
19750         * doc/posix-functions/wcsrtombs.texi: Likewise.
19751         * doc/posix-functions/wcsspn.texi: Likewise.
19752         * doc/posix-functions/wcsstr.texi: Likewise.
19753         * doc/posix-functions/wcstod.texi: Likewise.
19754         * doc/posix-functions/wcstof.texi: Likewise.
19755         * doc/posix-functions/wcstoimax.texi: Likewise.
19756         * doc/posix-functions/wcstok.texi: Likewise.
19757         * doc/posix-functions/wcstold.texi: Likewise.
19758         * doc/posix-functions/wcstoll.texi: Likewise.
19759         * doc/posix-functions/wcstol.texi: Likewise.
19760         * doc/posix-functions/wcstombs.texi: Likewise.
19761         * doc/posix-functions/wcstoull.texi: Likewise.
19762         * doc/posix-functions/wcstoul.texi: Likewise.
19763         * doc/posix-functions/wcstoumax.texi: Likewise.
19764         * doc/posix-functions/wcswidth.texi: Likewise.
19765         * doc/posix-functions/wcsxfrm.texi: Likewise.
19766         * doc/posix-functions/wctob.texi: Likewise.
19767         * doc/posix-functions/wctomb.texi: Likewise.
19768         * doc/posix-functions/wctrans.texi: Likewise.
19769         * doc/posix-functions/wctype.texi: Likewise.
19770         * doc/posix-functions/wcwidth.texi: Likewise.
19771         * doc/posix-functions/wmemchr.texi: Likewise.
19772         * doc/posix-functions/wmemcmp.texi: Likewise.
19773         * doc/posix-functions/wmemcpy.texi: Likewise.
19774         * doc/posix-functions/wmemmove.texi: Likewise.
19775         * doc/posix-functions/wmemset.texi: Likewise.
19776         * doc/posix-functions/wprintf.texi: Likewise.
19777         * doc/posix-functions/wscanf.texi: Likewise.
19778
19779 2008-12-21  Bruno Haible  <bruno@clisp.org>
19780
19781         Update doc for HP-UX 11.11.
19782         * doc/posix-functions/btowc.texi: Clarify that the function is missing
19783         in HP-UX version 11.00, not in all versions of HP-UX 11.
19784         * doc/posix-functions/fwide.texi: Likewise.
19785         * doc/posix-functions/fwprintf.texi: Likewise.
19786         * doc/posix-functions/fwscanf.texi: Likewise.
19787         * doc/posix-functions/inet_ntop.texi: Likewise.
19788         * doc/posix-functions/inet_pton.texi: Likewise.
19789         * doc/posix-functions/mbrlen.texi: Likewise.
19790         * doc/posix-functions/mbrtowc.texi: Likewise.
19791         * doc/posix-functions/mbsinit.texi: Likewise.
19792         * doc/posix-functions/mbsrtowcs.texi: Likewise.
19793         * doc/posix-functions/swprintf.texi: Likewise.
19794         * doc/posix-functions/swscanf.texi: Likewise.
19795         * doc/posix-functions/towctrans.texi: Likewise.
19796         * doc/posix-functions/vfwprintf.texi: Likewise.
19797         * doc/posix-functions/vswprintf.texi: Likewise.
19798         * doc/posix-functions/vwprintf.texi: Likewise.
19799         * doc/posix-functions/wcrtomb.texi: Likewise.
19800         * doc/posix-functions/wcsrtombs.texi: Likewise.
19801         * doc/posix-functions/wcsstr.texi: Likewise.
19802         * doc/posix-functions/wctob.texi: Likewise.
19803         * doc/posix-functions/wctrans.texi: Likewise.
19804         * doc/posix-functions/wmemchr.texi: Likewise.
19805         * doc/posix-functions/wmemcmp.texi: Likewise.
19806         * doc/posix-functions/wmemcpy.texi: Likewise.
19807         * doc/posix-functions/wmemmove.texi: Likewise.
19808         * doc/posix-functions/wmemset.texi: Likewise.
19809         * doc/posix-functions/wprintf.texi: Likewise.
19810         * doc/posix-functions/wscanf.texi: Likewise.
19811
19812 2008-12-21  Bruno Haible  <bruno@clisp.org>
19813
19814         Work around a portability problem.
19815         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
19816         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
19817
19818 2008-12-20  Bruno Haible  <bruno@clisp.org>
19819
19820         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
19821         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
19822         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
19823         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
19824         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
19825
19826         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
19827         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
19828         set.
19829         (GNULIB_defined_mbstate_t): New macro.
19830         (mbsinit): Redefine if REPLACE_MBSINIT is set.
19831         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
19832         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
19833         reuses the system's mbrtowc function but works around the bugs.
19834         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
19835         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
19836         macros.
19837         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
19838         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
19839         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
19840         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
19841         REPLACE_MBSINIT if mbsinit needs to be overridden.
19842         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
19843         REPLACE_MBSINIT, REPLACE_MBRTOWC.
19844         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
19845         REPLACE_MBSINIT, REPLACE_MBRTOWC.
19846         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
19847         m4/locale-zh.m4.
19848         (Depends): Add mbsinit.
19849         * modules/mbsinit (Depends): Add mbrtowc.
19850         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
19851
19852 2008-12-20  Bruno Haible  <bruno@clisp.org>
19853
19854         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
19855         so that there are no conversion errors on AIX.
19856         * tests/test-mbsrtowcs.c (main): LIkewise.
19857
19858 2008-12-20  Bruno Haible  <bruno@clisp.org>
19859
19860         Work around wctob bug on Solaris <= 9.
19861         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
19862         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
19863         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
19864         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
19865         * modules/wctob (Files): Add m4/locale-fr.m4.
19866         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
19867
19868 2008-12-20  Bruno Haible  <bruno@clisp.org>
19869
19870         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
19871         /dev/null.
19872         * tests/test-select-in.sh: Likewise.
19873         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19874
19875 2008-12-20  Bruno Haible  <bruno@clisp.org>
19876
19877         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
19878         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
19879         Cygwin 1.5.x.
19880
19881 2008-12-20  Bruno Haible  <bruno@clisp.org>
19882
19883         Ensure mbstate_t is defined on HP-UX 11.11.
19884         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
19885         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
19886         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
19887         AC_USE_SYSTEM_EXTENSIONS.
19888         * modules/fnmatch (Depends-on): Add extensions.
19889         * modules/mbrlen (Depends-on): Likewise.
19890         * modules/mbrtowc (Depends-on): Likewise.
19891         * modules/mbsinit (Depends-on): Likewise.
19892         * modules/mbsrtowcs (Depends-on): Likewise.
19893         * modules/mbswidth (Depends-on): Likewise.
19894         * modules/quotearg (Depends-on): Likewise.
19895         * modules/strftime (Depends-on): Likewise.
19896
19897 2008-12-20  Bruno Haible  <bruno@clisp.org>
19898
19899         Ensure wctob is declared on IRIX 6.5.
19900         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
19901         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
19902         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
19903         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
19904         of HAVE_WCTOB.
19905         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
19906         HAVE_WCTOB.
19907         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
19908
19909 2008-12-19  Bruno Haible  <bruno@clisp.org>
19910
19911         * modules/mbsrtowcs-tests: New file.
19912         * tests/test-mbsrtowcs1.sh: New file.
19913         * tests/test-mbsrtowcs2.sh: New file.
19914         * tests/test-mbsrtowcs3.sh: New file.
19915         * tests/test-mbsrtowcs4.sh: New file.
19916         * tests/test-mbsrtowcs.c: New file.
19917
19918         New module 'mbsrtowcs'.
19919         * lib/wchar.in.h (mbsrtowcs): New declaration.
19920         * lib/mbsrtowcs.c: New file.
19921         * m4/mbsrtowcs.m4: New file.
19922         * modules/mbsrtowcs: New file.
19923         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
19924         HAVE_MBSRTOWCS.
19925         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
19926         HAVE_MBSRTOWCS.
19927         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
19928
19929 2008-12-19  Bruno Haible  <bruno@clisp.org>
19930
19931         New module 'mbrlen'.
19932         * lib/wchar.in.h (mbrlen): New declaration.
19933         * lib/mbrlen.c: New file.
19934         * m4/mbrlen.m4: New file.
19935         * modules/mbrlen: New file.
19936         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
19937         HAVE_MBRLEN.
19938         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
19939         HAVE_MBRLEN.
19940         * doc/posix-functions/mbrlen.texi: Document the new module.
19941
19942 2008-12-19  Bruno Haible  <bruno@clisp.org>
19943
19944         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
19945         * modules/mbrtowc (Depends-on): Add verify.
19946         Suggested by Paul Eggert.
19947
19948 2008-12-18  Bruno Haible  <bruno@clisp.org>
19949
19950         * modules/mbsinit-tests: New file.
19951         * tests/test-mbsinit.sh: New file.
19952         * tests/test-mbsinit.c: New file.
19953
19954 2008-12-18  Bruno Haible  <bruno@clisp.org>
19955
19956         * modules/mbrtowc-tests: New file.
19957         * tests/test-mbrtowc1.sh: New file.
19958         * tests/test-mbrtowc2.sh: New file.
19959         * tests/test-mbrtowc3.sh: New file.
19960         * tests/test-mbrtowc4.sh: New file.
19961         * tests/test-mbrtowc.c: New file.
19962
19963         New module 'mbrtowc'.
19964         * lib/wchar.in.h (mbstate_t): Override when the system does not have
19965         mbsinit and mbrtowc.
19966         (mbrtowc): New declaration.
19967         * lib/mbrtowc.c: New file.
19968         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
19969         * modules/mbrtowc: New file.
19970         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
19971         HAVE_MBRTOWC.
19972         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
19973         HAVE_MBRTOWC.
19974         * doc/posix-functions/mbrtowc.texi: Document the new module.
19975
19976 2008-12-18  Bruno Haible  <bruno@clisp.org>
19977
19978         New module 'wctob'.
19979         * lib/wchar.in.h (wctob): New declaration.
19980         * lib/wctob.c: New file.
19981         * m4/wctob.m4: New file.
19982         * modules/wctob: New file.
19983         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
19984         HAVE_WCTOB.
19985         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
19986         * doc/posix-functions/wctob.texi: Document the new module.
19987
19988 2008-12-18  Bruno Haible  <bruno@clisp.org>
19989
19990         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
19991         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
19992
19993 2008-12-18  Simon Josefsson  <simon@josefsson.org>
19994
19995         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
19996         G. Christensen" <tgc@jupiterrise.com>.
19997
19998         * lib/flock.c: Need to include errno.h.  Reported by "Tom
19999         G. Christensen" <tgc@jupiterrise.com>.
20000
20001         * lib/flock.c: Need to include string.h.  Reported by "Tom
20002         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
20003         <ebb9@byu.net>.
20004
20005 2008-12-18  Bruno Haible  <bruno@clisp.org>
20006
20007         * m4/locale-ja.m4: New file, from GNU gettext.
20008
20009 2008-12-17  Bruno Haible  <bruno@clisp.org>
20010
20011         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
20012         Suggested by Eric Blake.
20013
20014 2008-12-17  Bruno Haible  <bruno@clisp.org>
20015
20016         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
20017
20018 2008-12-17  Bruno Haible  <bruno@clisp.org>
20019
20020         * lib/mbsinit.c: Include verify.h. Verify an assumption.
20021         * modules/mbsinit (Depends-on): Add verify.
20022         Suggested by Paul Eggert.
20023
20024 2008-12-17  Bruno Haible  <bruno@clisp.org>
20025
20026         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
20027         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
20028         gl_FUNC_MBRTOWC.
20029         * m4/mbiter.m4 (gl_MBITER): LIkewise.
20030         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
20031         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
20032         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
20033         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
20034         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
20035         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
20036         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
20037         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
20038         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
20039         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
20040         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
20041         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
20042         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
20043         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
20044         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
20045         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
20046         * modules/trim (configure.ac): Likewise.
20047
20048 2008-12-17  Bruno Haible  <bruno@clisp.org>
20049
20050         * modules/btowc-tests: New file.
20051         * tests/test-btowc1.sh: New file.
20052         * tests/test-btowc2.sh: New file.
20053         * tests/test-btowc.c: New file.
20054
20055         New module 'btowc'.
20056         * lib/wchar.in.h (btowc): New declaration.
20057         * lib/btowc.c: New file.
20058         * m4/btowc.m4: New file.
20059         * modules/btowc: New file.
20060         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
20061         HAVE_BTOWC.
20062         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
20063         * doc/posix-functions/btowc.texi: Document the new module.
20064
20065 2008-12-17  Bruno Haible  <bruno@clisp.org>
20066
20067         New module 'mbsinit'.
20068         * lib/wchar.in.h (mbsinit): New declaration.
20069         * lib/mbsinit.c: New file.
20070         * m4/mbsinit.m4: New file.
20071         * modules/mbsinit: New file.
20072         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
20073         HAVE_MBSINIT.
20074         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
20075         HAVE_MBSINIT.
20076         * doc/posix-functions/mbsinit.texi: Document the new module.
20077
20078 2008-12-16  Bruno Haible  <bruno@clisp.org>
20079
20080         * lib/unistd.in.h: Add comment.
20081         * tests/test-environ.c: Don't include <stdlib.h>.
20082
20083 2008-12-16  Bruno Haible  <bruno@clisp.org>
20084
20085         * lib/parse-duration.h (parse_duration): Document return value
20086         convention.
20087         * lib/parse-duration.c: Include specification header first. Add
20088         comments.
20089         (_): Remove macro.
20090         (parse_year_month_day, parse_hour_minute_second): Move side effects
20091         outside of strchr call.
20092         (parse_non_iso8601): Move side effects outside of isspace call.
20093         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
20094         call.
20095
20096 2008-12-16  Bruno Haible  <bruno@clisp.org>
20097
20098         * tests/test-parse-duration.sh: Produce no output when the test
20099         succeeds.
20100
20101 2008-12-16  Bruno Haible  <bruno@clisp.org>
20102
20103         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
20104         expressions.
20105
20106 2008-12-15  Bruno Haible  <bruno@clisp.org>
20107
20108         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
20109         * doc/glibc-functions/flistxattr.texi: Likewise.
20110         * doc/glibc-functions/fopencookie.texi: Likewise.
20111         * doc/glibc-functions/fremovexattr.texi: Likewise.
20112         * doc/glibc-functions/fsetxattr.texi: Likewise.
20113         * doc/glibc-functions/getxattr.texi: Likewise.
20114         * doc/glibc-functions/lgetxattr.texi: Likewise.
20115         * doc/glibc-functions/listxattr.texi: Likewise.
20116         * doc/glibc-functions/llistxattr.texi: Likewise.
20117         * doc/glibc-functions/lremovexattr.texi: Likewise.
20118         * doc/glibc-functions/lsetxattr.texi: Likewise.
20119         * doc/glibc-functions/removexattr.texi: Likewise.
20120         * doc/glibc-functions/setxattr.texi: Likewise.
20121         * doc/posix-functions/open_memstream.texi: Likewise.
20122
20123 2008-12-15  Eric Blake  <ebb9@byu.net>
20124
20125         Update doc for cygwin 1.7.
20126         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
20127         functions.
20128         * doc/posix-functions/fchmodat.texi: Likewise.
20129         * doc/posix-functions/fchownat.texi: Likewise.
20130         * doc/posix-functions/fdopendir.texi: Likewise.
20131         * doc/posix-functions/fmemopen.texi: Likewise.
20132         * doc/posix-functions/freeaddrinfo.texi: Likewise.
20133         * doc/posix-functions/fstatat.texi: Likewise.
20134         * doc/posix-functions/futimens.texi: Likewise.
20135         * doc/posix-functions/gai_strerror.texi: Likewise.
20136         * doc/posix-functions/getaddrinfo.texi: Likewise.
20137         * doc/posix-functions/getnameinfo.texi: Likewise.
20138         * doc/posix-functions/if_freenameindex.texi: Likewise.
20139         * doc/posix-functions/if_indextoname.texi: Likewise.
20140         * doc/posix-functions/if_nameindex.texi: Likewise.
20141         * doc/posix-functions/if_nametoindex.texi: Likewise.
20142         * doc/posix-functions/insque.texi: Likewise.
20143         * doc/posix-functions/linkat.texi: Likewise.
20144         * doc/posix-functions/llrint.texi: Likewise.
20145         * doc/posix-functions/llrintf.texi: Likewise.
20146         * doc/posix-functions/llrintl.texi: Likewise.
20147         * doc/posix-functions/lockf.texi: Likewise.
20148         * doc/posix-functions/lrintl.texi: Likewise.
20149         * doc/posix-functions/mkdirat.texi: Likewise.
20150         * doc/posix-functions/mkfifoat.texi: Likewise.
20151         * doc/posix-functions/mknodat.texi: Likewise.
20152         * doc/posix-functions/mq_close.texi: Likewise.
20153         * doc/posix-functions/mq_getattr.texi: Likewise.
20154         * doc/posix-functions/mq_notify.texi: Likewise.
20155         * doc/posix-functions/mq_open.texi: Likewise.
20156         * doc/posix-functions/mq_receive.texi: Likewise.
20157         * doc/posix-functions/mq_send.texi: Likewise.
20158         * doc/posix-functions/mq_setattr.texi: Likewise.
20159         * doc/posix-functions/mq_timedreceive.texi: Likewise.
20160         * doc/posix-functions/mq_timedsend.texi: Likewise.
20161         * doc/posix-functions/mq_unlink.texi: Likewise.
20162         * doc/posix-functions/open_memstream.texi: Likewise.
20163         * doc/posix-functions/openat.texi: Likewise.
20164         * doc/posix-functions/posix_fadvise.texi: Likewise.
20165         * doc/posix-functions/posix_fallocate.texi: Likewise.
20166         * doc/posix-functions/posix_madvise.texi: Likewise.
20167         * doc/posix-functions/posix_memalign.texi: Likewise.
20168         * doc/posix-functions/posix_openpt.texi: Likewise.
20169         * doc/posix-functions/readlinkat.texi: Likewise.
20170         * doc/posix-functions/remque.texi: Likewise.
20171         * doc/posix-functions/renameat.texi: Likewise.
20172         * doc/posix-functions/rintl.texi: Likewise.
20173         * doc/posix-functions/sem_unlink.texi: Likewise.
20174         * doc/posix-functions/shm_open.texi: Likewise.
20175         * doc/posix-functions/shm_unlink.texi: Likewise.
20176         * doc/posix-functions/signgam.texi: Likewise.
20177         * doc/posix-functions/sigset.texi: Likewise.
20178         * doc/posix-functions/stpcpy.texi: Likewise.
20179         * doc/posix-functions/stpncpy.texi: Likewise.
20180         * doc/posix-functions/strerror.texi: Likewise.
20181         * doc/posix-functions/strtod.texi: Likewise.
20182         * doc/posix-functions/symlinkat.texi: Likewise.
20183         * doc/posix-functions/unlinkat.texi: Likewise.
20184         * doc/posix-functions/utimensat.texi: Likewise.
20185         * doc/glibc-functions/bindresvport.texi: Likewise.
20186         * doc/glibc-functions/dn_expand.texi: Likewise.
20187         * doc/glibc-functions/exp10.texi: Likewise.
20188         * doc/glibc-functions/exp10f.texi: Likewise.
20189         * doc/glibc-functions/fgetxattr.texi: Likewise.
20190         * doc/glibc-functions/flistxattr.texi: Likewise.
20191         * doc/glibc-functions/fopencookie.texi: Likewise.
20192         * doc/glibc-functions/freeifaddrs.texi: Likewise.
20193         * doc/glibc-functions/fremovexattr.texi: Likewise.
20194         * doc/glibc-functions/fsetxattr.texi: Likewise.
20195         * doc/glibc-functions/getifaddrs.texi: Likewise.
20196         * doc/glibc-functions/getxattr.texi: Likewise.
20197         * doc/glibc-functions/lgetxattr.texi: Likewise.
20198         * doc/glibc-functions/listxattr.texi: Likewise.
20199         * doc/glibc-functions/llistxattr.texi: Likewise.
20200         * doc/glibc-functions/lremovexattr.texi: Likewise.
20201         * doc/glibc-functions/lsetxattr.texi: Likewise.
20202         * doc/glibc-functions/pow10.texi: Likewise.
20203         * doc/glibc-functions/pow10f.texi: Likewise.
20204         * doc/glibc-functions/rcmd_af.texi: Likewise.
20205         * doc/glibc-functions/removexattr.texi: Likewise.
20206         * doc/glibc-functions/res_init.texi: Likewise.
20207         * doc/glibc-functions/res_mkquery.texi: Likewise.
20208         * doc/glibc-functions/res_query.texi: Likewise.
20209         * doc/glibc-functions/res_querydomain.texi: Likewise.
20210         * doc/glibc-functions/res_send.texi: Likewise.
20211         * doc/glibc-functions/rresvport_af.texi: Likewise.
20212         * doc/glibc-functions/setxattr.texi: Likewise.
20213         * doc/glibc-functions/strcasestr.texi: Likewise.
20214
20215 2008-12-15  Bruno Haible  <bruno@clisp.org>
20216
20217         Fix compilation error on OSF/1 4.0.
20218         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
20219         <sys/time.h>, simply delegate to the system header.
20220         Reported by Daniel Richard G. <oss@teragram.com>.
20221
20222 2008-12-15  Bruno Haible  <bruno@clisp.org>
20223
20224         * doc/posix-functions/openat.texi: Mention the 'openat' module.
20225         * doc/posix-functions/fchmodat.texi: Likewise.
20226         * doc/posix-functions/fchownat.texi: Likewise.
20227         * doc/posix-functions/fdopendir.texi: Likewise.
20228         * doc/posix-functions/fstatat.texi: Likewise.
20229         * doc/posix-functions/mkdirat.texi: Likewise.
20230         * doc/posix-functions/unlinkat.texi: Likewise.
20231
20232 2008-12-14  Bruno Haible  <bruno@clisp.org>
20233
20234         Update doc for POSIX:2008.
20235         * doc/posix-functions/faccessat.texi: New file.
20236         * doc/posix-functions/fchmodat.texi: New file.
20237         * doc/posix-functions/fchownat.texi: New file.
20238         * doc/posix-functions/fdopendir.texi: New file.
20239         * doc/posix-functions/fstatat.texi: New file.
20240         * doc/posix-functions/futimens.texi: New file.
20241         * doc/posix-functions/linkat.texi: New file.
20242         * doc/posix-functions/mkdirat.texi: New file.
20243         * doc/posix-functions/mkfifoat.texi: New file.
20244         * doc/posix-functions/mknodat.texi: New file.
20245         * doc/posix-functions/open_wmemstream.texi: New file.
20246         * doc/posix-functions/openat.texi: New file.
20247         * doc/posix-functions/psiginfo.texi: New file.
20248         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
20249         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
20250         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
20251         * doc/posix-functions/readlinkat.texi: New file.
20252         * doc/posix-functions/renameat.texi: New file.
20253         * doc/posix-functions/strerror_l.texi: New file.
20254         * doc/posix-functions/symlinkat.texi: New file.
20255         * doc/posix-functions/unlinkat.texi: New file.
20256         * doc/posix-functions/utimensat.texi: New file.
20257         * doc/gnulib.texi (Function Substitutes): Add these subsections.
20258
20259 2008-12-14  Bruno Haible  <bruno@clisp.org>
20260
20261         Update doc for POSIX:2008.
20262         * doc/posix-functions/alphasort.texi: Renamed from
20263         doc/glibc-functions/alphasort.texi.
20264         * doc/posix-functions/dirfd.texi: Renamed from
20265         doc/glibc-functions/dirfd.texi.
20266         * doc/posix-functions/dprintf.texi: Renamed from
20267         doc/glibc-functions/dprintf.texi.
20268         * doc/posix-functions/duplocale.texi: Renamed from
20269         doc/glibc-functions/duplocale.texi.
20270         * doc/posix-functions/fexecve.texi: Renamed from
20271         doc/glibc-functions/fexecve.texi.
20272         * doc/posix-functions/fmemopen.texi: Renamed from
20273         doc/glibc-functions/fmemopen.texi.
20274         * doc/posix-functions/freelocale.texi: Renamed from
20275         doc/glibc-functions/freelocale.texi.
20276         * doc/posix-functions/getdate_err.texi: Renamed from
20277         doc/glibc-functions/getdate_err.texi.
20278         * doc/posix-functions/isalnum_l.texi: Renamed from
20279         doc/glibc-functions/isalnum_l.texi.
20280         * doc/posix-functions/isalpha_l.texi: Renamed from
20281         doc/glibc-functions/isalpha_l.texi.
20282         * doc/posix-functions/isblank_l.texi: Renamed from
20283         doc/glibc-functions/isblank_l.texi.
20284         * doc/posix-functions/iscntrl_l.texi: Renamed from
20285         doc/glibc-functions/iscntrl_l.texi.
20286         * doc/posix-functions/isdigit_l.texi: Renamed from
20287         doc/glibc-functions/isdigit_l.texi.
20288         * doc/posix-functions/isgraph_l.texi: Renamed from
20289         doc/glibc-functions/isgraph_l.texi.
20290         * doc/posix-functions/islower_l.texi: Renamed from
20291         doc/glibc-functions/islower_l.texi.
20292         * doc/posix-functions/isprint_l.texi: Renamed from
20293         doc/glibc-functions/isprint_l.texi.
20294         * doc/posix-functions/ispunct_l.texi: Renamed from
20295         doc/glibc-functions/ispunct_l.texi.
20296         * doc/posix-functions/isspace_l.texi: Renamed from
20297         doc/glibc-functions/isspace_l.texi.
20298         * doc/posix-functions/isupper_l.texi: Renamed from
20299         doc/glibc-functions/isupper_l.texi.
20300         * doc/posix-functions/iswalnum_l.texi: Renamed from
20301         doc/glibc-functions/iswalnum_l.texi.
20302         * doc/posix-functions/iswalpha_l.texi: Renamed from
20303         doc/glibc-functions/iswalpha_l.texi.
20304         * doc/posix-functions/iswblank_l.texi: Renamed from
20305         doc/glibc-functions/iswblank_l.texi.
20306         * doc/posix-functions/iswcntrl_l.texi: Renamed from
20307         doc/glibc-functions/iswcntrl_l.texi.
20308         * doc/posix-functions/iswctype_l.texi: Renamed from
20309         doc/glibc-functions/iswctype_l.texi.
20310         * doc/posix-functions/iswdigit_l.texi: Renamed from
20311         doc/glibc-functions/iswdigit_l.texi.
20312         * doc/posix-functions/iswgraph_l.texi: Renamed from
20313         doc/glibc-functions/iswgraph_l.texi.
20314         * doc/posix-functions/iswlower_l.texi: Renamed from
20315         doc/glibc-functions/iswlower_l.texi.
20316         * doc/posix-functions/iswprint_l.texi: Renamed from
20317         doc/glibc-functions/iswprint_l.texi.
20318         * doc/posix-functions/iswpunct_l.texi: Renamed from
20319         doc/glibc-functions/iswpunct_l.texi.
20320         * doc/posix-functions/iswspace_l.texi: Renamed from
20321         doc/glibc-functions/iswspace_l.texi.
20322         * doc/posix-functions/iswupper_l.texi: Renamed from
20323         doc/glibc-functions/iswupper_l.texi.
20324         * doc/posix-functions/iswxdigit_l.texi: Renamed from
20325         doc/glibc-functions/iswxdigit_l.texi.
20326         * doc/posix-functions/isxdigit_l.texi: Renamed from
20327         doc/glibc-functions/isxdigit_l.texi.
20328         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
20329         doc/glibc-functions/mbsnrtowcs.texi.
20330         * doc/posix-functions/mkdtemp.texi: Renamed from
20331         doc/glibc-functions/mkdtemp.texi.
20332         * doc/posix-functions/newlocale.texi: Renamed from
20333         doc/glibc-functions/newlocale.texi.
20334         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
20335         doc/glibc-functions/nl_langinfo_l.texi.
20336         * doc/posix-functions/open_memstream.texi: Renamed from
20337         doc/glibc-functions/open_memstream.texi.
20338         * doc/posix-functions/opterr.texi: Renamed from
20339         doc/glibc-functions/opterr.texi.
20340         * doc/posix-functions/optind.texi: Renamed from
20341         doc/glibc-functions/optind.texi.
20342         * doc/posix-functions/optopt.texi: Renamed from
20343         doc/glibc-functions/optopt.texi.
20344         * doc/posix-functions/psignal.texi: Renamed from
20345         doc/glibc-functions/psignal.texi.
20346         * doc/posix-functions/scandir.texi: Renamed from
20347         doc/glibc-functions/scandir.texi.
20348         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
20349         doc/glibc-functions/sched_get_priority_min.texi.
20350         * doc/posix-functions/signgam.texi: Renamed from
20351         doc/glibc-functions/signgam.texi.
20352         * doc/posix-functions/stpcpy.texi: Renamed from
20353         doc/glibc-functions/stpcpy.texi.
20354         * doc/posix-functions/stpncpy.texi: Renamed from
20355         doc/glibc-functions/stpncpy.texi.
20356         * doc/posix-functions/strcasecmp_l.texi: Renamed from
20357         doc/glibc-functions/strcasecmp_l.texi.
20358         * doc/posix-functions/strcoll_l.texi: Renamed from
20359         doc/glibc-functions/strcoll_l.texi.
20360         * doc/posix-functions/strfmon_l.texi: Renamed from
20361         doc/glibc-functions/strfmon_l.texi.
20362         * doc/posix-functions/strftime_l.texi: Renamed from
20363         doc/glibc-functions/strftime_l.texi.
20364         * doc/posix-functions/strncasecmp_l.texi: Renamed from
20365         doc/glibc-functions/strncasecmp_l.texi.
20366         * doc/posix-functions/strndup.texi: Renamed from
20367         doc/glibc-functions/strndup.texi.
20368         * doc/posix-functions/strnlen.texi: Renamed from
20369         doc/glibc-functions/strnlen.texi.
20370         * doc/posix-functions/strsignal.texi: Renamed from
20371         doc/glibc-functions/strsignal.texi.
20372         * doc/posix-functions/strxfrm_l.texi: Renamed from
20373         doc/glibc-functions/strxfrm_l.texi.
20374         * doc/posix-functions/timer_gettime.texi: Renamed from
20375         doc/glibc-functions/timer_gettime.texi.
20376         * doc/posix-functions/tolower_l.texi: Renamed from
20377         doc/glibc-functions/tolower_l.texi.
20378         * doc/posix-functions/toupper_l.texi: Renamed from
20379         doc/glibc-functions/toupper_l.texi.
20380         * doc/posix-functions/towctrans_l.texi: Renamed from
20381         doc/glibc-functions/towctrans_l.texi.
20382         * doc/posix-functions/towlower_l.texi: Renamed from
20383         doc/glibc-functions/towlower_l.texi.
20384         * doc/posix-functions/towupper_l.texi: Renamed from
20385         doc/glibc-functions/towupper_l.texi.
20386         * doc/posix-functions/uselocale.texi: Renamed from
20387         doc/glibc-functions/uselocale.texi.
20388         * doc/posix-functions/vdprintf.texi: Renamed from
20389         doc/glibc-functions/vdprintf.texi.
20390         * doc/posix-functions/wcpcpy.texi:
20391         Renamed from doc/glibc-functions/wcpcpy.texi.
20392         * doc/posix-functions/wcpncpy.texi: Renamed from
20393         doc/glibc-functions/wcpncpy.texi.
20394         * doc/posix-functions/wcscasecmp.texi: Renamed from
20395         doc/glibc-functions/wcscasecmp.texi.
20396         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
20397         doc/glibc-functions/wcscasecmp_l.texi.
20398         * doc/posix-functions/wcscoll_l.texi: Renamed from
20399         doc/glibc-functions/wcscoll_l.texi.
20400         * doc/posix-functions/wcsdup.texi: Renamed from
20401         doc/glibc-functions/wcsdup.texi.
20402         * doc/posix-functions/wcsncasecmp.texi: Renamed from
20403         doc/glibc-functions/wcsncasecmp.texi.
20404         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
20405         doc/glibc-functions/wcsncasecmp_l.texi.
20406         * doc/posix-functions/wcsnlen.texi: Renamed from
20407         doc/glibc-functions/wcsnlen.texi.
20408         * doc/posix-functions/wcsnrtombs.texi: Renamed from
20409         doc/glibc-functions/wcsnrtombs.texi.
20410         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
20411         doc/glibc-functions/wcsxfrm_l.texi.
20412         * doc/posix-functions/wctrans_l.texi: Renamed from
20413         doc/glibc-functions/wctrans_l.texi.
20414         * doc/posix-functions/wctype_l.texi: Renamed from
20415         doc/glibc-functions/wctype_l.texi.
20416         * doc/gnulib.texi (Function Substitutes): Add these subsections.
20417         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
20418         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
20419         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
20420         these subsections.
20421         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
20422         Remove sections.
20423
20424 2008-12-14  Bruno Haible  <bruno@clisp.org>
20425
20426         Update doc for POSIX:2008.
20427         * doc/posix-functions/*.texi: Update URL of POSIX specification.
20428
20429 2008-12-14  Bruno Haible  <bruno@clisp.org>
20430
20431         Update doc for POSIX:2008.
20432         * doc/pastposix-functions/bcmp.texi: Renamed from
20433         doc/posix-functions/bcmp.texi.
20434         * doc/pastposix-functions/bcopy.texi: Renamed from
20435         doc/posix-functions/bcopy.texi.
20436         * doc/pastposix-functions/bsd_signal.texi: Renamed from
20437         doc/posix-functions/bsd_signal.texi.
20438         * doc/pastposix-functions/bzero.texi: Renamed from
20439         doc/posix-functions/bzero.texi.
20440         * doc/pastposix-functions/ecvt.texi: Renamed from
20441         doc/posix-functions/ecvt.texi.
20442         * doc/pastposix-functions/fcvt.texi: Renamed from
20443         doc/posix-functions/fcvt.texi.
20444         * doc/pastposix-functions/ftime.texi: Renamed from
20445         doc/posix-functions/ftime.texi.
20446         * doc/pastposix-functions/gcvt.texi: Renamed from
20447         doc/posix-functions/gcvt.texi.
20448         * doc/pastposix-functions/getcontext.texi: Renamed from
20449         doc/posix-functions/getcontext.texi.
20450         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
20451         doc/posix-functions/gethostbyaddr.texi.
20452         * doc/pastposix-functions/gethostbyname.texi: Renamed from
20453         doc/posix-functions/gethostbyname.texi.
20454         * doc/pastposix-functions/getwd.texi: Renamed from
20455         doc/posix-functions/getwd.texi.
20456         * doc/pastposix-functions/h_errno.texi: Renamed from
20457         doc/posix-functions/h_errno.texi.
20458         * doc/pastposix-functions/index.texi: Renamed from
20459         doc/posix-functions/index.texi.
20460         * doc/pastposix-functions/makecontext.texi: Renamed from
20461         doc/posix-functions/makecontext.texi.
20462         * doc/pastposix-functions/mktemp.texi: Renamed from
20463         doc/posix-functions/mktemp.texi.
20464         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
20465         doc/posix-functions/pthread_attr_getstackaddr.texi.
20466         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
20467         doc/posix-functions/pthread_attr_setstackaddr.texi.
20468         * doc/pastposix-functions/rindex.texi: Renamed from
20469         doc/posix-functions/rindex.texi.
20470         * doc/pastposix-functions/scalb.texi: Renamed from
20471         doc/posix-functions/scalb.texi.
20472         * doc/pastposix-functions/setcontext.texi: Renamed from
20473         doc/posix-functions/setcontext.texi.
20474         * doc/pastposix-functions/swapcontext.texi: Renamed from
20475         doc/posix-functions/swapcontext.texi.
20476         * doc/pastposix-functions/ualarm.texi: Renamed from
20477         doc/posix-functions/ualarm.texi.
20478         * doc/pastposix-functions/usleep.texi: Renamed from
20479         doc/posix-functions/usleep.texi.
20480         * doc/pastposix-functions/vfork.texi: Renamed from
20481         doc/posix-functions/vfork.texi.
20482         * doc/pastposix-functions/wcswcs.texi: Renamed from
20483         doc/posix-functions/wcswcs.texi.
20484         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
20485         (Function Substitutes): Update.
20486
20487 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20488
20489         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
20490         m4/strerror.m4.
20491
20492 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20493             Bruno Haible  <bruno@clisp.org>
20494
20495         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
20496
20497 2008-12-13  Bruno Haible  <bruno@clisp.org>
20498
20499         * modules/strtoull (Depends-on): Remove unistd.
20500
20501 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20502
20503         * modules/strtoull (Depends-on): Add stdlib.
20504
20505 2008-12-11  Simon Josefsson  <simon@josefsson.org>
20506
20507         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
20508
20509 2008-12-10  Jim Meyering  <meyering@redhat.com>
20510
20511         gl_ASSERT: don't say assertions are disabled when they're not
20512         * m4/assert.m4 (gl_ASSERT): Do not make configure report
20513         "checking whether to enable assertions... no", when they are in
20514         fact enabled.  This is solely a bug in the output of configure.
20515         In spite of saying "no", NDEBUG was not defined in that case.
20516         Also, as noted by Eric Blake, leave assertions enabled upon
20517         --enable-assert=INVALID.
20518
20519 2008-12-10  Bruno Haible  <bruno@clisp.org>
20520
20521         Change MODULES.html to refer to POSIX:2008 where possible.
20522         * MODULES.html.sh (POSIX2008_URL): New variable.
20523         (posix_headers): Remove sys/timeb, ucontext.
20524         (posix2001_headers): New variable.
20525         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
20526         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
20527         index, makecontext, mktemp, pthread_attr_getstackaddr,
20528         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
20529         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
20530         (posix2001_functions): New variable.
20531         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
20532         otherwise.
20533
20534 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20535
20536         add missing include to parse-duration.c
20537         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
20538         * modules/parse-duration (Depends-on): Add xalloc.
20539
20540         fix sed script reading maint.mk
20541         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
20542         (syntax-check-rules): Use it.
20543
20544 2008-12-09  Bruno Haible  <bruno@clisp.org>
20545
20546         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
20547         MacOS X 10.4/PowerPC.
20548         Reported by Simon Josefsson.
20549
20550 2008-12-08  Jim Meyering  <meyering@redhat.com>
20551
20552         work around mingw's lack of some S_IF definitions
20553         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
20554         Reported by Simon Josefsson.
20555
20556 2008-12-08  Bruno Haible  <bruno@clisp.org>
20557
20558         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
20559         applied to variables. Needed on MacOS X 10.4/PowerPC.
20560         Reported by Simon Josefsson.
20561
20562 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
20563         and Eric Blake  <ebb9@byu.net>
20564
20565         assert: honor --enable-assert
20566         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
20567         order to honor --enable-assert, rather than treating it as a
20568         synonym for --disable-assert.
20569
20570 2008-12-08  Jim Meyering  <meyering@redhat.com>
20571
20572         * lib/posixtm.c: Remove now-useless declaration of mktime.
20573
20574         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
20575
20576 2008-12-07  Bruno Haible  <bruno@clisp.org>
20577
20578         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
20579         test_once): Mark functions as static.
20580         * tests/test-tls.c (test_tls): Likewise.
20581
20582 2008-12-07  Bruno Haible  <bruno@clisp.org>
20583
20584         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
20585         iconv_register_autodetect.
20586
20587 2008-12-07  Jim Meyering  <meyering@redhat.com>
20588
20589         posixtm.c: avoid a warning
20590         * lib/posixtm.c (posixtime): Don't initialize tm0.
20591         It's no longer needed to placate gcc4's -Wuninitialized,
20592         and the attempt to placate would elicit a new warning.
20593
20594         unicodeio.c: mark unused parameters
20595         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
20596         (fallback_failure_callback): Likewise.
20597
20598 2008-12-07  Bruno Haible  <bruno@clisp.org>
20599
20600         * gnulib-tool (func_create_testdir): When building the tests
20601         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
20602         Reported by Simon Josefsson.
20603
20604 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20605
20606         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
20607
20608 2008-12-06  Bruno Haible  <bruno@clisp.org>
20609
20610         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
20611         Suggested by Eric Blake.
20612
20613 2008-12-06  Bruno Haible  <bruno@clisp.org>
20614
20615         Fix a c-stack test failure on MacOS X.
20616         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
20617         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
20618         handler for SIGBUS as well.
20619         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
20620         install a signal handler for SIGBUS as well.
20621         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
20622
20623 2008-12-06  Bruno Haible  <bruno@clisp.org>
20624
20625         Advocacy documentation.
20626         * doc/gnulib-intro.texi (Benefits): New section.
20627         * doc/gnulib.texi: Update.
20628
20629 2008-12-06  Bruno Haible  <bruno@clisp.org>
20630
20631         Document the 'manywarnings' module.
20632         * doc/manywarnings.texi: New file.
20633         * doc/gnulib.texi: Include it.
20634
20635 2008-12-05  Eric Blake  <ebb9@byu.net>
20636
20637         tests: silence some gcc warnings
20638         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
20639         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
20640         type mismatches.
20641
20642 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20643             Bruno Haible  <bruno@clisp.org>
20644
20645         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
20646
20647 2008-11-29  Jim Meyering  <meyering@redhat.com>
20648
20649         unicodeio.c: mark unused parameters
20650         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
20651         (fallback_failure_callback): Likewise.
20652
20653         fts: fix a thinko
20654         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
20655         (set_stat_type): Return S_IF*-valued "type" directly.
20656         Prompted by James Youngman's spotting a related bug.
20657         Confirmed by further testing through find.
20658
20659         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
20660         * lib/fts.c (D_TYPE): Define.
20661         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
20662         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
20663         (s_ifmt_shift_bits): New function.
20664         (set_stat_type): New function.
20665         (fts_build): When not calling fts_stat, call set_stat_type
20666         to propagate dirent.d_type info to fts_read caller.
20667         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
20668         fts_statp->st_mode type information may be valid.
20669
20670 2008-11-28  Simon Josefsson  <simon@josefsson.org>
20671
20672         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
20673         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
20674         <sds@gnu.org>.
20675
20676 2008-11-20  Bruno Haible  <bruno@clisp.org>
20677
20678         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
20679         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
20680         INCLUDE_NEXT.
20681         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
20682         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
20683         * modules/math (Makefile.am): Substitute
20684         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
20685         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20686
20687 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
20688             Bruno Haible  <bruno@clisp.org>
20689
20690         * lib/stdint.in.h: Define all type macros so that their expansion is
20691         a single typedef'ed token. Fixes a compilation failure in Boost which
20692         does "using ::int8_t;".
20693
20694 2008-11-18  Simon Josefsson  <simon@josefsson.org>
20695
20696         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
20697         gl_MANYWARN_ALL_GCC.
20698         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
20699         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
20700         * modules/manywarnings: New file.
20701         * MODULES.html.sh: Mention manywarnings module.
20702
20703 2008-11-18  Bruno Haible  <bruno@clisp.org>
20704
20705         * doc/gnulib-tool.texi (Unit tests): New section.
20706
20707 2008-11-18  Simon Josefsson  <simon@josefsson.org>
20708
20709         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
20710         paths like 'lib/po/foo.po'.
20711
20712 2008-11-17  Simon Josefsson  <simon@josefsson.org>
20713
20714         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
20715         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
20716
20717 2008-11-17  Simon Josefsson  <simon@josefsson.org>
20718
20719         * m4/warnings.m4: Use CPPFLAGS to really check whether the
20720         parameter works.
20721
20722 2008-11-17  Simon Josefsson  <simon@josefsson.org>
20723
20724         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
20725
20726 2008-11-17  Bruce Korb  <bkorb@gnu.org>
20727
20728         * modules/parse-duration-tests: New file.
20729         * tests/test-parse-duration.sh: New file.
20730         * tests/test-parse-duration.c: New file.
20731
20732         New module 'parse-duration'.
20733         * lib/parse-duration.h: New file.
20734         * lib/parse-duration.c: New file.
20735         * modules/parse-duration: New file.
20736
20737 2008-11-17  Bruno Haible  <bruno@clisp.org>
20738
20739         * tests/test-select-out.sh: Comment out the first pipe test.
20740         Reported by Simon Josefsson.
20741
20742 2008-11-17  Bruno Haible  <bruno@clisp.org>
20743
20744         * modules/getaddrinfo (Depends-on): Add servent, hostent.
20745         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
20746         gl_HOSTENT.
20747
20748 2008-11-17  Bruno Haible  <bruno@clisp.org>
20749
20750         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
20751         -lnetwork and -lnet. Needed for Haiku and BeOS.
20752
20753 2008-11-16  Bruno Haible  <bruno@clisp.org>
20754
20755         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
20756
20757 2008-11-16  Bruno Haible  <bruno@clisp.org>
20758
20759         Avoid test failure on Haiku.
20760         * tests/test-fsync.c: Include <errno.h>.
20761         (main): Don't require that fsync (0) fails.
20762
20763 2008-11-15  Bruno Haible  <bruno@clisp.org>
20764
20765         New module 'hostent'.
20766         * modules/hostent: New file.
20767         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
20768
20769 2008-11-15  Bruno Haible  <bruno@clisp.org>
20770
20771         New module 'servent'.
20772         * modules/servent: New file.
20773         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
20774
20775 2008-11-15  Bruno Haible  <bruno@clisp.org>
20776
20777         Avoid generating same test program with two different rules.
20778         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
20779         test-frexp to test-frexp-nolibm.
20780         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
20781         test-frexpl to test-frexpl-nolibm.
20782
20783 2008-11-15  Bruno Haible  <bruno@clisp.org>
20784
20785         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
20786         $(FREXPL_LIBM).
20787
20788 2008-11-15  Bruno Haible  <bruno@clisp.org>
20789
20790         * lib/netdb.in.h: Activate the definitions also when the system's
20791         <netdb.h> has 'struct addrinfo'.
20792         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
20793         EAI_OVERFLOW or AI_NUMERICSERV.
20794         * doc/posix-headers/netdb.texi: Document the problem.
20795
20796 2008-11-15  Bruno Haible  <bruno@clisp.org>
20797
20798         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
20799
20800         Make the 'sched' module work on platforms where <sched.h> exists but
20801         is incomplete (such as Haiku).
20802         * lib/sched.in.h; Include the system's <sched.h> if it exists.
20803         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
20804         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
20805         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
20806         HAVE_STRUCT_SCHED_PARAM.
20807         * modules/sched (Depends-on): Add include_next.
20808         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
20809         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
20810         * doc/posix-headers/sched.texi: Document the issue.
20811
20812 2008-11-13  Jim Meyering  <meyering@redhat.com>
20813
20814         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
20815         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
20816         test would fail due to the difference in the Report bugs to ...
20817         line.  The expected address is empty, "<>", while the actual
20818         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
20819
20820 2008-11-12  Bruno Haible  <bruno@clisp.org>
20821
20822         lstat: don't compile lstat.c on systems lacking lstat
20823         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
20824         which don't have lstat; this is handled by lib/sys_stat.in.h already.
20825         Reported by Daniel P. Berrange via Jim Meyering.
20826
20827 2008-11-12  Jim Meyering  <meyering@redhat.com>
20828
20829         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
20830
20831 2008-11-12  Simon Josefsson  <simon@josefsson.org>
20832
20833         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
20834         instead.
20835
20836 2008-11-12  Bruno Haible  <bruno@clisp.org>
20837
20838         * lib/unicodeio.c: Include unistr.h.
20839         (utf8_wctomb): Remove function.
20840         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
20841
20842 2008-11-12  Simon Josefsson  <simon@josefsson.org>
20843
20844         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
20845         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
20846         <bruno@clisp.org>.
20847         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
20848
20849 2008-11-12  Simon Josefsson  <simon@josefsson.org>
20850
20851         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
20852         * doc/gnulib.texi: Add section for warnings.
20853
20854 2008-11-11  Bruno Haible  <bruno@clisp.org>
20855
20856         * lib/sockets.h: Add a comment.
20857
20858 2008-11-11  Karl Berry  <karl@gnu.org>
20859
20860         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
20861
20862 2008-11-11  Eric Blake  <ebb9@byu.net>
20863
20864         fdl.texi: avoid git symlinks
20865         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
20866
20867 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
20868
20869         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
20870
20871 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
20872
20873         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
20874         (gl_WARN_ADD): Substitute $2 if literal.
20875
20876 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
20877
20878         * m4/warning.m4: Remove.
20879
20880 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
20881
20882         * m4/warnings.m4: Almost complete rewrite. :-)
20883
20884 2008-11-10  Simon Josefsson  <simon@josefsson.org>
20885
20886         * modules/warnings: New module.
20887         * m4/warnings.m4: New file.
20888         * MODULES.html.sh: Mention warnings module.
20889         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
20890         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20891
20892 2008-11-10  Eric Blake  <ebb9@byu.net>
20893
20894         fdl.texi: make a symlink to the latest version
20895         * doc/standards.texi: Revert today's earlier change.
20896         * doc/fdl-1.2.texi: Rename from old fdl.texi...
20897         * doc/fdl.texi: ...and replace this with a symlink to the newer
20898         fdl-1.3.texi.
20899
20900 2008-11-10  Bruno Haible  <bruno@clisp.org>
20901
20902         * tests/test-select-fd.c (main): Accept the result file name as fourth
20903         argument.
20904         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
20905         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
20906
20907 2008-11-10  Bruno Haible  <bruno@clisp.org>
20908
20909         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
20910         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
20911         as autoconf-substituted macros.
20912         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
20913         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
20914         gl_NETDB_H_DEFAULTS. Set these variables.
20915         * modules/netdb (Makefile.am): Substitute these variables.
20916
20917 2008-11-10  Eric Blake  <ebb9@byu.net>
20918
20919         standards.texi: include correct file for FDL 1.3
20920         * doc/standards.texi (GNU Free Documentation License): Change
20921         include file to pull in FDL 1.3, not 1.2.
20922
20923         fdl.texi: revert accidental change to license
20924         * doc/fdl.texi: This is FDL 1.2, not 1.3.
20925
20926 2008-11-10  Bruno Haible  <bruno@clisp.org>
20927
20928         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
20929         cross-compiling guesses also when the native compile gives no result.
20930
20931 2008-11-10  Bruno Haible  <bruno@clisp.org>
20932
20933         * lib/spawni.c (__spawni): Force variable into the stack.
20934
20935 2008-11-10  Bruno Haible  <bruno@clisp.org>
20936
20937         Add support for Haiku.
20938         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
20939         glibc and BeOS, but also on Haiku.
20940         * lib/fpurge.c (fpurge): Likewise.
20941         * lib/freadable.c (freadable): Likewise.
20942         * lib/freadahead.c (freadahead): Likewise.
20943         * lib/freading.c (freading): Likewise.
20944         * lib/freadptr.c (freadptr): Likewise.
20945         * lib/freadseek.c (freadptrinc): Likewise.
20946         * lib/fseeko.c (rpl_fseeko): Likewise.
20947         * lib/fseterr.c (fseterr): Likewise.
20948         * lib/fwritable.c (fwritable): Likewise.
20949         * lib/fwriting.c (fwriting): Likewise.
20950         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
20951
20952 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
20953
20954         * lib/config.charset: Treat Haiku like BeOS.
20955
20956 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
20957
20958         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
20959         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
20960
20961 2008-11-08  Bruno Haible  <bruno@clisp.org>
20962
20963         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
20964         AC_CACHE_CHECK.
20965
20966 2008-11-08  Bruno Haible  <bruno@clisp.org>
20967
20968         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
20969
20970 2008-11-08  Bruno Haible  <bruno@clisp.org>
20971
20972         * tests/test-select-fd.c: New file.
20973         * tests/test-select-in.sh: New file.
20974         * tests/test-select-out.sh: New file.
20975         * tests/test-select-stdin.c: New file.
20976         * modules/select-tests (Files): Add the new files.
20977         (Depends-on): Add gettimeofday.
20978         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
20979         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
20980         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
20981
20982 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
20983             Bruno Haible  <bruno@clisp.org>
20984
20985         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
20986
20987 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
20988
20989         * build-aux/pmccabe2html: Added support for C++ source files.
20990
20991 2008-11-05  Ben Pfaff  <blp@gnu.org>
20992
20993         Fix lib/close.c build on Windows.
20994         * modules/close (Files): Add lib/w32sock.h.
20995
20996 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
20997
20998         Accept Bison's NEWS format.
20999         * build-aux/announce-gen (print_news_deltas): Tweak
21000         $re_prefix.
21001
21002 2008-11-04  Bruno Haible  <bruno@clisp.org>
21003
21004         * modules/random_r (Maintainer): Add glibc.
21005
21006 2008-11-04  Simon Josefsson  <simon@josefsson.org>
21007
21008         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
21009         by karl@freefriends.org (Karl Berry).
21010         * doc/alloca.texi: Likewise.
21011         * doc/c-ctype.texi: Likewise.
21012         * doc/c-strcase.texi: Likewise.
21013         * doc/c-strcaseeq.texi: Likewise.
21014         * doc/c-strcasestr.texi: Likewise.
21015         * doc/c-strstr.texi: Likewise.
21016         * doc/c-strtod.texi: Likewise.
21017         * doc/c-strtold.texi: Likewise.
21018         * doc/ctime.texi: Likewise.
21019         * doc/error.texi: Likewise.
21020         * doc/fdl.texi: Likewise.
21021         * doc/gcd.texi: Likewise.
21022         * doc/getdate.texi: Likewise.
21023         * doc/gnulib-intro.texi: Likewise.
21024         * doc/gnulib-tool.texi: Likewise.
21025         * doc/gnulib.texi: Likewise.
21026         * doc/inet_ntoa.texi: Likewise.
21027         * doc/maintain.texi: Likewise.
21028         * doc/make-stds.texi: Likewise.
21029         * doc/quote.texi: Likewise.
21030         * doc/regexprops-generic.texi: Likewise.
21031         * doc/standards.texi: Likewise.
21032         * doc/verify.texi: Likewise.
21033         * doc/visibility.texi: Likewise.
21034         * doc/gnulib.texi (GNU Free Documentation License): Include
21035         fdl-1.3.texi instead of fdl.texi.
21036
21037 2008-11-04  Simon Josefsson  <simon@josefsson.org>
21038
21039         * doc/fdl-1.3.texi: New file, from
21040         <http://www.gnu.org/licenses/fdl-1.3.texi>.
21041         * modules/fdl-1.3: Add.
21042         * MODULES.html.sh: Add fdl-1.3.
21043
21044 2008-11-03  Bruno Haible  <bruno@clisp.org>
21045
21046         Make determination of absolute name of header file work with AIX xlc.
21047         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
21048         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
21049         preprocessing.
21050         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
21051         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
21052
21053 2008-11-03  Simon Josefsson  <simon@josefsson.org>
21054
21055         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
21056         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
21057         <ludo@gnu.org>.
21058
21059 2008-11-02  Bruno Haible  <bruno@clisp.org>
21060
21061         Mark 'strpbrk' obsolete.
21062         * modules/strpbrk (Status, Notice): New sections.
21063         * modules/strtok_r (Depends-on): Add strpbrk.
21064
21065 2008-11-02  Bruno Haible  <bruno@clisp.org>
21066
21067         Mark 'strdup' obsolete.
21068         * modules/strdup (Status, Notice): New sections.
21069         * modules/findprog (Depends-on): Add strdup.
21070         * modules/getaddrinfo (Depends-on): Likewise.
21071         * modules/localename (Depends-on): Likewise.
21072         * modules/relocatable-lib (Depends-on): Likewise.
21073         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
21074         * modules/relocatable-prog (Depends-on): Likewise.
21075         * modules/trim (Depends-on): Likewise.
21076         * modules/unictype/gen-ctype (Depends-on): Likewise.
21077         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
21078
21079 2008-11-02  Bruno Haible  <bruno@clisp.org>
21080
21081         Mark 'strcspn' obsolete.
21082         * modules/strcspn (Status, Notice): New sections.
21083
21084 2008-11-02  Bruno Haible  <bruno@clisp.org>
21085
21086         Mark 'rmdir' obsolete.
21087         * modules/rmdir (Status, Notice): New sections.
21088         * modules/clean-temp (Depends-on): Add rmdir.
21089         * modules/openat (Depends-on): Likewise.
21090
21091 2008-11-02  Bruno Haible  <bruno@clisp.org>
21092
21093         Mark 'raise' obsolete.
21094         * modules/raise (Status, Notice): New sections.
21095         (Include): Specify <signal.h>.
21096         * modules/stdio (Depends-on): Add raise.
21097         * modules/write (Depends-on): Likewise.
21098
21099 2008-11-02  Bruno Haible  <bruno@clisp.org>
21100
21101         Mark 'memset' obsolete.
21102         * modules/memset (Status, Notice): New sections.
21103
21104 2008-11-02  Bruno Haible  <bruno@clisp.org>
21105
21106         Mark 'memmove' obsolete.
21107         * modules/memmove (Status, Notice): New sections.
21108         * modules/argp (Depends-on): Add memmove.
21109         * modules/argz (Depends-on): Likewise.
21110         * modules/canonicalize (Depends-on): Likewise.
21111         * modules/canonicalize-lgpl (Depends-on): Likewise.
21112         * modules/fts (Depends-on): Likewise.
21113         * modules/getcwd (Depends-on): Likewise.
21114         * modules/human (Depends-on): Likewise.
21115         * modules/regex (Depends-on): Likewise.
21116         * modules/striconveh (Depends-on): Likewise.
21117         * modules/trim (Depends-on): Likewise.
21118         * modules/unistr/u8-move (Depends-on): Likewise.
21119         * modules/unistr/u16-move (Depends-on): Likewise.
21120         * modules/unistr/u32-move (Depends-on): Likewise.
21121
21122 2008-11-02  Bruno Haible  <bruno@clisp.org>
21123
21124         Mark 'memcpy' obsolete.
21125         * modules/memcpy (Status, Notice): New sections.
21126
21127 2008-11-02  Bruno Haible  <bruno@clisp.org>
21128
21129         Mark 'memcmp' obsolete.
21130         * modules/memcmp (Status, Notice): New sections.
21131         * modules/argmatch (Depends-on): Add memchr.
21132         * modules/backupfile (Depends-on): Likewise.
21133         * modules/c-strcasestr (Depends-on): Likewise.
21134         * modules/crypto/des (Depends-on): Likewise.
21135         * modules/csharpcomp (Depends-on): Likewise.
21136         * modules/fnmatch (Depends-on): Likewise.
21137         * modules/git-merge-changelog (Depends-on): Likewise.
21138         * modules/isnand (Depends-on): Likewise.
21139         * modules/isnand-nolibm (Depends-on): Likewise.
21140         * modules/isnanf (Depends-on): Likewise.
21141         * modules/isnanf-nolibm (Depends-on): Likewise.
21142         * modules/isnanl (Depends-on): Likewise.
21143         * modules/isnanl-nolibm (Depends-on): Likewise.
21144         * modules/mbchar (Depends-on): Likewise.
21145         * modules/memcoll (Depends-on): Likewise.
21146         * modules/quotearg (Depends-on): Likewise.
21147         * modules/regex (Depends-on): Likewise.
21148         * modules/relocatable-prog (Depends-on): Likewise.
21149         * modules/same (Depends-on): Likewise.
21150         * modules/signbit (Depends-on): Likewise.
21151         * modules/strcasestr-simple (Depends-on): Likewise.
21152         * modules/unictype/gen-ctype (Depends-on): Likewise.
21153         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
21154         * modules/uniname/uniname (Depends-on): Likewise.
21155         * modules/unistr/u8-cmp (Depends-on): Likewise.
21156
21157 2008-11-02  Bruno Haible  <bruno@clisp.org>
21158
21159         Mark 'memchr' obsolete.
21160         * modules/memchr (Status, Notice): New sections.
21161         * modules/argp (Depends-on): Add memchr.
21162         * modules/base64 (Depends-on): Likewise.
21163         * modules/c-strcasestr (Depends-on): Likewise.
21164         * modules/chdir-long (Depends-on): Likewise.
21165         * modules/fnmatch (Depends-on): Likewise.
21166         * modules/getsubopt (Depends-on): Likewise.
21167         * modules/git-merge-changelog (Depends-on): Likewise.
21168         * modules/glob (Depends-on): Likewise.
21169         * modules/strcasestr-simple (Depends-on): Likewise.
21170         * modules/strnlen (Depends-on): Likewise.
21171
21172 2008-11-02  Bruno Haible  <bruno@clisp.org>
21173
21174         Mark 'atexit' obsolete.
21175         * modules/atexit (Status, Notice): New sections.
21176         * modules/chdir-long (Depends-on): Add atexit.
21177         * modules/wait-process (Depends-on): Likewise.
21178
21179 2008-11-02  Bruno Haible  <bruno@clisp.org>
21180
21181         * gnulib-tool: New option --with-obsolete.
21182         (func_usage): Document it.
21183         (func_modules_transitive_closure): Drop obsolete dependencies if
21184         incobsolete is not true.
21185         (func_import): Read and save the incobsolete variable to the cache.
21186
21187 2008-11-02  Bruno Haible  <bruno@clisp.org>
21188
21189         * modules/TEMPLATE-EXTENDED: New field 'Status'.
21190         * gnulib-tool: New option --extract-status.
21191         (func_usage): Document it.
21192         (sed_extract_prog): Recognize it.
21193         (func_get_status): New function.
21194
21195 2008-10-30  Simon Josefsson  <simon@josefsson.org>
21196
21197         * modules/sockets (License): Change from LGPL to LGPLv2+.
21198
21199 2008-10-28  Simon Josefsson  <simon@josefsson.org>
21200
21201         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
21202
21203 2008-10-28  Simon Josefsson  <simon@josefsson.org>
21204
21205         * MODULES.html.sh (Support for systems lacking POSIX:2001):
21206         Mention times and sys_times.
21207         * modules/sys_times, modules/sys_times-tests: New modules.
21208         * modules/times, modules/times-tests: Likewise
21209         * m4/sys_times_h.m4: New file.
21210         * lib/sys_times.in.h: Likewise
21211         * lib/times.c: Likewise.
21212         * tests/test-sys_times.c: Likewise.
21213         * tests/test-times.c: Likewise.
21214         * doc/posix-headers/sys_times.texi: Update.
21215         * doc/posix-functions/times.texi: Update.
21216
21217 2008-10-28  Jim Meyering  <meyering@redhat.com>
21218
21219         * modules/tempname (Depends-on): Add lstat.
21220
21221         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
21222
21223 2008-10-28  Simon Josefsson  <simon@josefsson.org>
21224
21225         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
21226         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
21227         using idiom used elsewhere in gnulib.
21228
21229 2008-10-27  Jim Meyering  <meyering@redhat.com>
21230
21231         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
21232
21233 2008-10-27  Simon Josefsson  <simon@josefsson.org>
21234
21235         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
21236         TESTS_ENVIRONMENT, for shell scripts that needs to call built
21237         programs.
21238         * tests/test-argp-2.sh: Use $EXEEXT when needed.
21239
21240 2008-10-27  Simon Josefsson  <simon@josefsson.org>
21241
21242         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
21243
21244 2008-10-27  Bruno Haible  <bruno@clisp.org>
21245
21246         * tests/test-lstat.c: Include <stdio.h>.
21247
21248 2008-10-27  Simon Josefsson  <simon@josefsson.org>
21249
21250         * modules/lstat-tests: New module.
21251         * tests/test-lstat.c: New file.
21252
21253 2008-10-26  Jim Meyering  <meyering@redhat.com>
21254
21255         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
21256
21257 2008-10-26  Simon Josefsson  <simon@josefsson.org>
21258             Bruno Haible  <bruno@clisp.org>
21259
21260         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
21261         * modules/configmake (Include): Add a note that the include must come
21262         after all system headers.
21263         * lib/javaversion.c: Include configmake.h after all other includes.
21264
21265 2008-10-26  Bruno Haible  <bruno@clisp.org>
21266
21267         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
21268         HAVE_STRUCT_RANDOM_DATA to 1.
21269         (gl_STDLIB_H): Simplify.
21270
21271 2008-10-26  Simon Josefsson  <simon@josefsson.org>
21272
21273         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
21274         substitute HAVE_STRUCT_RANDOM_DATA.
21275         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
21276         random_data.
21277         * modules/stdlib (Makefile.am): Substitute
21278         HAVE_STRUCT_RANDOM_DATA.
21279
21280 2008-10-26  Simon Josefsson  <simon@josefsson.org>
21281
21282         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
21283         * doc/gnulib-intro.texi (Copyright): Likewise.
21284
21285 2008-10-26  Simon Josefsson  <simon@josefsson.org>
21286
21287         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
21288         findings.
21289
21290 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
21291             Bruno Haible  <bruno@clisp.org>
21292
21293         * lib/unistd.in.h: Include <winsock2.h>.
21294         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
21295         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
21296         Provide dummy declarations.
21297         (gethostname): Override.
21298         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
21299         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
21300         gl_PREREQ_SYS_H_WINSOCK2.
21301         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
21302         * doc/posix-functions/gethostname.texi: More details.
21303
21304 2008-10-25  Bruno Haible  <bruno@clisp.org>
21305
21306         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
21307         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
21308         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
21309
21310         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
21311         here ...
21312         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
21313         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
21314         gl_UNISTD_H_DEFAULTS.
21315
21316 2008-10-25  Eric Blake  <ebb9@byu.net>
21317
21318         signbit: avoid spurious compiler failure
21319         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
21320         declarations inside function.
21321
21322 2008-10-24  Simon Josefsson  <simon@josefsson.org>
21323             Bruno Haible  <bruno@clisp.org>
21324
21325         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
21326         * modules/random_r (Depends-on): Add stdint.
21327
21328 2008-10-24  Bruno Haible  <bruno@clisp.org>
21329
21330         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
21331         Eggert.
21332         * modules/strerror (License): Likewise.
21333
21334 2008-10-24  Jim Meyering  <meyering@redhat.com>
21335
21336         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
21337         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
21338
21339 2008-10-24  Eric Blake  <ebb9@byu.net>
21340
21341         getgroups: fix compilation when getgroups is available
21342         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
21343         but with <config.h> override of getgroups disabled.
21344
21345 2008-10-24  Simon Josefsson  <simon@josefsson.org>
21346
21347         * doc/gnulib.texi (Header files): Add note about C++ problems.
21348         Explained by Bruno Haible <bruno@clisp.org>.
21349
21350 2008-10-23  Bruno Haible  <bruno@clisp.org>
21351
21352         Define a dummy SA_NODEFER macro on Interix.
21353         * lib/signal.in.h (SA_NODEFER): Define fallback.
21354         Reported by Aleksey Cheusov <cheusov@tut.by> via
21355         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
21356
21357 2008-10-23  Bruno Haible  <bruno@clisp.org>
21358
21359         * modules/freadahead (License): Change to LGPLv2+.
21360         Suggested by Simon Josefsson.
21361
21362 2008-10-23  Jim Meyering  <meyering@redhat.com>
21363
21364         random_r: new module
21365         * modules/random_r: New file.
21366         * m4/random_r.m4: New file.
21367         * lib/random_r.c: New file, from glibc.
21368         * modules/random_r-tests: New file.
21369         * tests/test-random_r.c: New file.
21370         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
21371          Declare.
21372         (RAND_MAX): Define.
21373         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
21374         * modules/stdlib: Substitute them, too.
21375         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
21376         * doc/glibc-functions/initstate_r.texi: Mention the new module.
21377         * doc/glibc-functions/random_r.texi: Likewise.
21378         * doc/glibc-functions/setstate_r.texi: Likewise.
21379         * doc/glibc-functions/srandom_r.texi: Likewise.
21380         * config/srclist.txt: Mention it.
21381
21382 2008-10-23  David Lutterkort  <lutter@redhat.com>
21383
21384         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
21385         link requirement
21386
21387 2008-10-23  Jim Meyering  <meyering@redhat.com>
21388
21389         selinux-h: mark parameters of stub functions as intentionally unused
21390         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
21391         * lib/se-context.in.h: Likewise.
21392
21393 2008-10-22  Simon Josefsson  <simon@josefsson.org>
21394
21395         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
21396
21397 2008-10-22  Simon Josefsson  <simon@josefsson.org>
21398
21399         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
21400
21401 2008-10-22  Eric Blake  <ebb9@byu.net>
21402
21403         glthread/thread: avoid compiler warning
21404         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
21405         Add unreachable abort to silence compiler.
21406
21407 2008-10-22  Eric Blake  <ebb9@byu.net>
21408
21409         netdb: also supply struct addrinfo for cygwin 1.5.x
21410         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
21411         older cygwin.
21412         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
21413         cygwin.
21414         * doc/posix-headers/netdb.texi (netdb.h): Document this.
21415
21416 2008-10-22  Bruno Haible  <bruno@clisp.org>
21417
21418         * users.txt: Update entry about pspp.
21419
21420 2008-10-21  Bruno Haible  <bruno@clisp.org>
21421
21422         Simplification.
21423         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
21424         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
21425
21426         Simplification.
21427         * lib/ioctl.c (ioctl): Don't undefine.
21428         * lib/socket.c (socket): Don't undefine.
21429
21430         Remove unused module indicator macros.
21431         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
21432         GNULIB_$1 as a C macro.
21433
21434         * doc/posix-functions/close.texi: Undo last change.
21435         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
21436         Windows platforms.
21437
21438 2008-10-21  Bruno Haible  <bruno@clisp.org>
21439
21440         Add gethostname() declaration to <unistd.h>.
21441         * lib/unistd.in.h (gethostname): New declaration.
21442         * lib/gethostname.c: Include <unistd.h>.
21443         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
21444         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
21445         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
21446         and HAVE_GETHOSTNAME.
21447         * modules/gethostname (Depends-on): Add unistd.
21448         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21449         (Include): Specify <unistd.h>.
21450         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
21451         HAVE_GETHOSTNAME.
21452         * tests/test-gethostname.c: Include <unistd.h> first.
21453
21454 2008-10-21  Bruno Haible  <bruno@clisp.org>
21455
21456         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
21457         * modules/select-tests (Depends-on): Likewise.
21458         Reported by Simon Josefsson.
21459
21460 2008-10-21  Simon Josefsson  <simon@josefsson.org>
21461
21462         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
21463         * lib/accept.c: New file, based on winsock.c.
21464         * lib/bind.c: New file, based on winsock.c.
21465         * lib/connect.c: New file, based on winsock.c.
21466         * lib/getpeername.c: New file, based on winsock.c.
21467         * lib/getsockname.c: New file, based on winsock.c.
21468         * lib/getsockopt.c: New file, based on winsock.c.
21469         * lib/ioctl.c: New file, based on winsock.c.
21470         * lib/listen.c: New file, based on winsock.c.
21471         * lib/recv.c: New file, based on winsock.c.
21472         * lib/recvfrom.c: New file, based on winsock.c.
21473         * lib/send.c: New file, based on winsock.c.
21474         * lib/sendto.c: New file, based on winsock.c.
21475         * lib/setsockopt.c: New file, based on winsock.c.
21476         * lib/shutdown.c: New file, based on winsock.c.
21477         * lib/socket.c: New file, based on winsock.c.
21478         * lib/w32sock.h: New file, based on winsock.c.
21479         * lib/winsock.c: Remove file.
21480         * modules/accept: Likewise.
21481         * modules/bind: Likewise.
21482         * modules/connect: Likewise.
21483         * modules/getpeername: Likewise.
21484         * modules/getsockname: Likewise.
21485         * modules/getsockopt: Likewise.
21486         * modules/ioctl: Likewise.
21487         * modules/listen: Likewise.
21488         * modules/recv: Likewise.
21489         * modules/recvfrom: Likewise.
21490         * modules/send: Likewise.
21491         * modules/sendto: Likewise.
21492         * modules/setsockopt: Likewise.
21493         * modules/shutdown: Likewise.
21494         * modules/socket: Use socket.c instead of winsock.c.
21495         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
21496         * doc/posix-functions/accept.texi: Doc fix.
21497         * doc/posix-functions/bind.texi: Doc fix.
21498         * doc/posix-functions/close.texi: Doc fix.
21499         * doc/posix-functions/connect.texi: Doc fix.
21500         * doc/posix-functions/getpeername.texi: Doc fix.
21501         * doc/posix-functions/getsockname.texi: Doc fix.
21502         * doc/posix-functions/getsockopt.texi: Doc fix.
21503         * doc/posix-functions/ioctl.texi: Doc fix.
21504         * doc/posix-functions/listen.texi: Doc fix.
21505         * doc/posix-functions/recv.texi: Doc fix.
21506         * doc/posix-functions/recvfrom.texi: Doc fix.
21507         * doc/posix-functions/send.texi: Doc fix.
21508         * doc/posix-functions/sendto.texi: Doc fix.
21509         * doc/posix-functions/setsockopt.texi: Doc fix.
21510         * doc/posix-functions/shutdown.texi: Doc fix.
21511         * doc/posix-functions/socket.texi: Doc fix.
21512
21513 2008-10-20  Bruno Haible  <bruno@clisp.org>
21514
21515         Take into account the role of SIGABRT_COMPAT on Windows 2008.
21516         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
21517         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
21518         as an alias for SIGABRT.
21519         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
21520         (sigaction): Map it to SIGABRT.
21521         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
21522
21523 2008-10-20  Bruno Haible  <bruno@clisp.org>
21524
21525         * lib/fts.c: Don't include lstat.h.
21526         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
21527
21528         Move the lstat() declaration to <sys/stat.h>.
21529         * lib/lstat.h: Remove file.
21530         * lib/sys_stat.in.h: Add special invocation convention.
21531         (lstat): New declaration.
21532         * lib/lstat.c (orig_lstat): New function.
21533         (rpl_lstat): Use orig_lstat instead of lstat.
21534         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
21535         AC_C_INLINE. Set REPLACE_LSTAT.
21536         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
21537         and REPLACE_LSTAT.
21538         * modules/lstat (Files): Remove lib/lstat.h.
21539         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
21540         (Include): Specify <sys/stat.h> instead of lstat.h.
21541         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
21542         REPLACE_LSTAT.
21543         * NEWS: Mention the change.
21544
21545 2008-10-20  Bruno Haible  <bruno@clisp.org>
21546
21547         * modules/posix_spawn-tests: New file.
21548         * tests/test-posix_spawn3.c: New file.
21549
21550 2008-10-20  Bruno Haible  <bruno@clisp.org>
21551
21552         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
21553         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
21554         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
21555         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
21556         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
21557
21558 2008-10-20  Bruno Haible  <bruno@clisp.org>
21559
21560         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
21561         of posix_spawn on AIX 5.3.
21562
21563 2008-10-20  Bruno Haible  <bruno@clisp.org>
21564
21565         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
21566
21567 2008-10-20  Bruno Haible  <bruno@clisp.org>
21568
21569         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
21570         of AC_LANG_PROGRAM.
21571
21572 2008-10-20  Simon Josefsson  <simon@josefsson.org>
21573
21574         * lib/netdb.in.h: Don't define GNU specific constants until they
21575         are supported or needed.  Reported by Bruno Haible
21576         <bruno@clisp.org>.
21577
21578 2008-10-20  Simon Josefsson  <simon@josefsson.org>
21579
21580         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
21581
21582 2008-10-20  Simon Josefsson  <simon@josefsson.org>
21583
21584         * lib/getaddrinfo.h: Remove file.
21585         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
21586         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
21587         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
21588         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
21589         * modules/netdb: Substitute GNULIB_GETADDRINFO.
21590         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
21591         * tests/test-getaddrinfo.c: Likewise.
21592         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
21593         * NEWS: Mention change.
21594
21595 2008-10-19  Bruno Haible  <bruno@clisp.org>
21596
21597         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
21598
21599 2008-10-19  Bruno Haible  <bruno@clisp.org>
21600
21601         * lib/wait-process.c: Include simply <sys/wait.h>.
21602         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
21603         WIFSTOPPED): Remove fallback definitions.
21604         * modules/wait-process (Depends-on): Add sys_wait.
21605
21606         New module 'sys_wait'.
21607         * modules/sys_wait: New file.
21608         * lib/sys_wait.in.h: New file, partially copied from
21609         lib/wait-process.c.
21610         * m4/sys_wait_h.m4: New file.
21611         * doc/posix-headers/sys_wait.texi: Mention the new module.
21612
21613 2008-10-19  Bruno Haible  <bruno@clisp.org>
21614
21615         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
21616
21617 2008-10-19  Bruno Haible  <bruno@clisp.org>
21618
21619         Assume that waitpid() fills an 'int' status, not a 'union wait'.
21620         * lib/wait-process.c (WAIT_T): Remove type.
21621         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
21622         (wait_subprocess): Update.
21623
21624 2008-10-19  Bruno Haible  <bruno@clisp.org>
21625
21626         New module 'atoll'.
21627         * modules/atoll: New file.
21628         * lib/stdlib.in.h (atoll): New declaration.
21629         * lib/atoll.c: New file, from glibc with modifications.
21630         * m4/atoll.m4: New file.
21631         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
21632         HAVE_ATOLL.
21633         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
21634         * doc/posix-functions/atoll.texi: Mention the new module.
21635
21636 2008-10-19  Bruno Haible  <bruno@clisp.org>
21637
21638         Add strtoull() declaration to <stdlib.h>.
21639         * lib/stdlib.in.h (strtoull): New declaration.
21640         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
21641         Set HAVE_STRTOULL.
21642         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
21643         HAVE_STRTOULL.
21644         * modules/strtoull (Depends-on): Add stdlib.
21645         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
21646         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
21647         HAVE_STRTOULL.
21648
21649 2008-10-19  Bruno Haible  <bruno@clisp.org>
21650
21651         Add strtoll() declaration to <stdlib.h>.
21652         * lib/stdlib.in.h (strtoll): New declaration.
21653         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
21654         Set HAVE_STRTOLL.
21655         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
21656         HAVE_STRTOLL.
21657         * modules/strtoll (Depends-on): Add stdlib.
21658         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
21659         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
21660
21661 2008-10-19  Bruno Haible  <bruno@clisp.org>
21662
21663         * modules/bcopy (Depends-on): Add strings.
21664         (Include): Specify <strings.h>.
21665
21666 2008-10-19  Bruno Haible  <bruno@clisp.org>
21667
21668         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
21669
21670 2008-10-19  Bruno Haible  <bruno@clisp.org>
21671
21672         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
21673         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
21674         mingw.
21675
21676 2008-10-19  Bruno Haible  <bruno@clisp.org>
21677
21678         * lib/atanl.c: Don't include isnanl.h.
21679         * lib/cosl.c: Likewise.
21680         * lib/ldexpl.c: Likewise.
21681         * lib/logl.c: Likewise.
21682         * lib/sinl.c: Likewise.
21683         * lib/sqrtl.c: Likewise.
21684         * lib/tanl.c: Likewise.
21685
21686         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
21687         * lib/isnanf.h: Remove file.
21688         * lib/isnand.h: Remove file.
21689         * lib/isnanl.h: Remove file.
21690         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
21691         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
21692         macros.
21693         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
21694         HAVE_ISNANF, don't define it as a C macro.
21695         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
21696         HAVE_ISNAND, don't define it as a C macro.
21697         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
21698         HAVE_ISNANL, don't define it as a C macro.
21699         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
21700         HAVE_ISNAN[FDL].
21701         * modules/isnanf (Files): Remove lib/isnanf.h.
21702         (Depends-on): Add math.
21703         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
21704         (Include): Specify <math.h> instead of isnanf.h.
21705         * modules/isnand (Files): Remove lib/isnand.h.
21706         (Depends-on): Add math.
21707         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
21708         (Include): Specify <math.h> instead of isnand.h.
21709         * modules/isnanl (Files): Remove lib/isnanl.h.
21710         (Depends-on): Add math.
21711         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
21712         (Include): Specify <math.h> instead of isnanl.h.
21713         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
21714         HAVE_ISNAN[FDL].
21715         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
21716         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
21717         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
21718         * NEWS: Mention the change.
21719
21720 2008-10-18  Bruno Haible  <bruno@clisp.org>
21721
21722         Add getusershell(), setusershell(), endusershell() declarations to
21723         <unistd.h>.
21724         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
21725         declarations.
21726         * lib/getusershell.c: Include unistd.h.
21727         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
21728         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
21729         HAVE_GETUSERSHELL.
21730         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
21731         and HAVE_GETUSERSHELL.
21732         * modules/getusershell (Depends-on): Add unistd, extensions.
21733         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21734         (Include): Specify <unistd.h>.
21735         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
21736         HAVE_GETUSERSHELL.
21737
21738 2008-10-18  Bruno Haible  <bruno@clisp.org>
21739
21740         Add a getloadavg() declaration to <stdlib.h>.
21741         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
21742         getloadavg declaration.
21743         (getloadavg): New declaration.
21744         * lib/getloadavg.c: Include <stdlib.h> first.
21745         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
21746         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
21747         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
21748         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
21749         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
21750         * modules/getloadavg (Depends-on): Add stdlib, extensions.
21751         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
21752         (Include): Specify <stdlib.h>.
21753         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
21754         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
21755
21756 2008-10-18  Bruno Haible  <bruno@clisp.org>
21757
21758         * lib/dirchownmod.c: Don't include lchmod.h.
21759
21760         Move the lchmod() declaration to <sys/stat.h>.
21761         * lib/lchmod.h: Remove file.
21762         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
21763         (lchmod): New declaration, moved here from lib/lchown.h.
21764         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
21765         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
21766         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
21767         and HAVE_LCHMOD.
21768         * modules/lchmod (Files): Remove lib/lchmod.h.
21769         (Depends-on): Add sys_stat, extensions.
21770         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
21771         (Include): Specify <sys/stat.h> instead of lchmod.h.
21772         * modules/sys_stat (Depends-on): Add link-warning.
21773         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
21774         definition of GL_LINK_WARNING.
21775         * NEWS: Mention the change.
21776
21777 2008-10-18  Bruno Haible  <bruno@clisp.org>
21778
21779         * lib/fchdir.c: Don't include dirfd.h.
21780         * lib/fts.c: Likewise.
21781         * lib/getcwd.c: Likewise.
21782         * lib/glob.c: Likewise.
21783
21784         Move the dirfd() declaration to <dirent.h>.
21785         * lib/dirfd.h: Remove file.
21786         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
21787         (dirfd): New declaration.
21788         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
21789         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
21790         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
21791         HAVE_DECL_DIRFD.
21792         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
21793         HAVE_DECL_DIRFD.
21794         * modules/dirfd (Files): Remove lib/dirfd.h.
21795         (Depends-on): Add dirent, extensions.
21796         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
21797         (Include): Specify <dirent.h> instead of dirfd.h.
21798         * modules/dirent (Depends-on): Add link-warning.
21799         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
21800         definition of GL_LINK_WARNING.
21801         * NEWS: Mention the change.
21802
21803 2008-10-18  Bruno Haible  <bruno@clisp.org>
21804
21805         Move the euidaccess() declaration to <unistd.h>.
21806         * lib/euidaccess.h: Remove file.
21807         * lib/unistd.in.h (euidaccess): New declaration.
21808         * lib/euidaccess.c: Don't include euidaccess.h.
21809         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
21810         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
21811         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
21812         and HAVE_EUIDACCESS.
21813         * modules/euidaccess (Files): Remove lib/euidaccess.h.
21814         (Depends-on): Add unistd.
21815         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21816         (Include): Specify <unistd.h> instead of euidaccess.h.
21817         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
21818         HAVE_EUIDACCESS.
21819         * NEWS: Mention the change.
21820
21821 2008-10-18  Bruno Haible  <bruno@clisp.org>
21822
21823         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
21824
21825         Move the getdomainname() declaration to <unistd.h>.
21826         * lib/getdomainname.h: Remove file.
21827         * lib/unistd.in.h (getdomainname): New declaration.
21828         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
21829         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
21830         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
21831         HAVE_GETDOMAINNAME.
21832         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21833         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
21834         * modules/getdomainname (Files): Remove lib/getdomainname.h.
21835         (Depends-on): Add unistd, extensions.
21836         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21837         (Includes): Specify <unistd.h> instead of getdomainname.h.
21838         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
21839         HAVE_GETDOMAINNAME.
21840         * NEWS: Mention the change.
21841
21842 2008-10-18  Bruno Haible  <bruno@clisp.org>
21843
21844         * modules/dirent: New file.
21845         * m4/dirent_h.m4: New file.
21846         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
21847         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
21848         * modules/fchdir (Files): Remove lib/dirent.in.h.
21849         (Depends-on): Add dirent.
21850         (Makefile.am): Move rules to modules/dirent.
21851         * doc/posix-headers/dirent.texi: Mention the new module.
21852
21853 2008-10-18  Bruno Haible  <bruno@clisp.org>
21854
21855         Avoid -Wunused-parameter warnings in public gnulib header files.
21856         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
21857         macro.
21858         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
21859
21860 2008-10-18  Bruno Haible  <bruno@clisp.org>
21861
21862         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
21863         * doc/glibc-functions/error.texi: Mention the module 'error'.
21864         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
21865         * doc/glibc-functions/getdomainname.texi: Mention the module
21866         'getdomainname'.
21867         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
21868         * doc/glibc-functions/getpagesize.texi: Mention the module
21869         'getpagesize'.
21870         * doc/glibc-functions/getusershell.texi: Mention the module
21871         'getusershell'.
21872         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
21873         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
21874         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
21875         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
21876         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
21877         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
21878         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
21879         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
21880         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
21881         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
21882         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
21883         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
21884         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
21885         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
21886
21887 2008-10-17  Bruno Haible  <bruno@clisp.org>
21888
21889         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
21890         HP-UX and IRIX, use -0.0L.
21891         * tests/test-ceill.c (minus_zero): Likewise.
21892         * tests/test-floorl.c (minus_zero): Likewise.
21893         * tests/test-frexpl.c (minus_zero): Likewise.
21894         * tests/test-isnan.c (minus_zerol): Likewise.
21895         * tests/test-isnanl.h (minus_zero): Likewise.
21896         * tests/test-ldexpl.c (minus_zero): Likewise.
21897         * tests/test-roundl.c (minus_zero): Likewise.
21898         * tests/test-signbit.c (minus_zerol): Likewise.
21899         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
21900         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
21901         * tests/test-truncl.c (minus_zero): Likewise.
21902         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
21903         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
21904         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
21905         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
21906
21907 2008-10-17  Bruno Haible  <bruno@clisp.org>
21908
21909         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
21910         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
21911         that it gets activated only for gcc >= 3.0.
21912         * lib/dirent.in.h: Likewise.
21913         * lib/errno.in.h: Likewise.
21914         * lib/fcntl.in.h: Likewise.
21915         * lib/float.in.h: Likewise.
21916         * lib/iconv.in.h: Likewise.
21917         * lib/inttypes.in.h: Likewise.
21918         * lib/locale.in.h: Likewise.
21919         * lib/math.in.h: Likewise.
21920         * lib/netdb.in.h: Likewise.
21921         * lib/netinet_in.in.h: Likewise.
21922         * lib/search.in.h: Likewise.
21923         * lib/signal.in.h: Likewise.
21924         * lib/spawn.in.h: Likewise.
21925         * lib/stdarg.in.h: Likewise.
21926         * lib/stdint.in.h: Likewise.
21927         * lib/stdio.in.h: Likewise.
21928         * lib/stdlib.in.h: Likewise.
21929         * lib/string.in.h: Likewise.
21930         * lib/strings.in.h: Likewise.
21931         * lib/sys_file.in.h: Likewise.
21932         * lib/sys_ioctl.in.h: Likewise.
21933         * lib/sys_select.in.h: Likewise.
21934         * lib/sys_socket.in.h: Likewise.
21935         * lib/sys_stat.in.h: Likewise.
21936         * lib/sys_time.in.h: Likewise.
21937         * lib/sysexits.in.h: Likewise.
21938         * lib/time.in.h: Likewise.
21939         * lib/unistd.in.h: Likewise.
21940         * lib/wchar.in.h: Likewise.
21941         * lib/wctype.in.h: Likewise.
21942         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21943
21944 2008-10-17  Jim Meyering  <meyering@redhat.com>
21945
21946         ignore-value: don't depend on inline module
21947         * modules/ignore-value (Depends-on): Remove 'inline'.
21948         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
21949         Suggestion from Bruno Haible.
21950
21951 2008-10-17  Bruno Haible  <bruno@clisp.org>
21952
21953         New implementation of condition variables for Win32.
21954         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
21955         (gl_linked_waitqueue_t): New type.
21956         (gl_cond_t): Use it.
21957         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
21958         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
21959         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
21960         (glthread_cond_init_func, glthread_cond_wait_func,
21961         glthread_cond_timedwait_func, glthread_cond_signal_func,
21962         glthread_cond_broadcast_func, glthread_cond_destroy_func):
21963         Reimplemented on the basis of gl_linked_waitqueue_t.
21964         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
21965         gl_waitqueue_t.
21966         (gl_rwlock_t): Update.
21967         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
21968
21969 2008-10-17  Simon Josefsson  <simon@josefsson.org>
21970
21971         * modules/recvfrom (Depends-on): Add dependency on getpeername.
21972         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21973
21974 2008-10-17  Jim Meyering  <meyering@redhat.com>
21975
21976         ignore-value: new module
21977         * modules/ignore-value: New file.
21978         * lib/ignore-value.h: New file.
21979         * MODULES.html.sh (Compiler warning management): New section,
21980         just for this module.  More to come.
21981
21982 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
21983
21984         open-safer.c: avoid 'signed and unsigned in conditional...' warning
21985         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
21986         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
21987
21988 2008-10-16  Jim Meyering  <meyering@redhat.com>
21989
21990         openat-die.c: avoid 'no previous prototype' warning
21991         * lib/openat-die.c: Include "openat.h".
21992         Reported by Reuben Thomas <rrt@sc3d.org>.
21993
21994 2008-10-16  Simon Josefsson  <simon@josefsson.org>
21995
21996         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
21997         * lib/netdb.in.h: Fix typo.
21998         Reported by Bruno Haible  <bruno@clisp.org>
21999
22000         * lib/netdb.in.h: Include sys/socket.h for platforms without
22001         netdb.h, to get structures like hostent on MinGW.
22002         * modules/netdb (Depends-on): Add sys_socket.
22003
22004 2008-10-15  Simon Josefsson  <simon@josefsson.org>
22005
22006         * modules/netdb, modules/netdb-tests: New file.
22007         * m4/netdb_h.m4: New file.
22008         * lib/netdb.in.h: Add, currently just an empty file pending
22009         definitions.
22010         * tests/test-netdb.c: New file.
22011         * doc/posix-headers/netdb.texi: Mention that we replace it if
22012         needed.
22013         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22014         netdb.
22015
22016 2008-10-15  Simon Josefsson  <simon@josefsson.org>
22017
22018         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
22019         with code.
22020
22021 2008-10-13  Bruno Haible  <bruno@clisp.org>
22022
22023         * lib/glthread/cond.c (glthread_cond_wait_func,
22024         glthread_cond_timedwait_func): Add a comment.
22025
22026 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
22027
22028         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
22029         * tests/test-select.c: Likewise,
22030
22031 2008-10-13  Bruno Haible  <bruno@clisp.org>
22032
22033         * lib/glthread/cond.c (glthread_cond_wait_func,
22034         glthread_cond_timedwait_func): Fix variable name.
22035         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
22036
22037 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
22038
22039         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
22040         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
22041         struct sockaddr.sa_len.
22042         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
22043
22044 2008-10-13  Simon Josefsson  <simon@josefsson.org>
22045
22046         * build-aux/pmccabe2html: Add css and css_url parameters.
22047
22048 2008-10-12  Bruno Haible  <bruno@clisp.org>
22049
22050         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
22051         calling aclx_get.
22052         Reported by Rainer Tammer <tammer@tammer.net>.
22053
22054 2008-10-12  Bruno Haible  <bruno@clisp.org>
22055
22056         Use msvcrt aware primitives for creation/termination of Win32 threads.
22057         * lib/glthread/thread.c: Include <process.h>.
22058         (glthread_create_func): Use _beginthreadex instead of CreateThread.
22059         (wrapper_func): Update signature.
22060         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
22061
22062 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
22063             Bruno Haible  <bruno@clisp.org>
22064
22065         Provide a Win32 implementation of the 'cond' module.
22066         * lib/glthread/cond.h [USE_WIN32]: New implementation.
22067         * lib/glthread/cond.c (glthread_cond_init_func,
22068         glthread_cond_wait_func, glthread_cond_timedwait_func,
22069         glthread_cond_signal_func, glthread_cond_broadcast_func,
22070         glthread_cond_destroy_func) [USE_WIN32]: New functions.
22071         * modules/cond (Dependencies): Add gettimeofday.
22072
22073 2008-10-11  Bruno Haible  <bruno@clisp.org>
22074
22075         Make sleep work on older versions of mingw.
22076         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
22077         only whether it exists.
22078         * doc/posix-functions/sleep.texi: Mention the problem with older
22079         versions of mingw.
22080
22081 2008-10-11  Bruno Haible  <bruno@clisp.org>
22082
22083         New module 'shutdown'.
22084         * modules/shutdown: New file.
22085         * lib/sys_socket.in.h (shutdown): New declaration.
22086         * lib/winsock.c (shutdown): New function.
22087         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
22088         GNULIB_SHUTDOWN.
22089         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
22090         * doc/posix-functions/shutdown.texi: Document the new module.
22091
22092 2008-10-11  Jim Meyering  <meyering@redhat.com>
22093
22094         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
22095
22096 2008-10-11  Bruno Haible  <bruno@clisp.org>
22097
22098         New module 'fclose'.
22099         * modules/fclose: New file.
22100         * lib/stdio.in.h (fclose): New declaration.
22101         * lib/fclose.c: New file.
22102         * m4/fclose.m4: New file.
22103         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
22104         REPLACE_FCLOSE.
22105         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
22106         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
22107         REPLACE_FCLOSE.
22108         * modules/close (Depends-on): fclose.
22109         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
22110
22111 2008-10-11  Bruno Haible  <bruno@clisp.org>
22112
22113         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
22114         set errno and don't call _close.
22115
22116 2008-10-10  Bruno Haible  <bruno@clisp.org>
22117
22118         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
22119         ACL, not afterwards. Fixes test failure on Cygwin.
22120
22121 2008-10-09  Ben Pfaff  <blp@gnu.org>
22122
22123         * build-aux/announce-gen: Fix gnulib version related part of usage
22124         message.  Die with a useful error message if no tarballs are
22125         found.
22126
22127 2008-10-10  Jim Meyering  <meyering@redhat.com>
22128
22129         bootstrap: use git's --depth=N option only if it's supported
22130         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
22131         recognize the --depth option.  Reported by Pádraig Brady.
22132
22133 2008-10-09  Bruno Haible  <bruno@clisp.org>
22134
22135         New module 'ioctl'.
22136         * modules/ioctl: New file.
22137         * lib/sys_socket.in.h (ioctl): Remove declaration.
22138         * lib/winsock.c: Include <sys/ioctl.h>.
22139         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
22140         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
22141         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
22142         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
22143         * doc/posix-functions/ioctl.texi: Mention the new module.
22144
22145 2008-10-09  Bruno Haible  <bruno@clisp.org>
22146
22147         New module 'sys_ioctl'.
22148         * lib/sys_ioctl.in.h: New file.
22149         * m4/sys_ioctl_h.m4: New file.
22150         * modules/sys_ioctl: New file.
22151         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
22152
22153 2008-10-09  Bruno Haible  <bruno@clisp.org>
22154
22155         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
22156         * lib/winsock.c: Include <stdarg.h>.
22157         (rpl_ioctl): Change to second argument 'int' and then varargs.
22158
22159 2008-10-09  Bruno Haible  <bruno@clisp.org>
22160
22161         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
22162         when the sys_socket module is present and the system has <winsock2.h>.
22163
22164 2008-10-09  Bruno Haible  <bruno@clisp.org>
22165
22166         * doc/posix-functions/close.texi: Mention module 'close' instead of
22167         module 'sys_socket'.
22168
22169 2008-10-09  Bruno Haible  <bruno@clisp.org>
22170
22171         * doc/glibc-headers/sys_ioctl.texi: New file.
22172         * doc/gnulib.texi: Include it.
22173
22174 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
22175             Bruno Haible  <bruno@clisp.org>
22176
22177         Combine the two replacements of 'close'.
22178         * lib/sys_socket.in.h (close): Define to a reminder to include
22179         <unistd.h>.
22180         (_gl_close_fd_maybe_socket): New declaration.
22181         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
22182         * lib/winsock.c (close): Remove undefinition.
22183         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
22184         needed for the gnulib module 'close'.
22185         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
22186         define to an error symbol or to a warning, if suitable.
22187         * lib/close.c: Include <sys/socket.h>.
22188         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
22189         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
22190         UNISTD_H_HAVE_WINSOCK2_H.
22191         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
22192         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22193         UNISTD_H_HAVE_WINSOCK2_H.
22194         * modules/sys_socket (Files): Add m4/unistd_h.m4.
22195         (configure.ac): Set a module indicator.
22196         (Makefile.am): Substitute GNULIB_CLOSE.
22197         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
22198         * modules/poll-tests (Depends-on): Add close.
22199         * modules/select-tests (Depends-on): Likewise.
22200
22201 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
22202             Bruno Haible  <bruno@clisp.org>
22203
22204         New module 'close'.
22205         * modules/close: New file.
22206         * lib/unistd.in.h (close): Move declaration out of the
22207         FCHDIR_REPLACEMENT scope.
22208         (_gl_unregister_fd): New declaration.
22209         * lib/close.c: New file.
22210         * lib/fchdir.c (rpl_close): Remove function.
22211         * m4/close.m4: New file.
22212         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
22213         close.
22214         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
22215         REPLACE_CLOSE.
22216         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
22217         REPLACE_CLOSE.
22218         * modules/fchdir (Depends-on): Add close.
22219
22220 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
22221             Bruno Haible  <bruno@clisp.org>
22222
22223         * lib/fcntl.in.h (open): Simplify conditionals.
22224         (_gl_register_fd): New declaration.
22225         * lib/fchdir.c (rpl_open): Remove function.
22226         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
22227         also.
22228         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
22229         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
22230         open.
22231
22232 2008-10-09  Jim Meyering  <meyering@redhat.com>
22233
22234         GNUmakefile: use the more name-space-friendly "_version"
22235         * top/GNUmakefile (_dummy): Update.
22236         (_version): Rename from "version".
22237
22238 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
22239             Bruno Haible  <bruno@clisp.org>
22240
22241         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
22242         rpl_close.
22243         (_gl_register_fd): New function, extracted from rpl_open.
22244         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
22245         (rpl_open, rpl_opendir): Use _gl_register_fd.
22246
22247 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
22248
22249         Fix organization of 'open' replacement.
22250         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
22251         (gl_FUNC_OPEN): Use it.
22252         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
22253
22254 2008-10-08  Bruno Haible  <bruno@clisp.org>
22255
22256         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
22257
22258 2008-10-08  Simon Josefsson  <simon@josefsson.org>
22259
22260         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
22261         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
22262         listen).
22263
22264 2008-10-08  Eric Blake  <ebb9@byu.net>
22265
22266         GNUmakefile: add 'make version' target
22267         * top/GNUmakefile (_curr-ver): Split version update rules...
22268         (version): ...into a target.
22269
22270 2008-10-07  Bruno Haible  <bruno@clisp.org>
22271
22272         Use a more portable replacement expression for -0.0L.
22273         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
22274         instead of -0.0L. Fix m4 quotation.
22275
22276         * tests/test-signbit.c: Include <float.h>.
22277         (minus_zero): New variable.
22278         (test_signbitl): Use minus_zero instead of -zero.
22279         * modules/signbit-tests (Depends-on): Add float.
22280
22281         * tests/test-ceill.c: Include <float.h>.
22282         (zero): Remove variable.
22283         (minus_zero): New variable.
22284         (main): Use minus_zero instead of -zero.
22285         * modules/ceill-tests (Depends-on): Add float.
22286
22287         * tests/test-floorl.c: Include <float.h>.
22288         (zero): Remove variable.
22289         (minus_zero): New variable.
22290         (main): Use minus_zero instead of -zero.
22291         * modules/floorl-tests (Depends-on): Add float.
22292
22293         * tests/test-roundl.c: Include <float.h>.
22294         (zero): Remove variable.
22295         (minus_zero): New variable.
22296         (main): Use minus_zero instead of -zero.
22297         * modules/roundl-tests (Depends-on): Add float.
22298
22299         * tests/test-truncl.c: Include <float.h>.
22300         (zero): Remove variable.
22301         (minus_zero): New variable.
22302         (main): Use minus_zero instead of -zero.
22303         * modules/truncl-tests (Depends-on): Add float.
22304
22305         * tests/test-frexpl.c (zero): Remove variable.
22306         (minus_zero): New variable.
22307         (main): Use minus_zero instead of -zero.
22308         * modules/frexpl-tests (Depends-on): Add float.
22309
22310         * tests/test-isnan.c (zerol): Remove variable.
22311         (minus_zerol): New variable.
22312         (test_long_double): Use minus_zerol instead of -zerol.
22313         * modules/isnan-tests (Depends-on): Add float.
22314
22315         * tests/test-isnanl.h (zero): Remove variable.
22316         (minus_zero): New variable.
22317         (main): Use minus_zero instead of -zero.
22318         * modules/isnanl-nolibm-tests (Depends-on): Add float.
22319         * modules/isnanl-tests (Depends-on): Add float.
22320
22321         * tests/test-ldexpl.c (zero): Remove variable.
22322         (minus_zero): New variable.
22323         (main): Use minus_zero instead of -zero.
22324         * modules/ldexpl-tests (Depends-on): Add float.
22325
22326         * tests/test-snprintf-posix.h (zerol): Remove variable.
22327         (minus_zerol): New variable.
22328         (test_function): Use minus_zerol instead of -zerol.
22329         * modules/snprintf-posix-tests (Depends-on): Add float.
22330         * modules/vsnprintf-posix-tests (Depends-on): Add float.
22331
22332         * tests/test-sprintf-posix.h (zerol): Remove variable.
22333         (minus_zerol): New variable.
22334         (test_function): Use minus_zerol instead of -zerol.
22335         * modules/sprintf-posix-tests (Depends-on): Add float.
22336         * modules/vsprintf-posix-tests (Depends-on): Add float.
22337
22338         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
22339         (minus_zerol): New variable.
22340         (test_function): Use minus_zerol instead of -zerol.
22341         * modules/vasnprintf-posix-tests (Depends-on): Add float.
22342
22343         * tests/test-vasprintf-posix.c (zerol): Remove variable.
22344         (minus_zerol): New variable.
22345         (test_function): Use minus_zerol instead of -zerol.
22346         * modules/vasprintf-posix-tests (Depends-on): Add float.
22347
22348 2008-10-07  Simon Josefsson  <simon@josefsson.org>
22349
22350         * MODULES.html.sh (Support for building documentation): Mention
22351         pmccabe2html.  Sort entries.
22352
22353         Add pmccabe2html module, from gnupdf.
22354         * build-aux/pmccabe.css: New file.
22355         * build-aux/pmccabe2html: New file.
22356         * m4/pmccabe2html.m4: New file.
22357         * modules/pmccabe2html: New file.
22358
22359 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
22360
22361         flock: new module
22362         * MODULES.html.sh: Add to list of modules.
22363         * lib/flock.c: flock implementation for Windows and Unix systems
22364         which have fcntl.
22365         * doc/glibc-functions/flock.texi: Update documentation.
22366         * lib/sys_file.in.h: <sys/file.h> header file.
22367         * m4/flock.m4: M4 macros.
22368         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
22369         * modules/flock: flock module.
22370         * modules/flock-tests: flock tests module.
22371         * modules/sys_file: sys/file.h module.
22372         * tests/test-flock.c: test suite for flock.
22373
22374 2008-10-06  Jim Meyering  <meyering@redhat.com>
22375
22376         bootstrap: check for LT_INIT more portably still ;-)
22377         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
22378         Spotted by Bruno Haible.
22379
22380 2008-10-06  Eric Blake  <ebb9@byu.net>
22381
22382         test-signbit: avoid tripping Irix cc bug on -0.0L
22383         * tests/test-signbit.c (minus_zerol): Delete, and replace with
22384         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
22385         entire testsuite consistent and avoids an Irix 6.2 bug.
22386
22387 2008-10-05  Bruno Haible  <bruno@clisp.org>
22388             Jim Meyering  <jim@meyering.net>
22389
22390         Add an option for ignoring EPIPE during close_stdout.
22391         * lib/closeout.h: Include <stdbool.h>.
22392         (close_stdout_set_ignore_EPIPE): New declaration.
22393         * lib/closeout.c: Include <stdbool.h>.
22394         (ignore_EPIPE): New variable.
22395         (close_stdout_set_ignore_EPIPE): New function.
22396         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
22397         * lib/close-stream.c (close_stream): Mention the possible EPIPE
22398         failure.
22399         * modules/closeout (Depends-on): Add stdbool.
22400
22401 2008-10-05  Bruno Haible  <bruno@clisp.org>
22402
22403         * modules/accept: New file.
22404         * modules/bind: New file.
22405         * modules/connect: New file.
22406         * modules/getpeername: New file.
22407         * modules/getsockname: New file.
22408         * modules/getsockopt: New file.
22409         * modules/listen: New file.
22410         * modules/recv: New file.
22411         * modules/recvfrom: New file.
22412         * modules/send: New file.
22413         * modules/sendto: New file.
22414         * modules/setsockopt: New file.
22415         * modules/socket: New file.
22416         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
22417         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
22418         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
22419         the particular module is requested. Add a link warning when the
22420         particular module is not requested.
22421         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
22422         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
22423         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
22424         the particular module is requested.
22425         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
22426         gl_SYS_SOCKET_H_DEFAULTS): New macros.
22427         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
22428         * modules/sys_socket (Depends-on): Add link-warning.
22429         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
22430         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
22431         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
22432         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
22433         GL_LINK_WARNING.
22434         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
22435         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
22436         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
22437         * doc/posix-functions/getpeername.texi: Mention the new module
22438         'getpeername'.
22439         * doc/posix-functions/getsockname.texi: Mention the new module
22440         'getsockname'.
22441         * doc/posix-functions/getsockopt.texi: Mention the new module
22442         'getsockopt'.
22443         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
22444         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
22445         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
22446         * doc/posix-functions/send.texi: Mention the new module 'send'.
22447         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
22448         * doc/posix-functions/setsockopt.texi: Mention the new module
22449         'setsockopt'.
22450         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
22451         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
22452         listen, connect, accept.
22453         * modules/select-tests (Depends-on): Likewise.
22454
22455 2008-10-05  Bruno Haible  <bruno@clisp.org>
22456
22457         * lib/winsock.c (strerror): Remove unused #undef.
22458         (rpl_close): Remove unused local variable.
22459
22460         * modules/sys_socket (Depends-on); Add errno.
22461
22462 2008-10-05  Bruno Haible  <bruno@clisp.org>
22463
22464         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
22465         (select): Add a link warning when the 'select' module is not used.
22466         * modules/sys_select (Depends-on): Add link-warning.
22467         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
22468         Suggested by Paolo Bonzini.
22469
22470 2008-10-05  Jim Meyering  <meyering@redhat.com>
22471
22472         bootstrap: check for LT_INIT more portably
22473         * build-aux/bootstrap: Avoid using grep -E, since it's not
22474         portable enough.  Suggestion from Bruno Haible.
22475
22476 2008-10-05  Bruno Haible  <bruno@clisp.org>
22477
22478         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
22479         as being fixed by gnulib.
22480
22481 2008-10-05  Bruno Haible  <bruno@clisp.org>
22482
22483         * modules/select-tests: New file, mostly copied from
22484         modules/sys_select-tests.
22485         * tests/test-select.c: New file, mostly copied from
22486         tests/test-sys_select.c.
22487         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
22488         * modules/sys_select-tests (Depends-on): Remove all dependencies.
22489         (Makefile.am): Remove test_sys_select_LDADD.
22490
22491         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
22492         to an undefined symbol, for an error message.
22493         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
22494         (gl_SYS_SELECT_H_DEFAULTS): New macro.
22495         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
22496         winsock-select.c here.
22497         * modules/sys_select (Files): Remove lib/winsock-select.c.
22498         (Depends-on): Remove alloca.
22499         (Makefile.am): Substitute GNULIB_SELECT.
22500         * modules/select: New file.
22501         * doc/posix-functions/select.texi: Update.
22502
22503 2008-10-05  Bruno Haible  <bruno@clisp.org>
22504
22505         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
22506         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
22507         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
22508         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
22509         getdtablesize.
22510         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
22511         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
22512
22513 2008-10-05  Bruno Haible  <bruno@clisp.org>
22514
22515         * modules/getdtablesize-tests: New file.
22516         * tests/test-getdtablesize.c: New file.
22517
22518         New module 'getdtablesize'.
22519         * lib/unistd.in.h (getdtablesize): New declaration.
22520         * lib/getdtablesize.c: New file.
22521         * m4/getdtablesize.m4: New file.
22522         * modules/getdtablesize: New file.
22523         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22524         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
22525         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
22526         HAVE_GETDTABLESIZE.
22527         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
22528
22529 2008-10-05  Bruno Haible  <bruno@clisp.org>
22530
22531         * modules/sched (Makefile.am): Fix typo.
22532         Reported by Simon Josefsson.
22533
22534 2008-10-05  Jim Meyering  <meyering@redhat.com>
22535
22536         bootstrap: check for LT_INIT, too
22537         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
22538         are deprecated.  Suggestion from Ralf Wildenhues.
22539
22540 2008-10-05  Bruno Haible  <bruno@clisp.org>
22541
22542         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
22543         overriding them by ours.
22544         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
22545
22546 2008-10-05  Jim Meyering  <meyering@redhat.com>
22547
22548         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
22549         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
22550         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
22551
22552 2008-10-04  Bruno Haible  <bruno@clisp.org>
22553
22554         * modules/dup2 (License): Change to LGPLv2+.
22555         * modules/sleep (License): Likewise.
22556         * modules/perror (License): Likewise.
22557         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
22558         Blake.
22559         * modules/signal (License): Likewise.
22560         * modules/sigprocmask (License): Likewise.
22561         * modules/raise (License): Change to LGPLv2+, with approval by Jim
22562         Meyering.
22563
22564 2008-10-04  Bruno Haible  <bruno@clisp.org>
22565
22566         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
22567         Reported by Rainer Tammer <tammer@tammer.net>.
22568
22569 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
22570             Bruno Haible  <bruno@clisp.org>
22571
22572         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
22573         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
22574         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
22575
22576 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
22577
22578         filevercmp: new module
22579         * lib/filevercmp.h: New function filevercmp comparing version strings.
22580         * lib/filevercmp.c: Implementation of filevercmp function.
22581         * modules/filevercmp: Module metadata.
22582         * tests/test-filevercmp.c: Unit test for new module.
22583         * modules/filevercmp-tests: Unit test metadata.
22584         * MODULES.html.sh: Add filevercmp module.
22585
22586 2008-10-03  Bruno Haible  <bruno@clisp.org>
22587
22588         * lib/c-ctype.h: Add comment.
22589         Reported by Jim Meyering.
22590
22591 2008-10-02  Bruno Haible  <bruno@clisp.org>
22592
22593         * modules/posix_spawn-internal (Depends-on): Add 'open'.
22594
22595 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
22596
22597         * build-aux/bootstrap: Allow renaming bootstrap, and change the
22598         name of bootstrap.conf accordingly.
22599
22600 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
22601
22602         * build-aux/bootstrap: Install git-merge-changelog configuration
22603         items into .gitconfig if needed.
22604
22605 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
22606
22607         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
22608         git repository, and initialize/update it accordingly.
22609
22610 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
22611
22612         * modules/fsync-tests: New file.
22613         * tests/test-fsync.c: New file.
22614
22615         New module 'fsync'.
22616         * lib/fsync.c: New file.
22617         * m4/fsync.m4: New file.
22618         * modules/fsync: New file.
22619         * lib/unistd.in.h (fsync): New declaration.
22620         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
22621         GNULIB_FSYNC and HAVE_FSYNC.
22622         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
22623         * MODULES.html.sh (posix_functions): Add fsync.
22624         * doc/posix-functions/fsync.texi: Mention the new module.
22625
22626 2008-10-02  Jim Meyering  <meyering@redhat.com>
22627
22628         fts.c: sync with similar code from coreutils' remove.c
22629         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
22630         Guard also with "#if defined __linux__", since for now at least,
22631         this code is Linux-kernel-specific.
22632
22633 2008-10-02  Jim Meyering  <meyering@redhat.com>
22634
22635         fts: bug fixes
22636         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
22637         Include <sys/vfs.h>, not <sys/statfs.h>.
22638
22639         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
22640         Include <sys/vfs.h>, not <sys/statfs.h>.
22641
22642 2008-10-01  Bruno Haible  <bruno@clisp.org>
22643
22644         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
22645         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
22646         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
22647         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
22648         * doc/posix-functions/posix_spawnp.texi: Likewise.
22649         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
22650         whether posix_spawn actually works.
22651         * m4/pipe.m4 (gl_PIPE): Likewise.
22652         * modules/execute (Files): Add m4/posix_spawn.m4.
22653         * modules/pipe (Files): Add m4/posix_spawn.m4.
22654         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
22655
22656 2008-10-01  Jim Meyering  <meyering@redhat.com>
22657
22658         remove trailing spaces
22659         * NEWS: Likewise.
22660         * lib/poll.c (poll): Likewise.
22661         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
22662         * lib/winsock.c (rpl_close): Likewise.
22663         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
22664         * modules/yield: Likewise.
22665         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
22666         * tests/test-sys_select.c (connect_to_socket): Likewise.
22667
22668         fts.c: adjust a new interface to be more generally useful
22669         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
22670         (fts_build): Adjust caller.
22671
22672 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22673
22674         * modules/cond-tests: New file.
22675         * tests/test-cond.c: New file.
22676
22677 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22678             Bruno Haible  <bruno@clisp.org>
22679
22680         * modules/cond (Dependencies): Add errno, time.
22681         * lib/glthread/cond.h: Include <time.h>.
22682         (gl_cond_define, gl_cond_define_initialized): Use the same definition
22683         across platforms.
22684
22685 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22686             Bruno Haible  <bruno@clisp.org>
22687
22688         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
22689
22690 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22691             Bruno Haible  <bruno@clisp.org>
22692
22693         * modules/tls-tests (Depends-on): Add thread, yield.
22694         (configure.ac): Remove all checks.
22695         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
22696         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
22697         gl_thread_self): Remove definitions. Include glthread/thread.h and
22698         glthread/yield.h instead.
22699         (test_tls): Pass an additional NULL argument to gl_thread_join.
22700
22701 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22702             Bruno Haible  <bruno@clisp.org>
22703
22704         * modules/lock-tests (Depends-on): Add thread, yield.
22705         (configure.ac): Remove all checks.
22706         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
22707         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
22708         gl_thread_self): Remove definitions. Include glthread/thread.h and
22709         glthread/yield.h instead.
22710         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
22711         additional NULL argument to gl_thread_join.
22712
22713 2008-09-30  Bruno Haible  <bruno@clisp.org>
22714
22715         Fix the Win32 implementation of the 'thread' module.
22716         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
22717         pointer type.
22718         (gl_thread_self): Invoke gl_thread_self_func.
22719         (gl_thread_self_func): New declaration.
22720         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
22721         (do_init_self_key, init_self_key): New functions.
22722         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
22723         Remove some fields.
22724         (running_threads, running_lock): Remove variables.
22725         (get_current_thread_handle): New function.
22726         (gl_thread_self_func, wrapper_func, glthread_create_func,
22727         glthread_join_func, gl_thread_exit_func): Largely rewritten and
22728         simplified.
22729
22730 2008-09-30  Bruno Haible  <bruno@clisp.org>
22731
22732         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
22733         files.
22734
22735 2008-09-30  Jim Meyering  <meyering@redhat.com>
22736
22737         fts.m4: correct the test for statfs.f_type
22738         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
22739         when checking for statfs.f_type.
22740
22741 2008-09-15  Simon Josefsson  <simon@josefsson.org>
22742
22743         tests: avoid some compiler warnings
22744         * tests/test-memchr.c (main): Pass NULL indirectly.
22745         * tests/test-getdate.c (main): Remove unused variable 'ret'.
22746
22747 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
22748
22749         getdate.y: disallow countable dayshifts like "4 yesterday ago"
22750         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
22751         exactly specified dayshifts.
22752         (dayshift): New rule.
22753         (rel): Add dayshift.
22754         (relative_time_table) [tomorrow, yesterday, today, now]:
22755         Use tDAY_SHIFT in place of tDAY_UNIT.
22756         * tests/test-getdate.c: Add tests for now-disallowed countable
22757         dayshifts, e.g., "4 yesterday ago".
22758
22759 2008-09-29  Bruno Haible  <bruno@clisp.org>
22760
22761         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
22762         * tests/test-posix_spawn1.in.sh: Renamed from
22763         tests/test-posix_spawn.in.sh.
22764         * tests/test-posix_spawn2.c: New file.
22765         * tests/test-posix_spawn2.in.sh: New file.
22766         * modules/posix_spawnp-tests (Files): Update.
22767         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
22768
22769 2008-09-29  Bruno Haible  <bruno@clisp.org>
22770
22771         Propagate effects of putenv/setenv/unsetenv to child processes.
22772         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
22773         * lib/pipe.c (create_pipe): Likewise.
22774
22775 2008-09-29  Bruno Haible  <bruno@clisp.org>
22776
22777         Enable use of shell scripts as executables in mingw.
22778         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
22779         run the program as a shell script.
22780         * lib/pipe.c (create_pipe): Likewise.
22781         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
22782         resulting array.
22783
22784 2008-09-29  Eric Blake  <ebb9@byu.net>
22785
22786         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
22787
22788 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
22789
22790         * doc/posix-functions/accept.texi: Update mingw problems.
22791         * doc/posix-functions/bind.texi: Update mingw problems.
22792         * doc/posix-functions/close.texi: Update mingw problems.
22793         * doc/posix-functions/connect.texi: Update mingw problems.
22794         * doc/posix-functions/getpeername.texi: Update mingw problems.
22795         * doc/posix-functions/getsockname.texi: Update mingw problems.
22796         * doc/posix-functions/getsockopt.texi: Update mingw problems.
22797         * doc/posix-functions/ioctl.texi: Update mingw problems.
22798         * doc/posix-functions/listen.texi: Update mingw problems.
22799         * doc/posix-functions/recv.texi: Update mingw problems.
22800         * doc/posix-functions/recvfrom.texi: Update mingw problems.
22801         * doc/posix-functions/select.texi: Update mingw problems.
22802         * doc/posix-functions/send.texi: Update mingw problems.
22803         * doc/posix-functions/sendto.texi: Update mingw problems.
22804         * doc/posix-functions/setsockopt.texi: Update mingw problems.
22805         * doc/posix-functions/socket.texi: Update mingw problems.
22806
22807 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
22808             Bruno Haible  <bruno@clisp.org>
22809
22810         * lib/sys_select.in.h: Include sys/time.h.
22811         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
22812         * modules/sys_select: Depend on sys_time.
22813         * tests/test-sys_select.c: Test that sys/select.h defines struct
22814         timeval fully.
22815
22816 2008-09-29  Bruno Haible  <bruno@clisp.org>
22817
22818         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
22819         * lib/sys_select.in.h: Likewise.
22820
22821 2008-09-29  Bruno Haible  <bruno@clisp.org>
22822
22823         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
22824
22825 2008-09-29  Bruno Haible  <bruno@clisp.org>
22826
22827         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
22828         Set LIBSOCKET instead of augmenting LIBS.
22829         * modules/sockets (Link): New section.
22830         * modules/sockets-tests (test_sockets_LDADD): New variable.
22831         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
22832         * modules/poll-tests (test_poll_LDADD): New variable.
22833         * NEWS: Document the change.
22834
22835 2008-09-29  Bruno Haible  <bruno@clisp.org>
22836
22837         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
22838         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
22839         ARPA_INET_H directly.
22840         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
22841
22842 2008-09-28  Bruno Haible  <bruno@clisp.org>
22843
22844         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
22845         from gl_HEADER_SYS_SOCKET.
22846         (gl_HEADER_SYS_SOCKET): Invoke it.
22847         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22848
22849 2008-09-28  Bruno Haible  <bruno@clisp.org>
22850
22851         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
22852         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
22853         Needed on OSF/1 4.0.
22854
22855 2008-09-28  Bruno Haible  <bruno@clisp.org>
22856
22857         Override open more carefully.
22858         * lib/open.c (orig_open): New function.
22859         (rpl_open): Use orig_open instead of open.
22860         * lib/fcntl.in.h: Add special invocation convention.
22861         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
22862         (gl_FUNC_OPEN): Invoke it.
22863
22864         Override freopen more carefully.
22865         * lib/freopen.c (orig_freopen): New function.
22866         (rpl_freopen): Use orig_freopen instead of freopen.
22867         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
22868         (gl_FUNC_FREOPEN): Invoke it.
22869
22870         Override fopen more carefully.
22871         * lib/fopen.c (orig_fopen): New function.
22872         (rpl_fopen): Use orig_fopen instead of fopen.
22873         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
22874         (gl_FUNC_FOPEN): Invoke it.
22875         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
22876
22877 2008-09-28  Bruno Haible  <bruno@clisp.org>
22878
22879         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
22880         SIGPIPE.
22881
22882 2008-09-28  Bruno Haible  <bruno@clisp.org>
22883
22884         * tests/test-sigaction.c (handler, main): Disable the check whether
22885         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
22886         glibc systems with LinuxThreads.
22887
22888 2008-09-28  Bruno Haible  <bruno@clisp.org>
22889
22890         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
22891
22892         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
22893         with AIX xlc.
22894         * lib/fcntl.in.h (open): Likewise.
22895         Reported by Rainer Tammer <tammer@tammer.net>.
22896
22897 2008-09-28  Bruno Haible  <bruno@clisp.org>
22898
22899         * modules/posix_spawnp-tests: New file.
22900         * tests/test-posix_spawn.c: New file.
22901         * tests/test-posix_spawn.in.sh: New file.
22902
22903         New module 'posix_spawnp'.
22904         * modules/posix_spawnp: New file.
22905         * lib/spawnp.c: New file, from GNU libc with modifications.
22906         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
22907
22908         New module 'posix_spawn'.
22909         * modules/posix_spawn: New file.
22910         * lib/spawn.c: New file, from GNU libc with modifications.
22911         * doc/posix-functions/posix_spawn.texi: Mention the new module.
22912
22913         New module 'posix_spawnattr_destroy'.
22914         * modules/posix_spawnattr_destroy: New file.
22915         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
22916         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
22917         module.
22918
22919         New module 'posix_spawnattr_setsigmask'.
22920         * modules/posix_spawnattr_setsigmask: New file.
22921         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
22922         modifications.
22923         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
22924         new module.
22925
22926         New module 'posix_spawnattr_getsigmask'.
22927         * modules/posix_spawnattr_getsigmask: New file.
22928         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
22929         modifications.
22930         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
22931         new module.
22932
22933         New module 'posix_spawnattr_setsigdefault'.
22934         * modules/posix_spawnattr_setsigdefault: New file.
22935         * lib/spawnattr_setdefault.c: New file, from GNU libc with
22936         modifications.
22937         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
22938         new module.
22939
22940         New module 'posix_spawnattr_getsigdefault'.
22941         * modules/posix_spawnattr_getsigdefault: New file.
22942         * lib/spawnattr_getdefault.c: New file, from GNU libc with
22943         modifications.
22944         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
22945         new module.
22946
22947         New module 'posix_spawnattr_setschedpolicy'.
22948         * modules/posix_spawnattr_setschedpolicy: New file.
22949         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
22950         modifications.
22951         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
22952         new module.
22953
22954         New module 'posix_spawnattr_getschedpolicy'.
22955         * modules/posix_spawnattr_getschedpolicy: New file.
22956         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
22957         modifications.
22958         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
22959         new module.
22960
22961         New module 'posix_spawnattr_setschedparam'.
22962         * modules/posix_spawnattr_setschedparam: New file.
22963         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
22964         modifications.
22965         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
22966         new module.
22967
22968         New module 'posix_spawnattr_getschedparam'.
22969         * modules/posix_spawnattr_getschedparam: New file.
22970         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
22971         modifications.
22972         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
22973         new module.
22974
22975         New module 'posix_spawnattr_setpgroup'.
22976         * modules/posix_spawnattr_setpgroup: New file.
22977         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
22978         modifications.
22979         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
22980         module.
22981
22982         New module 'posix_spawnattr_getpgroup'.
22983         * modules/posix_spawnattr_getpgroup: New file.
22984         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
22985         modifications.
22986         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
22987         module.
22988
22989         New module 'posix_spawnattr_setflags'.
22990         * modules/posix_spawnattr_setflags: New file.
22991         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
22992         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
22993         module.
22994
22995         New module 'posix_spawnattr_getflags'.
22996         * modules/posix_spawnattr_getflags: New file.
22997         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
22998         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
22999         module.
23000
23001         New module 'posix_spawnattr_init'.
23002         * modules/posix_spawnattr_init: New file.
23003         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
23004         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
23005         module.
23006
23007         New module 'posix_spawn_file_actions_destroy'.
23008         * modules/posix_spawn_file_actions_destroy: New file.
23009         * lib/spawn_faction_destroy.c: New file, from GNU libc with
23010         modifications.
23011         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
23012         the new module.
23013
23014         New module 'posix_spawn_file_actions_addopen'.
23015         * modules/posix_spawn_file_actions_addopen: New file.
23016         * lib/spawn_faction_addopen.c: New file, from GNU libc with
23017         modifications.
23018         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
23019         the new module.
23020
23021         New module 'posix_spawn_file_actions_adddup2'.
23022         * modules/posix_spawn_file_actions_adddup2: New file.
23023         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
23024         modifications.
23025         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
23026         the new module.
23027
23028         New module 'posix_spawn_file_actions_addclose'.
23029         * modules/posix_spawn_file_actions_addclose: New file.
23030         * lib/spawn_faction_addclose.c: New file, from GNU libc with
23031         modifications.
23032         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
23033         the new module.
23034
23035         New module 'posix_spawn_file_actions_init'.
23036         * modules/posix_spawn_file_actions_init: New file.
23037         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
23038         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
23039         new module.
23040
23041         New module 'posix_spawn-internal'.
23042         * modules/posix_spawn-internal: New file.
23043         * lib/spawn_int.h: New file, from GNU libc with modifications.
23044         * lib/spawni.c: New file, from GNU libc with modifications.
23045         * m4/posix_spawn.m4: New file.
23046
23047         New module 'spawn'.
23048         * modules/spawn: New file.
23049         * lib/spawn.in.h: New file, from GNU libc with modifications.
23050         * m4/spawn_h.m4: New file.
23051         * doc/posix-headers/spawn.texi: Mention the new module.
23052
23053 2008-09-28  Bruno Haible  <bruno@clisp.org>
23054
23055         * modules/sched-tests: New file.
23056         * tests/test-sched.c: New file.
23057
23058         New module 'sched'.
23059         * modules/sched: New file.
23060         * lib/sched.in.h: New file.
23061         * m4/sched_h.m4: New file.
23062         * doc/posix-headers/sched.texi: Mention the new module.
23063
23064 2008-09-27  Eric Blake  <ebb9@byu.net>
23065
23066         Fix previous patch, and tweak references to $0.
23067         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
23068         (func_version, func_gnulib_dir): Don't call this program
23069         gnulib-tool.
23070         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
23071         with using $0 in function.
23072         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
23073         (func_fatal_error): Reuse the name the user invoked us with.
23074
23075 2008-09-27  Bruno Haible  <bruno@clisp.org>
23076
23077         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
23078         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
23079         (gl_ICONV_H): Not here.
23080         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
23081         instead of assigning ICONV_H directly.
23082
23083         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
23084         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
23085         WCHAR_H directly.
23086
23087 2008-09-27  Bruno Haible  <bruno@clisp.org>
23088
23089         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
23090         * modules/arpa_inet (Depends-on): Add link-warning.
23091         (Makefile.am): Insert the definition of GL_LINK-WARNING.
23092         * modules/unistd (Makefile.am): Likewise.
23093
23094 2008-09-26  Bruno Haible  <bruno@clisp.org>
23095
23096         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
23097         variables.
23098         (func_version): Essentially copied from gnulib-tool.
23099         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
23100         func_readlink): Copied from gnulib-tool.
23101
23102 2008-09-26  Bruno Haible  <bruno@clisp.org>
23103
23104         * gnulib-tool (func_version): Change directory to $gnulib_dir before
23105         invoking git-version-gen.
23106
23107 2008-09-26  Bruno Haible  <bruno@clisp.org>
23108
23109         * posix-modules: Update to directory names changed on 2008-01-19.
23110         Remove commas in output before splitting into words. No more need to
23111         avoid 'ftruncate' since 2007-02-19.
23112
23113 2008-09-26  Bruno Haible  <bruno@clisp.org>
23114
23115         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
23116
23117 2008-09-26  Bruno Haible  <bruno@clisp.org>
23118
23119         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
23120         * modules/fwriteerror (Depends-on): Add errno.
23121
23122 2008-09-26  Bruno Haible  <bruno@clisp.org>
23123
23124         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
23125         * tests/test-vc-list-files-cvs.sh: Likewise.
23126
23127 2008-09-26  Bruno Haible  <bruno@clisp.org>
23128
23129         * doc/posix-headers/sys_resource.texi: Reorder items.
23130
23131 2008-09-26  Jim Meyering  <meyering@redhat.com>
23132
23133         fts: tweak inode comparison function
23134         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
23135         inode numbers, as documented.
23136
23137         fts: sort dirent entries on inode number before traversing
23138         This avoids a quadratic, seek-related performance penalty when
23139         operating on a directory containing many entries (measurable at 10k;
23140         3.5 hours at 2 million entries with a cold cache) on certain types
23141         of file systems, including ext3 and ext4, but not tmpfs.
23142         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
23143         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
23144         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
23145         (fs_handles_readdir_ordered_dirents_efficiently): New function.
23146         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
23147         (fts_build): Set the stat.st_ino member from D_INO.
23148         If it is likely to be useful, sort dirent entries on inode number.
23149
23150         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
23151         and the struct statfs.f_type member.
23152         * modules/fts (Depends-on): Add d-ino.
23153
23154 2008-09-26  Bruno Haible  <bruno@clisp.org>
23155
23156         * modules/sigpipe-die (Depends-on): Add sigpipe.
23157
23158         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
23159         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
23160         and GNULIB_STDIO_H_SIGPIPE are set.
23161         * lib/stdio-write.c: New file.
23162         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
23163         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
23164         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
23165         REPLACE_STDIO_WRITE_FUNCS.
23166         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
23167         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
23168         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
23169         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
23170         * modules/stdio (Files): Add lib/stdio-write.c.
23171         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
23172         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
23173         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
23174         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
23175         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
23176         REPLACE_FPRINTF_POSIX.
23177         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
23178         REPLACE_PRINTF_POSIX.
23179         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
23180         REPLACE_VFPRINTF_POSIX.
23181         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
23182         REPLACE_VPRINTF_POSIX.
23183         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
23184         SIGPIPE issue.
23185         * doc/posix-functions/fputc.texi: Likewise.
23186         * doc/posix-functions/fputs.texi: Likewise.
23187         * doc/posix-functions/fwrite.texi: Likewise.
23188         * doc/posix-functions/printf.texi: Likewise.
23189         * doc/posix-functions/putc.texi: Likewise.
23190         * doc/posix-functions/putchar.texi: Likewise.
23191         * doc/posix-functions/puts.texi: Likewise.
23192         * doc/posix-functions/vfprintf.texi: Likewise.
23193         * doc/posix-functions/vprintf.texi: Likewise.
23194
23195         * modules/safe-write (Depends-on): Add write.
23196
23197         * modules/sigpipe-tests: New file.
23198         * tests/test-sigpipe.c: New file.
23199         * tests/test-sigpipe.sh: New file.
23200
23201         * modules/write: New file.
23202         * lib/unistd.in.h: Include <sys/types.h>.
23203         (write): New declaration.
23204         * lib/write.c: New file.
23205         * m4/write.m4: New file.
23206         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23207         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
23208         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
23209         GNULIB_WRITE, REPLACE_WRITE.
23210         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
23211         and the SIGPIPE issue.
23212
23213         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
23214         (raise): New declaration.
23215         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
23216         (ext_signal): New function.
23217         (rpl_raise): New function.
23218         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
23219         GNULIB_SIGNAL_H_SIGPIPE.
23220         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
23221         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
23222
23223         * modules/sigpipe: New file.
23224         * m4/sigpipe.m4: New file.
23225
23226 2008-09-25  Derek Price  <derek@ximbiot.com>
23227             Bruno Haible  <bruno@clisp.org>
23228
23229         * gnulib-tool (func_import): Report all license incompatibilities, not
23230         just the first one.
23231
23232 2008-09-25  Bruno Haible  <bruno@clisp.org>
23233
23234         * gnulib-tool (func_import): When computing the edits, consider not
23235         only the Makefile.ams that exist but also those that will be generated.
23236
23237 2008-09-25  Simon Josefsson  <simon@josefsson.org>
23238
23239         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
23240         fixes gnulib-tool --test warning about duplicate dependency.
23241
23242 2008-09-25  Bruno Haible  <bruno@clisp.org>
23243
23244         * gnulib-tool: Don't ask the user to perform edits in the generated
23245         Makefile.ams.
23246         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
23247         apply to the Makefile.am being generated.
23248         (func_emit_tests_Makefile_am): Execute edits that apply to the
23249         Makefile.am being generated.
23250         (func_import): Setup list of Makefile.am edits before emitting the
23251         Makefile.ams, not at the end.
23252         (func_create_testdir): Update.
23253         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
23254
23255 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23256
23257         * gnulib-tool (func_import): Store the --tests-base option in the
23258         comment in gnulib-cache.m4.
23259
23260 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
23261
23262         * NEWS: Document increased portability that sys_select now provides.
23263
23264         * lib/sys_select.in.h: Install select wrapper.
23265         * lib/sys_socket.in.h: Use more descriptive name when there is no
23266         select wrapper.
23267         * lib/winsock-select.c: New.
23268         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
23269         Require gl_HEADER_SYS_SOCKET.
23270         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
23271         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
23272         * tests/test-sys_select.c: Add functional tests.
23273
23274 2008-09-24  Eric Blake  <ebb9@byu.net>
23275
23276         open, fopen: close fd leak in last patch
23277         * lib/open.c (rpl_open): Close fd before returning error.
23278         * lib/fopen.c (rpl_fopen): Close fd before returning error.
23279         * doc/posix-functions/open.texi (open): Document that Irix also
23280         has the bug.
23281         * doc/posix-functions/fopen.texi (fopen): Likewise.
23282         Reported by Paolo Bonzini.
23283
23284 2008-09-24  Bruno Haible  <bruno@clisp.org>
23285
23286         Ensure that a filename ending in a slash cannot be used to access a
23287         non-directory.
23288         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
23289         to check whether it's really a directory.
23290         * lib/fopen.c: Include fcntl.h, unistd.h.
23291         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
23292         and fdopen().
23293         * modules/fopen (Depends-on): Add unistd.
23294         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
23295         * tests/test-fopen.c (main): Likewise.
23296         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
23297         * doc/posix-functions/fopen.texi: Likewise.
23298         Reported by Eric Blake.
23299
23300 2008-09-23  Eric Blake  <ebb9@byu.net>
23301
23302         c-stack: avoid compiler optimizations when provoking overflow
23303         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
23304         recursion harder to optimize, to ensure a stack overflow occurs.
23305         * tests/test-c-stack.c (recurse): Likewise.
23306         Borrowed from libsigsegv.
23307
23308         c-stack: work around Irix sigaltstack bug
23309         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
23310         whether sigaltstack uses wrong end of stack_t (copied in part from
23311         libsigsegv).
23312         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
23313         Irix bug, without requiring an over-allocation.
23314         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
23315         bug.
23316
23317         fopen: document mingw bug on directories
23318         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
23319         not allowing a stream visiting a directory, even though reading
23320         from such a stream is not portable.
23321
23322 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
23323
23324         * lib/poll.c: Rewrite.
23325         * modules/poll: Depend on alloca.
23326
23327 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
23328
23329         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
23330         instead define prototypes for a full set of wrappers.  Ensure
23331         that Cygwin does not use the compatibility code, which is only
23332         for MinGW.
23333         * lib/winsock.c: New.
23334         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
23335         * modules/sys_socket: Add lib/winsock.c.
23336
23337         * modules/poll-tests: Add errno and perror.
23338         * tests/test-poll.c: Use ioctl, not ioctlsocket.
23339
23340 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
23341
23342         * tests/test-poll.c: Downgrade minimum needed Winsock version.
23343
23344 2008-09-23  Bruno Haible  <bruno@clisp.org>
23345
23346         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
23347         * doc/glibc-functions/*: Likewise.
23348
23349 2008-09-23  Simon Josefsson  <simon@josefsson.org>
23350
23351         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
23352         success.
23353
23354 2008-09-22  Eric Blake  <ebb9@byu.net>
23355             Bruno Haible  <bruno@clisp.org>
23356
23357         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
23358         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
23359         supply %A but mishandle pseudo-NaN.
23360         Reported by Simon Josefsson.
23361
23362 2008-09-21  Bruno Haible  <bruno@clisp.org>
23363
23364         * tests/test-lock.c (main): Tweak skip message.
23365         * tests/test-tls.c (main): Likewise.
23366
23367 2008-09-21  Bruno Haible  <bruno@clisp.org>
23368
23369         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
23370         whether 'struct sigaction' has sa_sigaction here...
23371         (gl_PREREQ_SIG_HANDLER_H): ... not here.
23372         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
23373
23374 2008-09-21  Bruno Haible  <bruno@clisp.org>
23375
23376         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
23377         section.
23378         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
23379         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
23380         the new section.
23381         (Support for obsolete systems lacking POSIX:2001): New section.
23382         (String handling <string.h>): Move strdup to the new section.
23383         Suggested by Simon Josefsson and Paolo Bonzini.
23384
23385 2008-09-21  Bruno Haible  <bruno@clisp.org>
23386
23387         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
23388         exponents in %e and %g results on 'long double'. Needed for mingw's
23389         improved *printf functions.
23390         * tests/test-vasprintf-posix.c (test_function): Likewise.
23391         * tests/test-snprintf-posix.h (test_function): Likewise.
23392         * tests/test-sprintf-posix.h (test_function): Likewise.
23393         Reported by Eric Blake.
23394
23395 2008-09-21  Bruno Haible  <bruno@clisp.org>
23396
23397         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
23398         * tests/test-sprintf-posix.h (test_function): Likewise.
23399
23400 2008-09-21  Bruno Haible  <bruno@clisp.org>
23401
23402         * modules/getpass (Depends-on): Add strdup-posix.
23403
23404         New module 'strdup-posix'.
23405         * modules/strdup-posix: New file.
23406         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
23407         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
23408         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23409         REPLACE_STRDUP.
23410         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
23411         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
23412         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23413         strdup-posix.
23414
23415         * modules/strdup (Depends-on): Remove malloc-posix.
23416
23417 2008-09-20  Bruno Haible  <bruno@clisp.org>
23418
23419         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
23420         Wildenhues.
23421
23422 2008-09-20  Bruno Haible  <bruno@clisp.org>
23423
23424         Ensure that wint_t gets defined on IRIX 5.3.
23425         * lib/wchar.in.h (wint_t): Define if not defined by the system.
23426         * lib/wctype.in.h (wint_t): Likewise.
23427         (__wctype_wint_t): Remove type.
23428         (isw*): Use wint_t instead of __wctype_wint_t.
23429         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
23430         * modules/wchar (Files): Add m4/wint_t.m4.
23431         (Makefile.am): Substitute HAVE_WINT_T.
23432         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
23433         * tests/test-wctype.c: Check that wint_t is defined.
23434         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
23435         * doc/posix-headers/wctype.texi: Likewise.
23436         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23437
23438 2008-09-18  Bruno Haible  <bruno@clisp.org>
23439
23440         * gnulib-tool (func_exit): Update comment.
23441
23442 2008-09-18  Simon Josefsson  <simon@josefsson.org>
23443
23444         * modules/getaddrinfo (Depends-on): Remove strdup, this module
23445         assumes strdup exists and does not depend on strdup to return
23446         ENOMEM on out of memory conditions.
23447
23448 2008-09-18  Bruno Haible  <bruno@clisp.org>
23449
23450         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
23451         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
23452         digits for the exponent.
23453
23454 2008-09-18  Jim Meyering  <meyering@redhat.com>
23455             Bruno Haible  <bruno@clisp.org>
23456
23457         * lib/vasnprintf.c (decimal_point_char): Define also if
23458         NEED_PRINTF_INFINITE_LONG_DOUBLE.
23459
23460 2008-09-16  Bruno Haible  <bruno@clisp.org>
23461         and Eric Blake  <ebb9@byu.net>
23462
23463         vasnprintf: support Irix 5.3
23464         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
23465         that mishandle long double infinity.
23466         Reported by Tom G. Christensen.
23467
23468 2008-09-16  Bruno Haible  <bruno@clisp.org>
23469
23470         * doc/glibc-functions/scandir.texi: Mention the function is missing on
23471         Solaris 9.
23472         * doc/glibc-functions/alphasort.texi: Likewise.
23473         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
23474
23475 2008-09-16  Jim Meyering  <meyering@redhat.com>
23476
23477         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
23478         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
23479         a umask modification leak out of a subshell.  Otherwise, the
23480         opensolaris /bin/sh would be accepted and thus cause unwarranted
23481         failures in the coreutils test suite.
23482
23483 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
23484
23485         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
23486         to succeed.
23487
23488 2008-09-16  Jim Meyering  <meyering@redhat.com>
23489
23490         avoid spurious test failure when library is built without ACL support
23491         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
23492         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
23493         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
23494         * tests/test-copy-acl.sh: Likewise.
23495
23496 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23497
23498         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
23499         based on character occurrence counts.
23500
23501 2008-09-15  Eric Blake  <ebb9@byu.net>
23502
23503         tests: avoid some compiler warnings
23504         * tests/test-memchr.c (main): Pass NULL indirectly.
23505         * tests/test-closein.c (main): Avoid unused variable.
23506
23507 2008-09-15  Bruno Haible  <bruno@clisp.org>
23508
23509         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
23510         are missing on OpenBSD 4.0 individually.
23511         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
23512
23513 2008-09-15  Bruno Haible  <bruno@clisp.org>
23514
23515         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
23516         * doc/posix-functions/strerror.texi: Mention also Cygwin.
23517         * doc/posix-functions/perror.texi: Likewise.
23518         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
23519         is missing.
23520         Reported by Eric Blake.
23521
23522         * lib/errno.in.h: Use replacement values >= 2000.
23523         Reported by Eric Blake.
23524
23525 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23526
23527         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
23528         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
23529         limit.
23530         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
23531         compareseq was aborted.
23532
23533 2008-09-14  Bruno Haible  <bruno@clisp.org>
23534
23535         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
23536         yvec_edit_count.
23537         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
23538         (fstrcmp_bounded): Simplify result computation accordingly.
23539
23540 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23541
23542         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
23543         (fstrcmp): Define in terms of fstrcmp_bounded.
23544         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
23545         lower_bound argument.
23546         Return quickly if the result is certainly < lower_bound.
23547         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
23548
23549 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23550
23551         * lib/diffseq.h (EARLY_ABORT): New macro.
23552         (compareseq): Change return type to bool. Return true when EARLY_ABORT
23553         evaluates to true.
23554
23555 2008-09-14  Bruno Haible  <bruno@clisp.org>
23556
23557         * modules/perror-tests: New file.
23558         * tests/test-perror.sh: New file.
23559         * tests/test-perror.c: New file.
23560
23561         New module 'perror'.
23562         * lib/stdio.in.h (perror): New declaration.
23563         * lib/perror.c: New file.
23564         * m4/perror.m4: New file.
23565         * modules/perror: New file.
23566         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
23567         * doc/posix-functions/perror.texi: Mention the perror module.
23568         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
23569         REPLACE_PERROR.
23570         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
23571         REPLACE_PERROR.
23572
23573 2008-09-14  Bruno Haible  <bruno@clisp.org>
23574
23575         * modules/stdio (Makefile.am): Reorder to match the order in
23576         lib/stdio.in.h.
23577         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23578
23579 2008-09-13  Bruno Haible  <bruno@clisp.org>
23580
23581         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
23582
23583 2008-09-13  Bruno Haible  <bruno@clisp.org>
23584
23585         Extend strerror to cover the added errno values.
23586         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
23587         (rpl_strerror): Provide error messages for the added errno values and
23588         for the WSA* values.
23589         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
23590         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
23591         strerror.
23592         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
23593         * modules/strerror (Depends-on): Add errno.
23594         * doc/posix-functions/strerror.texi: Document the change.
23595         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
23596         and EOVERFLOW.
23597
23598 2008-09-13  Bruno Haible  <bruno@clisp.org>
23599
23600         * modules/EOVERFLOW: Remove file.
23601         * m4/eoverflow.m4: Remove file.
23602         * modules/EOVERFLOW-tests: Remove file.
23603         * tests/test-EOVERFLOW.c: Remove file.
23604         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
23605         * modules/ftell (Depends-on): Likewise.
23606         * modules/getdelim (Depends-on): Likewise.
23607         * modules/getugroups (Depends-on): Likewise.
23608         * modules/poll (Depends-on): Likewise.
23609         * modules/snprintf (Depends-on): Likewise.
23610         * modules/sprintf-posix (Depends-on): Likewise.
23611         * modules/vasnprintf (Depends-on): Likewise.
23612         * modules/vasprintf (Depends-on): Likewise.
23613         * modules/vfprintf-posix (Depends-on): Likewise.
23614         * modules/vsnprintf (Depends-on): Likewise.
23615         * modules/vsprintf-posix (Depends-on): Likewise.
23616         * modules/xvasprintf (Depends-on): Likewise.
23617         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
23618         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
23619         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
23620         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
23621         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
23622         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
23623         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
23624         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
23625         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
23626         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
23627         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
23628         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
23629         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
23630         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
23631         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
23632         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
23633         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
23634         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
23635         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
23636         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
23637         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
23638         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
23639         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
23640         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
23641         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
23642         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
23643         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
23644         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
23645         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
23646         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
23647         * MODULES.html.sh: Remove EOVERFLOW.
23648         * NEWS: Mention the change.
23649
23650 2008-09-13  Bruno Haible  <bruno@clisp.org>
23651
23652         * modules/errno-tests: New file.
23653         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
23654
23655         * lib/errno.in.h: New file.
23656         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
23657         * modules/errno: New file.
23658         * doc/posix-headers/errno.texi: Update documentation.
23659         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
23660
23661 2008-09-13  Bruno Haible  <bruno@clisp.org>
23662
23663         * tests/test-poll.c: Use #if for native Windows, rather than testing
23664         __MSVCRT__.
23665
23666 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23667             Bruno Haible  <bruno@clisp.org>
23668
23669         * lib/glob.c: Don't include <pwd.h> on native Windows.
23670         (WINDOWS32): New macro.
23671         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
23672
23673 2008-09-13  Bruno Haible  <bruno@clisp.org>
23674
23675         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
23676         (ETIMEDOUT): Remove macro.
23677         (glthread_cond_timedwait_multithreaded): New declaration.
23678         (glthread_cond_timedwait): Use it.
23679         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
23680         (glthread_cond_timedwait_multithreaded): New function.
23681
23682 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
23683
23684         * modules/poll-tests: Do not check for io.h.
23685         * tests/test-poll.c: Check for __MSVCRT__ instead.
23686
23687 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
23688
23689         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
23690         * modules/poll-tests: Add inet_pton, stdbool, sockets.
23691         * tests/test-poll.c: Use them.  Use _pipe on Windows.
23692
23693 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
23694
23695         * modules/poll-tests: New.
23696         * tests/test-poll.c: New.
23697
23698 2008-09-12  Eric Blake  <ebb9@byu.net>
23699
23700         frexp: test for NetBSD failure on -0.0
23701         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
23702         not all, bugs from NetBSD 3.0 have been fixed.
23703         * doc/posix-functions/frexp.texi (frexp): Document bug.
23704         Reported by Thomas Klausner.
23705
23706         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
23707         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
23708         literal -0.0.
23709         Reported by Jonathan C. Patschke <jp@centtech.com>.
23710
23711 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23712
23713         * lib/glthread/cond.h: Use dummy implementation also if
23714         USE_WIN32_THREADS.
23715
23716 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23717
23718         * modules/fnmatch-posix (License): Change to LGPLv2+.
23719         * modules/fnmatch-gnu (License): Likewise.
23720
23721 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23722
23723         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
23724
23725 2008-09-11  Jim Meyering  <meyering@redhat.com>
23726
23727         * users.txt: Add gtk-vnc.
23728
23729 2008-09-08  Simon Josefsson  <simon@josefsson.org>
23730
23731         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
23732         rotate amounts.
23733
23734         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
23735         required for 16-bit and 8-bit rotates.
23736         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
23737         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
23738         UINT8_MAX instead of hard-coded constants.
23739         Suggested by Paul Eggert.
23740
23741 2008-09-07  Bruno Haible  <bruno@clisp.org>
23742
23743         * tests/test-striconveh.c (main): Check behaviour when converting from
23744         UTF-7.
23745
23746         Make striconveh work better with stateful encodings.
23747         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
23748         that iconv does not increment the inptr when returning -1/EINVAL.
23749
23750 2008-09-07  Bruno Haible  <bruno@clisp.org>
23751
23752         * build-aux/config.rpath: Update according to libtool-2.2.6.
23753         * build-aux/config.libpath: Likewise.
23754
23755 2008-09-06  Bruno Haible  <bruno@clisp.org>
23756
23757         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
23758         * lib/freadptr.c (freadptr): Likewise.
23759         * lib/freadseek.c (freadptrinc): Likewise.
23760         Reported by Simon Josefsson.
23761
23762 2008-09-06  Bruno Haible  <bruno@clisp.org>
23763
23764         * modules/freadptr (License): Change to LGPLv2+.
23765         * modules/freadseek (License): Likewise.
23766         Suggested by Eric Blake.
23767
23768         * modules/memchr2 (License): Change to LGPLv2+.
23769         Approved by Eric Blake.
23770
23771 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23772             Bruno Haible  <bruno@clisp.org>
23773
23774         Make gnulib-tool work with native 'sed' on AIX.
23775         * gnulib-tool (sed_noop): New variable.
23776         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
23777         func_add_or_update, func_create_testdir): Use it to initialize sed
23778         script variables.
23779         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23780
23781 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
23782             Bruno Haible  <bruno@clisp.org>
23783
23784         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
23785         also works after #include directives.
23786
23787 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
23788
23789         getdate.y: reject an out-of-range timezone value
23790         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
23791         the range [-24...+24].  When specified with only one or two digits,
23792         * tests/test-getdate.c: Tests for the fix.
23793         * doc/getdate.texi: Document this change.
23794
23795 2008-09-03  Bruno Haible  <bruno@clisp.org>
23796
23797         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
23798
23799 2008-09-02  Simon Josefsson  <simon@josefsson.org>
23800
23801         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
23802         <bruce.korb@gmail.com> with ideas from Ben Pfaff
23803         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
23804         Blake <ebb9@byu.net>.
23805
23806         * tests/test-bitrotate.c: Add more test vectors.
23807
23808 2008-09-02  Eric Blake  <ebb9@byu.net>
23809
23810         vasnprintf-posix: handle large precision via %.*d
23811         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
23812         when handling it ourselves.
23813         * tests/test-vasnprintf-posix.c (test_function): Add test.
23814         * tests/test-snprintf-posix.h (test_function): Likewise.
23815         * tests/test-sprintf-posix.h (test_function): Likewise.
23816         * tests/test-vasprintf-posix.c (test_function): Likewise.
23817         Reported by Alain Guibert.
23818
23819 2008-09-01  Eric Blake  <ebb9@byu.net>
23820
23821         c-stack: make configure-time check more robust
23822         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
23823         successful sigaction call.
23824         Reported by Tom G. Christensen.
23825
23826 2008-09-01  Bruno Haible  <bruno@clisp.org>
23827
23828         New module 'findprog-lgpl'.
23829         * modules/findprog-lgpl: New file.
23830         * lib/findprog-lgpl.c: New file.
23831         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
23832         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
23833         to decide whether to use strdup or xstrdup, concatenated_filename or
23834         xconcatenated_filename.
23835
23836 2008-09-01  Bruno Haible  <bruno@clisp.org>
23837
23838         Split module 'concat-filename' into 'concat-filename' (LGPL) and
23839         'xconcat-filename' (GPL).
23840         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
23841         (License): Change to LGPLv2+.
23842         * modules/xconcat-filename: New file.
23843         * lib/concat-filename.h (concatenated_filename): Change specification.
23844         (xconcatenated_filename): New declaration.
23845         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
23846         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
23847         memory situations.
23848         * lib/xconcat-filename.c: New file.
23849         * NEWS: Mention the change.
23850         * lib/findprog.c: Include concat-filename.h, not filename.h.
23851         (find_in_path): Use xconcatenated_filename instead of
23852         concatenated_filename.
23853         * lib/javacomp.c: Include concat-filename.h, not filename.h.
23854         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
23855         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
23856         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
23857         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
23858         instead of concatenated_filename.
23859         * lib/javaexec.c: Include concat-filename.h, not filename.h.
23860         (execute_java_class): Use xconcatenated_filename instead of
23861         concatenated_filename.
23862         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
23863         * modules/javacomp (Depends-on): Likewise.
23864         * modules/javaexec (Depends-on): Likewise.
23865
23866 2008-09-01  Bruno Haible  <bruno@clisp.org>
23867
23868         Split module 'filename' into 'filename' and 'concat-filename'.
23869         * modules/filename: Keep only lib/filename.h.
23870         (License): Change to LGPLv2+.
23871         * modules/concat-filename: New file, extracted from modules/filename.
23872         * lib/filename.h (concatenated_filename): Remove declaration.
23873         * lib/concat-filename.h: New file, extracted from lib/filename.h.
23874         * lib/concat-filename.c: Include concat-filename.h.
23875         * NEWS: Mention the change.
23876
23877 2008-09-01  Simon Josefsson  <simon@josefsson.org>
23878
23879         * lib/bitrotate.h (rotl8, rotr8): Add.
23880
23881         * modules/bitrotate (configure.ac): Need
23882         AC_REQUIRE([AC_C_INLINE]).
23883         (Description): Mention stdint.h.  Reported by Bruno Haible
23884         <bruno@clisp.org>.
23885
23886         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
23887         Paolo Bonzini <bonzini@gnu.org>.
23888
23889 2008-08-31  Bruno Haible  <bruno@clisp.org>
23890
23891         Assume Solaris specific bi-arch conventions on Solaris systems.
23892         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
23893         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
23894         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
23895         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
23896         like acl_libdirstem.
23897         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
23898         acl_libdirstem.
23899         * NEWS: Mention the change.
23900         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
23901
23902 2008-08-31  Jim Meyering  <meyering@redhat.com>
23903
23904         * lib/strftime.h: Add comments describing the two added arguments.
23905
23906         remove duplicate #include directives
23907         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
23908         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
23909
23910 2008-08-31  Bruno Haible  <bruno@clisp.org>
23911
23912         New module 'sigpipe-die'.
23913         * modules/sigpipe-die: New file.
23914         * lib/sigpipe-die.h: New file.
23915         * lib/sigpipe-die.c: New file.
23916         * MODULES.html.sh (Signal handling): Add sigpipe-die.
23917
23918 2008-08-31  Bruno Haible  <bruno@clisp.org>
23919
23920         Don't override previously installed signal handlers.
23921         * lib/fatal-signal.c (saved_sigactions): New variable.
23922         (uninstall_handlers): Reset the signal to the saved handler, not
23923         to SIG_DFL (except when ignored).
23924         (install_handlers): Save the previous handlers.
23925
23926 2008-08-30  Bruno Haible  <bruno@clisp.org>
23927
23928         * gnulib-tool (func_reset_sigpipe): New function.
23929         (func_get_automake_snippet, func_modules_transitive_closure,
23930         func_import): Invoke it before a join command that reads from stdin,
23931         to avoid "echo: write error: Broken pipe" error messages on stderr.
23932         Reported by Sam Steingold <sds@gnu.org>.
23933
23934 2008-08-30  Bruno Haible  <bruno@clisp.org>
23935
23936         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
23937         Code copied from m4/open.m4.
23938         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
23939         access and the filename ends in a slash. Code copied from lib/open.c.
23940         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
23941         * tests/test-fopen.c (main): Check against bug with trailing slash.
23942
23943 2008-08-29  Bruno Haible  <bruno@clisp.org>
23944
23945         Avoid some "gcc -pedantic" warnings.
23946         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
23947         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
23948         * lib/dirent.in.h: Likewise.
23949         * lib/fcntl.in.h: Likewise.
23950         * lib/float.in.h: Likewise.
23951         * lib/iconv.in.h: Likewise.
23952         * lib/inttypes.in.h: Likewise.
23953         * lib/locale.in.h: Likewise.
23954         * lib/math.in.h: Likewise.
23955         * lib/netinet_in.in.h: Likewise.
23956         * lib/search.in.h: Likewise.
23957         * lib/signal.in.h: Likewise.
23958         * lib/stdarg.in.h: Likewise.
23959         * lib/stdint.in.h: Likewise.
23960         * lib/stdio.in.h: Likewise.
23961         * lib/stdlib.in.h: Likewise.
23962         * lib/string.in.h: Likewise.
23963         * lib/strings.in.h: Likewise.
23964         * lib/sys_select.in.h: Likewise.
23965         * lib/sys_socket.in.h: Likewise.
23966         * lib/sys_stat.in.h: Likewise.
23967         * lib/sys_time.in.h: Likewise.
23968         * lib/sysexits.in.h: Likewise.
23969         * lib/time.in.h: Likewise.
23970         * lib/unistd.in.h: Likewise.
23971         * lib/wchar.in.h: Likewise.
23972         * lib/wctype.in.h: Likewise.
23973         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
23974         * modules/fchdir (Makefile.am): Likewise.
23975         * modules/fcntl (Makefile.am): Likewise.
23976         * modules/float (Makefile.am): Likewise.
23977         * modules/iconv_open (Makefile.am): Likewise.
23978         * modules/inttypes (Makefile.am): Likewise.
23979         * modules/locale (Makefile.am): Likewise.
23980         * modules/math (Makefile.am): Likewise.
23981         * modules/netinet_in (Makefile.am): Likewise.
23982         * modules/search (Makefile.am): Likewise.
23983         * modules/signal (Makefile.am): Likewise.
23984         * modules/stdarg (Makefile.am): Likewise.
23985         * modules/stdint (Makefile.am): Likewise.
23986         * modules/stdio (Makefile.am): Likewise.
23987         * modules/stdlib (Makefile.am): Likewise.
23988         * modules/string (Makefile.am): Likewise.
23989         * modules/strings (Makefile.am): Likewise.
23990         * modules/sys_select (Makefile.am): Likewise.
23991         * modules/sys_socket (Makefile.am): Likewise.
23992         * modules/sys_stat (Makefile.am): Likewise.
23993         * modules/sys_time (Makefile.am): Likewise.
23994         * modules/sysexits (Makefile.am): Likewise.
23995         * modules/time (Makefile.am): Likewise.
23996         * modules/unistd (Makefile.am): Likewise.
23997         * modules/wchar (Makefile.am): Likewise.
23998         * modules/wctype (Makefile.am): Likewise.
23999         Reported by Reuben Thomas <rrt@sc3d.org>.
24000
24001 2008-08-29  Bruno Haible  <bruno@clisp.org>
24002
24003         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
24004         any more.
24005
24006 2008-08-29  Simon Josefsson  <simon@josefsson.org>
24007
24008         * MODULES.html.sh (Misc): Add bitrotate.
24009
24010         * modules/bitrotate: New file.
24011
24012         * lib/bitrotate.h: New file.
24013
24014         * modules/bitrotate-tests: New file.
24015
24016         * tests/test-bitrotate.c: New file.
24017
24018         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
24019         on the bitrotate module.
24020
24021         * lib/arctwo.c: Use new bitrotate module.
24022
24023 2008-08-29  Jim Meyering  <meyering@redhat.com>
24024
24025         bootstrap: merge changes from coreutils
24026         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
24027         of copied files.  Remove a kludge, now that this is fixed.
24028         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
24029         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
24030         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
24031
24032 2008-08-29  Bruno Haible  <bruno@clisp.org>
24033
24034         * MODULES.html.sh: Remove --cvs-urls option.
24035
24036 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
24037
24038         maint.mk: adjust to file name change
24039         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
24040
24041 2008-08-28  Jim Meyering  <meyering@redhat.com>
24042
24043         * modules/getndelim2 (License): Relicense to LGPLv2+.
24044         Approved by Richard Stallman for the version of 1995, and by
24045         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
24046
24047 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
24048
24049         * lib/getdelim.c (flockfile, funlockfile): Make all of them
24050         dummy if one is not available.  Do not touch them if
24051         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
24052         (getc_maybe_unlocked): New.
24053         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
24054
24055 2008-08-26  Eric Blake  <ebb9@byu.net>
24056
24057         doc/INSTALL: resync from autoconf
24058         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
24059         (INSTALL_PRELUDE): Delete; this is done more efficiently by
24060         moving...
24061         * install.texi [!autoconf]: ...here.  Resync from autoconf.
24062         * INSTALL: Regenerate.
24063         * INSTALL.ISO: New file.
24064         * INSTALL.UTF-8: Likewise.
24065
24066 2008-08-26  Jim Meyering  <meyering@redhat.com>
24067
24068         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
24069         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
24070         these definitions conditional, so that they may be overridden, too.
24071
24072 2008-08-26  Bruno Haible  <bruno@clisp.org>
24073
24074         Generate INSTALL file variants with prettier quotes.
24075         * doc/Makefile (INSTALL_PRELUDE): New macro.
24076         (INSTALL): Use it.
24077         (INSTALL.ISO, INSTALL.UTF-8): New rules.
24078
24079 2008-08-26  Bruno Haible  <bruno@clisp.org>
24080
24081         Run makeinfo in an English locale.
24082         * doc/Makefile (MAKEINFO): New variable.
24083
24084 2008-08-26  Bruno Haible  <bruno@clisp.org>
24085
24086         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
24087         Suggested by Eric Blake.
24088
24089 2008-08-25  Bruno Haible  <bruno@clisp.org>
24090
24091         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
24092
24093 2008-08-25  Eric Blake  <ebb9@byu.net>
24094
24095         c-stack: test that stack overflow can be caught
24096         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
24097         that platform allows handling stack overflow; at least OS/2 EMX
24098         has sigaltstack, but crashes before transferring control to
24099         handler on stack overflow.
24100         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
24101         check for HAVE_STACK_OVERFLOW_HANDLING.
24102         Reported by Elbert Pol.
24103
24104 2008-08-25  Bruno Haible  <bruno@clisp.org>
24105
24106         * doc/posix-functions/strftime.texi: Fix description of strftime
24107         module.
24108
24109 2008-08-24  Bruno Haible  <bruno@clisp.org>
24110
24111         * tests/uniwidth/test-uc_width2.c: New file.
24112         * tests/uniwidth/test-uc_width2.sh: New file.
24113         * modules/uniwidth/width-tests (Files): Add the new files.
24114         (TESTS): Add uniwidth/test-uc_width2.sh.
24115         (TESTS_ENVIRONMENT): New variable.
24116         (check_PROGRAMS): Add test-uc_width2.
24117         (test_uc_width2_SOURCES): New variable.
24118
24119         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
24120         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
24121         not 0x00AB.
24122         Reported by Alexander V. Lukyanov <lav@netis.ru>.
24123
24124 2008-08-22  Eric Blake  <ebb9@byu.net>
24125
24126         test-lock, test-tls: mention why a test is skipped
24127         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
24128         skipped.
24129         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
24130
24131         count-one-bits: relax license
24132         * modules/count-one-bits (License): Relicense to LGPLv2+.
24133         Suggested by Ludovic Courtès, approved by Ben Pfaff.
24134
24135 2008-08-22  Andreas Schwab  <schwab@suse.de>
24136
24137         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
24138         Remove spurious space in assignment.
24139
24140 2008-08-21  Simon Josefsson  <simon@josefsson.org>
24141
24142         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
24143         Paul Eggert <eggert@CS.UCLA.EDU>.
24144
24145 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
24146
24147         * modules/gettext: Add m4/threadlib.m4.
24148
24149 2008-08-19  Eric Blake  <ebb9@byu.net>
24150
24151         test-c-stack: fix compilation failure on FreeBSD 5.0
24152         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
24153         headers before <sys/resource.h>.
24154         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
24155         the bug.
24156         Reported by Nelson H. F. Beebe.
24157
24158         strverscmp: migrate from "strverscmp.h" to <string.h>
24159         * modules/string (Makefile.am): Add new hooks.
24160         * modules/strverscmp (Files): Remove strverscmp.h.
24161         (Depends-on): Add string.
24162         (configure.ac): Add indicator.
24163         (Include): Mention new header.
24164         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
24165         defaults.
24166         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
24167         results.
24168         * lib/strverscmp.h: Delete.
24169         * lib/string.in.h (strverscmp): Provide declaration, when needed.
24170         * tests/test-strverscmp.c (includes): Adjust client.
24171         * lib/check-version.c (includes): Likewise.
24172         * NEWS: Document the change.
24173
24174         strverscmp: add unit test
24175         * modules/strverscmp-tests: New file.
24176         * tests/test-strverscmp.c: Likewise.
24177
24178 2008-08-19  Simon Josefsson  <simon@josefsson.org>
24179
24180         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
24181         regarding Windows crypto stuff, from Mono.
24182
24183 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
24184
24185         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
24186         if present, for intel RND.  Return error on failures.
24187
24188 2008-08-18  Ben Pfaff  <blp@gnu.org>
24189
24190         gitlog-to-changelog: give better diagnostic for failed pipe-open
24191         * build-aux/gitlog-to-changelog: Improve error message: suggest
24192         that the version of Git may be too old.
24193
24194 2008-08-18  Simon Josefsson  <simon@josefsson.org>
24195
24196         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
24197         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
24198
24199 2008-08-18  Bruno Haible  <bruno@clisp.org>
24200
24201         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
24202         pthread_in_use().
24203
24204 2008-08-18  Bruno Haible  <bruno@clisp.org>
24205
24206         * lib/glthread/threadlib.c: Include <pthread.h>.
24207
24208 2008-08-18  Bruno Haible  <bruno@clisp.org>
24209
24210         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
24211         glthread_recursive_lock_* macros.
24212         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
24213         Fix syntax error.
24214
24215 2008-08-18  Bruno Haible  <bruno@clisp.org>
24216
24217         * lib/glthread/thread.c: Avoid forcing a context switch right after
24218         thread creation.
24219
24220 2008-08-17  Bruno Haible  <bruno@clisp.org>
24221
24222         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
24223         * lib/glthread/thread.h: Provide Win32 specific implementation.
24224         * modules/thread (Files): Add lib/glthread/thread.c.
24225         (Depends-on): Add lock.
24226         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
24227
24228 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24229
24230         New module 'yield'.
24231         * modules/yield: New file.
24232         * lib/glthread/yield.h: New file.
24233         * m4/yield.m4: New file.
24234         * MODULES.html.sh (Multithreading): Add yield.
24235
24236 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24237
24238         New module 'thread'.
24239         * modules/thread: New file.
24240         * lib/glthread/thread.h: New file.
24241         * m4/thread.m4: New file.
24242         * MODULES.html.sh (Multithreading): Add thread.
24243
24244 2008-08-17  Bruno Haible  <bruno@clisp.org>
24245
24246         * lib/glthread/lock.h: Include <stdlib.h> always.
24247         * lib/glthread/tls.h: Likewise.
24248         * lib/glthread/cond.h: Likewise.
24249
24250 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24251
24252         New module 'cond'.
24253         * modules/cond: New file.
24254         * lib/glthread/cond.h: New file.
24255         * lib/glthread/cond.c: New file.
24256         * m4/cond.m4: New file.
24257         * MODULES.html.sh (Multithreading): Add cond.
24258
24259 2008-08-16  Eric Blake  <ebb9@byu.net>
24260
24261         c-stack: fix regression on Irix 5.3 from 2008-06-21
24262         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
24263         sa_sigaction...
24264         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
24265         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
24266         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
24267         * modules/signal (Makefile.am): Use the value.
24268         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
24269         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
24270         * doc/posix-headers/signal.texi (signal.h): Document this
24271         portability issue.
24272         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
24273         Reported by Tom G. Christensen.
24274
24275 2008-08-17  Bruno Haible  <bruno@clisp.org>
24276
24277         New module 'threadlib'.
24278         * modules/threadlib: New file.
24279         * lib/glthread/threadlib.c: New file, extracted from
24280         lib/glthread/lock.c.
24281         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
24282         functions.
24283         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
24284         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
24285         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
24286         macros.
24287         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
24288         (gl_DISABLE_THREADS): Remove macro.
24289         * modules/lock (Files): Remove build-aux/config.rpath.
24290         (Depends-on): Remove havelib. Add threadlib.
24291         (configure.ac-early): Remove section.
24292         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
24293         * modules/tls (Depends-on): Remove lock. Add threadlib.
24294         (Link): New section, copied from threadlib.
24295         * MODULES.html.sh (Multithreading): Add threadlib.
24296
24297 2008-08-14  Bruno Haible  <bruno@clisp.org>
24298
24299         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
24300         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
24301         glthread_rwlock_unlock, glthread_rwlock_destroy,
24302         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
24303         glthread_recursive_lock_destroy): Define as macros always.
24304         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
24305         glthread_lock_lock.
24306         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
24307         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
24308         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
24309         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
24310         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
24311         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
24312         (glthread_recursive_lock_lock_func): Renamed from
24313         glthread_recursive_lock_lock.
24314         (glthread_recursive_lock_unlock_func): Renamed from
24315         glthread_recursive_lock_unlock.
24316         (glthread_recursive_lock_destroy_func): Renamed from
24317         glthread_recursive_lock_destroy.
24318
24319 2008-08-14  Bruno Haible  <bruno@clisp.org>
24320
24321         * lib/glthread/lock.h: Renamed from lib/lock.h.
24322         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
24323         * lib/glthread/tls.h: Renamed from lib/tls.h.
24324         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
24325         * lib/fstrcmp.c: Update includes.
24326         * lib/strsignal.c: Update includes.
24327         * modules/lock (Files, Makefile.am): Update.
24328         (Include): Change to "glthread/lock.h".
24329         * modules/tls (Files, Makefile.am): Update.
24330         (Include): Change to "glthread/tls.h".
24331         * tests/test-lock.c: Update includes.
24332         * tests/test-tls.c: Update includes.
24333         * NEWS: Mention the renamed header files.
24334
24335 2008-08-11  Jim Meyering  <meyering@redhat.com>
24336
24337         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
24338
24339 2008-08-11  Eric Blake  <ebb9@byu.net>
24340
24341         test-c-stack: avoid C99-ism
24342         * tests/test-c-stack.c (main): Fix whitespace, move declaration
24343         before statement.
24344         Reported by Alain Guibert.
24345
24346 2008-08-10  Jim Meyering  <meyering@redhat.com>
24347
24348         ensure that return value of uinttostr et al are not ignored
24349         * lib/inttostr.h (__GNUC_PREREQ): Define.
24350         (__attribute_warn_unused_result__): Define.
24351         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
24352
24353 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
24354
24355         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
24356         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
24357
24358 2008-08-07  Jim Meyering  <meyering@redhat.com>
24359
24360         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
24361
24362         * modules/mkstemp (License): Relicense under LGPLv2+.
24363         * modules/tempname (License): Likewise.
24364
24365 2008-08-06  Bruno Haible  <bruno@clisp.org>
24366
24367         * lib/poll.c (poll): Further micro-optimization.
24368
24369 2008-08-06  Jim Meyering  <meyering@redhat.com>
24370
24371         inet_pton.c: use locale-independent tolower
24372         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
24373         (inet_pton6): Use c_tolower rather than tolower.
24374         * modules/inet_pton (Depends-on): Add c-ctype.
24375
24376 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
24377
24378         * lib/poll.c (poll): Avoid division when timeout is 0, cache
24379         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
24380
24381 2008-08-06  Jim Meyering  <meyering@redhat.com>
24382
24383         * modules/inet_pton (License): Relicense under LGPLv2+.
24384
24385 2008-08-03  Bruno Haible  <bruno@clisp.org>
24386
24387         Additional non-aborting API for lock and tls.
24388         * lib/lock.h: Include <errno.h>.
24389         (glthread_lock_init): New macro/function.
24390         (gl_lock_init): Define as wrapper around glthread_lock_init.
24391         (glthread_lock_lock): New macro/function.
24392         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
24393         (glthread_lock_unlock): New macro/function.
24394         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
24395         (glthread_lock_destroy): New macro/function.
24396         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
24397         (glthread_rwlock_init): New macro/function.
24398         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
24399         (glthread_rwlock_rdlock): New macro/function.
24400         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
24401         (glthread_rwlock_wrlock): New macro/function.
24402         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
24403         (glthread_rwlock_unlock): New macro/function.
24404         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
24405         (glthread_rwlock_destroy): New macro/function.
24406         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
24407         (glthread_recursive_lock_init): New macro/function.
24408         (gl_recursive_lock_init): Define as wrapper around
24409         glthread_recursive_lock_init.
24410         (glthread_recursive_lock_lock): New macro/function.
24411         (gl_recursive_lock_lock): Define as wrapper around
24412         glthread_recursive_lock_lock.
24413         (glthread_recursive_lock_unlock): New macro/function.
24414         (gl_recursive_lock_unlock): Define as wrapper around
24415         glthread_recursive_lock_unlock.
24416         (glthread_recursive_lock_destroy): New macro/function.
24417         (gl_recursive_lock_destroy): Define as wrapper around
24418         glthread_recursive_lock_destroy.
24419         (glthread_once): New macro/function.
24420         (gl_once): Define as wrapper around glthread_once.
24421         Update function declarations.
24422         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
24423         glthread_rwlock_init. Return error code.
24424         (glthread_rwlock_rdlock_multithreaded): Renamed from
24425         glthread_rwlock_rdlock. Return error code.
24426         (glthread_rwlock_wrlock_multithreaded): Renamed from
24427         glthread_rwlock_wrlock. Return error code.
24428         (glthread_rwlock_unlock_multithreaded): Renamed from
24429         glthread_rwlock_unlock. Return error code.
24430         (glthread_rwlock_destroy_multithreaded): Renamed from
24431         glthread_rwlock_destroy. Return error code.
24432         (glthread_recursive_lock_init_multithreaded): Renamed from
24433         glthread_recursive_lock_init. Return error code.
24434         (glthread_recursive_lock_lock_multithreaded): Renamed from
24435         glthread_recursive_lock_lock. Return error code.
24436         (glthread_recursive_lock_unlock_multithreaded): Renamed from
24437         glthread_recursive_lock_unlock. Return error code.
24438         (glthread_recursive_lock_destroy_multithreaded): Renamed from
24439         glthread_recursive_lock_destroy. Return error code.
24440         (glthread_once_call): Make static.
24441         (glthread_once_multithreaded): Renamed from glthread_once.
24442         * lib/tls.h: Include <errno.h>.
24443         (glthread_tls_key_init): New macro/function.
24444         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
24445         (glthread_tls_set): New macro/function.
24446         (gl_tls_set): Define as wrapper around glthread_tls_set.
24447         (glthread_tls_key_destroy): New macro/function.
24448         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
24449         Update function declarations.
24450         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
24451         glthread_tls_get.
24452         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
24453
24454 2008-08-04  Eric Blake  <ebb9@byu.net>
24455
24456         gnumakefile: use space, not TAB, outside of targets
24457         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
24458
24459 2008-08-02  Jim Meyering  <meyering@redhat.com>
24460
24461         getdate.y: avoid locale-dependent date parsing failure
24462         In Turkish locales, getdate would fail to recognize keywords
24463         containing a lowercase "i".  The solution is not to rely on
24464         locale-sensitive case-conversion.
24465         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
24466         (lookup_word): Use c_toupper in place of toupper.
24467         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
24468         Reported by Vefa Bicakci <bicave@superonline.com> in
24469         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
24470         * modules/getdate (Depends-on): Add c-ctype.
24471
24472 2008-08-02  Bruno Haible  <bruno@clisp.org>
24473
24474         * gnulib-tool (func_import): When updating or creating a .gitignore
24475         file, prepend each added line with a slash, and ignore leading slashes
24476         from the existing lines.
24477         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
24478
24479 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24480
24481         Portability fix for GNU make 3.79.1.
24482         * top/GNUmakefile: Avoid 'else COND', which older GNU make
24483         versions do not understand.
24484
24485 2008-08-01  Bruno Haible  <bruno@clisp.org>
24486
24487         Work around bug of HP-UX 10.20 cc with -0.0 literal.
24488         * tests/test-isnanf.h (zero): New variable.
24489         (main): Avoid literal -0.0f.
24490         * tests/test-isnand.h (zero): New variable.
24491         (main): Avoid literal -0.0.
24492         * tests/test-isnanl.h (zero): New variable.
24493         (main): Avoid literal -0.0L.
24494         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
24495         (test_float, test_double, test_long_double): Avoid literals -0.0f,
24496         -0.0, -0.0L.
24497         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
24498         (test_signbitd): Avoid literal -0.0.
24499         (test_signbitl): Avoid literal -0.0L.
24500         * tests/test-ceilf1.c (zero): New variable.
24501         (main): Avoid literal -0.0f.
24502         * tests/test-ceill.c (zero): New variable.
24503         (main): Avoid literal -0.0L.
24504         * tests/test-floorf1.c (zero): New variable.
24505         (main): Avoid literal -0.0f.
24506         * tests/test-floorl.c (zero): New variable.
24507         (main): Avoid literal -0.0L.
24508         * tests/test-roundf1.c (zero): New variable.
24509         (main): Avoid literal -0.0f.
24510         * tests/test-round1.c (zero): New variable.
24511         (main): Avoid literal -0.0.
24512         * tests/test-roundl.c (zero): New variable.
24513         (main): Avoid literal -0.0L.
24514         * tests/test-truncf1.c (zero): New variable.
24515         (main): Avoid literal -0.0f.
24516         * tests/test-trunc1.c (zero): New variable.
24517         (main): Avoid literal -0.0.
24518         * tests/test-truncl.c (zero): New variable.
24519         (main): Avoid literal -0.0L.
24520         * tests/test-frexp.c (zero): New variable.
24521         (main): Avoid literal -0.0.
24522         * tests/test-frexpl.c (zero): New variable.
24523         (main): Avoid literal -0.0L.
24524         * tests/test-ldexpl.c (zero): New variable.
24525         (main): Avoid literal -0.0L.
24526         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
24527         (zerod, zerol): New variables.
24528         (test_function): Avoid literals -0.0, -0.0L.
24529         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
24530         (zerod, zerol): New variables.
24531         (test_function): Avoid literals -0.0, -0.0L.
24532         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
24533         (zerod, zerol): New variables.
24534         (test_function): Avoid literals -0.0, -0.0L.
24535         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
24536         (zerod, zerol): New variables.
24537         (test_function): Avoid literals -0.0, -0.0L.
24538         * tests/test-strtod.c (zero): New variable.
24539         (main): Avoid literal -0.0.
24540         Reported by Jonathan C. Patschke <jp@centtech.com>.
24541
24542 2008-07-31  Jim Meyering  <meyering@redhat.com>
24543
24544         sha256.h: correct definition of SHA224_DIGEST_SIZE
24545         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
24546         Reported by Paulie Pena IV <paulie4@gmail.com>.
24547         Define as 224 / 8, rather than as a literal.
24548         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
24549         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
24550         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
24551
24552 2008-07-31  Bruno Haible  <bruno@clisp.org>
24553
24554         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
24555         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
24556         Reported by Jonathan Patschke <jp@centtech.com>.
24557
24558 2008-07-31  Bruno Haible  <bruno@clisp.org>
24559
24560         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
24561         Reported by Paolo Bonzini <bonzini@gnu.org>.
24562
24563 2008-07-30  Eric Blake  <ebb9@byu.net>
24564
24565         test-strtod: allow compilation without -lm
24566         * tests/test-strtod.c (main): Avoid link dependence on fabs.
24567         Reported by Dennis Clarke <blastwave@gmail.com>.
24568
24569 2008-07-28  Jim Meyering  <meyering@redhat.com>
24570
24571         bootstrap: work also when there are no .po files in po/
24572         * build-aux/bootstrap (update_po_files): Complete the change
24573         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
24574
24575 2008-07-27  Jim Meyering  <meyering@redhat.com>
24576
24577         * users.txt: Add zile.
24578
24579 2008-07-26  Ben Pfaff  <blp@gnu.org>
24580
24581         Add missing dependencies on new m4/exponent[fdl].m4 files.
24582         * modules/isnanf-nolibm: Add m4/exponentf.m4.
24583         * modules/isnand-nolibm: Add m4/exponentd.m4.
24584         * modules/isnanl-nolibm: Add m4/exponentl.m4.
24585         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
24586         m4/isnan[fdl].m4, because the macros actually used moved.
24587         Reported by Jim Meyering.
24588
24589 2008-07-14  Ben Pfaff  <blp@gnu.org>
24590
24591         Add isinf module.
24592         * lib/isinf.c: New file.
24593         * lib/math.in.h: Define isinf macro if we have decided to replace
24594         it.
24595         * m4/isinf.m4: New file.
24596         * m4/math_h.m4: Initialize and substitute variables for isinf
24597         module.
24598         * modules/isinf: New file.
24599         * modules/isinf-tests: New file.
24600         * modules/math: Add substitutions for new module.
24601         * tests/test-isinf.c: New file.
24602         * doc/posix-functions/isinf.texi: Mention new module.
24603         * MODULES.html.sh: Mention new module.
24604
24605 2008-07-14  Ben Pfaff  <blp@gnu.org>
24606
24607         Factor out some macros for use by additional modules.
24608         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
24609         exponentf.m4.
24610         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
24611         exponentd.m4.
24612         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
24613         file exponentl.m4.
24614         * m4/exponentf.m4: New file.
24615         * m4/exponentd.m4: New file.
24616         * m4/exponentl.m4: New file.
24617         * modules/isnanf: Use new file m4/exponentf.m4.
24618         * modules/isnand: Use new file m4/exponentd.m4.
24619         * modules/isnanl: Use new file m4/exponentl.m4.
24620
24621 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
24622
24623         mktime.c: normalize tp->tm_isdst value to -1/0/1.
24624         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
24625         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
24626         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
24627
24628         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
24629         readlink on platforms without PATH_MAX.
24630
24631 2008-07-21  Eric Blake  <ebb9@byu.net>
24632
24633         Warn, not fail, on stale version.
24634         * top/GNUmakefile (_curr-ver): Tone down previous patch.
24635
24636         Don't allow installation with stale devel version number.
24637         * top/GNUmakefile (_is-install-target): New macro.
24638         (_curr-ver): Forbid installation with stale version number.
24639
24640 2008-07-20  Bruno Haible  <bruno@clisp.org>
24641
24642         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
24643         TESTS_ENVIRONMENT.
24644         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
24645
24646 2008-07-20  Bruno Haible  <bruno@clisp.org>
24647
24648         * lib/c-stack.h (c_stack_action): Add documentation.
24649         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
24650
24651 2008-07-20  Bruno Haible  <bruno@clisp.org>
24652
24653         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
24654         * modules/readlink (License): Likewise.
24655
24656 2008-07-17  Eric Blake  <ebb9@byu.net>
24657
24658         * modules/c-stack (Link): Fix typo.
24659
24660         Make c-stack use libsigsegv, when available.
24661         * modules/c-stack (Depends-on): Add libsigsegv.
24662         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
24663         needed.
24664         * lib/c-stack.c (SIGSTKSZ): Define fallback.
24665         (segv_handler, overflow_handler, c_stack_action)
24666         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
24667         implementation when libsigsegv is available, but only when using
24668         the library is necessary.
24669         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
24670         comment, explaining why XSI check fails on Linux.
24671         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
24672         * tests/test-c-stack2.sh: Tweak skip message.
24673         * NEWS: Document new link-time requirements.
24674
24675 2008-07-16  Eric Blake  <ebb9@byu.net>
24676
24677         c-stack: Expose false positives when not using libsigsegv.
24678         * modules/c-stack-tests (Files): Expand test.
24679         * tests/test-c-stack.c (main): Add means to conditionally trigger
24680         non-overflow SIGSEGV.
24681         * tests/test-c-stack2.sh: New file.
24682
24683 2008-07-14  Bruno Haible  <bruno@clisp.org>
24684
24685         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
24686         Reported by Eric Blake.
24687
24688 2008-07-14  Sam Steingold  <sds@gnu.org>
24689             Bruno Haible  <bruno@clisp.org>
24690
24691         New module libsigsegv.
24692         * modules/libsigsegv: New file.
24693         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
24694         modifications.
24695         * MODULES.html.sh (Signal handling): New section.
24696
24697 2008-07-14  Bruno Haible  <bruno@clisp.org>
24698
24699         * modules/unictype/ctype-* (Description): Add the word "function".
24700         Improves the resulting doc in MODULES.html.
24701
24702 2008-07-12  Ben Pfaff  <blp@gnu.org>
24703
24704         Add longlong module.
24705         * modules/longlong: New file.
24706
24707 2008-07-12  Bruno Haible  <bruno@clisp.org>
24708
24709         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
24710         to empty.
24711
24712 2008-07-10  Ben Pfaff  <blp@gnu.org>
24713
24714         Add isnan module.
24715         * doc/posix-functions/isnan.texi: Mention new module.
24716         * lib/math.in.h: Define isnan macro if we have decided to replace
24717         it.
24718         * m4/isnan.m4: New file.
24719         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
24720         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
24721         also.
24722         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
24723         redundancy.
24724         * m4/math_h.m4: Initialize and substitute variables for isnan
24725         module.
24726         * modules/isnan: New file.
24727         * modules/isnan-tests: New file.
24728         * modules/math: Add substitutions for new module.
24729         * tests/test-isnan.c: New file.
24730         * MODULES.html.sh: Mention new module.
24731
24732 2008-07-10  Ben Pfaff  <blp@gnu.org>
24733
24734         Add isnanf module.
24735         * lib/isnanf.m4: New file.
24736         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
24737         (gl_HAVE_ISNANF_IN_LIBM): New macro.
24738         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
24739         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
24740         * modules/isnanf: New file.
24741         * modules/isnanf-tests: New file.
24742         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
24743         files.
24744         * tests/test-isnanf-nolibm.c: factored most of its contents into
24745         new file tests/test-isnanf.h.
24746         * tests/test-isnanf.h: New file.
24747         * tests/test-isnanf.c: New file.
24748         * MODULES.html.sh: Mention new module.
24749         * doc/glibc-functions/isnanf.texi: Mention new module.
24750
24751 2008-07-10  Ben Pfaff  <blp@gnu.org>
24752
24753         Add isnand module.
24754         * lib/isnand.h: New file.
24755         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
24756         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
24757         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
24758         functionality also.
24759         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
24760         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
24761         (gl_HAVE_ISNAND_IN_LIBM): New macro.
24762         * modules/isnand: New file.
24763         * modules/isnand-tests: New file.
24764         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
24765         files.
24766         * tests/test-isnand-nolibm.c: factored most of its contents into
24767         new file tests/test-isnand.h.
24768         * tests/test-isnand.h: New file.
24769         * tests/test-isnand.c: New file.
24770         * MODULES.html.sh: Mention new module.
24771
24772 2008-07-10  Ben Pfaff  <blp@gnu.org>
24773
24774         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
24775         * lib/isnand.h: Rename lib/isnand-nolibm.h.
24776         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
24777         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
24778         * modules/isnanf-nolibm: Update references to renamed files.
24779         * modules/isnand-nolibm: Likewise.
24780         * modules/isnanf-nolibm-tests: Likewise.
24781         * modules/isnand-nolibm-tests: Likewise.
24782         * lib/frexp.c: Likewise.
24783         * lib/isfinite.c: Likewise.
24784         * lib/signbitd.c: Likewise.
24785         * lib/signbitf.c: Likewise.
24786         * lib/vasnprintf.c: Likewise.
24787         * tests/test-ceilf1.c: Likewise.
24788         * tests/test-ceilf2.c: Likewise.
24789         * tests/test-floorf1.c: Likewise.
24790         * tests/test-floorf2.c: Likewise.
24791         * tests/test-frexp.c: Likewise.
24792         * tests/test-round1.c: Likewise.
24793         * tests/test-round2.c: Likewise.
24794         * tests/test-roundf1.c: Likewise.
24795         * tests/test-strtod.c: Likewise.
24796         * tests/test-trunc1.c: Likewise.
24797         * tests/test-trunc2.c: Likewise.
24798         * tests/test-truncf1.c: Likewise.
24799         * tests/test-truncf2.c: Likewise.
24800         * NEWS: Mention the renamed header files.
24801
24802 2008-07-11  Jim Meyering  <meyering@redhat.com>
24803
24804         vc-list-files: make the last-resort awk code more portable
24805         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
24806         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
24807         does not support it.
24808
24809 2008-07-10  Eric Blake  <ebb9@byu.net>
24810
24811         Work with tar's bootstrap.
24812         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
24813         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
24814         an m4 comment.
24815
24816 2008-07-09  Jim Meyering  <meyering@redhat.com>
24817
24818         posix-shell.m4: fix typo that made this test malfunction
24819         * m4/posix-shell.m4: Remove capitalization in variable name.
24820
24821 2008-07-08  Bruno Haible  <bruno@clisp.org>
24822
24823         * m4/onceonly.m4: Update comments.
24824         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24825
24826 2008-07-04  Jim Meyering  <meyering@redhat.com>
24827
24828         * users.txt: Add vc-dwim.
24829         (bison, coreutils): Use the gitweb URL.
24830
24831 2008-07-03  Jim Meyering  <meyering@redhat.com>
24832
24833         * users.txt: Add libffcall.  From Sam Steingold.
24834
24835 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
24836
24837         getdate.y: do not ignore TZ with relative day, month or year offset
24838         * lib/getdate.y (get_date): Move the tz-handling block to follow the
24839         relative-date-handling, since otherwise, the latter would clobber the
24840         sole output (an updated Start value) of the tz-handling block.
24841         * tests/test-getdate.c: Tests for the fix
24842
24843 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24844
24845         Recognize 'foo_LIBRARIES += libgnu.a'.
24846         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
24847         makefile snippet has already specified an installation location,
24848         also using '+='.
24849
24850 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
24851
24852         getdate.y: factor out common actions
24853         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
24854         Use them in place of open-coded actions.
24855
24856 2008-07-01  Simon Josefsson  <simon@josefsson.org>
24857
24858         Add self-test for getdate module.
24859         * modules/getdate-tests: New file.
24860         * tests/test-getdate.c: New file.
24861
24862 2008-06-29  Bruno Haible  <bruno@clisp.org>
24863
24864         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
24865         .gitignore.
24866         Reported by Sylvain Beucler <beuc@beuc.net>.
24867
24868 2008-06-29  Bruno Haible  <bruno@clisp.org>
24869
24870         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
24871         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
24872
24873 2008-06-29  Bruno Haible  <bruno@clisp.org>
24874
24875         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
24876         EXTRA_DIST.
24877         Reported by Sylvain Beucler <beuc@beuc.net>.
24878
24879 2008-06-26  Jim Meyering  <meyering@redhat.com>
24880
24881         make several modules depend on the "open" module
24882         This provides slightly increased consistency when opening-for-write
24883         the name of a non-directory spelled with a trailing slash.
24884         * modules/chdir-safer: Likewise.
24885         * modules/chown: Likewise.
24886         * modules/clean-temp: Likewise.
24887         * modules/copy-file: Likewise.
24888         * modules/fchdir: Likewise.
24889         * modules/fcntl-safer: Likewise.
24890         * modules/pipe: Likewise.
24891         * modules/utime: Likewise.
24892         Prompted by Eric Blake and Bruno Haible.
24893
24894 2008-06-24  Andreas Schwab  <schwab@suse.de>
24895
24896         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
24897         literals can be used as initializers for global variables.
24898
24899 2008-06-23  Eric Blake  <ebb9@byu.net>
24900
24901         Make gnulib-cache.m4 easier to diff.
24902         * gnulib-tool (func_import): Allow newlines when reading cached
24903         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
24904
24905 2008-06-23  Bruno Haible  <bruno@clisp.org>
24906
24907         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
24908         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
24909         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
24910         m4/signalblocking.m4.
24911         (gl_PREREQ_SIGACTION): Don't invoke it.
24912         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
24913         gl_PREREQ_SIG_HANDLER_H.
24914         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
24915         Don't check for sigaction here.
24916
24917 2008-06-23  Bruno Haible  <bruno@clisp.org>
24918
24919         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
24920         (install_handlers): Don't set the SA_RESETHAND flag.
24921
24922 2008-06-23  Bruno Haible  <bruno@clisp.org>
24923
24924         * m4/sigaction.m4: Comment fixes.
24925         * lib/signal.in.h: Likewise.
24926
24927 2008-06-23  Eric Blake  <ebb9@byu.net>
24928
24929         Fix typo.
24930         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
24931
24932         Avoid SA_ namespace.
24933         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
24934         Reported by Ralf Wildenhues.
24935
24936         Avoid test failure due to SA_RESTORER.
24937         * tests/test-sigaction.c (SA_MASK): New macro.
24938         (main): Avoid failing due to extension flags being set.
24939         Reported by Jim Meyering.
24940
24941         Revert use of sig-handler.h in sigprocmask.c.
24942         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
24943         it requires the existence of struct sigaction.
24944         * lib/sigprocmask.c (handler_t): Restore typedef.
24945         (rpl_signal, old_handlers): Use local type.
24946
24947 2008-06-22  Bruno Haible  <bruno@clisp.org>
24948
24949         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
24950         conditionally.
24951         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24952
24953 2008-06-22  Bruno Haible  <bruno@clisp.org>
24954
24955         * doc/posix-functions/siginterrupt.texi: Move note.
24956
24957         * lib/signal.in.h (SA_RESTART): New macro.
24958         * lib/sigaction.c: Update comment.
24959
24960         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
24961
24962         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
24963         (gl_PREREQ_SIGPROCMASK): Invoke it.
24964         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
24965
24966         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
24967
24968         * lib/sigprocmask.c: Update a comment.
24969
24970 2008-06-21  Eric Blake  <ebb9@byu.net>
24971
24972         Use sigaction module rather than signal().
24973         * modules/c-stack (Depends-on): Add sigaction.
24974         * modules/fatal-signal (Depends-on): Likewise.
24975         * modules/nanosleep (Depends-on): Likewise.
24976         * modules/sigprocmask (Files): Add sig-handler.h.
24977         * modules/sigaction (Files): Likewise.
24978         * lib/sig-handler.h (get_handler): New file, suggested by Paul
24979         Eggert.
24980         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
24981         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
24982         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
24983         (init_fatal_signals): Likewise.
24984         * lib/nanosleep.c (rpl_nanosleep): Likewise.
24985         (siginterrupt): Delete fallback.
24986         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
24987         instead.
24988         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
24989         siginterrupt.
24990
24991         New module sigaction, for mingw.
24992         * modules/sigaction: New module...
24993         * modules/sigaction-tests: ...and its test.
24994         * m4/sigaction.m4: New file.
24995         * lib/sigaction.c: Likewise.
24996         * tests/test-sigaction.c: Likewise.
24997         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
24998         * modules/signal (Makefile.am): Likewise.
24999         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
25000         needed.
25001         * doc/posix-headers/signal.texi (signal.h): Mention provided
25002         types.
25003         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
25004         that sigaction is preferable.
25005         * doc/posix-functions/sigaction.texi (sigaction): Mention new
25006         module.
25007         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
25008         sigaction.
25009
25010         Improve robustness of sigprocmask by overriding signal.
25011         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
25012         is in use.
25013         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
25014         (SIGKILL, SIGSTOP): Provide fallbacks.
25015         (rpl_signal): Implement.
25016         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
25017         signal can be called inside handlers.
25018
25019         Fix nanosleep module on mingw.
25020         * modules/nanosleep (Depends-on): Add sys_select.
25021         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
25022
25023         Fix licensing of sigprocmask.
25024         * modules/raise (License): Relicense as LGPL.
25025
25026 2008-06-21  Bruno Haible  <bruno@clisp.org>
25027
25028         * lib/propername.c (proper_name_utf8): Don't use the transliterated
25029         result if it contains question marks.
25030         Reported by Michael Geng <linux@michaelgeng.de>.
25031
25032 2008-06-19  Bruno Haible  <bruno@clisp.org>
25033
25034         Fix CVS-ism.
25035         * doc/gnulib.texi: Include updated-stamp.texi.
25036         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
25037         (updated-stamp.texi): New rule.
25038         (gnulib.info): Depend on it.
25039         * doc/.gitignore: Add updated-stamp.texi.
25040         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
25041
25042 2008-06-19  Bruno Haible  <bruno@clisp.org>
25043
25044         * doc/Makefile (gnulib.info): Update and simplify dependencies.
25045         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25046
25047 2008-06-19  Eric Blake  <ebb9@byu.net>
25048
25049         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
25050         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
25051         Reported by Stepan Kasal.
25052
25053 2008-06-18  Bruno Haible  <bruno@clisp.org>
25054
25055         * lib/fatal-signal.c (init_fatal_signals): Add comment.
25056         Reported by Eric Blake.
25057
25058 2008-06-18  Eric Blake  <ebb9@byu.net>
25059
25060         Work around cygwin 1.5.25 strsignal bug.
25061         * tests/test-strsignal.c: Allow for const char *.
25062         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
25063
25064 2008-06-18  Simon Josefsson  <simon@josefsson.org>
25065
25066         * users.txt: Update URL to article and add author/date
25067         information.
25068
25069 2008-06-17  Bruno Haible  <bruno@clisp.org>
25070
25071         New macro gl_DISABLE_THREADS.
25072         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
25073         if the user did not pass --enable-threads or --disable-threads option.
25074         (gl_DISABLE_THREADS): New macro.
25075         Reported by Eric Blake <ebb9@byu.net>.
25076
25077 2008-06-17  Bruno Haible  <bruno@clisp.org>
25078
25079         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
25080         when the macro ignores it.
25081         Based on a patch by Eric Blake <ebb9@byu.net>.
25082
25083 2008-06-17  Bruno Haible  <bruno@clisp.org>
25084
25085         * modules/tls (License): Change to LGPLv2+.
25086         Reported by Eric Blake.
25087
25088 2008-06-17  Eric Blake  <ebb9@byu.net>
25089
25090         Simplify c-stack prerequisites.
25091         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
25092         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
25093         no longer requires <ucontext.h> to exist.  Optimize setrlimit
25094         check.
25095         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
25096         <sys/resource.h>.
25097
25098         Move c-stack test into testsuite.
25099         * modules/c-stack-tests: New file.
25100         * lib/c-stack.c [DEBUG]: Move test program...
25101         * tests/test-c-stack.c: ...into this new file.  Skip rather than
25102         fail test if sigaltstack is lacking.
25103         * tests/test-c-stack.sh: New driver file.
25104
25105 2008-06-16  Eric Blake  <ebb9@byu.net>
25106
25107         Use raise module consistently.
25108         * modules/fatal-signal (Depends-on): Add raise.
25109         * modules/sigprocmask (Depends-on): Likewise.
25110         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
25111         * lib/sigprocmask.c (sigprocmask): Likewise.
25112         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
25113         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
25114
25115         Fix compliance bug in sigpending.
25116         * lib/sigprocmask.c (sigpending): Return pending array via
25117         parameter, not return value.
25118
25119 2008-06-14  Eric Blake  <ebb9@byu.net>
25120
25121         Improve obstack-printf test code.
25122         * tests/test-obstack-printf.c (test_function): Fix comment, and
25123         simplify usage of obstack_* in macros.  Add a test for coverage.
25124         Reported by Bruno Haible.
25125
25126 2008-06-14  Bruno Haible  <bruno@clisp.org>
25127
25128         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
25129         array size as a constant, not as a const variable.
25130         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
25131         AC_USE_SYSTEM_EXTENSIONS.
25132         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
25133         Test whether the obstack_printf function actually exists.
25134         * modules/obstack-printf (Depends-on): Add extensions.
25135         (Include): Remove obstack.h.
25136         * modules/obstack-printf-posix (Depends-on): Add extensions.
25137         (Include): Remove obstack.h.
25138
25139 2008-06-13  Eric Blake  <ebb9@byu.net>
25140
25141         Add obstack-printf and obstack-printf-posix modules.
25142         * modules/obstack-printf: New file.
25143         * modules/obstack-printf-posix: Likewise.
25144         * MODULES.html.sh (Misc): Mention them.
25145         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
25146         Likewise.
25147         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
25148         Likewise.
25149         * modules/stdio (Makefile.am): Accomodate new modules.
25150         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
25151         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
25152         Declare.
25153         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
25154         functions.
25155         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
25156         (gl_REPLACE_OBSTACK_PRINTF): New macros
25157         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
25158         * tests/test-obstack-printf.c: New file.
25159         * modules/obstack-printf-tests: Likewise.
25160         * modules/obstack-printf-posix-tests: Likewise.
25161
25162 2008-06-11  Bruno Haible  <bruno@clisp.org>
25163
25164         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
25165         * lib/open.c: Include errno.h.
25166         (open): Fail when attempting to write to a file that has a trailing
25167         slash.
25168         * tests/test-open.c (main): Test against trailing slash bug.
25169         * doc/posix-functions/open.texi: Mention the trailing slash bug.
25170
25171 2008-06-10  Bruno Haible  <bruno@clisp.org>
25172
25173         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
25174         for $? to work inside the trap command, with various /bin/sh-s.
25175         * tests/test-vc-list-files-cvs.sh: Likewise.
25176
25177 2008-06-10  Bruno Haible  <bruno@clisp.org>
25178
25179         * lib/acl-internal.h: Don't include gettext.h here.
25180         * lib/set-mode-acl.c: Include gettext.h here.
25181         * lib/copy-acl.c: Likewise.
25182
25183 2008-06-10  Bruno Haible  <bruno@clisp.org>
25184
25185         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
25186         * lib/wait-process.c (wait_subprocess): Likewise.
25187         * lib/execute.h (execute): Add termsigp argument.
25188         * lib/execute.c (execute): Likewise.
25189         * lib/csharpcomp.c (compile_csharp_using_pnet,
25190         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
25191         * lib/csharpexec.c (execute_csharp_using_pnet,
25192         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
25193         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
25194         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
25195         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
25196         is_jikes_present): Update.
25197         * lib/javaexec.c (execute_java_class): Update.
25198         * lib/javaversion.c (execute_and_read_line): Update.
25199         * NEWS: Document the changes.
25200         Reported by Eric Blake.
25201
25202 2008-06-10  Eric Blake  <ebb9@byu.net>
25203
25204         Add missing include.
25205         * tests/test-strstr.c (includes): Add <signal.h>.
25206         * tests/test-strcasestr.c (includes): Likewise.
25207         * tests/test-memmem.c (includes): Likewise.
25208
25209 2008-06-10  Bruno Haible  <bruno@clisp.org>
25210
25211         * lib/wait-process.c (wait_subprocess): Add an assertion.
25212
25213 2008-06-10  Bruno Haible  <bruno@clisp.org>
25214
25215         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
25216
25217 2008-06-10  Bruno Haible  <bruno@clisp.org>
25218
25219         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
25220         using alarm().
25221         * tests/test-strcasestr.c (main): Likewise.
25222         * tests/test-strstr.c (main): Likewise.
25223
25224 2008-06-09  Bruno Haible  <bruno@clisp.org>
25225
25226         Work around the Solaris 10 ACE ACLs ABI change.
25227         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
25228         declare if ACL_NO_TRIVIAL is present.
25229         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
25230         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
25231         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
25232         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
25233         define if ACL_NO_TRIVIAL is present.
25234         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
25235         and use the current ABI.
25236         (file_has_acl): Use same #if condition as elsewhere.
25237         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
25238         in use, and use the current ABI.
25239         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
25240         Reported by Jim Meyering.
25241
25242 2008-06-09  Eric Blake  <ebb9@byu.net>
25243
25244         Work around environments that (stupidly) ignore SIGALRM.
25245         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
25246         before using alarm().
25247         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25248         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25249         Reported by Ian Beckwith <ianb@erislabs.net>.
25250
25251         Produce autobuild blurb earlier in log.
25252         * modules/autobuild (configure.ac-early): Move AB_INIT here.
25253
25254 2008-06-09  Jim Meyering  <meyering@redhat.com>
25255         and OndÅ™ej Vašík  <ovasik@redhat.com>
25256
25257         utimens.c: correct kernel bug work-around
25258         OndÅ™ej Vašík found that the invalid return value of 280 indicates
25259         failure, not success, and the kernel bug we're trying to work
25260         around affects not just the utimensat call, but also the fallback
25261         futimens call.
25262         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
25263         not success.
25264         [HAVE_FUTIMENS]: Use the same work-around, here.
25265
25266 2008-06-09  Jim Meyering  <meyering@redhat.com>
25267
25268         add more guards around definition of ACE_-related code
25269         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
25270         ALLOW and ACE_OWNER are also defined.
25271
25272 2008-06-08  Bruno Haible  <bruno@clisp.org>
25273
25274         * lib/acl-internal.h: Add me as co-author.
25275         * lib/file-has-acl.c: Likewise.
25276         * lib/set-mode-acl.c: Likewise.
25277         * lib/copy-acl.c: Likewise.
25278
25279 2008-06-08  Bruno Haible  <bruno@clisp.org>
25280
25281         Add support for AIX ACLs.
25282         * lib/acl-internal.h (acl_nontrivial): New declaration.
25283         * lib/file-has-acl.c (acl_nontrivial): New function.
25284         (file_has_acl): Add implementation using AIX 4 ACL API.
25285         * lib/set-mode-acl.c (qset_acl): Likewise.
25286         * lib/copy-acl.c (qcopy_acl): Likewise.
25287
25288 2008-06-08  Bruno Haible  <bruno@clisp.org>
25289
25290         Add support for HP-UX ACLs.
25291         * lib/acl-internal.h (acl_nontrivial): New declaration.
25292         * lib/file-has-acl.c (acl_nontrivial): New function.
25293         (file_has_acl): Add implementation using HP-UX 11 ACL API.
25294         * lib/set-mode-acl.c (qset_acl): Likewise.
25295         * lib/copy-acl.c (qcopy_acl): Likewise.
25296
25297 2008-06-08  Bruno Haible  <bruno@clisp.org>
25298
25299         Add support for Cygwin ACLs.
25300         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
25301         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
25302         the chmod_or_fchmod call.
25303         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
25304
25305 2008-06-08  Bruno Haible  <bruno@clisp.org>
25306
25307         Fix bug with setuid modes in Solaris 10+ code.
25308         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
25309         succeeded, when the mode contains some special bits.
25310
25311 2008-06-08  Bruno Haible  <bruno@clisp.org>
25312
25313         Add support for Solaris 7..10 ACLs.
25314         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
25315         declarations.
25316         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
25317         functions.
25318         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
25319         * lib/set-mode-acl.c (qset_acl): Likewise.
25320         * lib/copy-acl.c (qcopy_acl): Likewise.
25321
25322 2008-06-08  Bruno Haible  <bruno@clisp.org>
25323
25324         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
25325         declaration.
25326         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
25327         (acl_access_nontrivial): Remove MacOS X case.
25328         (file_has_acl): Use acl_extended_nontrivial.
25329         * lib/copy-acl.c (qcopy_acl): Likewise.
25330
25331 2008-06-08  Bruno Haible  <bruno@clisp.org>
25332
25333         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
25334
25335 2008-06-08  Jim Meyering  <meyering@redhat.com>
25336
25337         * modules/acl (Maintainer): Add Bruno Haible.
25338
25339 2008-06-07  Bruno Haible  <bruno@clisp.org>
25340
25341         Improve support for Tru64 ACLs.
25342         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
25343         ACL on OSF/1.
25344
25345 2008-06-07  Bruno Haible  <bruno@clisp.org>
25346
25347         Add support for MacOS X ACLs.
25348         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
25349         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
25350         * lib/set-mode-acl.c (qset_acl): Likewise.
25351         * lib/copy-acl.c (qcopy_acl): Likewise.
25352
25353 2008-06-07  Bruno Haible  <bruno@clisp.org>
25354
25355         Fix memory leak introduced on 2008-05-22.
25356         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
25357         use.
25358
25359 2008-06-07  Bruno Haible  <bruno@clisp.org>
25360
25361         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
25362         to construct an empty ACL.
25363
25364 2008-06-07  Bruno Haible  <bruno@clisp.org>
25365
25366         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
25367         precisely.
25368         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
25369
25370 2008-06-07  Bruno Haible  <bruno@clisp.org>
25371
25372         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
25373         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
25374
25375 2008-06-07  Bruno Haible  <bruno@clisp.org>
25376
25377         * doc/posix-functions/_setjmp.texi: Explain the use of this function
25378         regardless of POSIX.
25379         * doc/posix-functions/_longjmp.texi: Likewise.
25380         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
25381         SystemV platform in this case.
25382
25383 2008-06-06  Eric Blake  <ebb9@byu.net>
25384
25385         Document abort() bugs.
25386         * doc/posix-functions/abort.texi (abort): Mention anomalies.
25387
25388         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
25389         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
25390         sigsetjmp.
25391         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
25392         siglongjmp, but only as a macro.
25393         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
25394         is obsolete.
25395         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
25396
25397         Tweak documentation to cover cygwin argz bugs.
25398         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
25399         argz bug fix; no code change needed since no cygwin releases
25400         occurred between the last fix and the bug being tested.
25401         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
25402         module and recently fixed cygwin bugs.
25403         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
25404         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
25405         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
25406         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
25407         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
25408         Likewise.
25409         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
25410         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
25411         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
25412         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
25413         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
25414         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
25415         Likewise.
25416
25417         Avoid gcc warning on cygwin.
25418         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
25419         !ACL_NO_TRIVIAL]: Avoid unused variable.
25420
25421 2008-06-05  Eric Blake  <ebb9@byu.net>
25422
25423         Be tolerant of UNKNOWN version in gnulib-tool test dir.
25424         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
25425         git-version-gen fails to come up with a version.
25426         Reported by Simon Josefsson.
25427
25428 2008-06-05  Jim Meyering  <meyering@redhat.com>
25429             Paul Eggert  <eggert@cs.ucla.edu>
25430
25431         utimens.c: work around a probable Linux kernel bug
25432         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
25433         appears to be a kernel bug that causes utimensat to return 280
25434         instead of 0, indicating success.
25435
25436 2008-06-04  Bruno Haible  <bruno@clisp.org>
25437
25438         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
25439         2008-06-01 commit.
25440
25441 2008-06-04  Bruno Haible  <bruno@clisp.org>
25442
25443         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
25444         * lib/file-has-acl.c (acl_access_nontrivial): New function.
25445         (file_has_acl): Use it. Save errno afterwards.
25446         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
25447
25448 2008-06-03  Bruno Haible  <bruno@clisp.org>
25449
25450         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
25451         draft code. Simplify #ifs.
25452         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
25453         Put Solaris code after POSIX-draft code. Fix comments regarding
25454         Solaris 10, HP-UX. Mention Cygwin.
25455         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
25456
25457 2008-06-03  Eric Blake  <ebb9@byu.net>
25458
25459         Provide fallback for older kernels.
25460         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
25461         Provide runtime fallback if kernel lacks support.
25462         Reported by Mike Frysinger.
25463
25464 2008-06-02  Bruno Haible  <bruno@clisp.org>
25465
25466         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
25467         it exists.
25468
25469 2008-06-02  Bruno Haible  <bruno@clisp.org>
25470
25471         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
25472         * lib/copy-acl.c (qcopy_acl): Update comment.
25473
25474 2008-06-02  Bruno Haible  <bruno@clisp.org>
25475
25476         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
25477         like ACL APIs.
25478
25479 2008-06-02  Bruno Haible  <bruno@clisp.org>
25480
25481         * tests/test-file-has-acl.sh: Use different code for Cygwin.
25482         * tests/test-set-mode-acl.sh: Likewise.
25483         * tests/test-copy-acl.sh: Likewise.
25484         * tests/test-copy-file.sh: Likewise.
25485
25486 2008-06-02  Bruno Haible  <bruno@clisp.org>
25487
25488         * tests/test-file-has-acl.sh: Remove unused code.
25489
25490 2008-06-01  Bruno Haible  <bruno@clisp.org>
25491
25492         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
25493         (copy_acl): Just a wrapper around qcopy_acl that emits the error
25494         messages.
25495         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
25496
25497 2008-06-01  Bruno Haible  <bruno@clisp.org>
25498
25499         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
25500         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
25501         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
25502         APIs.
25503         * modules/acl-tests (configure.ac): Remove tests now contained in
25504         m4/acl.m4.
25505
25506 2008-06-02  Jim Meyering  <meyering@redhat.com>
25507
25508         announce-gen: use a better key-server host name
25509         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
25510         it may be more consistently reliable.  Suggested by Werner Koch
25511         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
25512
25513 2008-06-01  Bruno Haible  <bruno@clisp.org>
25514
25515         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
25516         Reported by Voroskoi Andras <voroskoi@gmail.com>.
25517
25518 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
25519
25520         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
25521
25522 2008-06-01  Bruno Haible  <bruno@clisp.org>
25523
25524         New ACL tests.
25525         * tests/test-file-has-acl.sh: New file.
25526         * tests/test-file-has-acl.c: New file.
25527         * tests/test-set-mode-acl.sh: New file.
25528         * tests/test-set-mode-acl.c: New file.
25529         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
25530         * tests/test-copy-acl.c: New file.
25531         * modules/acl-tests: New file, based on modules/copy-file-tests.
25532         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
25533         (Depends-on): Add acl-tests.
25534         (configure.ac): Remove checks.
25535         (Makefile.am): Don't create test-sameacls program here any more.
25536
25537 2008-06-01  Bruno Haible  <bruno@clisp.org>
25538
25539         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
25540         * tests/test-sameacls.c: Include progname.h.
25541         (main): Invoke set_program_name. Portability fixes for MacOS X,
25542         Solaris, HP-UX.
25543
25544 2008-06-01  Bruno Haible  <bruno@clisp.org>
25545
25546         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
25547         function.
25548         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
25549
25550 2008-06-01  Bruno Haible  <bruno@clisp.org>
25551
25552         * modules/rpmatch (Depends-on): Add strdup.
25553
25554 2008-06-01  Bruno Haible  <bruno@clisp.org>
25555
25556         * lib/pipe.c: Include unistd-safer.h.
25557         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
25558         * modules/pipe (Depends-on): Add unistd-safer.
25559
25560 2008-05-30  Simon Josefsson  <simon@josefsson.org>
25561
25562         * modules/autobuild (configure.ac): Call AB_INIT.
25563
25564 2008-05-30  Simon Josefsson  <simon@josefsson.org>
25565
25566         * tests/test-getaddrinfo.c: Don't print debug messages by default.
25567         Suggested by Bruno Haible <bruno@clisp.org>.
25568
25569 2008-05-30  Simon Josefsson  <simon@josefsson.org>
25570
25571         * tests/test-base64.c: Cast size_t to unsigned long when invoking
25572         printf.  Use %lu instead of %d.  Reported by Bruno Haible
25573         <bruno@clisp.org>.
25574
25575 2008-05-29  Eric Blake  <ebb9@byu.net>
25576
25577         Prefer new POSIX 200x interfaces over futimesat.
25578         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
25579         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
25580         when available.
25581         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
25582
25583 2008-05-28  Bruno Haible  <bruno@clisp.org>
25584
25585         * modules/stpcpy (License): Change to LGPLv2+.
25586         Requested by David Lutterkort <dlutter@redhat.com>.
25587
25588 2008-05-27  Bruno Haible  <bruno@clisp.org>
25589
25590         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
25591         current mingw.
25592         Reported by Jose E. Marchesi <jemarch@gnu.org>.
25593
25594 2008-05-27  Bruno Haible  <bruno@clisp.org>
25595
25596         * modules/iconv_open (Link): New section, from module 'iconv'.
25597         * modules/striconv (Link): Likewise.
25598         * modules/striconveh (Link): Likewise.
25599         * modules/xstriconv (Link): Likewise.
25600         * modules/unicodeio (Link): Likewise.
25601         * modules/propername (Link): Likewise.
25602         Reported by Jim Meyering.
25603
25604 2008-05-26  Jim Meyering  <meyering@redhat.com>
25605
25606         sha256: do not artificially restrict buffer length to be < 2^32
25607         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
25608         uint32_t to size_t.
25609         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
25610         to match.
25611
25612         avoid unaligned access errors, e.g., on sparc
25613         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
25614         direct access through a possibly-unaligned uint64* pointer.
25615         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
25616         direct access through a possibly-unaligned uint32* pointer.
25617         Prompted by this patch from Tom "spot" Callaway:
25618         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
25619
25620         sha512.c: fix typo in comment
25621         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
25622
25623 2008-05-25  Bruno Haible  <bruno@clisp.org>
25624
25625         * lib/set-mode-acl.c: Renamed from lib/acl.c.
25626         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
25627         (Makefile.am): Update lib_SOURCES.
25628
25629 2008-05-25  Bruno Haible  <bruno@clisp.org>
25630
25631         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
25632
25633 2008-05-25  Jim Meyering  <meyering@redhat.com>
25634
25635         useless-if-before-free: freed expr may have white-space differences
25636         * build-aux/useless-if-before-free: Recognize cases in which the
25637         freed expression differs from the tested one in embedded white
25638         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
25639         $1 was used, so we can't make any regexp shy.  Improved tests now
25640         detect this.
25641
25642         useless-if-before-free: accept white space in the expression.
25643         * build-aux/useless-if-before-free: For now, any white space
25644         in the expression must be identical in the free argument.
25645
25646         useless-if-before-free: efficiency tweak
25647         * build-aux/useless-if-before-free: Make the expression-matching
25648         regexp "shy".
25649         Make the *outer* regexp shy, not the expr-matching one.
25650
25651         update code-in-comment to accept cast of free arg
25652         * build-aux/useless-if-before-free: Update regexp.
25653
25654 2008-05-25  Bruno Haible  <bruno@clisp.org>
25655
25656         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
25657         * modules/copy-file-tests (Files, Makefile.am): Update.
25658         * tests/test-copy-file.c (func_test_copy): Update.
25659
25660 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
25661
25662         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
25663
25664 2008-05-23  Bruno Haible  <bruno@clisp.org>
25665
25666         Improve support for ACLs on OSF/1.
25667         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
25668         Remove fallback for unknown flavors of ACLs.
25669
25670 2008-05-22  Bruno Haible  <bruno@clisp.org>
25671
25672         Add support for ACLs on OSF/1.
25673         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
25674         replacements.
25675         (acl_free_text): New macro fallback.
25676         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
25677         acl_free.
25678         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
25679         acl_free_text function. Require AC_C_INLINE.
25680
25681 2008-05-22  Bruno Haible  <bruno@clisp.org>
25682
25683         Make copy_acl work on MacOS X 10.5.
25684         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
25685         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
25686         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
25687         If MODE_INSIDE_ACL, don't assume that every system has the same text
25688         representation for ACLs as FreeBSD.
25689         * lib/copy-acl.c (copy_acl): Add support for platforms with
25690         !MODE_INSIDE_ACL.
25691         * lib/file-has-acl.c (file_has_acl): Likewise.
25692         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
25693         FreeBSD, MacOS X, or IRIX, respectively.
25694
25695 2008-05-22  Bruno Haible  <bruno@clisp.org>
25696
25697         * lib/acl.h: Don't include <sys/acl.h>.
25698         (GETACLCNT): Move fallback to lib/acl-internal.h.
25699         * lib/acl-internal.h: Include <sys/acl.h> here.
25700         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
25701
25702 2008-05-22  Bruno Haible  <bruno@clisp.org>
25703
25704         Split off copy_acl function to separate file.
25705         * lib/copy-acl.c: New file, extracted from lib/acl.c.
25706         * lib/acl.c (copy_acl): Moved function to separate file.
25707         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
25708         * modules/acl (Files): Add lib/copy-acl.c.
25709         (Makefiles.am): Augment lib_SOURCES.
25710
25711 2008-05-22  Bruno Haible  <bruno@clisp.org>
25712
25713         * modules/copy-file-tests: New file.
25714         * tests/test-copy-file.sh: New file.
25715         * tests/test-copy-file.c: New file.
25716         * tests/test-copy-file-sameacls.c: New file.
25717
25718 2008-05-22  Eric Blake  <ebb9@byu.net>
25719
25720         Avoid gcc warning.
25721         * tests/test-memcmp.c (main): Pass NULL indirectly.
25722
25723 2008-05-21  Bruno Haible  <bruno@clisp.org>
25724
25725         Add reference doc about ACLs.
25726         * doc/acl-resources.txt: New file.
25727         * doc/acl-cygwin.txt: New file.
25728
25729 2008-05-21  Bruno Haible  <bruno@clisp.org>
25730
25731         Avoid one more warning from gcc.
25732         * lib/vasnprintf.c (IF_LINT): Update comments.
25733         (VASNPRINTF): Use it also for the 'prefix' array initializer.
25734
25735 2008-05-21  Jim Meyering  <meyering@redhat.com>
25736
25737         avoid a warning from gcc
25738         * lib/vasnprintf.c (IF_LINT): Define.
25739         (scale10_round_decimal_long_double):
25740         Use it to avoid a "may be used uninitialized" warning.
25741         (scale10_round_decimal_double): Likewise.
25742
25743 2008-05-21  Simon Josefsson  <simon@josefsson.org>
25744
25745         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
25746         declared.
25747
25748 2008-05-20  Bruno Haible  <bruno@clisp.org>
25749
25750         * tests/test-memcmp.c (main): Test also the sign of the result. Test
25751         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
25752
25753 2008-05-20  Simon Josefsson  <simon@josefsson.org>
25754
25755         * modules/memcmp-tests: New file.
25756         * tests/test-memcmp.c: New file.
25757
25758 2008-05-19  Bruno Haible  <bruno@clisp.org>
25759
25760         * modules/propername (Notice, configure.ac): Put quoted "..." into
25761         --keyword option.
25762         * lib/propername.h: Update comments accordingly.
25763         Reported by Eric Blake.
25764
25765 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
25766
25767         * modules/getpass-gnu (Depends-on): Add fseeko.
25768
25769 2008-05-19  Simon Josefsson  <simon@josefsson.org>
25770
25771         * modules/base64-tests: New file.
25772
25773 2008-05-19  Bo Borgerson <gigabo@gmail.com>
25774
25775         * lib/base64.c (base64_decode_ctx): If a decode context structure
25776         was passed in use it to ignore newlines.  If a context structure
25777         was _not_ passed in, continue to treat newlines as garbage (this
25778         is the historical behavior).  Formerly base64_decode.
25779         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
25780         takes a decode context structure.
25781         * lib/base64.h (base64_decode): Macro for four-argument calls.
25782         (base64_decode_alloc): Likewise.
25783         * lib/base64.c (base64_decode_ctx): If a decode context structure
25784         was passed in use it to ignore newlines.  If a context structure
25785         was _not_ passed in, continue to treat newlines as garbage (this
25786         is the historical behavior).  Formerly base64_decode.
25787         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
25788         takes a decode context structure.
25789         * lib/base64.h (base64_decode): Macro for four-argument calls.
25790         (base64_decode_alloc): Likewise.
25791
25792 2008-05-19  Jim Meyering  <meyering@redhat.com>
25793
25794         avoid a warning from gcc
25795         * lib/trim.c (IF_LINT): Define.
25796         (trim2): Use it to avoid a "may be used uninitialized" warning.
25797
25798         Fix doc typo.
25799         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
25800
25801 2008-05-19  Bruno Haible  <bruno@clisp.org>
25802
25803         * doc/glibc-functions/getpass.texi: Document limits of other
25804         implementations.
25805
25806 2008-05-19  Simon Josefsson  <simon@josefsson.org>
25807             Bruno Haible <bruno@clisp.org>
25808
25809         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
25810
25811 2008-05-18  Bruno Haible  <bruno@clisp.org>
25812
25813         * modules/propername: New file, from GNU gettext.
25814         * lib/propername.h: New file, from GNU gettext.
25815         * lib/propername.c: New file, from GNU gettext.
25816         * MODULES.html.sh (Internationalization functions): Add propername.
25817
25818 2008-05-16  Jim Meyering  <meyering@redhat.com>
25819             Bruno Haible  <bruno@clisp.org>
25820
25821         Avoid some warnings from "gcc -Wshadow".
25822         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
25823
25824 2008-05-15  Eric Blake  <ebb9@byu.net>
25825
25826         Extend previous patch to cygwin 1.7.0.
25827         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
25828         fast implementation in cygwin >= 1.7.0.
25829         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25830         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25831
25832 2008-05-15  Bruno Haible  <bruno@clisp.org>
25833
25834         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
25835         implementation in glibc >= 2.9.
25836         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25837         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25838
25839 2008-05-15  Bruno Haible  <bruno@clisp.org>
25840
25841         * MODULES.html.sh (Internationalization functions): Remove linebreak.
25842         (Unicode string functions): Add unilbrk/*.
25843         Reported by Karl Berry.
25844
25845 2008-05-15  Eric Blake  <ebb9@byu.net>
25846
25847         Fix violation of <stdbool.h> replacement in regex.
25848         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
25849         * lib/regexec.c (re_search_internal): Likewise.
25850         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
25851
25852 2008-05-15  Jim Meyering  <meyering@redhat.com>
25853
25854         avoid distracting test output when git or cvs is not found
25855         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
25856         * tests/test-vc-list-files-git.sh: Likewise.
25857
25858 2008-05-15  Eric Blake  <ebb9@byu.net>
25859
25860         Glibc finally accepted the memmem speedup code, bugzilla #5514.
25861         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
25862         glibc version.
25863         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25864         * doc/posix-functions/strstr.texi (strstr): Likewise.
25865         * lib/str-two-way.h (MAX): Sychronize with glibc.
25866
25867 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
25868
25869         * lib/regcomp.c (optimize_utf8): Add a note on why we test
25870         opr.ctx_type.
25871         (calc_first): Initialize constraint field.
25872         (duplicate_node_closure): Use it instead of special casing ANCHORS.
25873         Fix grammar.
25874         (duplicate_node): Merge constraint field for all node types.
25875         (calc_eclosure_iter): Look at constraint field for all node types.
25876         * lib/regex_internal.c (create_cd_newstate): Don't look at
25877         opr.ctx_type.
25878
25879 2008-05-14  Bruno Haible  <bruno@clisp.org>
25880
25881         Help GCC to do better code generation.
25882         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
25883         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
25884         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
25885         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
25886         Declare with attribute 'malloc' if supported.
25887
25888 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
25889
25890         use "echo STR|wc -c" rather than unportable "expr length STR"
25891         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
25892         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
25893
25894 2008-05-14  Jim Meyering  <meyering@redhat.com>
25895
25896         use dd ibs=$n count=1 ... rather than less-portable head -c$n
25897         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
25898         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
25899         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
25900         via Collin Lasse.
25901
25902 2008-05-14  Eric Blake  <ebb9@byu.net>
25903
25904         Avoid quadratic growth in gl_LIBSOURCES.
25905         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
25906         Suggested by Bruno Haible.
25907
25908         Test xmemdup0.
25909         * modules/xmemdup0-tests: New file.
25910         * tests/test-xmemdup0.c: Likewise.
25911
25912 2008-05-13  Eric Blake  <ebb9@byu.net>
25913
25914         Split xmemdup0 into its own module.
25915         * modules/xmemdup0: New file.
25916         * lib/xmemdup0.h: Likewise.
25917         * lib/xmemdup0.c: Likewise.
25918         * MODULES.html.sh (Memory management functions): Add xmemdup0.
25919         * lib/xalloc.h (xmemdup0): Remove.
25920         * lib/xmalloc.c (xmemdup0): Likewise.
25921
25922 2008-05-13  Eric Blake  <ebb9@byu.net>
25923             Bruno Haible  <bruno@clisp.org>
25924
25925         Reduce number of forks required during autoconf.
25926         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
25927         and gl_LIBSOURCES_DIR.
25928         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
25929         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
25930         m4_syscmd per file.
25931         <m4_foreach_w>: Move...
25932         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
25933
25934 2008-05-13  Eric Blake  <ebb9@byu.net>
25935
25936         * gnulib-tool: Fix various comment typos.
25937
25938 2008-05-12  Bruno Haible  <bruno@clisp.org>
25939
25940         Tailor the linebreaking algorithm.
25941         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
25942
25943 2008-05-12  Bruno Haible  <bruno@clisp.org>
25944
25945         Update to Unicode 5.0.0.
25946         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
25947         LBP_JV, LBP_JT. Redistribute values.
25948         (unilbrk_table): Change size.
25949         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
25950         Unicode TR#14 rev. 22.
25951         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
25952         LBP_JV, LBP_JT. Redistribute values.
25953         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
25954         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
25955         Update.
25956         * lib/unilbrk/lbrkprop1.h: Regenerated.
25957         * lib/unilbrk/lbrkprop2.h: Regenerated.
25958         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
25959         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
25960         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
25961         Likewise.
25962         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
25963         Likewise.
25964         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
25965         result.
25966         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25967         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25968         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
25969         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
25970         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
25971         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
25972
25973 2008-05-11  Bruno Haible  <bruno@clisp.org>
25974
25975         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
25976
25977 2008-05-11  Bruno Haible  <bruno@clisp.org>
25978
25979         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
25980         * modules/unilbrk/gen-lbrk: New file.
25981
25982 2008-05-11  Bruno Haible  <bruno@clisp.org>
25983
25984         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
25985         * m4/sha512.m4 (gl_SHA512): Likewise.
25986
25987 2008-05-11  Jim Meyering  <meyering@redhat.com>
25988
25989         New modules: crypto/sha256, crypto/sha512 (from coreutils)
25990         * modules/crypto/sha256: New file.
25991         * modules/crypto/sha512: Likewise.
25992         * lib/sha256.c: Likewise.
25993         * lib/sha256.h: Likewise.
25994         * lib/sha512.c: Likewise.
25995         * lib/sha512.h: Likewise.
25996         * lib/u64.h: Likewise.
25997         * m4/sha256.m4: Likewise.
25998         * m4/sha512.m4: Likewise.
25999         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
26000
26001 2008-05-10  Bruno Haible  <bruno@clisp.org>
26002
26003         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
26004         (Input/Output <stdio.h>): Add xprintf.
26005         (Signal handling <signal.h>): Add strsignal.
26006         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
26007         (Core language properties): Add func.
26008         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
26009         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
26010         strings.
26011         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
26012         (Input/output): New section.
26013         (File system functions): Add openat-die, stat-macros.
26014         (Networking functions): Add sockets.
26015         (Unicode string functions): Add unictype/*.
26016         (Support for building libraries and executables): Add gperf.
26017         (Support for building documentation): Add agpl-3.0.
26018         (Misc): Add nocrash.
26019
26020 2008-05-10  Bruno Haible  <bruno@clisp.org>
26021
26022         * modules/unictype/gen-ctype: New file.
26023
26024 2008-05-10  Jim Meyering  <meyering@redhat.com>
26025
26026         Make chdir-safer.c more efficient on a system with no symlinks.
26027         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
26028         also if ELOOP is zero.  Suggested by Bruno Haible.
26029
26030         Make chdir-safer.c slightly safer.
26031         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
26032         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
26033
26034         Avoid compile failure on systems without ELOOP (like mingw).
26035         * lib/chdir-safer.c (ELOOP): Define if not already defined.
26036         Reported by Bruno Haible.
26037
26038 2008-05-10  Bruno Haible  <bruno@clisp.org>
26039
26040         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
26041         (is_utf8_encoding): Use a case-insensitive comparison.
26042         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
26043         streq.
26044
26045 2008-05-10  Bruno Haible  <bruno@clisp.org>
26046
26047         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
26048         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
26049         * lib/unilbrk/ulc-common.h (iconv_string_length,
26050         iconv_string_keeping_offsets): Remove declarations.
26051         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
26052         Don't include <iconv.h>, streq.h, xsize.h.
26053         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
26054         conversion.
26055         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
26056         <iconv.h>, streq.h, xsize.h.
26057         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
26058         conversion.
26059         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
26060         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
26061         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
26062         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
26063
26064 2008-05-10  Bruno Haible  <bruno@clisp.org>
26065
26066         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
26067         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
26068
26069         * modules/unilbrk/u32-width-linebreaks-tests: New file.
26070         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
26071
26072         * modules/unilbrk/u16-width-linebreaks-tests: New file.
26073         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
26074
26075         * modules/unilbrk/u8-width-linebreaks-tests: New file.
26076         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
26077
26078         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
26079         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
26080
26081         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
26082         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
26083
26084         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
26085         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
26086
26087         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
26088         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
26089
26090 2008-05-10  Bruno Haible  <bruno@clisp.org>
26091
26092         Split up 'linebreak' module.
26093         * lib/unilbrk.h: New file, based on lib/linebreak.h.
26094         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
26095         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
26096         modifications.
26097         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
26098         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
26099         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
26100         lib/linebreak.c.
26101         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
26102         lib/linebreak.c.
26103         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
26104         lib/linebreak.c.
26105         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
26106         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
26107         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
26108         lib/linebreak.c.
26109         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
26110         lib/linebreak.c.
26111         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
26112         lib/linebreak.c.
26113         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
26114         lib/linebreak.c.
26115         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
26116         lib/linebreak.c.
26117         * modules/unilbrk/base: New file.
26118         * modules/unilbrk/tables: New file.
26119         * modules/unilbrk/u8-possible-linebreaks: New file.
26120         * modules/unilbrk/u16-possible-linebreaks: New file.
26121         * modules/unilbrk/u32-possible-linebreaks: New file.
26122         * modules/unilbrk/ulc-common: New file.
26123         * modules/unilbrk/ulc-possible-linebreaks: New file.
26124         * modules/unilbrk/u8-width-linebreaks: New file.
26125         * modules/unilbrk/u16-width-linebreaks: New file.
26126         * modules/unilbrk/u32-width-linebreaks: New file.
26127         * modules/unilbrk/ulc-width-linebreaks: New file.
26128         * lib/linebreak.h: Remove file.
26129         * lib/linebreak.c: Remove file.
26130         * m4/linebreak.m4: Remove file.
26131         * modules/linebreak: Remove file.
26132         * NEWS: Mention the changes.
26133
26134 2008-05-09  Eric Blake  <ebb9@byu.net>
26135
26136         Add xmemdup0.
26137         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
26138         implementation.
26139         * lib/xmalloc.c (xmemdup0): New C implementation.
26140
26141 2008-05-08  Bruno Haible  <bruno@clisp.org>
26142
26143         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
26144
26145 2008-05-07  Eric Blake  <ebb9@byu.net>
26146
26147         Support cross-compilation of <wctype.h>.
26148         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
26149         AC_CACHE_CHECK.
26150
26151 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
26152
26153         * build-aux/vc-list-files: Add support for bzr.
26154
26155 2008-05-03  Jim Meyering  <meyering@redhat.com>
26156
26157         avoid failed assertion with tight malloc
26158         * tests/test-getndelim2.c: Correct an off-by-one assertion.
26159
26160 2008-05-03  Simon Josefsson  <simon@josefsson.org>
26161
26162         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
26163         are needed from arpa/inet.h.
26164         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
26165         Reported by Bruno Haible.
26166
26167 2008-05-02  Jim Meyering  <meyering@redhat.com>
26168
26169         avoid compilation error on FreeBSD 6
26170         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
26171
26172 2008-05-01  Jim Meyering  <meyering@redhat.com>
26173
26174         useless-if-before-free: correct --help's exit status description
26175         * build-aux/useless-if-before-free (usage): Like grep, exit 0
26176         for one or more matches, etc.  Reported by Bruno Haible.
26177
26178         vc-list-files: make the stand-alone gnulib test work
26179         * modules/vc-list-files-tests (configure.ac):
26180         Define and AC_SUBST abs_aux_dir.
26181         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
26182         $(abs_top_srcdir) to each script and having each of them
26183         duplicate the work of setting PATH, set PATH here, using
26184         the new variable, abs_aux_dir instead.
26185         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
26186         * tests/test-vc-list-files-git.sh: Likewise.
26187         Reported by Bruno Haible.
26188
26189 2008-05-01  Bruno Haible  <bruno@clisp.org>
26190
26191         * lib/getndelim2.c (getndelim2): Fix newsize computation during
26192         reallocation. Rename 'done' to 'found_delimiter'.
26193
26194 2008-05-01  Jim Meyering  <meyering@redhat.com>
26195
26196         vc-list-files: accommodate /bin/sh like the one from Solaris 10
26197         * build-aux/vc-list-files: Use `...`, not $(...).
26198
26199 2008-04-30  Jim Meyering  <meyering@redhat.com>
26200
26201         add tests for vc-list-files
26202         * modules/vc-list-files-tests: New module.
26203         * tests/test-vc-list-files-cvs.sh: New file.
26204         * tests/test-vc-list-files-git.sh: New file.
26205
26206         avoid a warning from gcc
26207         * lib/getndelim2.c (IF_LINT): Define.
26208         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
26209
26210         vc-list-files: work properly with build-aux/cvsu, too
26211         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
26212         to all cvs-based clauses.
26213
26214         vc-list-files: work properly in the CVS+awk case, too
26215         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
26216
26217         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
26218         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
26219         take more than one file argument, so .  Add quotes, just in case $dir
26220         ever contains a shell meta-character.  Prompted by Soren Hansen in
26221         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
26222
26223 2008-04-29  Eric Blake  <ebb9@byu.net>
26224
26225         Optimize getndelim2 to use block operations when possible.
26226         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
26227         freadseek, and memchr2.
26228         * lib/getndelim2.c (getndelim2): Use them for block reads.
26229
26230 2008-04-29  Bruno Haible  <bruno@clisp.org>
26231
26232         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
26233         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
26234         * modules/inet_ntop (Depends-on): Add extensions.
26235         * modules/inet_pton (Depends-on): Likewise.
26236         Reported by Simon Josefsson.
26237
26238 2008-04-29  Jim Meyering  <meyering@redhat.com>
26239
26240         When the is more than one match in a block, match all of them.
26241         * build-aux/useless-if-before-free: Iterate through each block
26242         until there are no more matches.
26243
26244         Fix broken useless-if-before-free script.
26245         * build-aux/useless-if-before-free: Fix typo: missing "?" after
26246         the expression to match cast of argument to free-like function.
26247
26248 2008-04-29  Eric Blake  <ebb9@byu.net>
26249
26250         Use new header.
26251         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
26252
26253 2008-04-29  Jim Meyering  <meyering@redhat.com>
26254
26255         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
26256         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
26257         by gnulib to exist and to declare e.g., inet_ntop.
26258         Don't include "inet_ntop.h", now removed.
26259
26260         * m4/arpa_inet_h.m4: Remove trailing blanks.
26261
26262 2008-04-29  Eric Blake  <ebb9@byu.net>
26263
26264         Silence valgrind on safe reads beyond potential array bounds.
26265         * lib/rawmemchr.valgrind: New file.
26266         * lib/strchrnul.valgrind: Likewise.
26267         * modules/rawmemchr (Files): Distribute new file.
26268         * modules/strchrnul (Files): Likewise.
26269         Suggested by Bruno Haible.
26270
26271 2008-04-29  Bruno Haible  <bruno@clisp.org>
26272
26273         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
26274         (inet_ntop, inet_pton): Change portability warning's wording.
26275         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
26276         Invoke gl_CHECK_NEXT_HEADERS.
26277         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
26278         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
26279         set ARPA_INET_H.
26280         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
26281         * modules/arpa_inet (Description): No longer only for systems that
26282         lack it.
26283         (Depends-on): Add include_next.
26284         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
26285         HAVE_ARPA_INET_H.
26286
26287 2008-04-29  Jim Meyering  <meyering@redhat.com>
26288
26289         * modules/mkdir (License): Re-license as LGPLv2+.
26290
26291 2008-04-29  Bruno Haible  <bruno@clisp.org>
26292
26293         * modules/rawmemchr (Maintainer): Set to Eric.
26294         * modules/strchrnul (Maintainer): Likewise.
26295
26296 2008-04-29  Simon Josefsson  <simon@josefsson.org>
26297
26298         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
26299         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
26300
26301         * modules/arpa_inet (arpa/inet.h): Use them.
26302
26303 2008-04-28  Eric Blake  <ebb9@byu.net>
26304
26305         Test getndelim2.
26306         * modules/getndelim2-tests: New file.
26307         * tests/test-getndelim2.c: Likewise.
26308         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
26309         stream.
26310         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
26311
26312         * MODULES.html.sh: Document new module.
26313
26314 2008-04-20  Bruno Haible  <bruno@clisp.org>
26315
26316         * lib/c-stack.c (die): Use raise.
26317         * modules/c-stack (Depends-on): Add raise.
26318
26319 2008-04-28  Bruno Haible  <bruno@clisp.org>
26320
26321         Expect rpmatch to be declared.
26322         * lib/yesno.c (rpmatch): Remove declaration.
26323
26324         Declare rpmatch.
26325         * lib/stdlib.in.h (rpmatch): New declaration.
26326         * lib/rpmatch.c: Include <stdlib.h> first.
26327         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
26328         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
26329         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
26330         HAVE_RPMATCH.
26331         * modules/rpmatch (Depends-on): Add stdlib, extensions.
26332         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26333         (Include): Set to <stdlib.h>.
26334         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
26335         HAVE_RPMATCH.
26336         * NEWS: Document the change.
26337
26338 2008-04-28  Bruno Haible  <bruno@clisp.org>
26339
26340         Change rpmatch to use nl_langinfo when appropriate.
26341         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
26342         (N_): New macro.
26343         (localized_pattern): New function/macro.
26344         (try): Remove match, nomatch arguments. Copy the pattern into safe
26345         memory before caching it.
26346         (rpmatch): Use localized_pattern. Add translator comments.
26347         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
26348         Suggested by Eric Blake.
26349         * modules/rpmatch (Depends-on): Add stdbool.
26350
26351 2008-04-28  Eric Blake  <ebb9@byu.net>
26352
26353         Add rawmemchr module, matching glibc.
26354         * modules/string (Makefile.am): New indicator.
26355         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
26356         * lib/string.in.h (rawmemchr): Declare when appropriate.
26357         * modules/rawmemchr: New file.
26358         * m4/rawmemchr.m4: Likewise.
26359         * lib/rawmemchr.c: Likewise.
26360         * modules/rawmemchr-tests: Likewise.
26361         * tests/test-rawmemchr.c: Likewise.
26362         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
26363         module.
26364         * modules/strchrnul (Depends-on): Add rawmemchr.
26365         * lib/strchrnul.c (strchrnul): Optimize a corner case.
26366
26367         Whitespace cleanup.
26368         * tests/test-strchrnul.c: Reindent.
26369         * lib/strchrnul.c: Likewise.
26370
26371         Optimize and test strchrnul.
26372         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
26373         * modules/strchrnul-tests: New file.
26374         * tests/test-strchrnul.c: Likewise.
26375
26376         Remove intprops dependency.
26377         * modules/memchr (Depends-on): Remove intprops.
26378         * modules/memrchr (Depends-on): Likewise.
26379         * modules/memchr2 (Depends-on): Likewise.
26380         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
26381         * lib/memrchr.c (__memrchr): Likewise.
26382         * lib/memrchr2.c (memchr2): Likewise.
26383         Reported by Simon Josefsson.
26384
26385 2008-04-28  Simon Josefsson  <simon@josefsson.org>
26386
26387         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
26388         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26389
26390 2008-04-28  Simon Josefsson  <simon@josefsson.org>
26391
26392         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
26393
26394         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
26395
26396         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
26397
26398         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
26399         declarations.
26400         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
26401
26402         * m4/inet_pton.m4: Don't check for header files.
26403
26404         * m4/inet_ntop.m4: Don't check for header files.
26405
26406 2008-04-28  Simon Josefsson  <simon@josefsson.org>
26407
26408         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
26409         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
26410         trigger for cygwin).
26411         Reported by Bruno Haible  <bruno@clisp.org>.
26412
26413 2008-04-28  Bruno Haible  <bruno@clisp.org>
26414
26415         * doc/posix-functions/strdup.texi: Mention mingw problem.
26416
26417 2008-04-27  Bruno Haible  <bruno@clisp.org>
26418
26419         * modules/stat-time-tests (Depends-on): Add sleep.
26420         * tests/test-stat-time.c (force_unlink): New function.
26421         (cleanup): Use it.
26422         (test_mtime): Remove the ctime related tests.
26423         (test_ctime): New function, containing the ctime related tests.
26424         (main): Call test_ctime, except on native Windows platforms.
26425
26426 2008-04-27  Bruno Haible  <bruno@clisp.org>
26427
26428         * lib/rpmatch.c (rpmatch): Add some comments.
26429         Reported by James Youngman <jay@gnu.org>.
26430
26431 2008-04-27  Bruno Haible  <bruno@clisp.org>
26432
26433         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
26434         quiet NaNs.
26435
26436 2008-04-27  Bruno Haible  <bruno@clisp.org>
26437
26438         Make test-yesno.sh work on mingw.
26439         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
26440         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
26441         (main): Set stdin to binary mode.
26442         * modules/yesno-tests (Depends-on): Add binary-io.
26443
26444 2008-04-27  Bruno Haible  <bruno@clisp.org>
26445
26446         Fix 'isfinite' on x86, x86_64, ia64 platforms.
26447         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
26448         argument that lie outside the IEEE 854 domain.
26449         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
26450         (gl_ISFINITE): Use it.
26451         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
26452
26453 2008-04-27  Bruno Haible  <bruno@clisp.org>
26454
26455         Allow local renaming in config.h.
26456         * lib/memrchr.c (memrchr): Don't undefine outside libc.
26457
26458 2008-04-27  Bruno Haible  <bruno@clisp.org>
26459
26460         * lib/memchr.c (__memchr): Change type of 'i'.
26461         * lib/memchr2.c (memchr2): Likewise.
26462
26463 2008-04-26  Eric Blake  <ebb9@byu.net>
26464         and Bruno Haible  <bruno@clisp.org>
26465
26466         Optimize and test memrchr.
26467         * modules/memrchr (Depends-on): Add intprops.
26468         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
26469         * modules/memrchr-tests: New file.
26470         * tests/test-memrchr.c: New file.
26471
26472 2008-04-26  Bruno Haible  <bruno@clisp.org>
26473
26474         Add tentative support for DragonFly BSD.
26475         * lib/stdio-impl.h: Add macros for DragonFly BSD.
26476         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
26477         fp.
26478         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
26479         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
26480         * lib/fpurge.c (fpurge): Likewise.
26481         * lib/freadable.c (freaadable): Likewise.
26482         * lib/freadahead.c (freadahead): Likewise.
26483         * lib/freading.c (freading): Likewise.
26484         * lib/freadptr.c (freadptr): Likewise.
26485         * lib/freadseek.c (freadptrinc): Likewise.
26486         * lib/fseeko.c (fseeko): Likewise.
26487         * lib/fseterr.c (fseterr): Likewise.
26488         * lib/fwritable.c (fwritable): Likewise.
26489         * lib/fwriting.c (fwriting): Likewise.
26490
26491 2008-04-26  Bruno Haible  <bruno@clisp.org>
26492
26493         * lib/stdio-impl.h: New file.
26494         * lib/fbufmode.c: Include stdio-impl.h.
26495         (fbufmode): Use fp_, remove redundant #defines.
26496         * lib/fflush.c: Include stdio-impl.h.
26497         (clear_ungetc_buffer): Remove redundant #defines.
26498         * lib/fpurge.c: Include stdio-impl.h.
26499         (fpurge): Remove redundant #defines.
26500         * lib/freadable.c: Include stdio-impl.h.
26501         (freadable): Remove redundant #defines.
26502         * lib/freadahead.c: Include stdio-impl.h.
26503         (freadahead): Remove redundant #defines.
26504         * lib/freading.c: Include stdio-impl.h.
26505         (freading): Remove redundant #defines.
26506         * lib/freadptr.c: Include stdio-impl.h.
26507         (freadptr): Remove redundant #defines.
26508         * lib/freadseek.c: Include stdio-impl.h.
26509         (freadptrinc): Remove redundant #defines.
26510         * lib/fseeko.c: Include stdio-impl.h.
26511         (rpl_fseeko): Remove redundant #defines.
26512         * lib/fseterr.c: Include stdio-impl.h.
26513         (fseterr): Remove redundant #defines.
26514         * lib/fwritable.c: Include stdio-impl.h.
26515         (fwritable: Remove redundant #defines.
26516         * lib/fwriting.c: Include stdio-impl.h.
26517         (fwriting): Remove redundant #defines.
26518         * modules/fbufmode (Files): Add lib/stdio-impl.h.
26519         * modules/fflush (Files): Likewise.
26520         * modules/fpurge (Files): Likewise.
26521         * modules/freadable (Files): Likewise.
26522         * modules/freadahead (Files): Likewise.
26523         * modules/freading (Files): Likewise.
26524         * modules/freadptr (Files): Likewise.
26525         * modules/freadseek (Files): Likewise.
26526         * modules/fseeko (Files): Likewise.
26527         * modules/fseterr (Files): Likewise.
26528         * modules/fwritable (Files): Likewise.
26529         * modules/fwriting (Files): Likewise.
26530
26531 2008-04-26  Bruno Haible  <bruno@clisp.org>
26532
26533         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
26534         restore_seek_optimization, update_fpos_cache): New functions, extracted
26535         from rpl_fflush.
26536         (rpl_fflush): Use them.
26537         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
26538         (gl_REPLACE_FFLUSH): Use it.
26539
26540 2008-04-26  Bruno Haible  <bruno@clisp.org>
26541
26542         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
26543         on Solaris.
26544         * tests/test-xstrtoimax.sh: Likewise.
26545         * tests/test-xstrtoumax.sh: Likewise.
26546         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26547
26548 2008-04-26  Bruno Haible  <bruno@clisp.org>
26549
26550         * modules/memchr-tests: New file.
26551         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
26552
26553 2008-04-26  Eric Blake  <ebb9@byu.net>
26554             Bruno Haible  <bruno@clisp.org>
26555
26556         * lib/memchr.c: Include intprops.h.
26557         (__memchr): Optimize parallel detection of matching bytes. Rename local
26558         variables. Add explanatory comments.
26559
26560 2008-04-26  Bruno Haible  <bruno@clisp.org>
26561
26562         Fix module 'memchr', broken since 2000-10-28.
26563         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
26564
26565 2008-04-26  Bruno Haible  <bruno@clisp.org>
26566
26567         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
26568         comments.
26569
26570 2008-04-25  Eric Blake  <ebb9@byu.net>
26571
26572         Use native fstatat on cygwin 1.7.0.
26573         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
26574         first.
26575
26576 2008-04-23  Eric Blake  <ebb9@byu.net>
26577
26578         Improve memchr2 performance.
26579         * lib/memchr2.c (memchr2): Further optimize parallel detection of
26580         NUL bytes.
26581         * modules/memchr2 (Depends-on): Use intprops.h.
26582
26583 2008-04-23  Simon Josefsson  <simon@josefsson.org>
26584
26585         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
26586         an inline function instead of a CPP macro.  Patch by Ben Pfaff
26587         <blp@cs.stanford.edu>.
26588
26589 2008-04-23  Simon Josefsson  <simon@josefsson.org>
26590
26591         * lib/arpa_inet.in.h: New file.
26592
26593         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
26594         (Makefile.am): Sed in substitute header file.
26595
26596         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
26597         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
26598
26599         * modules/inet_ntop (configure.ac): Use
26600         gl_ARPA_INET_MODULE_INDICATOR.
26601
26602         * modules/inet_pton (configure.ac): Use
26603         gl_ARPA_INET_MODULE_INDICATOR.
26604
26605 2008-04-22  Jim Meyering  <meyering@redhat.com>
26606
26607         * modules/verify (License): Re-license as LGPLv2+.
26608
26609 2008-04-22  Simon Josefsson  <simon@josefsson.org>
26610
26611         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
26612         parameter to void* as per POSIX standard (MinGW uses char*).
26613
26614 2008-04-21  Bruno Haible  <bruno@clisp.org>
26615
26616         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
26617         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
26618         Define to replacements if REPLACE_ISWCNTRL is 1.
26619         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
26620         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
26621         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
26622         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
26623         what it fixes.
26624         * doc/posix-functions/iswalpha.texi: Likewise.
26625         * doc/posix-functions/iswblank.texi: Likewise.
26626         * doc/posix-functions/iswcntrl.texi: Likewise.
26627         * doc/posix-functions/iswdigit.texi: Likewise.
26628         * doc/posix-functions/iswgraph.texi: Likewise.
26629         * doc/posix-functions/iswlower.texi: Likewise.
26630         * doc/posix-functions/iswprint.texi: Likewise.
26631         * doc/posix-functions/iswpunct.texi: Likewise.
26632         * doc/posix-functions/iswspace.texi: Likewise.
26633         * doc/posix-functions/iswupper.texi: Likewise.
26634         * doc/posix-functions/iswxdigit.texi: Likewise.
26635         Reported by Alain Guibert.
26636
26637 2008-04-21  Bruno Haible  <bruno@clisp.org>
26638
26639         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
26640         Patch by Alain Guibert.
26641
26642 2008-04-21  Bruno Haible  <bruno@clisp.org>
26643
26644         Fix test failures on mingw.
26645         * tests/test-xstrtol.c (print_no_progname): New function.
26646         (main): Install it in error_print_progname hook.
26647         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
26648         * tests/test-xstrtoimax.sh: Likewise.
26649         * tests/test-xstrtoumax.sh: Likewise.
26650
26651 2008-04-21  Bruno Haible  <bruno@clisp.org>
26652
26653         Fix test failure on mingw.
26654         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
26655
26656 2008-04-21  Bruno Haible  <bruno@clisp.org>
26657
26658         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
26659         Actually assign a value.
26660
26661 2008-04-20  Bruno Haible  <bruno@clisp.org>
26662
26663         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
26664         take 2.
26665         * lib/canonicalize.c (canonicalize_file_name): Elide if the
26666         'canonicalize-lgpl' module is also used.
26667         * lib/canonicalize-lgpl.c: Undo last change.
26668         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
26669
26670 2008-04-20  Bruno Haible  <bruno@clisp.org>
26671
26672         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
26673         config.h. Provide _mkdir based fallback for mingw.
26674         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
26675         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
26676         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
26677         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
26678         rather than defining mkdir in config.h.
26679         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
26680         (gl_SYS_STAT_H_DEFAULTS): New macro.
26681         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
26682         HAVE_IO_H any more.
26683         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
26684         HAVE_DECL_MKDIR and HAVE_IO_H.
26685
26686 2008-04-20  Bruno Haible  <bruno@clisp.org>
26687
26688         * lib/isapipe.c: Port to native Windows platforms.
26689
26690 2008-04-20  Bruno Haible  <bruno@clisp.org>
26691
26692         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
26693
26694 2008-04-21  Eric Blake  <ebb9@byu.net>
26695
26696         Work around preprocessors that don't handle UINTMAX_MAX.
26697         * lib/memchr2.c (memchr2): Avoid embedded #if.
26698         Reported by Alain Guibert, fix suggested by Bruno Haible.
26699
26700 2008-04-21  Simon Josefsson  <simon@josefsson.org>
26701
26702         * doc/posix-functions/strftime.texi (strftime): Explain better
26703         Windows incompatibility.  Suggested by Micah Cowan
26704         <micah@cowan.name>.
26705
26706 2008-04-20  Bruno Haible  <bruno@clisp.org>
26707
26708         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
26709         unistr/u8-mblen.
26710
26711 2008-04-20  Bruno Haible  <bruno@clisp.org>
26712
26713         Fix test failure on platforms with non-GNU iconv.
26714         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
26715         (U_TO_U8): Use it, rather than u16_to_u8.
26716         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
26717         units at the end of the input string.
26718         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
26719
26720 2008-04-20  Bruno Haible  <bruno@clisp.org>
26721
26722         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
26723         when the resulting length is 0.
26724         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
26725
26726 2008-04-20  Bruno Haible  <bruno@clisp.org>
26727
26728         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
26729         works.
26730         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
26731
26732 2008-04-20  Bruno Haible  <bruno@clisp.org>
26733
26734         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
26735         * modules/tsearch-tests (configure.ac): Test for initstate function.
26736
26737 2008-04-20  Bruno Haible  <bruno@clisp.org>
26738
26739         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
26740         for nlink_t if missing.
26741         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
26742
26743 2008-04-19  Bruno Haible  <bruno@clisp.org>
26744
26745         Work around snprintf bug on Linux libc5.
26746         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
26747         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
26748         gl_SNPRINTF_SIZE1.
26749         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26750         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
26751         that test failed.
26752         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
26753         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
26754         * modules/snprintf (Files): Add m4/printf.m4.
26755         * modules/vsnprintf (Files): Likewise.
26756         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
26757         * doc/posix-functions/vsnprintf.texi: Likewise.
26758
26759 2008-04-19  Bruno Haible  <bruno@clisp.org>
26760
26761         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
26762         from 0.0058 to less than 10^-7.
26763
26764 2008-04-19  Bruno Haible  <bruno@clisp.org>
26765
26766         Fix rounding when a precision is given.
26767         * lib/vasnprintf.c (is_borderline): New function.
26768         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
26769         9...9x.
26770         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
26771         %e, %g.
26772         * tests/test-vasprintf-posix.c (test_function): Likewise.
26773         * tests/test-snprintf-posix.h (test_function): Likewise.
26774         * tests/test-sprintf-posix.h (test_function): Likewise.
26775         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
26776         * tests/test-printf-posix.h (test_function): Likewise.
26777         * tests/test-printf-posix.output: Update.
26778         Reported by John Darrington <john@darrington.wattle.id.au> via
26779         Ben Pfaff <blp@cs.stanford.edu>.
26780
26781 2008-04-18  Simon Josefsson  <simon@josefsson.org>
26782
26783         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
26784         Suggested by Bruno Haible <bruno@clisp.org>.
26785
26786 2008-04-17  Bruno Haible  <bruno@clisp.org>
26787
26788         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
26789         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
26790         implementation.
26791         Patch by Bruce Merry <bmerry@gmail.com>.
26792
26793 2008-04-17  Simon Josefsson  <simon@josefsson.org>
26794
26795         * doc/posix-functions/strftime.texi (strftime): Mention that %e
26796         doesn't work under Windows.
26797
26798 2008-04-16  Bruno Haible  <bruno@clisp.org>
26799
26800         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
26801         New macros.
26802         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
26803         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
26804         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
26805         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
26806         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
26807         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
26808         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
26809         macros.
26810         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
26811         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
26812         Northern Sotho, Uighur.
26813
26814 2008-04-16  Bruno Haible  <bruno@clisp.org>
26815
26816         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
26817         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
26818         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
26819         Reported by Daniel Bergström <daniel@octocode.com>.
26820
26821 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
26822             Bruno Haible  <bruno@clisp.org>
26823
26824         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
26825         function.
26826         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
26827         New functions, mostly extracted from gl_locale_name_default.
26828         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
26829
26830 2008-04-16  Eric Blake  <ebb9@byu.net>
26831
26832         Adjust strtod detection to catch glibc 2.7 bug.
26833         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
26834         Reported by John Gatewood Ham.
26835
26836 2008-04-16  Bruno Haible  <bruno@clisp.org>
26837
26838         Add tentative support for Linux libc5.
26839         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
26840         * lib/fpurge.c (fpurge): Likewise.
26841         * lib/freadable.c (freadable): Likewise.
26842         * lib/freadahead.c (freadahead): Likewise.
26843         * lib/freading.c (freading): Likewise.
26844         * lib/freadptr.c (freadptr): Likewise.
26845         * lib/freadseek.c (freadptrinc): Likewise.
26846         * lib/fseeko.c (rpl_fseeko): Likewise.
26847         * lib/fseterr.c (fseterr): Likewise.
26848         * lib/fwritable.c (fwritable): Likewise.
26849         * lib/fwriting.c (fwriting): Likewise.
26850         Reported by Alain Guibert <alguibert+bts@free.fr>.
26851
26852 2008-04-15  Bruno Haible  <bruno@clisp.org>
26853
26854         * modules/mathl (configure.ac): Define module indicator.
26855
26856 2008-04-15  Bruno Haible  <bruno@clisp.org>
26857
26858         * lib/logl.c (logl): Remove unused variables.
26859
26860 2008-04-15  Bruno Haible  <bruno@clisp.org>
26861
26862         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
26863         fails.
26864
26865 2008-04-15  Bruno Haible  <bruno@clisp.org>
26866
26867         * lib/trim.c (trim2): Fix argument of isspace() macro.
26868
26869 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
26870
26871         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
26872         to 0.
26873         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
26874
26875 2008-04-14  Bruno Haible  <bruno@clisp.org>
26876
26877         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
26878         AC_LANG_PROGRAM argument.
26879         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
26880         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
26881         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26882         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
26883         * m4/math_h.m4 (gl_MATH_H): Likewise.
26884         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
26885         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26886         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
26887         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
26888         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
26889         * m4/regex.m4 (gl_REGEX): Likewise.
26890         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
26891         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
26892         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26893         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
26894         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
26895         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
26896         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26897         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
26898
26899 2008-04-14  Jim Meyering  <meyering@redhat.com>
26900
26901         test-strtod: fix typos: s/abs/fabs/
26902         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
26903
26904 2008-04-13  Bruno Haible  <bruno@clisp.org>
26905
26906         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
26907         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
26908         module is also used and while not building the reloc-wrapper.
26909
26910 2008-04-13  Bruno Haible  <bruno@clisp.org>
26911
26912         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
26913
26914 2008-04-13  Bruno Haible  <bruno@clisp.org>
26915
26916         Fix AIX compilation failure introduced on 2008-04-02.
26917         * tests/test-frexp.c (exp): Undefine before redefining.
26918         * tests/test-frexpl.c (exp): Likewise.
26919
26920 2008-04-13  Bruno Haible  <bruno@clisp.org>
26921
26922         Work around a HP-UX stdio bug.
26923         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
26924         * tests/test-ftello.c (main): Likewise.
26925         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
26926         * doc/posix-functions/ftello.texi: Likewise.
26927
26928 2008-04-13  Bruno Haible  <bruno@clisp.org>
26929
26930         Make test-signbit pass on HP-UX/hppa.
26931         * tests/test-signbit.c (minus_zerol): New variable.
26932         (test_signbitl): Use it.
26933
26934 2008-04-13  Bruno Haible  <bruno@clisp.org>
26935
26936         Make truncl work on OSF/1 4.0.
26937         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
26938         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
26939         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
26940         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
26941         HAVE_DECL_TRUNCL.
26942         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
26943         HAVE_DECL_TRUNCL.
26944         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
26945
26946 2008-04-13  Bruno Haible  <bruno@clisp.org>
26947
26948         * lib/unictype.h: Remove trailing comma from enumeration definitions.
26949
26950 2008-04-13  Bruno Haible  <bruno@clisp.org>
26951
26952         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
26953         expression, so as to avoid HP-UX 11 cc compiler bug.
26954
26955 2008-04-13  Bruno Haible  <bruno@clisp.org>
26956
26957         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
26958
26959 2008-04-13  Bruno Haible  <bruno@clisp.org>
26960
26961         * lib/git-merge-changelog.c: Remove empty declaration outside of
26962         functions.
26963
26964 2008-04-13  Bruno Haible  <bruno@clisp.org>
26965
26966         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
26967
26968 2008-04-13  Bruno Haible  <bruno@clisp.org>
26969
26970         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
26971         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
26972         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
26973         also if it exists but lacks definitions of the SHUT_* macros.
26974         * modules/sys_socket (Description): Update.
26975         Reported by Elbert Pol <e.pol@chello.nl>.
26976
26977 2008-04-13  Bruno Haible  <bruno@clisp.org>
26978
26979         * lib/localcharset.c (OS2): Don't redefine if already defined.
26980         Reported by Elbert Pol <e.pol@chello.nl>.
26981
26982 2008-04-13  Bruno Haible  <bruno@clisp.org>
26983
26984         * lib/binary-io.h [__EMX__]: Include <io.h>.
26985         Reported by Elbert Pol <e.pol@chello.nl>.
26986
26987 2008-04-12  Bruno Haible  <bruno@clisp.org>
26988
26989         * lib/fpucw.h: Enable the definitions also for x86_64.
26990         Needed for NetBSD/x86_64.
26991         Reported by Thomas Klausner <tk@giga.or.at>.
26992
26993 2008-04-12  Bruno Haible  <bruno@clisp.org>
26994
26995         * tests/test-strtod.c: Include isnand.h.
26996         (main): Use isnand instead of isnan.
26997         Reported by Jim Meyering.
26998
26999 2008-04-12  Bruno Haible  <bruno@clisp.org>
27000
27001         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
27002         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
27003
27004 2008-04-12  Jim Meyering  <meyering@redhat.com>
27005
27006         * m4/math_h.m4 (gl_MATH_H): Fix typos.
27007
27008 2008-04-12  Bruno Haible  <bruno@clisp.org>
27009
27010         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
27011         Reported by Elbert Pol <e.pol@chello.nl>.
27012
27013 2008-04-12  Eric Blake  <ebb9@byu.net>
27014
27015         Work around Solaris 10 math.h bug.
27016         * m4/math_h.m4 (gl_MATH_H): Check for bug.
27017         (gl_MATH_H_DEFAULTS): Set up default.
27018         * modules/math (Makefile.am): Replace new indicators.
27019         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
27020         * tests/test-math.c (main): Test this.
27021         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
27022         * doc/posix-headers/math.texi (math.h): Mention bug.
27023         Reported by Nelson H. F. Beebe and Jim Meyering.
27024
27025 2008-04-11  Bruno Haible  <bruno@clisp.org>
27026
27027         Adapt to future versions of Apple GCC.
27028         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
27029         Reported by Peter O'Gorman <peter@pogma.com>.
27030
27031 2008-04-11  Bruno Haible  <bruno@clisp.org>
27032
27033         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
27034
27035 2008-04-11  Bruno Haible  <bruno@clisp.org>
27036
27037         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
27038
27039         * modules/getaddrinfo-tests (Makefile.am): Define
27040         test_getaddrinfo_LDADD.
27041
27042 2008-04-11  Bruno Haible  <bruno@clisp.org>
27043
27044         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
27045         (init): Fix syntax error.
27046         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
27047         is declared.
27048
27049 2008-04-11  Bruno Haible  <bruno@clisp.org>
27050
27051         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
27052         * modules/glob (Depends-on): Add stdbool.
27053
27054 2008-04-11  Bruno Haible  <bruno@clisp.org>
27055
27056         * lib/trim.c: Include <string.h>.
27057
27058 2008-04-11  Eric Blake  <ebb9@byu.net>
27059
27060         Avoid compile failure on OS/2.
27061         * lib/regex_internal.h (internal_function): Disable optimization
27062         on OS/2 (__EMX__), where it caused compiler error.
27063         Reported by Elbert Pol.
27064
27065 2008-04-11  Bruno Haible  <bruno@clisp.org>
27066
27067         Flush the standard error stream before aborting. Needed on mingw.
27068         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
27069         * tests/test-array_list.c (ASSERT): Likewise.
27070         * tests/test-array_oset.c (ASSERT): Likewise.
27071         * tests/test-avltree_list.c (ASSERT): Likewise.
27072         * tests/test-avltree_oset.c (ASSERT): Likewise.
27073         * tests/test-avltreehash_list.c (ASSERT): Likewise.
27074         * tests/test-binary-io.c (ASSERT): Likewise.
27075         * tests/test-byteswap.c (ASSERT): Likewise.
27076         * tests/test-c-ctype.c (ASSERT): Likewise.
27077         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
27078         * tests/test-c-strcasestr.c (ASSERT): Likewise.
27079         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
27080         * tests/test-c-strstr.c (ASSERT): Likewise.
27081         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
27082         * tests/test-canonicalize.c (ASSERT): Likewise.
27083         * tests/test-carray_list.c (ASSERT): Likewise.
27084         * tests/test-ceilf1.c (ASSERT): Likewise.
27085         * tests/test-ceilf2.c (ASSERT): Likewise.
27086         * tests/test-ceill.c (ASSERT): Likewise.
27087         * tests/test-count-one-bits.c (ASSERT): Likewise.
27088         * tests/test-fbufmode.c (ASSERT): Likewise.
27089         * tests/test-fflush2.c (ASSERT): Likewise.
27090         * tests/test-floorf1.c (ASSERT): Likewise.
27091         * tests/test-floorf2.c (ASSERT): Likewise.
27092         * tests/test-floorl.c (ASSERT): Likewise.
27093         * tests/test-fopen.c (ASSERT): Likewise.
27094         * tests/test-fpending.c (ASSERT): Likewise.
27095         * tests/test-fprintf-posix.c (ASSERT): Likewise.
27096         * tests/test-fpurge.c (ASSERT): Likewise.
27097         * tests/test-freadable.c (ASSERT): Likewise.
27098         * tests/test-freadahead.c (ASSERT): Likewise.
27099         * tests/test-freading.c (ASSERT): Likewise.
27100         * tests/test-freadptr.c (ASSERT): Likewise.
27101         * tests/test-freadptr2.c (ASSERT): Likewise.
27102         * tests/test-freadseek.c (ASSERT): Likewise.
27103         * tests/test-freopen.c (ASSERT): Likewise.
27104         * tests/test-frexp.c (ASSERT): Likewise.
27105         * tests/test-frexpl.c (ASSERT): Likewise.
27106         * tests/test-fseek.c (ASSERT): Likewise.
27107         * tests/test-fseeko.c (ASSERT): Likewise.
27108         * tests/test-fstrcmp.c (ASSERT): Likewise.
27109         * tests/test-ftell.c (ASSERT): Likewise.
27110         * tests/test-ftello.c (ASSERT): Likewise.
27111         * tests/test-func.c (ASSERT): Likewise.
27112         * tests/test-fwritable.c (ASSERT): Likewise.
27113         * tests/test-fwriting.c (ASSERT): Likewise.
27114         * tests/test-getdelim.c (ASSERT): Likewise.
27115         * tests/test-getline.c (ASSERT): Likewise.
27116         * tests/test-i-ring.c (ASSERT): Likewise.
27117         * tests/test-iconv-utf.c (ASSERT): Likewise.
27118         * tests/test-iconv.c (ASSERT): Likewise.
27119         * tests/test-isfinite.c (ASSERT): Likewise.
27120         * tests/test-isnand.c (ASSERT): Likewise.
27121         * tests/test-isnanf.c (ASSERT): Likewise.
27122         * tests/test-isnanl.h (ASSERT): Likewise.
27123         * tests/test-ldexpl.c (ASSERT): Likewise.
27124         * tests/test-linked_list.c (ASSERT): Likewise.
27125         * tests/test-linkedhash_list.c (ASSERT): Likewise.
27126         * tests/test-localename.c (ASSERT): Likewise.
27127         * tests/test-lseek.c (ASSERT): Likewise.
27128         * tests/test-mbscasecmp.c (ASSERT): Likewise.
27129         * tests/test-mbscasestr1.c (ASSERT): Likewise.
27130         * tests/test-mbscasestr2.c (ASSERT): Likewise.
27131         * tests/test-mbscasestr3.c (ASSERT): Likewise.
27132         * tests/test-mbscasestr4.c (ASSERT): Likewise.
27133         * tests/test-mbschr.c (ASSERT): Likewise.
27134         * tests/test-mbscspn.c (ASSERT): Likewise.
27135         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
27136         * tests/test-mbspbrk.c (ASSERT): Likewise.
27137         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
27138         * tests/test-mbsrchr.c (ASSERT): Likewise.
27139         * tests/test-mbsspn.c (ASSERT): Likewise.
27140         * tests/test-mbsstr1.c (ASSERT): Likewise.
27141         * tests/test-mbsstr2.c (ASSERT): Likewise.
27142         * tests/test-mbsstr3.c (ASSERT): Likewise.
27143         * tests/test-memchr2.c (ASSERT): Likewise.
27144         * tests/test-memmem.c (ASSERT): Likewise.
27145         * tests/test-open.c (ASSERT): Likewise.
27146         * tests/test-printf-frexp.c (ASSERT): Likewise.
27147         * tests/test-printf-frexpl.c (ASSERT): Likewise.
27148         * tests/test-printf-posix.c (ASSERT): Likewise.
27149         * tests/test-quotearg.c (ASSERT): Likewise.
27150         * tests/test-rbtree_list.c (ASSERT): Likewise.
27151         * tests/test-rbtree_oset.c (ASSERT): Likewise.
27152         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
27153         * tests/test-round1.c (ASSERT): Likewise.
27154         * tests/test-roundf1.c (ASSERT): Likewise.
27155         * tests/test-roundl.c (ASSERT): Likewise.
27156         * tests/test-signbit.c (ASSERT): Likewise.
27157         * tests/test-sleep.c (ASSERT): Likewise.
27158         * tests/test-snprintf-posix.c (ASSERT): Likewise.
27159         * tests/test-snprintf.c (ASSERT): Likewise.
27160         * tests/test-sprintf-posix.c (ASSERT): Likewise.
27161         * tests/test-stat-time.c (ASSERT): Likewise.
27162         * tests/test-strcasestr.c (ASSERT): Likewise.
27163         * tests/test-strerror.c (ASSERT): Likewise.
27164         * tests/test-striconv.c (ASSERT): Likewise.
27165         * tests/test-striconveh.c (ASSERT): Likewise.
27166         * tests/test-striconveha.c (ASSERT): Likewise.
27167         * tests/test-strsignal.c (ASSERT): Likewise.
27168         * tests/test-strstr.c (ASSERT): Likewise.
27169         * tests/test-strtod.c (ASSERT): Likewise.
27170         * tests/test-trunc1.c (ASSERT): Likewise.
27171         * tests/test-trunc2.c (ASSERT): Likewise.
27172         * tests/test-truncf1.c (ASSERT): Likewise.
27173         * tests/test-truncf2.c (ASSERT): Likewise.
27174         * tests/test-truncl.c (ASSERT): Likewise.
27175         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
27176         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
27177         * tests/test-vasnprintf.c (ASSERT): Likewise.
27178         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
27179         * tests/test-vasprintf.c (ASSERT): Likewise.
27180         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
27181         * tests/test-vprintf-posix.c (ASSERT): Likewise.
27182         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
27183         * tests/test-vsnprintf.c (ASSERT): Likewise.
27184         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
27185         * tests/test-wcwidth.c (ASSERT): Likewise.
27186         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
27187         * tests/test-xprintf-posix.c (ASSERT): Likewise.
27188         * tests/test-xvasprintf.c (ASSERT): Likewise.
27189         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
27190         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
27191         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
27192         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
27193         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
27194         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
27195         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
27196         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
27197         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
27198         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
27199         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
27200         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
27201         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
27202         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
27203         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
27204         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
27205         * tests/unictype/test-block_list.c (ASSERT): Likewise.
27206         * tests/unictype/test-block_of.c (ASSERT): Likewise.
27207         * tests/unictype/test-block_test.c (ASSERT): Likewise.
27208         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
27209         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
27210         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
27211         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
27212         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
27213         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
27214         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
27215         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
27216         * tests/unictype/test-combining.c (ASSERT): Likewise.
27217         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
27218         * tests/unictype/test-digit.c (ASSERT): Likewise.
27219         * tests/unictype/test-mirror.c (ASSERT): Likewise.
27220         * tests/unictype/test-numeric.c (ASSERT): Likewise.
27221         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
27222         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
27223         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
27224         * tests/unictype/test-scripts.c (ASSERT): Likewise.
27225         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
27226         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
27227         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
27228         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
27229         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
27230         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
27231         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
27232         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
27233         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
27234         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
27235         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
27236         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
27237         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
27238         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
27239         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
27240         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
27241         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
27242         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
27243         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
27244         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
27245         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
27246         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
27247         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
27248         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
27249         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
27250         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
27251         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
27252         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
27253         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
27254         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
27255         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
27256         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
27257         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
27258         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
27259         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
27260         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
27261         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
27262         Reported by Eric Blake.
27263
27264 2008-04-11  Bruno Haible  <bruno@clisp.org>
27265
27266         * lib/wchar.in.h: Tweak comment.
27267
27268 2008-04-11  Bruno Haible  <bruno@clisp.org>
27269
27270         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
27271         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
27272         gl_COMMON.
27273         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
27274
27275 2008-04-11  Bruno Haible  <bruno@clisp.org>
27276
27277         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
27278
27279 2008-04-11  Simon Josefsson  <simon@josefsson.org>
27280
27281         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
27282         of attempting to use non-existing /dev/*random.  Based on patch
27283         from Adam Strzelecki <ono@java.pl> in
27284         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
27285
27286 2008-04-08  Bruno Haible  <bruno@clisp.org>
27287
27288         Add tentative support for emx+gcc.
27289         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
27290         * lib/fpurge.c (fpurge): Likewise.
27291         * lib/freadable.c (freadable): Likewise.
27292         * lib/freadahead.c (freadahead): Likewise.
27293         * lib/freading.c (freading): Likewise.
27294         * lib/freadptr.c (freadptr): Likewise.
27295         * lib/freadseek.c (freadptrinc): Likewise.
27296         * lib/fseeko.c (rpl_fseeko): Likewise.
27297         * lib/fseterr.c (fseterr): Likewise.
27298         * lib/fwritable.c (fwritable): Likewise.
27299         * lib/fwriting.c (fwriting): Likewise.
27300         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
27301
27302 2008-04-09  Eric Blake  <ebb9@byu.net>
27303
27304         Avoid some autoconf warnings.
27305         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
27306         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
27307         * m4/afs.m4 (gl_AFS): Likewise.
27308         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
27309         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
27310         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
27311         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
27312         (gl_INTEGER_TYPE_SUFFIX): Likewise.
27313         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
27314         (AC_CHECK_DECLS_ONCE): Likewise.
27315         Rename file...
27316         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
27317         gnulib-tool requires autoconf 2.59 or better.
27318         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
27319
27320 2008-04-08  Eric Blake  <ebb9@byu.net>
27321
27322         Use 'git describe --match' if present (added in git 1.5.5).
27323         * build-aux/git-version-gen: Limit result to tags that match 'v*'
27324         if possible.
27325
27326 2008-04-08  Bruno Haible  <bruno@clisp.org>
27327
27328         Add tentative support for OpenServer.
27329         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
27330         _ptr, _cnt.
27331         * lib/fpurge.c (fpurge): Likewise.
27332         * lib/freadable.c (freadable): Likewise.
27333         * lib/freadahead.c (freadahead): Likewise.
27334         * lib/freading.c (freading): Likewise.
27335         * lib/freadptr.c (freadptr): Likewise.
27336         * lib/freadseek.c (freadptrinc): Likewise.
27337         * lib/fseeko.c (rpl_fseeko): Likewise.
27338         * lib/fseterr.c (fseterr): Likewise.
27339         * lib/fwritable.c (fwritable): Likewise.
27340         * lib/fwriting.c (fwriting): Likewise.
27341         Reported by Roger Cornelius <rac@tenzing.org> and
27342         Brian K. White <brian@aljex.com>.
27343
27344 2008-04-06  Jim Meyering  <meyering@redhat.com>
27345
27346         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
27347
27348 2008-04-06  Bruno Haible  <bruno@clisp.org>
27349
27350         Avoid possible error with non-ASCII bytes in UTF-8 locales.
27351         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
27352         * tests/test-printf-posix.sh: Likewise.
27353         * tests/test-vfprintf-posix.sh: Likewise.
27354         * tests/test-vprintf-posix.sh: Likewise.
27355         * tests/test-xprintf-posix.sh: Likewise.
27356
27357 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27358
27359         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
27360         hide error from 'ls', needed on OS/2.
27361         Report by Elbert Pol <elbert.pol@gmail.com>.
27362
27363 2008-04-04  Eric Blake  <ebb9@byu.net>
27364
27365         Make test-fseeko.c failures meaningful.
27366         * tests/test-fseeko.c: Print line number on failure.
27367         * tests/test-fseek.c: Likewise.
27368         Reported by Nelson H. F. Beebe.
27369
27370         Improve strtod bug detection check.
27371         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
27372         required for Solaris 10.
27373         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
27374
27375 2008-04-04  Bruno Haible  <bruno@clisp.org>
27376
27377         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
27378         by m4/setenv.m4.
27379
27380 2008-04-03  Eric Blake  <ebb9@byu.net>
27381
27382         Ensure sane .version contents.
27383         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
27384         version string.
27385         * build-aux/git-version-gen: Improve documentation.
27386
27387         Make GNU make output nicer.
27388         * top/GNUmakefile [!_have-Makefile]: Add dependency on
27389         MAKECMDGOALS to enforce message for all command line targets.  Set
27390         srcdir for use in maint.mk.
27391
27392         Another maintainer tweak.
27393         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
27394         a target that regenerates version.
27395
27396 2008-04-03  Jim Meyering  <meyering@redhat.com>
27397
27398         vc-list-files: don't cause coreutils "make po-check" failure
27399         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
27400
27401 2008-04-03  Eric Blake  <ebb9@byu.net>
27402
27403         Allow VPATH usage of vc-list-files.
27404         * build-aux/vc-list-files (scriptversion): Add timestamp.
27405         (options): Add --help, --version, -C.
27406         (CVS): Support installed cvsu.
27407
27408 2008-04-02  Bruno Haible  <bruno@clisp.org>
27409
27410         Avoid some "statement with no effect" warnings from gcc.
27411         * tests/test-wctype.c (main): Explicitly ignore unused values.
27412         Reported by Jim Meyering.
27413
27414 2008-04-02  Jim Meyering  <meyering@redhat.com>
27415
27416         Avoid some warnings from "gcc -Wshadow".
27417         * tests/test-frexp.c (exp): Define to a different identifier.
27418         * tests/test-frexpl.c (exp): Likewise.
27419
27420 2008-04-03  Jim Meyering  <meyering@redhat.com>
27421
27422         bootstrap: remove dangling *.[ch] symlinks from lib
27423         * build-aux/bootstrap [dangling symlink removal]: Move find's
27424         -depth option to precede all others, to avoid a warning.
27425         Remove *.[ch] files too, and from "$source_base" (usually lib/).
27426
27427 2008-04-02  Bruno Haible  <bruno@clisp.org>
27428
27429         Avoid some warnings from "gcc -Wshadow".
27430         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
27431         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
27432         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
27433         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
27434         Reported by Jim Meyering.
27435
27436 2008-04-01  Bruno Haible  <bruno@clisp.org>
27437
27438         Fix test to work on IRIX 6.5 with cc.
27439         * tests/test-math.c (numeric_equal): New function.
27440         (main): Use it.
27441
27442 2008-04-01  Bruno Haible  <bruno@clisp.org>
27443
27444         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
27445
27446 2008-04-01  Bruno Haible  <bruno@clisp.org>
27447
27448         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
27449         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
27450         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
27451         (Depends-on): Remove math.
27452
27453         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
27454         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
27455         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
27456         (Depends-on): Remove math.
27457
27458         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
27459         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
27460         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
27461         (Depends-on): Remove math.
27462         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
27463         (Depends-on): Remove math.
27464
27465         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
27466         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
27467         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
27468         (Depends-on): Remove math.
27469         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
27470         (Depends-on): Remove math.
27471
27472         * tests/test-round1.c: Include nan.h.
27473         (main): Use NaNd instead of NAN.
27474         * modules/round-tests (Files): Add tests/nan.h.
27475
27476         * tests/test-trunc1.c: Include nan.h.
27477         (main): Use NaNd instead of NAN.
27478         * modules/trunc-tests (Files): Add tests/nan.h.
27479
27480         * tests/test-roundf1.c: Include nan.h.
27481         (main): Use NaNf instead of NAN.
27482         * modules/roundf-tests (Files): Add tests/nan.h.
27483
27484         * tests/test-truncf1.c: Include nan.h.
27485         (main): Use NaNf instead of NAN.
27486         * modules/truncf-tests (Files): Add tests/nan.h.
27487
27488         * tests/test-ceilf1.c: Include nan.h.
27489         (main): Use NaNf instead of NAN.
27490         * modules/ceilf-tests (Files): Add tests/nan.h.
27491
27492         * tests/test-floorf1.c: Include nan.h.
27493         (main): Use NaNf instead of NAN.
27494         * modules/floorf-tests (Files): Add tests/nan.h.
27495
27496         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
27497         (main): Use NaNf instead of NAN.
27498         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
27499
27500         * tests/test-isnand.c: Include nan.h instead of <math.h>.
27501         (main): Use NaNd instead of NAN.
27502         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
27503
27504         * tests/test-frexp.c: Include nan.h.
27505         (main): Use NaNd instead of NAN.
27506         * modules/frexp-tests (Files): Add tests/nan.h.
27507
27508         * lib/isnan.c: Don't include <math.h>.
27509         (FUNC): Don't use NAN macro.
27510         * modules/isnand-nolibm (Depends-on): Remove math.
27511         * modules/isnanf-nolibm (Depends-on): Remove math.
27512         * modules/isnanl (Depends-on): Remove math.
27513         * modules/isnanl-nolibm (Depends-on): Remove math.
27514
27515         * tests/nan.h: New file.
27516
27517 2008-04-01  Eric Blake  <ebb9@byu.net>
27518
27519         Fix typos.
27520         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
27521         values to be the right type.
27522
27523         For now, cater to gnulib strtod inaccuracies.
27524         * tests/test-strtod.c (main): Allow 1-ulp error on expected
27525         fractional results.  While not as nice from a QoI perspective, it
27526         is a quicker patch than correctly implementing decimal to binary
27527         rounding.
27528
27529 2008-03-31  Eric Blake  <ebb9@byu.net>
27530
27531         Guarantee a definition of NAN.
27532         * lib/math.in.h (NAN): Define if missing.
27533         * tests/test-math.c (main): Test it.
27534         * doc/posix-headers/math.texi (math.h): Document this.
27535         * lib/isnan.c (rpl_isnand): Use it.
27536         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
27537         * tests/test-floorf1.c (NaN): Likewise.
27538         * tests/test-frexp.c (NaN): Likewise.
27539         * tests/test-isnand.c (NaN): Likewise.
27540         * tests/test-isnanf.c (NaN): Likewise.
27541         * tests/test-round1.c (NaN): Likewise.
27542         * tests/test-roundf1.c (NaN): Likewise.
27543         * tests/test-snprintf-posix.h (NaN): Likewise.
27544         * tests/test-sprintf-posix.h (NaN): Likewise.
27545         * tests/test-trunc1.c (NaN): Likewise.
27546         * tests/test-truncf1.c (NaN): Likewise.
27547         * tests/test-vasnprintf-posix.c (NaN): Likewise.
27548         * tests/test-vasprintf-posix.c (NaN): Likewise.
27549         * modules/isnand-nolibm (Depends-on): Add math.
27550         * modules/isnanf-nolibm (Depends-on): Likewise.
27551         * modules/isnanl (Depends-on): Likewise.
27552         * modules/isnanl-nolibm (Depends-on): Likewise.
27553         * modules/snprintf-posix-tests (Depends-on): Likewise.
27554         * modules/sprintf-posix-tests (Depends-on): Likewise.
27555         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
27556         * modules/vsprintf-posix-tests (Depends-on): Likewise.
27557         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
27558         * modules/vasprintf-posix-tests (Depends-on): Likewise.
27559
27560 2008-03-31  Bruno Haible  <bruno@clisp.org>
27561
27562         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
27563         * doc/posix-functions/strtod.texi: Likewise.
27564
27565 2008-03-31  Bruno Haible  <bruno@clisp.org>
27566
27567         * tests/test-strtod.c (main): Don't use C99 syntax.
27568
27569 2008-03-31  Bruno Haible  <bruno@clisp.org>
27570
27571         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
27572         Reported by Eric Blake.
27573
27574 2008-03-31  Jim Meyering  <meyering@redhat.com>
27575
27576         Don't compare actual signbit return values.
27577         * tests/test-strtod.c (main): Rather, compare only their
27578         zero/non-zero nature.
27579
27580 2008-03-31  Eric Blake  <ebb9@byu.net>
27581
27582         More strtod documentation.
27583         * doc/posix-functions/strtod.texi (strtod): Interpret more test
27584         failures as distinct bugs.
27585
27586 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
27587
27588         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
27589         Problem reported by Erik Benada in
27590         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
27591
27592 2008-03-30  Bruno Haible  <bruno@clisp.org>
27593
27594         * tests/test-strtod.c: Add comments about which assertion fails on which
27595         platform.
27596         * doc/posix-functions/strtod.texi: Add info about many more platforms.
27597
27598 2008-03-30  Eric Blake  <ebb9@byu.net>
27599
27600         Test signbit behavior on zeros.
27601         * tests/test-signbit.c (test_signbitf): Add tests for zero.
27602         (test_signbitd, test_signbitl): Likewise.
27603
27604         More strtod touchups.
27605         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
27606         sign of negative underflow, for now.  Use .5, not .1.
27607         * doc/posix-functions/strtod.texi (strtod): Mention these
27608         limitations.
27609         Reported by Jim Meyering.
27610
27611 2008-03-30  Bruno Haible  <bruno@clisp.org>
27612
27613         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
27614         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
27615
27616 2008-03-30  Bruno Haible  <bruno@clisp.org>
27617
27618         Avoid failure when attempting to return empty iconv results on some
27619         platforms.
27620         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
27621         allocation, don't report ENOMEM when the resulting string is empty.
27622
27623 2008-03-30  Bruno Haible  <bruno@clisp.org>
27624
27625         Fix buffer overrun.
27626         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
27627         Don't consider the width for tmp_length. Check count against tmp_length
27628         before doing the padding. Ensure enough allocation during padding.
27629
27630 2008-03-30  Eric Blake  <ebb9@byu.net>
27631
27632         strtod touchups.
27633         * lib/strtod.c (strtod): Avoid compiler warnings.
27634         Reported by Jim Meyering.
27635
27636 2008-03-30  Bruno Haible  <bruno@clisp.org>
27637
27638         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
27639         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
27640         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
27641         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
27642         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
27643         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
27644         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
27645         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
27646
27647         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
27648         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
27649         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
27650         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
27651         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
27652         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
27653         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
27654         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
27655
27656         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
27657         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
27658         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
27659         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
27660         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
27661         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
27662         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
27663         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
27664
27665         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
27666         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
27667
27668         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
27669         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
27670
27671         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
27672         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
27673
27674         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
27675         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
27676         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
27677
27678         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
27679         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
27680         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
27681
27682         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
27683         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
27684         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
27685
27686         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
27687         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
27688         * modules/vasprintf (Depends-on): Add EOVERFLOW.
27689
27690         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
27691         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
27692         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
27693         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
27694         (Depends-on): Add EOVERFLOW.
27695         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
27696         (Depends-on): Add EOVERFLOW.
27697         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
27698         (Depends-on): Add EOVERFLOW.
27699         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
27700         (Depends-on): Add EOVERFLOW.
27701         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
27702         (Depends-on): Add EOVERFLOW.
27703         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
27704         (Depends-on): Add EOVERFLOW.
27705         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
27706         (Depends-on): Add EOVERFLOW.
27707         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
27708         (Depends-on): Add EOVERFLOW.
27709
27710         * lib/sprintf.c (EOVERFLOW): Remove fallback.
27711         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
27712         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
27713
27714         * lib/snprintf.c (EOVERFLOW): Remove fallback.
27715         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
27716         * modules/snprintf (Depends-on): Add EOVERFLOW.
27717
27718         * lib/poll.c (EOVERFLOW): Remove fallback.
27719         * modules/poll (Depends-on): Add EOVERFLOW.
27720
27721         * lib/getugroups.c (EOVERFLOW): Remove fallback.
27722         * modules/getugroups (Depends-on): Add EOVERFLOW.
27723
27724         * lib/getdelim.c (EOVERFLOW): Remove fallback.
27725         * modules/getdelim (Depends-on): Add EOVERFLOW.
27726
27727         * lib/ftell.c (EOVERFLOW): Remove fallback.
27728         * modules/ftell (Depends-on): Add EOVERFLOW.
27729
27730         * lib/fprintf.c (EOVERFLOW): Remove fallback.
27731         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
27732         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
27733
27734         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
27735
27736         * modules/EOVERFLOW-tests: New file.
27737         * tests/test-EOVERFLOW.c: New file.
27738
27739         * modules/EOVERFLOW: New file.
27740         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
27741
27742 2008-03-30  Bruno Haible  <bruno@clisp.org>
27743
27744         Fix bug introduced on 2007-06-10.
27745         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
27746         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
27747
27748 2008-03-30  Bruno Haible  <bruno@clisp.org>
27749
27750         Improve freadseek's efficiency after ungetc.
27751         * lib/freadseek.c: Include freadahead.h.
27752         (freadptrinc): New function, extracted from freadseek.
27753         (freadseek): Use it in a loop. Use freadahead to determine the number
27754         of loop iterations.
27755         * modules/freadseek (Depends-on): Add freadahead.
27756         (configure.ac): Require AC_C_INLINE.
27757
27758 2008-03-30  Bruno Haible  <bruno@clisp.org>
27759
27760         * lib/freadseek.c (freadseek): Don't ignore the return value of
27761         freadptr.
27762
27763 2008-03-29  Eric Blake  <ebb9@byu.net>
27764
27765         Add hex float support.
27766         * modules/strtod (Depends-on): Add c-ctype.
27767         (Link): Mention POW_LIB.
27768         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
27769         whitespace between 'e' and exponent.
27770         * tests/test-strtod.c (main): Enable hex float tests.
27771         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
27772         now provides.
27773
27774         Document various strtod bugs, with some fixes.
27775         * doc/posix-functions/strtod.texi (strtod): Document bugs with
27776         "-0x", "inf", "nan", and hex constants.
27777         * doc/posix-functions/atof.texi (atof): Likewise.
27778         * modules/stdlib (Makefile.am): Support strtod.
27779         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
27780         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
27781         detect additional strtod bugs.
27782         * lib/stdlib.in.h (rpl_strtod): Add declarations.
27783         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
27784         bool where appropriate.  Parse 'inf' and 'nan'.
27785         * tests/test-strtod.c: New file.
27786         * modules/strtod (Depends-on): Add stdbool, stdlib.
27787         (configure.ac): Turn on module indicator.
27788         * modules/strtod-tests: New module.
27789
27790 2008-03-29  Eric Blake  <ebb9@byu.net>
27791
27792         Fix ftell on mingw.
27793         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
27794         * modules/ftell-tests (Depends-on): Add binary-io.
27795         * modules/ftello-tests (Depends-on): Likewise.
27796         * tests/test-ftell.c (main): Enhance test to cover behavior after
27797         ungetc.  Enforce binary mode.
27798         * tests/test-ftello.c (main): Likewise.
27799
27800         Pass test-freadseek on cygwin.
27801         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
27802         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
27803         ungetc buffer.
27804
27805         * tests/test-fflush2.c (main): Fix typo.
27806
27807 2008-03-29  Bruno Haible  <bruno@clisp.org>
27808
27809         * tests/test-fflush2.c (main): Temporarily disable the contents of
27810         this test.
27811         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
27812         Reported by Eric Blake.
27813
27814 2008-03-28  Simon Josefsson  <simon@josefsson.org>
27815
27816         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
27817         (GC_SHA224_DIGEST_SIZE): Add.
27818
27819         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
27820         (gc_hash_digest_length): Likewise.
27821         (gc_hash_buffer): Likewise.
27822
27823 2008-03-25  Bruno Haible  <bruno@clisp.org>
27824
27825         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
27826         detail which gettext release to use.
27827         Reported by Simon Josefsson.
27828
27829 2008-03-26  Jim Meyering  <meyering@redhat.com>
27830
27831         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
27832         * modules/gnumakefile (clean-GNUmakefile): Also, use
27833         test ... && ... || : syntax rather than if-then ... fi.
27834
27835         gnumakefile: Don't double-quote-expand $(VPATH) value.
27836         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
27837
27838 2008-03-24  Eric Blake  <ebb9@byu.net>
27839
27840         Alter GNUmakefile to install into top directory.
27841         * modules/maintainer-makefile: Split, and add dependency...
27842         * modules/gnumakefile: to this new module.
27843         * build-aux/GNUmakefile: Move...
27844         * top/GNUmakefile: ...here.
27845         * build-aux/maint.mk: Move...
27846         * top/maint.mk: ...here.
27847         * MODULES.html.sh (Support for maintaining...): Document new
27848         module.
27849
27850 2008-03-23  Bruno Haible  <bruno@clisp.org>
27851
27852         * gnulib-tool: New options --vc-files, --no-vc-files.
27853         (func_usage): Document them.
27854         (vc_files): New variable.
27855         (func_import): Consider vc_files.
27856         (func_create_testdir): Set vc_files to empty.
27857         Suggested by Jim Meyering and Karl Berry.
27858
27859 2008-03-23  Bruno Haible  <bruno@clisp.org>
27860
27861         Fix regex compilation error on HP-UX 11.
27862         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
27863         * modules/regex (Files): Add m4/mbstate_t.m4.
27864         Reported by Ton Voon <ton.voon@altinity.com>.
27865
27866 2008-03-23  Bruno Haible  <bruno@clisp.org>
27867
27868         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
27869
27870 2008-03-23  Eric Blake  <ebb9@byu.net>
27871             Bruno Haible  <bruno@clisp.org>
27872
27873         Install files from top/ in the destination directory.
27874         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
27875         augmentation also for the files from top/.
27876         (func_import, func_create_testdir): Rewrite file names:
27877         top/filename -> filename.
27878
27879 2008-03-23  Bruno Haible  <bruno@clisp.org>
27880
27881         Tweak "gnulib --version" output.
27882         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
27883
27884 2008-03-23  Bruno Haible  <bruno@clisp.org>
27885
27886         Tweak "gnulib --version" output.
27887         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
27888         rather than contents of ChangeLog, when possible.
27889
27890 2008-03-21  Eric Blake  <ebb9@byu.net>
27891
27892         More --version tweaks.
27893         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
27894         date of last ChangeLog entry.
27895
27896 2008-03-21  Jim Meyering  <meyering@redhat.com>
27897
27898         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
27899
27900 2008-03-20  Eric Blake  <ebb9@byu.net>
27901
27902         VPATH fix.
27903         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
27904
27905 2008-03-20  Simon Josefsson  <simon@josefsson.org>
27906
27907         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
27908         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
27909
27910 2008-03-20  Eric Blake  <ebb9@byu.net>
27911
27912         Sync GNUmakefile with coreutils.
27913         * build-aux/GNUmakefile (have-Makefile): Rename...
27914         (_have-Makefile): ...to this, for namespace consideration.
27915         (GNUmakefile.cfg): Include, if present.
27916         (_autoreconf): Define a default.
27917         (_is-dist-target): New rule for rebuilds to pick up intra-release
27918         version.
27919         (maint-cfg.mk): Rename...
27920         (cfg.mk): ...to this.
27921
27922 2008-03-18  Jim Meyering  <meyering@redhat.com>
27923
27924         New script and module: mktempd
27925         * MODULES.html.sh (maint+release support): Add mktempd.
27926         * build-aux/mktempd: New file.
27927         * modules/mktempd: New file.
27928
27929 2008-03-15  Jim Meyering  <meyering@redhat.com>
27930
27931         Undo last change.
27932         * lib/sha1.c, lib/md5.c: 63 != ~63.
27933         Reported by Andreas Schwab.
27934
27935         sha1.c, md5.c: Hoist a redundant expression.
27936         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
27937         "ctx->buflen" only once, before calling *_process_block.
27938         * lib/md5.c (md5_process_bytes): Likewise.
27939
27940 2008-03-14  Eric Blake  <ebb9@byu.net>
27941
27942         Bump copyright year in files generated by gnulib-tool.
27943         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
27944         gnulib-tool, rather than hard-coding it.
27945
27946         Fix 'gnulib-tool --version' output to work with git.
27947         * gnulib-tool (func_gnulib_dir): New function, extracted from...
27948         (startup): ...here.
27949         (func_version): Use it to invoke git-version-gen, rather than
27950         relying on CVS keyword expansion.  Modernize wording.
27951         (cvsdatestamp, last_checkin_date, version): Kill unused
27952         variables.
27953
27954 2008-03-12  Jim Meyering  <meyering@redhat.com>
27955
27956         Recognize optional cast of the argument to free.
27957         * build-aux/useless-if-before-free: Update regexps.
27958
27959         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
27960
27961 2008-03-11  Bruno Haible  <bruno@clisp.org>
27962
27963         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
27964         by a single package.
27965         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
27966         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
27967         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
27968         Reported by Sam Steingold <sds@gnu.org>.
27969
27970 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
27971
27972         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
27973         repositories.
27974
27975 2008-03-11  Bruno Haible  <bruno@clisp.org>
27976
27977         Avoid conflicts between local macro definitions.
27978         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27979         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
27980
27981 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
27982             Bruno Haible  <bruno@clisp.org>
27983
27984         Make va_copy work with some version of xlc on AIX 5.1.
27985         * lib/stdarg.in.h: New file.
27986         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
27987         On AIX, use a <stdarg.h> file substitute.
27988         * modules/stdarg (Files): Add lib/stdarg.in.h.
27989         (Depends-on): Add include_next.
27990         (Makefile.am): Build a stdarg.h substitute if requested.
27991         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
27992
27993 2008-03-10  Bruno Haible  <bruno@clisp.org>
27994
27995         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
27996         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
27997         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
27998
27999 2008-03-10  Bruno Haible  <bruno@clisp.org>
28000
28001         * modules/stdlib (Depends-on): Add include_next, remove
28002         absolute-header.
28003
28004 2008-03-09  Bruno Haible  <bruno@clisp.org>
28005
28006         * lib/freadahead.h (freadahead): Document more precisely.
28007         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
28008         the sum of both buffer sizes.
28009         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
28010         * NEWS: Document the change.
28011
28012 2008-03-09  Bruno Haible  <bruno@clisp.org>
28013
28014         Extend freadptr to return also the buffer size.
28015         * lib/freadptr.h (freadptr): Add sizep argument.
28016         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
28017         (freadptr): Add sizep argument. Determine buffer size like freadahead
28018         does.
28019         * tests/test-freadptr.c: Don't include freadahead.h.
28020         (main): Adapt for new calling convention of freadptr.
28021         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
28022         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
28023         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
28024         tests/test-freadptr2.sh.
28025         (Depends): Remove freadahead.
28026         (TESTS): Add test-freadptr2.sh.
28027         (check_PROGRAMS): Add test-freadptr2.
28028
28029 2008-03-09  Bruno Haible  <bruno@clisp.org>
28030
28031         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
28032         Report and solution by Simon Josefsson.
28033
28034 2008-03-06  Bruno Haible  <bruno@clisp.org>
28035
28036         Make fflush after ungetc work on BSD platforms.
28037         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
28038         * tests/test-fflush2.c: New file.
28039         * tests/test-fflush2.sh: New file.
28040         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
28041         tests/test-fflush2.c.
28042         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
28043         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
28044
28045 2008-03-06  Eric Blake  <ebb9@byu.net>
28046
28047         Likewise for ftello.
28048         * modules/ftello (Dependencies): Add extensions.
28049         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
28050
28051 2008-03-06  Bruno Haible  <bruno@clisp.org>
28052
28053         * modules/fseeko (Dependencies): Add extensions.
28054         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
28055         Needed on glibc systems.
28056
28057 2008-03-06  Bruno Haible  <bruno@clisp.org>
28058
28059         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
28060         email address.
28061         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
28062
28063 2008-03-06  Bruno Haible  <bruno@clisp.org>
28064
28065         * users.txt: Add libgnupdf.
28066
28067 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
28068
28069         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
28070         (Header File Substitutes, Function Substitutes,
28071         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
28072         (Build robot for gnulib): Fix typo.
28073
28074 2008-03-06  Bruno Haible  <bruno@clisp.org>
28075
28076         * doc/gnulib-tool.texi (VCS Issues): Small updates.
28077         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
28078
28079 2008-03-06  Bruno Haible  <bruno@clisp.org>
28080
28081         * doc/func.texi: New file, extracted from doc/gnulib.texi.
28082         * doc/gnulib.texi: Include it.
28083
28084 2008-03-06  Simon Josefsson  <simon@josefsson.org>
28085
28086         * modules/func (License): Change license to unlimited; there was
28087         no LGPL parts in the module anyway.
28088
28089 2008-03-06  Simon Josefsson  <simon@josefsson.org>
28090
28091         * modules/__func__: Renamed to modules/func.
28092         * modules/__func__-tests: Renamed to modules/func-tests.
28093         * tests/test-__func__.c: Renamed to tests/test-func.c.
28094         * m4/__func__.m4: Renamed to m4/func.m4.
28095         * doc/gnulib.texi (__func__): Section renamed to func.
28096         Suggested by Eric Blake <ebb9@byu.net>.
28097
28098 2008-03-06  Simon Josefsson  <simon@josefsson.org>
28099
28100         * doc/gnulib.texi (__func__): Use C99 terminology when talking
28101         about __func__.  Make example self-contained.  Suggested by Eric
28102         Blake <ebb9@byu.net>.
28103
28104         * tests/test-__func__.c (main): Avoid extraneous () around __func.
28105         Suggested by Eric Blake <ebb9@byu.net>.
28106
28107 2008-03-06  Simon Josefsson  <simon@josefsson.org>
28108
28109         * modules/__func__: New file.
28110         * modules/__func__-tests: New file.
28111         * tests/test-__func__.c: New file.
28112         * m4/__func__.m4: New file.
28113         * doc/gnulib.texi (__func__): Document __func__ module.
28114
28115 2008-03-05  Simon Josefsson  <simon@josefsson.org>
28116
28117         * modules/byteswap (License): Re-license as LGPLv2+.
28118
28119 2008-03-05  Simon Josefsson  <simon@josefsson.org>
28120
28121         * doc/Makefile: Add pdf target.
28122
28123 2008-03-05  Simon Josefsson  <simon@josefsson.org>
28124
28125         * modules/inline (License): Use 'unlimited', since there are only
28126         *.m4 files in this module.
28127
28128 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
28129             Bruno Haible  <bruno@clisp.org>
28130
28131         Add support for HP C 7.1 on OpenVMS 8.3.
28132         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
28133
28134 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
28135
28136         Update VMS specifics.
28137         * lib/getopt.c [VMS]: Remove include of unixlib.h.
28138
28139 2008-03-02  Jim Meyering  <meyering@redhat.com>
28140
28141         Remove the last dependency on the "free" module.
28142         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
28143         Reported by Bob Proulx.
28144
28145         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
28146
28147         Remove useless "if" tests before free.  Deprecate "free" module.
28148         * doc/posix-functions/free.texi: Mention that this
28149         module is no longer useful.
28150         * modules/free (Notice): Say this module is obsolete.
28151         * modules/readutmp (Depends-on): Remove free.
28152         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
28153         * lib/putenv.c (putenv): Likewise.
28154         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
28155         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
28156         * tests/test-c-strcasestr.c (main): Likewise.
28157         * tests/test-c-strstr.c (main): Likewise.
28158         * tests/test-mbscasestr1.c (main): Likewise.
28159         * tests/test-mbscasestr2.c (main): Likewise.
28160         * tests/test-mbsstr1.c (main): Likewise.
28161         * tests/test-mbsstr2.c (main): Likewise.
28162         * tests/test-memmem.c (main): Likewise.
28163         * tests/test-strcasestr.c (main): Likewise.
28164         * tests/test-striconv.c (main): Likewise.
28165         * tests/test-striconveh.c (main): Likewise.
28166         * tests/test-striconveha.c (main): Likewise.
28167         * tests/test-strstr.c (main): Likewise.
28168
28169         * build-aux/git-version-gen: Adjust a comment and the Usage string.
28170
28171         bootstrap: sync from coreutils again
28172         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
28173
28174 2008-03-01  Jim Meyering  <meyering@redhat.com>
28175
28176         bootstrap: sync from coreutils
28177         * build-aux/bootstrap (update_po_files): Copy a .po file into place
28178         also when the target doesn't exist.
28179
28180 2008-03-01  Eric Blake  <ebb9@byu.net>
28181
28182         Fix bugs in last patch.
28183         * lib/memchr2.c (memchr2): Fix typo.
28184         * tests/test-memchr2.c: Test previous bug, and don't use GNU
28185         extension.
28186         Reported by Bruce Korb.
28187
28188         New module 'memchr2'.
28189         * modules/memchr2: New file.
28190         * modules/memchr2-tests: Likewise.
28191         * lib/memchr2.h: Likewise.
28192         * lib/memchr2.c: Likewise, based on memchr.c.
28193         * tests/test-memchr2.c: New test.
28194         * MODULES.html.sh (String handling): Add memchr2.
28195
28196 2008-02-29  Bruno Haible  <bruno@clisp.org>
28197
28198         * modules/freadseek-tests: New file.
28199         * tests/test-freadseek.sh: New file.
28200         * tests/test-freadseek.c: New file.
28201
28202         New module 'freadseek'.
28203         * modules/freadseek: New file.
28204         * lib/freadseek.h: New file.
28205         * lib/freadseek.c: New file.
28206         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
28207
28208 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
28209
28210         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
28211         wydawca.
28212
28213         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
28214         program_invocation_name and program_invocation_short_name are
28215         present.
28216
28217 2008-02-28  Bruno Haible  <bruno@clisp.org>
28218
28219         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
28220         * tests/test-freadptr.sh: Also test non-seekable stdin.
28221
28222 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
28223
28224         * build-aux/bootstrap (source_base, m4_base)
28225         (doc_base, tests_base): New variables.
28226         (gnulib_tool_options): Do not hardcode base directories, use
28227         the above variables instead.
28228
28229 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
28230
28231         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
28232
28233 2008-02-28  Bruno Haible  <bruno@clisp.org>
28234
28235         * modules/freadptr-tests: New file.
28236         * tests/test-freadptr.sh: New file.
28237         * tests/test-freadptr.c: New file.
28238
28239         New module 'freadptr'.
28240         * modules/freadptr: New file.
28241         * lib/freadptr.h: New file.
28242         * lib/freadptr.c: New file.
28243         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
28244
28245 2008-02-26  Karl Berry  <karl@freefriends.org>
28246
28247         Sync from Libtool:
28248         * libltdl/argz.c (argz_add, argz_count): New functions.
28249         * libltdl/argz.in.h: Declare them.
28250         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
28251
28252 2008-02-22  Bruno Haible  <bruno@clisp.org>
28253
28254         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
28255         is a pointer type.  Needed for HP-UX 10.
28256         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
28257         * doc/posix-functions/gmtime_r.texi: Likewise.
28258         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
28259
28260 2008-02-24  Bruno Haible  <bruno@clisp.org>
28261
28262         * modules/environ-tests: New file.
28263         * tests/test-environ.c: New file.
28264
28265         New module 'environ'.
28266         * modules/environ: New file.
28267         * lib/unistd.in.h (environ): New declaration.
28268         * m4/environ.m4: New file.
28269         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
28270         after use.
28271         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
28272         HAVE_DECL_ENVIRON.
28273         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
28274         HAVE_DECL_ENVIRON.
28275         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
28276         wrong claim that 'environ' is missing on some systems.
28277         * modules/execute (Depends-on): Add environ.
28278         * lib/execute.c (environ): Remove fallback declaration.
28279         * modules/pipe (Depends-on): Add environ.
28280         * lib/pipe.c (environ): Remove fallback declaration.
28281         * modules/setenv (Depends-on): Add environ.
28282         * lib/setenv.c (environ): Remove fallback declaration.
28283         * modules/unsetenv (Depends-on): Add environ.
28284         * lib/unsetenv.c (environ): Remove fallback declaration.
28285         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
28286         m4/environ.m4.
28287         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
28288         (gl_PREREQ_UNSETENV): Likewise.
28289
28290 2008-02-24  Bruno Haible  <bruno@clisp.org>
28291
28292         * doc/posix-functions/environ.texi: Document the MacOS X problem.
28293
28294 2008-02-20  Bob Proulx  <bob@proulx.com>
28295
28296         Enable use of older two part flavor 'git describe'.
28297         * build-aux/git-version-gen: If using the older two part flavor of
28298         git version then recreate the third part now present in the
28299         newer three part flavor of git describe.
28300
28301 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
28302
28303         * lib/fts.c (fts_build): Typo correction to comment.
28304
28305 2008-02-17  Bruno Haible  <bruno@clisp.org>
28306
28307         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
28308         generating no-op conflicts.
28309
28310 2008-02-17  Bruno Haible  <bruno@clisp.org>
28311
28312         Speed up by 10%.
28313         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
28314         result_entries, rather than an index-based loop.
28315
28316 2008-02-17  Bruno Haible  <bruno@clisp.org>
28317
28318         Speed up by 25%.
28319         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
28320         'hashcode_cached'.
28321         (entry_create): New function.
28322         (entry_hashcode): Use the cached hashcode if possible.
28323         (read_changelog_file, try_split_merged_entry): Use entry_create.
28324
28325 2008-02-17  Bruno Haible  <bruno@clisp.org>
28326
28327         Speed up from O(n^2) to O(n) for long ChangeLog files.
28328         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
28329         (read_changelog_file): Change implementation of entries_reversed list
28330         to rbtreehash.
28331         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
28332
28333 2008-02-17  Bruno Haible  <bruno@clisp.org>
28334
28335         New option --split-merged-entry.
28336         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
28337         (find_paragraph_end, try_split_merged_entry): New functions.
28338         (long_options): Add option --split-merged-entry.
28339         (usage): Document option --split-merged-entry.
28340         (main): Implement option --split-merged-entry.
28341         Reported by Eric Blake.
28342
28343 2008-02-17  Bruno Haible  <bruno@clisp.org>
28344
28345         * lib/git-merge-changelog.c: Include c-strstr.h.
28346         (main): Support the "git pull --rebase" situation.
28347         * modules/git-merge-changelog (Depends-on): Add c-strstr.
28348         Reported by Eric Blake.
28349
28350 2008-02-16  Eric Blake  <ebb9@byu.net>
28351
28352         Avoid doubling \ in common case of "c-maybe" quoting style.
28353         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
28354         eliding outer quotes.
28355         * lib/quotearg.h: Document this.
28356         * tests/test-quotearg.c (result_strings, inputs, results_g)
28357         (flag_results, locale_results): Test it by adding a new string to
28358         each test group.
28359         (compare_strings): Test new string.
28360
28361 2008-02-13  Eric Blake  <ebb9@byu.net>
28362
28363         Avoid trigraph quoting in default output.
28364         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
28365         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
28366         unless explicitly requested.
28367         * tests/test-quotearg.c (flag_results, main): Add additional tests.
28368
28369 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
28370
28371         Don't rely on signed integer overflowing to negative value.
28372         * lib/getugroups.c (getugroups): Include <limits.h>.
28373         Instead, compare against INT_MAX, and increment only if the test passes.
28374
28375 2008-02-13  Jim Meyering  <meyering@redhat.com>
28376         and Eric Blake  <ebb9@byu.net>
28377
28378         Avoid shadowing warning and compile errors on Linux.
28379         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
28380         forwarding macros on Linux.
28381         (dcgettext): Define a stub, for Linux.
28382         (results_g, main): Avoid warnings.
28383
28384 2008-02-12  Eric Blake  <ebb9@byu.net>
28385
28386         Silence warning in last patch.
28387         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
28388
28389         Quotearg part 4: add tests, fix c-maybe colon quoting.
28390         * lib/quotearg.h: Improve documentation.
28391         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
28392         escapes when adding outer quotes.  When quoting trigraphs, use
28393         valid C notation.  When quoting NUL, omit extra characters if next
28394         character is not digit.  Alter prototype.
28395         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
28396         callers.
28397         * modules/quotearg-tests: New module.
28398         * tests/test-quotearg.c: New test.
28399
28400 2008-02-07  Eric Blake  <ebb9@byu.net>
28401
28402         Quotearg part 3: add flag to control outer quote elision.
28403         * lib/quotearg.h (c_maybe_quoting_style): New style.
28404         (enum quoting_flags): Better documentation of flags.
28405         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
28406         c-maybe style.
28407         (quotearg_buffer_restyled): Handle new flag to elide outer
28408         quotes.
28409
28410         Quotearg part 2: add flag that can control NUL elision.
28411         * lib/quotearg.h (set_quoting_flags): New prototype.
28412         * lib/quotearg.c (struct quoting_options): Add flag field.
28413         (set_quoting_flags): New function.
28414         (quotearg_buffer_restyled): Add flags parameter.
28415         (quotearg_alloc_mem): Set the flag if length cannot be returned.
28416         (quotearg_n_options): Set the flag, since length cannot be
28417         returned.
28418         (quoting_options_from_style): Default flags correctly.
28419
28420         Quotearg part 1: more wrappers, restore quotearg_char state.
28421         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
28422         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
28423         (quotearg_colon_mem): New wrappers.
28424         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
28425         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
28426         functions.
28427         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
28428         (quotearg_colon_mem): New functions.
28429
28430 2008-02-11  Bruno Haible  <bruno@clisp.org>
28431
28432         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
28433         library in the current directory: it does not work with parallel make.
28434         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28435
28436 2008-02-11  Bruno Haible  <bruno@clisp.org>
28437
28438         * .gitattributes: New file.
28439
28440 2008-02-11  Jim Meyering  <meyering@redhat.com>
28441
28442         useless-if-before-free: Fix reversed exit values.
28443         * build-aux/useless-if-before-free: Use correct values
28444         for EXIT_MATCH and EXIT_NO_MATCH.
28445
28446         * build-aux/useless-if-before-free: Close stdout carefully.
28447
28448 2008-02-10  Bruno Haible  <bruno@clisp.org>
28449
28450         New module 'git-merge-changelog'.
28451         * modules/git-merge-changelog: New file.
28452         * lib/git-merge-changelog.c: New file.
28453
28454 2008-02-10  Jim Meyering  <meyering@redhat.com>
28455
28456         useless-if-before-free: New option: --list (-l).
28457
28458         useless-if-before-free: Don't exit immediately upon open failure.
28459         * build-aux/useless-if-before-free: Exit 2 for errors.
28460         Upon failure to open a file, don't exit immediately.
28461         Rather, just warn and continue with any remaining files.
28462
28463 2008-02-10  Bruno Haible  <bruno@clisp.org>
28464
28465         New abstract list operation 'node_set_value'.
28466         * lib/gl_list.h (gl_list_node_set_value): New function.
28467         (struct gl_list_implementation): New field node_set_value.
28468         * lib/gl_list.c (gl_list_node_set_value): New function.
28469         * lib/gl_array_list.c (gl_array_node_set_value): New function.
28470         (gl_array_list_implementation): Update.
28471         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
28472         (gl_carray_list_implementation): Update.
28473         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
28474         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
28475         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
28476         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
28477         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
28478         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
28479         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
28480         Update.
28481         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
28482         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
28483         (gl_sublist_list_implementation): Update.
28484
28485 2008-02-10  Bruno Haible  <bruno@clisp.org>
28486
28487         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
28488         Needed when ELEMENT is #defined to 'some_type *'.
28489
28490 2008-02-10  Jim Meyering  <meyering@redhat.com>
28491
28492         New script and module: useless-if-before-free
28493         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
28494         * build-aux/useless-if-before-free: New file.
28495         * modules/useless-if-before-free: New file.
28496
28497         * build-aux/gitlog-to-changelog: Use committer date, not author date.
28498
28499         xstrtol_error: Fix typo.
28500         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
28501         s/exit_failure/exit_status/.
28502
28503 2008-02-09  Jim Meyering  <meyering@redhat.com>
28504
28505         New script and module: gitlog-to-changelog
28506         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
28507         * modules/gitlog-to-changelog: New file.
28508         * build-aux/gitlog-to-changelog: New file.
28509
28510 2008-02-08  Jim Meyering  <meyering@redhat.com>
28511
28512         Avoid two "parameter unused" warnings.
28513         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
28514         Mark "st" as used.
28515
28516         Use "git COMMAND", not "git-COMMAND".
28517         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
28518         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
28519         * build-aux/git-version-gen: Use "git status", not "git-status".
28520
28521 2008-02-07  Bruno Haible  <bruno@clisp.org>
28522
28523         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
28524         Avoids a crash on Windows Vista.
28525         Reported by Adam Strzelecki <ono@java.pl> via
28526         Simon Josefsson <simon@josefsson.org>.
28527
28528 2008-02-06  Bruno Haible  <bruno@clisp.org>
28529
28530         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
28531         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
28532         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
28533         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
28534         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28535         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28536         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
28537         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
28538         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28539         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28540         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28541         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28542         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28543         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28544         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28545         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
28546         left-adjust flag.
28547         * tests/test-snprintf-posix.h (test_function): Likewise.
28548         * tests/test-sprintf-posix.h (test_function): Likewise.
28549         * tests/test-vasprintf-posix.c (test_function): Likewise.
28550         * doc/posix-functions/fprintf.texi: Update.
28551         * doc/posix-functions/printf.texi: Update.
28552         * doc/posix-functions/snprintf.texi: Update.
28553         * doc/posix-functions/sprintf.texi: Update.
28554         * doc/posix-functions/vfprintf.texi: Update.
28555         * doc/posix-functions/vprintf.texi: Update.
28556         * doc/posix-functions/vsnprintf.texi: Update.
28557         * doc/posix-functions/vsprintf.texi: Update.
28558         Reported by Peter Fales <psfales@alcatel-lucent.com>.
28559
28560 2008-02-06  Bruno Haible  <bruno@clisp.org>
28561
28562         Fix bug introduced on 2008-01-26.
28563         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
28564
28565 2008-02-06  Bruno Haible  <bruno@clisp.org>
28566
28567         Fix bug introduced on 2007-06-10.
28568         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
28569         !NEED_PRINTF_FLAG_ZERO.
28570
28571 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
28572
28573         getloadavg: use libperfstat on AIX5
28574         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
28575
28576 2008-02-03  Bruno Haible  <bruno@clisp.org>
28577
28578         * lib/diffseq.h: Add comments about required #includes.
28579         Reported by Michael Biggs <gnulib@doubleplum.net>.
28580
28581 2008-02-01  Bruno Haible  <bruno@clisp.org>
28582
28583         * users.txt: Add gnuit.
28584
28585 2008-01-31  Bruno Haible  <bruno@clisp.org>
28586
28587         * lib/md4.c (set_uint32): Mark as inline.
28588         * lib/md5.c (set_uint32): Likewise.
28589         * lib/sha1.c (set_uint32): Likewise.
28590         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
28591         * m4/md5.m4 (gl_MD5): Likewise.
28592         * m4/sha1.m4 (gl_SHA1): Likewise.
28593
28594 2008-01-31  Jim Meyering  <meyering@redhat.com>
28595
28596         Use "sizeof VAR", rather than a literal "4".
28597         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
28598         * lib/md4.c (md4_read_ctx): Likewise.
28599         * lib/sha1.c (sha1_read_ctx): Likewise.
28600
28601 2008-01-31  Simon Josefsson  <simon@josefsson.org>
28602
28603         * tests/test-sha1.c: New file, based on test-md5.c.
28604
28605         * modules/crypto/sha1-tests: New file.
28606
28607 2008-01-31  Simon Josefsson  <simon@josefsson.org>
28608
28609         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
28610
28611 2008-01-31  Jim Meyering  <meyering@redhat.com>
28612
28613         Prefer "sizeof v" over the equivalent "4".
28614         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
28615         * lib/md5.c (set_uint32): Likewise.
28616         * lib/sha1.c (set_uint32): Likewise.
28617
28618 2008-01-31  Simon Josefsson  <simon@josefsson.org>
28619
28620         * lib/sha1.c (set_uint32): Mark function as static.
28621
28622 2008-01-31  Simon Josefsson  <simon@josefsson.org>
28623
28624         md2: clarify comments to say that alignment is not required.
28625         * lib/md2.h: Remove warning about alignment in comment.
28626         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
28627         never been required.
28628
28629 2008-01-31  Simon Josefsson  <simon@josefsson.org>
28630
28631         md4: adapt alignment constraint fix from sha1.
28632         * lib/md4.c (set_uint32): New function, from sha1.c
28633         (md4_read_ctx): Use it.
28634         (md4_finish_ctx): Doc fix.
28635         * lib/md4.h: Doc fix.
28636
28637 2008-01-31  Simon Josefsson  <simon@josefsson.org>
28638
28639         md5: adapt alignment constraint fix from sha1.
28640         * lib/md5.c (set_uint32): New function, from sha1.c
28641         (md5_read_ctx): Use it.
28642         (md5_finish_ctx): Doc fix.
28643         * lib/md5.h: Doc fix.
28644
28645 2008-01-30  Peter Palfrader  <weasel@debian.org>
28646
28647         sha1: remove the result buffer alignment constraint
28648         * lib/sha1.c (set_uint32): New function.
28649         (sha1_read_ctx): Rewrite to remove the result buffer alignment
28650         constraint.
28651         (sha1_finish_ctx): Remove comment warning about alignment constraint.
28652         * lib/sha1.h: Likewise.
28653
28654 2008-01-30  Andreas Schwab  <schwab@suse.de>
28655             Bruno Haible  <bruno@clisp.org>
28656
28657         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
28658         correct definition of LDBL_MIN_EXP.
28659
28660 2008-01-30  Karl Berry  <karl@gnu.org>
28661
28662         * config/srclist-update: try to preserve x bit on updates.
28663         * config/srclistvars.sh: update for karl.
28664
28665 2008-01-29  Jim Meyering  <meyering@redhat.com>
28666
28667         vasnprintf.c: Avoid warning about unused label
28668         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
28669         "overflow" label definition and associated code with the
28670         same cpp condition that guards the sole use of that label.
28671
28672 2008-01-26  Bruno Haible  <bruno@clisp.org>
28673
28674         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
28675         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
28676         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
28677         * lib/isnanl-nolibm.h (isnanl): Likewise.
28678         Reported by Paul Eggert <eggert@cs.ucla.edu>.
28679
28680 2008-01-26  Bruno Haible  <bruno@clisp.org>
28681
28682         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
28683         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
28684
28685 2008-01-26  Bruno Haible  <bruno@clisp.org>
28686
28687         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
28688         GCC >= 4.0 built-in.
28689         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
28690
28691 2008-01-26  Bruno Haible  <bruno@clisp.org>
28692
28693         Rename isnan, applicable to 'double' only, to isnand.
28694         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
28695         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
28696         (configure.ac): Update.
28697         (Include): Replace "isnan.h" with "isnand.h".
28698         * m4/isnand.m4: Renamed from m4/isnan.m4.
28699         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
28700         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
28701         instead of isnan.c.
28702         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
28703         instead of HAVE_ISNAN_IN_LIBC.
28704         (isnand): Renamed from isnan.
28705         * lib/isnand.c: New file.
28706         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
28707         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
28708         (Makefile.am): Update.
28709         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
28710         Include isnand.h instead of isnan.h.
28711         (main): Test isnand instead of isnan.
28712         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
28713         isnan-nolibm.
28714         * modules/frexp (Depends-on): Likewise.
28715         * modules/frexp-tests (Depends-on): Likewise.
28716         * modules/frexp-nolibm (Depends-on): Likewise.
28717         * modules/frexp-nolibm-tests (Depends-on): Likewise.
28718         * modules/isfinite (Depends-on): Likewise.
28719         * modules/round-tests (Depends-on): Likewise.
28720         * modules/signbit (Depends-on): Likewise.
28721         * modules/signbit-tests (Depends-on): Likewise.
28722         * modules/snprintf-posix (Depends-on): Likewise.
28723         * modules/sprintf-posix (Depends-on): Likewise.
28724         * modules/trunc-tests (Depends-on): Likewise.
28725         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28726         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28727         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28728         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28729         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28730         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28731         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28732         * modules/vasnprintf-posix (Depends-on): Likewise.
28733         * modules/vasprintf-posix (Depends-on): Likewise.
28734         * modules/vfprintf-posix (Depends-on): Likewise.
28735         * modules/vsnprintf-posix (Depends-on): Likewise.
28736         * modules/vsprintf-posix (Depends-on): Likewise.
28737         * lib/frexp.c: Include isnand.h instead of isnan.h.
28738         (ISNAN): Set to isnand instead of isnan.
28739         * lib/isfinite.c: Include isnand.h instead of isnan.h.
28740         (gl_isfinited): Use isnand instead of isnan.
28741         * lib/signbitd.c: Include isnand.h instead of isnan.h.
28742         (gl_signbitd): Use isnand instead of isnan.
28743         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
28744         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
28745         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
28746         (main): Use isnand instead of isnan.
28747         * tests/test-round1.c: Include isnand.h.
28748         (main): Use isnand instead of isnan.
28749         * tests/test-round2.c: Include isnand.h instead of isnan.h.
28750         (ISNAN): Set to isnand instead of isnan.
28751         * tests/test-trunc1.c: Include isnand.h.
28752         (main): Use isnand instead of isnan.
28753         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
28754         (equal): Use isnand instead of isnan.
28755         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
28756         isnand-nolibm.
28757         * NEWS: Mention the change.
28758
28759 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
28760             Bruno Haible  <bruno@clisp.org>
28761
28762         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
28763         the GCC builtins for signbits are present and set
28764         REPLACE_SIGNBIT_USING_GCC if so.
28765         * lib/math.in.h (signbit): Define using GCC builtins if
28766         REPLACE_SIGNBIT_USING_GCC is set.
28767         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
28768         REPLACE_SIGNBIT_USING_GCC.
28769         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
28770
28771 2008-01-25  Jim Meyering  <meyering@redhat.com>
28772
28773         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
28774         * lib/poll.c: Include <config.h>, not "config.h".
28775         * tests/test-getaddrinfo.c: Likewise.
28776
28777 2008-01-25  Simon Josefsson  <simon@josefsson.org>
28778
28779         * modules/sockets-tests: New file.
28780
28781 2008-01-24  Simon Josefsson  <simon@josefsson.org>
28782
28783         * modules/sockets: New module, can be used to call WSA_Startup and
28784         WSA_Cleanup when needed.
28785
28786         * lib/sockets.h, lib/sockets.c: New files.
28787
28788         * m4/sockets.m4: New file.
28789
28790         * tests/test-sockets.c: New file.
28791
28792 2008-01-19  Bruno Haible  <bruno@clisp.org>
28793
28794         * doc/posix-headers: Renamed from doc/headers.
28795         * doc/posix-functions: Renamed from doc/functions.
28796         * doc/gnulib.texi: Update.
28797
28798 2008-01-19  Bruno Haible  <bruno@clisp.org>
28799
28800         * doc/glibc-functions/strcasestr.texi: Include contents of
28801         doc/functions/strcasestr.texi, fixing the list of platforms.
28802         * doc/functions/strcasestr.texi: Remove file.
28803
28804 2008-01-19  Bruno Haible  <bruno@clisp.org>
28805
28806         * doc/glibc-functions/memmem.texi: Include contents of
28807         doc/functions/memmem.texi.
28808         * doc/functions/memmem.texi: Remove file.
28809
28810 2008-01-18  Bruno Haible  <bruno@clisp.org>
28811
28812         * doc/glibc-functions/*.texi: New files.
28813         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
28814         to use the new files.
28815
28816 2008-01-17  Bruno Haible  <bruno@clisp.org>
28817
28818         * tests/test-gethostname.c (main): Fix printf statement.
28819
28820 2008-01-17  Simon Josefsson  <simon@josefsson.org>
28821
28822         * modules/gethostname-tests: New file.
28823
28824         * tests/test-gethostname.c: New file.
28825
28826 2008-01-17  Simon Josefsson  <simon@josefsson.org>
28827
28828         * lib/gethostname.c: Include string.h unconditionally, strncpy is
28829         used by the UNAME case.  Reported by Bruno Haible
28830         <bruno@clisp.org>.
28831
28832 2008-01-17  Eric Blake  <ebb9@byu.net>
28833
28834         Convert c-strcasestr to be more efficient.
28835         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
28836         (Depends-on): Add c-strcase, remove malloca, strnlen.
28837         * tests/test-c-strcasestr.c (main): Enhance test.
28838         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
28839
28840 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
28841
28842         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
28843         Use it in creating po/Makevars.
28844
28845 2008-01-15  Simon Josefsson  <simon@josefsson.org>
28846
28847         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
28848         Applications that requires it should initialize libgcrypt
28849         manually.
28850
28851 2008-01-16  Simon Josefsson  <simon@josefsson.org>
28852
28853         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
28854
28855 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
28856
28857         Fix problem with getdate on mingw32 reported by Simon Josefsson
28858         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
28859         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
28860         tzname", when deciding whether to declare tzname.
28861         * lib/strftime.c (tzname): Likewise.
28862
28863 2008-01-15  Bruno Haible  <bruno@clisp.org>
28864
28865         Work around a MacOS X 10.5 bug in frexpl().
28866         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
28867         * doc/functions/frexpl.texi: Document the bug.
28868         Reported by Elias Pipping <pipping@gentoo.org>.
28869
28870 2008-01-14  Eric Blake  <ebb9@byu.net>
28871
28872         Touch up previous patch.
28873         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
28874         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
28875
28876         Convert strcasestr module to use Two-Way algorithm.
28877         * modules/strcasestr-simple: New module, based on the old
28878         strcasestr, but with Two-Way rather than KMP.
28879         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
28880         * lib/string.in.h (rpl_strcasestr): Declare.
28881         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
28882         performance.
28883         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
28884         * modules/string (Makefile.am): Support strcasestr.
28885         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
28886         * modules/strcasestr-tests (Depends-on): Check for alarm.
28887         * tests/test-strcasestr.c: Augment test.
28888         * lib/str-two-way.h: Clean up stray macro.
28889         * NEWS: Document new module.
28890         * MODULES.html.sh (string handling): Likewise.
28891         * doc/functions/strcasestr.texi: New file.
28892         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
28893         here, since it is not a POSIX function.
28894
28895 2008-01-14  Colin Watson  <cjwatson@debian.org>
28896             Bruno Haible  <bruno@clisp.org>
28897
28898         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
28899         works fine; if not, set REPLACE_STRSIGNAL.
28900         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
28901         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28902         REPLACE_STRSIGNAL.
28903         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
28904         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
28905         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
28906
28907 2008-01-14  Bruno Haible  <bruno@clisp.org>
28908
28909         * modules/strsignal (Include): Change to <string.h>.
28910
28911 2008-01-14  Colin Watson  <cjwatson@debian.org>
28912
28913         * modules/argp (Notice): Add a notice recommending to change
28914         XGETTEXT_OPTIONS.
28915         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
28916
28917 2008-01-13  Colin Watson  <cjwatson@debian.org>
28918
28919         * modules/strsignal-tests: New file.
28920         * tests/test-strsignal.c: New file.
28921
28922         * lib/strsignal.c: New file, from glibc with modifications.
28923         * lib/siglist.h: New file, from glibc with modifications.
28924         * lib/string.in.h (strsignal): New declaration.
28925         * m4/strsignal.m4: New file.
28926         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28927         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
28928         * modules/strsignal: New file.
28929         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
28930         HAVE_DECL_STRSIGNAL.
28931
28932 2008-01-13  Bruno Haible  <bruno@clisp.org>
28933
28934         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
28935         locale encoding is not ASCII. Needed for OpenBSD 4.0.
28936         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
28937         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28938
28939 2008-01-13  Bruno Haible  <bruno@clisp.org>
28940
28941         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
28942         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
28943         * lib/argp.h (__attribute__): Likewise.
28944         * lib/c-stack.c (__attribute__): Likewise.
28945         * lib/error.h (__attribute__): Likewise.
28946         * lib/fts.c (__attribute__): Likewise.
28947         * lib/openat.h (__attribute__): Likewise.
28948         * lib/stdio.in.h (__attribute__): Likewise.
28949         * lib/string.in.h (__attribute__): Likewise.
28950         * lib/utimens.c (__attribute__): Likewise.
28951         * lib/vasnprintf.h (__attribute__): Likewise.
28952         * lib/xalloc.h (__attribute__): Likewise.
28953         * lib/xprintf.h (__attribute__): Likewise.
28954         * lib/xstrtol.h (__attribute__): Likewise.
28955         * lib/xvasprintf.h (__attribute__): Likewise.
28956
28957 2008-01-12  Bruno Haible  <bruno@clisp.org>
28958
28959         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
28960         * doc/glibc-headers/a.out.texi: New file.
28961         * doc/glibc-headers/aliases.texi: New file.
28962         * doc/glibc-headers/alloca.texi: New file.
28963         * doc/glibc-headers/ar.texi: New file.
28964         * doc/glibc-headers/argp.texi: New file.
28965         * doc/glibc-headers/argz.texi: New file.
28966         * doc/glibc-headers/byteswap.texi: New file.
28967         * doc/glibc-headers/crypt.texi: New file.
28968         * doc/glibc-headers/endian.texi: New file.
28969         * doc/glibc-headers/envz.texi: New file.
28970         * doc/glibc-headers/err.texi: New file.
28971         * doc/glibc-headers/error.texi: New file.
28972         * doc/glibc-headers/execinfo.texi: New file.
28973         * doc/glibc-headers/fpu_control.texi: New file.
28974         * doc/glibc-headers/fstab.texi: New file.
28975         * doc/glibc-headers/fts.texi: New file.
28976         * doc/glibc-headers/getopt.texi: New file.
28977         * doc/glibc-headers/ieee754.texi: New file.
28978         * doc/glibc-headers/ifaddrs.texi: New file.
28979         * doc/glibc-headers/libintl.texi: New file.
28980         * doc/glibc-headers/mcheck.texi: New file.
28981         * doc/glibc-headers/mntent.texi: New file.
28982         * doc/glibc-headers/obstack.texi: New file.
28983         * doc/glibc-headers/paths.texi: New file.
28984         * doc/glibc-headers/printf.texi: New file.
28985         * doc/glibc-headers/pty.texi: New file.
28986         * doc/glibc-headers/resolv.texi: New file.
28987         * doc/glibc-headers/shadow.texi: New file.
28988         * doc/glibc-headers/sysexits.texi: New file.
28989         * doc/glibc-headers/ttyent.texi: New file.
28990
28991 2008-01-12  Jim Meyering  <meyering@redhat.com>
28992
28993         announce-gen: emit Gnulib's git-based version string.
28994         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
28995         New option --gnulib-version=V, where V is expected to be
28996         the output of running git describe in the gnulib directory.
28997         (get_tool_versions): Request feedback on xdelta.  I suspect it's
28998         not useful, and plan to stop publishing an xdelta file with each
28999         coreutils release.
29000
29001         * build-aux/announce-gen: Also check for lzma-compressed files.
29002
29003 2008-01-11  Bruno Haible  <bruno@clisp.org>
29004
29005         * tests/test-memmem.c (main): Increase maximum allowed time.
29006         * tests/test-strstr.c (main): Likewise.
29007
29008 2008-01-11  Bruno Haible  <bruno@clisp.org>
29009
29010         * doc/functions/memmem.texi: Add more precisions about platforms.
29011         * doc/functions/strstr.texi: Likewise.
29012
29013 2008-01-10  Eric Blake  <ebb9@byu.net>
29014
29015         * m4/strstr.m4: Delete cruft from copy-n-paste.
29016         Reported by Bruno Haible.
29017
29018 2008-01-10  Bruno Haible  <bruno@clisp.org>
29019
29020         Make c-strstr rely on strstr.
29021         * lib/c-strstr.c: Don't include str-kmp.h.
29022         (c_strstr): Define in terms of strstr.
29023         * modules/c-strstr (Files): Remove lib/str-kmp.h.
29024         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
29025
29026 2008-01-10  Bruno Haible  <bruno@clisp.org>
29027
29028         * doc/gnulib.texi (String Functions in C Locale): New section.
29029         * doc/c-ctype.texi: New file.
29030         * doc/c-strcase.texi: New file.
29031         * doc/c-strcaseeq.texi: New file.
29032         * doc/c-strcasestr.texi: New file.
29033         * doc/c-strstr.texi: New file.
29034         * doc/c-strtod.texi: New file.
29035         * doc/c-strtold.texi: New file.
29036
29037 2008-01-10  Eric Blake  <ebb9@byu.net>
29038
29039         * lib/relocatable.h: Fix a comment.
29040
29041 2008-01-10  Eric Blake  <ebb9@byu.net>
29042
29043         Share two-way algorithm.
29044         * lib/str-two-way.h: New file, merged from...
29045         * lib/memmem.c: ...here...
29046         * lib/strstr.c: ...and here.
29047         * modules/memmem (Files): Use it.
29048         * modules/strstr (Files): Likewise.
29049
29050         Avoid quadratic strstr implementations.
29051         * lib/strstr.c: New file.
29052         * m4/strstr.m4: Likewise.
29053         * modules/strstr: Likewise.
29054         * modules/strstr-tests: Likewise.
29055         * tests/test-strstr.c: Likewise.
29056         * lib/string.in.h (rpl_strstr): Declare.
29057         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
29058         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
29059         * modules/string (Makefile.am): Likewise.
29060         * MODULES.html.sh (string handling): Mention new module.
29061         * doc/functions/strstr.texi (strstr): Document the bug.
29062
29063 2008-01-10  Bruno Haible  <bruno@clisp.org>
29064
29065         * lib/relocatable.h (relocate): State whether result is freshly
29066         allocated or not.
29067         * lib/relocatable.c (relocate): Return a freshly allocated string
29068         instead of a pointer to a privately held string.
29069         Reported by Sylvain Beucler <beuc@gnu.org>.
29070
29071 2008-01-10  Colin Watson  <cjwatson@debian.org>
29072
29073         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
29074         s/S_ISNLK/S_ISLNK/.
29075
29076 2008-01-09  Bruno Haible  <bruno@clisp.org>
29077
29078         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
29079         and other files.
29080         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
29081         if it's only a guess.
29082         * modules/memmem: Simplify by depending on memmem-simple.
29083
29084 2008-01-09  Bruno Haible  <bruno@clisp.org>
29085
29086         Work around OpenBSD 4.0 tdelete() bug.
29087         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
29088         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
29089         macros and don't redefine the enum values.
29090         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
29091         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
29092         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
29093
29094 2008-01-09  Bruno Haible  <bruno@clisp.org>
29095
29096         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
29097         (main): Don't perform the tests if setlocale did not install a UTF-8
29098         locale. Needed on OpenBSD 4.0.
29099         * modules/wcwidth-tests (Depends-on): Add localcharset.
29100
29101 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
29102
29103         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
29104         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
29105         * NEWS: announce this.
29106         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
29107
29108 2008-01-09  Simon Josefsson  <simon@josefsson.org>
29109         and Eric Blake  <ebb9@byu.net>
29110
29111         Add memmem-simple module.
29112         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
29113         (gl_FUNC_MEMMEM): Separate performance from presence checks.
29114         * modules/memmem-simple: New file.
29115         * modules/memmem (Description): Tweak.
29116         * MODULES.html.sh (string handling): Mention new module.
29117         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
29118         addressed by memmem-simple.
29119         * NEWS: Document the difference.
29120
29121 2008-01-09  Eric Blake  <ebb9@byu.net>
29122
29123         Give gcc some memmem optimization hints.
29124         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
29125         (strcasestr): Declare as pure.
29126         * modules/memmem (Maintainer): Claim my implementation.
29127
29128 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29129
29130         Support AIX 6.1 and higher.
29131         * build-aux/config.libpath: Likewise.
29132         * build-aux/config.rpath: Likewise.
29133
29134 2008-01-08  Jim Meyering  <meyering@redhat.com>
29135             Bruno Haible  <bruno@clisp.org>
29136
29137         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
29138         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
29139         Reported by Peter Fales in
29140         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
29141
29142 2008-01-08  Bruno Haible  <bruno@clisp.org>
29143
29144         * modules/unictype/category-of (Depends-on): Add
29145         unictype/category-none.
29146         * modules/unictype/category-and-tests (Depends-on): Add
29147         unictype/category-{L,N,Lu,Nd}.
29148         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
29149         * modules/unictype/category-or-tests (Depends-on): Add
29150         unictype/category-{L,N}.
29151         * modules/unictype/category-name-tests (Depends-on): Add
29152         unictype/category-{Z,Nl}.
29153         Reported by Simon Josefsson.
29154
29155 2008-01-08  Bruno Haible  <bruno@clisp.org>
29156
29157         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
29158         convention better.
29159         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
29160         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
29161         Reported by Peter Miller <millerp@canb.auug.org.au>.
29162
29163 2008-01-08  Eric Blake  <ebb9@byu.net>
29164
29165         Rewrite memmem to guarantee linear complexity without malloc.
29166         * lib/memmem.c (memmem): Use Two-Way rather than
29167         Knuth-Morris-Pratt, to allow O(1) space usage.
29168         (critical_factorization, two_way_short_needle)
29169         (two_way_long_needle): New functions.
29170         (knuth_morris_pratt): Delete.
29171         * modules/memmem (Depends-on): No longer need malloca or stdbool.
29172         Add stdint.
29173         * tests/test-memmem.c (main): Add tests for periodic needle and
29174         sublinear performance.
29175         * doc/functions/memmem.texi (memmem): Document other deficiencies
29176         in cygwin and older glibc.
29177
29178 2008-01-08  Bruno Haible  <bruno@clisp.org>
29179
29180         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
29181         augmentation.
29182
29183 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
29184
29185         Add a configure time option: --disable-acl.
29186         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
29187         AC_ARG_ENABLE(acl).
29188
29189 2008-01-06  Simon Josefsson  <simon@josefsson.org>
29190
29191         * tests/test-localename.c: Don't include obsolete "setenv.h".
29192
29193         * modules/localename-tests (Depends-on): Need unsetenv.
29194
29195 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29196
29197         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
29198
29199 2008-01-06  Colin Watson  <cjwatson@debian.org>
29200
29201         * users.txt: Add man-db.
29202
29203 2008-01-07  Bruno Haible  <bruno@clisp.org>
29204
29205         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
29206         previous section name.
29207
29208 2008-01-07  Bruno Haible  <bruno@clisp.org>
29209
29210         * lib/progname.c (set_program_name): Don't strip off a leading
29211         "lt-" prefix outside a .libs directory.
29212         Suggested by Paul Eggert.
29213
29214 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
29215             Bruno Haible  <bruno@clisp.org>
29216
29217         Improve memory cleanup in 'relocatable' module.
29218         * lib/relocatable.h (compute_curr_prefix): Change return type to
29219         'char *'.
29220         * lib/relocatable.c (compute_curr_prefix): Change return type to
29221         'char *'. Free curr_installdir after use.
29222         (relocate): Free curr_prefix_better after use.
29223         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
29224
29225 2008-01-01  Bruno Haible  <bruno@clisp.org>
29226
29227         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
29228         failure on older glibc systems.
29229         Reported by Peter Fales <psfales@alcatel-lucent.com>.
29230
29231 2008-01-05  Eric Blake  <ebb9@byu.net>
29232
29233         Avoid quadratic system memmem.
29234         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
29235         Reported by Ralf Wildenhues.
29236
29237         Fix memmem test for mingw.
29238         * modules/memmem-tests (configure.ac): Check for alarm.
29239         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
29240         it.
29241         * doc/functions/memmem.texi: New file.
29242         * doc/gnulib.texi (Function Substitutes): Add memmem.
29243         Reported by Bruno Haible.
29244
29245 2008-01-04  Bruno Haible  <bruno@clisp.org>
29246
29247         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
29248         Require gl_HEADER_STRINGS_H_DEFAULTS, not
29249         gl_HEADER_STRING_H_DEFAULTS.
29250
29251 2008-01-04  Eric Blake  <ebb9@byu.net>
29252
29253         Shorten duration of memmem test.
29254         * tests/test-memmem.c (main): Use alarm to declare failure if test
29255         is taking too long.
29256         Reported by Ralf Wildenhues.
29257
29258 2007-12-21  Simon Josefsson  <simon@josefsson.org>
29259
29260         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
29261         string, needed by strerror.
29262
29263 2008-01-03  Colin Watson  <cjwatson@debian.org>
29264             Bruno Haible  <bruno@clisp.org>
29265
29266         * doc/gnulib-tool.texi (Localization): New section.
29267
29268 2008-01-02  Bruno Haible  <bruno@clisp.org>
29269
29270         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
29271         variables to 'unsigned char *' type.
29272         Reported by Paul Eggert.
29273
29274 2008-01-02  Jim Meyering  <jim@meyering.net>
29275
29276         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
29277
29278 2007-12-31  Jim Meyering  <jim@meyering.net>
29279
29280         Avoid use of private FTS type name.
29281         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
29282
29283 2007-12-30  Karl Berry  <karl@gnu.org>
29284
29285         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
29286         work around defect in Texinfo and/or the standalone Info browser.
29287
29288 2007-12-30  Bruno Haible  <bruno@clisp.org>
29289
29290         Unify 5 copies of the KMP code.
29291         * lib/str-kmp.h: New file.
29292         * lib/c-strcasestr.c: Include str-kmp.h.
29293         (knuth_morris_pratt): Remove function.
29294         (c_strcasestr): Update.
29295         * lib/c-strstr.c: Include str-kmp.h.
29296         (knuth_morris_pratt): Remove function.
29297         (c_strcasestr): Update.
29298         * lib/mbscasestr.c: Include str-kmp.h.
29299         (knuth_morris_pratt_unibyte): Remove function.
29300         * lib/mbsstr.c: Include str-kmp.h.
29301         (knuth_morris_pratt_unibyte): Remove function.
29302         * lib/strcasestr.c: Include str-kmp.h.
29303         (knuth_morris_pratt): Remove function.
29304         (strcasestr): Update.
29305         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
29306         * modules/c-strstr (Files): Likewise.
29307         * modules/mbscasestr (Files): Likewise.
29308         * modules/mbsstr (Files): Likewise.
29309         * modules/strcasestr (Files): Likewise.
29310         Suggested by Paul Eggert.
29311
29312 2007-12-30  Bruno Haible  <bruno@clisp.org>
29313
29314         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
29315         defined.
29316
29317 2007-12-30  Bruno Haible  <bruno@clisp.org>
29318
29319         * lib/xmalloca.h: Include xalloc.h.
29320         (xnmalloca): New macro.
29321
29322 2007-12-30  Bruno Haible  <bruno@clisp.org>
29323
29324         * lib/malloca.h (nmalloca): New macro.
29325         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
29326         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
29327         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
29328         knuth_morris_pratt_multibyte): Likewise.
29329         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
29330         knuth_morris_pratt_multibyte): Likewise.
29331         * lib/memmem.c (knuth_morris_pratt): Likewise.
29332         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
29333
29334 2007-12-25  Bruno Haible  <bruno@clisp.org>
29335
29336         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
29337         * lib/glob.c: Don't include openat.h.
29338         (link_exists2_p): Add back the code that deals with the
29339         !GLOB_ALTDIRFUNC case.
29340         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
29341         let it do the filename concatenation.
29342         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
29343         * modules/glob (Depends-on): Remove openat.
29344
29345 2007-12-31  Bruno Haible  <bruno@clisp.org>
29346
29347         * modules/dirfd (License): Change to LGPLv2+.
29348         Approved by Jim Meyering.
29349
29350 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
29351
29352         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
29353         when multiplying M by sizeof (size_t).
29354
29355 2007-12-10  Martin Lambers  <marlam@marlam.de>
29356
29357         Override getpagesize on mingw.
29358         * lib/getpagesize.c: New file.
29359         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
29360         * modules/getpagesize (Files): Add lib/getpagesize.c.
29361         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
29362         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29363         REPLACE_GETPAGESIZE.
29364         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
29365
29366 2007-12-25  Bruno Haible  <bruno@clisp.org>
29367
29368         * modules/localcharset (Notice): New field.
29369         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
29370         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
29371
29372 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
29373             Bruno Haible  <bruno@clisp.org>
29374
29375         Avoid using the syntax symbol() in formatted documentation.
29376         * MODULES.html.sh (func_module): When replacing symbol() with a
29377         hyperlink, remove the parentheses. Show an error if some remain.
29378         Recognize and render the '...' syntax.
29379         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
29380         Rework. Add paragraph about GCC's inlining.
29381         * doc/alloca.texi: Likewise.
29382         * doc/error.texi: Remove parentheses from symbol reference.
29383         * doc/gnulib-intro.texi: Likewise.
29384         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
29385         * modules/fnmatch (Description): Reword to say "the ... function".
29386         * modules/full-read (Description): Likewise.
29387         * modules/full-write (Description): Likewise.
29388         * modules/safe-read (Description): Likewise.
29389         * modules/safe-write (Description): Likewise.
29390         * modules/strchrnul (Description): Likewise.
29391         * modules/trim (Description): Likewise.
29392         * modules/error (Description): Remove parentheses from symbol
29393         references.
29394         * modules/verror (Description): Likewise.
29395         Reported by Karl Berry.
29396
29397 2007-12-25  Bruno Haible  <bruno@clisp.org>
29398
29399         Fixup after 2007-10-16 commit.
29400         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
29401
29402 2007-12-24  Bruno Haible  <bruno@clisp.org>
29403
29404         Make --enable-relocatable work with DESTDIR.
29405         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
29406         to compute installdir from destprog.
29407         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
29408         also set the RELOC_DESTDIR variable.
29409         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
29410
29411 2007-12-24  Bruno Haible  <bruno@clisp.org>
29412
29413         Fix link error due to xalloc_die().
29414         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
29415         of xreadlink.
29416         * lib/relocwrapper.c: Update comments.
29417         * build-aux/install-reloc: Remove xreadlink.c from file list.
29418         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
29419         xreadlink.c.
29420         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
29421
29422 2007-12-24  Bruno Haible  <bruno@clisp.org>
29423
29424         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
29425         * lib/setenv.h: Remove file.
29426         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
29427         lib/setenv.h.
29428         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
29429         (Depends-on): Add stdlib.
29430         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
29431         gl_FUNC_UNSETENV.
29432         (Include): Replace setenv.h with <stdlib.h>.
29433         * modules/unsetenv: New file.
29434         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
29435         * lib/unsetenv.c: Include <stdlib.h> first.
29436         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
29437         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
29438         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
29439         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
29440         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
29441         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
29442         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
29443         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
29444         * doc/functions/unsetenv.texi: Update.
29445         * modules/xsetenv (Depends-on): Add unsetenv.
29446         * modules/getdate (Depends-on): Likewise.
29447         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
29448         * lib/xsetenv.c: Don't include setenv.h.
29449         * lib/getdate.y: Likewise.
29450         * lib/relocwrapper.c: Likewise.
29451         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
29452         (Depends-on): Add stdlib.
29453         * NEWS: Mention the changes.
29454         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
29455
29456 2007-12-23  Bruno Haible  <bruno@clisp.org>
29457
29458         * lib/memmem.c (memmem): Use lowercase variable names. Tab
29459         indentation.
29460
29461 2007-12-23  Bruno Haible  <bruno@clisp.org>
29462
29463         * lib/c-strcasestr.c: Add more comments.
29464         * lib/c-strstr.c: Likewise.
29465         * lib/mbscasestr.c: Likewise.
29466         * lib/mbsstr.c: Likewise.
29467         * lib/strcasestr.c: Likewise.
29468         * lib/memmem.c: Likewise.
29469
29470 2007-12-23  Bruno Haible  <bruno@clisp.org>
29471
29472         * tests/test-memmem.c: Include <string.h> first.
29473
29474 2007-12-22  Bruno Haible  <bruno@clisp.org>
29475
29476         * gnulib-tool (func_create_testdir): Change $auxdir while generating
29477         the contents of $testsbase.
29478         Reported by Ralf Wildenhues.
29479
29480 2007-12-22  Bruno Haible  <bruno@clisp.org>
29481
29482         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
29483         two variables local_ldadd_before, local_ldadd_last.
29484
29485 2007-12-20  Eric Blake  <ebb9@byu.net>
29486
29487         Work around circular library issue when cross-compiling.
29488         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
29489         that progname.o does not need to pull in rpl_memcmp.
29490
29491 2007-12-19  Eric Blake  <ebb9@byu.net>
29492
29493         Fix memmem to avoid O(n^2) worst-case complexity.
29494         * lib/memmem.c (knuth_morris_pratt): New function.
29495         (memmem): Use it if first few naive iterations fail.
29496         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
29497         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
29498         * modules/memchr (License): Likewise.
29499         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
29500         malloca.
29501         * tests/test-memmem.c: Rewrite, borrowing ideas from
29502         test-mbsstr1.c; the old version wouldn't even compile!
29503         * modules/memmem-tests: New file.
29504         * lib/string.in.h (rpl_memmem): Add declaration.
29505         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
29506         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
29507         REPLACE_MEMMEM.
29508
29509 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
29510
29511         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
29512         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
29513         before any system include files, and undef after them all.  This
29514         should fix a problem on VMS reported by John E. Malmberg in
29515         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
29516
29517 2007-12-17  Eric Blake  <ebb9@byu.net>
29518
29519         Revert addition of verify, for BSD/OS.
29520         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
29521         can't handle large files, for the sake of obsolete platforms.
29522         * modules/fseeko (Depends-on): Remove verify.
29523         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
29524         * doc/functions/ftello.texi (ftello): Likewise.
29525         * doc/functions/fgetpos.texi (fgetpos): Likewise.
29526         Reported by Larry Jones.
29527
29528 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
29529
29530         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
29531         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
29532
29533 2007-12-17  Jim Meyering  <meyering@redhat.com>
29534
29535         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
29536         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
29537         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
29538         * modules/getcwd (Depends-on): Add openat.
29539         Reported by Petr Salinger.
29540
29541 2007-12-17  Bruno Haible  <bruno@clisp.org>
29542
29543         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
29544         avoid a segmentation fault of the configure test on x86_64 systems.
29545
29546 2007-12-15  Jim Meyering  <meyering@redhat.com>
29547
29548         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
29549
29550 2007-12-13  Eric Blake  <ebb9@byu.net>
29551
29552         Another fseek test.
29553         * tests/test-fseek.c (main): Also test ungetc handling.
29554         * tests/test-fseeko.c (main): Likewise.
29555         * modules/fseeko (Depends-on): Add verify.
29556         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
29557         large.
29558         Reported by Larry Jones.
29559
29560         Fix fseeko on mingw.
29561         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
29562         seek.
29563
29564         Beef up fseek tests.
29565         * tests/test-fseek.c (main): Also test eof handling.
29566         * tests/test-fseeko.c (main): Likewise.
29567         Reported by Larry Jones.
29568
29569 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
29570
29571         Fix fseeko on BSD-based platforms.
29572         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
29573         successful seek.
29574
29575 2007-12-12  Eric Blake  <ebb9@byu.net>
29576
29577         Allow circular dependency of separate libtests.a
29578         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
29579         when use_libtests.
29580
29581 2007-12-11  Eric Blake  <ebb9@byu.net>
29582
29583         Fix bug with -0.0L in previous patch.
29584         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
29585         * tests/test-isnan.c (main): Also test on zeroes.
29586         * tests/test-isnanf.c (main): Likewise.
29587         * tests/test-isnanl.h (main): Likewise.
29588
29589         Detect pseudo-denormals on x86 even when cross-compiling.
29590         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
29591         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
29592         invalid bit patterns that happen to satisfy ==.
29593
29594         Avoid link failures with separate libtests.a.
29595         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
29596         last, to satisfy circular dependencies.
29597
29598 2007-12-11  Eric Blake  <ebb9@byu.net>
29599         and Bruno Haible  <bruno@clisp.org>
29600
29601         Fix OpenBSD 4.0 <float.h> handling of long double.
29602         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
29603         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
29604         * doc/headers/float.texi (float.h): Document OpenBSD bug.
29605
29606 2007-12-11  Jim Meyering  <meyering@redhat.com>
29607
29608         * users.txt: Add libvirt.
29609
29610         Support versions of autoconf prior to 2.59c.
29611         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
29612         if it is not already defined.
29613
29614 2007-12-09  Bruno Haible  <bruno@clisp.org>
29615
29616         Let 'gnulib-tool --import' collect sources needed for the tests in
29617         tests/ rather than in lib/.
29618         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
29619         argument. If true, add rules to generate libtests.a, and put libtests.a
29620         into $(LDADD). Consider source files in subdirectories and set
29621         uses_subdirs.
29622         (func_emit_initmacro_start, func_emit_initmacro_end,
29623         func_emit_initmacro_done): Pass all arguments explicitly.
29624         (func_import): Determine two module lists main_modules,
29625         testsrelated_modules. Determine use_libtests. Determine two variables
29626         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
29627         instead of just sed_transform_lib_file. Determine two variables
29628         main_files and testsrelated_files. Compute 'files' as the union of
29629         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
29630         func_add_or_update. In the generated gnulib-comp.m4, collect the
29631         object files for tests/ in different variables than those for lib/.
29632         Substitute LIBTESTS_LIBDEPS.
29633         (func_create_testdir): Combine the uses_subdirs results from
29634         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
29635
29636 2007-12-09  Bruno Haible  <bruno@clisp.org>
29637
29638         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
29639         the build-aux directory.
29640
29641 2007-12-09  Bruno Haible  <bruno@clisp.org>
29642
29643         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
29644         introduced on 2006-09-09.
29645
29646 2007-12-07  Jim Meyering  <meyering@redhat.com>
29647
29648         Let these macros work also with autoconf-2.59.
29649         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
29650         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
29651         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
29652
29653 2007-12-06  Jim Meyering  <meyering@redhat.com>
29654
29655         Avoid a configure-time syntax error in gl_FUNC_ACL.
29656         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
29657         function in each branch, before testing the cache variable.
29658
29659 2007-12-04  Eric Blake  <ebb9@byu.net>
29660
29661         Make scripts executable.
29662         * build-aux/config.guess: Add execute permissions.
29663         * build-aux/config.sub: Likewise.
29664         * build-aux/gendocs.sh: Likewise.
29665
29666         Fix frexp on mingw.
29667         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
29668         cross-compiling.
29669         * doc/functions/frexp.texi (frexp): Document the bug.
29670
29671         Make cygwin fseeko check more reliable.
29672         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
29673         version numbers, rather than unrelated feature check.
29674         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
29675         * doc/functions/ftello.texi (ftello): Likewise.
29676         Reported by Bruno Haible.
29677
29678         * m4/strerror.m4: Bump version number.
29679
29680 2007-12-03  Bruno Haible  <bruno@clisp.org>
29681
29682         * doc/functions/mprotect.texi: Mention the mingw problem.
29683
29684 2007-12-03  Eric Blake  <ebb9@byu.net>
29685
29686         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
29687         REPLACE_STRERROR is initialized before this macro.
29688
29689 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
29690
29691         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
29692         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
29693         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
29694         put -lsec in even for programs other than 'ls'.  This fixes a problem
29695         for gettext reported by Bruno Haible in
29696         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
29697         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
29698         Add support for Solaris 10.  This isn't efficient, but should get the
29699         job done for now.
29700
29701 2007-12-03  James Youngman  <jay@gnu.org>
29702
29703         * doc/regexprops-generic.texi: change "an close-group" to "a
29704         close-group" and "illegal" to "not allowed".
29705
29706 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29707
29708         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
29709         pr_byname.h. Needed for the rare case when the maintainer has done
29710         "make maintainer-clean" in the source directory and then attempts a
29711         build outside the source directory.
29712         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
29713         scripts_byname.h.
29714
29715 2007-12-02  Martin Lambers <marlam@marlam.de>
29716             Bruno Haible  <bruno@clisp.org>
29717
29718         * lib/getpagesize.h: Remove file.
29719         * lib/unistd.in.h: Include declaration of getpagesize here.
29720         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
29721         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
29722         HAVE_SYS_PARAM_H.
29723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
29724         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
29725         * modules/getpagesize (Files): Remove lib/getpagesize.h.
29726         (Depends-on): Add unistd.
29727         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29728         (Include): Use <unistd.h> instead of getpagesize.h.
29729         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
29730         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
29731         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
29732         gl_GETPAGESIZE invocation, already handled by module dependency.
29733         * lib/pagealign_alloc.c: Don't include getpagesize.h.
29734
29735 2007-12-02  Bruno Haible  <bruno@clisp.org>
29736
29737         * modules/strings-tests: New file.
29738         * tests/test-strings.c: New file.
29739
29740         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
29741         * lib/strings.in.h: New file.
29742         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
29743         * m4/strings_h.m4: New file.
29744         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
29745         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
29746         * modules/strings: New file.
29747         * modules/string (Makefile.am): Update.
29748         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
29749         Reported by Karl Berry.
29750
29751 2007-12-01  Eric Blake  <ebb9@byu.net>
29752
29753         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
29754         accomodate fix in cygwin 1.5.25.
29755
29756 2007-12-01  Jim Meyering  <meyering@redhat.com>
29757
29758         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
29759         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
29760         that would inhibit utf8-optimization of a regexp containing line-
29761         or buffer-anchors, e.g., `^', `$'.
29762
29763 2007-11-30  Bruno Haible  <bruno@clisp.org>
29764
29765         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
29766         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
29767         glthread_recursive_lock_init.
29768         * lib/lock.c (glthread_recursive_lock_init)
29769         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
29770         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29771
29772 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
29773
29774         New function qset_acl, like set_acl but with syscall semantics.
29775         * lib/acl.h (qset_acl): New decl.
29776         * lib/acl.c (qset_acl): New function.
29777         (set_acl): Use new function.  Use more-consistent diagnostics.
29778
29779 2007-11-28  Jim Meyering  <meyering@redhat.com>
29780
29781         * modules/physmem (License): Change from GPL to LGPLv2+.
29782
29783 2007-11-26  Bruno Haible  <bruno@clisp.org>
29784
29785         * lib/vasnprintf.c (decode_long_double): Don't abort if the
29786         'long double' type has excess precision.
29787         Reported by Jim Meyering in
29788         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
29789
29790 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29791
29792         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
29793         Sync from <http://gnu.org/licenses>.
29794         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
29795         with license text from same location.
29796         * doc/maintain.texi, doc/standards.texi:  Sync from
29797         <http://savannah.gnu.org/projects/gnustandards>.
29798
29799 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
29800         and Jim Meyering  <meyering@redhat.com>
29801
29802         Adjust getdate' grammar to accept a slightly more regular language.
29803         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
29804         Before, the former was rejected.
29805         * lib/getdate.y (digits_to_date_time): New function, factored
29806         out of ...
29807         (number): ...here.  Just call digits_to_date_time.
29808         (hybrid): New non-terminal to handle an <unsigned number,
29809         signed relative offset> sequence consistently.
29810
29811 2007-11-18  Jim Meyering  <meyering@redhat.com>
29812
29813         Pull my changes from coreutils:
29814         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
29815         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
29816         use of $gnulib_tool_option_extras, so that it's separated from the
29817         preceding argument.
29818
29819         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
29820         * build-aux/bootstrap (cp_mark_as_generated): Create any required
29821         parent destination directories before copying a file into place.
29822
29823 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
29824
29825         bootstrap: work also with 4-argument variant of AC_INIT
29826         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
29827
29828 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
29829
29830         Port test-getaddrinfo to Solaris.
29831         Problem reported by Bruno Haible in
29832         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
29833         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
29834         explanation of setting 'hints'.
29835         Don't reject an implementation merely because it returns EAI_SERVICE.
29836         (EAI_SERVICE): Define to 0 if not defined.
29837
29838 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
29839
29840         The license of gnu-make and posix-shell is now "GPLed build tool".
29841         * modules/gnu-make (License): Likewise.
29842         * modules/posix-shell (License): Likewise.
29843
29844         New module posix-shell, for determining a POSIX shell
29845         or perhaps something that is close enough to a POSIX shell.
29846         * m4/posix-shell.m4: New file.
29847         * modules/posix-shell: New file.
29848
29849         * MODULES.html.sh: Mention new module.
29850
29851         New module gnu-make, for determining whether we're using GNU Make.
29852         * m4/gnu-make.m4: New file.
29853         * modules/gnu-make: New file.
29854         * MODULES.html.sh: Mention new module.
29855
29856 2007-11-14  Jim Meyering  <meyering@redhat.com>
29857
29858         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
29859         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
29860         use this macro to create a function _definition_.
29861         Remove useless "#undef ARGMATCH_DIE".
29862
29863 2007-11-14  Bruno Haible  <bruno@clisp.org>
29864
29865         * lib/config.charset: Update for OpenBSD 4.1.
29866         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
29867
29868 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
29869
29870         Document 64-bit #if problems in stdint.texi.
29871         * doc/headers/stdint.texi (stdint.h): Mention problems with
29872         64-bit-#if, and how to work around them.
29873
29874         Don't insist on 'long long int' support in the preprocessor.  It
29875         breaks too many things.  For example, PRIdMAX still uses a 'long
29876         long int' format with the latest Sun compiler, even though
29877         HAVE_LONG_LONG_INT isn't defined due to that compiler's
29878         preprocessor problem.  This causes the latest coreutils to dump
29879         core on Solaris 10 sparc with the Sun C compiler.
29880         Instead, fix the 2007-10-16 problem in a different way, by evaluating
29881         the troublesome expressions at configure-time, not at #if-time.
29882         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
29883         preprocessor.
29884         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
29885         compile-time C checks, done at 'configure'-time.
29886         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
29887         * modules/inttypes (Makefile): Substitute the new symbols that
29888         gl_INTTYPES_H now generates.
29889         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
29890
29891 2007-11-12  Bruno Haible  <bruno@clisp.org>
29892
29893         Tests for Unicode character classification functions.
29894
29895         * modules/unictype/bidicategory-byname-tests: New file.
29896         * modules/unictype/bidicategory-name-tests: New file.
29897         * modules/unictype/bidicategory-of-tests: New file.
29898         * modules/unictype/bidicategory-test-tests: New file.
29899         * modules/unictype/block-list-tests: New file.
29900         * modules/unictype/block-of-tests: New file.
29901         * modules/unictype/block-test-tests: New file.
29902         * modules/unictype/category-C-tests: New file.
29903         * modules/unictype/category-Cc-tests: New file.
29904         * modules/unictype/category-Cf-tests: New file.
29905         * modules/unictype/category-Cn-tests: New file.
29906         * modules/unictype/category-Co-tests: New file.
29907         * modules/unictype/category-Cs-tests: New file.
29908         * modules/unictype/category-L-tests: New file.
29909         * modules/unictype/category-Ll-tests: New file.
29910         * modules/unictype/category-Lm-tests: New file.
29911         * modules/unictype/category-Lo-tests: New file.
29912         * modules/unictype/category-Lt-tests: New file.
29913         * modules/unictype/category-Lu-tests: New file.
29914         * modules/unictype/category-M-tests: New file.
29915         * modules/unictype/category-Mc-tests: New file.
29916         * modules/unictype/category-Me-tests: New file.
29917         * modules/unictype/category-Mn-tests: New file.
29918         * modules/unictype/category-N-tests: New file.
29919         * modules/unictype/category-Nd-tests: New file.
29920         * modules/unictype/category-Nl-tests: New file.
29921         * modules/unictype/category-No-tests: New file.
29922         * modules/unictype/category-P-tests: New file.
29923         * modules/unictype/category-Pc-tests: New file.
29924         * modules/unictype/category-Pd-tests: New file.
29925         * modules/unictype/category-Pe-tests: New file.
29926         * modules/unictype/category-Pf-tests: New file.
29927         * modules/unictype/category-Pi-tests: New file.
29928         * modules/unictype/category-Po-tests: New file.
29929         * modules/unictype/category-Ps-tests: New file.
29930         * modules/unictype/category-S-tests: New file.
29931         * modules/unictype/category-Sc-tests: New file.
29932         * modules/unictype/category-Sk-tests: New file.
29933         * modules/unictype/category-Sm-tests: New file.
29934         * modules/unictype/category-So-tests: New file.
29935         * modules/unictype/category-Z-tests: New file.
29936         * modules/unictype/category-Zl-tests: New file.
29937         * modules/unictype/category-Zp-tests: New file.
29938         * modules/unictype/category-Zs-tests: New file.
29939         * modules/unictype/category-and-not-tests: New file.
29940         * modules/unictype/category-and-tests: New file.
29941         * modules/unictype/category-byname-tests: New file.
29942         * modules/unictype/category-name-tests: New file.
29943         * modules/unictype/category-none-tests: New file.
29944         * modules/unictype/category-of-tests: New file.
29945         * modules/unictype/category-or-tests: New file.
29946         * modules/unictype/category-test-withtable-tests: New file.
29947         * modules/unictype/combining-class-tests: New file.
29948         * modules/unictype/ctype-alnum-tests: New file.
29949         * modules/unictype/ctype-alpha-tests: New file.
29950         * modules/unictype/ctype-blank-tests: New file.
29951         * modules/unictype/ctype-cntrl-tests: New file.
29952         * modules/unictype/ctype-digit-tests: New file.
29953         * modules/unictype/ctype-graph-tests: New file.
29954         * modules/unictype/ctype-lower-tests: New file.
29955         * modules/unictype/ctype-print-tests: New file.
29956         * modules/unictype/ctype-punct-tests: New file.
29957         * modules/unictype/ctype-space-tests: New file.
29958         * modules/unictype/ctype-upper-tests: New file.
29959         * modules/unictype/ctype-xdigit-tests: New file.
29960         * modules/unictype/decimal-digit-tests: New file.
29961         * modules/unictype/digit-tests: New file.
29962         * modules/unictype/mirror-tests: New file.
29963         * modules/unictype/numeric-tests: New file.
29964         * modules/unictype/property-alphabetic-tests: New file.
29965         * modules/unictype/property-ascii-hex-digit-tests: New file.
29966         * modules/unictype/property-bidi-arabic-digit-tests: New file.
29967         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
29968         * modules/unictype/property-bidi-block-separator-tests: New file.
29969         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
29970         * modules/unictype/property-bidi-common-separator-tests: New file.
29971         * modules/unictype/property-bidi-control-tests: New file.
29972         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
29973         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
29974         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
29975         * modules/unictype/property-bidi-european-digit-tests: New file.
29976         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
29977         * modules/unictype/property-bidi-left-to-right-tests: New file.
29978         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
29979         * modules/unictype/property-bidi-other-neutral-tests: New file.
29980         * modules/unictype/property-bidi-pdf-tests: New file.
29981         * modules/unictype/property-bidi-segment-separator-tests: New file.
29982         * modules/unictype/property-bidi-whitespace-tests: New file.
29983         * modules/unictype/property-byname-tests: New file.
29984         * modules/unictype/property-combining-tests: New file.
29985         * modules/unictype/property-composite-tests: New file.
29986         * modules/unictype/property-currency-symbol-tests: New file.
29987         * modules/unictype/property-dash-tests: New file.
29988         * modules/unictype/property-decimal-digit-tests: New file.
29989         * modules/unictype/property-default-ignorable-code-point-tests: New file.
29990         * modules/unictype/property-deprecated-tests: New file.
29991         * modules/unictype/property-diacritic-tests: New file.
29992         * modules/unictype/property-extender-tests: New file.
29993         * modules/unictype/property-format-control-tests: New file.
29994         * modules/unictype/property-grapheme-base-tests: New file.
29995         * modules/unictype/property-grapheme-extend-tests: New file.
29996         * modules/unictype/property-grapheme-link-tests: New file.
29997         * modules/unictype/property-hex-digit-tests: New file.
29998         * modules/unictype/property-hyphen-tests: New file.
29999         * modules/unictype/property-id-continue-tests: New file.
30000         * modules/unictype/property-id-start-tests: New file.
30001         * modules/unictype/property-ideographic-tests: New file.
30002         * modules/unictype/property-ids-binary-operator-tests: New file.
30003         * modules/unictype/property-ids-trinary-operator-tests: New file.
30004         * modules/unictype/property-ignorable-control-tests: New file.
30005         * modules/unictype/property-iso-control-tests: New file.
30006         * modules/unictype/property-join-control-tests: New file.
30007         * modules/unictype/property-left-of-pair-tests: New file.
30008         * modules/unictype/property-line-separator-tests: New file.
30009         * modules/unictype/property-logical-order-exception-tests: New file.
30010         * modules/unictype/property-lowercase-tests: New file.
30011         * modules/unictype/property-math-tests: New file.
30012         * modules/unictype/property-non-break-tests: New file.
30013         * modules/unictype/property-not-a-character-tests: New file.
30014         * modules/unictype/property-numeric-tests: New file.
30015         * modules/unictype/property-other-alphabetic-tests: New file.
30016         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
30017         * modules/unictype/property-other-grapheme-extend-tests: New file.
30018         * modules/unictype/property-other-id-continue-tests: New file.
30019         * modules/unictype/property-other-id-start-tests: New file.
30020         * modules/unictype/property-other-lowercase-tests: New file.
30021         * modules/unictype/property-other-math-tests: New file.
30022         * modules/unictype/property-other-uppercase-tests: New file.
30023         * modules/unictype/property-paired-punctuation-tests: New file.
30024         * modules/unictype/property-paragraph-separator-tests: New file.
30025         * modules/unictype/property-pattern-syntax-tests: New file.
30026         * modules/unictype/property-pattern-white-space-tests: New file.
30027         * modules/unictype/property-private-use-tests: New file.
30028         * modules/unictype/property-punctuation-tests: New file.
30029         * modules/unictype/property-quotation-mark-tests: New file.
30030         * modules/unictype/property-radical-tests: New file.
30031         * modules/unictype/property-sentence-terminal-tests: New file.
30032         * modules/unictype/property-soft-dotted-tests: New file.
30033         * modules/unictype/property-space-tests: New file.
30034         * modules/unictype/property-terminal-punctuation-tests: New file.
30035         * modules/unictype/property-test-tests: New file.
30036         * modules/unictype/property-titlecase-tests: New file.
30037         * modules/unictype/property-unassigned-code-value-tests: New file.
30038         * modules/unictype/property-unified-ideograph-tests: New file.
30039         * modules/unictype/property-uppercase-tests: New file.
30040         * modules/unictype/property-variation-selector-tests: New file.
30041         * modules/unictype/property-white-space-tests: New file.
30042         * modules/unictype/property-xid-continue-tests: New file.
30043         * modules/unictype/property-xid-start-tests: New file.
30044         * modules/unictype/property-zero-width-tests: New file.
30045         * modules/unictype/scripts-tests: New file.
30046         * modules/unictype/syntax-c-ident-tests: New file.
30047         * modules/unictype/syntax-c-whitespace-tests: New file.
30048         * modules/unictype/syntax-java-ident-tests: New file.
30049         * modules/unictype/syntax-java-whitespace-tests: New file.
30050         * tests/unictype/test-bidi_byname.c: New file.
30051         * tests/unictype/test-bidi_name.c: New file.
30052         * tests/unictype/test-bidi_of.c: New file.
30053         * tests/unictype/test-bidi_test.c: New file.
30054         * tests/unictype/test-block_list.c: New file.
30055         * tests/unictype/test-block_of.c: New file.
30056         * tests/unictype/test-block_test.c: New file.
30057         * tests/unictype/test-categ_and.c: New file.
30058         * tests/unictype/test-categ_and_not.c: New file.
30059         * tests/unictype/test-categ_byname.c: New file.
30060         * tests/unictype/test-categ_name.c: New file.
30061         * tests/unictype/test-categ_none.c: New file.
30062         * tests/unictype/test-categ_of.c: New file.
30063         * tests/unictype/test-categ_or.c: New file.
30064         * tests/unictype/test-categ_test_withtable.c: New file.
30065         * tests/unictype/test-combining.c: New file.
30066         * tests/unictype/test-decdigit.c: New file.
30067         * tests/unictype/test-digit.c: New file.
30068         * tests/unictype/test-mirror.c: New file.
30069         * tests/unictype/test-numeric.c: New file.
30070         * tests/unictype/test-pr_byname.c: New file.
30071         * tests/unictype/test-pr_test.c: New file.
30072         * tests/unictype/test-predicate-part1.h: New file.
30073         * tests/unictype/test-predicate-part2.h: New file.
30074         * tests/unictype/test-scripts.c: New file.
30075         * tests/unictype/test-sy_c_ident.c: New file.
30076         * tests/unictype/test-sy_java_ident.c: New file.
30077
30078         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
30079         for Unicode 5.0.0.
30080         * tests/unictype/test-categ_Cc.c: Likewise.
30081         * tests/unictype/test-categ_Cf.c: Likewise.
30082         * tests/unictype/test-categ_Cn.c: Likewise.
30083         * tests/unictype/test-categ_Co.c: Likewise.
30084         * tests/unictype/test-categ_Cs.c: Likewise.
30085         * tests/unictype/test-categ_L.c: Likewise.
30086         * tests/unictype/test-categ_Ll.c: Likewise.
30087         * tests/unictype/test-categ_Lm.c: Likewise.
30088         * tests/unictype/test-categ_Lo.c: Likewise.
30089         * tests/unictype/test-categ_Lt.c: Likewise.
30090         * tests/unictype/test-categ_Lu.c: Likewise.
30091         * tests/unictype/test-categ_M.c: Likewise.
30092         * tests/unictype/test-categ_Mc.c: Likewise.
30093         * tests/unictype/test-categ_Me.c: Likewise.
30094         * tests/unictype/test-categ_Mn.c: Likewise.
30095         * tests/unictype/test-categ_N.c: Likewise.
30096         * tests/unictype/test-categ_Nd.c: Likewise.
30097         * tests/unictype/test-categ_Nl.c: Likewise.
30098         * tests/unictype/test-categ_No.c: Likewise.
30099         * tests/unictype/test-categ_P.c: Likewise.
30100         * tests/unictype/test-categ_Pc.c: Likewise.
30101         * tests/unictype/test-categ_Pd.c: Likewise.
30102         * tests/unictype/test-categ_Pe.c: Likewise.
30103         * tests/unictype/test-categ_Pf.c: Likewise.
30104         * tests/unictype/test-categ_Pi.c: Likewise.
30105         * tests/unictype/test-categ_Po.c: Likewise.
30106         * tests/unictype/test-categ_Ps.c: Likewise.
30107         * tests/unictype/test-categ_S.c: Likewise.
30108         * tests/unictype/test-categ_Sc.c: Likewise.
30109         * tests/unictype/test-categ_Sk.c: Likewise.
30110         * tests/unictype/test-categ_Sm.c: Likewise.
30111         * tests/unictype/test-categ_So.c: Likewise.
30112         * tests/unictype/test-categ_Z.c: Likewise.
30113         * tests/unictype/test-categ_Zl.c: Likewise.
30114         * tests/unictype/test-categ_Zp.c: Likewise.
30115         * tests/unictype/test-categ_Zs.c: Likewise.
30116         * tests/unictype/test-ctype_alnum.c: Likewise.
30117         * tests/unictype/test-ctype_alpha.c: Likewise.
30118         * tests/unictype/test-ctype_blank.c: Likewise.
30119         * tests/unictype/test-ctype_cntrl.c: Likewise.
30120         * tests/unictype/test-ctype_digit.c: Likewise.
30121         * tests/unictype/test-ctype_graph.c: Likewise.
30122         * tests/unictype/test-ctype_lower.c: Likewise.
30123         * tests/unictype/test-ctype_print.c: Likewise.
30124         * tests/unictype/test-ctype_punct.c: Likewise.
30125         * tests/unictype/test-ctype_space.c: Likewise.
30126         * tests/unictype/test-ctype_upper.c: Likewise.
30127         * tests/unictype/test-ctype_xdigit.c: Likewise.
30128         * tests/unictype/test-decdigit.h: Likewise.
30129         * tests/unictype/test-digit.h: Likewise.
30130         * tests/unictype/test-numeric.h: Likewise.
30131         * tests/unictype/test-pr_alphabetic.c: Likewise.
30132         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
30133         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
30134         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
30135         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
30136         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
30137         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
30138         * tests/unictype/test-pr_bidi_control.c: Likewise.
30139         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
30140         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
30141         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
30142         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
30143         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
30144         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
30145         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
30146         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
30147         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
30148         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
30149         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
30150         * tests/unictype/test-pr_combining.c: Likewise.
30151         * tests/unictype/test-pr_composite.c: Likewise.
30152         * tests/unictype/test-pr_currency_symbol.c: Likewise.
30153         * tests/unictype/test-pr_dash.c: Likewise.
30154         * tests/unictype/test-pr_decimal_digit.c: Likewise.
30155         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
30156         * tests/unictype/test-pr_deprecated.c: Likewise.
30157         * tests/unictype/test-pr_diacritic.c: Likewise.
30158         * tests/unictype/test-pr_extender.c: Likewise.
30159         * tests/unictype/test-pr_format_control.c: Likewise.
30160         * tests/unictype/test-pr_grapheme_base.c: Likewise.
30161         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
30162         * tests/unictype/test-pr_grapheme_link.c: Likewise.
30163         * tests/unictype/test-pr_hex_digit.c: Likewise.
30164         * tests/unictype/test-pr_hyphen.c: Likewise.
30165         * tests/unictype/test-pr_id_continue.c: Likewise.
30166         * tests/unictype/test-pr_id_start.c: Likewise.
30167         * tests/unictype/test-pr_ideographic.c: Likewise.
30168         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
30169         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
30170         * tests/unictype/test-pr_ignorable_control.c: Likewise.
30171         * tests/unictype/test-pr_iso_control.c: Likewise.
30172         * tests/unictype/test-pr_join_control.c: Likewise.
30173         * tests/unictype/test-pr_left_of_pair.c: Likewise.
30174         * tests/unictype/test-pr_line_separator.c: Likewise.
30175         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
30176         * tests/unictype/test-pr_lowercase.c: Likewise.
30177         * tests/unictype/test-pr_math.c: Likewise.
30178         * tests/unictype/test-pr_non_break.c: Likewise.
30179         * tests/unictype/test-pr_not_a_character.c: Likewise.
30180         * tests/unictype/test-pr_numeric.c: Likewise.
30181         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
30182         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
30183         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
30184         * tests/unictype/test-pr_other_id_continue.c: Likewise.
30185         * tests/unictype/test-pr_other_id_start.c: Likewise.
30186         * tests/unictype/test-pr_other_lowercase.c: Likewise.
30187         * tests/unictype/test-pr_other_math.c: Likewise.
30188         * tests/unictype/test-pr_other_uppercase.c: Likewise.
30189         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
30190         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
30191         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
30192         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
30193         * tests/unictype/test-pr_private_use.c: Likewise.
30194         * tests/unictype/test-pr_punctuation.c: Likewise.
30195         * tests/unictype/test-pr_quotation_mark.c: Likewise.
30196         * tests/unictype/test-pr_radical.c: Likewise.
30197         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
30198         * tests/unictype/test-pr_soft_dotted.c: Likewise.
30199         * tests/unictype/test-pr_space.c: Likewise.
30200         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
30201         * tests/unictype/test-pr_titlecase.c: Likewise.
30202         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
30203         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
30204         * tests/unictype/test-pr_uppercase.c: Likewise.
30205         * tests/unictype/test-pr_variation_selector.c: Likewise.
30206         * tests/unictype/test-pr_white_space.c: Likewise.
30207         * tests/unictype/test-pr_xid_continue.c: Likewise.
30208         * tests/unictype/test-pr_xid_start.c: Likewise.
30209         * tests/unictype/test-pr_zero_width.c: Likewise.
30210         * tests/unictype/test-sy_c_whitespace.c: Likewise.
30211         * tests/unictype/test-sy_java_whitespace.c: Likewise.
30212
30213 2007-11-12  Bruno Haible  <bruno@clisp.org>
30214
30215         Unicode character classification functions.
30216         * lib/unictype.h: New file.
30217         * modules/unictype/base: New file.
30218         * modules/unictype/category-L: New file.
30219         * modules/unictype/category-Lu: New file.
30220         * modules/unictype/category-Ll: New file.
30221         * modules/unictype/category-Lt: New file.
30222         * modules/unictype/category-Lm: New file.
30223         * modules/unictype/category-Lo: New file.
30224         * modules/unictype/category-M: New file.
30225         * modules/unictype/category-Mn: New file.
30226         * modules/unictype/category-Mc: New file.
30227         * modules/unictype/category-Me: New file.
30228         * modules/unictype/category-N: New file.
30229         * modules/unictype/category-Nd: New file.
30230         * modules/unictype/category-Nl: New file.
30231         * modules/unictype/category-No: New file.
30232         * modules/unictype/category-P: New file.
30233         * modules/unictype/category-Pc: New file.
30234         * modules/unictype/category-Pd: New file.
30235         * modules/unictype/category-Ps: New file.
30236         * modules/unictype/category-Pe: New file.
30237         * modules/unictype/category-Pi: New file.
30238         * modules/unictype/category-Pf: New file.
30239         * modules/unictype/category-Po: New file.
30240         * modules/unictype/category-S: New file.
30241         * modules/unictype/category-Sm: New file.
30242         * modules/unictype/category-Sc: New file.
30243         * modules/unictype/category-Sk: New file.
30244         * modules/unictype/category-So: New file.
30245         * modules/unictype/category-Z: New file.
30246         * modules/unictype/category-Zs: New file.
30247         * modules/unictype/category-Zl: New file.
30248         * modules/unictype/category-Zp: New file.
30249         * modules/unictype/category-C: New file.
30250         * modules/unictype/category-Cc: New file.
30251         * modules/unictype/category-Cf: New file.
30252         * modules/unictype/category-Cs: New file.
30253         * modules/unictype/category-Co: New file.
30254         * modules/unictype/category-Cn: New file.
30255         * modules/unictype/category-or: New file.
30256         * modules/unictype/category-of: New file.
30257         * modules/unictype/category-test: New file.
30258         * modules/unictype/category-test-withtable: New file.
30259         * modules/unictype/category-byname: New file.
30260         * modules/unictype/category-none: New file.
30261         * modules/unictype/category-and: New file.
30262         * modules/unictype/category-and-not: New file.
30263         * modules/unictype/category-name: New file.
30264         * modules/unictype/combining-class: New file.
30265         * modules/unictype/category-all: New file.
30266         * modules/unictype/bidicategory-all: New file.
30267         * modules/unictype/bidicategory-byname: New file.
30268         * modules/unictype/bidicategory-name: New file.
30269         * modules/unictype/bidicategory-of: New file.
30270         * modules/unictype/bidicategory-test: New file.
30271         * modules/unictype/decimal-digit: New file.
30272         * modules/unictype/digit: New file.
30273         * modules/unictype/numeric: New file.
30274         * modules/unictype/mirror: New file.
30275         * modules/unictype/property-white-space: New file.
30276         * modules/unictype/property-alphabetic: New file.
30277         * modules/unictype/property-other-alphabetic: New file.
30278         * modules/unictype/property-not-a-character: New file.
30279         * modules/unictype/property-default-ignorable-code-point: New file.
30280         * modules/unictype/property-other-default-ignorable-code-point: New
30281         file.
30282         * modules/unictype/property-deprecated: New file.
30283         * modules/unictype/property-logical-order-exception: New file.
30284         * modules/unictype/property-variation-selector: New file.
30285         * modules/unictype/property-private-use: New file.
30286         * modules/unictype/property-unassigned-code-value: New file.
30287         * modules/unictype/property-uppercase: New file.
30288         * modules/unictype/property-other-uppercase: New file.
30289         * modules/unictype/property-lowercase: New file.
30290         * modules/unictype/property-other-lowercase: New file.
30291         * modules/unictype/property-titlecase: New file.
30292         * modules/unictype/property-soft-dotted: New file.
30293         * modules/unictype/property-id-start: New file.
30294         * modules/unictype/property-other-id-start: New file.
30295         * modules/unictype/property-id-continue: New file.
30296         * modules/unictype/property-other-id-continue: New file.
30297         * modules/unictype/property-xid-start: New file.
30298         * modules/unictype/property-xid-continue: New file.
30299         * modules/unictype/property-pattern-white-space: New file.
30300         * modules/unictype/property-pattern-syntax: New file.
30301         * modules/unictype/property-join-control: New file.
30302         * modules/unictype/property-grapheme-base: New file.
30303         * modules/unictype/property-grapheme-extend: New file.
30304         * modules/unictype/property-other-grapheme-extend: New file.
30305         * modules/unictype/property-grapheme-link: New file.
30306         * modules/unictype/property-bidi-control: New file.
30307         * modules/unictype/property-bidi-left-to-right: New file.
30308         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
30309         * modules/unictype/property-bidi-arabic-right-to-left: New file.
30310         * modules/unictype/property-bidi-european-digit: New file.
30311         * modules/unictype/property-bidi-eur-num-separator: New file.
30312         * modules/unictype/property-bidi-eur-num-terminator: New file.
30313         * modules/unictype/property-bidi-arabic-digit: New file.
30314         * modules/unictype/property-bidi-common-separator: New file.
30315         * modules/unictype/property-bidi-block-separator: New file.
30316         * modules/unictype/property-bidi-segment-separator: New file.
30317         * modules/unictype/property-bidi-whitespace: New file.
30318         * modules/unictype/property-bidi-non-spacing-mark: New file.
30319         * modules/unictype/property-bidi-boundary-neutral: New file.
30320         * modules/unictype/property-bidi-pdf: New file.
30321         * modules/unictype/property-bidi-embedding-or-override: New file.
30322         * modules/unictype/property-bidi-other-neutral: New file.
30323         * modules/unictype/property-hex-digit: New file.
30324         * modules/unictype/property-ascii-hex-digit: New file.
30325         * modules/unictype/property-ideographic: New file.
30326         * modules/unictype/property-unified-ideograph: New file.
30327         * modules/unictype/property-radical: New file.
30328         * modules/unictype/property-ids-binary-operator: New file.
30329         * modules/unictype/property-ids-trinary-operator: New file.
30330         * modules/unictype/property-zero-width: New file.
30331         * modules/unictype/property-space: New file.
30332         * modules/unictype/property-non-break: New file.
30333         * modules/unictype/property-iso-control: New file.
30334         * modules/unictype/property-format-control: New file.
30335         * modules/unictype/property-dash: New file.
30336         * modules/unictype/property-hyphen: New file.
30337         * modules/unictype/property-punctuation: New file.
30338         * modules/unictype/property-line-separator: New file.
30339         * modules/unictype/property-paragraph-separator: New file.
30340         * modules/unictype/property-quotation-mark: New file.
30341         * modules/unictype/property-sentence-terminal: New file.
30342         * modules/unictype/property-terminal-punctuation: New file.
30343         * modules/unictype/property-currency-symbol: New file.
30344         * modules/unictype/property-math: New file.
30345         * modules/unictype/property-other-math: New file.
30346         * modules/unictype/property-paired-punctuation: New file.
30347         * modules/unictype/property-left-of-pair: New file.
30348         * modules/unictype/property-combining: New file.
30349         * modules/unictype/property-composite: New file.
30350         * modules/unictype/property-decimal-digit: New file.
30351         * modules/unictype/property-numeric: New file.
30352         * modules/unictype/property-diacritic: New file.
30353         * modules/unictype/property-extender: New file.
30354         * modules/unictype/property-ignorable-control: New file.
30355         * modules/unictype/property-test: New file.
30356         * modules/unictype/property-byname: New file.
30357         * modules/unictype/property-all: New file.
30358         * modules/unictype/scripts: New file.
30359         * modules/unictype/scripts-all: New file.
30360         * modules/unictype/block-of: New file.
30361         * modules/unictype/block-test: New file.
30362         * modules/unictype/block-list: New file.
30363         * modules/unictype/block-all: New file.
30364         * modules/unictype/syntax-c-whitespace: New file.
30365         * modules/unictype/syntax-java-whitespace: New file.
30366         * modules/unictype/syntax-c-ident: New file.
30367         * modules/unictype/syntax-java-ident: New file.
30368         * modules/unictype/ctype-alnum: New file.
30369         * modules/unictype/ctype-alpha: New file.
30370         * modules/unictype/ctype-cntrl: New file.
30371         * modules/unictype/ctype-digit: New file.
30372         * modules/unictype/ctype-graph: New file.
30373         * modules/unictype/ctype-lower: New file.
30374         * modules/unictype/ctype-print: New file.
30375         * modules/unictype/ctype-punct: New file.
30376         * modules/unictype/ctype-space: New file.
30377         * modules/unictype/ctype-upper: New file.
30378         * modules/unictype/ctype-xdigit: New file.
30379         * modules/unictype/ctype-blank: New file.
30380         * lib/unictype/bidi_byname.c: New file.
30381         * lib/unictype/bidi_name.c: New file.
30382         * lib/unictype/bidi_of.c: New file.
30383         * lib/unictype/bidi_test.c: New file.
30384         * lib/unictype/bitmap.h: New file.
30385         * lib/unictype/block_test.c: New file.
30386         * lib/unictype/blocks.c: New file.
30387         * lib/unictype/categ_C.c: New file.
30388         * lib/unictype/categ_Cc.c: New file.
30389         * lib/unictype/categ_Cf.c: New file.
30390         * lib/unictype/categ_Cn.c: New file.
30391         * lib/unictype/categ_Co.c: New file.
30392         * lib/unictype/categ_Cs.c: New file.
30393         * lib/unictype/categ_L.c: New file.
30394         * lib/unictype/categ_Ll.c: New file.
30395         * lib/unictype/categ_Lm.c: New file.
30396         * lib/unictype/categ_Lo.c: New file.
30397         * lib/unictype/categ_Lt.c: New file.
30398         * lib/unictype/categ_Lu.c: New file.
30399         * lib/unictype/categ_M.c: New file.
30400         * lib/unictype/categ_Mc.c: New file.
30401         * lib/unictype/categ_Me.c: New file.
30402         * lib/unictype/categ_Mn.c: New file.
30403         * lib/unictype/categ_N.c: New file.
30404         * lib/unictype/categ_Nd.c: New file.
30405         * lib/unictype/categ_Nl.c: New file.
30406         * lib/unictype/categ_No.c: New file.
30407         * lib/unictype/categ_P.c: New file.
30408         * lib/unictype/categ_Pc.c: New file.
30409         * lib/unictype/categ_Pd.c: New file.
30410         * lib/unictype/categ_Pe.c: New file.
30411         * lib/unictype/categ_Pf.c: New file.
30412         * lib/unictype/categ_Pi.c: New file.
30413         * lib/unictype/categ_Po.c: New file.
30414         * lib/unictype/categ_Ps.c: New file.
30415         * lib/unictype/categ_S.c: New file.
30416         * lib/unictype/categ_Sc.c: New file.
30417         * lib/unictype/categ_Sk.c: New file.
30418         * lib/unictype/categ_Sm.c: New file.
30419         * lib/unictype/categ_So.c: New file.
30420         * lib/unictype/categ_Z.c: New file.
30421         * lib/unictype/categ_Zl.c: New file.
30422         * lib/unictype/categ_Zp.c: New file.
30423         * lib/unictype/categ_Zs.c: New file.
30424         * lib/unictype/categ_and.c: New file.
30425         * lib/unictype/categ_and_not.c: New file.
30426         * lib/unictype/categ_byname.c: New file.
30427         * lib/unictype/categ_name.c: New file.
30428         * lib/unictype/categ_none.c: New file.
30429         * lib/unictype/categ_of.c: New file.
30430         * lib/unictype/categ_or.c: New file.
30431         * lib/unictype/categ_test.c: New file.
30432         * lib/unictype/combining.c: New file.
30433         * lib/unictype/ctype_alnum.c: New file.
30434         * lib/unictype/ctype_alpha.c: New file.
30435         * lib/unictype/ctype_blank.c: New file.
30436         * lib/unictype/ctype_cntrl.c: New file.
30437         * lib/unictype/ctype_digit.c: New file.
30438         * lib/unictype/ctype_graph.c: New file.
30439         * lib/unictype/ctype_lower.c: New file.
30440         * lib/unictype/ctype_print.c: New file.
30441         * lib/unictype/ctype_punct.c: New file.
30442         * lib/unictype/ctype_space.c: New file.
30443         * lib/unictype/ctype_upper.c: New file.
30444         * lib/unictype/ctype_xdigit.c: New file.
30445         * lib/unictype/decdigit.c: New file.
30446         * lib/unictype/digit.c: New file.
30447         * lib/unictype/identsyntaxmap.h: New file.
30448         * lib/unictype/mirror.c: New file.
30449         * lib/unictype/numeric.c: New file.
30450         * lib/unictype/pr_alphabetic.c: New file.
30451         * lib/unictype/pr_ascii_hex_digit.c: New file.
30452         * lib/unictype/pr_bidi_arabic_digit.c: New file.
30453         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
30454         * lib/unictype/pr_bidi_block_separator.c: New file.
30455         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
30456         * lib/unictype/pr_bidi_common_separator.c: New file.
30457         * lib/unictype/pr_bidi_control.c: New file.
30458         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
30459         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
30460         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
30461         * lib/unictype/pr_bidi_european_digit.c: New file.
30462         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
30463         * lib/unictype/pr_bidi_left_to_right.c: New file.
30464         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
30465         * lib/unictype/pr_bidi_other_neutral.c: New file.
30466         * lib/unictype/pr_bidi_pdf.c: New file.
30467         * lib/unictype/pr_bidi_segment_separator.c: New file.
30468         * lib/unictype/pr_bidi_whitespace.c: New file.
30469         * lib/unictype/pr_byname.c: New file.
30470         * lib/unictype/pr_byname.gperf: New file.
30471         * lib/unictype/pr_combining.c: New file.
30472         * lib/unictype/pr_composite.c: New file.
30473         * lib/unictype/pr_currency_symbol.c: New file.
30474         * lib/unictype/pr_dash.c: New file.
30475         * lib/unictype/pr_decimal_digit.c: New file.
30476         * lib/unictype/pr_default_ignorable_code_point.c: New file.
30477         * lib/unictype/pr_deprecated.c: New file.
30478         * lib/unictype/pr_diacritic.c: New file.
30479         * lib/unictype/pr_extender.c: New file.
30480         * lib/unictype/pr_format_control.c: New file.
30481         * lib/unictype/pr_grapheme_base.c: New file.
30482         * lib/unictype/pr_grapheme_extend.c: New file.
30483         * lib/unictype/pr_grapheme_link.c: New file.
30484         * lib/unictype/pr_hex_digit.c: New file.
30485         * lib/unictype/pr_hyphen.c: New file.
30486         * lib/unictype/pr_id_continue.c: New file.
30487         * lib/unictype/pr_id_start.c: New file.
30488         * lib/unictype/pr_ideographic.c: New file.
30489         * lib/unictype/pr_ids_binary_operator.c: New file.
30490         * lib/unictype/pr_ids_trinary_operator.c: New file.
30491         * lib/unictype/pr_ignorable_control.c: New file.
30492         * lib/unictype/pr_iso_control.c: New file.
30493         * lib/unictype/pr_join_control.c: New file.
30494         * lib/unictype/pr_left_of_pair.c: New file.
30495         * lib/unictype/pr_line_separator.c: New file.
30496         * lib/unictype/pr_logical_order_exception.c: New file.
30497         * lib/unictype/pr_lowercase.c: New file.
30498         * lib/unictype/pr_math.c: New file.
30499         * lib/unictype/pr_non_break.c: New file.
30500         * lib/unictype/pr_not_a_character.c: New file.
30501         * lib/unictype/pr_numeric.c: New file.
30502         * lib/unictype/pr_other_alphabetic.c: New file.
30503         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
30504         * lib/unictype/pr_other_grapheme_extend.c: New file.
30505         * lib/unictype/pr_other_id_continue.c: New file.
30506         * lib/unictype/pr_other_id_start.c: New file.
30507         * lib/unictype/pr_other_lowercase.c: New file.
30508         * lib/unictype/pr_other_math.c: New file.
30509         * lib/unictype/pr_other_uppercase.c: New file.
30510         * lib/unictype/pr_paired_punctuation.c: New file.
30511         * lib/unictype/pr_paragraph_separator.c: New file.
30512         * lib/unictype/pr_pattern_syntax.c: New file.
30513         * lib/unictype/pr_pattern_white_space.c: New file.
30514         * lib/unictype/pr_private_use.c: New file.
30515         * lib/unictype/pr_punctuation.c: New file.
30516         * lib/unictype/pr_quotation_mark.c: New file.
30517         * lib/unictype/pr_radical.c: New file.
30518         * lib/unictype/pr_sentence_terminal.c: New file.
30519         * lib/unictype/pr_soft_dotted.c: New file.
30520         * lib/unictype/pr_space.c: New file.
30521         * lib/unictype/pr_terminal_punctuation.c: New file.
30522         * lib/unictype/pr_test.c: New file.
30523         * lib/unictype/pr_titlecase.c: New file.
30524         * lib/unictype/pr_unassigned_code_value.c: New file.
30525         * lib/unictype/pr_unified_ideograph.c: New file.
30526         * lib/unictype/pr_uppercase.c: New file.
30527         * lib/unictype/pr_variation_selector.c: New file.
30528         * lib/unictype/pr_white_space.c: New file.
30529         * lib/unictype/pr_xid_continue.c: New file.
30530         * lib/unictype/pr_xid_start.c: New file.
30531         * lib/unictype/pr_zero_width.c: New file.
30532         * lib/unictype/scripts.c: New file.
30533         * lib/unictype/sy_c_ident.c: New file.
30534         * lib/unictype/sy_c_whitespace.c: New file.
30535         * lib/unictype/sy_java_ident.c: New file.
30536         * lib/unictype/sy_java_whitespace.c: New file.
30537
30538         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
30539         Unicode 5.0.0.
30540         * lib/unictype/blocks.h: Likewise.
30541         * lib/unictype/categ_C.h: Likewise.
30542         * lib/unictype/categ_Cc.h: Likewise.
30543         * lib/unictype/categ_Cf.h: Likewise.
30544         * lib/unictype/categ_Cn.h: Likewise.
30545         * lib/unictype/categ_Co.h: Likewise.
30546         * lib/unictype/categ_Cs.h: Likewise.
30547         * lib/unictype/categ_L.h: Likewise.
30548         * lib/unictype/categ_Ll.h: Likewise.
30549         * lib/unictype/categ_Lm.h: Likewise.
30550         * lib/unictype/categ_Lo.h: Likewise.
30551         * lib/unictype/categ_Lt.h: Likewise.
30552         * lib/unictype/categ_Lu.h: Likewise.
30553         * lib/unictype/categ_M.h: Likewise.
30554         * lib/unictype/categ_Mc.h: Likewise.
30555         * lib/unictype/categ_Me.h: Likewise.
30556         * lib/unictype/categ_Mn.h: Likewise.
30557         * lib/unictype/categ_N.h: Likewise.
30558         * lib/unictype/categ_Nd.h: Likewise.
30559         * lib/unictype/categ_Nl.h: Likewise.
30560         * lib/unictype/categ_No.h: Likewise.
30561         * lib/unictype/categ_P.h: Likewise.
30562         * lib/unictype/categ_Pc.h: Likewise.
30563         * lib/unictype/categ_Pd.h: Likewise.
30564         * lib/unictype/categ_Pe.h: Likewise.
30565         * lib/unictype/categ_Pf.h: Likewise.
30566         * lib/unictype/categ_Pi.h: Likewise.
30567         * lib/unictype/categ_Po.h: Likewise.
30568         * lib/unictype/categ_Ps.h: Likewise.
30569         * lib/unictype/categ_S.h: Likewise.
30570         * lib/unictype/categ_Sc.h: Likewise.
30571         * lib/unictype/categ_Sk.h: Likewise.
30572         * lib/unictype/categ_Sm.h: Likewise.
30573         * lib/unictype/categ_So.h: Likewise.
30574         * lib/unictype/categ_Z.h: Likewise.
30575         * lib/unictype/categ_Zl.h: Likewise.
30576         * lib/unictype/categ_Zp.h: Likewise.
30577         * lib/unictype/categ_Zs.h: Likewise.
30578         * lib/unictype/categ_of.h: Likewise.
30579         * lib/unictype/combining.h: Likewise.
30580         * lib/unictype/ctype_alnum.h: Likewise.
30581         * lib/unictype/ctype_alpha.h: Likewise.
30582         * lib/unictype/ctype_blank.h: Likewise.
30583         * lib/unictype/ctype_cntrl.h: Likewise.
30584         * lib/unictype/ctype_digit.h: Likewise.
30585         * lib/unictype/ctype_graph.h: Likewise.
30586         * lib/unictype/ctype_lower.h: Likewise.
30587         * lib/unictype/ctype_print.h: Likewise.
30588         * lib/unictype/ctype_punct.h: Likewise.
30589         * lib/unictype/ctype_space.h: Likewise.
30590         * lib/unictype/ctype_upper.h: Likewise.
30591         * lib/unictype/ctype_xdigit.h: Likewise.
30592         * lib/unictype/decdigit.h: Likewise.
30593         * lib/unictype/digit.h: Likewise.
30594         * lib/unictype/mirror.h: Likewise.
30595         * lib/unictype/numeric.h: Likewise.
30596         * lib/unictype/pr_alphabetic.h: Likewise.
30597         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
30598         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
30599         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
30600         * lib/unictype/pr_bidi_block_separator.h: Likewise.
30601         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
30602         * lib/unictype/pr_bidi_common_separator.h: Likewise.
30603         * lib/unictype/pr_bidi_control.h: Likewise.
30604         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
30605         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
30606         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
30607         * lib/unictype/pr_bidi_european_digit.h: Likewise.
30608         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
30609         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
30610         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
30611         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
30612         * lib/unictype/pr_bidi_pdf.h: Likewise.
30613         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
30614         * lib/unictype/pr_bidi_whitespace.h: Likewise.
30615         * lib/unictype/pr_combining.h: Likewise.
30616         * lib/unictype/pr_composite.h: Likewise.
30617         * lib/unictype/pr_currency_symbol.h: Likewise.
30618         * lib/unictype/pr_dash.h: Likewise.
30619         * lib/unictype/pr_decimal_digit.h: Likewise.
30620         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
30621         * lib/unictype/pr_deprecated.h: Likewise.
30622         * lib/unictype/pr_diacritic.h: Likewise.
30623         * lib/unictype/pr_extender.h: Likewise.
30624         * lib/unictype/pr_format_control.h: Likewise.
30625         * lib/unictype/pr_grapheme_base.h: Likewise.
30626         * lib/unictype/pr_grapheme_extend.h: Likewise.
30627         * lib/unictype/pr_grapheme_link.h: Likewise.
30628         * lib/unictype/pr_hex_digit.h: Likewise.
30629         * lib/unictype/pr_hyphen.h: Likewise.
30630         * lib/unictype/pr_id_continue.h: Likewise.
30631         * lib/unictype/pr_id_start.h: Likewise.
30632         * lib/unictype/pr_ideographic.h: Likewise.
30633         * lib/unictype/pr_ids_binary_operator.h: Likewise.
30634         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
30635         * lib/unictype/pr_ignorable_control.h: Likewise.
30636         * lib/unictype/pr_iso_control.h: Likewise.
30637         * lib/unictype/pr_join_control.h: Likewise.
30638         * lib/unictype/pr_left_of_pair.h: Likewise.
30639         * lib/unictype/pr_line_separator.h: Likewise.
30640         * lib/unictype/pr_logical_order_exception.h: Likewise.
30641         * lib/unictype/pr_lowercase.h: Likewise.
30642         * lib/unictype/pr_math.h: Likewise.
30643         * lib/unictype/pr_non_break.h: Likewise.
30644         * lib/unictype/pr_not_a_character.h: Likewise.
30645         * lib/unictype/pr_numeric.h: Likewise.
30646         * lib/unictype/pr_other_alphabetic.h: Likewise.
30647         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
30648         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
30649         * lib/unictype/pr_other_id_continue.h: Likewise.
30650         * lib/unictype/pr_other_id_start.h: Likewise.
30651         * lib/unictype/pr_other_lowercase.h: Likewise.
30652         * lib/unictype/pr_other_math.h: Likewise.
30653         * lib/unictype/pr_other_uppercase.h: Likewise.
30654         * lib/unictype/pr_paired_punctuation.h: Likewise.
30655         * lib/unictype/pr_paragraph_separator.h: Likewise.
30656         * lib/unictype/pr_pattern_syntax.h: Likewise.
30657         * lib/unictype/pr_pattern_white_space.h: Likewise.
30658         * lib/unictype/pr_private_use.h: Likewise.
30659         * lib/unictype/pr_punctuation.h: Likewise.
30660         * lib/unictype/pr_quotation_mark.h: Likewise.
30661         * lib/unictype/pr_radical.h: Likewise.
30662         * lib/unictype/pr_sentence_terminal.h: Likewise.
30663         * lib/unictype/pr_soft_dotted.h: Likewise.
30664         * lib/unictype/pr_space.h: Likewise.
30665         * lib/unictype/pr_terminal_punctuation.h: Likewise.
30666         * lib/unictype/pr_titlecase.h: Likewise.
30667         * lib/unictype/pr_unassigned_code_value.h: Likewise.
30668         * lib/unictype/pr_unified_ideograph.h: Likewise.
30669         * lib/unictype/pr_uppercase.h: Likewise.
30670         * lib/unictype/pr_variation_selector.h: Likewise.
30671         * lib/unictype/pr_white_space.h: Likewise.
30672         * lib/unictype/pr_xid_continue.h: Likewise.
30673         * lib/unictype/pr_xid_start.h: Likewise.
30674         * lib/unictype/pr_zero_width.h: Likewise.
30675         * lib/unictype/scripts.h: Likewise.
30676         * lib/unictype/scripts_byname.gperf: Likewise.
30677         * lib/unictype/sy_c_ident.h: Likewise.
30678         * lib/unictype/sy_c_whitespace.h: Likewise.
30679         * lib/unictype/sy_java_ident.h: Likewise.
30680         * lib/unictype/sy_java_whitespace.h: Likewise.
30681
30682         * lib/unictype/Makefile: New file.
30683         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
30684         glibc.
30685         * lib/unictype/3level.h: New file, copied from glibc.
30686         * lib/unictype/3levelbit.h: New file.
30687
30688 2007-11-11  Bruno Haible  <bruno@clisp.org>
30689
30690         * modules/gperf: New file.
30691         * modules/iconv_open (Depends-on): Add it.
30692         (Makefile.am): Remove the GPERF definition.
30693
30694 2007-11-11  Bruno Haible  <bruno@clisp.org>
30695
30696         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
30697         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
30698
30699 2007-11-11  Bruno Haible  <bruno@clisp.org>
30700
30701         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
30702         (usage): Remove function.
30703
30704 2007-11-11  Bruno Haible  <bruno@clisp.org>
30705
30706         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
30707         gl_FUNC_CEILF_LIBS.
30708         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
30709         gl_FUNC_CEIL_LIBS.
30710         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
30711         gl_FUNC_CEILL_LIBS.
30712         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
30713         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
30714         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
30715
30716 2007-11-11  Bruno Haible  <bruno@clisp.org>
30717
30718         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
30719         roundf were declared but do not exist on functions.
30720         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
30721         roundl were declared but do not exist on functions.
30722         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
30723         HAVE_FLOORL_AND_CEILL, respectively.
30724         Needed for Sun C on Solaris 10.
30725
30726 2007-11-11  Bruno Haible  <bruno@clisp.org>
30727
30728         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
30729         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
30730         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
30731         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
30732         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
30733         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
30734         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
30735         HAVE_DECL_ROUNDF.
30736         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
30737         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
30738         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
30739         of HAVE_DECL_ROUND*.
30740         * modules/math (Makefile.am): Update.
30741
30742 2007-11-10  Bruno Haible  <bruno@clisp.org>
30743
30744         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
30745         ptrdiff_t as m4/intl.m4.
30746
30747 2007-11-10  Jim Meyering  <meyering@redhat.com>
30748
30749         Avoid link failure for the argmatch test.
30750         * tests/test-argmatch.c (usage): Define function to avoid a link
30751         failure: argmatch_die requires a usage function.
30752
30753 2007-11-09  Bruno Haible  <bruno@clisp.org>
30754
30755         * doc/functions/snprintf.texi: Mention BeOS deficiency.
30756         * doc/functions/vsnprintf.texi: Likewise.
30757         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
30758         with a size argument < 2.
30759
30760 2007-11-09  Bruno Haible  <bruno@clisp.org>
30761
30762         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
30763         buffer. Fixes an inefficiency introduced on 2007-11-03.
30764
30765 2007-11-09  Bruno Haible  <bruno@clisp.org>
30766
30767         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
30768         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
30769
30770 2007-11-08  Jim Meyering  <meyering@redhat.com>
30771
30772         Change cache variable name prefix "jm_" to "gl_" everywhere.
30773         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
30774         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
30775         * m4/uptime.m4: s/gl_/jm_/
30776
30777 2007-11-07  Bruno Haible  <bruno@clisp.org>
30778
30779         Update to GNU gettext 0.17.
30780         * m4/intl.m4: Update to GNU gettext 0.17.
30781         * m4/po.m4: Likewise.
30782         * modules/gettext (Files): Remove m4/ulonglong.m4.
30783         (configure.ac): Require gettext infrastructure from version 0.17.
30784
30785 2007-11-06  Bruno Haible  <bruno@clisp.org>
30786
30787         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
30788         symbolic values are not defined in a public header.
30789         * lib/freadable.c (freadable) [QNX]: Likewise.
30790         * lib/freadahead.c (freadahead) [QNX]: Likewise.
30791         * lib/freading.c (freading) [QNX]: Likewise.
30792         * lib/fseterr.c (fseterr) [QNX]: Likewise.
30793         * lib/fwritable.c (fwritable) [QNX]: Likewise.
30794         * lib/fwriting.c (fwriting) [QNX]: Likewise.
30795         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
30796         Reported by Alain Magloire.
30797
30798         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
30799
30800 2007-11-05  Bruno Haible  <bruno@clisp.org>
30801
30802         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
30803         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
30804         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
30805         Reported by Eric Blake.
30806
30807 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30808             Bruno Haible  <bruno@clisp.org>
30809
30810         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
30811         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
30812         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
30813         (malloc): Undefine also before including <stdlib.h>.
30814         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
30815         Needed on OSF/1 4.0.
30816
30817 2007-11-05  Jim Meyering  <meyering@redhat.com>
30818
30819         git-version-gen: sync from coreutils.
30820         * build-aux/git-version-gen: Add comments.
30821         Change the first '-' to '.' in the snapshot version string,
30822         e.g., 6.9-377-08144 -> 6.9.377-08144
30823         Remove first parameter.
30824         Don't declare a version "-dirty" merely because a time
30825         stamp has changed.
30826
30827 2007-11-04  Bruno Haible  <bruno@clisp.org>
30828
30829         * lib/lock.h: Protect all macro definitions containing an 'if'
30830         statement through a "do { ... } while (0)".
30831         * lib/tls.h: Likewise.
30832
30833 2007-11-04  Bruno Haible  <bruno@clisp.org>
30834
30835         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
30836
30837 2007-11-04  Bruno Haible  <bruno@clisp.org>
30838
30839         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
30840         * modules/fprintf-posix (Depends-on): Add nocrash.
30841         * modules/snprintf-posix (Depends-on): Likewise.
30842         * modules/sprintf-posix (Depends-on): Likewise.
30843         * modules/vasnprintf-posix (Depends-on): Likewise.
30844         * modules/vasprintf-posix (Depends-on): Likewise.
30845         * modules/vfprintf-posix (Depends-on): Likewise.
30846         * modules/vsnprintf-posix (Depends-on): Likewise.
30847         * modules/vsprintf-posix (Depends-on): Likewise.
30848         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30849         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30850         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30851         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30852         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30853         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30854         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30855
30856 2007-11-04  Bruno Haible  <bruno@clisp.org>
30857
30858         * modules/nocrash: New file.
30859         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
30860         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
30861
30862 2007-11-04  Bruno Haible  <bruno@clisp.org>
30863
30864         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
30865         precision handling.
30866         * tests/test-vasprintf-posix.c (test_function): Likewise.
30867         * tests/test-snprintf-posix.h (test_function): Likewise.
30868         * tests/test-sprintf-posix.h (test_function): Likewise.
30869
30870         Fix *printf behaviour for large precisions on mingw and BeOS.
30871         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
30872         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
30873         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
30874         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30875         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30876         gl_PRINTF_PRECISION and test its result. Invoke
30877         gl_PREREQ_VASNPRINTF_PRECISION.
30878         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30879         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30880         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30881         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30882         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30883         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30884         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30885         * doc/functions/fprintf.texi: Update.
30886         * doc/functions/printf.texi: Update.
30887         * doc/functions/snprintf.texi: Update.
30888         * doc/functions/sprintf.texi: Update.
30889         * doc/functions/vfprintf.texi: Update.
30890         * doc/functions/vprintf.texi: Update.
30891         * doc/functions/vsnprintf.texi: Update.
30892         * doc/functions/vsprintf.texi: Update.
30893
30894 2007-11-04  Bruno Haible  <bruno@clisp.org>
30895
30896         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
30897
30898 2007-11-04  Bruno Haible  <bruno@clisp.org>
30899
30900         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
30901         Reported by Sylvain Beucler <beuc@gnu.org>.
30902
30903 2007-11-03  Bruno Haible  <bruno@clisp.org>
30904
30905         * tests/test-fprintf-posix2.sh: New file.
30906         * tests/test-fprintf-posix2.c: New file.
30907         * modules/fprintf-posix-tests (Files): Add them.
30908         (TESTS): Add test-fprintf-posix2.sh.
30909         (configure.ac): Check for getrlimit and setrlimit.
30910         (check_PROGRAMS): Add test-fprintf-posix2.
30911
30912         * tests/test-printf-posix2.sh: New file.
30913         * tests/test-printf-posix2.c: New file.
30914         * modules/printf-posix-tests (Files): Add them.
30915         (TESTS): Add test-printf-posix2.sh.
30916         (configure.ac): Check for getrlimit and setrlimit.
30917         (check_PROGRAMS): Add test-printf-posix2.
30918
30919         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
30920         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
30921         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
30922         (decode_double): New function, copied from decode_long_double.
30923         (scale10_round_decimal_decoded): New function, extracted from
30924         scale10_round_decimal_long_double.
30925         (scale10_round_decimal_long_double): Use it.
30926         (scale10_round_decimal_double): New function.
30927         (floorlog10): New function.
30928         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
30929         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
30930         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30931         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30932         gl_PRINTF_ENOMEM and test its result. Invoke
30933         gl_PREREQ_VASNPRINTF_ENOMEM.
30934         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30935         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30936         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30937         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30938         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30939         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30940         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30941         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
30942         * modules/snprintf-posix (Depends-on): Likewise.
30943         * modules/sprintf-posix (Depends-on): Likewise.
30944         * modules/vasnprintf-posix (Depends-on): Likewise.
30945         * modules/vasprintf-posix (Depends-on): Likewise.
30946         * modules/vfprintf-posix (Depends-on): Likewise.
30947         * modules/vsnprintf-posix (Depends-on): Likewise.
30948         * modules/vsprintf-posix (Depends-on): Likewise.
30949         * doc/functions/fprintf.texi: Update.
30950         * doc/functions/printf.texi: Update.
30951         * doc/functions/snprintf.texi: Update.
30952         * doc/functions/sprintf.texi: Update.
30953         * doc/functions/vfprintf.texi: Update.
30954         * doc/functions/vprintf.texi: Update.
30955         * doc/functions/vsnprintf.texi: Update.
30956         * doc/functions/vsprintf.texi: Update.
30957
30958 2007-11-03  Bruno Haible  <bruno@clisp.org>
30959
30960         * modules/frexp-nolibm-tests: New file.
30961
30962         * modules/frexp-nolibm: New file.
30963         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
30964
30965 2007-11-03  Bruno Haible  <bruno@clisp.org>
30966
30967         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
30968         value is C99 compliant.
30969         Needed for OSF/1 5.1.
30970
30971 2007-11-03  Bruno Haible  <bruno@clisp.org>
30972
30973         Fix out-of-memory handling of vasnprintf.
30974         * lib/printf-parse.c: Include <errno.h>.
30975         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
30976         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
30977         is already set.
30978
30979 2007-11-02  Eric Blake  <ebb9@byu.net>
30980
30981         Fix tests on cygwin.
30982         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
30983
30984 2007-11-01  Bruno Haible  <bruno@clisp.org>
30985
30986         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
30987         warning.
30988         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
30989         needed for POSIX compatibility.
30990
30991 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
30992
30993         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
30994         for compatibility with GNU.
30995
30996 2007-11-01  Bruno Haible  <bruno@clisp.org>
30997
30998         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
30999         (putenv): Renamed from rpl_putenv. Change argument type from
31000         'const char *' to 'char *'.
31001         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
31002         of defining putenv in config.h, just set REPLACE_PUTENV.
31003         * modules/putenv (Depends-on): Add stdlib.
31004         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
31005         (Include): Use <stdlib.h>.
31006         * lib/stdlib.in.h (putenv): New declaration.
31007         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
31008         REPLACE_PUTENV.
31009         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
31010         REPLACE_PUTENV.
31011         Needed for MacOS X 10.5.0.
31012         Reported by Peter O'Gorman <peter@pogma.com>.
31013
31014 2007-11-01  Jim Meyering  <meyering@redhat.com>
31015
31016         Treat an empty date string exactly like "0".
31017         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
31018         if the remaining date string (to be parsed) is empty, use "0".
31019         Reported by Mischa Molhoek and discussed in this thread:
31020         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
31021
31022 2007-10-31  Bruno Haible  <bruno@clisp.org>
31023
31024         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
31025         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
31026         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
31027         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
31028         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
31029         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
31030
31031 2007-10-31  Bruno Haible  <bruno@clisp.org>
31032
31033         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
31034         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
31035         (AC_TYPE_LONG_LONG_INT): Use it.
31036         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
31037         it as well.
31038         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
31039         to m4/longlong.m4.
31040         * modules/stdint (Files): Remove m4/ulonglong.m4.
31041         * modules/strtoull (Files): Use m4/longlong.m4 instead of
31042         m4/ulonglong.m4.
31043         * modules/strtoumax (Files): Likewise.
31044
31045 2007-10-30  Bruno Haible  <bruno@clisp.org>
31046
31047         * modules/xvasprintf-posix: New file.
31048         Suggested by Eric Blake.
31049
31050 2007-10-30  Bruno Haible  <bruno@clisp.org>
31051
31052         * modules/xprintf-posix-tests: New file.
31053         * tests/test-xprintf-posix.sh: New file.
31054         * tests/test-xprintf-posix.c: New file.
31055         * tests/test-xfprintf-posix.c: New file.
31056
31057         * modules/xprintf-posix: New file.
31058
31059 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31060
31061         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
31062         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
31063         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
31064
31065 2007-10-29  Bruno Haible  <bruno@clisp.org>
31066
31067         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
31068         contain the special marker '_cv_'.
31069         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
31070         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
31071         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
31072         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
31073         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
31074         Reported by Ralf Wildenhues.
31075
31076 2007-10-29  Bruno Haible  <bruno@clisp.org>
31077
31078         * gnulib-tool (func_import): When --lgpl is not specified, set
31079         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
31080         GPLv3.
31081         Reported by Simon Josefsson.
31082
31083 2007-10-28  Bruno Haible  <bruno@clisp.org>
31084
31085         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
31086         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
31087         HAVE_DECL_ISFINITE.
31088         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
31089         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
31090         HAVE_DECL_ISFINITE.
31091
31092 2007-10-28  Bruno Haible  <bruno@clisp.org>
31093
31094         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
31095         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
31096
31097 2007-10-28  Bruno Haible  <bruno@clisp.org>
31098
31099         Fix link errors with Sun C 5.0 on Solaris 10.
31100         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
31101         function is declared but not present in the compiler's libm.
31102         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
31103         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
31104         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
31105         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
31106         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
31107         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
31108         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
31109         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
31110         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
31111         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
31112         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
31113         HAVE_DECL_FLOORL.
31114
31115 2007-10-28  Bruno Haible  <bruno@clisp.org>
31116
31117         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
31118         gl_FUNC_FLOORL. Cache the result.
31119         (gl_FUNC_FLOORL): Use it.
31120         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
31121         gl_FUNC_CEILL. Cache the result.
31122         (gl_FUNC_CEILL): Use it.
31123
31124         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
31125         gl_FUNC_FLOOR. Cache the result.
31126         (gl_FUNC_FLOOR): Use it.
31127         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
31128         gl_FUNC_CEIL. Cache the result.
31129         (gl_FUNC_CEIL): Use it.
31130
31131         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
31132         gl_FUNC_FLOORF. Cache the result.
31133         (gl_FUNC_FLOORF): Use it.
31134         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
31135         gl_FUNC_CEILF. Cache the result.
31136         (gl_FUNC_CEILF): Use it.
31137
31138 2007-10-28  Bruno Haible  <bruno@clisp.org>
31139
31140         * gnulib-tool: Allow specifying the LGPL version number through
31141         --lgpl=2 or --lgpl=3.
31142         (func_usage): Document --lgpl with argument.
31143         Handle --lgpl=... arguments.
31144         (func_import): Recognize also gl_LGPL calls with an argument. When
31145         --lgpl=2 is used and the module's license is just LGPL, report an
31146         error. Set sed_transform_lib_file according to the lgpl variable. In
31147         the generated files, use --lgpl or gl_LGPL invocations with argument,
31148         if necessary.
31149         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
31150         an LGPv2+ license.
31151         * doc/gnulib-tool.texi (Modified imports): Update explanation of
31152         gl_LGPL macro.
31153
31154 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31155             Bruno Haible  <bruno@clisp.org>
31156
31157         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
31158         (u16_uctomb_aux): Likewise.
31159         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
31160         !HAVE_INLINE.
31161         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
31162
31163 2007-10-28  Bruno Haible  <bruno@clisp.org>
31164
31165         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
31166         Invoke AM_GETTEXT_OPTION if it exists.
31167         * modules/vasprintf: Likewise.
31168         * modules/verror: Likewise.
31169         * modules/xprintf: Likewise.
31170         * modules/xvasprintf: Likewise.
31171
31172 2007-10-27  Ben Pfaff  <blp@gnu.org>
31173
31174         * lib/math.in.h: Define isfinite macro and prototypes for
31175         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
31176         implementations.
31177         * m4/math_h.m4: New substitutions for isfinite module.
31178         * lib/isfinite.c: New file.
31179         * m4/isfinite.m4: New file.
31180         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
31181         * modules/isfinite: New file.
31182         * modules/isfinite-tests: New file.
31183         * tests/tests-isfinite.c: New file.
31184         * doc/functions/isfinite.texi: Mention isfinite module.
31185         * MODULES.html.sh: Mention new module.
31186
31187 2007-10-27  Ben Pfaff  <blp@gnu.org>
31188
31189         Ralf Wildenhues reported that Tru64 4.0D declares the round
31190         functions but does not have definitions.
31191         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
31192         cannot be found in any library, set the output variable to
31193         "missing" instead of "".
31194         * m4/round.m4: Also use our substitute if we cannot find round in
31195         any library, even if it is declared.
31196         * m4/roundf.m4: Likewise for roundf.
31197         * m4/roundl.m4: Likewise for roundl.
31198         * lib/math.in.h: Undefine roundf, round, roundl before defining
31199         their replacements, to allow for hypothetical systems where these
31200         may be defined as macros but not available in libraries.
31201
31202 2007-10-27  Bruno Haible  <bruno@clisp.org>
31203
31204         * doc/gnulib.texi: Invoke @firstparagraphindent.
31205         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
31206         changes in gnulib.
31207         (Source changes): New section.
31208
31209 2007-10-26  Bruno Haible  <bruno@clisp.org>
31210
31211         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
31212         borrowed from autoconf.
31213
31214 2007-10-26  Bruno Haible  <bruno@clisp.org>
31215
31216         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
31217         strerror returned the empty string. Needed on HP-UX 11.00.
31218
31219 2007-10-24  Micah Cowan  <micah@cowan.name>
31220
31221         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
31222         * build-aux/bootstrap: Remove support for now-unnecessary option,
31223         --cvs-user, and envvars CVS_USER, CVS_RSH.
31224
31225 2007-10-24  Jim Meyering  <meyering@redhat.com>
31226
31227         Avoid diagnostics from sha1sum when there is no cached checksum.
31228         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
31229         if the po.s1 file hasn't been created yet.
31230
31231         * build-aux/bootstrap: Sync from coreutils:
31232         2007-10-24  Jim Meyering  <meyering@redhat.com>
31233         Get gnulib from the git repository, not from an obsolete cvs one.
31234         * build-aux/bootstrap: Suggestion from Micah Cowan.
31235         2007-10-04  Jim Meyering  <jim@meyering.net>
31236         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
31237         (update_po_files): Work also when there are no .po files in po/.
31238
31239 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
31240
31241         * README: Append ".git" to git and cg examples.
31242         Problem reported by Benoit Sigoure.
31243
31244 2007-10-23  Micah Cowan  <micah@cowan.name>
31245
31246         * users.txt: Add wget.
31247
31248 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31249
31250         Fix linking of some unistdio tests on FreeBSD.
31251         * modules/unistdio/u16-vsnprintf-tests
31252         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
31253         * modules/unistdio/u16-vsprintf-tests
31254         (test_u16_vsnprintf1_LDADD): Likewise.
31255         * modules/unistdio/u32-vsnprintf-tests
31256         (test_u32_vsnprintf1_LDADD): Likewise.
31257         * modules/unistdio/u32-vsprintf-tests
31258         (test_u32_vsprintf1_LDADD): Likewise.
31259         * modules/unistdio/u8-vsnprintf-tests
31260         (test_u8_vsnprintf1_LDADD): Likewise.
31261         * modules/unistdio/u8-vsprintf-tests
31262         (test_u8_vsprintf1_LDADD): Likewise.
31263         * modules/unistdio/ulc-vsnprintf-tests
31264         (test_ulc_vsnprintf1_LDADD): Likewise.
31265         * modules/unistdio/ulc-vsprintf-tests
31266         (test_ulc_vsprintf1_LDADD): Likewise.
31267
31268         Fix linking of some uniconv tests on FreeBSD.
31269         * modules/uniconv/u16-conv-from-enc-tests
31270         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
31271         * modules/uniconv/u16-conv-to-enc-tests
31272         (test_u16_conv_to_enc_LDADD): Likewise.
31273         * modules/uniconv/u16-strconv-from-enc-tests
31274         (test_u16_strconv_from_enc_LDADD): Likewise.
31275         * modules/uniconv/u16-strconv-to-enc-tests
31276         (test_u16_strconv_to_enc_LDADD): Likewise.
31277         * modules/uniconv/u32-conv-from-enc-tests
31278         (test_u32_conv_from_enc_LDADD): Likewise.
31279         * modules/uniconv/u32-conv-to-enc-tests
31280         (test_u32_conv_to_enc_LDADD): Likewise.
31281         * modules/uniconv/u32-strconv-from-enc-tests
31282         (test_u32_strconv_from_enc_LDADD): Likewise.
31283         * modules/uniconv/u32-strconv-to-enc-tests
31284         (test_u32_strconv_to_enc_LDADD): Likewise.
31285         * modules/uniconv/u8-conv-from-enc-tests
31286         (test_u8_conv_from_enc_LDADD): Likewise.
31287         * modules/uniconv/u8-conv-to-enc-tests
31288         (test_u8_conv_to_enc_LDADD): Likewise.
31289         * modules/uniconv/u8-strconv-from-enc-tests
31290         (test_u8_strconv_from_enc_LDADD): Likewise.
31291         * modules/uniconv/u8-strconv-to-enc-tests
31292         (test_u8_strconv_to_enc_LDADD): Likewise.
31293
31294 2007-10-22  Bruno Haible  <bruno@clisp.org>
31295
31296         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
31297         size.
31298
31299 2007-10-22  Eric Blake  <ebb9@byu.net>
31300
31301         Tweak x*printf documentation.
31302         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
31303         variable name and comments.
31304         Suggested by Bruno Haible.
31305
31306 2007-10-22  Bruno Haible  <bruno@clisp.org>
31307
31308         * lib/acl.c (copy_acl): Fix file name in comment.
31309
31310 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
31311
31312         Fix Tru64 problem with stdbool.h.
31313         * lib/stdbool.in.h (false, true):
31314         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
31315         Don't declare as an enum in this situation; it runs afoul of Tru64.
31316         Problem reported by Steven M. Schweda in
31317         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
31318
31319 2007-10-22  Eric Blake  <ebb9@byu.net>
31320
31321         Also wrap vf?printf.
31322         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
31323         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
31324         (xvprintf, xvfprintf): New functions.
31325
31326 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31327
31328         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
31329         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
31330
31331         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
31332         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
31333
31334 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
31335
31336         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
31337         by Bruno Haible.
31338
31339 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31340
31341         * lib/getloadavg.c
31342         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
31343         Undef `sys' after including sys/table.h, for Tru64 4.0D.
31344
31345         * tests/test-i-ring.c: Work for C89.
31346
31347 2007-10-22  Bruno Haible  <bruno@clisp.org>
31348
31349         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
31350         -1u, in preprocessor expression, so that we don't test for the bug
31351         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
31352         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
31353
31354 2007-10-22  Eric Blake  <ebb9@byu.net>
31355
31356         * tests/test-yesno.sh: Silence stderr during test.
31357
31358 2007-10-22  Simon Josefsson  <simon@josefsson.org>
31359
31360         * modules/crypto/gc-camellia: New file.
31361
31362         * m4/gc-camellia.m4: New file.
31363
31364         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
31365
31366         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
31367
31368 2007-10-22  Simon Josefsson  <simon@josefsson.org>
31369
31370         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
31371         --help to stdout.  Reported by sms@antinode.org (Steven
31372         M. Schweda).
31373
31374 2007-10-22  Simon Josefsson  <simon@josefsson.org>
31375
31376         * users.txt: Fix link to libksba.
31377
31378 2007-10-21  Ben Pfaff  <blp@gnu.org>
31379
31380         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
31381         round.c roundf implementation that depends on floorf and ceilf to
31382         be tested unconditionally.
31383
31384 2007-10-21  Ben Pfaff  <blp@gnu.org>
31385
31386         * m4/check-libm-func.m4: Removed.
31387         * m4/check-math-lib.m4: New file.
31388         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
31389         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
31390         definition and lack of AC_LIBOBJ([roundf]).
31391         * m4/roundl.m4: Ditto, and similarly for roundl.
31392         * modules/round: Reference new m4 file.
31393         * modules/roundf: Ditto.
31394         * modules/roundl: Ditto.
31395         * tests/test-round2.c (main): Use ROUND instead of round.
31396         Bug report from Bruno Haible.
31397
31398 2007-10-21  Bruno Haible  <bruno@clisp.org>
31399
31400         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
31401         context.
31402
31403 2007-10-21  Bruno Haible  <bruno@clisp.org>
31404
31405         * tests/test-wcwidth.c (main): Allow negative result for some control
31406         characters.
31407
31408         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
31409         Needed on OSF/1 5.1.
31410
31411 2007-10-21  Bruno Haible  <bruno@clisp.org>
31412
31413         * tests/test-floorf1.c: Include isnanf.h.
31414         (main): Use isnanf() instead of isnan().
31415         * tests/test-ceilf1.c: Include isnanf.h.
31416         (main): Use isnanf() instead of isnan().
31417         * tests/test-truncf1.c: Include isnanf.h.
31418         (main): Use isnanf() instead of isnan().
31419         * tests/test-roundf1.c: Include isnanf.h.
31420         (main): Use isnanf() instead of isnan().
31421
31422 2007-10-21  Eric Blake  <ebb9@byu.net>
31423
31424         * users.txt: Update URL for m4.
31425
31426 2007-10-21  Bruno Haible  <bruno@clisp.org>
31427
31428         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
31429
31430 2007-10-21  Bruno Haible  <bruno@clisp.org>
31431
31432         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
31433         Git's management files if the CVS files are not present.
31434
31435 2007-10-20  Bruno Haible  <bruno@clisp.org>
31436
31437         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
31438         gcc-3.4.x.
31439
31440 2007-10-20  Ben Pfaff  <blp@gnu.org>
31441
31442         * lib/math.in.h: Declare round, roundf, roundl if we are providing
31443         implementations.
31444         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
31445         * lib/round.c: New file.
31446         * lib/roundf.c: New file.
31447         * lib/roundl.c: New file.
31448         * m4/round.m4: New file.
31449         * m4/roundf.m4: New file.
31450         * m4/roundl.m4: New file.
31451         * m4/check-libm-func-m4: New file.
31452         * modules/math: Replace round, roundf, roundl related @VARS@ in
31453         math.in.h.
31454         * modules/round: New file.
31455         * modules/round-tests: New file.
31456         * modules/roundf: New file.
31457         * modules/roundf-tests: New file.
31458         * modules/roundl: New file.
31459         * modules/roundl-tests: New file.
31460         * tests/test-round1.c: New file.
31461         * tests/test-round2.c: New file.
31462         * tests/test-roundf1.c: New file.
31463         * tests/test-roundf2.c: New file.
31464         * tests/test-roundl.c: New file.
31465         * doc/functions/round.texi: Mention round module.
31466         * doc/functions/roundf.texi: Mention roundf module.
31467         * doc/functions/roundl.texi: Mention roundl module.
31468         * MODULES.html.sh: Mention new modules.
31469         Thanks to Bruno Haible for suggestions.
31470
31471 2007-10-20  Jim Meyering  <meyering@redhat.com>
31472
31473         * lib/xprintf.c: Include <config.h> unconditionally.
31474
31475         Change xprintf's license to GPL.
31476         * modules/xprintf (License): s/LGPL/GPL/, since this module
31477         depends on modules (exit and exitfail) which are GPL.
31478         Suggestion from Bruno Haible.
31479
31480         xprintf fixes.
31481         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
31482         Use a clearer diagnostic.
31483         Patch from Bruno Haible.
31484
31485 2007-10-20  Bruno Haible  <bruno@clisp.org>
31486
31487         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
31488         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
31489         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31490
31491 2007-10-20  Bruno Haible  <bruno@clisp.org>
31492
31493         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
31494         precision in the comparison result > x - 1 or similar.
31495         * tests/test-ceilf2.c (correct_result_p): Likewise.
31496         * tests/test-truncf2.c (correct_result_p): Likewise.
31497         * tests/test-trunc2.c (correct_result_p): Likewise.
31498         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31499
31500 2007-10-20  Bruno Haible  <bruno@clisp.org>
31501
31502         * modules/ceil: New file.
31503         * m4/ceil.m4: New file.
31504         * doc/functions/ceil.texi: Mention the 'ceil' module.
31505
31506 2007-10-20  Bruno Haible  <bruno@clisp.org>
31507
31508         * modules/floor: New file.
31509         * m4/floor.m4: New file.
31510         * doc/functions/floor.texi: Mention the 'floor' module.
31511
31512 2007-10-20  Bruno Haible  <bruno@clisp.org>
31513
31514         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
31515         of %a.
31516         * modules/floorf-tests (Depends-on): Likewise.
31517         * modules/truncf-tests (Depends-on): Likewise.
31518         * modules/trunc-tests (Depends-on): Likewise.
31519         Reported by Ben Pfaff.
31520
31521 2007-10-19  Jim Meyering  <meyering@redhat.com>
31522
31523         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
31524         Don't bother testing specific errno values.  Just test ferror.
31525
31526         New module: xprintf
31527         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
31528
31529 2007-10-19  Bruno Haible  <bruno@clisp.org>
31530
31531         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
31532         syntax.
31533         * modules/javaexec (Makefile.am): Likewise.
31534         * modules/relocatable-prog (Makefile.am): Likewise.
31535         Suggested by Jim Meyering.
31536
31537 2007-10-18  Bruno Haible  <bruno@clisp.org>
31538
31539         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
31540         Reported by Jim Meyering.
31541
31542 2007-10-18  Eric Blake  <ebb9@byu.net>
31543
31544         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
31545
31546 2007-10-18  Bruno Haible  <bruno@clisp.org>
31547
31548         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
31549         the format string into writable memory. Needed in Fortify conditions.
31550
31551 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
31552             Bruno Haible  <bruno@clisp.org>
31553
31554         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
31555         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
31556         * modules/trim (Depends-on): Add mbchar.
31557         (configure.ac): Add gl_FUNC_MBRTOWC.
31558         (Makefile.am): Augment lib_SOURCES.
31559
31560 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
31561
31562         Modify glob.c to use fstatat and dirfd, to simplify it.
31563         Suggested by Eric Blake.
31564         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
31565         Don't include <stdbool.h>; not used.
31566         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
31567         (link_exists_p): Simplify implementation, since we can now assume
31568         dirfd and fstatat.
31569         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
31570
31571 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31572
31573         * gnulib-tool (func_get_dependencies): Fix sed script to
31574         match only tests.
31575
31576 2007-10-17  Bruno Haible  <bruno@clisp.org>
31577
31578         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
31579         allow locale names without encoding suffix.
31580         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
31581         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
31582
31583 2007-10-16  Bruno Haible  <bruno@clisp.org>
31584
31585         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
31586         * lib/getgroups.c (getgroups): Likewise.
31587         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
31588
31589 2007-10-16  Bruno Haible  <bruno@clisp.org>
31590
31591         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
31592         * modules/malloc-posix (License): Likewise.
31593         * modules/realloc-posix (License): Likewise.
31594         * modules/calloc-posix (License): Likewise.
31595         * modules/intprops (License): Change from GPL to LGPL, with
31596         Paul Eggert's approval.
31597
31598 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
31599
31600         Merge glibc changes into lib/glob.c.
31601
31602         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
31603         2007-10-15 04:59:03 UTC.  Here are the changes:
31604
31605         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
31606
31607         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
31608
31609         * lib/glob.c: Add some branch prediction throughout.
31610
31611         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
31612
31613         [BZ #5103]
31614         * lib/glob.c (glob): Recognize patterns starting \/.
31615
31616         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
31617
31618         [BZ #3996]
31619         * lib/glob.c (attribute_hidden): Define if not defined.
31620         (glob): Unescape dirname, filename or username when needed and not
31621         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
31622         is NULL.  Handle unescaped [ in pattern without closing ].
31623         Don't pass GLOB_CHECK down to recursive glob for directories.
31624         (__glob_pattern_type): New function.
31625         (__glob_pattern_p): Implement using __glob_pattern_type.
31626         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
31627         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
31628         Remove unreachable code.
31629
31630         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
31631
31632         * lib/glob.c (glob_in_dir): Add some comments and asserts to
31633         explain why there are no leaks.
31634
31635         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
31636
31637         [BZ #3253]
31638         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
31639         time, rather allocate increasingly bigger arrays of pointers, if
31640         possible with alloca, if too large with malloc.
31641
31642 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
31643
31644         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
31645         Problem reported by H.Merijn Brand in
31646         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
31647         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
31648         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
31649
31650 2007-10-15  Bruno Haible  <bruno@clisp.org>
31651
31652         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
31653         with explicit rpl_ prefix.
31654         * lib/fopen.c (fopen): Likewise.
31655         * lib/freopen.c (freopen): Likewise.
31656         * lib/iconv.c (iconv): Likewise.
31657         * lib/iconv_close.c (iconv_close): Likewise.
31658
31659 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31660
31661         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
31662
31663 2007-10-15  Bruno Haible  <bruno@clisp.org>
31664
31665         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
31666         <stddef.h> instead of <stdlib.h> since we only need NULL.
31667         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31668
31669 2007-10-15  Bruno Haible  <bruno@clisp.org>
31670
31671         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
31672         Replace paragraph talking about LIBOBJS.
31673         Reported by Colin Watson <cjwatson@debian.org>.
31674
31675 2007-10-15  Bruno Haible  <bruno@clisp.org>
31676
31677         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
31678         <stdlib.h> before using NULL.
31679
31680 2007-10-15  Simon Josefsson  <simon@josefsson.org>
31681
31682         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
31683         Reported by Albert Chin <china@thewrittenword.com>.
31684
31685 2007-10-14  Bruno Haible  <bruno@clisp.org>
31686
31687         * modules/iconv_open-utf-tests: New file.
31688         * tests/test-iconv-utf.c: New file.
31689
31690         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
31691         * modules/iconv_open-utf: New file.
31692         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
31693         (iconv, iconv_close): New declarations.
31694         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
31695         be defined.
31696         (iconv_open): Add special handling of conversion between UTF-8 and
31697         UTF-{16,32}{BE,LE}.
31698         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
31699         * lib/iconv_close.c: New file.
31700         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
31701         gl_FUNC_ICONV_OPEN.
31702         (gl_FUNC_ICONV_OPEN): Use it.
31703         (gl_FUNC_ICONV_OPEN_UTF): New macro.
31704         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
31705         and REPLACE_ICONV_UTF.
31706         * modules/iconv_open (Depends-on): Add c-strcase.
31707         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
31708         ICONV_CONST.
31709         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
31710
31711 2007-10-13  Albert Chin  <china@thewrittenword.com>
31712             Bruno Haible  <bruno@clisp.org>
31713
31714         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
31715         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
31716
31717 2007-10-13  Bruno Haible  <bruno@clisp.org>
31718
31719         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
31720         defined, use the ISO C99 inline semantics.
31721         * lib/argp.h (ARGP_EI): Likewise.
31722
31723 2007-10-13  Bruno Haible  <bruno@clisp.org>
31724
31725         Handle 'inline' change in gcc 4.3.0.
31726         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
31727         argp_fmtstream_write, argp_fmtstream_set_lmargin,
31728         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
31729         argp_fmtstream_point): Disable 'extern' declaration if the function
31730         definition is going to be provided inline.
31731         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
31732         semantics, not the ISO C99 inline semantics.
31733         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
31734         'extern' declaration if the function definition is going to be provided
31735         inline.
31736         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
31737         the GNU C inline semantics, not the ISO C99 inline semantics. With
31738         GCC 4.2, avoid a warning.
31739
31740 2007-10-13  Bruno Haible  <bruno@clisp.org>
31741
31742         * lib/freading.h (freading): Enable the use of __freading for
31743         glibc >= 2.7.
31744         * lib/freading.c (freading): Likewise.
31745
31746 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
31747
31748         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
31749         "warning: C99 inline functions are not supported; using GNU89".
31750
31751 2007-10-12  Bruno Haible  <bruno@clisp.org>
31752
31753         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
31754         of 2.
31755         * tests/test-ceilf2.c: New file.
31756         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
31757
31758         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
31759         * modules/ceilf-tests: Update.
31760
31761 2007-10-12  Bruno Haible  <bruno@clisp.org>
31762
31763         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
31764         of 2.
31765         * tests/test-floorf2.c: New file.
31766         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
31767
31768         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
31769         * modules/floorf-tests: Update.
31770
31771 2007-10-12  Bruno Haible  <bruno@clisp.org>
31772
31773         * tests/test-trunc2.c: New file.
31774         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
31775
31776         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
31777         * modules/trunc-tests: Update.
31778
31779 2007-10-12  Bruno Haible  <bruno@clisp.org>
31780
31781         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
31782         of 2.
31783         * tests/test-truncf2.c: New file.
31784         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
31785
31786         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
31787         * modules/truncf-tests: Update.
31788
31789 2007-10-11  Eric Blake  <ebb9@byu.net>
31790
31791         Don't claim strerror is broken on Interix.
31792         * doc/functions/strerror.texi (strerror): Known broken systems are
31793         now Solaris 8, and not Interix.
31794         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
31795         Interix on cross-compile.
31796         Reported by Martin Koeppe in
31797         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
31798
31799 2007-10-11  Bruno Haible  <bruno@clisp.org>
31800
31801         * modules/i-ring-tests: New file.
31802         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
31803         instead of assert.
31804
31805 2007-10-11  Bruno Haible  <bruno@clisp.org>
31806
31807         * modules/filenamecat-tests: New file.
31808         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
31809         * lib/filenamecat.c: Remove test code.
31810
31811 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
31812
31813         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
31814
31815         * lib/strerror.c: Include <string.h> always, to test interface,
31816         and to remove the need for the dummy.
31817         Include intprops.h to compute width instead of doing it ourselves
31818         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
31819         (strerror): Define it to return NULL if there's no system strerror.
31820         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
31821         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
31822         ancient pre-strerror Unix systems well any more.  Saying "unknown
31823         system error" is enough.
31824         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
31825         simpler strerror.c implementation.
31826         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
31827         Simplify the tests to reflect the simpler strerror implementation.
31828         * modules/strerror (Depends-on): Add intprops.
31829
31830 2007-10-09  Eric Blake  <ebb9@byu.net>
31831
31832         Silence test-fpending.
31833         * modules/fpending-tests (Files): Add wrapper script.
31834         * tests/test-fpending.sh: New file.
31835
31836 2007-10-09  Bruno Haible  <bruno@clisp.org>
31837
31838         * MODULES.html.sh (func_module): Don't create a hyperlink for
31839         function names like 'printf_frexp'.
31840         (Misc): Add crc, memxor.
31841         (Characteristics of floating types): New section.
31842         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
31843         isnanf-nolibm, signbit, trunc, truncf, truncl.
31844         (Enhancements for ISO C 99 functions): New subsection Input/output.
31845         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
31846         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
31847         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
31848         (Compatibility checks for POSIX:2001 functions): Add clock-time.
31849         (Enhancements for POSIX:2001 functions): Add chdir-long.
31850         (File system functions): Add areadlink, chdir-safer, read-file.
31851         Remove cycle-check.
31852         (File system as inode set): New section.
31853         (Date and time): Add gethrxtime.
31854         (Multithreading): Add openmp.
31855         (Internationalization functions): Add localename.
31856         (Unicode string functions): Add unistr/u*-mbsnlen.
31857         (Support for maintaining and releasing projects): Add git-version-gen.
31858         (Lone files): Remove directories.
31859
31860 2007-10-08  Ben Pfaff  <blp@gnu.org>
31861
31862         * lib/xmalloca.h: Fix typo in comment.
31863
31864 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
31865
31866         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
31867         when avoiding problems with integer overflow.  Use a portable test
31868         instead.
31869
31870 2007-10-08  Simon Josefsson  <simon@josefsson.org>
31871
31872         * modules/dummy (License): Change to LGPLv2+.
31873         * modules/float (License): Likewise
31874         * modules/realloc (License): Likewise
31875         * modules/stdlib (License): Likewise
31876
31877 2007-10-07  Bruno Haible  <bruno@clisp.org>
31878
31879         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
31880         * floor.c (TWO_MANT_DIG): Likewise.
31881         * ceil.c (TWO_MANT_DIG): Likewise.
31882         Reported by Ben Pfaff.
31883
31884 2007-10-07  Bruno Haible  <bruno@clisp.org>
31885
31886         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
31887         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
31888         * lib/frexp.c (FUNC): Likewise.
31889         * lib/printf-frexp.h (printf_frexp): Likewise.
31890         * lib/printf-frexpl.h (printf_frexpl): Likewise.
31891         * lib/printf-frexp.c (FUNC): Likewise.
31892         Suggested by Jim Meyering.
31893
31894 2007-10-07  Jim Meyering  <meyering@redhat.com>
31895
31896         Make xnanosleep's integer overflow test more robust.
31897         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
31898         so that gcc-4.3.0 doesn't optimize away this test for overflow.
31899
31900 2007-10-07  Bruno Haible  <bruno@clisp.org>
31901
31902         * NEWS: Mention the license change.
31903
31904         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
31905         abbreviations in the modules files.
31906
31907         Change copyright notice from GPLv2+ to GPLv3+.
31908         * README: Change copyright notice.
31909         * MODULES.html.sh: Likewise.
31910         * build-aux/bootstrap.conf: Likewise.
31911         * build-aux/config.libpath: Likewise.
31912         * build-aux/csharpcomp.sh.in: Likewise.
31913         * build-aux/csharpexec.sh.in: Likewise.
31914         * build-aux/install-reloc: Likewise.
31915         * build-aux/javacomp.sh.in: Likewise.
31916         * build-aux/javaexec.sh.in: Likewise.
31917         * build-aux/ldd.sh.in: Likewise.
31918         * build-aux/reloc-ldflags: Likewise.
31919         * build-aux/relocatable.sh.in: Likewise.
31920         * build-aux/x-to-1.in: Likewise.
31921         * check-module: Likewise.
31922         * config/srclistvars.sh: Likewise.
31923         * gnulib-tool: Likewise.
31924         * lib/acl-internal.h: Likewise.
31925         * lib/acl.c: Likewise.
31926         * lib/acl.h: Likewise.
31927         * lib/acl_entries.c: Likewise.
31928         * lib/areadlink-with-size.c: Likewise.
31929         * lib/areadlink.c: Likewise.
31930         * lib/areadlink.h: Likewise.
31931         * lib/argmatch.c: Likewise.
31932         * lib/argmatch.h: Likewise.
31933         * lib/argp-ba.c: Likewise.
31934         * lib/argp-eexst.c: Likewise.
31935         * lib/argp-fmtstream.c: Likewise.
31936         * lib/argp-fmtstream.h: Likewise.
31937         * lib/argp-fs-xinl.c: Likewise.
31938         * lib/argp-help.c: Likewise.
31939         * lib/argp-namefrob.h: Likewise.
31940         * lib/argp-parse.c: Likewise.
31941         * lib/argp-pin.c: Likewise.
31942         * lib/argp-pv.c: Likewise.
31943         * lib/argp-pvh.c: Likewise.
31944         * lib/argp-xinl.c: Likewise.
31945         * lib/argp.h: Likewise.
31946         * lib/at-func.c: Likewise.
31947         * lib/atanl.c: Likewise.
31948         * lib/backupfile.c: Likewise.
31949         * lib/backupfile.h: Likewise.
31950         * lib/basename.c: Likewise.
31951         * lib/binary-io.h: Likewise.
31952         * lib/byteswap.in.h: Likewise.
31953         * lib/c-stack.c: Likewise.
31954         * lib/c-stack.h: Likewise.
31955         * lib/c-strcasestr.c: Likewise.
31956         * lib/c-strcasestr.h: Likewise.
31957         * lib/c-strstr.c: Likewise.
31958         * lib/c-strstr.h: Likewise.
31959         * lib/c-strtod.c: Likewise.
31960         * lib/calloc.c: Likewise.
31961         * lib/canon-host.c: Likewise.
31962         * lib/canon-host.h: Likewise.
31963         * lib/canonicalize-lgpl.c: Likewise.
31964         * lib/canonicalize.c: Likewise.
31965         * lib/canonicalize.h: Likewise.
31966         * lib/ceil.c: Likewise.
31967         * lib/ceilf.c: Likewise.
31968         * lib/ceill.c: Likewise.
31969         * lib/chdir-long.c: Likewise.
31970         * lib/chdir-long.h: Likewise.
31971         * lib/chdir-safer.c: Likewise.
31972         * lib/chdir-safer.h: Likewise.
31973         * lib/chown.c: Likewise.
31974         * lib/classpath.c: Likewise.
31975         * lib/classpath.h: Likewise.
31976         * lib/clean-temp.c: Likewise.
31977         * lib/clean-temp.h: Likewise.
31978         * lib/cloexec.c: Likewise.
31979         * lib/close-stream.c: Likewise.
31980         * lib/closein.c: Likewise.
31981         * lib/closein.h: Likewise.
31982         * lib/closeout.c: Likewise.
31983         * lib/closeout.h: Likewise.
31984         * lib/concat-filename.c: Likewise.
31985         * lib/copy-file.c: Likewise.
31986         * lib/copy-file.h: Likewise.
31987         * lib/count-one-bits.h: Likewise.
31988         * lib/crc.c: Likewise.
31989         * lib/crc.h: Likewise.
31990         * lib/creat-safer.c: Likewise.
31991         * lib/csharpcomp.c: Likewise.
31992         * lib/csharpcomp.h: Likewise.
31993         * lib/csharpexec.c: Likewise.
31994         * lib/csharpexec.h: Likewise.
31995         * lib/cycle-check.c: Likewise.
31996         * lib/cycle-check.h: Likewise.
31997         * lib/diacrit.c: Likewise.
31998         * lib/diacrit.h: Likewise.
31999         * lib/diffseq.h: Likewise.
32000         * lib/dirchownmod.c: Likewise.
32001         * lib/dirent.in.h: Likewise.
32002         * lib/dirfd.c: Likewise.
32003         * lib/dirfd.h: Likewise.
32004         * lib/dirname.c: Likewise.
32005         * lib/dirname.h: Likewise.
32006         * lib/dummy.c: Likewise.
32007         * lib/dup-safer.c: Likewise.
32008         * lib/dup2.c: Likewise.
32009         * lib/eealloc.h: Likewise.
32010         * lib/error.c: Likewise.
32011         * lib/error.h: Likewise.
32012         * lib/euidaccess.c: Likewise.
32013         * lib/exclude.c: Likewise.
32014         * lib/exclude.h: Likewise.
32015         * lib/execute.c: Likewise.
32016         * lib/execute.h: Likewise.
32017         * lib/exitfail.c: Likewise.
32018         * lib/exitfail.h: Likewise.
32019         * lib/expl.c: Likewise.
32020         * lib/fatal-signal.c: Likewise.
32021         * lib/fatal-signal.h: Likewise.
32022         * lib/fbufmode.c: Likewise.
32023         * lib/fbufmode.h: Likewise.
32024         * lib/fchdir.c: Likewise.
32025         * lib/fchmodat.c: Likewise.
32026         * lib/fchownat.c: Likewise.
32027         * lib/fcntl--.h: Likewise.
32028         * lib/fcntl-safer.h: Likewise.
32029         * lib/fcntl.in.h: Likewise.
32030         * lib/fd-safer.c: Likewise.
32031         * lib/fflush.c: Likewise.
32032         * lib/file-has-acl.c: Likewise.
32033         * lib/file-set.c: Likewise.
32034         * lib/file-type.c: Likewise.
32035         * lib/file-type.h: Likewise.
32036         * lib/fileblocks.c: Likewise.
32037         * lib/filemode.c: Likewise.
32038         * lib/filemode.h: Likewise.
32039         * lib/filename.h: Likewise.
32040         * lib/filenamecat.c: Likewise.
32041         * lib/filenamecat.h: Likewise.
32042         * lib/findprog.c: Likewise.
32043         * lib/findprog.h: Likewise.
32044         * lib/float.in.h: Likewise.
32045         * lib/floor.c: Likewise.
32046         * lib/floorf.c: Likewise.
32047         * lib/floorl.c: Likewise.
32048         * lib/fopen-safer.c: Likewise.
32049         * lib/fopen.c: Likewise.
32050         * lib/fpending.c: Likewise.
32051         * lib/fpending.h: Likewise.
32052         * lib/fprintf.c: Likewise.
32053         * lib/fprintftime.h: Likewise.
32054         * lib/fpucw.h: Likewise.
32055         * lib/fpurge.c: Likewise.
32056         * lib/fpurge.h: Likewise.
32057         * lib/freadable.c: Likewise.
32058         * lib/freadable.h: Likewise.
32059         * lib/freadahead.c: Likewise.
32060         * lib/freadahead.h: Likewise.
32061         * lib/freading.c: Likewise.
32062         * lib/freading.h: Likewise.
32063         * lib/free.c: Likewise.
32064         * lib/freopen.c: Likewise.
32065         * lib/frexp.c: Likewise.
32066         * lib/frexpl.c: Likewise.
32067         * lib/fseek.c: Likewise.
32068         * lib/fseterr.c: Likewise.
32069         * lib/fseterr.h: Likewise.
32070         * lib/fstatat.c: Likewise.
32071         * lib/fstrcmp.c: Likewise.
32072         * lib/fstrcmp.h: Likewise.
32073         * lib/fsusage.c: Likewise.
32074         * lib/fsusage.h: Likewise.
32075         * lib/ftell.c: Likewise.
32076         * lib/ftello.c: Likewise.
32077         * lib/fts-cycle.c: Likewise.
32078         * lib/fts.c: Likewise.
32079         * lib/fts_.h: Likewise.
32080         * lib/full-read.c: Likewise.
32081         * lib/full-read.h: Likewise.
32082         * lib/full-write.c: Likewise.
32083         * lib/full-write.h: Likewise.
32084         * lib/fwritable.c: Likewise.
32085         * lib/fwritable.h: Likewise.
32086         * lib/fwriteerror.c: Likewise.
32087         * lib/fwriteerror.h: Likewise.
32088         * lib/fwriting.c: Likewise.
32089         * lib/fwriting.h: Likewise.
32090         * lib/gcd.c: Likewise.
32091         * lib/gcd.h: Likewise.
32092         * lib/getcwd.c: Likewise.
32093         * lib/getdate.h: Likewise.
32094         * lib/getdate.y: Likewise.
32095         * lib/getdomainname.c: Likewise.
32096         * lib/getdomainname.h: Likewise.
32097         * lib/getgroups.c: Likewise.
32098         * lib/gethostname.c: Likewise.
32099         * lib/gethrxtime.c: Likewise.
32100         * lib/gethrxtime.h: Likewise.
32101         * lib/getloadavg.c: Likewise.
32102         * lib/getndelim2.c: Likewise.
32103         * lib/getndelim2.h: Likewise.
32104         * lib/getnline.c: Likewise.
32105         * lib/getnline.h: Likewise.
32106         * lib/getopt.c: Likewise.
32107         * lib/getopt.in.h: Likewise.
32108         * lib/getopt1.c: Likewise.
32109         * lib/getopt_int.h: Likewise.
32110         * lib/getpagesize.h: Likewise.
32111         * lib/getsubopt.c: Likewise.
32112         * lib/gettime.c: Likewise.
32113         * lib/getugroups.c: Likewise.
32114         * lib/getugroups.h: Likewise.
32115         * lib/getusershell.c: Likewise.
32116         * lib/gl_anyavltree_list1.h: Likewise.
32117         * lib/gl_anyavltree_list2.h: Likewise.
32118         * lib/gl_anyhash_list1.h: Likewise.
32119         * lib/gl_anyhash_list2.h: Likewise.
32120         * lib/gl_anylinked_list1.h: Likewise.
32121         * lib/gl_anylinked_list2.h: Likewise.
32122         * lib/gl_anyrbtree_list1.h: Likewise.
32123         * lib/gl_anyrbtree_list2.h: Likewise.
32124         * lib/gl_anytree_list1.h: Likewise.
32125         * lib/gl_anytree_list2.h: Likewise.
32126         * lib/gl_anytree_oset.h: Likewise.
32127         * lib/gl_anytreehash_list1.h: Likewise.
32128         * lib/gl_anytreehash_list2.h: Likewise.
32129         * lib/gl_array_list.c: Likewise.
32130         * lib/gl_array_list.h: Likewise.
32131         * lib/gl_array_oset.c: Likewise.
32132         * lib/gl_array_oset.h: Likewise.
32133         * lib/gl_avltree_list.c: Likewise.
32134         * lib/gl_avltree_list.h: Likewise.
32135         * lib/gl_avltree_oset.c: Likewise.
32136         * lib/gl_avltree_oset.h: Likewise.
32137         * lib/gl_avltreehash_list.c: Likewise.
32138         * lib/gl_avltreehash_list.h: Likewise.
32139         * lib/gl_carray_list.c: Likewise.
32140         * lib/gl_carray_list.h: Likewise.
32141         * lib/gl_linked_list.c: Likewise.
32142         * lib/gl_linked_list.h: Likewise.
32143         * lib/gl_linkedhash_list.c: Likewise.
32144         * lib/gl_linkedhash_list.h: Likewise.
32145         * lib/gl_list.c: Likewise.
32146         * lib/gl_list.h: Likewise.
32147         * lib/gl_oset.c: Likewise.
32148         * lib/gl_oset.h: Likewise.
32149         * lib/gl_rbtree_list.c: Likewise.
32150         * lib/gl_rbtree_list.h: Likewise.
32151         * lib/gl_rbtree_oset.c: Likewise.
32152         * lib/gl_rbtree_oset.h: Likewise.
32153         * lib/gl_rbtreehash_list.c: Likewise.
32154         * lib/gl_rbtreehash_list.h: Likewise.
32155         * lib/gl_sublist.c: Likewise.
32156         * lib/gl_sublist.h: Likewise.
32157         * lib/group-member.c: Likewise.
32158         * lib/group-member.h: Likewise.
32159         * lib/hard-locale.c: Likewise.
32160         * lib/hard-locale.h: Likewise.
32161         * lib/hash-pjw.c: Likewise.
32162         * lib/hash-pjw.h: Likewise.
32163         * lib/hash-triple.c: Likewise.
32164         * lib/hash.c: Likewise.
32165         * lib/hash.h: Likewise.
32166         * lib/human.c: Likewise.
32167         * lib/human.h: Likewise.
32168         * lib/i-ring.c: Likewise.
32169         * lib/i-ring.h: Likewise.
32170         * lib/idcache.c: Likewise.
32171         * lib/imaxabs.c: Likewise.
32172         * lib/imaxdiv.c: Likewise.
32173         * lib/inet_pton.c: Likewise.
32174         * lib/inet_pton.h: Likewise.
32175         * lib/intprops.h: Likewise.
32176         * lib/inttostr.c: Likewise.
32177         * lib/inttostr.h: Likewise.
32178         * lib/inttypes.in.h: Likewise.
32179         * lib/isapipe.c: Likewise.
32180         * lib/isdir.c: Likewise.
32181         * lib/isnan.c: Likewise.
32182         * lib/isnan.h: Likewise.
32183         * lib/isnanf.c: Likewise.
32184         * lib/isnanf.h: Likewise.
32185         * lib/isnanl-nolibm.h: Likewise.
32186         * lib/isnanl.c: Likewise.
32187         * lib/isnanl.h: Likewise.
32188         * lib/javacomp.c: Likewise.
32189         * lib/javacomp.h: Likewise.
32190         * lib/javaexec.c: Likewise.
32191         * lib/javaexec.h: Likewise.
32192         * lib/javaversion.c: Likewise.
32193         * lib/javaversion.h: Likewise.
32194         * lib/javaversion.java: Likewise.
32195         * lib/lbrkprop.h: Likewise.
32196         * lib/lchmod.h: Likewise.
32197         * lib/lchown.c: Likewise.
32198         * lib/ldexpl.c: Likewise.
32199         * lib/linebreak.c: Likewise.
32200         * lib/linebreak.h: Likewise.
32201         * lib/linebuffer.c: Likewise.
32202         * lib/linebuffer.h: Likewise.
32203         * lib/locale.in.h: Likewise.
32204         * lib/logl.c: Likewise.
32205         * lib/long-options.c: Likewise.
32206         * lib/long-options.h: Likewise.
32207         * lib/lstat.c: Likewise.
32208         * lib/lstat.h: Likewise.
32209         * lib/math.in.h: Likewise.
32210         * lib/mbchar.c: Likewise.
32211         * lib/mbchar.h: Likewise.
32212         * lib/mbfile.h: Likewise.
32213         * lib/mbiter.h: Likewise.
32214         * lib/mbscasecmp.c: Likewise.
32215         * lib/mbscasestr.c: Likewise.
32216         * lib/mbschr.c: Likewise.
32217         * lib/mbscspn.c: Likewise.
32218         * lib/mbslen.c: Likewise.
32219         * lib/mbsncasecmp.c: Likewise.
32220         * lib/mbsnlen.c: Likewise.
32221         * lib/mbspbrk.c: Likewise.
32222         * lib/mbspcasecmp.c: Likewise.
32223         * lib/mbsrchr.c: Likewise.
32224         * lib/mbssep.c: Likewise.
32225         * lib/mbsspn.c: Likewise.
32226         * lib/mbsstr.c: Likewise.
32227         * lib/mbstok_r.c: Likewise.
32228         * lib/mbswidth.c: Likewise.
32229         * lib/mbswidth.h: Likewise.
32230         * lib/mbuiter.h: Likewise.
32231         * lib/memcasecmp.c: Likewise.
32232         * lib/memcasecmp.h: Likewise.
32233         * lib/memchr.c: Likewise.
32234         * lib/memcmp.c: Likewise.
32235         * lib/memcoll.c: Likewise.
32236         * lib/memcoll.h: Likewise.
32237         * lib/memcpy.c: Likewise.
32238         * lib/memrchr.c: Likewise.
32239         * lib/mkancesdirs.c: Likewise.
32240         * lib/mkdir-p.c: Likewise.
32241         * lib/mkdir-p.h: Likewise.
32242         * lib/mkdir.c: Likewise.
32243         * lib/mkdirat.c: Likewise.
32244         * lib/mkdtemp.c: Likewise.
32245         * lib/mkstemp-safer.c: Likewise.
32246         * lib/mkstemp.c: Likewise.
32247         * lib/modechange.c: Likewise.
32248         * lib/modechange.h: Likewise.
32249         * lib/mountlist.c: Likewise.
32250         * lib/mountlist.h: Likewise.
32251         * lib/mpsort.c: Likewise.
32252         * lib/nanosleep.c: Likewise.
32253         * lib/obstack.c: Likewise.
32254         * lib/obstack.h: Likewise.
32255         * lib/open-safer.c: Likewise.
32256         * lib/open.c: Likewise.
32257         * lib/openat-die.c: Likewise.
32258         * lib/openat-priv.h: Likewise.
32259         * lib/openat-proc.c: Likewise.
32260         * lib/openat.c: Likewise.
32261         * lib/openat.h: Likewise.
32262         * lib/pagealign_alloc.c: Likewise.
32263         * lib/pagealign_alloc.h: Likewise.
32264         * lib/physmem.c: Likewise.
32265         * lib/physmem.h: Likewise.
32266         * lib/pipe-safer.c: Likewise.
32267         * lib/pipe.c: Likewise.
32268         * lib/pipe.h: Likewise.
32269         * lib/posixtm.c: Likewise.
32270         * lib/posixtm.h: Likewise.
32271         * lib/posixver.c: Likewise.
32272         * lib/printf-frexp.c: Likewise.
32273         * lib/printf-frexp.h: Likewise.
32274         * lib/printf-frexpl.c: Likewise.
32275         * lib/printf-frexpl.h: Likewise.
32276         * lib/printf.c: Likewise.
32277         * lib/progname.c: Likewise.
32278         * lib/progname.h: Likewise.
32279         * lib/progreloc.c: Likewise.
32280         * lib/putenv.c: Likewise.
32281         * lib/quote.c: Likewise.
32282         * lib/quote.h: Likewise.
32283         * lib/quotearg.c: Likewise.
32284         * lib/quotearg.h: Likewise.
32285         * lib/raise.c: Likewise.
32286         * lib/readline.c: Likewise.
32287         * lib/readline.h: Likewise.
32288         * lib/readlink.c: Likewise.
32289         * lib/readtokens.c: Likewise.
32290         * lib/readtokens.h: Likewise.
32291         * lib/readtokens0.c: Likewise.
32292         * lib/readtokens0.h: Likewise.
32293         * lib/readutmp.c: Likewise.
32294         * lib/readutmp.h: Likewise.
32295         * lib/realloc.c: Likewise.
32296         * lib/relocwrapper.c: Likewise.
32297         * lib/rename-dest-slash.c: Likewise.
32298         * lib/rename.c: Likewise.
32299         * lib/rmdir.c: Likewise.
32300         * lib/rpmatch.c: Likewise.
32301         * lib/safe-read.c: Likewise.
32302         * lib/safe-read.h: Likewise.
32303         * lib/safe-write.c: Likewise.
32304         * lib/safe-write.h: Likewise.
32305         * lib/same-inode.h: Likewise.
32306         * lib/same.c: Likewise.
32307         * lib/same.h: Likewise.
32308         * lib/save-cwd.c: Likewise.
32309         * lib/save-cwd.h: Likewise.
32310         * lib/savedir.c: Likewise.
32311         * lib/savedir.h: Likewise.
32312         * lib/savewd.c: Likewise.
32313         * lib/savewd.h: Likewise.
32314         * lib/search.in.h: Likewise.
32315         * lib/setenv.c: Likewise.
32316         * lib/setenv.h: Likewise.
32317         * lib/settime.c: Likewise.
32318         * lib/sh-quote.c: Likewise.
32319         * lib/sh-quote.h: Likewise.
32320         * lib/sig2str.c: Likewise.
32321         * lib/sig2str.h: Likewise.
32322         * lib/signal.in.h: Likewise.
32323         * lib/signbitd.c: Likewise.
32324         * lib/signbitf.c: Likewise.
32325         * lib/signbitl.c: Likewise.
32326         * lib/sigprocmask.c: Likewise.
32327         * lib/sincosl.c: Likewise.
32328         * lib/sleep.c: Likewise.
32329         * lib/sprintf.c: Likewise.
32330         * lib/sqrtl.c: Likewise.
32331         * lib/stat-time.h: Likewise.
32332         * lib/stdio--.h: Likewise.
32333         * lib/stdio-safer.h: Likewise.
32334         * lib/stdlib--.h: Likewise.
32335         * lib/stdlib-safer.h: Likewise.
32336         * lib/stdlib.in.h: Likewise.
32337         * lib/stpcpy.c: Likewise.
32338         * lib/stpncpy.c: Likewise.
32339         * lib/strchrnul.c: Likewise.
32340         * lib/strcspn.c: Likewise.
32341         * lib/strerror.c: Likewise.
32342         * lib/strftime.c: Likewise.
32343         * lib/strftime.h: Likewise.
32344         * lib/striconveh.c: Likewise.
32345         * lib/striconveh.h: Likewise.
32346         * lib/striconveha.c: Likewise.
32347         * lib/striconveha.h: Likewise.
32348         * lib/stripslash.c: Likewise.
32349         * lib/strnlen1.c: Likewise.
32350         * lib/strnlen1.h: Likewise.
32351         * lib/strtod.c: Likewise.
32352         * lib/strtoimax.c: Likewise.
32353         * lib/strtok_r.c: Likewise.
32354         * lib/strtol.c: Likewise.
32355         * lib/strtoll.c: Likewise.
32356         * lib/strtoul.c: Likewise.
32357         * lib/strtoull.c: Likewise.
32358         * lib/sysexits.in.h: Likewise.
32359         * lib/tempname.c: Likewise.
32360         * lib/tempname.h: Likewise.
32361         * lib/timespec.h: Likewise.
32362         * lib/tls.c: Likewise.
32363         * lib/tls.h: Likewise.
32364         * lib/tmpdir.c: Likewise.
32365         * lib/tmpdir.h: Likewise.
32366         * lib/tmpfile-safer.c: Likewise.
32367         * lib/tmpfile.c: Likewise.
32368         * lib/trigl.c: Likewise.
32369         * lib/trigl.h: Likewise.
32370         * lib/trim.c: Likewise.
32371         * lib/trim.h: Likewise.
32372         * lib/trunc.c: Likewise.
32373         * lib/truncf.c: Likewise.
32374         * lib/truncl.c: Likewise.
32375         * lib/tsearch.c: Likewise.
32376         * lib/unicodeio.c: Likewise.
32377         * lib/unicodeio.h: Likewise.
32378         * lib/unistd--.h: Likewise.
32379         * lib/unistd-safer.h: Likewise.
32380         * lib/unistdio/ulc-fprintf.c: Likewise.
32381         * lib/unistdio/ulc-vfprintf.c: Likewise.
32382         * lib/unlinkdir.c: Likewise.
32383         * lib/unlinkdir.h: Likewise.
32384         * lib/unlocked-io.h: Likewise.
32385         * lib/unsetenv.c: Likewise.
32386         * lib/userspec.c: Likewise.
32387         * lib/utime.c: Likewise.
32388         * lib/utimecmp.c: Likewise.
32389         * lib/utimecmp.h: Likewise.
32390         * lib/utimens.c: Likewise.
32391         * lib/verify.h: Likewise.
32392         * lib/verror.c: Likewise.
32393         * lib/verror.h: Likewise.
32394         * lib/version-etc-fsf.c: Likewise.
32395         * lib/version-etc.c: Likewise.
32396         * lib/version-etc.h: Likewise.
32397         * lib/vfprintf.c: Likewise.
32398         * lib/vprintf.c: Likewise.
32399         * lib/vsprintf.c: Likewise.
32400         * lib/w32spawn.h: Likewise.
32401         * lib/wait-process.c: Likewise.
32402         * lib/wait-process.h: Likewise.
32403         * lib/wcwidth.c: Likewise.
32404         * lib/write-any-file.c: Likewise.
32405         * lib/xalloc-die.c: Likewise.
32406         * lib/xalloc.h: Likewise.
32407         * lib/xasprintf.c: Likewise.
32408         * lib/xgetcwd.c: Likewise.
32409         * lib/xgetcwd.h: Likewise.
32410         * lib/xgetdomainname.c: Likewise.
32411         * lib/xgetdomainname.h: Likewise.
32412         * lib/xgethostname.c: Likewise.
32413         * lib/xmalloc.c: Likewise.
32414         * lib/xmalloca.c: Likewise.
32415         * lib/xmalloca.h: Likewise.
32416         * lib/xmemcoll.c: Likewise.
32417         * lib/xnanosleep.c: Likewise.
32418         * lib/xreadlink.c: Likewise.
32419         * lib/xreadlink.h: Likewise.
32420         * lib/xsetenv.c: Likewise.
32421         * lib/xsetenv.h: Likewise.
32422         * lib/xstriconv.c: Likewise.
32423         * lib/xstriconv.h: Likewise.
32424         * lib/xstrndup.c: Likewise.
32425         * lib/xstrndup.h: Likewise.
32426         * lib/xstrtod.c: Likewise.
32427         * lib/xstrtod.h: Likewise.
32428         * lib/xstrtol-error.c: Likewise.
32429         * lib/xstrtol.c: Likewise.
32430         * lib/xstrtol.h: Likewise.
32431         * lib/xtime.h: Likewise.
32432         * lib/xvasprintf.c: Likewise.
32433         * lib/xvasprintf.h: Likewise.
32434         * lib/yesno.c: Likewise.
32435         * lib/yesno.h: Likewise.
32436         * posix-modules: Likewise.
32437         * tests/test-alloca-opt.c: Likewise.
32438         * tests/test-arcfour.c: Likewise.
32439         * tests/test-arctwo.c: Likewise.
32440         * tests/test-argmatch.c: Likewise.
32441         * tests/test-argp-2.sh: Likewise.
32442         * tests/test-argp.c: Likewise.
32443         * tests/test-arpa_inet.c: Likewise.
32444         * tests/test-array_list.c: Likewise.
32445         * tests/test-array_oset.c: Likewise.
32446         * tests/test-atexit.c: Likewise.
32447         * tests/test-avltree_list.c: Likewise.
32448         * tests/test-avltree_oset.c: Likewise.
32449         * tests/test-avltreehash_list.c: Likewise.
32450         * tests/test-base64.c: Likewise.
32451         * tests/test-binary-io.c: Likewise.
32452         * tests/test-byteswap.c: Likewise.
32453         * tests/test-c-ctype.c: Likewise.
32454         * tests/test-c-strcasecmp.c: Likewise.
32455         * tests/test-c-strcasestr.c: Likewise.
32456         * tests/test-c-strncasecmp.c: Likewise.
32457         * tests/test-c-strstr.c: Likewise.
32458         * tests/test-canonicalize-lgpl.c: Likewise.
32459         * tests/test-canonicalize.c: Likewise.
32460         * tests/test-carray_list.c: Likewise.
32461         * tests/test-ceilf.c: Likewise.
32462         * tests/test-ceill.c: Likewise.
32463         * tests/test-count-one-bits.c: Likewise.
32464         * tests/test-crc.c: Likewise.
32465         * tests/test-dirname.c: Likewise.
32466         * tests/test-fbufmode.c: Likewise.
32467         * tests/test-fcntl.c: Likewise.
32468         * tests/test-fflush.c: Likewise.
32469         * tests/test-floorf.c: Likewise.
32470         * tests/test-floorl.c: Likewise.
32471         * tests/test-fopen.c: Likewise.
32472         * tests/test-fprintf-posix.c: Likewise.
32473         * tests/test-fprintf-posix.h: Likewise.
32474         * tests/test-fpurge.c: Likewise.
32475         * tests/test-freadable.c: Likewise.
32476         * tests/test-freadahead.c: Likewise.
32477         * tests/test-freading.c: Likewise.
32478         * tests/test-freopen.c: Likewise.
32479         * tests/test-frexp.c: Likewise.
32480         * tests/test-frexpl.c: Likewise.
32481         * tests/test-fseek.c: Likewise.
32482         * tests/test-fseeko.c: Likewise.
32483         * tests/test-fseterr.c: Likewise.
32484         * tests/test-fstrcmp.c: Likewise.
32485         * tests/test-ftell.c: Likewise.
32486         * tests/test-ftello.c: Likewise.
32487         * tests/test-fwritable.c: Likewise.
32488         * tests/test-fwriting.c: Likewise.
32489         * tests/test-getaddrinfo.c: Likewise.
32490         * tests/test-getpass.c: Likewise.
32491         * tests/test-gettimeofday.c: Likewise.
32492         * tests/test-hmac-md5.c: Likewise.
32493         * tests/test-hmac-sha1.c: Likewise.
32494         * tests/test-iconv.c: Likewise.
32495         * tests/test-iconvme.c: Likewise.
32496         * tests/test-inttypes.c: Likewise.
32497         * tests/test-isnan.c: Likewise.
32498         * tests/test-isnanf.c: Likewise.
32499         * tests/test-isnanl-nolibm.c: Likewise.
32500         * tests/test-isnanl.c: Likewise.
32501         * tests/test-isnanl.h: Likewise.
32502         * tests/test-ldexpl.c: Likewise.
32503         * tests/test-linked_list.c: Likewise.
32504         * tests/test-linkedhash_list.c: Likewise.
32505         * tests/test-locale.c: Likewise.
32506         * tests/test-localename.c: Likewise.
32507         * tests/test-lock.c: Likewise.
32508         * tests/test-lseek.c: Likewise.
32509         * tests/test-malloca.c: Likewise.
32510         * tests/test-math.c: Likewise.
32511         * tests/test-mbscasecmp.c: Likewise.
32512         * tests/test-mbscasestr1.c: Likewise.
32513         * tests/test-mbscasestr2.c: Likewise.
32514         * tests/test-mbscasestr3.c: Likewise.
32515         * tests/test-mbscasestr4.c: Likewise.
32516         * tests/test-mbschr.c: Likewise.
32517         * tests/test-mbscspn.c: Likewise.
32518         * tests/test-mbsncasecmp.c: Likewise.
32519         * tests/test-mbspbrk.c: Likewise.
32520         * tests/test-mbspcasecmp.c: Likewise.
32521         * tests/test-mbsrchr.c: Likewise.
32522         * tests/test-mbsspn.c: Likewise.
32523         * tests/test-mbsstr1.c: Likewise.
32524         * tests/test-mbsstr2.c: Likewise.
32525         * tests/test-mbsstr3.c: Likewise.
32526         * tests/test-md5.c: Likewise.
32527         * tests/test-memmem.c: Likewise.
32528         * tests/test-netinet_in.c: Likewise.
32529         * tests/test-open.c: Likewise.
32530         * tests/test-printf-frexp.c: Likewise.
32531         * tests/test-printf-frexpl.c: Likewise.
32532         * tests/test-printf-posix.c: Likewise.
32533         * tests/test-printf-posix.h: Likewise.
32534         * tests/test-rbtree_list.c: Likewise.
32535         * tests/test-rbtree_oset.c: Likewise.
32536         * tests/test-rbtreehash_list.c: Likewise.
32537         * tests/test-read-file.c: Likewise.
32538         * tests/test-rijndael.c: Likewise.
32539         * tests/test-search.c: Likewise.
32540         * tests/test-signbit.c: Likewise.
32541         * tests/test-sleep.c: Likewise.
32542         * tests/test-snprintf-posix.c: Likewise.
32543         * tests/test-snprintf-posix.h: Likewise.
32544         * tests/test-snprintf.c: Likewise.
32545         * tests/test-sprintf-posix.c: Likewise.
32546         * tests/test-sprintf-posix.h: Likewise.
32547         * tests/test-stat-time.c: Likewise.
32548         * tests/test-stdbool.c: Likewise.
32549         * tests/test-stdint.c: Likewise.
32550         * tests/test-stdio.c: Likewise.
32551         * tests/test-stdlib.c: Likewise.
32552         * tests/test-stpncpy.c: Likewise.
32553         * tests/test-strcasestr.c: Likewise.
32554         * tests/test-striconv.c: Likewise.
32555         * tests/test-striconveh.c: Likewise.
32556         * tests/test-striconveha.c: Likewise.
32557         * tests/test-string.c: Likewise.
32558         * tests/test-sys_select.c: Likewise.
32559         * tests/test-sys_socket.c: Likewise.
32560         * tests/test-sys_stat.c: Likewise.
32561         * tests/test-sys_time.c: Likewise.
32562         * tests/test-sysexits.c: Likewise.
32563         * tests/test-time.c: Likewise.
32564         * tests/test-tls.c: Likewise.
32565         * tests/test-trunc.c: Likewise.
32566         * tests/test-truncf.c: Likewise.
32567         * tests/test-truncl.c: Likewise.
32568         * tests/test-unistd.c: Likewise.
32569         * tests/test-vasnprintf-posix.c: Likewise.
32570         * tests/test-vasnprintf-posix2.c: Likewise.
32571         * tests/test-vasnprintf.c: Likewise.
32572         * tests/test-vasprintf-posix.c: Likewise.
32573         * tests/test-vasprintf.c: Likewise.
32574         * tests/test-verify.c: Likewise.
32575         * tests/test-vfprintf-posix.c: Likewise.
32576         * tests/test-vprintf-posix.c: Likewise.
32577         * tests/test-vsnprintf-posix.c: Likewise.
32578         * tests/test-vsnprintf.c: Likewise.
32579         * tests/test-vsprintf-posix.c: Likewise.
32580         * tests/test-wchar.c: Likewise.
32581         * tests/test-wctype.c: Likewise.
32582         * tests/test-wcwidth.c: Likewise.
32583         * tests/test-xstrtol.c: Likewise.
32584         * tests/test-xvasprintf.c: Likewise.
32585         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
32586         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
32587         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
32588         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
32589         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
32590         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
32591         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
32592         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
32593         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
32594         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
32595         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
32596         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
32597         * tests/uniname/test-uninames.c: Likewise.
32598         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
32599         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
32600         * tests/unistdio/test-u16-printf1.h: Likewise.
32601         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
32602         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
32603         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
32604         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
32605         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
32606         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
32607         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
32608         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
32609         * tests/unistdio/test-u32-printf1.h: Likewise.
32610         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
32611         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
32612         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
32613         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
32614         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
32615         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
32616         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
32617         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
32618         * tests/unistdio/test-u8-printf1.h: Likewise.
32619         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
32620         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
32621         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
32622         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
32623         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
32624         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
32625         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
32626         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
32627         * tests/unistdio/test-ulc-printf1.h: Likewise.
32628         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
32629         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
32630         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
32631         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
32632         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
32633         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
32634         * tests/uniwidth/test-u16-strwidth.c: Likewise.
32635         * tests/uniwidth/test-u16-width.c: Likewise.
32636         * tests/uniwidth/test-u32-strwidth.c: Likewise.
32637         * tests/uniwidth/test-u32-width.c: Likewise.
32638         * tests/uniwidth/test-u8-strwidth.c: Likewise.
32639         * tests/uniwidth/test-u8-width.c: Likewise.
32640         * tests/uniwidth/test-uc_width.c: Likewise.
32641         * config/srclist-update: Likewise.
32642         (fixlicense): Update to GPLv3+.
32643
32644         Change copyright notice from LGPLv2.1+ to LGPLv3+.
32645         * tests/test-tsearch.c: Change copyright notice.
32646
32647         Change copyright notice from LGPLv2.0+ to LGPLv3+.
32648         * lib/c-strcaseeq.h: Change copyright notice.
32649         * lib/streq.h: Likewise.
32650         * lib/uniconv.h: Likewise.
32651         * lib/uniconv/u-conv-from-enc.h: Likewise.
32652         * lib/uniconv/u-conv-to-enc.h: Likewise.
32653         * lib/uniconv/u-strconv-from-enc.h: Likewise.
32654         * lib/uniconv/u-strconv-to-enc.h: Likewise.
32655         * lib/uniconv/u16-conv-from-enc.c: Likewise.
32656         * lib/uniconv/u16-conv-to-enc.c: Likewise.
32657         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
32658         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
32659         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
32660         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
32661         * lib/uniconv/u32-conv-from-enc.c: Likewise.
32662         * lib/uniconv/u32-conv-to-enc.c: Likewise.
32663         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
32664         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
32665         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
32666         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
32667         * lib/uniconv/u8-conv-from-enc.c: Likewise.
32668         * lib/uniconv/u8-conv-to-enc.c: Likewise.
32669         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
32670         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
32671         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
32672         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
32673         * lib/uniname.h: Likewise.
32674         * lib/uniname/uniname.c: Likewise.
32675         * lib/unistdio.h: Likewise.
32676         * lib/unistdio/u-asnprintf.h: Likewise.
32677         * lib/unistdio/u-asprintf.h: Likewise.
32678         * lib/unistdio/u-printf-args.c: Likewise.
32679         * lib/unistdio/u-printf-args.h: Likewise.
32680         * lib/unistdio/u-printf-parse.h: Likewise.
32681         * lib/unistdio/u-snprintf.h: Likewise.
32682         * lib/unistdio/u-sprintf.h: Likewise.
32683         * lib/unistdio/u-vasprintf.h: Likewise.
32684         * lib/unistdio/u-vsnprintf.h: Likewise.
32685         * lib/unistdio/u-vsprintf.h: Likewise.
32686         * lib/unistdio/u16-asnprintf.c: Likewise.
32687         * lib/unistdio/u16-asprintf.c: Likewise.
32688         * lib/unistdio/u16-printf-parse.c: Likewise.
32689         * lib/unistdio/u16-snprintf.c: Likewise.
32690         * lib/unistdio/u16-sprintf.c: Likewise.
32691         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
32692         * lib/unistdio/u16-u16-asprintf.c: Likewise.
32693         * lib/unistdio/u16-u16-snprintf.c: Likewise.
32694         * lib/unistdio/u16-u16-sprintf.c: Likewise.
32695         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
32696         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
32697         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
32698         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
32699         * lib/unistdio/u16-vasnprintf.c: Likewise.
32700         * lib/unistdio/u16-vasprintf.c: Likewise.
32701         * lib/unistdio/u16-vsnprintf.c: Likewise.
32702         * lib/unistdio/u16-vsprintf.c: Likewise.
32703         * lib/unistdio/u32-asnprintf.c: Likewise.
32704         * lib/unistdio/u32-asprintf.c: Likewise.
32705         * lib/unistdio/u32-printf-parse.c: Likewise.
32706         * lib/unistdio/u32-snprintf.c: Likewise.
32707         * lib/unistdio/u32-sprintf.c: Likewise.
32708         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
32709         * lib/unistdio/u32-u32-asprintf.c: Likewise.
32710         * lib/unistdio/u32-u32-snprintf.c: Likewise.
32711         * lib/unistdio/u32-u32-sprintf.c: Likewise.
32712         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
32713         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
32714         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
32715         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
32716         * lib/unistdio/u32-vasnprintf.c: Likewise.
32717         * lib/unistdio/u32-vasprintf.c: Likewise.
32718         * lib/unistdio/u32-vsnprintf.c: Likewise.
32719         * lib/unistdio/u32-vsprintf.c: Likewise.
32720         * lib/unistdio/u8-asnprintf.c: Likewise.
32721         * lib/unistdio/u8-asprintf.c: Likewise.
32722         * lib/unistdio/u8-printf-parse.c: Likewise.
32723         * lib/unistdio/u8-snprintf.c: Likewise.
32724         * lib/unistdio/u8-sprintf.c: Likewise.
32725         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
32726         * lib/unistdio/u8-u8-asprintf.c: Likewise.
32727         * lib/unistdio/u8-u8-snprintf.c: Likewise.
32728         * lib/unistdio/u8-u8-sprintf.c: Likewise.
32729         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
32730         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
32731         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
32732         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
32733         * lib/unistdio/u8-vasnprintf.c: Likewise.
32734         * lib/unistdio/u8-vasprintf.c: Likewise.
32735         * lib/unistdio/u8-vsnprintf.c: Likewise.
32736         * lib/unistdio/u8-vsprintf.c: Likewise.
32737         * lib/unistdio/ulc-asnprintf.c: Likewise.
32738         * lib/unistdio/ulc-asprintf.c: Likewise.
32739         * lib/unistdio/ulc-printf-parse.c: Likewise.
32740         * lib/unistdio/ulc-snprintf.c: Likewise.
32741         * lib/unistdio/ulc-sprintf.c: Likewise.
32742         * lib/unistdio/ulc-vasnprintf.c: Likewise.
32743         * lib/unistdio/ulc-vasprintf.c: Likewise.
32744         * lib/unistdio/ulc-vsnprintf.c: Likewise.
32745         * lib/unistdio/ulc-vsprintf.c: Likewise.
32746         * lib/unistr.h: Likewise.
32747         * lib/unistr/u-cpy-alloc.h: Likewise.
32748         * lib/unistr/u-cpy.h: Likewise.
32749         * lib/unistr/u-endswith.h: Likewise.
32750         * lib/unistr/u-move.h: Likewise.
32751         * lib/unistr/u-set.h: Likewise.
32752         * lib/unistr/u-startswith.h: Likewise.
32753         * lib/unistr/u-stpcpy.h: Likewise.
32754         * lib/unistr/u-stpncpy.h: Likewise.
32755         * lib/unistr/u-strcat.h: Likewise.
32756         * lib/unistr/u-strcpy.h: Likewise.
32757         * lib/unistr/u-strcspn.h: Likewise.
32758         * lib/unistr/u-strdup.h: Likewise.
32759         * lib/unistr/u-strlen.h: Likewise.
32760         * lib/unistr/u-strncat.h: Likewise.
32761         * lib/unistr/u-strncpy.h: Likewise.
32762         * lib/unistr/u-strnlen.h: Likewise.
32763         * lib/unistr/u-strpbrk.h: Likewise.
32764         * lib/unistr/u-strspn.h: Likewise.
32765         * lib/unistr/u-strstr.h: Likewise.
32766         * lib/unistr/u-strtok.h: Likewise.
32767         * lib/unistr/u16-check.c: Likewise.
32768         * lib/unistr/u16-chr.c: Likewise.
32769         * lib/unistr/u16-cmp.c: Likewise.
32770         * lib/unistr/u16-cpy-alloc.c: Likewise.
32771         * lib/unistr/u16-cpy.c: Likewise.
32772         * lib/unistr/u16-endswith.c: Likewise.
32773         * lib/unistr/u16-mblen.c: Likewise.
32774         * lib/unistr/u16-mbsnlen.c: Likewise.
32775         * lib/unistr/u16-mbtouc-aux.c: Likewise.
32776         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
32777         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
32778         * lib/unistr/u16-mbtouc.c: Likewise.
32779         * lib/unistr/u16-mbtoucr.c: Likewise.
32780         * lib/unistr/u16-move.c: Likewise.
32781         * lib/unistr/u16-next.c: Likewise.
32782         * lib/unistr/u16-prev.c: Likewise.
32783         * lib/unistr/u16-set.c: Likewise.
32784         * lib/unistr/u16-startswith.c: Likewise.
32785         * lib/unistr/u16-stpcpy.c: Likewise.
32786         * lib/unistr/u16-stpncpy.c: Likewise.
32787         * lib/unistr/u16-strcat.c: Likewise.
32788         * lib/unistr/u16-strchr.c: Likewise.
32789         * lib/unistr/u16-strcmp.c: Likewise.
32790         * lib/unistr/u16-strcpy.c: Likewise.
32791         * lib/unistr/u16-strcspn.c: Likewise.
32792         * lib/unistr/u16-strdup.c: Likewise.
32793         * lib/unistr/u16-strlen.c: Likewise.
32794         * lib/unistr/u16-strmblen.c: Likewise.
32795         * lib/unistr/u16-strmbtouc.c: Likewise.
32796         * lib/unistr/u16-strncat.c: Likewise.
32797         * lib/unistr/u16-strncmp.c: Likewise.
32798         * lib/unistr/u16-strncpy.c: Likewise.
32799         * lib/unistr/u16-strnlen.c: Likewise.
32800         * lib/unistr/u16-strpbrk.c: Likewise.
32801         * lib/unistr/u16-strrchr.c: Likewise.
32802         * lib/unistr/u16-strspn.c: Likewise.
32803         * lib/unistr/u16-strstr.c: Likewise.
32804         * lib/unistr/u16-strtok.c: Likewise.
32805         * lib/unistr/u16-to-u32.c: Likewise.
32806         * lib/unistr/u16-to-u8.c: Likewise.
32807         * lib/unistr/u16-uctomb-aux.c: Likewise.
32808         * lib/unistr/u16-uctomb.c: Likewise.
32809         * lib/unistr/u32-check.c: Likewise.
32810         * lib/unistr/u32-chr.c: Likewise.
32811         * lib/unistr/u32-cmp.c: Likewise.
32812         * lib/unistr/u32-cpy-alloc.c: Likewise.
32813         * lib/unistr/u32-cpy.c: Likewise.
32814         * lib/unistr/u32-endswith.c: Likewise.
32815         * lib/unistr/u32-mblen.c: Likewise.
32816         * lib/unistr/u32-mbsnlen.c: Likewise.
32817         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
32818         * lib/unistr/u32-mbtouc.c: Likewise.
32819         * lib/unistr/u32-mbtoucr.c: Likewise.
32820         * lib/unistr/u32-move.c: Likewise.
32821         * lib/unistr/u32-next.c: Likewise.
32822         * lib/unistr/u32-prev.c: Likewise.
32823         * lib/unistr/u32-set.c: Likewise.
32824         * lib/unistr/u32-startswith.c: Likewise.
32825         * lib/unistr/u32-stpcpy.c: Likewise.
32826         * lib/unistr/u32-stpncpy.c: Likewise.
32827         * lib/unistr/u32-strcat.c: Likewise.
32828         * lib/unistr/u32-strchr.c: Likewise.
32829         * lib/unistr/u32-strcmp.c: Likewise.
32830         * lib/unistr/u32-strcpy.c: Likewise.
32831         * lib/unistr/u32-strcspn.c: Likewise.
32832         * lib/unistr/u32-strdup.c: Likewise.
32833         * lib/unistr/u32-strlen.c: Likewise.
32834         * lib/unistr/u32-strmblen.c: Likewise.
32835         * lib/unistr/u32-strmbtouc.c: Likewise.
32836         * lib/unistr/u32-strncat.c: Likewise.
32837         * lib/unistr/u32-strncmp.c: Likewise.
32838         * lib/unistr/u32-strncpy.c: Likewise.
32839         * lib/unistr/u32-strnlen.c: Likewise.
32840         * lib/unistr/u32-strpbrk.c: Likewise.
32841         * lib/unistr/u32-strrchr.c: Likewise.
32842         * lib/unistr/u32-strspn.c: Likewise.
32843         * lib/unistr/u32-strstr.c: Likewise.
32844         * lib/unistr/u32-strtok.c: Likewise.
32845         * lib/unistr/u32-to-u16.c: Likewise.
32846         * lib/unistr/u32-to-u8.c: Likewise.
32847         * lib/unistr/u32-uctomb.c: Likewise.
32848         * lib/unistr/u8-check.c: Likewise.
32849         * lib/unistr/u8-chr.c: Likewise.
32850         * lib/unistr/u8-cmp.c: Likewise.
32851         * lib/unistr/u8-cpy-alloc.c: Likewise.
32852         * lib/unistr/u8-cpy.c: Likewise.
32853         * lib/unistr/u8-endswith.c: Likewise.
32854         * lib/unistr/u8-mblen.c: Likewise.
32855         * lib/unistr/u8-mbsnlen.c: Likewise.
32856         * lib/unistr/u8-mbtouc-aux.c: Likewise.
32857         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
32858         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
32859         * lib/unistr/u8-mbtouc.c: Likewise.
32860         * lib/unistr/u8-mbtoucr.c: Likewise.
32861         * lib/unistr/u8-move.c: Likewise.
32862         * lib/unistr/u8-next.c: Likewise.
32863         * lib/unistr/u8-prev.c: Likewise.
32864         * lib/unistr/u8-set.c: Likewise.
32865         * lib/unistr/u8-startswith.c: Likewise.
32866         * lib/unistr/u8-stpcpy.c: Likewise.
32867         * lib/unistr/u8-stpncpy.c: Likewise.
32868         * lib/unistr/u8-strcat.c: Likewise.
32869         * lib/unistr/u8-strchr.c: Likewise.
32870         * lib/unistr/u8-strcmp.c: Likewise.
32871         * lib/unistr/u8-strcpy.c: Likewise.
32872         * lib/unistr/u8-strcspn.c: Likewise.
32873         * lib/unistr/u8-strdup.c: Likewise.
32874         * lib/unistr/u8-strlen.c: Likewise.
32875         * lib/unistr/u8-strmblen.c: Likewise.
32876         * lib/unistr/u8-strmbtouc.c: Likewise.
32877         * lib/unistr/u8-strncat.c: Likewise.
32878         * lib/unistr/u8-strncmp.c: Likewise.
32879         * lib/unistr/u8-strncpy.c: Likewise.
32880         * lib/unistr/u8-strnlen.c: Likewise.
32881         * lib/unistr/u8-strpbrk.c: Likewise.
32882         * lib/unistr/u8-strrchr.c: Likewise.
32883         * lib/unistr/u8-strspn.c: Likewise.
32884         * lib/unistr/u8-strstr.c: Likewise.
32885         * lib/unistr/u8-strtok.c: Likewise.
32886         * lib/unistr/u8-to-u16.c: Likewise.
32887         * lib/unistr/u8-to-u32.c: Likewise.
32888         * lib/unistr/u8-uctomb-aux.c: Likewise.
32889         * lib/unistr/u8-uctomb.c: Likewise.
32890         * lib/unitypes.h: Likewise.
32891         * lib/uniwidth.h: Likewise.
32892         * lib/uniwidth/cjk.h: Likewise.
32893         * lib/uniwidth/u16-strwidth.c: Likewise.
32894         * lib/uniwidth/u16-width.c: Likewise.
32895         * lib/uniwidth/u32-strwidth.c: Likewise.
32896         * lib/uniwidth/u32-width.c: Likewise.
32897         * lib/uniwidth/u8-strwidth.c: Likewise.
32898         * lib/uniwidth/u8-width.c: Likewise.
32899         * lib/uniwidth/width.c: Likewise.
32900
32901 2007-10-07  Bruno Haible  <bruno@clisp.org>
32902
32903         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
32904         The file is still under LGPL (see modules/inttypes).
32905
32906 2007-10-06  Bruno Haible  <bruno@clisp.org>
32907
32908         * modules/trunc (Dependencies): Add 'extensions'.
32909         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
32910         Reported by Ben Pfaff <blp@gnu.org>.
32911
32912 2007-10-06  Bruno Haible  <bruno@clisp.org>
32913
32914         * modules/freopen-tests: New file.
32915         * tests/test-freopen.c: New file.
32916
32917         * modules/fopen-tests: New file.
32918         * tests/test-fopen.c: New file.
32919
32920         * modules/fopen: New file.
32921         * lib/fopen.c: New file.
32922         * m4/fopen.m4: New file.
32923         * modules/freopen: New file.
32924         * lib/freopen.c: New file.
32925         * m4/freopen.m4: New file.
32926         * lib/stdio.in.h (fopen, freopen): New declarations.
32927         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
32928         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
32929         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
32930         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
32931         * doc/functions/fopen.texi: Mention the 'fopen' module.
32932         * doc/functions/freopen.texi: Mention the 'freopen' module.
32933
32934 2007-10-06  Bruno Haible  <bruno@clisp.org>
32935
32936         * modules/open-tests: New file.
32937         * tests/test-open.c: New file.
32938
32939         * modules/open: New file.
32940         * lib/open.c: New file.
32941         * m4/open.m4: New file.
32942         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
32943         lib/open.c does.
32944         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
32945         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
32946         macros.
32947         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
32948         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
32949         REPLACE_OPEN.
32950         * doc/functions/open.texi: Mention the 'open' module.
32951
32952 2007-10-04  Bruno Haible  <bruno@clisp.org>
32953
32954         * modules/ceill-tests: New file.
32955         * tests/test-ceill.c: New file.
32956
32957         * modules/ceill: New file.
32958         * lib/ceill.c: Replace entire file.
32959         * m4/ceill.m4: New file.
32960         * lib/math.in.h (ceill): Replace declaration.
32961         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
32962         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
32963         * doc/functions/ceill.texi: Mention the 'ceill' module.
32964         * modules/mathl (Files): Remove lib/ceill.c.
32965         (Depends-on): Add ceill.
32966
32967 2007-10-04  Bruno Haible  <bruno@clisp.org>
32968
32969         * modules/ceilf-tests: New file.
32970         * tests/test-ceilf.c: New file.
32971
32972         * modules/ceilf: New file.
32973         * lib/ceil.c: New file.
32974         * lib/ceilf.c: New file.
32975         * m4/ceilf.m4: New file.
32976         * lib/math.in.h (ceilf): New declaration.
32977         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
32978         HAVE_DECL_CEILF.
32979         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
32980         HAVE_DECL_CEILF.
32981         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
32982
32983 2007-10-04  Bruno Haible  <bruno@clisp.org>
32984
32985         * modules/floorl-tests: New file.
32986         * tests/test-floorl.c: New file.
32987
32988         * modules/floorl: New file.
32989         * lib/floorl.c: Replace entire file.
32990         * m4/floorl.m4: New file.
32991         * lib/math.in.h (floorl): Replace declaration.
32992         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
32993         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
32994         * doc/functions/floorl.texi: Mention the 'floorl' module.
32995         * modules/mathl (Files): Remove lib/floorl.c.
32996         (Depends-on): Add floorl.
32997
32998 2007-10-04  Bruno Haible  <bruno@clisp.org>
32999
33000         * modules/floorf-tests: New file.
33001         * tests/test-floorf.c: New file.
33002
33003         * modules/floorf: New file.
33004         * lib/floor.c: New file.
33005         * lib/floorf.c: New file.
33006         * m4/floorf.m4: New file.
33007         * lib/math.in.h (floorf): New declaration.
33008         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
33009         HAVE_DECL_FLOORF.
33010         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
33011         HAVE_DECL_FLOORF.
33012         * doc/functions/floorf.texi: Mention the 'floorf' module.
33013
33014 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
33015             Bruno Haible  <bruno@clisp.org>
33016
33017         Advertise for the Git server instead of the CVS server.
33018         * doc/gnulib-intro.texi (Steady Development): Mention the Git
33019         repository instead of the CVS one.
33020         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
33021         about all VCS systems generically.
33022         * doc/gnulib.texi (Introduction): Capitalize `Git'.
33023
33024 2007-10-04  Bruno Haible  <bruno@clisp.org>
33025
33026         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
33027         means.
33028         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
33029
33030 2007-10-04  Bruno Haible  <bruno@clisp.org>
33031
33032         * modules/truncl-tests: New file.
33033         * tests/test-truncl.c: New file.
33034
33035         * modules/truncl: New file.
33036         * lib/truncl.c: New file.
33037         * m4/truncl.m4: New file.
33038         * lib/math.in.h (truncl): New declaration.
33039         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
33040         HAVE_DECL_TRUNCL.
33041         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
33042         HAVE_DECL_TRUNCL.
33043         * doc/functions/truncl.texi: Mention the 'truncl' module.
33044
33045 2007-10-04  Bruno Haible  <bruno@clisp.org>
33046
33047         * modules/truncf-tests: New file.
33048         * tests/test-truncf.c: New file.
33049
33050         * modules/truncf: New file.
33051         * lib/trunc.c: Make paramerizable through USE_* macros.
33052         * lib/truncf.c: New file.
33053         * m4/truncf.m4: New file.
33054         * lib/math.in.h (truncf): New declaration.
33055         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
33056         HAVE_DECL_TRUNCF.
33057         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
33058         HAVE_DECL_TRUNCF.
33059         * doc/functions/truncf.texi: Mention the 'truncf' module.
33060
33061 2007-10-03  Bruno Haible  <bruno@clisp.org>
33062
33063         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
33064         augmentation also for tests modules.
33065         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
33066         * modules/atexit-tests (Makefile.am): Likewise.
33067         * modules/binary-io-tests (Makefile.am): Likewise.
33068         * modules/c-strcase-tests (Makefile.am): Likewise.
33069         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
33070         * modules/canonicalize-tests (Makefile.am): Likewise.
33071         * modules/closein-tests (Makefile.am): Likewise.
33072         * modules/fprintf-posix-tests (Makefile.am): Likewise.
33073         * modules/freadahead-tests (Makefile.am): Likewise.
33074         * modules/fseek-tests (Makefile.am): Likewise.
33075         * modules/fseeko-tests (Makefile.am): Likewise.
33076         * modules/ftell-tests (Makefile.am): Likewise.
33077         * modules/ftello-tests (Makefile.am): Likewise.
33078         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
33079         * modules/isnanl-tests (Makefile.am): Likewise.
33080         * modules/lseek-tests (Makefile.am): Likewise.
33081         * modules/mbscasecmp-tests (Makefile.am): Likewise.
33082         * modules/mbscasestr-tests (Makefile.am): Likewise.
33083         * modules/mbschr-tests (Makefile.am): Likewise.
33084         * modules/mbscspn-tests (Makefile.am): Likewise.
33085         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
33086         * modules/mbspbrk-tests (Makefile.am): Likewise.
33087         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
33088         * modules/mbsrchr-tests (Makefile.am): Likewise.
33089         * modules/mbsspn-tests (Makefile.am): Likewise.
33090         * modules/mbsstr-tests (Makefile.am): Likewise.
33091         * modules/printf-posix-tests (Makefile.am): Likewise.
33092         * modules/snprintf-posix-tests (Makefile.am): Likewise.
33093         * modules/sprintf-posix-tests (Makefile.am): Likewise.
33094         * modules/tsearch-tests (Makefile.am): Likewise.
33095         * modules/uniname/uniname-tests (Makefile.am): Likewise.
33096         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
33097         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
33098         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
33099         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
33100         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
33101         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
33102         * modules/vprintf-posix-tests (Makefile.am): Likewise.
33103         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
33104         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
33105         * modules/xstrtoimax-tests (Makefile.am): Likewise.
33106         * modules/xstrtol-tests (Makefile.am): Likewise.
33107         * modules/xstrtoumax-tests (Makefile.am): Likewise.
33108         * modules/yesno-tests (Makefile.am): Likewise.
33109
33110 2007-10-03  Bruno Haible  <bruno@clisp.org>
33111
33112         * modules/trunc-tests: New file.
33113         * tests/test-trunc.c: New file.
33114
33115         * modules/trunc: New file.
33116         * lib/trunc.c: New file.
33117         * m4/trunc.m4: New file.
33118         * lib/math.in.h (trunc): New declaration.
33119         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
33120         HAVE_DECL_TRUNC.
33121         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
33122         HAVE_DECL_TRUNC.
33123         * doc/functions/trunc.texi: Mention the 'trunc' module.
33124
33125 2007-10-03  Bruno Haible  <bruno@clisp.org>
33126
33127         * tests/test-fpending.c: New file, mostly copied
33128         from coreutils/lib/t-fpending.c.
33129         * modules/fpending-tests: New file.
33130
33131 2007-10-03  Bruno Haible  <bruno@clisp.org>
33132
33133         Port the stdio extensions to QNX (untested).
33134         * lib/fseterr.c (fseterr): Add support for QNX.
33135         * lib/fbufmode.c (fbufmode): Likewise.
33136         * lib/freadable.c (freadable): Likewise.
33137         * lib/fwritable.c (fwritable): Likewise.
33138         * lib/freading.c (freading): Likewise.
33139         * lib/fwriting.c (fwriting): Likewise.
33140         * lib/freadahead.c (freadahed): Likewise.
33141         * lib/fpurge.c (fpurge): Likewise.
33142         * lib/fseeko.c (rpl_fseeko): Likewise.
33143
33144 2007-10-03  Bruno Haible  <bruno@clisp.org>
33145             Jim Meyering  <jim@meyering.net>
33146             Eric Blake  <ebb9@byu.net>
33147
33148         * doc/relocatable.texi: Use @command instead of @program.
33149
33150 2007-10-02  Jim Meyering  <jim@meyering.net>
33151
33152         Perform one more "_.h" -> ".in.h" substitution.
33153         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
33154         instead of unistd_.h here, too.
33155
33156 2007-10-01  Bruno Haible  <bruno@clisp.org>
33157
33158         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
33159         Needed for the alloca-opt module.
33160
33161 2007-09-30  Bruno Haible  <bruno@clisp.org>
33162
33163         * lib/alloca.in.h: Renamed from lib/alloca_.h.
33164         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
33165         alloca_.h.
33166         * lib/argz.in.h: Renamed from lib/argz_.h.
33167         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
33168         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
33169         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
33170         byteswap_.h.
33171         * lib/dirent.in.h: Renamed from lib/dirent_.h.
33172         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
33173         dirent_.h.
33174         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
33175         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
33176         fcntl_.h.
33177         * lib/float.in.h: Renamed from lib/float_.h.
33178         * modules/float (Files, Makefile.am): Use float.in.h instead of
33179         float_.h.
33180         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
33181         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
33182         fnmatch_.h.
33183         * lib/getopt.in.h: Renamed from lib/getopt_.h.
33184         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
33185         getopt_.h.
33186         * lib/glob.in.h: Renamed from lib/glob_.h.
33187         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
33188         * lib/iconv.in.h: Renamed from lib/iconv_.h.
33189         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
33190         iconv_.h.
33191         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
33192         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
33193         inttypes_.h.
33194         * lib/locale.in.h: Renamed from lib/locale_.h.
33195         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
33196         locale_.h.
33197         * lib/math.in.h: Renamed from lib/math_.h.
33198         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
33199         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
33200         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
33201         of netinet_in_.h. Add dependency.
33202         * lib/poll.in.h: Renamed from lib/poll_.h.
33203         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
33204         * lib/search.in.h: Renamed from lib/search_.h.
33205         * modules/search (Files, Makefile.am): Use search.in.h instead of
33206         search_.h.
33207         * lib/signal.in.h: Renamed from lib/signal_.h.
33208         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
33209         _signal.h.
33210         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
33211         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
33212         stdbool_.h.
33213         * lib/stdint.in.h: Renamed from lib/stdint_.h.
33214         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
33215         stdint_.h.
33216         * lib/stdio.in.h: Renamed from lib/stdio_.h.
33217         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
33218         stdio_.h.
33219         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
33220         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
33221         stdlib_.h.
33222         * lib/string.in.h: Renamed from lib/string_.h.
33223         * modules/string (Files, Makefile.am): Use string.in.h instead of
33224         string_.h.
33225         * doc/gnulib-tool.texi (Initial import): Update.
33226         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
33227         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
33228         of sys_select_.h. Add dependency.
33229         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
33230         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
33231         of sys_socket_.h.
33232         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
33233         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
33234         sys_stat_.h.
33235         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
33236         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
33237         sys_time_.h.
33238         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
33239         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
33240         sysexits_.h.
33241         * lib/time.in.h: Renamed from lib/time_.h.
33242         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
33243         * lib/unistd.in.h: Renamed from lib/unistd_.h.
33244         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
33245         unistd_.h.
33246         * lib/wchar.in.h: Renamed from lib/wchar_.h.
33247         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
33248         wchar_.h.
33249         * lib/wctype.in.h: Renamed from lib/wctype_.h.
33250         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
33251         wctype_.h.
33252         * build-aux/bootstrap (slurp): Update.
33253         * lib/.cppi-disable: Update.
33254
33255 2007-09-30  Bruno Haible  <bruno@clisp.org>
33256
33257         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
33258         Needed on BeOS.
33259
33260 2007-09-30  Bruno Haible  <bruno@clisp.org>
33261
33262         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
33263
33264 2007-09-29  Bruno Haible  <bruno@clisp.org>
33265
33266         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
33267
33268 2007-09-29  Bruno Haible  <bruno@clisp.org>
33269
33270         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
33271         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
33272         * build-aux/install-reloc: Compile also areadlink.c.
33273         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
33274
33275 2007-09-29  Bruno Haible  <bruno@clisp.org>
33276
33277         * gnulib-tool (func_emit_initmacro_done): Indentation.
33278
33279 2007-09-29  Bruno Haible  <bruno@clisp.org>
33280
33281         * README: Add CVS checkout update instructions.
33282         Info from Bob Proulx <bob@proulx.com>.
33283
33284 2007-09-28  Eric Blake  <ebb9@byu.net>
33285
33286         Provide move-if-change.
33287         * build-aux/move-if-change: New file, based on best practice
33288         rather than any canonical upstream location.
33289
33290 2007-09-28  Jim Meyering  <jim@meyering.net>
33291
33292         Fix canonicalize loop-detection corner case.
33293         Do not attempt to stat the symlink values stored via seen_triple.
33294         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
33295         on linux-2.6.18, (but not 2.6.22).
33296         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
33297         triple_compare.  The former compares dev,ino,filename, while the latter
33298         would actually stat dirname(filename) when dev and ino were equal.
33299         * lib/hash-triple.c: Install <string.h>.
33300         (STREQ): Define.
33301         (triple_compare_ino_str): New function.
33302         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
33303
33304 2007-09-28  Eric Blake  <ebb9@byu.net>
33305
33306         Enforce that AC_REPLACE_FUNCS files exist.
33307         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
33308         override check for typos.
33309
33310         Fix test-closein on Solaris 10.
33311         * tests/test-closein.c (main): Don't assume stdin can be inherited
33312         closed on all systems.
33313         * tests/test-closein.sh: Likewise.
33314         Reported by Piotr Tarnowski.
33315
33316 2007-09-28  Jim Meyering  <jim@meyering.net>
33317
33318         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
33319
33320 2007-09-27  Jim Meyering  <jim@meyering.net>
33321
33322         canonicalize: Avoid a false-positive cycle failure.
33323         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
33324         Sort.  Remove cycle-check.
33325         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
33326         not cycle-check.h.
33327         (seen_triple): New function.
33328         (canonicalize_filename_mode): Use it instead of cycle-check.
33329         * tests/test-canonicalize.c: Add a test for this bug.
33330         * tests/test-canonicalize.sh: Set up and run the test.
33331
33332         New module, file-set, from coreutils.
33333         * modules/file-set: Define it.
33334         * lib/file-set.c, lib/file-set.h: Implement.
33335
33336         New module, hash-triple, from coreutils.
33337         * modules/hash-triple: Define it.
33338         * lib/hash-triple.c, lib/hash-triple.h: Implement.
33339
33340 2007-09-25  Eric Blake  <ebb9@byu.net>
33341
33342         Fix strerror on Interix.
33343         * lib/string_.h (strerror): Declare replacement.
33344         * doc/functions/strerror.texi (strerror): Document the Interix
33345         shortcoming.
33346         * modules/string (Makefile.am): Support new hooks.
33347         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
33348         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
33349         gl_FUNC_STRERROR_SEPARATE.
33350         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
33351         * lib/strerror.c (rpl_strerror): Provide replacement.
33352         * modules/strerror (Depends-on): Add string.
33353         (configure.ac): Detect use of module.
33354         * tests/test-strerror.c: New file.
33355         * modules/strerror-tests: New test module.
33356         * modules/argp (Depends-on): Add strerror.
33357         * modules/error (Depends-on): Likewise.
33358         Reported by Martin Koeppe.
33359
33360 2007-09-24  Bruno Haible  <bruno@clisp.org>
33361
33362         * README: Update git instructions.
33363
33364 2007-09-24  Eric Blake  <ebb9@byu.net>
33365
33366         Revert fpending breakage from 2007-09-08.
33367         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
33368         __fpending.c.
33369
33370 2007-09-24  Jim Meyering  <jim@meyering.net>
33371
33372         filenamecat.c: Add a test.
33373         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
33374         showing how the function works when DIR is the empty string.
33375
33376 2007-09-21  Simon Josefsson  <simon@josefsson.org>
33377
33378         * tests/test-canonicalize.sh: Turn on executable bit.
33379
33380 2007-09-19  Eric Blake  <ebb9@byu.net>
33381
33382         * README: Update CVS instructions.
33383
33384 2007-09-18  Bruno Haible  <bruno@clisp.org>
33385
33386         * modules/areadlink: New file.
33387         * lib/areadlink.h (areadlink): New declaration.
33388         * lib/areadlink.c: New file, based on lib/xreadlink.c.
33389
33390 2007-09-17  Jim Meyering  <jim@meyering.net>
33391
33392         * lib/savewd.c (ESTALE) [!defined]: Define.
33393         Reported to be required on Interix by Martin Koeppe.
33394
33395 2007-09-17  Bruno Haible  <bruno@clisp.org>
33396
33397         * gnulib-tool (func_version): Use $version.
33398
33399 2007-09-16  Bruno Haible  <bruno@clisp.org>
33400
33401         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
33402         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
33403         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
33404         Reported by Greg Schafer <gschafer@zip.com.au>.
33405
33406 2007-09-15  Bruno Haible  <bruno@clisp.org>
33407
33408         * gnulib-tool (sed): Try a little harder to make bash understand the
33409         alias.
33410         Reported by Bruce Korb <bruce.korb@gmail.com>.
33411
33412 2007-09-13  Eric Blake  <ebb9@byu.net>
33413
33414         * ChangeLog: Remove conflict markers.
33415
33416 2007-09-13  Simon Josefsson  <simon@josefsson.org>
33417
33418         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
33419         Reported by Bruno Haible <bruno@clisp.org>.
33420
33421 2007-09-12  Bruno Haible  <bruno@clisp.org>
33422
33423         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
33424         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
33425         is not defined.
33426
33427 2007-09-12  Eric Blake  <ebb9@byu.net>
33428
33429         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
33430         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
33431         Autoconf definition.
33432         * modules/euidaccess (Depends-on): Add extensions, for
33433         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
33434         * modules/fnmatch (Depends-on): Likewise.
33435         * modules/getaddrinfo (Depends-on): Likewise.
33436         * modules/getdelim (Depends-on): Likewise.
33437         * modules/getline (Depends-on): Likewise.
33438         * modules/getsubopt (Depends-on): Likewise.
33439         * modules/gettext (Depends-on): Likewise.
33440         * modules/group-member (Depends-on): Likewise.
33441         * modules/mbchar (Depends-on): Likewise.
33442         * modules/memmem (Depends-on): Likewise.
33443         * modules/mempcpy (Depends-on): Likewise.
33444         * modules/memrchr (Depends-on): Likewise.
33445         * modules/pagealign_alloc (Depends-on): Likewise.
33446         * modules/readutmp (Depends-on): Likewise.
33447         * modules/stpcpy (Depends-on): Likewise.
33448         * modules/stpncpy (Depends-on): Likewise.
33449         * modules/strchrnul (Depends-on): Likewise.
33450         * modules/strndup (Depends-on): Likewise.
33451         * modules/strsep (Depends-on): Likewise.
33452         * modules/strverscmp (Depends-on): Likewise.
33453         * modules/vasprintf (Depends-on): Likewise.
33454         * modules/wcwidth (Depends-on): Likewise.
33455         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
33456         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
33457         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
33458         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
33459         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
33460         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
33461         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
33462         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
33463         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
33464         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
33465         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
33466         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
33467         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
33468         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
33469         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
33470         * m4/readutmp.m4 (gl_READUTMP): Likewise.
33471         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
33472         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
33473         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
33474         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
33475         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
33476         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
33477         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
33478         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
33479         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
33480         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
33481         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
33482         so that lock.m4 can be used in gettext without extensions module.
33483
33484 2007-09-11  Bruno Haible  <bruno@clisp.org>
33485
33486         * m4/isc-posix.m4: Remove file.
33487         Suggested by Eric Blake.
33488
33489 2007-09-11  Eric Blake  <ebb9@byu.net>
33490
33491         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
33492
33493 2007-09-10  Bruno Haible  <bruno@clisp.org>
33494
33495         * posix-modules: Fix typo in error message.
33496         Reported by Matt <mkraai@beckman.com>.
33497
33498 2007-09-09  Bruno Haible  <bruno@clisp.org>
33499
33500         * doc/functions/getdelim.texi: Update list of platforms lacking the
33501         function.
33502         * doc/functions/getline.texi: Likewise.
33503
33504 2007-09-09  Jim Meyering  <jim@meyering.net>
33505
33506         * lib/hash.c (hash_initialize): Detect calloc failure.
33507         Reported by Bruno Haible.
33508
33509 2007-09-09  Bruno Haible  <bruno@clisp.org>
33510
33511         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
33512         malloc or realloc fails.
33513
33514 2007-09-09  Bruno Haible  <bruno@clisp.org>
33515
33516         * modules/getcwd (Depends-on): Add malloc-posix.
33517         * modules/glob (Depends-on): Likewise.
33518         * modules/putenv (Depends-on): Likewise.
33519         * modules/strdup (Depends-on): Likewise.
33520         * modules/getdelim (Depends-on): Add realloc-posix.
33521         * modules/read-file (Depends-on): Likewise.
33522
33523 2007-09-09  Bruno Haible  <bruno@clisp.org>
33524
33525         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
33526         (gl_FUNC_MALLOC_POSIX): Require it.
33527         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
33528         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
33529         * modules/realloc (Files): Add m4/malloc.m4.
33530         * modules/calloc (Files): Likewise.
33531
33532 2007-09-09  Bruno Haible  <bruno@clisp.org>
33533
33534         * modules/malloc-posix: New file.
33535         * modules/malloc (Depends-on): Add malloc-posix.
33536         * lib/malloc.c: Include errno.h.
33537         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
33538         and a POSIX-compatible malloc into a single function. Set ENOMEM
33539         when returning NULL.
33540         * m4/malloc.m4: New file.
33541         * doc/functions/malloc.texi: Mention the malloc-posix module.
33542         * lib/stdlib_.h (malloc): New declaration.
33543         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
33544         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
33545         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
33546         and HAVE_MALLOC_POSIX.
33547
33548 2007-09-09  Bruno Haible  <bruno@clisp.org>
33549
33550         * modules/realloc-posix: New file.
33551         * modules/realloc (Depends-on): Add realloc-posix.
33552         * lib/realloc.c: Include errno.h.
33553         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
33554         and a POSIX-compatible realloc into a single function. Set ENOMEM
33555         when returning NULL.
33556         * m4/realloc.m4: New file.
33557         * doc/functions/realloc.texi: Mention the realloc-posix module.
33558         * lib/stdlib_.h (realloc): New declaration.
33559         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
33560         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
33561         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
33562         and HAVE_REALLOC_POSIX.
33563
33564 2007-09-09  Bruno Haible  <bruno@clisp.org>
33565
33566         * modules/calloc-posix: New file.
33567         * modules/calloc (Depends-on): Add calloc-posix.
33568         * lib/calloc.c: Include errno.h.
33569         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
33570         and a POSIX-compatible calloc into a single function. Set ENOMEM
33571         when returning NULL.
33572         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
33573         * doc/functions/calloc.texi: Mention the calloc-posix module.
33574         * lib/stdlib_.h (calloc): New declaration.
33575         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
33576         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
33577         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
33578         and HAVE_CALLOC_POSIX.
33579
33580 2007-09-09  Bruno Haible  <bruno@clisp.org>
33581
33582         Allow for modules to show an arbitrary notice.
33583         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
33584         * gnulib-tool: New option --extract-notice.
33585         (func_usage): Document it.
33586         (sed_extract_prog): Update.
33587         (func_get_notice): New function.
33588         (func_modules_notice): New function.
33589         (func_import, func_create_testdir): Invoke it.
33590         Suggested by Jim Meyering.
33591
33592 2007-09-09  Bruno Haible  <bruno@clisp.org>
33593
33594         * gnulib-tool: New options --verbose, --quiet.
33595         (func_usage): Document them.
33596         (verbose): New variable.
33597         (func_execute_command): New function.
33598         (func_import): Don't show the module list and the file list if
33599         $verbose < 0.
33600         (func_create_testdir): Likewise. Use func_execute_command.
33601         (func_create_megatestdir): Use func_execute_command.
33602
33603 2007-09-08  Bruno Haible  <bruno@clisp.org>
33604
33605         * gnulib-tool (func_import): Prefer rsync over wget when available,
33606         for fetching the PO files.
33607
33608 2007-09-08  Bruno Haible  <bruno@clisp.org>
33609
33610         * posix-modules: New file. Portions copied from gnulib-tool.
33611         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
33612
33613 2007-09-08  Jim Meyering  <jim@meyering.net>
33614
33615         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
33616         * lib/fpending.h: Rename from __fpending.h.
33617         * lib/fpending.c: Rename from __fpending.c.
33618         Include "fpending.h", not "__fpending.h".
33619         * lib/__fpending.h, lib/__fpending.c: Remove files.
33620         * modules/fpending (Files): Reflect new file names.
33621         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
33622
33623 2007-09-08  Bruno Haible  <bruno@clisp.org>
33624
33625         * m4/inttypes-h.m4: Remove stub file.
33626
33627 2007-09-07  Simon Josefsson  <simon@josefsson.org>
33628
33629         * doc/headers/stdint.texi: Discuss #include_next issue.
33630
33631 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
33632
33633         * build-aux/bootstrap: Remove obsolete comment about wget --help.
33634
33635 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33636
33637         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
33638         in variable name.
33639
33640 2007-09-03  Jim Meyering  <jim@meyering.net>
33641
33642         New module: git-version-gen.
33643         * modules/git-version-gen: New file.
33644
33645         Import changes from coreutils for bootstrap script.
33646
33647         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
33648
33649         bootstrap: uses rsync to download the .po files
33650         * build-aux/bootstrap (po_download_command_format): New global.
33651         (download_po_files): Use rsync.
33652         (update_po_files): Don't remove .po files after download,
33653         so future rsync runs can take advantage of the copies.
33654
33655         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
33656
33657         Solve the unnecessary-.po-file-regeneration problem once and for all.
33658         * build-aux/bootstrap (download_po_files): New function, renamed from
33659         get_translations.  Now, downloads, but doesn't update LINGUAS.
33660         (update_po_files): New function.
33661
33662         bootstrap: Ignore more.
33663         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
33664         uniwidth to e.g., lib/.gitignore.
33665         (slurp): Handle the sys_stat_.h -> sys mapping, too.
33666
33667         * build-aux/bootstrap: New setting: vc_ignore.
33668         (insert_sorted_if_absent): Create $file if absent.
33669         Adapt to new, possibly empty, list: $vc_ignore.
33670
33671         bootstrap: generate more ignorable names
33672         * build-aux/bootstrap (slurp): When generating ignorable names,
33673         also map .sin to .sed, .gperf to .c, and .y to .c.
33674
33675 2007-09-03  Jim Meyering  <jim@meyering.net>
33676
33677         * build-aux/git-version-gen: New file, from coreutils.  For details, see
33678         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
33679
33680 2007-09-02  Bruno Haible  <bruno@clisp.org>
33681
33682         Fix mis-recognition of 'mcs' on QNX 6.
33683         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
33684         output contains the string "Mono".
33685         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
33686         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
33687
33688 2007-09-01  Bruno Haible  <bruno@clisp.org>
33689
33690         Fix collision between uniwidth/* and linebreak modules.
33691         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
33692         u32_width): Remove declarations.
33693         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
33694         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
33695         streq3, streq2, streq1, streq0): Remove functions.
33696         (STREQ): Remove macro.
33697         (is_cjk_encoding): Remove function.
33698         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
33699         (uc_width, u8_width, u16_width, u32_width): Remove functions.
33700         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
33701         * NEWS: Document the change.
33702
33703 2007-09-01  Bruno Haible  <bruno@clisp.org>
33704
33705         * lib/streq.h: Add double-inclusion guard.
33706
33707 2007-09-01  Karl Berry  <karl@gnu.org>
33708
33709         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
33710
33711 2007-08-28  Jim Meyering  <jim@meyering.net>
33712
33713         Rename mreadlink_with_size to areadlink_with_size.
33714         * NEWS: Document the change.
33715         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
33716         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
33717         * lib/mreadlink.h: Rename this to...
33718         * lib/areadlink.h: ...this.
33719         * modules/mreadlink-with-size: Rename this to...
33720         * modules/areadlink-with-size: ...this.
33721         * lib/canonicalize.c: Reflect the renaming.
33722         * modules/canonicalize: Likewise.
33723
33724 2007-08-26  Bruno Haible  <bruno@clisp.org>
33725
33726         * gnulib-tool (func_import): When deciding which files to remove,
33727         consider also dangling symbolic links.
33728         Reported by Eric Blake.
33729
33730 2007-08-26  Bruno Haible  <bruno@clisp.org>
33731
33732         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
33733
33734 2007-08-23  Simon Josefsson  <simon@josefsson.org>
33735
33736         * lib/readline.c: Don't include getline.h, the prototype is now
33737         found in stdio.h.
33738
33739 2007-08-23  Jim Meyering  <jim@meyering.net>
33740
33741         Getdelim touchup.
33742         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
33743         around the funlockfile call, since funlockfile never sets errno.
33744         Don't set errno upon failed realloc.
33745
33746 2007-08-22  Eric Blake  <ebb9@byu.net>
33747
33748         Getline touchups.
33749         * lib/getdelim.c (getdelim): Revert regression that required *n to
33750         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
33751         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
33752         getdelim, rather than whether implementation is missing.
33753         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
33754         * lib/stdio_.h (getline): Also declare if replacement is
33755         required.
33756         * doc/functions/getdelim.texi: New file.
33757         * doc/functions/getline.texi: Likewise.
33758         * doc/gnulib.texi (Function Substitutes): Add new files.
33759         Reported by Bruno Haible.
33760
33761 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
33762
33763         * users.txt: Add Guile.
33764
33765 2007-08-22  Eric Blake  <ebb9@byu.net>
33766
33767         * tests/test-getdelim.c (main): Use remove, not unlink.
33768         * tests/test-getline.c (main): Likewise.
33769
33770         Move getline and getdelim into stdio.h, per POSIX 200x.
33771         * modules/getline (Files): Remove getline.h.
33772         (Depends-on): Add stdio.
33773         (configure.ac): Add module indicator.
33774         * modules/getdelim (Files): Remove getdelim.h.
33775         (Depends-on): Add stdio.
33776         (configure.ac): Add module indicator.
33777         * modules/stdio (Makefile.am): Work with new indicators.
33778         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
33779         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
33780         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
33781         * lib/getdelim.h: Delete.
33782         * lib/getline.h: Delete.
33783         * lib/stdio_.h (getdelim, getline): Declare.
33784         * modules/getdelim-tests: New module.
33785         * modules/getline-tests: Likewise.
33786         * tests/test-getdelim.c: New file.
33787         * tests/test-getline.c: Likewise.
33788         * NEWS: Document the change.
33789         * lib/getline.c: Update choice of header.
33790         * lib/csharpcomp.c: Likewise.
33791         * lib/getpass.c: Likewise.
33792         * lib/javacomp.c: Likewise.
33793         * lib/javaversion.c: Likewise.
33794         * lib/yesno.c: Likewise.
33795         * lib/getdelim.c: Likewise.
33796         (getdelim): Set errno on failure, and avoid memory leak.
33797
33798 2007-08-19  Bruno Haible  <bruno@clisp.org>
33799
33800         * modules/closein (Depends-on): Add freadahead.
33801         * lib/closein.c: Include freadahead.h.
33802         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
33803         is zero.
33804
33805 2007-08-19  Bruno Haible  <bruno@clisp.org>
33806
33807         * modules/freadahead-tests: New file.
33808         * tests/test-freadahead.sh: New file.
33809         * tests/test-freadahead.c: New file.
33810
33811         * modules/freadahead: New file.
33812         * lib/freadahead.h: New file.
33813         * lib/freadahead.c: New file.
33814         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
33815         fbufmode, fpurge, freadable, fwritable.
33816
33817 2007-08-19  Eric Blake  <ebb9@byu.net>
33818
33819         Test yesno in combination with closein.
33820         * lib/yesno.c (yesno): Document use of stdin.
33821         * modules/yesno-tests (Files): New module.
33822         * tests/test-yesno.c (main): New file.
33823         * tests/test-yesno.sh: Likewise.
33824
33825 2007-08-19  Bruno Haible  <bruno@clisp.org>
33826
33827         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
33828         * lib/fseeko.c (rpl_fseeko): Likewise.
33829         * lib/fseterr.c (fseterr): Likewise.
33830
33831 2007-08-19  Bruno Haible  <bruno@clisp.org>
33832
33833         * tests/test-lseek.c (main): Disable a test for BeOS.
33834         * doc/functions/lseek.texi: Document the BeOS bug.
33835
33836 2007-08-19  Bruno Haible  <bruno@clisp.org>
33837             Eric Blake  <ebb9@byu.net>
33838
33839         * lib/lseek.c: Include <sys/stat.h>.
33840         (rpl_lseek): Add workaround code also for Unix platforms.
33841         Needed for BeOS.
33842         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
33843         * doc/functions/lseek.texi: Document BeOS definiency.
33844
33845 2007-08-18  Bruno Haible  <bruno@clisp.org>
33846
33847         * modules/fstrcmp-tests: New file.
33848         * tests/test-fstrcmp.c: New file.
33849
33850 2007-08-18  Bruno Haible  <bruno@clisp.org>
33851
33852         * modules/fstrcmp: New file, from GNU gettext with modifications.
33853         * lib/fstrcmp.h: New file, from GNU gettext.
33854         * lib/fstrcmp.c: New file, from GNU gettext.
33855         * MODULES.html.sh (String handling): Add fstrcmp.
33856
33857 2007-08-18  Bruno Haible  <bruno@clisp.org>
33858
33859         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
33860         'bool'.
33861         (diag, compareseq): Remove const from the ctxt argument.
33862         (USE_HEURISTIC): Undefine at the end.
33863
33864 2007-08-18  Jim Meyering  <jim@meyering.net>
33865
33866         New file: lib/idcache.h
33867         * NEWS: Mention the addition.
33868         * modules/idcache (Files): Add lib/idcache.h
33869         * lib/idcache.c: Include "idcache.h".
33870         Don't include <sys/types.h>.
33871         Add a FIXME comment.
33872         Move file-scoped "static" declarations to the top.
33873         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
33874
33875 2007-08-17  Bruno Haible  <bruno@clisp.org>
33876         and Paul Eggert  <eggert@cs.ucla.edu>
33877
33878         * MODULES.html.sh: Add diffseq.
33879         * modules/diffseq: New file.
33880         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
33881         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
33882
33883 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
33884
33885         Import changes from coreutils for bootstrap script.
33886
33887         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
33888
33889         * build-aux/bootstrap (slurp): Work even in environments where
33890         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
33891         current code does not slurp files whose names start with ".", and
33892         this looks like it might be a troublesome area.
33893
33894         2007-07-11  Jim Meyering  <jim@meyering.net>
33895
33896         If there's a GPL vN copyright comment, require that N == 3.
33897
33898         2007-07-08  Jim Meyering  <jim@meyering.net>
33899
33900         Run the coreutils-specific code only if tests/Makefile.am.in exists.
33901         * build-aux/bootstrap (mam_template): Move definition out of loop.
33902
33903         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
33904
33905         * build-aux/bootstrap (symlink_to_dir): Rename function from
33906         symlink_to_gnulib.  Add a directory parameter.  Update all
33907         callers.
33908         (cp_mark_as_generated): Also check for -- and link to -- files in
33909         gl/.
33910
33911         2007-07-08  Jim Meyering  <jim@meyering.net>
33912
33913         Adapt to deeper hierarchy in gnulib.
33914         * build-aux/bootstrap (symlink_to_dir): If the destination
33915         directory doesn't exist, create it. This is required at least for
33916         "lib/uniwidth/cjk.h".
33917
33918         2007-05-15  Jim Meyering  <jim@meyering.net>
33919
33920         * build-aux/bootstrap: Now that generated Makefile.am files
33921         are no longer under version control, they must be created at
33922         bootstrap time.
33923
33924 2007-08-14  Ben Pfaff  <blp@gnu.org>
33925
33926         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
33927
33928 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
33929
33930         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
33931         given the changes below.
33932         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
33933         even on hosts that have padding bits beyond the supported 64.
33934
33935 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
33936
33937         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
33938         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
33939         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
33940         depends on it.
33941         (xstrtol_error): Remove.
33942         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
33943         but with a different signature.
33944         (ATTRIBUTE_NORETURN, __attribute__): New macros.
33945         * lib/xstrtol-error.c: Include exitfail.h.
33946         (xstrtol_fatal): New function, with a different signature from the
33947         old xstrtol_error, so that the caller need not worry about passing
33948         in an exit status, or about storage management of the option argument.
33949         (xstrtol_error): Now a static function.  Redo signature to
33950         implement xstrtol_fatal.  Output the correct number of hyphens in
33951         front of the option so that the caller need not worry about
33952         storage management.
33953         (N_): New macro.
33954         (_): Remove; not used now.
33955         * modules/xstrtol: Depend on getopt.
33956         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
33957         of old STRTOL_FATAL_ERROR macro.
33958         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
33959         of test program.
33960         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
33961         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
33962
33963 2007-08-08  Eric Blake  <ebb9@byu.net>
33964
33965         * lib/xstrtol-error.c: Add missing include.
33966
33967         Move xstrtol messages into gnulib domain, when --pobase is used.
33968         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
33969         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
33970         * modules/xstrtol (Files): Distribute new file.
33971         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
33972         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
33973         * tests/test-xstrtol.c: ...into new file.
33974         * tests/test-xstrtoul.c: Also test xstrtoul.
33975         * tests/test-xstrtoimax.c: Also test xstrtoimax.
33976         * tests/test-xstrtoumax.c: Also test xstrtoumax.
33977         * tests/test-xstrtol.sh: Drive the tests.
33978         * tests/test-xstrtoimax.sh: Likewise.
33979         * tests/test-xstrtoumax.sh: Likewise.
33980         * modules/xstrtol-tests: New module.
33981         * modules/xstrtoimax-tests: Likewise.
33982         * modules/xstrtoumax-tests: Likewise.
33983
33984 2007-08-08  Jim Meyering  <jim@meyering.net>
33985
33986         New function: mfile_name_concat.
33987         * lib/filenamecat.c (mfile_name_concat): New function, just like
33988         file_name_concat, but return NULL upon failure rather than exiting
33989         with a diagnostic.
33990         * lib/filenamecat.h: Declare it.
33991
33992 2007-08-07  Bruno Haible  <bruno@clisp.org>
33993
33994         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
33995         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
33996         warning from gcc.
33997         Reported by Eric Blake.
33998
33999 2007-08-07  Simon Josefsson  <simon@josefsson.org>
34000
34001         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
34002         * modules/crypto/arcfour (License): Likewise.
34003         * modules/crypto/des-tests (License): Likewise.
34004         * modules/crypto/gc-arctwo-tests (License): Likewise.
34005         * modules/crypto/gc-des-tests (License): Likewise.
34006         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
34007         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
34008         * modules/crypto/gc-md2-tests (License): Likewise.
34009         * modules/crypto/gc-md4-tests (License): Likewise.
34010         * modules/crypto/gc-md5-tests (License): Likewise.
34011         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
34012         * modules/crypto/gc-rijndael-tests (License): Likewise.
34013         * modules/crypto/gc-sha1-tests (License): Likewise.
34014         * modules/crypto/gc-tests (License): Likewise.
34015         * modules/crypto/hmac-md5 (License): Likewise.
34016         * modules/crypto/hmac-sha1 (License): Likewise.
34017         * modules/crypto/md2-tests (License): Likewise.
34018         * modules/crypto/md4-tests (License): Likewise.
34019         * modules/crypto/md5 (License): Likewise.
34020         * modules/crypto/rijndael (License): Likewise.
34021         * modules/crypto/sha1 (License): Likewise.
34022         * modules/memxor (License): Likewise.
34023
34024 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
34025         and Bruno Haible  <bruno@clisp.org>
34026
34027         * NEWS: Describe interface changes to human, xstrtol.
34028         * lib/human.h: Include <xstrtol.h>.
34029         (human_options): Return enum strtol_error, not int.  Remove
34030         bool arg; take int * instead.
34031         * lib/human.c: Don't include "gettext.h".
34032         (_): Remove; no longer used.
34033         Don't include <xstrtol.h>, since human.h does it.
34034         (human_options): Adjust to abovementioned interface changes.
34035         Do not report error to stderr; that's now the caller's
34036         responsibility.
34037         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
34038         interface change.
34039         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
34040         Str, Argument_type_string.  All uses changed.  Put " argument"
34041         in diagnostics to make them clearer.  Change wording of suffix
34042         message for clarity.
34043         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
34044         Argument_type_string.
34045         (STRTOL_FATAL_WARN): Remove; no longer used.
34046         * modules/human (Depends-on): Remove gettext-h.
34047
34048 2007-08-06  Simon Josefsson  <simon@josefsson.org>
34049
34050         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
34051
34052 2007-07-31  Bruno Haible  <bruno@clisp.org>
34053
34054         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
34055         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
34056         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
34057
34058 2007-07-31  Bruno Haible  <bruno@clisp.org>
34059
34060         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
34061         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
34062
34063 2007-07-30  Bruno Haible  <bruno@clisp.org>
34064
34065         * modules/base64 (License): Use the synonymous term "LGPLv2+".
34066         * modules/c-ctype (License): Likewise.
34067         * modules/c-strcase (License): Likewise.
34068         * modules/check-version (License): Likewise.
34069         * modules/iconv (License): Likewise.
34070         * modules/iconv_open (License): Likewise.
34071         * modules/read-file (License): Likewise.
34072         * modules/striconv (License): Likewise.
34073         * modules/strverscmp (License): Likewise.
34074         * modules/vasprintf (License): Likewise.
34075         * modules/crypto/des (License): Likewise.
34076         * modules/crypto/gc (License): Likewise.
34077         * modules/crypto/gc-arcfour (License): Likewise.
34078         * modules/crypto/gc-arctwo (License): Likewise.
34079         * modules/crypto/gc-des (License): Likewise.
34080         * modules/crypto/gc-hmac-md5 (License): Likewise.
34081         * modules/crypto/gc-hmac-sha1 (License): Likewise.
34082         * modules/crypto/gc-md2 (License): Likewise.
34083         * modules/crypto/gc-md4 (License): Likewise.
34084         * modules/crypto/gc-md5 (License): Likewise.
34085         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
34086         * modules/crypto/gc-random (License): Likewise.
34087         * modules/crypto/gc-rijndael (License): Likewise.
34088         * modules/crypto/gc-sha1 (License): Likewise.
34089         * modules/crypto/md2 (License): Likewise.
34090         * modules/crypto/md4 (License): Likewise.
34091
34092 2007-07-30  Jim Meyering  <jim@meyering.net>
34093
34094         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
34095         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
34096         it has valid stat data.  This bug would cause du not to count the
34097         sizes of inaccessible directories.
34098         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
34099         in <http://bugzilla.redhat.com/250077>.
34100
34101 2007-07-25  Peter O'Gorman  <peter@pogma.com>
34102             Bruno Haible  <bruno@clisp.org>
34103
34104         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
34105         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
34106         #include_next, gives a diagnostic about it, but reports no error in
34107         the exit code.
34108         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
34109
34110 2007-07-24  Ben Pfaff  <blp@gnu.org>
34111
34112         Improve name: "count-one-bits" is better than "popcount".
34113         * MODULES.html.sh: Update name.
34114         * lib/popcount.h: Renamed lib/count-one-bits.h.
34115         (popcount): Renamed count_one_bits.
34116         (popcountl): Renamed count_one_bits_l.
34117         (popcountll): Renamed count_one_bits_ll.
34118         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
34119         * modules/popcount: Renamed module/count-one-bits.
34120         * modules/popcount-tests: Renamed module/count-one-bits-tests.
34121         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
34122
34123 2007-07-23  Ben Pfaff  <blp@gnu.org>
34124
34125         * lib/popcount.h (popcount32): Reduce size of constants, to allow
34126         better code generation, and add U to large constants to avoid
34127         warnings, in non-GCC case.
34128         Suggested by Bruno Haible.
34129
34130 2007-07-23  Ben Pfaff  <blp@gnu.org>
34131
34132         * lib/popcount.h: Use verify_true instead of if...abort.
34133         * modules/popcount: Depend on verify module.
34134         Suggested by Jim Meyering.
34135
34136 2007-07-23  Bruno Haible  <bruno@clisp.org>
34137
34138         * gnulib-tool (func_import): Create a .cvsignore file also when the
34139         directory is not yet in CVS but the toplevel directory is. When
34140         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
34141         Reported by Karl Berry.
34142
34143 2007-07-22  Ben Pfaff  <blp@gnu.org>
34144
34145         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
34146         case.
34147         Suggested by Eric Blake.
34148
34149 2007-07-22  Ben Pfaff  <blp@gnu.org>
34150
34151         New module: popcount.
34152         * MODULES.html.sh: Add popcount.
34153         * modules/popcount: New file.
34154         * modules/popcount-tests: New file.
34155         * tests/test-popcount.c: New file.
34156         * lib/popcount.h: New file.
34157         * m4/popcount.m4: New file.
34158
34159 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
34160
34161         * build-aux/announce-gen: Update to GPLv3.
34162
34163         * build-aux/config.guess: Update from config.
34164
34165 2007-07-21  Bruno Haible  <bruno@clisp.org>
34166
34167         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
34168         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
34169
34170 2007-07-20  Jim Meyering  <jim@meyering.net>
34171
34172         * check-module: Diagnose a self-dependency.
34173
34174 2007-07-19  Bruno Haible  <bruno@clisp.org>
34175
34176         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
34177         empty.
34178         Reported by Eric Blake.
34179
34180 2007-07-18  Bruno Haible  <bruno@clisp.org>
34181
34182         * gnulib-tool: New options --po-base, --po-domain.
34183         (func_usage): Document them.
34184         (pobase, po_domain): New variables.
34185         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
34186         DEFAULT_TEXT_DOMAIN.
34187         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
34188         (func_import): Consider pobase and po_domain. Create a po/ directory.
34189         (func_create_testdir): Set pobase and po_domain to empty.
34190         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
34191         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
34192
34193 2007-07-18  Bruno Haible  <bruno@clisp.org>
34194
34195         * gnulib-tool (func_get_automake_snippet): Synthesize also an
34196         EXTRA_DIST augmentation for files in build-aux/.
34197
34198 2007-07-16  Bruno Haible  <bruno@clisp.org>
34199
34200         * modules/lseek (License): Use the synonymous term "LGPLv2+".
34201         * modules/getdelim (License): Likewise.
34202
34203 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34204
34205         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
34206         * modules/d-type (License): Likewise.
34207         * modules/extensions (License): Likewise.
34208         * modules/fnmatch (License): Likewise.
34209         * modules/fseeko (License): Likewise.
34210         * modules/getaddrinfo (License): Likewise.
34211         * modules/getline (License): Likewise.
34212         * modules/getlogin_r (License): Likewise.
34213         * modules/getpass (License): Likewise.
34214         * modules/gettimeofday (License): Likewise.
34215         * modules/glob (License): Likewise.
34216         * modules/inet_ntop (License): Likewise.
34217         * modules/malloc (License): Likewise.
34218         * modules/malloca (License): Likewise.
34219         * modules/memmem (License): Likewise.
34220         * modules/mempcpy (License): Likewise.
34221         * modules/memset (License): Likewise.
34222         * modules/minmax (License): Likewise.
34223         * modules/mktime (License): Likewise.
34224         * modules/netinet_in (License): Likewise.
34225         * modules/pathmax (License): Likewise.
34226         * modules/poll (License): Likewise.
34227         * modules/regex (License): Likewise.
34228         * modules/snprintf (License): Likewise.
34229         * modules/stdbool (License): Likewise.
34230         * modules/stdint (License): Likewise.
34231         * modules/stdio (License): Likewise.
34232         * modules/strcase (License): Likewise.
34233         * modules/strcasestr (License): Likewise.
34234         * modules/strdup (License): Likewise.
34235         * modules/string (License): Likewise.
34236         * modules/strndup (License): Likewise.
34237         * modules/strnlen (License): Likewise.
34238         * modules/strpbrk (License): Likewise.
34239         * modules/strptime (License): Likewise.
34240         * modules/strsep (License): Likewise.
34241         * modules/sys_select (License): Likewise.
34242         * modules/sys_socket (License): Likewise.
34243         * modules/sys_stat (License): Likewise.
34244         * modules/sys_time (License): Likewise.
34245         * modules/time (License): Likewise.
34246         * modules/time_r (License): Likewise.
34247         * modules/timegm (License): Likewise.
34248         * modules/unistd (License): Likewise.
34249         * modules/vsnprintf (License): Likewise.
34250         * modules/wctype (License): Likewise.
34251
34252 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34253
34254         * modules/argz (License): LGPLv2+.
34255
34256 2007-07-15  Karl Berry  <karl@gnu.org>
34257
34258         * doc/gnulib.texi: revise node structure per new fdl.texi.
34259
34260 2007-07-14  Bruno Haible  <bruno@clisp.org>
34261
34262         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
34263         the output file.
34264         * lib/uniname/uninames.h: Regenerated.
34265
34266 2007-07-14  Karl Berry  <karl@gnu.org>
34267
34268         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
34269         omitting sectioning and index commands.
34270
34271 2007-07-13  Bruno Haible  <bruno@clisp.org>
34272
34273         New gnulib-tool option --more-symlinks.
34274         * gnulib-tool (func_usage): Document --more-symlinks.
34275         (do_copyrights): New variable.
34276         Recognize option --more-symlinks.
34277         (func_import): Don't add a copyright notice transform to
34278         sed_transform_lib_file if do_copyrights is empty.
34279
34280 2007-07-13  Bruno Haible  <bruno@clisp.org>
34281
34282         * lib/vasnprintf.c (decimal_point_char): Define also if
34283         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
34284         && !NEED_PRINTF_DIRECTIVE_A.
34285         Reported by Clemens Koller <clemens.koller@anagramm.de> via
34286         Gary V. Vaughan <gary@gnu.org>.
34287
34288 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
34289
34290         * lib/inttypes_.h: Undo previous change, since it was fixed
34291         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
34292
34293 2007-07-13  Bruno Haible  <bruno@clisp.org>
34294
34295         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
34296         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
34297
34298 2007-07-13  Jim Meyering  <jim@meyering.net>
34299
34300         df: Don't fail for Tru64's "file-on-file mount".
34301         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
34302         so we fall through and use statfs instead.  Details here:
34303         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
34304         Reported by Albert Chin.
34305
34306 2007-07-13  Bruno Haible  <bruno@clisp.org>
34307
34308         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
34309         * modules/configmake (License): Likewise.
34310         * modules/gettext (License): Likewise.
34311         * modules/gettext-h (License): Likewise.
34312         * modules/include_next (License): Likewise.
34313         * modules/link-warning (License): Likewise.
34314         * modules/localcharset (License): Likewise.
34315         * modules/localename (License): Likewise.
34316         * modules/lock (License): Likewise.
34317         * modules/relocatable-lib-lgpl (License): Likewise.
34318         * modules/size_max (License): Likewise.
34319         * modules/vasnprintf (License): Likewise.
34320         * modules/wchar (License): Likewise.
34321         * modules/xsize (License): Likewise.
34322
34323 2007-07-13  Bruno Haible  <bruno@clisp.org>
34324
34325         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
34326         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
34327
34328 2007-07-12  Bruno Haible  <bruno@clisp.org>
34329
34330         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
34331         in the modules files.
34332
34333 2007-07-11  Karl Berry  <karl@gnu.org>
34334
34335         * MODULES.html.sh (func_module): use
34336          sed -e '\|^'"${includefile}"'$|d'
34337          instead of /.../d, to avoid errors on $includefile's containing /.
34338
34339 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
34340
34341         * gnulib-tool (func_import): Avoid duplication of --avoid
34342         statements
34343         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
34344         names to `_' in variable names.
34345
34346 2007-07-10  Eric Blake  <ebb9@byu.net>
34347
34348         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
34349         * NEWS: Document this change.
34350
34351 2007-07-08  Bruno Haible  <bruno@clisp.org>
34352
34353         Update to Unicode 5.0.
34354         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
34355         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
34356         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
34357         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
34358         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
34359         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
34360         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
34361         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
34362         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
34363         U+10A3F, U+1D242..U+1D244.
34364         (nonspacing_table_ind): Update.
34365         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
34366         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
34367
34368 2007-07-08  Bruno Haible  <bruno@clisp.org>
34369
34370         Update to Unicode 5.0.
34371         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
34372         code transform. Extend the name index field of unicode_name_to_code and
34373         unicode_code_to_name from 16 to 24 bits.
34374         * lib/uniname/uniname.c (unicode_character_name,
34375         unicode_name_character): Add the range 0x12xxx to the code transform.
34376         * lib/uniname/uninames.h: Regenerated.
34377         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
34378
34379 2007-07-07  Bruno Haible  <bruno@clisp.org>
34380
34381         * modules/wcwidth-tests: New file.
34382         * tests/test-wcwidth.c: New file.
34383
34384         Work around MacOS X wcwidth() bug.
34385         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
34386         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
34387         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
34388         original wcwidth in non-UTF-8 locales.
34389         * modules/wcwidth (Depends-on): Add localcharset, streq,
34390         uniwidth/width.
34391         * doc/functions/wcwidth.texi: Update.
34392
34393 2007-07-07  Bruno Haible  <bruno@clisp.org>
34394
34395         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
34396         (wcwidth): New declaration.
34397         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
34398         macros.
34399         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
34400         here. Prepare for creating <wchar.h> unconditionally.
34401         * modules/wchar (Depends-on): Add link-warning.
34402         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
34403         REPLACE_WCWIDTH, and GL_LINK_WARNING.
34404         * lib/wcwidth.h: Remove file.
34405         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
34406         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
34407         * modules/wcwidth (Files): Remove lib/wcwidth.h.
34408         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
34409         (Include): Replace wcwidth.h with <wchar.h>.
34410         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
34411         * lib/mbchar.h: Don't include wcwidth.h.
34412         * lib/mbswidth.c: Likewise.
34413         * NEWS: Mention the change.
34414
34415 2007-07-07  Bruno Haible  <bruno@clisp.org>
34416
34417         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
34418         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
34419         definition with an external declaration.
34420         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
34421         defined as a function. Remove AC_C_INLINE requirement.
34422         * modules/wcwidth (Files): Add lib/wcwidth.c.
34423         (Makefile.am): Remove redundant statement.
34424
34425 2007-07-07  Bruno Haible  <bruno@clisp.org>
34426
34427         * MODULES.html.sh (Unicode string functions): Add the new modules.
34428
34429         * tests/uniwidth/test-u32-strwidth.c: New file.
34430         * modules/uniwidth/u32-strwidth-tests: New file.
34431
34432         * lib/uniwidth/u32-strwidth.c: New file.
34433         * modules/uniwidth/u32-strwidth: New file.
34434
34435         * tests/uniwidth/test-u16-strwidth.c: New file.
34436         * modules/uniwidth/u16-strwidth-tests: New file.
34437
34438         * lib/uniwidth/u16-strwidth.c: New file.
34439         * modules/uniwidth/u16-strwidth: New file.
34440
34441         * tests/uniwidth/test-u8-strwidth.c: New file.
34442         * modules/uniwidth/u8-strwidth-tests: New file.
34443
34444         * lib/uniwidth/u8-strwidth.c: New file.
34445         * modules/uniwidth/u8-strwidth: New file.
34446
34447         * tests/uniwidth/test-u32-width.c: New file.
34448         * modules/uniwidth/u32-width-tests: New file.
34449
34450         * lib/uniwidth/u32-width.c: New file.
34451         * modules/uniwidth/u32-width: New file.
34452
34453         * tests/uniwidth/test-u16-width.c: New file.
34454         * modules/uniwidth/u16-width-tests: New file.
34455
34456         * lib/uniwidth/u16-width.c: New file.
34457         * modules/uniwidth/u16-width: New file.
34458
34459         * tests/uniwidth/test-u8-width.c: New file.
34460         * modules/uniwidth/u8-width-tests: New file.
34461
34462         * lib/uniwidth/u8-width.c: New file.
34463         * modules/uniwidth/u8-width: New file.
34464
34465         * tests/uniwidth/test-uc_width.c: New file.
34466         * modules/uniwidth/width-tests: New file.
34467
34468         * lib/uniwidth/width.c: New file, from GNU libiconv.
34469         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
34470         * modules/uniwidth/width: New file.
34471
34472         * lib/uniwidth.h: New file, from GNU libiconv.
34473         * modules/uniwidth/base: New file.
34474
34475 2007-07-07  Bruno Haible  <bruno@clisp.org>
34476
34477         * lib/uniname.h: New file, from GNU gettext.
34478         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
34479         * lib/uniname/uninames.h: New file, from GNU gettext.
34480         * lib/uniname/uniname.c: New file, from GNU gettext.
34481         * tests/uniname/test-uninames.sh: New file.
34482         * tests/uniname/test-uninames.c: New file, from GNU gettext.
34483         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
34484         * modules/uniname/base: New file.
34485         * modules/uniname/uniname: New file.
34486         * modules/uniname/uniname-tests: New file.
34487         * MODULES.html.sh (Unicode string functions): Add the new modules.
34488
34489 2007-07-06  Bruno Haible  <bruno@clisp.org>
34490
34491         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
34492
34493 2007-07-06  Bruno Haible  <bruno@clisp.org>
34494
34495         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
34496         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
34497         includes <cygwin/sys_time.h> which includes <sys/select.h> which
34498         include <sys/time.h>.
34499         Reported by Eric Blake.
34500
34501 2007-07-06  Eric Blake  <ebb9@byu.net>
34502
34503         Fix testing canonicalize on cygwin.
34504         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
34505         Revert patch from 2007-06-19.
34506         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
34507         canonicalize module is also in use.
34508         * tests/test-canonicalize.c: New file.
34509         * tests/test-canonicalize.sh: Likewise.
34510         * modules/canonicalize-tests: Likewise.
34511
34512 2007-07-06  Jim Meyering  <jim@meyering.net>
34513
34514         * lib/getugroups.c (getugroups): Detect getgrent failure.
34515         Adjust comment to reflect reality: this function may return -1.
34516
34517 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
34518
34519         * build-aux/bootstrap (TP_URL,get_translations): Update to use
34520         the new TP address.
34521         (usage): Fix typo
34522         (gnulib_mk): New variable.
34523
34524 2007-07-05  Jim Meyering  <jim@meyering.net>
34525
34526         Don't let endgrent clobber errno, no matter how improbable.
34527         * lib/getugroups.c (getugroups): Save and restore errno around
34528         endgrent call.
34529
34530         Close the group DB even when failing with 2^31 or more members.
34531         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
34532
34533 2007-07-04  Jim Meyering  <jim@meyering.net>
34534
34535         * lib/getugroups.h: New file.
34536         * lib/getugroups.c: Include "getugroups.h".
34537         Remove uses of "register" keyword.
34538         Move local variable, "cp", down into scope where used.
34539         Give "username" parameter the "const" attribute.
34540         * modules/getugroups (Files): Add lib/getugroups.h
34541
34542 2007-07-04  Karl Berry  <karl@gnu.org>
34543
34544         * MODULES.html.sh (func_all_modules): Complete rename of
34545         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
34546
34547 2007-07-02  Bruno Haible  <bruno@clisp.org>
34548
34549         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
34550         mode, when inttypes.h comes from gnulib.
34551         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
34552
34553 2007-07-02  Simon Josefsson  <simon@josefsson.org>
34554
34555         * NEWS: Mention lgpl module name change.
34556
34557         * modules/lgpl-2.1: Renamed from lgpl.
34558
34559         * NEWS: Mention gpl module name change.
34560
34561         * modules/gpl-3.0: New file, based on gpl-2.0.
34562
34563         * modules/gpl-2.0: Renamed from gpl.
34564
34565         * modules/gpl: Fix filename, doc/gpl.texi is now found at
34566         doc/gpl-2.0.texi.
34567
34568 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
34569
34570         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
34571         #define __STDC_LIMIT_MACROS temporarily while including
34572         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
34573         Problem reported by Joel E. Denny in
34574         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
34575
34576 2007-07-01  Bruno Haible  <bruno@clisp.org>
34577
34578         * lib/unistdio.h: New file.
34579         * lib/unistdio/u-asnprintf.h: New file.
34580         * lib/unistdio/u-asprintf.h: New file.
34581         * lib/unistdio/u-printf-args.c: New file.
34582         * lib/unistdio/u-printf-args.h: New file.
34583         * lib/unistdio/u-printf-parse.h: New file.
34584         * lib/unistdio/u-snprintf.h: New file.
34585         * lib/unistdio/u-sprintf.h: New file.
34586         * lib/unistdio/u-vasprintf.h: New file.
34587         * lib/unistdio/u-vsnprintf.h: New file.
34588         * lib/unistdio/u-vsprintf.h: New file.
34589         * lib/unistdio/ulc-asnprintf.c: New file.
34590         * lib/unistdio/ulc-asprintf.c: New file.
34591         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
34592         * lib/unistdio/ulc-printf-parse.c: New file.
34593         * lib/unistdio/ulc-snprintf.c: New file.
34594         * lib/unistdio/ulc-sprintf.c: New file.
34595         * lib/unistdio/ulc-vasnprintf.c: New file.
34596         * lib/unistdio/ulc-vasprintf.c: New file.
34597         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
34598         * lib/unistdio/ulc-vsnprintf.c: New file.
34599         * lib/unistdio/ulc-vsprintf.c: New file.
34600         * lib/unistdio/u8-asnprintf.c: New file.
34601         * lib/unistdio/u8-asprintf.c: New file.
34602         * lib/unistdio/u8-printf-parse.c: New file.
34603         * lib/unistdio/u8-snprintf.c: New file.
34604         * lib/unistdio/u8-sprintf.c: New file.
34605         * lib/unistdio/u8-vasnprintf.c: New file.
34606         * lib/unistdio/u8-vasprintf.c: New file.
34607         * lib/unistdio/u8-vsnprintf.c: New file.
34608         * lib/unistdio/u8-vsprintf.c: New file.
34609         * lib/unistdio/u8-u8-asnprintf.c: New file.
34610         * lib/unistdio/u8-u8-asprintf.c: New file.
34611         * lib/unistdio/u8-u8-snprintf.c: New file.
34612         * lib/unistdio/u8-u8-sprintf.c: New file.
34613         * lib/unistdio/u8-u8-vasnprintf.c: New file.
34614         * lib/unistdio/u8-u8-vasprintf.c: New file.
34615         * lib/unistdio/u8-u8-vsnprintf.c: New file.
34616         * lib/unistdio/u8-u8-vsprintf.c: New file.
34617         * lib/unistdio/u16-asnprintf.c: New file.
34618         * lib/unistdio/u16-asprintf.c: New file.
34619         * lib/unistdio/u16-printf-parse.c: New file.
34620         * lib/unistdio/u16-snprintf.c: New file.
34621         * lib/unistdio/u16-sprintf.c: New file.
34622         * lib/unistdio/u16-vasnprintf.c: New file.
34623         * lib/unistdio/u16-vasprintf.c: New file.
34624         * lib/unistdio/u16-vsnprintf.c: New file.
34625         * lib/unistdio/u16-vsprintf.c: New file.
34626         * lib/unistdio/u16-u16-asnprintf.c: New file.
34627         * lib/unistdio/u16-u16-asprintf.c: New file.
34628         * lib/unistdio/u16-u16-snprintf.c: New file.
34629         * lib/unistdio/u16-u16-sprintf.c: New file.
34630         * lib/unistdio/u16-u16-vasnprintf.c: New file.
34631         * lib/unistdio/u16-u16-vasprintf.c: New file.
34632         * lib/unistdio/u16-u16-vsnprintf.c: New file.
34633         * lib/unistdio/u16-u16-vsprintf.c: New file.
34634         * lib/unistdio/u32-asnprintf.c: New file.
34635         * lib/unistdio/u32-asprintf.c: New file.
34636         * lib/unistdio/u32-printf-parse.c: New file.
34637         * lib/unistdio/u32-snprintf.c: New file.
34638         * lib/unistdio/u32-sprintf.c: New file.
34639         * lib/unistdio/u32-vasnprintf.c: New file.
34640         * lib/unistdio/u32-vasprintf.c: New file.
34641         * lib/unistdio/u32-vsnprintf.c: New file.
34642         * lib/unistdio/u32-vsprintf.c: New file.
34643         * lib/unistdio/u32-u32-asnprintf.c: New file.
34644         * lib/unistdio/u32-u32-asprintf.c: New file.
34645         * lib/unistdio/u32-u32-snprintf.c: New file.
34646         * lib/unistdio/u32-u32-sprintf.c: New file.
34647         * lib/unistdio/u32-u32-vasnprintf.c: New file.
34648         * lib/unistdio/u32-u32-vasprintf.c: New file.
34649         * lib/unistdio/u32-u32-vsnprintf.c: New file.
34650         * lib/unistdio/u32-u32-vsprintf.c: New file.
34651         * tests/unistdio/test-ulc-asnprintf1.c: New file.
34652         * tests/unistdio/test-ulc-asnprintf1.h: New file.
34653         * tests/unistdio/test-ulc-printf1.h: New file.
34654         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
34655         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
34656         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
34657         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
34658         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
34659         * tests/unistdio/test-ulc-vasprintf1.c: New file.
34660         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
34661         * tests/unistdio/test-ulc-vsprintf1.c: New file.
34662         * tests/unistdio/test-u8-asnprintf1.c: New file.
34663         * tests/unistdio/test-u8-asnprintf1.h: New file.
34664         * tests/unistdio/test-u8-printf1.h: New file.
34665         * tests/unistdio/test-u8-vasnprintf1.c: New file.
34666         * tests/unistdio/test-u8-vasnprintf2.c: New file.
34667         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
34668         * tests/unistdio/test-u8-vasnprintf3.c: New file.
34669         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
34670         * tests/unistdio/test-u8-vasprintf1.c: New file.
34671         * tests/unistdio/test-u8-vsnprintf1.c: New file.
34672         * tests/unistdio/test-u8-vsprintf1.c: New file.
34673         * tests/unistdio/test-u16-asnprintf1.c: New file.
34674         * tests/unistdio/test-u16-asnprintf1.h: New file.
34675         * tests/unistdio/test-u16-printf1.h: New file.
34676         * tests/unistdio/test-u16-vasnprintf1.c: New file.
34677         * tests/unistdio/test-u16-vasnprintf2.c: New file.
34678         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
34679         * tests/unistdio/test-u16-vasnprintf3.c: New file.
34680         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
34681         * tests/unistdio/test-u16-vasprintf1.c: New file.
34682         * tests/unistdio/test-u16-vsnprintf1.c: New file.
34683         * tests/unistdio/test-u16-vsprintf1.c: New file.
34684         * tests/unistdio/test-u32-asnprintf1.c: New file.
34685         * tests/unistdio/test-u32-asnprintf1.h: New file.
34686         * tests/unistdio/test-u32-printf1.h: New file.
34687         * tests/unistdio/test-u32-vasnprintf1.c: New file.
34688         * tests/unistdio/test-u32-vasnprintf2.c: New file.
34689         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
34690         * tests/unistdio/test-u32-vasnprintf3.c: New file.
34691         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
34692         * tests/unistdio/test-u32-vasprintf1.c: New file.
34693         * tests/unistdio/test-u32-vsnprintf1.c: New file.
34694         * tests/unistdio/test-u32-vsprintf1.c: New file.
34695         * modules/unistdio/base: New file.
34696         * modules/unistdio/u-printf-args: New file.
34697         * modules/unistdio/ulc-asnprintf: New file.
34698         * modules/unistdio/ulc-asprintf: New file.
34699         * modules/unistdio/ulc-fprintf: New file.
34700         * modules/unistdio/ulc-printf-parse: New file.
34701         * modules/unistdio/ulc-snprintf: New file.
34702         * modules/unistdio/ulc-sprintf: New file.
34703         * modules/unistdio/ulc-vasnprintf: New file.
34704         * modules/unistdio/ulc-vasprintf: New file.
34705         * modules/unistdio/ulc-vfprintf: New file.
34706         * modules/unistdio/ulc-vsnprintf: New file.
34707         * modules/unistdio/ulc-vsprintf: New file.
34708         * modules/unistdio/u8-asnprintf: New file.
34709         * modules/unistdio/u8-asprintf: New file.
34710         * modules/unistdio/u8-printf-parse: New file.
34711         * modules/unistdio/u8-snprintf: New file.
34712         * modules/unistdio/u8-sprintf: New file.
34713         * modules/unistdio/u8-vasnprintf: New file.
34714         * modules/unistdio/u8-vasprintf: New file.
34715         * modules/unistdio/u8-vsnprintf: New file.
34716         * modules/unistdio/u8-vsprintf: New file.
34717         * modules/unistdio/u8-u8-asnprintf: New file.
34718         * modules/unistdio/u8-u8-asprintf: New file.
34719         * modules/unistdio/u8-u8-snprintf: New file.
34720         * modules/unistdio/u8-u8-sprintf: New file.
34721         * modules/unistdio/u8-u8-vasnprintf: New file.
34722         * modules/unistdio/u8-u8-vasprintf: New file.
34723         * modules/unistdio/u8-u8-vsnprintf: New file.
34724         * modules/unistdio/u8-u8-vsprintf: New file.
34725         * modules/unistdio/u16-asnprintf: New file.
34726         * modules/unistdio/u16-asprintf: New file.
34727         * modules/unistdio/u16-printf-parse: New file.
34728         * modules/unistdio/u16-snprintf: New file.
34729         * modules/unistdio/u16-sprintf: New file.
34730         * modules/unistdio/u16-vasnprintf: New file.
34731         * modules/unistdio/u16-vasprintf: New file.
34732         * modules/unistdio/u16-vsnprintf: New file.
34733         * modules/unistdio/u16-vsprintf: New file.
34734         * modules/unistdio/u16-u16-asnprintf: New file.
34735         * modules/unistdio/u16-u16-asprintf: New file.
34736         * modules/unistdio/u16-u16-snprintf: New file.
34737         * modules/unistdio/u16-u16-sprintf: New file.
34738         * modules/unistdio/u16-u16-vasnprintf: New file.
34739         * modules/unistdio/u16-u16-vasprintf: New file.
34740         * modules/unistdio/u16-u16-vsnprintf: New file.
34741         * modules/unistdio/u16-u16-vsprintf: New file.
34742         * modules/unistdio/u32-asnprintf: New file.
34743         * modules/unistdio/u32-asprintf: New file.
34744         * modules/unistdio/u32-printf-parse: New file.
34745         * modules/unistdio/u32-snprintf: New file.
34746         * modules/unistdio/u32-sprintf: New file.
34747         * modules/unistdio/u32-vasnprintf: New file.
34748         * modules/unistdio/u32-vasprintf: New file.
34749         * modules/unistdio/u32-vsnprintf: New file.
34750         * modules/unistdio/u32-vsprintf: New file.
34751         * modules/unistdio/u32-u32-asnprintf: New file.
34752         * modules/unistdio/u32-u32-asprintf: New file.
34753         * modules/unistdio/u32-u32-snprintf: New file.
34754         * modules/unistdio/u32-u32-sprintf: New file.
34755         * modules/unistdio/u32-u32-vasnprintf: New file.
34756         * modules/unistdio/u32-u32-vasprintf: New file.
34757         * modules/unistdio/u32-u32-vsnprintf: New file.
34758         * modules/unistdio/u32-u32-vsprintf: New file.
34759         * modules/unistdio/ulc-asnprintf-tests: New file.
34760         * modules/unistdio/ulc-vasnprintf-tests: New file.
34761         * modules/unistdio/ulc-vasprintf-tests: New file.
34762         * modules/unistdio/ulc-vsnprintf-tests: New file.
34763         * modules/unistdio/ulc-vsprintf-tests: New file.
34764         * modules/unistdio/u8-asnprintf-tests: New file.
34765         * modules/unistdio/u8-vasnprintf-tests: New file.
34766         * modules/unistdio/u8-vasprintf-tests: New file.
34767         * modules/unistdio/u8-vsnprintf-tests: New file.
34768         * modules/unistdio/u8-vsprintf-tests: New file.
34769         * modules/unistdio/u16-asnprintf-tests: New file.
34770         * modules/unistdio/u16-vasnprintf-tests: New file.
34771         * modules/unistdio/u16-vasprintf-tests: New file.
34772         * modules/unistdio/u16-vsnprintf-tests: New file.
34773         * modules/unistdio/u16-vsprintf-tests: New file.
34774         * modules/unistdio/u32-asnprintf-tests: New file.
34775         * modules/unistdio/u32-vasnprintf-tests: New file.
34776         * modules/unistdio/u32-vasprintf-tests: New file.
34777         * modules/unistdio/u32-vsnprintf-tests: New file.
34778         * modules/unistdio/u32-vsprintf-tests: New file.
34779         * MODULES.html.sh (Unicode string functions): Add the new modules.
34780
34781 2007-07-01  Bruno Haible  <bruno@clisp.org>
34782
34783         * lib/sprintf.c (sprintf): Limit the available length estimation,
34784         to avoid address wraparound.
34785         * lib/vsprintf.c (vsprintf): Likewise.
34786         * modules/sprintf-posix (Dependencies): Add stdint.
34787         * modules/vsprintf-posix (Dependencies): Likewise.
34788
34789 2007-07-01  Bruno Haible  <bruno@clisp.org>
34790
34791         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
34792         Windows PATH as well. Conservative double-quoting. Comments.
34793
34794 2007-07-01  Bruno Haible  <bruno@clisp.org>
34795             Eric Blake  <ebb9@byu.net>
34796             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34797
34798         * gnulib-tool (self_abspathname): Fix algorithm to cope with
34799         empty components in $PATH, denoting '.'.
34800
34801 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34802
34803         * gnulib-tool: Fix indentation.
34804         (func_create_megatestdir): Likewise.
34805         Report by Bruno Haible.
34806
34807 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34808
34809         Sync from Automake.
34810         * build-aux/gnupload: Fix shell portability issues with for loops.
34811         Report by Karl Berry.
34812
34813 2007-06-29  Simon Josefsson  <simon@josefsson.org>
34814
34815         * build-aux/maint.mk (POURL): Use translationproject.org.
34816
34817 2007-06-27  Simon Josefsson  <simon@josefsson.org>
34818             Bruno Haible  <bruno@clisp.org>
34819
34820         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
34821         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
34822         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
34823         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
34824         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
34825
34826 2007-06-27  Bruno Haible  <bruno@clisp.org>
34827
34828         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
34829         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
34830
34831 2007-06-26  Karl Berry  <karl@gnu.org>
34832
34833         * MODULES.html.sh: remove xreadlink-with-size.
34834
34835 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
34836
34837         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
34838         method that I hope also handles the double-include problem noted
34839         by Bruno Haible in
34840         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
34841
34842 2007-06-23  Bruno Haible  <bruno@clisp.org>
34843
34844         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34845         Don't let the 'mostlyclean' target fail if the last subdirectory could
34846         not be removed.
34847         Reported by Karl Berry.
34848
34849 2007-06-23  Bruno Haible  <bruno@clisp.org>
34850
34851         * gnulib-tool (echo): Add a speedier workaround for ksh.
34852         * tests/test-echo.sh: Likewise.
34853
34854 2007-06-23  Bruno Haible  <bruno@clisp.org>
34855
34856         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
34857         * tests/test-echo.sh: Likewise.
34858
34859 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34860
34861         * gnulib-tool (IFS): Initialize early, so we don't set it to
34862         empty later.
34863         (self_abspathname): Rewrite algorithm to set it, reindent.
34864         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
34865         (func_create_megatestdir): Merge some sed scripts.
34866
34867 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
34868
34869         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
34870         exposed by Sun Studio 11 cc on Solaris 8.
34871
34872 2007-06-22  Bruno Haible  <bruno@clisp.org>
34873
34874         * gnulib-tool (echo): Ensure the echo primitive does not interpret
34875         backslashes.
34876         * tests/test-echo.sh: New file.
34877
34878 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34879
34880         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
34881         simplify `sed_replace_build_aux' scripts, they are portable but
34882         echoing them with `echo' is not.
34883         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
34884
34885 2007-06-21  Karl Berry  <karl@gnu.org>
34886
34887         * config/srclist.txt: guess we can't handle the licenses via
34888         srclist at the moment.
34889
34890 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
34891
34892         * MODULES.html.sh: Add include_next.
34893         * modules/include_next: New file.
34894
34895 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
34896
34897         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
34898         INCLUDE_NEXT.
34899         (gl_CHECK_NEXT_HEADERS): New macro.
34900         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
34901         the obsolescent gl_ABSOLUTE_HEADER.
34902         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
34903         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
34904         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
34905         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34906         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
34907         * m4/math_h.m4 (gl_MATH_H): Likewise.
34908         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
34909         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34910         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
34911         * m4/stdint.m4 (gl_STDINT_H): Likewise.
34912         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
34913         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
34914         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
34915         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34916         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
34917         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
34918         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
34919         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
34920         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
34921         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
34922         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34923         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
34924         * m4/inttypes.m4 (gl_INTTYPES_H): Define
34925         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
34926         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
34927         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
34928         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
34929         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
34930         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
34931         * lib/float_.h: Likewise.
34932         * lib/inttypes_.h: Likewise.
34933         * lib/math_.h: Likewise.
34934         * lib/search_.h: Likewise.
34935         * lib/signal_.h: Likewise.
34936         * lib/stdint_.h: Likewise.
34937         * lib/stdio_.h: Likewise.
34938         * lib/stdlib_.h: Likewise.
34939         * lib/string_.h: Likewise.
34940         * lib/sys_stat_.h: Likewise.
34941         * lib/sys_time_.h: Likewise.
34942         * lib/time_.h: Likewise.
34943         * lib/unistd_.h: Likewise.
34944         * lib/wchar_.h: Likewise.
34945         * lib/wctype_.h: Likewise.
34946         * lib/dirent_.h: Likewise.
34947         * lib/iconv_.h: Likewise.
34948         * lib/locale_.h: Likewise.
34949         * lib/netinet_in_.h: Likewise.
34950         * lib/sys_select_.h: Likewise.
34951         * lib/sys_socket_.h: Likewise.
34952         * lib/sysexits_.h: Likewise.
34953         * modules/fcntl (Depends-on): Depend on include_next, not
34954         absolute_header.
34955         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
34956         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
34957         * modules/fchdir: Likewise.
34958         * modules/float: Likewise.
34959         * modules/iconv_open: Likewise.
34960         * modules/inttypes: Likewise.
34961         * modules/locale: Likewise.
34962         * modules/math: Likewise.
34963         * modules/netinet_in: Likewise.
34964         * modules/search: Likewise.
34965         * modules/signal: Likewise.
34966         * modules/stdint: Likewise.
34967         * modules/stdio: Likewise.
34968         * modules/stdlib: Likewise.
34969         * modules/string: Likewise.
34970         * modules/sys_select: Likewise.
34971         * modules/sys_socket: Likewise.
34972         * modules/sys_stat: Likewise.
34973         * modules/sys_time: Likewise.
34974         * modules/sysexits: Likewise.
34975         * modules/time: Likewise.
34976         * modules/unistd: Likewise.
34977         * modules/wchar: Likewise.
34978         * modules/wctype: Likewise.
34979         * modules/sys_stat: Change maintainer to "all".
34980         * modules/unistd: Likewise.
34981
34982 2007-06-20  Karl Berry  <karl@gnu.org>
34983
34984         * config/srclist.txt: track www changes in license files.
34985
34986 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
34987
34988         * build-aux/bootstrap: Remove stray dot.
34989         Make sure build_aux settings are honored when linking
34990         gnulib_extra_files.
34991
34992 2007-06-19  Eric Blake  <ebb9@byu.net>
34993
34994         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
34995         Allow compilation on cygwin.
34996
34997 2007-06-19  Jim Meyering  <jim@meyering.net>
34998
34999         xreadlink-with-size: Remove module.  No longer used.
35000         Ex-callers now use xreadlink or mreadlink-with-size.
35001         * modules/xreadlink-with-size: Remove module.
35002         * lib/xreadlink-with-size.c: Remove file.
35003         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
35004         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
35005         just before the function definition *is* accurate.
35006
35007         Eliminate one way canonicalize_filename_mode could exit.
35008         * lib/canonicalize.c (canonicalize_filename_mode):
35009         Use mreadlink_with_size, not xreadlink_with_size.
35010
35011 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
35012
35013         Detect porting problems to FreeBSD/arm, which has time_t wider than
35014         long int.  Original problem reported for GNU diff by Xin Li in
35015         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
35016         * modules/getdate (Depends-on): Add intprops, verify.
35017         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
35018         is an integer type no wider than long int.
35019
35020 2007-06-18  Jim Meyering  <jim@meyering.net>
35021
35022         New module: mreadlink-with-size.
35023         * MODULES.html.sh: Add mreadlink-with-size.
35024         * modules/mreadlink-with-size: New module
35025         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
35026         not xreadlink-with-size.
35027         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
35028
35029 2007-06-16  Bruno Haible  <bruno@clisp.org>
35030
35031         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
35032         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
35033         Reported by Gary V. Vaughan <gary@gnu.org>.
35034
35035 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
35036
35037         Revamp lchown so that it lives in unistd.h where it belongs.
35038         * lib/lchown.h: Remove.
35039         * lib/dirchownmod.c: Don't include lib/lchown.h.
35040         * lib/fchownat.c: Likewise.
35041         * lib/openat.c: Likewise.
35042         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
35043         does not follow symlinks.
35044         (EOPNOTSUPP): Define if not defined.
35045         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
35046         is defined to 0.
35047         (lchown): New decl.
35048         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
35049         Do not check for lchown decl.
35050         Set REPLACE_LCHOWN.
35051         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
35052         REPLACE_LCHOWN.
35053         * modules/chown: Make it clear it follows symlinks.
35054         * modules/lchown: Make it clear it doesn't follow symlinks.
35055         (Files): Remove lib/lchown.h
35056         (Depends-on): Add unistd.
35057         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
35058         (Include): Include <unistd.h>, not "lchown.h".
35059         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
35060         REPLACE_LCHOWN.
35061
35062 2007-06-15  Jim Meyering  <jim@meyering.net>
35063
35064         Change license (GPL to LGPL) of fsusage and dependents.
35065         * modules/fsusage (License): Change to LGPL.
35066         * modules/full-read (License): Likewise.
35067         * modules/full-write (License): Likewise.
35068         * modules/safe-read (License): Likewise.
35069         * modules/safe-write (License): Likewise.
35070
35071 2007-06-14  Ben Pfaff  <blp@gnu.org>
35072
35073         Missing part of allocsa -> malloca transition.
35074         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
35075         gl_MALLOCA.
35076
35077 2007-06-12  Bruno Haible  <bruno@clisp.org>
35078
35079         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
35080         to ia64, x86_64, i386.
35081         Reported by Eric Blake.
35082
35083 2007-06-12  Bruno Haible  <bruno@clisp.org>
35084
35085         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
35086         cross-compiling to x86_64.
35087
35088 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
35089
35090         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
35091         glitch reported by Ralf Wildenhues in
35092         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
35093
35094         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
35095         Vin Shelton.
35096
35097 2007-06-11  Bruno Haible  <bruno@clisp.org>
35098
35099         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
35100         replacement string.
35101         Reported by Eric Blake.
35102
35103 2007-06-10  Bruno Haible  <bruno@clisp.org>
35104
35105         Prepare vasnprintf code for use with Unicode strings.
35106         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
35107         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
35108         TYPE_U32_STRING.
35109         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
35110         a_u32_string variants.
35111         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
35112         * lib/printf-args.c: Don't include config.h and the specification
35113         header if PRINTF_FETCHARGS is already defined.
35114         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
35115         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
35116         TYPE_U16_STRING, TYPE_U32_STRING.
35117         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
35118         u16_directive, u16_directives, u32_directive, u32_directives): New
35119         types.
35120         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
35121         New declarations.
35122         * lib/printf-parse.c: Don't include config.h and the specification
35123         header if PRINTF_PARSE is already defined. Eliminate the set of
35124         parameters for WIDE_CHAR_VERSION; the user of this file must provide
35125         them now. Include c-ctype.h.
35126         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
35127         directive and CHAR_T_ONLY_ASCII.
35128         * lib/vasnprintf.c: Don't include config.h and the specification header
35129         if VASNPRINTF is already defined.
35130         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
35131         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
35132         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
35133         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
35134         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
35135         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
35136         code accordingly.
35137         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
35138         pad_ourselves also in this case, with the 'c' and 's' directives, and
35139         with a different notion of "width".
35140         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
35141
35142 2007-06-10  Bruno Haible  <bruno@clisp.org>
35143
35144         * modules/unistr/u32-mbsnlen: New file.
35145         * lib/unistr/u32-mbsnlen.c: New file.
35146
35147         * modules/unistr/u16-mbsnlen: New file.
35148         * lib/unistr/u16-mbsnlen.c: New file.
35149
35150         * modules/unistr/u8-mbsnlen: New file.
35151         * lib/unistr/u8-mbsnlen.c: New file.
35152
35153         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
35154         declarations.
35155
35156 2007-06-10  Bruno Haible  <bruno@clisp.org>
35157
35158         * lib/string_.h (mbsnlen): New declaration.
35159         * lib/mbsnlen.c: New file.
35160         * m4/mbsnlen.m4: New file.
35161         * modules/mbsnlen: New file.
35162         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
35163         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
35164         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
35165
35166 2007-06-10  Bruno Haible  <bruno@clisp.org>
35167
35168         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
35169
35170 2007-06-10  Bruno Haible  <bruno@clisp.org>
35171
35172         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
35173         * lib/mbuiter.h: Likewise.
35174
35175 2007-06-10  Bruno Haible  <bruno@clisp.org>
35176
35177         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
35178         declaration.
35179
35180 2007-06-10  Karl Berry  <karl@gnu.org>
35181
35182         * config/srclist.txt: remove gettext entries, Bruno prefers
35183         to update individually.
35184
35185 2007-06-10  Bruno Haible  <bruno@clisp.org>
35186
35187         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
35188         'maxlen'. Ensure only length + width bytes are allocated, not
35189         length + 1 + width.
35190
35191 2007-06-09  Bruno Haible  <bruno@clisp.org>
35192
35193         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
35194         (CHAR_T): Remove macro.
35195         (VASNPRINTF): Update.
35196
35197 2007-06-09  Bruno Haible  <bruno@clisp.org>
35198
35199         * MODULES.html.sh (Unicode string functions): Add the new modules.
35200
35201         * modules/uniconv/u32-conv-to-enc: New file.
35202         * lib/uniconv/u32-conv-to-enc.c: New file.
35203         * modules/uniconv/u32-conv-to-enc-tests: New file.
35204         * tests/uniconv/test-u32-conv-to-enc.c: New file.
35205
35206         * modules/uniconv/u16-conv-to-enc: New file.
35207         * lib/uniconv/u16-conv-to-enc.c: New file.
35208         * lib/uniconv/u-conv-to-enc.h: New file.
35209         * modules/uniconv/u16-conv-to-enc-tests: New file.
35210         * tests/uniconv/test-u16-conv-to-enc.c: New file.
35211
35212         * modules/uniconv/u8-conv-to-enc: New file.
35213         * lib/uniconv/u8-conv-to-enc.c: New file.
35214         * modules/uniconv/u8-conv-to-enc-tests: New file.
35215         * tests/uniconv/test-u8-conv-to-enc.c: New file.
35216
35217         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
35218         u32_conv_to_encoding): New declarations.
35219
35220 2007-06-09  Bruno Haible  <bruno@clisp.org>
35221
35222         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
35223
35224 2007-06-09  Bruno Haible  <bruno@clisp.org>
35225
35226         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
35227         * modules/malloca: Renamed from modules/allocsa, updated.
35228         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
35229         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
35230         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
35231         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
35232         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
35233         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
35234         * modules/xmalloca: Renamed from modules/xallocsa, updated.
35235         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
35236         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
35237         * modules/c-strcasestr (Depends-on): Update.
35238         * lib/c-strcasestr.c: Update.
35239         * modules/c-strstr (Depends-on): Update.
35240         * lib/c-strstr.c: Update.
35241         * modules/canonicalize-lgpl (Depends-on): Update.
35242         * lib/canonicalize-lgpl.c: Update.
35243         * modules/clean-temp (Depends-on): Update.
35244         * lib/clean-temp.c: Update.
35245         * modules/csharpcomp (Depends-on): Update.
35246         * lib/csharpcomp.c: Update.
35247         * modules/csharpexec (Depends-on): Update.
35248         * lib/csharpexec.c: Update.
35249         * modules/javacomp (Depends-on): Update.
35250         * lib/javacomp.c: Update.
35251         * modules/javaexec (Depends-on): Update.
35252         * lib/javaexec.c: Update.
35253         * modules/mbscasestr (Depends-on): Update.
35254         * lib/mbscasestr.c: Update.
35255         * modules/mbsstr (Depends-on): Update.
35256         * lib/mbsstr.c: Update.
35257         * modules/setenv (Depends-on): Update.
35258         * lib/setenv.c: Update.
35259         * modules/strcasestr (Depends-on): Update.
35260         * lib/strcasestr.c: Update.
35261         * modules/striconveha (Depends-on): Update.
35262         * lib/striconveha.c: Update.
35263         * modules/relocatable-prog-wrapper (Files): Update.
35264         * lib/relocwrapper.c: Update.
35265         * build-aux/install-reloc: Update.
35266         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
35267
35268 2007-06-08  Bruno Haible  <bruno@clisp.org>
35269
35270         Port to uClibc.
35271         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
35272         * lib/fpurge.c (fpurge): Likewise.
35273         * lib/freading.c (freading): Likewise.
35274         * lib/fseeko.c (rpl_fseeko): Likewise.
35275         * lib/fseterr.c (fseterr): Likewise.
35276         * lib/fwriting.c (fwriting): Likewise.
35277         * tests/test-fflush.c (main): Avoid a failure on uClibc.
35278
35279 2007-06-08  Bruno Haible  <bruno@clisp.org>
35280
35281         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
35282         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
35283         * modules/gettext (Files): Add m4/intlmacosx.m4.
35284
35285 2007-06-07  Bruno Haible  <bruno@clisp.org>
35286
35287         * modules/localename-tests: New file.
35288         * tests/test-localename.c: New file.
35289
35290         New module 'localename'.
35291         * lib/localename.h: New file.
35292         * lib/localename.c: New file, from GNU gettext.
35293         * m4/localename.m4: New file.
35294         * modules/localename: New file.
35295
35296 2007-06-07  Bruno Haible  <bruno@clisp.org>
35297
35298         Work around the lack of <wchar.h> on some builds of uClibc.
35299         * doc/headers/wchar.texi: Update.
35300         * lib/wchar_.h: Include <wchar.h> only if it exists.
35301         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
35302         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
35303         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
35304         doesn't exist.
35305         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
35306         * modules/mbfile (Depends-on): Add wchar.
35307         * modules/mbiter (Depends-on): Likewise.
35308         * modules/mbuiter (Depends-on): Likewise.
35309         Reported by Simon Josefsson.
35310
35311 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
35312
35313         Work around problem reported by Steven M. Schweda in
35314         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
35315         Tru64 5.1B with the Compaq compiler environment installed declares
35316         an 'isblank' function but does not define it in the C library.
35317         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
35318         * lib/regex_internal.h (isblank): Likewise.
35319         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
35320         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
35321
35322 2007-06-05  Bruno Haible  <bruno@clisp.org>
35323
35324         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
35325         ia64.
35326         * modules/printf-safe: New file.
35327         * modules/fprintf-posix (Depends-on): Add printf-safe.
35328         * modules/printf-posix (Depends-on): Likewise.
35329         * modules/snprintf-posix (Depends-on): Likewise.
35330         * modules/sprintf-posix (Depends-on): Likewise.
35331         * modules/vasnprintf-posix (Depends-on): Likewise.
35332         * modules/vasprintf-posix (Depends-on): Likewise.
35333         * modules/vfprintf-posix (Depends-on): Likewise.
35334         * modules/vprintf-posix (Depends-on): Likewise.
35335         * modules/vsnprintf-posix (Depends-on): Likewise.
35336         * modules/vsprintf-posix (Depends-on): Likewise.
35337         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
35338         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
35339         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
35340         "no" on i386, x86_64, ia64.
35341         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
35342         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
35343         on i386, x86_64, ia64.
35344         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
35345         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
35346         on i386, x86_64, ia64.
35347         * tests/test-vasnprintf-posix.c: Include float.h.
35348         (LDBL80_WORDS): New macro.
35349         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
35350         on i386, x86_64, ia64.
35351         * tests/test-vasprintf-posix.c: Include float.h.
35352         (LDBL80_WORDS): New macro.
35353         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
35354         on i386, x86_64, ia64.
35355         * tests/test-snprintf-posix.c: Include float.h.
35356         * tests/test-sprintf-posix.c: Likewise.
35357         * tests/test-vsnprintf-posix.c: Likewise.
35358         * tests/test-vsprintf-posix.c: Likewise.
35359
35360 2007-06-05  Bruno Haible  <bruno@clisp.org>
35361
35362         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
35363         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
35364         non-IEEE numbers on i386, x86_64, ia64.
35365         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
35366         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
35367         * tests/test-isnanl.h: Include float.h.
35368         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
35369
35370 2007-06-05  Bruno Haible  <bruno@clisp.org>
35371
35372         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
35373         also the %a / %A. Handle the %a / %A code before this extra handling.
35374
35375 2007-06-05  Bruno Haible  <bruno@clisp.org>
35376
35377         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
35378         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
35379
35380 2007-06-05  Bruno Haible  <bruno@clisp.org>
35381
35382         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
35383         typo in variable name.
35384
35385 2007-06-05  Eric Blake  <ebb9@byu.net>
35386
35387         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
35388         Reported by Simon Josefsson.
35389
35390 2007-06-04  Bruno Haible  <bruno@clisp.org>
35391
35392         Avoid test failures on some PowerPC platforms.
35393         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
35394         Define differently for PowerPC.
35395         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
35396         Reported by Gary V. Vaughan <gary@gnu.org>.
35397
35398 2007-06-02  Bruno Haible  <bruno@clisp.org>
35399
35400         Fix test-stdint failure on FreeBSD/ia64.
35401         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
35402         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
35403         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
35404         * doc/headers/stdint.texi: Update.
35405
35406 2007-06-01  Bruno Haible  <bruno@clisp.org>
35407
35408         * tests/test-binary-io.c (main): Pass a third argument to open().
35409         Reported by Gary V. Vaughan <gary@gnu.org>.
35410
35411 2007-06-01  Bruno Haible  <bruno@clisp.org>
35412
35413         * doc/functions/frexpl.texi: Update for mingw.
35414
35415 2007-06-01  Bruno Haible  <bruno@clisp.org>
35416
35417         * tests/test-lseek.c (main): Disable test of errno for invalid third
35418         argument.
35419         * doc/functions/lseek.texi: Update.
35420         Reported by Gary V. Vaughan <gary@gnu.org>.
35421
35422 2007-05-28  Bruno Haible  <bruno@clisp.org>
35423
35424         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
35425
35426 2007-05-31  Eric Blake  <ebb9@byu.net>
35427
35428         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
35429         cross compiling.
35430
35431 2007-05-30  Eric Blake  <ebb9@byu.net>
35432         and Bruno Haible  <bruno@clisp.org>
35433
35434         Work around mingw test failures exposed by m4-1.4.9b.
35435         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
35436         * tests/test-unistd.c: Disable uid_t and git_t tests for the
35437         moment.
35438
35439 2007-05-30  Bruno Haible  <bruno@clisp.org>
35440
35441         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
35442         assuming that they are closed. Needed on HP-UX 11.
35443
35444 2007-05-29  Bruno Haible  <bruno@clisp.org>
35445
35446         Fix a problem with #include_next.
35447         * lib/dirent_.h: Split the double-inclusion guard.
35448         * lib/fcntl_.h: Likewise.
35449         * lib/float_.h: Likewise.
35450         * lib/iconv_.h: Likewise.
35451         * lib/inttypes_.h: Likewise.
35452         * lib/locale_.h: Likewise.
35453         * lib/math_.h: Likewise.
35454         * lib/netinet_in_.h: Likewise.
35455         * lib/search_.h: Likewise.
35456         * lib/signal_.h: Likewise.
35457         * lib/stdint_.h: Likewise.
35458         * lib/stdio_.h: Likewise.
35459         * lib/stdlib_.h: Likewise.
35460         * lib/string_.h: Likewise.
35461         * lib/sys_select_.h: Likewise.
35462         * lib/sys_socket_.h: Likewise.
35463         * lib/sys_stat_.h: Likewise.
35464         * lib/sys_time_.h: Likewise.
35465         * lib/sysexits_.h: Likewise.
35466         * lib/time_.h: Likewise.
35467         * lib/unistd_.h: Likewise.
35468         * lib/wchar_.h: Likewise.
35469         * lib/wctype_.h: Likewise.
35470
35471 2007-05-29  Bruno Haible  <bruno@clisp.org>
35472
35473         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
35474         for the moment.
35475
35476 2007-05-29  Bruno Haible  <bruno@clisp.org>
35477
35478         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
35479         invocation.
35480         Reported by Eric Blake.
35481
35482 2007-05-29  Bruno Haible  <bruno@clisp.org>
35483
35484         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
35485         compiling case.
35486
35487 2007-05-29  Eric Blake  <ebb9@byu.net>
35488             Bruno Haible  <bruno@clisp.org>
35489
35490         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
35491         cross compiles.
35492
35493 2007-05-28  Eric Blake  <ebb9@byu.net>
35494
35495         * modules/closein-tests (test_closein_LDADD): Support test on
35496         cygwin with libtool.
35497
35498 2007-05-28  Bruno Haible  <bruno@clisp.org>
35499
35500         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
35501         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
35502         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
35503         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
35504         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
35505         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
35506         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
35507         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
35508         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
35509
35510 2007-05-28  Eric Blake  <ebb9@byu.net>
35511
35512         Unconditionally include <config.h> in unit tests.
35513         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
35514         * tests/test-allocsa.c, tests/test-arcfour.c,
35515         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
35516         tests/test-array_list.c, tests/test-array_oset.c,
35517         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
35518         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
35519         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
35520         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
35521         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
35522         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
35523         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
35524         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
35525         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
35526         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
35527         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
35528         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
35529         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
35530         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
35531         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
35532         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
35533         test-md5.c, test-memmem.c, test-printf-posix.c,
35534         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
35535         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
35536         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
35537         test-strcasestr.c, test-striconv.c, test-striconveh.c,
35538         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
35539         test-vasnprintf-posix2.c, test-vasnprintf.c,
35540         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
35541         test-vfprintf-posix.c, test-vprintf-posix.c,
35542         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
35543         test-xvasprintf.c: Likewise.
35544
35545 2007-05-28  Bruno Haible  <bruno@clisp.org>
35546
35547         * gnulib-tool (func_import): Remember the --with-tests command-line
35548         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
35549         Reported by Eric Blake.
35550
35551 2007-05-28  Bruno Haible  <bruno@clisp.org>
35552
35553         * modules/ftell-tests: New file.
35554         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
35555         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
35556
35557         * lib/ftell.c: New file.
35558         * modules/ftell: New file.
35559         * m4/ftell.m4: New file.
35560         * doc/functions/ftell.texi: Update.
35561         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
35562         REPLACE_FTELL.
35563         * lib/stdio_.h (rpl_ftell): New declaration.
35564         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
35565         REPLACE_FTELL.
35566
35567 2007-05-28  Eric Blake  <ebb9@byu.net>
35568
35569         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
35570
35571 2007-05-28  Bruno Haible  <bruno@clisp.org>
35572
35573         * modules/fseek-tests: New file.
35574         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
35575         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
35576
35577         * lib/fseek.c: New file.
35578         * modules/fseek: New file.
35579         * m4/fseek.m4: New file.
35580         * doc/functions/fseek.texi: Update.
35581         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
35582         REPLACE_FSEEK.
35583         * lib/stdio_.h (rpl_fseek): New declaration.
35584         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
35585         REPLACE_FSEEK.
35586
35587 2007-05-28  Bruno Haible  <bruno@clisp.org>
35588
35589         * lib/stdio_.h (fflush): More comments.
35590
35591 2007-05-28  Bruno Haible  <bruno@clisp.org>
35592
35593         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
35594         runtime test.
35595
35596 2007-05-28  Eric Blake  <ebb9@byu.net>
35597
35598         Improve lseek module.
35599         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
35600         * lib/unistd_.h (lseek): Scale back link warning message.
35601         * tests/test-lseek.c: Beef up test.
35602         * tests/test-lseek.sh: Exercise more facets of lseek.
35603         Reported by Bruno Haible.
35604
35605 2007-05-28  Bruno Haible  <bruno@clisp.org>
35606
35607         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
35608         to define.
35609
35610 2007-05-27  Bruno Haible  <bruno@clisp.org>
35611
35612         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
35613
35614 2007-05-27  Bruno Haible  <bruno@clisp.org>
35615
35616         * modules/openmp: New file.
35617         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
35618         Noah Misch.
35619
35620 2007-05-26  Bruno Haible  <bruno@clisp.org>
35621
35622         * modules/chdir-long (Depends-on): Add fchdir.
35623         * modules/chdir-safer (Depends-on): Likewise.
35624         * modules/fts (Depends-on): Likewise.
35625         * modules/fts-lgpl (Depends-on): Likewise.
35626         * modules/openat (Depends-on): Likewise.
35627         * modules/savewd (Depends-on): Likewise.
35628
35629 2007-05-24  Eric Blake  <ebb9@byu.net>
35630
35631         Fix lseek on mingw.
35632         * modules/lseek: New module.
35633         * m4/lseek.m4: New file.
35634         * lib/lseek.c: New file.
35635         * modules/lseek-tests: New file.
35636         * tests/test-lseek.c: New file.
35637         * tests/test-lseek.sh: New file.
35638         * MODULES.html.sh: Document lseek module.
35639         * modules/fflush (Depends-on): Add lseek, fseeko.
35640         * modules/fseeko (Depends-on): Likewise.
35641         * modules/ftello (Depends-on): Likewise.
35642         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
35643         broken.
35644         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
35645         broken.
35646         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
35647         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
35648         * lib/ftello.c (rpl_ftello): Likewise.
35649         * tests/test-fseeko.c (main): Test this.
35650         * tests/test-fseeko.sh: Likewise.
35651         * tests/test-ftello.c (main): Likewise.
35652         * tests/test-ftello.sh: Likewise.
35653         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
35654         implies replacing fseek.
35655         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
35656         HAVE_FTELLO.
35657         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
35658         * modules/unistd (Makefile.am): Likewise.
35659         * lib/unistd_.h (lseek): Declare a replacement.
35660         * doc/functions/lseek.texi (lseek): Document this fix.
35661         * doc/functions/fseek.texi (fseek): Likewise.
35662         * doc/functions/ftell.texi (ftell): Likewise.
35663
35664 2007-05-24  Bruno Haible  <bruno@clisp.org>
35665
35666         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
35667         in the printed representation of a NaN.
35668         * tests/test-vasprintf-posix.c (test_function): Likewise.
35669         * tests/test-snprintf-posix.h (test_function): Likewise.
35670         * tests/test-sprintf-posix.h (test_function): Likewise.
35671         Reported by Eric Blake.
35672
35673 2007-05-23  Eric Blake  <ebb9@byu.net>
35674
35675         Fix fseeko/ftello on cygwin 1.5.24.
35676         * doc/functions/fseeko.texi (fseeko): Document the fix.
35677         * doc/functions/ftello.texi (ftello): Document the fix.
35678         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
35679         * doc/functions/stdout.text (stdout): New file.
35680         * doc/functions/stderr.text (stderr): New file.
35681         * doc/gnulib.texi (Function Substitutes): Use new files.
35682         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
35683         prior to 1.7.0.
35684         * tests/test-ftello.c (main): Likewise for ftello.
35685         * tests/test-fseeko.sh: New file.
35686         * tests/test-ftello.sh: New file.
35687         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
35688         with seekable stdin.
35689         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
35690         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
35691         (gl_REPLACE_FSEEKO): New macro.
35692         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
35693         * modules/fseeko (Files): Distribute fseeko.c.
35694         * modules/ftello (Files): Distribute ftello.c.
35695         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
35696         mode.
35697         * lib/ftello.c (rpl_ftello): New file.
35698         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
35699         fseeko, ftello.
35700         (gl_STDIN_LARGE_OFFSET): New macro.
35701         * modules/stdio (Makefile.am): Perform the replacement.
35702         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
35703
35704 2007-05-23  Bruno Haible  <bruno@clisp.org>
35705
35706         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
35707         GNULIB_POSIXCHECK is defined.
35708
35709 2007-05-21  Bruno Haible  <bruno@clisp.org>
35710
35711         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
35712         Check also the output for NaN arguments. When cross-compiling, guess
35713         no on IRIX.
35714         * lib/vasnprintf.c: Update comments.
35715         * tests/test-vasnprintf-posix.c (strisnan): New function.
35716         (test_function): Use it.
35717         * tests/test-vasprintf-posix.c (strisnan): New function.
35718         (test_function): Use it.
35719         * tests/test-snprintf-posix.h (strisnan): New function.
35720         (test_function): Use it.
35721         * tests/test-sprintf-posix.h (strisnan): New function.
35722         (test_function): Use it.
35723         Reported by Eric Blake.
35724
35725 2007-05-20  Bruno Haible  <bruno@clisp.org>
35726
35727         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
35728         numbers that fails on BeOS.
35729         * doc/functions/frexpl.texi: Update.
35730
35731 2007-05-20  Jim Meyering  <jim@meyering.net>
35732
35733         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
35734         forced upon us by glibc-2.6.
35735
35736 2007-05-20  Bruno Haible  <bruno@clisp.org>
35737
35738         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
35739         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
35740         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
35741         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
35742         NEED_PRINTF_INFINITE.
35743         (is_infinitel): New function.
35744         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
35745         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
35746         gl_PREREQ_VASNPRINTF_INFINITE.
35747         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
35748         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35749         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
35750         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
35751         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
35752         gl_PREREQ_VASNPRINTF_INFINITE.
35753         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35754         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35755         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35756         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35757         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35758         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35759         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35760         * doc/functions/fprintf.texi: Update.
35761         * doc/functions/printf.texi: Update.
35762         * doc/functions/snprintf.texi: Update.
35763         * doc/functions/sprintf.texi: Update.
35764         * doc/functions/vfprintf.texi: Update.
35765         * doc/functions/vprintf.texi: Update.
35766         * doc/functions/vsnprintf.texi: Update.
35767         * doc/functions/vsprintf.texi: Update.
35768
35769 2007-05-20  Bruno Haible  <bruno@clisp.org>
35770
35771         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
35772         was not found in libc.
35773         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
35774
35775 2007-05-20  Bruno Haible  <bruno@clisp.org>
35776
35777         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
35778         printed as "-nan" instead of "nan".
35779         * tests/test-vasprintf-posix.c (test_function): Likewise.
35780         * tests/test-snprintf-posix.h (test_function): Likewise.
35781         * tests/test-sprintf-posix.h (test_function): Likewise.
35782         Needed for HP-UX 11.
35783
35784 2007-05-20  Jim Meyering  <jim@meyering.net>
35785
35786         Fix buggy test for the fchownat-deref bug.
35787         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
35788         symlink required for the run-test.  Without it, this test would
35789         always declare that fchownat doesn't work, and client code would
35790         unnecessarily use the replacement function with fixed libc.
35791         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
35792         Reported by Greg Schafer.
35793
35794 2007-05-19  Bruno Haible  <bruno@clisp.org>
35795
35796         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
35797         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
35798         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
35799         Needed for IRIX 6.5 and Solaris 2.5.1.
35800
35801 2007-05-19  Bruno Haible  <bruno@clisp.org>
35802
35803         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
35804         (test_function): Skip tests involving -0.0 on platforms where
35805         -0.0 = 0.0.
35806         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
35807         (test_function): Skip tests involving -0.0 on platforms where
35808         -0.0 = 0.0.
35809         * tests/test-snprintf-posix.h (have_minus_zero): New function.
35810         (test_function): Skip tests involving -0.0 on platforms where
35811         -0.0 = 0.0.
35812         * tests/test-sprintf-posix.h (have_minus_zero): New function.
35813         (test_function): Skip tests involving -0.0 on platforms where
35814         -0.0 = 0.0.
35815         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
35816         tests.
35817         * tests/test-printf-posix.h (test_function): Likewise.
35818         * tests/test-printf-posix.output: Remove all -0.0 related results.
35819         Needed for IRIX 6.5.
35820
35821 2007-05-19  Bruno Haible  <bruno@clisp.org>
35822
35823         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
35824         printed as "nan0x7fffffff" instead of "nan".
35825         * tests/test-vasprintf-posix.c (test_function): Likewise.
35826         * tests/test-snprintf-posix.h (test_function): Likewise.
35827         * tests/test-sprintf-posix.h (test_function): Likewise.
35828         * tests/test-fprintf-posix.h (NaN): Remove macro.
35829         (test_function): Remove all NaN related tests.
35830         * tests/test-printf-posix.h (NaN): Remove macro.
35831         (test_function): Remove all NaN related tests.
35832         * tests/test-printf-posix.output: Remove all NaN related results.
35833         Needed for IRIX 6.5.
35834
35835 2007-05-19  Bruno Haible  <bruno@clisp.org>
35836
35837         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
35838         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
35839
35840 2007-05-19  Bruno Haible  <bruno@clisp.org>
35841
35842         * lib/float_.h: New file.
35843         * m4/float_h.m4: New file.
35844         * modules/float: New file.
35845         * modules/isnanl (Dependencies): Add float.
35846         * modules/isnanl-nolibm (Dependencies): Likewise.
35847         * modules/mathl (Dependencies): Likewise.
35848         * modules/printf-frexpl (Dependencies): Likewise.
35849         * modules/signbit (Dependencies): Likewise.
35850         * modules/vasnprintf (Dependencies): Likewise.
35851         * doc/headers/float.texi: Update.
35852
35853 2007-05-19  Jim Meyering  <jim@meyering.net>
35854
35855         * lib/utimens.c (gl_futimens): Rename from futimens,
35856         now that glibc-2.6 declares futimens.
35857         * lib/utimens.h: Likewise.
35858
35859 2007-05-19  Bruno Haible  <bruno@clisp.org>
35860
35861         Avoid test failures on mingw.
35862         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
35863         * tests/test-printf-posix.sh: Likewise.
35864         * tests/test-vfprintf-posix.sh: Likewise.
35865         * tests/test-vprintf-posix.sh: Likewise.
35866
35867 2007-05-19  Bruno Haible  <bruno@clisp.org>
35868
35869         Fix *printf result for NaN, Inf, -0.0 on mingw.
35870         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
35871         * lib/vasnprintf.c: Include math.h and isnan.h.
35872         (is_infinite_or_zero): New function.
35873         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
35874         values in the %f, %F, %e, %E, %g, %G directives.
35875         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
35876         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35877         gl_PRINTF_INFINITE and test its result. Invoke
35878         gl_PREREQ_VASNPRINTF_INFINITE.
35879         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35880         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35881         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35882         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35883         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35884         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35885         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35886         * doc/functions/fprintf.texi: Update.
35887         * doc/functions/printf.texi: Update.
35888         * doc/functions/snprintf.texi: Update.
35889         * doc/functions/sprintf.texi: Update.
35890         * doc/functions/vfprintf.texi: Update.
35891         * doc/functions/vprintf.texi: Update.
35892         * doc/functions/vsnprintf.texi: Update.
35893         * doc/functions/vsprintf.texi: Update.
35894
35895 2007-05-19  Bruno Haible  <bruno@clisp.org>
35896
35897         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
35898         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
35899         Instead of multiplying with 10^k, set extra_zeroes to k.
35900         (scale10_round_long_double): Remove function.
35901
35902 2007-05-18  Bruno Haible  <bruno@clisp.org>
35903
35904         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
35905         introduced on 2007-05-06.
35906
35907 2007-05-18  Bruno Haible  <bruno@clisp.org>
35908
35909         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
35910         %g directives.
35911         * tests/test-vasprintf-posix.c (test_function): Likewise.
35912         * tests/test-snprintf-posix.h (test_function): Likewise.
35913         * tests/test-sprintf-posix.h (test_function): Likewise.
35914
35915 2007-05-18  Bruno Haible  <bruno@clisp.org>
35916
35917         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
35918         (strmatch): New function.
35919         (test_function): Test the %f directive on numbers of various exponents.
35920         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
35921         (strmatch): New function.
35922         (test_function): Test the %f directive on numbers of various exponents.
35923         * tests/test-snprintf-posix.h (strmatch): New function.
35924         (test_function): Test the %f directive on numbers of various exponents.
35925         * tests/test-sprintf-posix.h (strmatch): New function.
35926         (test_function): Test the %f directive on numbers of various exponents.
35927         * tests/test-snprintf-posix.c (SIZEOF): New macro.
35928         * tests/test-sprintf-posix.c (SIZEOF): New macro.
35929         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
35930         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
35931
35932 2007-05-18  Bruno Haible  <bruno@clisp.org>
35933
35934         Add support for 'long double' number output.
35935         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
35936         * lib/vasnprintf.c: Include math.h and float+.h.
35937         (mp_limb_t): New type.
35938         (GMP_LIMB_BITS): New macro.
35939         (mp_twolimb_t): New type.
35940         (GMP_TWOLIMB_BITS): New macro.
35941         (mpn_t): New type.
35942         (multiply, divide, convert_to_decimal, decode_long_double,
35943         scale10_round_long_double, scale10_round_decimal_long_double,
35944         floorlog10l): New functions.
35945         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
35946         for the %f, %F, %e, %E, %g, %G directives.
35947         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
35948         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35949         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
35950         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
35951         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35952         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35953         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35954         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35955         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35956         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35957         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35958         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
35959         * modules/snprintf-posix (Depends-on): Likewise.
35960         * modules/sprintf-posix (Depends-on): Likewise.
35961         * modules/vasnprintf-posix (Depends-on): Likewise.
35962         * modules/vasprintf-posix (Depends-on): Likewise.
35963         * modules/vfprintf-posix (Depends-on): Likewise.
35964         * modules/vsnprintf-posix (Depends-on): Likewise.
35965         * modules/vsprintf-posix (Depends-on): Likewise.
35966         * modules/vasnprintf (Files): Add lib/float+.h.
35967         * doc/functions/fprintf.texi: Update.
35968         * doc/functions/printf.texi: Update.
35969         * doc/functions/snprintf.texi: Update.
35970         * doc/functions/sprintf.texi: Update.
35971         * doc/functions/vfprintf.texi: Update.
35972         * doc/functions/vprintf.texi: Update.
35973         * doc/functions/vsnprintf.texi: Update.
35974         * doc/functions/vsprintf.texi: Update.
35975
35976 2007-05-18  Bruno Haible  <bruno@clisp.org>
35977
35978         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
35979
35980 2007-05-18  Bruno Haible  <bruno@clisp.org>
35981
35982         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
35983         for printing 64-bit integers. Needed for mingw.
35984
35985 2007-05-18  Bruno Haible  <bruno@clisp.org>
35986
35987         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
35988         gl_FUNC_FREXPL_WORKS.
35989         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
35990
35991 2007-05-18  Bruno Haible  <bruno@clisp.org>
35992
35993         * modules/frexpl-nolibm-tests: New file.
35994
35995         * modules/frexpl-nolibm: New file.
35996         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
35997
35998 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
35999
36000         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
36001         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
36002         GCC 4.2, which otherwise issues a lot of warnings.
36003         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
36004         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
36005         Likewise.
36006         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
36007         * modules/iconv_open (iconv.h): Likewise.
36008         * modules/locale (locale.h): Likewise.
36009         * modules/netinet_in (netinet/in.h): Likewise.
36010         * modules/sys_select (sys_select.h): Likewise.
36011         * modules/sys_socket (sys/socket.h): Likewise.
36012         * modules/sys_stat (sys/stat.h): Likewise.
36013         * modules/sysexits (sysexits.h): Likewise.
36014         * modules/unistd (unistd.h): Likewise.
36015
36016 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36017
36018         * modules/closein-tests (Makefile.am): Distribute
36019         `test-closein.sh'.
36020
36021 2007-05-17  Bruno Haible  <bruno@clisp.org>
36022
36023         * tests/test-printf-posix.output: Renamed from
36024         tests/test-fprintf-posix.out.
36025         * modules/fprintf-posix-tests: Update.
36026         * modules/printf-posix-tests: Update.
36027         * modules/vfprintf-posix-tests: Update.
36028         * modules/vprintf-posix-tests: Update.
36029         * tests/test-fprintf-posix.sh: Update.
36030         * tests/test-printf-posix.sh: Update.
36031         * tests/test-vfprintf-posix.sh: Update.
36032         * tests/test-vprintf-posix.sh: Update.
36033         Reported by Ralf Wildenhues.
36034
36035 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
36036
36037         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
36038         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
36039         GCC 4.2, which otherwise issues a lot of warnings.
36040         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
36041         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
36042         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
36043         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
36044         it should no longer be needed.
36045         * lib/string_.h: Likewise.
36046         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
36047         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
36048         * modules/inttypes (inttypes.h): Likewise.
36049         * modules/math (math.h): Likewise.
36050         * modules/search (search.h): Likewise.
36051         * modules/signal (signal.h): Likewise.
36052         * modules/stdint (stdint.h): Likewise.
36053         * modules/stdio (stdio.h): Likewise.
36054         * modules/stdlib (stdlib.h): Likewise.
36055         * modules/string (string.h): Likewise.
36056         * modules/sys_time (sys/time.h): Likewise.
36057         * modules/time (time.h): Likewise.
36058         * modules/wchar (wchar.h): Likewise.
36059         * modules/wctype (wtype.h): Likewise.
36060
36061 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
36062
36063         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
36064
36065 2007-05-13  Bruno Haible  <bruno@clisp.org>
36066
36067         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
36068         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
36069         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
36070         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
36071         (gl_PREREQ_STRTOK_R): Don't require it here.
36072
36073 2007-05-13  Bruno Haible  <bruno@clisp.org>
36074
36075         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
36076         when used in C++ mode.
36077
36078 2007-05-12  Bruno Haible  <bruno@clisp.org>
36079
36080         * lib/linebuffer.h: Tweak doc.
36081         * lib/linebuffer.c: Likewise.
36082
36083 2007-05-12  James Youngman  <jay@gnu.org>
36084
36085         * lib/linebuffer.c (readlinebuffer_delim): New function,
36086         like readlinebuffer, but use a caller-specified delimiter.
36087         (readlinebuffer): Just call readlinebuffer_delim with '\n'
36088         as the delimiter.
36089         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
36090
36091 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36092
36093         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
36094         * modules/openat (Files): Remove openat-die.c.
36095         (Depends-on): Add openat-die.
36096         * modules/openat-die: New module.
36097
36098 2007-05-06  Bruno Haible  <bruno@clisp.org>
36099
36100         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
36101         Update with info about Cygwin.
36102         * doc/functions/fprintf.texi: Update.
36103         * doc/functions/printf.texi: Update.
36104         * doc/functions/snprintf.texi: Update.
36105         * doc/functions/sprintf.texi: Update.
36106         * doc/functions/vfprintf.texi: Update.
36107         * doc/functions/vprintf.texi: Update.
36108         * doc/functions/vsnprintf.texi: Update.
36109         * doc/functions/vsprintf.texi: Update.
36110         Reported by Eric Blake.
36111
36112 2007-05-06  Bruno Haible  <bruno@clisp.org>
36113
36114         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
36115         padding ourselves for the floating-point directives.
36116         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
36117         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
36118         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
36119         gl_PRINTF_FLAG_ZERO and test its result. Invoke
36120         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
36121         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36122         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
36123         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36124         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36125         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36126         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36127         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36128         * tests/test-snprintf-posix.h (test_function): Also check the width
36129         and some flags in the %f directive.
36130         * tests/test-sprintf-posix.h (test_function): Likewise.
36131         * tests/test-vasnprintf-posix.c (test_function): Likewise.
36132         * tests/test-vasprintf-posix.c (test_function): Likewise.
36133         * doc/functions/fprintf.texi: Update.
36134         * doc/functions/printf.texi: Update.
36135         * doc/functions/snprintf.texi: Update.
36136         * doc/functions/sprintf.texi: Update.
36137         * doc/functions/vfprintf.texi: Update.
36138         * doc/functions/vprintf.texi: Update.
36139         * doc/functions/vsnprintf.texi: Update.
36140         * doc/functions/vsprintf.texi: Update.
36141
36142 2007-05-06  Bruno Haible  <bruno@clisp.org>
36143
36144         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
36145         pass the ' flag character to sprintf or snprintf.
36146         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
36147         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
36148         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
36149         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
36150         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
36151         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36152         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
36153         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36154         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36155         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36156         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36157         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36158         * tests/test-snprintf-posix.h (test_function): Also check the grouping
36159         flag.
36160         * tests/test-sprintf-posix.h (test_function): Likewise.
36161         * tests/test-vasnprintf-posix.c (test_function): Likewise.
36162         * tests/test-vasprintf-posix.c (test_function): Likewise.
36163         * doc/functions/fprintf.texi: Update.
36164         * doc/functions/printf.texi: Update.
36165         * doc/functions/snprintf.texi: Update.
36166         * doc/functions/sprintf.texi: Update.
36167         * doc/functions/vfprintf.texi: Update.
36168         * doc/functions/vprintf.texi: Update.
36169         * doc/functions/vsnprintf.texi: Update.
36170         * doc/functions/vsprintf.texi: Update.
36171
36172 2007-05-01  Bruno Haible  <bruno@clisp.org>
36173
36174         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
36175
36176 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
36177
36178         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
36179         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
36180
36181 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
36182
36183         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
36184         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
36185         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
36186
36187 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
36188
36189         * lib/argp-help.c (struct hol_entry): New member `ord'.
36190         (HOL_ENTRY_PTRCMP): Use ord for comparison
36191         (hol_sort): Initialize ord.
36192
36193 2007-05-01  Bruno Haible  <bruno@clisp.org>
36194
36195         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
36196         Reported by Eric Blake.
36197         * doc/gnulib.texi (Function Substitutes): Update.
36198
36199 2007-05-01  Bruno Haible  <bruno@clisp.org>
36200
36201         * doc/functions.texi: Remove file, now redundant through
36202         doc/functions/*.texi.
36203
36204 2007-05-01  Bruno Haible  <bruno@clisp.org>
36205
36206         * modules/argp (Depends-on): Add sleep.
36207
36208 2007-05-01  Bruno Haible  <bruno@clisp.org>
36209
36210         * modules/sleep-tests: New file.
36211         * tests/test-sleep.c: New file.
36212
36213         * modules/sleep: New file.
36214         * lib/sleep.c: New file.
36215         * m4/sleep.m4: New file.
36216         * lib/unistd_.h (sleep): New declaration.
36217         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
36218         HAVE_SLEEP.
36219         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
36220         * doc/functions/sleep.texi: Document the sleep module.
36221
36222 2007-05-01  Bruno Haible  <bruno@clisp.org>
36223
36224         * lib/sigprocmask.h: Remove file.
36225         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
36226         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
36227         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
36228         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
36229         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
36230         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
36231         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
36232         HAVE_SIGSET_T as a shell variable.
36233         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
36234         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
36235         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
36236         (Depends-on): Add signal. Remove verify.
36237         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
36238         (Include): Mention <signal.h> instead of sigprocmask.h.
36239         * NEWS: Mention the change.
36240         * lib/fatal-signal.c: Don't include sigprocmask.h.
36241
36242 2007-05-01  Bruno Haible  <bruno@clisp.org>
36243
36244         * modules/signal: New file.
36245         * lib/signal_.h: New file.
36246         * m4/signal_h.m4: New file.
36247
36248 2007-05-01  Bruno Haible  <bruno@clisp.org>
36249
36250         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
36251         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
36252         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
36253         HAVE_WCTYPE_CTMP_BUG into wctype.h.
36254
36255 2007-05-01  Bruno Haible  <bruno@clisp.org>
36256
36257         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
36258         configure time.
36259         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
36260         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
36261         * modules/sys_stat (Makefile.am): Substitute their values into
36262         sys/stat.h.
36263
36264 2007-05-01  Bruno Haible  <bruno@clisp.org>
36265
36266         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
36267         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
36268         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
36269
36270 2007-05-01  Bruno Haible  <bruno@clisp.org>
36271
36272         * doc/header/assert.texi: Undo last change: don't mention the gnulib
36273         'assert' module here.
36274
36275 2007-05-01  Bruno Haible  <bruno@clisp.org>
36276
36277         * doc/functions/*.texi: New files.
36278         * doc/functions/google-ranking.txt: New file.
36279         * doc/gnulib.texi (Function Substitutes): New chapter.
36280         (ctime, inet_ntoa): Remove sections.
36281         * doc/ctime.texi: Remove file.
36282         * doc/inet_ntoa.texi: Remove file.
36283         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
36284         dependencies.
36285         (%.info): New rule, specifying a --reference-limit.
36286
36287 2007-05-01  Bruno Haible  <bruno@clisp.org>
36288
36289         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
36290
36291 2007-05-01  Bruno Haible  <bruno@clisp.org>
36292
36293         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
36294         the portability of 'mkdir' to mingw systems.
36295
36296 2007-05-01  Bruno Haible  <bruno@clisp.org>
36297
36298         * doc/headers/google-ranking.txt: New file.
36299
36300 2007-04-30  Eric Blake  <ebb9@byu.net>
36301
36302         Prefer fseeko to fseek.
36303         * modules/getpass (Depends-on): Add fseeko.
36304         * lib/getpass.c (getpass): Use fseeko, not fseek.
36305
36306 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
36307
36308         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
36309         assumes the sorting is stable, while most qsort implementations
36310         are not.  Use argument addresses to ensure they never compare as
36311         equal.
36312
36313         * tests/test-argp-2.sh (usage-indent test): Fix output
36314         (func_compare): Restore diff options
36315         * tests/test-argp.c: Restore #include "progname.h"
36316
36317 2007-04-29  Bruno Haible  <bruno@clisp.org>
36318
36319         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
36320         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
36321         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
36322         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36323         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
36324         (configure.ac): Define CHECK_SNPRINTF_POSIX.
36325         (TESTS, check_PROGRAMS): Add test-snprintf.
36326         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
36327         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
36328         (TESTS, check_PROGRAMS): Add test-vsnprintf.
36329         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
36330         assertions that fail on HP-UX, OSF/1, or IRIX.
36331         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
36332
36333 2007-04-29  Bruno Haible  <bruno@clisp.org>
36334
36335         * MODULES.html.sh (posix_functions): Remove 'contents'.
36336
36337 2007-04-29  Karl Berry  <karl@gnu.org>
36338
36339         * config/srclist.txt (gendocs_template_min): new entry.
36340
36341 2007-04-29  Bruno Haible  <bruno@clisp.org>
36342
36343         Work around fpurge bug on BSD systems.
36344         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
36345         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
36346         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
36347         fpurge to rpl_fpurge if the system already has this function.
36348         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
36349         the case where the system already has this function. Correct invariants
36350         on BSD systems.
36351         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
36352         BSD systems.
36353
36354 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
36355
36356         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
36357         proposed by Sven Verdoolaege.
36358
36359         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
36360         options.
36361         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
36362         (usage and help tests): Update
36363
36364 2007-04-29  Bruno Haible  <bruno@clisp.org>
36365
36366         * tests/test-fflush.c (main): Use a file of size 17, not 10.
36367         Print more information in case of failure. Disable a test on BeOS.
36368
36369 2007-04-29  Bruno Haible  <bruno@clisp.org>
36370
36371         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
36372         This helps debugging on systems on which no gdb is available.
36373
36374 2007-04-29  Bruno Haible  <bruno@clisp.org>
36375
36376         * lib/freading.h: Improve comments.
36377         * lib/fwriting.h: Likewise.
36378         * tests/test-freading.c (main): Don't check freading immediately after
36379         repositioning. Needed for glibc.
36380
36381 2007-04-29  Bruno Haible  <bruno@clisp.org>
36382
36383         * lib/freading.c (freading): Trivial simplification.
36384
36385 2007-04-28  Bruno Haible  <bruno@clisp.org>
36386
36387         * tests/test-fwriting.c (main): Also test the interaction between
36388         fflush and fwriting.
36389         * modules/fwriting-tests (Depends-on): Add fflush.
36390
36391         * tests/test-freading.c (main): Also test the interaction between
36392         fflush and freading.
36393         * modules/freading-tests (Depends-on): Add fflush.
36394
36395 2007-04-28  Bruno Haible  <bruno@clisp.org>
36396
36397         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
36398         fseeko and ftello.
36399         Suggested by Eric Blake.
36400
36401 2007-04-28  Jim Meyering  <jim@meyering.net>
36402
36403         Avoid false-negative in gl_STDINT_H's C99 conformance test.
36404         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
36405         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
36406
36407 2007-04-27  Eric Blake  <ebb9@byu.net>
36408
36409         * doc/headers/assert.texi (assert.h): Document assert module use.
36410
36411 2007-04-27  Bruno Haible  <bruno@clisp.org>
36412
36413         * doc/headers/*.texi: New files.
36414         * doc/gnulib.texi (Header File Substitutes): New chapter.
36415         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
36416         dependencies.
36417         (standards.info ,standards.html, standards.dvi): Update dependencies.
36418         (mostlyclean, clean): New targets.
36419
36420 2007-04-27  Bruno Haible  <bruno@clisp.org>
36421
36422         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
36423         * modules/sysexits (Files, Makefile.am): Update.
36424
36425         * lib/sys_socket_.h: Renamed from lib/socket_.h.
36426         * modules/sys_socket (Files, Makefile.am): Update.
36427
36428         * lib/sys_stat_.h: Renamed from lib/stat_.h.
36429         * modules/sys_stat (Files, Makefile.am): Update.
36430
36431 2007-04-27  Eric Blake  <ebb9@byu.net>
36432
36433         * lib/freading.h: Improve comments.
36434         * lib/fwriting.h: Likewise.
36435         * lib/fflush.c: Likewise.
36436
36437         Fix closein for mingw.
36438         * modules/closein-tests: Add tests for closein.
36439         * tests/test-closein.c: New file.
36440         * tests/test-closein.sh: Likewise.
36441         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
36442         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
36443
36444 2007-04-27  Bruno Haible  <bruno@clisp.org>
36445
36446         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
36447         version is < 6.
36448         * lib/math_.h [__DECC]: Likewise.
36449         * lib/stdio_.h [__DECC]: Likewise.
36450         * lib/stdlib_.h [__DECC]: Likewise.
36451         * lib/string_.h [__DECC]: Likewise.
36452         * lib/time_.h [__DECC]: Likewise.
36453         * lib/wchar_.h [__DECC]: Likewise.
36454         * lib/wctype_.h [__DECC]: Likewise.
36455
36456 2007-04-27  Bruno Haible  <bruno@clisp.org>
36457
36458         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
36459
36460 2007-04-27  Bruno Haible  <bruno@clisp.org>
36461
36462         * lib/fflush.c: Add comments.
36463         * modules/fpurge-tests (Depends-on): Add fflush.
36464         * modules/freadable-tests (Depends-on): Likewise.
36465         * modules/fwritable-tests (Depends-on): Likewise.
36466
36467 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
36468
36469         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
36470         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
36471         Report by Bruno Haible <bruno@clisp.org>.
36472
36473 2007-04-26  Eric Blake  <ebb9@byu.net>
36474
36475         Fix fflush on mingw.
36476         * modules/fflush (Depends-on): Add freading.
36477         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
36478         but unread data.
36479
36480 2007-04-26  Eric Blake  <ebb9@byu.net>
36481         and Bruno Haible  <bruno@clisp.org>
36482
36483         Implement freading and fwriting.
36484         * lib/freading.c: New file.
36485         * lib/freading.h: Likewise.
36486         * m4/freading.m4: Likewise.
36487         * modules/freading: Likewise.
36488         * modules/freading-tests: Likewise.
36489         * tests/test-freading.c: Likewise.
36490         * lib/fwriting.c: New file.
36491         * lib/fwriting.h: Likewise.
36492         * m4/fwriting.m4: Likewise.
36493         * modules/fwriting: Likewise.
36494         * modules/fwriting-tests: Likewise.
36495         * tests/test-fwriting.c: Likewise.
36496         * MODULES.html.sh (File stream based Input/Output): Mention them.
36497
36498 2007-04-26  Bruno Haible  <bruno@clisp.org>
36499
36500         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
36501         'long' when we assume it.
36502         Suggested by Eric Blake.
36503
36504 2007-04-26  Bruno Haible  <bruno@clisp.org>
36505
36506         Ensure fseeko, ftello are declared on glibc systems.
36507         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
36508         * modules/fseeko (configure.ac-early): Likewise.
36509         * modules/ftello (configure.ac-early): Likewise.
36510         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
36511         AC_FUNC_FSEEKO for this.
36512         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
36513         (gl_CHECK_FSEEKO): Remove macro.
36514
36515 2007-04-26  Bruno Haible  <bruno@clisp.org>
36516
36517         * tests/test-fflush.c (main): Also check the ftell result after
36518         fflush and fseek/fseeko.
36519         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
36520         file descriptor position cache in the stream.
36521         * lib/fseeko.c (rpl_fseeko): Likewise.
36522
36523 2007-04-26  Bruno Haible  <bruno@clisp.org>
36524
36525         * modules/fflush-tests (Depends-on): Add fseeko.
36526
36527 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
36528             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36529
36530         * lib/argz_.h: ensure error_t definition is obtained in same
36531         mechanism system argz.h would have.
36532         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
36533         argz facilities are known bad.  Err on the side of caution if
36534         cross-compiling.
36535
36536 2007-04-25  Eric Blake  <ebb9@byu.net>
36537
36538         * lib/fpurge.c (includes): Use stdlib.h for free.
36539         * tests/test-fflush.c (main): Also test fflush-fseeko.
36540
36541 2007-04-25  Bruno Haible  <bruno@clisp.org>
36542
36543         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
36544         * lib/fseeko.c: New file.
36545         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
36546         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
36547         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
36548         gl_FUNC_FSEEKO.
36549         (gl_FUNC_FSEEKO): Invoke it.
36550         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
36551         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
36552         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
36553
36554 2007-04-25  Bruno Haible  <bruno@clisp.org>
36555
36556         * modules/fflush (Depends-on): Add ftello.
36557
36558 2007-04-25  Bruno Haible  <bruno@clisp.org>
36559
36560         * modules/ftello-tests: New file.
36561         * tests/test-ftello.c: New file.
36562
36563         * modules/ftello: New file.
36564         * m4/ftello.m4: New file.
36565         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
36566         HAVE_FTELLO.
36567         * lib/stdio_.h (ftello): New declaration.
36568         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
36569         HAVE_FTELLO.
36570
36571 2007-04-25  Bruno Haible  <bruno@clisp.org>
36572
36573         * modules/fseeko-tests: New file.
36574         * tests/test-fseeko.c: New file.
36575
36576         * modules/fseeko: New file.
36577         * m4/fseeko.m4: New file.
36578         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
36579         HAVE_FSEEKO.
36580         * lib/stdio_.h (fseeko): New declaration.
36581         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
36582         HAVE_FSEEKO.
36583
36584 2007-04-25  Bruno Haible  <bruno@clisp.org>
36585
36586         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
36587
36588 2007-04-25  Bruno Haible  <bruno@clisp.org>
36589
36590         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
36591         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
36592         * tests/test-unistd.c: Likewise.
36593         * tests/test-fcntl.c: Likewise.
36594
36595 2007-04-23  Eric Blake  <ebb9@byu.net>
36596
36597         * lib/fflush.c: Fix missing include.
36598         Reported by Bruno Haible.
36599
36600 2007-04-23  Bruno Haible  <bruno@clisp.org>
36601
36602         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
36603         Reported by Eric Blake.
36604
36605 2007-04-23  Bruno Haible  <bruno@clisp.org>
36606
36607         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
36608
36609 2007-04-23  Bruno Haible  <bruno@clisp.org>
36610
36611         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
36612
36613 2007-04-23  Bruno Haible  <bruno@clisp.org>
36614
36615         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
36616         Needed on HP-UX 11.
36617
36618 2007-04-16  Eric Blake  <ebb9@byu.net>
36619
36620         Make fflush rely on fpurge.
36621         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
36622         open coding all variants.
36623         * modules/fflush (Depends-on): Add fpurge and unistd.
36624         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
36625         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
36626
36627         Fix --with-tests compilation on cygwin.
36628         * modules/argmatch-tests (Makefile.am): List gnulib library first
36629         in LDADD.
36630         * modules/argp-tests (Makefile.am): Likewise.
36631         * modules/array-list-tests (Makefile.am): Likewise.
36632         * modules/array-oset-tests (Makefile.am): Likewise.
36633         * modules/avltree-list-tests (Makefile.am): Likewise.
36634         * modules/avltree-oset-tests (Makefile.am): Likewise.
36635         * modules/avltreehash-list-tests (Makefile.am): Likewise.
36636         * modules/carray-list-tests (Makefile.am): Likewise.
36637         * modules/dirname-tests (Makefile.am): Likewise.
36638         * modules/frexp-tests (Makefile.am): Likewise.
36639         * modules/isnanl-tests (Makefile.am): Likewise.
36640         * modules/linked-list-tests (Makefile.am): Likewise.
36641         * modules/linkedhash-list-tests (Makefile.am): Likewise.
36642         * modules/lock-tests (Makefile.am): Likewise.
36643         * modules/rbtree-list-tests (Makefile.am): Likewise.
36644         * modules/rbtree-oset-tests (Makefile.am): Likewise.
36645         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
36646         * modules/tls-tests (Makefile.am): Likewise.
36647         * modules/tsearch-tests (Makefile.am): Likewise.
36648         * modules/xvasprintf-tests (Makefile.am): Likewise.
36649
36650         Fix fpurge for cygwin.
36651         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
36652         value.
36653         * modules/fpurge-tests (Depends-on): Clean up trash.
36654
36655 2007-04-16  Simon Josefsson  <simon@josefsson.org>
36656
36657         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
36658
36659         * m4/autobuild.m4: Re-indent.
36660
36661 2007-04-13  Bruno Haible  <bruno@clisp.org>
36662
36663         * modules/fpurge-tests: New file.
36664         * tests/test-fpurge.c: New file.
36665
36666         * modules/fpurge: New file.
36667         * lib/fpurge.h: New file.
36668         * lib/fpurge.c: New file.
36669         * m4/fpurge.m4: New file.
36670
36671 2007-04-13  Bruno Haible  <bruno@clisp.org>
36672
36673         * modules/fbufmode-tests: New file.
36674         * tests/test-fbufmode.c: New file.
36675
36676         * modules/fbufmode: New file.
36677         * lib/fbufmode.h: New file.
36678         * lib/fbufmode.c: New file.
36679         * m4/fbufmode.m4: New file.
36680
36681 2007-04-13  Bruno Haible  <bruno@clisp.org>
36682
36683         * modules/fwritable-tests: New file.
36684         * tests/test-fwritable.c: New file.
36685
36686         * modules/fwritable: New file.
36687         * lib/fwritable.h: New file.
36688         * lib/fwritable.c: New file.
36689         * m4/fwritable.m4: New file.
36690
36691 2007-04-13  Bruno Haible  <bruno@clisp.org>
36692
36693         * modules/freadable-tests: New file.
36694         * tests/test-freadable.c: New file.
36695
36696         * modules/freadable: New file.
36697         * lib/freadable.h: New file.
36698         * lib/freadable.c: New file.
36699         * m4/freadable.m4: New file.
36700
36701 2007-04-13  Bruno Haible  <bruno@clisp.org>
36702
36703         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
36704         MOSTLYCLEANFILES.
36705
36706 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
36707
36708         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
36709         gzip bootstrap.conf to avoid dragging in i18n machinery.
36710         (gnulib_tool_option): Use it.
36711
36712 2007-04-13  Bruno Haible  <bruno@clisp.org>
36713
36714         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
36715         %F directives.
36716         * tests/test-vasprintf-posix.c (test_function): Likewise.
36717         * tests/test-snprintf-posix.h (test_function): Likewise.
36718         * tests/test-sprintf-posix.h (test_function): Likewise.
36719         * tests/test-fprintf-posix.h (test_function): Likewise.
36720         * tests/test-printf-posix.h (test_function): Likewise.
36721         * tests/test-fprintf-posix.out: Likewise.
36722
36723 2007-04-13  Bruno Haible  <bruno@clisp.org>
36724
36725         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
36726         * modules/tls-tests (configure.ac): Likewise.
36727         Reported by Arto C. Nirkko <anirkko@insel.ch>.
36728
36729 2007-04-13  Bruno Haible  <bruno@clisp.org>
36730
36731         * lib/tls.c (glthread_tls_get): Fix return type.
36732         Patch by Arto C. Nirkko <anirkko@insel.ch>.
36733
36734 2007-04-12  Eric Blake  <ebb9@byu.net>
36735
36736         * modules/gettime (Depends-on): Remove gettime.
36737         Reported by Dmitry V. Levin.
36738
36739 2007-04-12  Bruno Haible  <bruno@clisp.org>
36740
36741         * modules/fflush (Include): Mention <stdio.h>.
36742         * modules/strtoimax (Include): Mention <inttypes.h>.
36743         * modules/strtoumax (Include): Likewise.
36744
36745 2007-04-12  Eric Blake  <ebb9@byu.net>
36746
36747         * .cvsignore: New file.
36748         * .gitignore: Likewise.
36749
36750 2007-04-12  Bruno Haible  <bruno@clisp.org>
36751
36752         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
36753         not before, since $(LDADD) often contains libgnu.a.
36754         * modules/striconv-tests (test_striconv_LDADD): Likewise.
36755         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
36756         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
36757         Needed on Cygwin.
36758
36759 2007-04-12  Eric Blake  <ebb9@byu.net>
36760
36761         Work around glibc's failure to flush stdin on fclose.
36762         * lib/closein.c (close_stdin): Flush stdin before closing.
36763
36764         Work around glibc's failure to reset seekable stdin on exit.
36765         * modules/closein: New module.
36766         * lib/closein.c: New file.
36767         * lib/closein.h: Likewise.
36768         * m4/closein.m4: Likewise.
36769         * MODULES.html.sh (File stream based Input/Output): Document it.
36770
36771 2007-04-12  Simon Josefsson  <simon@josefsson.org>
36772
36773         * gnulib-tool: Rename generated 'autobuild' script to
36774         'do-autobuild' in --create-megatestdir output.
36775
36776         * doc/gnulib.texi (Build robot for gnulib): Fix.
36777
36778 2007-04-12  Simon Josefsson  <simon@josefsson.org>
36779
36780         * modules/sysexits (Depends-on): Add absolute-header.
36781
36782 2007-04-12  Eric Blake  <ebb9@byu.net>
36783
36784         No need to preserve errno on success.
36785         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
36786         Reported by Bruno Haible.
36787
36788 2007-04-12  Simon Josefsson  <simon@josefsson.org>
36789
36790         * MODULES.html.sh (Support for maintaining and releasing
36791         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
36792
36793 2007-04-12  Simon Josefsson  <simon@josefsson.org>
36794
36795         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
36796
36797 2007-04-12  Simon Josefsson  <simon@josefsson.org>
36798
36799         * modules/autobuild: New module.
36800
36801         * m4/autobuild.m4: New file.
36802
36803 2007-04-11  Bruno Haible  <bruno@clisp.org>
36804
36805         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
36806         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
36807         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
36808         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
36809         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36810         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36811         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36812         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
36813         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36814         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36815         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
36816         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36817         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36818         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
36819         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36820         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36821         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
36822         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36823         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36824         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
36825         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36826         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36827         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
36828         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36829         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36830         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
36831         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36832         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36833         Reported by Eric Blake.
36834
36835 2007-04-11  Bruno Haible  <bruno@clisp.org>
36836
36837         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
36838
36839 2007-04-10  Bruno Haible  <bruno@clisp.org>
36840
36841         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
36842         for NaN and Infinity. Needed on FreeBSD 6.1.
36843         * tests/test-vasnprintf-posix.c (test_function): Undo last change
36844         regarding results for "%010a" of Infinity and NaN.
36845         * tests/test-vasprintf-posix.c (test_function): Likewise.
36846         * tests/test-snprintf-posix.h (test_function): Likewise.
36847         * tests/test-sprintf-posix.h (test_function): Likewise.
36848         * tests/test-fprintf-posix.h (test_function): Likewise.
36849         * tests/test-printf-posix.h (test_function): Likewise.
36850         * tests/test-fprintf-posix.out: Likewise.
36851
36852 2007-04-10  Bruno Haible  <bruno@clisp.org>
36853
36854         * modules/locale-tests: New file.
36855         * tests/test-locale.c: New file.
36856
36857         * modules/locale: New file.
36858         * lib/locale_.h: New file.
36859         * m4/locale_h.m4: New file.
36860
36861 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
36862             Bruno Haible  <bruno@clisp.org>
36863
36864         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
36865         be determined, test for availability of the copysignf, copysign,
36866         copysignl functions.
36867         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
36868         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
36869         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
36870
36871 2007-04-09  Eric Blake  <ebb9@byu.net>
36872
36873         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
36874         * modules/stdio (Makefile.am): Support fflush.
36875         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36876         * modules/fflush: New file.
36877         * lib/fflush.c: Likewise.
36878         * m4/fflush.m4: Likewise.
36879         * modules/fflush-tests: New test.
36880         * tests/test-fflush.c: Likewise.
36881         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
36882
36883 2007-04-06  Bruno Haible  <bruno@clisp.org>
36884
36885         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
36886         (VASNPRINTF): Use signbit for faster determination whether to print a
36887         minus sign.
36888         * modules/vasnprintf (Files): Remove lib/float+.h.
36889         * modules/fprintf-posix (Depends-on): Add signbit.
36890         * modules/snprintf-posix (Depends-on): Likewise.
36891         * modules/sprintf-posix (Depends-on): Likewise.
36892         * modules/vasnprintf-posix (Depends-on): Likewise.
36893         * modules/vasprintf-posix (Depends-on): Likewise.
36894         * modules/vfprintf-posix (Depends-on): Likewise.
36895         * modules/vsnprintf-posix (Depends-on): Likewise.
36896         * modules/vsprintf-posix (Depends-on): Likewise.
36897
36898 2007-04-06  Bruno Haible  <bruno@clisp.org>
36899
36900         * tests/test-frexp.c (main): Test also the sign bit of zero results.
36901         * tests/test-frexpl.c (main): Likewise.
36902         * tests/test-ldexpl.c (main): Likewise.
36903         * modules/frexp-tests (Depends-on): Add signbit.
36904         * modules/frexpl-tests (Depdends-on): Likewise.
36905         * modules/ldexpl-tests (Depdends-on): Likewise.
36906
36907 2007-04-06  Bruno Haible  <bruno@clisp.org>
36908
36909         * modules/signbit-tests: New file.
36910         * tests/test-signbit.c: New file.
36911
36912         * modules/signbit: New file.
36913         * lib/signbitf.c: New file.
36914         * lib/signbitd.c: New file.
36915         * lib/signbitl.c: New file.
36916         * m4/signbit.m4: New file.
36917         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
36918         (signbit): New macro.
36919         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
36920         REPLACE_SIGNBIT.
36921         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
36922         REPLACE_FREXPL into math.h.
36923
36924 2007-04-06  Bruno Haible  <bruno@clisp.org>
36925
36926         * modules/isnanf-nolibm-tests: New file.
36927         * tests/test-isnanf.c: New file.
36928
36929         * modules/isnanf-nolibm: New file.
36930         * lib/isnanf.h: New file.
36931         * lib/isnanf.c: New file.
36932         * lib/isnan.c: Consider the USE_FLOAT macro.
36933         * m4/isnanf.m4: New file.
36934
36935 2007-04-06  Bruno Haible  <bruno@clisp.org>
36936
36937         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
36938         (Link): New section.
36939
36940         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
36941
36942 2007-04-06  Bruno Haible  <bruno@clisp.org>
36943
36944         Assume the 'long double' type.
36945         * m4/longdouble.m4: Remove file.
36946         * config/srclist.txt: Don't mention longdouble.m4.
36947         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
36948         * lib/float+.h: Likewise.
36949         * lib/frexp.c: Likewise.
36950         * lib/printf-args.h: Likewise.
36951         * lib/printf-args.c: Likewise.
36952         * lib/printf-frexp.c: Likewise.
36953         * lib/printf-parse.c: Likewise.
36954         * lib/vasnprintf.c: Likewise.
36955         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
36956         * m4/intl.m4: Likewise.
36957         * m4/isnanl.m4: Likewise.
36958         * m4/printf.m4: Likewise.
36959         * m4/printf-frexpl.m4: Likewise.
36960         * m4/vasnprintf.m4: Likewise.
36961         * modules/allocsa (Files): Remove m4/longdouble.m4.
36962         * modules/gettext (Files): Likewise.
36963         * modules/relocatable-prog-wrapper (Files): Likewise.
36964         * modules/vasnprintf (Files): Likewise.
36965         * modules/isnanl (Files): Likewise.
36966         (Include): Simplify.
36967         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
36968         (Include): Simplify.
36969         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
36970         (Include): Simplify.
36971         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
36972         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36973         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
36974         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36975         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
36976         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36977         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
36978         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36979         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
36980         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36981         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
36982         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36983         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
36984         * tests/test-isnanl.c: Likewise.
36985         * tests/test-snprintf-posix.h: Likewise.
36986         * tests/test-sprintf-posix.h: Likewise.
36987         * tests/test-vasnprintf-posix.c: Likewise.
36988         * tests/test-vasnprintf-posix2.c: Likewise.
36989         * tests/test-vasprintf-posix.c: Likewise.
36990
36991 2007-04-06  Bruno Haible  <bruno@clisp.org>
36992
36993         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
36994         * lib/math_.h [__DECC]: Include the overridden include file through
36995         #include_next, outside the double-inclusion guard.
36996         * lib/stdio_.h [__DECC]: Likewise.
36997         * lib/stdlib_.h [__DECC]: Likewise.
36998         * lib/string_.h [__DECC]: Likewise.
36999         * lib/time_.h [__DECC]: Likewise.
37000         * lib/wchar_.h [__DECC]: Likewise.
37001         * lib/wctype_.h [__DECC]: Likewise.
37002         * lib/inttypes_.h [__DECC]: Likewise.
37003         Reported by Albert Chin <china@thewrittenword.com> in
37004         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
37005
37006 2007-04-04  Eric Blake  <ebb9@byu.net>
37007
37008         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
37009         1.5.x.
37010
37011 2007-04-04  Bruno Haible  <bruno@clisp.org>
37012
37013         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
37014         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
37015
37016 2007-04-04  Bruno Haible  <bruno@clisp.org>
37017
37018         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
37019         results for "%010a" of Infinity and NaN.
37020         * tests/test-vasprintf-posix.c (test_function): Likewise.
37021         * tests/test-snprintf-posix.h (test_function): Likewise.
37022         * tests/test-sprintf-posix.h (test_function): Likewise.
37023         * tests/test-fprintf-posix.h (test_function): Remove these tests.
37024         * tests/test-printf-posix.h (test_function): Likewise.
37025         * tests/test-fprintf-posix.out: Update.
37026         Needed for FreeBSD 6.1.
37027
37028 2007-04-04  Bruno Haible  <bruno@clisp.org>
37029
37030         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
37031         directly used by the gnulib modules nor by gnulib-tool.
37032
37033 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
37034
37035         * DEPENDENCIES: Give overall description of version dependency
37036         desirability.  Use more-typical names for apps.
37037         Add shell, coreutils, diffutils, grep, tar, gzip.
37038
37039 2007-04-04  Simon Josefsson  <simon@josefsson.org>
37040
37041         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
37042
37043 2007-04-04  Karl Berry  <karl@gnu.org>
37044
37045         * MODULES.html.sh (func_module): missing '.
37046
37047 2007-04-03  Bruno Haible  <bruno@clisp.org>
37048
37049         * modules/argmatch-tests (Makefile.am): New variable
37050         test_argmatch_LDADD.
37051         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
37052         * modules/array-list-tests (Makefile.am): New variable
37053         test_array_list_LDADD.
37054         * modules/array-oset-tests (Makefile.am): New variable
37055         test_array_oset_LDADD.
37056         * modules/avltree-list-tests (Makefile.am): New variable
37057         test_avltree_list_LDADD.
37058         * modules/avltree-oset-tests (Makefile.am): New variable
37059         test_avltree_oset_LDADD.
37060         * modules/avltreehash-list-tests (Makefile.am): New variable
37061         test_avltreehash_list_LDADD.
37062         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
37063         test_canonicalize_lgpl_LDADD.
37064         * modules/carray-list-tests (Makefile.am): New variable
37065         test_carray_list_LDADD.
37066         * modules/dirname-tests (Makefile.am): New variable
37067         test_dirname_LDADD.
37068         * modules/linked-list-tests (Makefile.am): New variable
37069         test_linked_list_LDADD.
37070         * modules/linkedhash-list-tests (Makefile.am): New variable
37071         test_linkedhash_list_LDADD.
37072         * modules/rbtree-list-tests (Makefile.am): New variable
37073         test_rbtree_list_LDADD.
37074         * modules/rbtree-oset-tests (Makefile.am): New variable
37075         test_rbtree_oset_LDADD.
37076         * modules/rbtreehash-list-tests (Makefile.am): New variable
37077         test_rbtreehash_list_LDADD.
37078         * modules/xvasprintf-tests (Makefile.am): New variable
37079         test_xvasprintf_LDADD.
37080         Reported by Eric Blake.
37081
37082 2007-04-03  Eric Blake  <ebb9@byu.net>
37083
37084         * DEPENDENCIES: Weaken m4 requirements.
37085
37086 2007-04-03  Bruno Haible  <bruno@clisp.org>
37087
37088         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
37089         * modules/isnanl-tests (configure.ac): Likewise.
37090
37091 2007-04-03  Ben Pfaff  <blp@gnu.org>
37092
37093         * modules/iconv_open: Add $(srcdir)/ to source directory
37094         references in Makefile fragments that call gperf, to fix VPATH
37095         builds.
37096
37097 2007-04-03  Bruno Haible  <bruno@clisp.org>
37098
37099         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
37100         * lib/ldexpl.c: Undo last change.
37101
37102 2007-04-03  Bruno Haible  <bruno@clisp.org>
37103
37104         * modules/printf-frexpl (Depends-on): Undo last change.
37105         (Files): Add m4/ldexpl.m4.
37106
37107 2007-04-03  Bruno Haible  <bruno@clisp.org>
37108
37109         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
37110         * modules/isnanl (Link): New section.
37111
37112         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
37113         * modules/frexp (Link): New section.
37114
37115         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
37116         * modules/frexpl (Link): New section.
37117
37118         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
37119         * modules/ldexpl (Link): New section.
37120
37121 2007-04-03  Bruno Haible  <bruno@clisp.org>
37122
37123         * modules/TEMPLATE-EXTENDED: New file.
37124         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
37125
37126 2007-04-03  Bruno Haible  <bruno@clisp.org>
37127
37128         * DEPENDENCIES: New file.
37129         Suggested by Simon Josefsson.
37130
37131 2007-04-03  Bruno Haible  <bruno@clisp.org>
37132
37133         * doc/gnulib.texi: Escape @.
37134
37135 2007-04-03  James Youngman  <jay@gnu.org>
37136         and Paul Eggert  <eggert@cs.ucla.edu>
37137
37138         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
37139         birthtime on all systems that have birthtime, not just those which
37140         use st_birthtimensec rather than st_birthtim.  Putting zero in
37141         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
37142         that the birth time is not available for files on an NFS mount.
37143
37144 2007-04-03  Simon Josefsson  <simon@josefsson.org>
37145
37146         * modules/memxor: Move back from crypto/, suggested by Bruno.
37147         * modules/crypto/hmac-sha1: Fix memxor dependency.
37148
37149         * modules/crypto/gc: Moved from ../.
37150
37151 2007-04-02  Eric Blake  <ebb9@byu.net>
37152
37153         * lib/ldexpl.c (includes): Avoid libm.
37154
37155         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
37156
37157 2007-04-02  Bruno Haible  <bruno@clisp.org>
37158
37159         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
37160         on IRIX.
37161
37162 2007-04-02  Bruno Haible  <bruno@clisp.org>
37163
37164         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
37165         x86 or x86_64 platforms running MacOS X.
37166         Reported by Ryan Schmidt <@ryandesign.com>.
37167
37168 2007-04-02  Bruno Haible  <bruno@clisp.org>
37169
37170         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
37171         i386.
37172
37173 2007-04-01  Simon Josefsson  <simon@josefsson.org>
37174
37175         * modules/crypto/arcfour: Moved from ../.
37176         * modules/crypto/arcfour-tests: Moved from ../.
37177         * modules/crypto/arctwo: Moved from ../.
37178         * modules/crypto/arctwo-tests: Moved from ../.
37179         * modules/crypto/des: Moved from ../.
37180         * modules/crypto/des-tests: Moved from ../.
37181         * modules/crypto/gc-arcfour: Moved from ../.
37182         * modules/crypto/gc-arcfour-tests: Moved from ../.
37183         * modules/crypto/gc-arctwo: Moved from ../.
37184         * modules/crypto/gc-arctwo-tests: Moved from ../.
37185         * modules/crypto/gc-des: Moved from ../.
37186         * modules/crypto/gc-des-tests: Moved from ../.
37187         * modules/crypto/gc-hmac-md5: Moved from ../.
37188         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
37189         * modules/crypto/gc-hmac-sha1: Moved from ../.
37190         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
37191         * modules/crypto/gc-md2: Moved from ../.
37192         * modules/crypto/gc-md2-tests: Moved from ../.
37193         * modules/crypto/gc-md4: Moved from ../.
37194         * modules/crypto/gc-md4-tests: Moved from ../.
37195         * modules/crypto/gc-md5: Moved from ../.
37196         * modules/crypto/gc-md5-tests: Moved from ../.
37197         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
37198         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
37199         * modules/crypto/gc-random: Moved from ../.
37200         * modules/crypto/gc-rijndael: Moved from ../.
37201         * modules/crypto/gc-rijndael-tests: Moved from ../.
37202         * modules/crypto/gc-sha1: Moved from ../.
37203         * modules/crypto/gc-sha1-tests: Moved from ../.
37204         * modules/crypto/gc-tests: Moved from ../.
37205         * modules/crypto/hmac-md5: Moved from ../.
37206         * modules/crypto/hmac-md5-tests: Moved from ../.
37207         * modules/crypto/hmac-sha1: Moved from ../.
37208         * modules/crypto/hmac-sha1-tests: Moved from ../.
37209         * modules/crypto/md2: Moved from ../.
37210         * modules/crypto/md2-tests: Moved from ../.
37211         * modules/crypto/md4: Moved from ../.
37212         * modules/crypto/md4-tests: Moved from ../.
37213         * modules/crypto/md5: Moved from ../.
37214         * modules/crypto/md5-tests: Moved from ../.
37215         * modules/crypto/memxor: Moved from ../.
37216         * modules/crypto/rijndael: Moved from ../.
37217         * modules/crypto/rijndael-tests: Moved from ../.
37218         * modules/crypto/sha1: Moved from ../.
37219
37220 2007-03-30  James Youngman  <jay@gnu.org>
37221
37222         * tests/test-stat-time.c (prepare_test): use chmod() rather than
37223         rename() to change the ctime of a file (because ctime is unaffected
37224         by rename on jfs2 on AIX 5.1).
37225         (main): Start by doing cleanup, in case a previous run failed leaving
37226         test files behind.
37227
37228 2007-03-31  Bruno Haible  <bruno@clisp.org>
37229
37230         Support old proprietary implementations of iconv.
37231         * modules/iconv_open: New file.
37232         * lib/iconv_.h: New file.
37233         * m4/iconv_h.m4: New file.
37234         * lib/iconv_open.c: New file.
37235         * lib/iconv_open-aix.gperf: New file.
37236         * lib/iconv_open-hpux.gperf: New file.
37237         * lib/iconv_open-irix.gperf: New file.
37238         * lib/iconv_open-osf.gperf: New file.
37239         * m4/iconv_open.m4: New file.
37240         * modules/linebreak (Depends-on): Add iconv_open.
37241         * modules/striconv (Depends-on): Likewise.
37242         * modules/striconveh (Depends-on): Likewise.
37243         * modules/unicodeio (Depends-on): Likewise.
37244         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
37245         (iconv_t)(-1).
37246         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
37247         conversion if cd is (iconv_t)(-1).
37248         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
37249         is not possible.
37250
37251 2007-03-31  Bruno Haible  <bruno@clisp.org>
37252
37253         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
37254         work on Solaris either. Protect also second use of "autodetect_jp".
37255
37256 2007-03-31  Bruno Haible  <bruno@clisp.org>
37257
37258         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
37259         the function is not present.
37260
37261 2007-03-31  Bruno Haible  <bruno@clisp.org>
37262
37263         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
37264         the function is not present.
37265
37266 2007-03-31  Bruno Haible  <bruno@clisp.org>
37267
37268         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
37269         a bug in HP-UX iconv_open().
37270
37271 2007-03-31  Bruno Haible  <bruno@clisp.org>
37272
37273         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
37274         (Mathematics <math.h>): New section, add fpieee.
37275         (Input/output <stdio.h>): Add fseterr.
37276         (Mathematics <math.h>): New section, add printf-frexp.
37277         (Container data structures): Add sublist.
37278         (Core language properties): Add fpucw, inline.
37279         (Functions for greatest-width integer types <inttypes.h>): Add
37280         imaxabs, imaxdiv, inttypes.
37281         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
37282         isnanl-nolibm, ldexp.
37283         (Mathematics <math.h>): New section, add printf-frexpl.
37284         (Support for systems lacking POSIX:2001): Add fprintf-posix,
37285         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
37286         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
37287         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
37288         (Unicode string functions): Add unistr/u*-mbtoucr.
37289         (Java): Add javacomp-script, javaexec-script.
37290         (C#): Add csharpcomp-script, csharpexec-script.
37291         (Support for building libraries and executables): Add havelib,
37292         relocatable-*.
37293         (Support for maintaining and releasing projects): Renamed from
37294         'Support for maintaining and release projects'. Add announce-gen.
37295
37296 2007-03-31  Bruno Haible  <bruno@clisp.org>
37297
37298         * README: Talk primarily about git.
37299         (git and CVS): Renamed from CVS.
37300         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
37301         gnulib is available through git.
37302         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
37303
37304 2007-03-30  Bruno Haible  <bruno@clisp.org>
37305
37306         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
37307         * lib/poll_.h: Likewise.
37308         * lib/stat_.h: Likewise.
37309         * lib/sys_time_.h: Likewise.
37310         * lib/sysexit_.h: Likewise.
37311         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
37312         * lib/stdbool_.h: Likewise.
37313         * lib/byteswap_.h: Add double-inclusion guard.
37314
37315 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
37316
37317         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
37318
37319 2007-03-30  Karl Berry  <karl@gnu.org>
37320
37321         * config/srclist-update: double space after USA in the license
37322         substitution, since that's how it's usually (?) written.
37323
37324 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
37325
37326         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
37327         reported by Bruno Haible.
37328
37329 2007-03-29  Bruno Haible  <bruno@clisp.org>
37330
37331         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
37332         a bug in AIX iconv().
37333
37334 2007-03-29  Bruno Haible  <bruno@clisp.org>
37335
37336         * modules/ldexpl-tests: New file.
37337         * tests/test-ldexpl.c: New file.
37338
37339 2007-03-29  Bruno Haible  <bruno@clisp.org>
37340
37341         * lib/ldexpl.c: Include fpucw.h.
37342         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
37343         multiplication.
37344         * modules/ldexpl (Depends-on): Add fpucw.
37345
37346 2007-03-29  Bruno Haible  <bruno@clisp.org>
37347
37348         * modules/ldexpl: New file.
37349         * m4/ldexpl.m4: New file.
37350         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
37351         set.
37352         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
37353         REPLACE_LDEXPL.
37354         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
37355         REPLACE_LDEXPL.
37356         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
37357         gl_FUNC_LDEXPL_WORKS.
37358         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
37359         * modules/mathl (Files): Remove lib/ldexpl.c.
37360         (Depends-on): Add ldexpl.
37361
37362 2007-03-29  Bruno Haible  <bruno@clisp.org>
37363
37364         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
37365
37366 2007-03-29  Bruno Haible  <bruno@clisp.org>
37367
37368         * tests/test-striconveh.c (main): Don't assume that a direct conversion
37369         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
37370         and possibly also HP-UX.
37371         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
37372         work on AIX, IRIX, HP-UX, OSF/1.
37373         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
37374         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
37375         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
37376         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
37377         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
37378         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
37379
37380 2007-03-29  Bruno Haible  <bruno@clisp.org>
37381
37382         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
37383
37384 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
37385
37386         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
37387         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
37388
37389 2007-03-29  Eric Blake  <ebb9@byu.net>
37390
37391         * lib/acl-internal.h: Remove redundant include.
37392         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
37393         Cygwin when a file is locked.
37394
37395 2007-03-29  Bruno Haible  <bruno@clisp.org>
37396
37397         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
37398         file.
37399         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
37400
37401 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
37402
37403         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
37404         try to remove a parent directory if the child couldn't be removed
37405         (except for the first rmdir, which could fail because the child
37406         doesn't exist).  Problem reported by Jeff Blaine in
37407         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
37408
37409 2007-03-28  Bruno Haible  <bruno@clisp.org>
37410
37411         * lib/striconveh.c (utf8conv_carefully): New function.
37412         (mem_cd_iconveh_internal): Invoke it.
37413
37414 2007-03-28  Bruno Haible  <bruno@clisp.org>
37415
37416         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
37417         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
37418         input.
37419         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
37420         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
37421         unistr/u8-uctomb.
37422
37423 2007-03-28  Bruno Haible  <bruno@clisp.org>
37424
37425         * modules/unistr/u8-mbtoucr: New file.
37426         * lib/unistr/u8-mbtoucr.c: New file.
37427         * modules/unistr/u16-mbtoucr: New file.
37428         * lib/unistr/u16-mbtoucr.c: New file.
37429         * modules/unistr/u16-mbtoucr: New file.
37430         * lib/unistr/u16-mbtoucr.c: New file.
37431         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
37432
37433 2007-03-27  Simon Josefsson  <simon@josefsson.org>
37434             Bruno Haible  <bruno@clisp.org>
37435
37436         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
37437         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
37438         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
37439
37440         * m4/stdio_h.m4: Add stubs for vasprintf too.
37441
37442         * modules/stdio: Support vasprintf in sed command.
37443
37444         * modules/vasprintf: Depend on stdio for prototypes.  Remove
37445         vasprintf.h.  Add stdio module indicator.
37446
37447         * lib/stdio_.h: Declare asprintf and vasprintf, based on
37448         vasprintf.h.
37449
37450         * lib/vasprintf.h: File removed.
37451
37452         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
37453         * lib/vasprintf.c: Ditto.
37454         * lib/xvasprintf.c: Ditto.
37455         * tests/test-vasprintf-posix.c: Ditto.
37456         * tests/test-vasprintf.c: Ditto.
37457
37458 2007-03-27  Bruno Haible  <bruno@clisp.org>
37459
37460         Make vasnprintf multithread-safe.
37461         * lib/vasnprintf.c (decimal_point_char): New function.
37462         (VASNPRINTF): Use it.
37463         Suggested by Simon Josefsson.
37464
37465 2007-03-27  Eric Blake  <ebb9@byu.net>
37466
37467         Support sub-second birthtime on cygwin.
37468         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
37469         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
37470         (get_stat_birthtime): Also work with st_birthtim.
37471
37472 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
37473
37474         * lib/stat-time.h (USE_BIRTHTIME): Remove.
37475         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
37476         (get_stat_birthtime_ns): Do not try to use "spare" fields.
37477         (get_stat_birthtime_ns): Simplify compile-time tests.
37478         (get_stat_birthtime): Change the API to look like
37479         get_stat_mtime etc., except return a negative tv_nsec on error.
37480         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
37481         Don't check for "spare" fields.
37482         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
37483         or for struct stat.st_birthtime, as these tests aren't used.
37484         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
37485
37486 2007-03-27  Bruno Haible  <bruno@clisp.org>
37487
37488         * lib/stat-time.h: Include <sys/stat.h>.
37489
37490 2007-03-27  James Youngman  <jay@gnu.org>
37491
37492         * lib/stat-time.h (get_stat_birthtime): New function for
37493           retrieving st_birthtime as provided by UFS2 (hence *BSD).
37494         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
37495           and its variants.
37496         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
37497         * modules/stat-time-test: New file.
37498         * tests/test-stat-time.c: New test, devised by Bruno Haible.
37499
37500 2007-03-26  Bruno Haible  <bruno@clisp.org>
37501
37502         Better support of signalling NaNs.
37503         * lib/atanl.c: Include isnanl.h.
37504         (atanl): Perform test for NaN at the beginning of the function and
37505         through a call to isnanl.
37506         * lib/cosl.c: Include isnanl.h.
37507         (cosl): Perform test for NaN at the beginning of the function and
37508         through a call to isnanl.
37509         * lib/ldexpl.c: Include isnanl.h.
37510         (ldexpl): Perform test for NaN through a call to isnanl.
37511         * lib/logl.c: Include isnanl.h.
37512         (logl): Perform test for NaN at the beginning of the function and
37513         through a call to isnanl.
37514         * lib/sinl.c: Include isnanl.h.
37515         (sinl): Perform test for NaN at the beginning of the function and
37516         through a call to isnanl.
37517         * lib/sqrtl.c: Include isnanl.h.
37518         (sqrtl): Perform test for NaN at the beginning of the function and
37519         through a call to isnanl.
37520         * lib/tanl.c: Include isnanl.h.
37521         (tanl): Perform test for NaN at the beginning of the function and
37522         through a call to isnanl.
37523         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
37524         * modules/mathl (Depends-on): Add isnanl.
37525
37526 2007-03-26  Eric Blake  <ebb9@byu.net>
37527
37528         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
37529         regression in logic sense of previous patch.
37530
37531 2007-03-26  Bruno Haible  <bruno@clisp.org>
37532
37533         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
37534         unportable shell command "if ! ...".
37535         Reported by Ralf Wildenhues.
37536
37537 2007-03-25  Bruno Haible  <bruno@clisp.org>
37538
37539         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
37540         <sysexits.h> file, and only add EX_CONFIG.
37541         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
37542         absolute file name and whether it is sufficient. Substitute also
37543         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
37544         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
37545         ABSOLUTE_SYSEXITS_H into sysexits.h.
37546
37547 2007-03-25  Bruno Haible  <bruno@clisp.org>
37548
37549         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
37550         hints is NULL.
37551
37552 2007-03-25  Bruno Haible  <bruno@clisp.org>
37553
37554         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
37555         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
37556
37557 2007-03-25  Bruno Haible  <bruno@clisp.org>
37558
37559         * lib/vasnprintf.c: Include langinfo.h.
37560         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
37561         multithread-safe.
37562         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
37563         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
37564         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37565         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37566         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37567         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37568         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37569         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
37570         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37571         Reported by Simon Josefsson.
37572
37573 2007-03-25  Bruno Haible  <bruno@clisp.org>
37574
37575         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
37576         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
37577         * modules/vasnprintf (Depends-on): Add stdint.
37578
37579 2007-03-25  Bruno Haible  <bruno@clisp.org>
37580
37581         * modules/fpieee: New file.
37582         * m4/fpieee.m4: New file.
37583         * modules/isnan-nolibm (Depends-on): Add fpieee.
37584         * modules/isnanl-nolibm (Depends-on): Add fpieee.
37585         * modules/isnanl (Depends-on): Add fpieee.
37586
37587 2007-03-25  Bruno Haible  <bruno@clisp.org>
37588
37589         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
37590
37591 2007-03-25  Bruno Haible  <bruno@clisp.org>
37592
37593         Avoid test failures on IRIX 6.5.
37594         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
37595         (main): Use it.
37596         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
37597         macros.
37598         (main): Use them.
37599
37600 2007-03-25  Bruno Haible  <bruno@clisp.org>
37601
37602         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
37603         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
37604         exists but doesn't work.
37605         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
37606         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
37607         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
37608         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
37609
37610 2007-03-25  Bruno Haible  <bruno@clisp.org>
37611
37612         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
37613         returns inf. Needed on IRIX 6.5.
37614
37615 2007-03-25  Bruno Haible  <bruno@clisp.org>
37616
37617         * tests/test-frexpl.c: Include isnanl-nolibm.h.
37618         (main): Use isnanl instead of x != x idiom.
37619         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
37620
37621         * tests/test-frexp.c: Include isnan.h.
37622         (main): Use isnan instead of x != x idiom.
37623         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
37624
37625 2007-03-25  Bruno Haible  <bruno@clisp.org>
37626
37627         * tests/test-frexp.c (NaN): New function/macro.
37628         (main): Use it instead of 0.0 / 0.0.
37629         * tests/test-isnan.c (NaN): New function/macro.
37630         (main): Use it instead of 0.0 / 0.0.
37631         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
37632         (test_function): Use it instead of 0.0 / 0.0.
37633         * tests/test-vasprintf-posix.c (NaN): New function/macro.
37634         (test_function): Use it instead of 0.0 / 0.0.
37635         * tests/test-snprintf-posix.h (NaN): New function/macro.
37636         (test_function): Use it instead of 0.0 / 0.0.
37637         * tests/test-sprintf-posix.h (NaN): New function/macro.
37638         (test_function): Use it instead of 0.0 / 0.0.
37639         * tests/test-fprintf-posix.h (NaN): New function/macro.
37640         (test_function): Use it instead of 0.0 / 0.0.
37641         * tests/test-printf-posix.h (NaN): New function/macro.
37642         (test_function): Use it instead of 0.0 / 0.0.
37643
37644         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
37645
37646 2007-03-25  Bruno Haible  <bruno@clisp.org>
37647
37648         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
37649
37650 2007-03-25  Bruno Haible  <bruno@clisp.org>
37651
37652         * lib/regexec.c (merge_state_with_log): Make static.
37653
37654 2007-03-25  Bruno Haible  <bruno@clisp.org>
37655
37656         * lib/trigl.c (kernel_rem_pio2): Make static.
37657
37658 2007-03-25  Bruno Haible  <bruno@clisp.org>
37659
37660         * lib/sincosl.c (sincosl_table): Make static.
37661
37662 2007-03-25  Bruno Haible  <bruno@clisp.org>
37663
37664         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
37665         if the compiler does not support C99.
37666
37667 2007-03-25  Bruno Haible  <bruno@clisp.org>
37668
37669         * modules/time (Makefile.am): Ensure all rule action lines start with a
37670         tab.
37671
37672 2007-03-24  Bruno Haible  <bruno@clisp.org>
37673
37674         * modules/tsearch-tests: New file.
37675         * tests/test-tsearch.sh: New file.
37676         * tests/test-tsearch.c: New file, mostly copied from glibc.
37677
37678         * modules/search-tests: New file.
37679         * tests/test-search.c: New file.
37680
37681         * modules/search: New file.
37682         * lib/search_.h: New file, incorporating lib/tsearch.h.
37683         * m4/search_h.m4: New file.
37684         * lib/tsearch.h: Remove file.
37685         * lib/tsearch.c: Include search.h instead of tsearch.h.
37686         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
37687         HAVE_TSEARCH.
37688         * modules/tsearch (Files): Remove lib/tsearch.h.
37689         (Depends-on): Add search.
37690         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
37691         (Include): Change tsearch.h into search.h.
37692
37693 2007-03-24  Bruno Haible  <bruno@clisp.org>
37694
37695         * modules/fpucw: New file.
37696         * lib/fpucw.h: New file.
37697         * lib/frexp.c: Include fpucw.h.
37698         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
37699         (FUNC): Use them.
37700         * lib/printf-frexp.c: Include fpucw.h.
37701         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
37702         (FUNC): Use them.
37703         * lib/vasnprintf.c: Include fpucw.h.
37704         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
37705         'long double' calculations.
37706         * tests/test-frexpl.c: Include fpucw.h.
37707         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
37708         * tests/test-printf-frexpl.c: Include fpucw.h.
37709         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
37710         * modules/frexpl (Depends-on): Add fpucw.
37711         * modules/printf-frexpl (Depends-on): Likewise.
37712         * modules/fprintf-posix (Depends-on): Likewise.
37713         * modules/snprintf-posix (Depends-on): Likewise.
37714         * modules/sprintf-posix (Depends-on): Likewise.
37715         * modules/vasnprintf-posix (Depends-on): Likewise.
37716         * modules/vasprintf-posix (Depends-on): Likewise.
37717         * modules/vfprintf-posix (Depends-on): Likewise.
37718         * modules/vsnprintf-posix (Depends-on): Likewise.
37719         * modules/vsprintf-posix (Depends-on): Likewise.
37720         * modules/frexpl-tests (Depends-on): Likewise.
37721         * modules/printf-frexpl-tests (Depends-on): Likewise.
37722
37723 2007-03-24  Bruno Haible  <bruno@clisp.org>
37724
37725         * lib/float+.h: New file.
37726         * lib/isnan.c: Include float+.h.
37727         (SIZE): New macro.
37728         (FUNC): Compare only SIZE bytes of the value.
37729         * lib/vasnprintf.c: Include float+.h.
37730         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
37731         SIZEOF_LDBL or SIZEOF_DBL bytes.
37732         * modules/isnan-nolibm (Files): Add lib/float+.h.
37733         * modules/isnanl-nolibm (Files): Add lib/float+.h.
37734         * modules/isnanl (Files): Add lib/float+.h.
37735         * modules/vasnprintf (Files): Add lib/float+.h.
37736
37737 2007-03-24  Bruno Haible  <bruno@clisp.org>
37738
37739         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
37740         include isnanl-nolibm.h.
37741
37742 2007-03-24  Bruno Haible  <bruno@clisp.org>
37743
37744         * tests/test-read-file.c (main): Don't produce spurious output for
37745         expected situations. Make the test fail if it encountered unexpected
37746         results.
37747
37748 2007-03-24  Bruno Haible  <bruno@clisp.org>
37749
37750         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
37751         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
37752
37753 2007-03-24  Bruno Haible  <bruno@clisp.org>
37754
37755         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
37756
37757 2007-03-24  Bruno Haible  <bruno@clisp.org>
37758
37759         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
37760         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
37761
37762         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
37763         * modules/utf8-ucs4: Turn into a symbolic link to module
37764         unistr/u8-mbtouc.
37765
37766         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
37767         utf8-ucs4-unsafe.
37768         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
37769         unistr/u8-mbtouc-unsafe.
37770
37771         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
37772         * modules/utf16-ucs4: Turn into a symbolic link to module
37773         unistr/u16-mbtouc.
37774
37775         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
37776         utf16-ucs4-unsafe.
37777         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
37778         unistr/u16-mbtouc-unsafe.
37779
37780         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
37781         * modules/ucs4-utf8: Turn into a symbolic link to module
37782         unistr/u8-ubtomb.
37783
37784         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
37785         * modules/ucs4-utf16: Turn into a symbolic link to module
37786         unistr/u16-ubtomb.
37787
37788 2007-03-24  Bruno Haible  <bruno@clisp.org>
37789
37790         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
37791         Enable the function only if HAVE_INLINE.
37792         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
37793         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
37794         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
37795         Enable the function only if HAVE_INLINE.
37796         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
37797         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
37798         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
37799         Enable the function only if HAVE_INLINE.
37800         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
37801         Enable the function only if HAVE_INLINE.
37802         * modules/utf8-ucs4: Update.
37803         * modules/utf8-ucs4-unsafe: Update.
37804         * modules/utf16-ucs4: Update.
37805         * modules/utf16-ucs4-unsafe: Update.
37806         * modules/ucs4-utf8: Update.
37807         * modules/ucs4-utf16: Update.
37808
37809 2007-03-24  Bruno Haible  <bruno@clisp.org>
37810
37811         * lib/utf8-ucs4.h: Remove file.
37812         * lib/utf8-ucs4-unsafe.h: Remove file.
37813         * lib/utf16-ucs4.h: Remove file.
37814         * lib/utf16-ucs4-unsafe.h: Remove file.
37815         * lib/ucs4-utf8.h: Remove file.
37816         * lib/ucs4-utf16.h: Remove file.
37817         * lib/unistr.h: Include their previous contents.
37818         * m4/utf-ucs4.m4: Remove file.
37819         * m4/ucs4-utf.m4: Remove file.
37820         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
37821         (Depends-on): Add unistr/base.
37822         (configure.ac): Remove gl_UTF_UCS4.
37823         (Makefile.am): Update.
37824         (Include): Change to unistr.h.
37825         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
37826         (Depends-on): Add unistr/base.
37827         (configure.ac): Remove gl_UTF_UCS4.
37828         (Makefile.am): Update.
37829         (Include): Change to unistr.h.
37830         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
37831         (Depends-on): Add unistr/base.
37832         (configure.ac): Remove gl_UTF_UCS4.
37833         (Makefile.am): Update.
37834         (Include): Change to unistr.h.
37835         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
37836         (Depends-on): Add unistr/base.
37837         (configure.ac): Remove gl_UTF_UCS4.
37838         (Makefile.am): Update.
37839         (Include): Change to unistr.h.
37840         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
37841         (Depends-on): Add unistr/base.
37842         (configure.ac): Remove gl_UCS4_UTF.
37843         (Makefile.am): Update.
37844         (Include): Change to unistr.h.
37845         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
37846         (Depends-on): Add unistr/base.
37847         (configure.ac): Remove gl_UCS4_UTF.
37848         (Makefile.am): Update.
37849         (Include): Change to unistr.h.
37850         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
37851         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
37852         utf8-ucs4-unsafe.h.
37853         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
37854         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
37855         utf16-ucs4-unsafe.h.
37856         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
37857         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
37858         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
37859         * lib/unistr/u8-strchr.c: Likewise.
37860         * lib/unistr/u8-strrchr.c: Likewise.
37861         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
37862         * lib/unistr/u16-strchr.c: Likewise.
37863         * lib/unistr/u16-strrchr.c: Likewise.
37864         * lib/striconveh.c: Update.
37865         * lib/linebreak.c: Update.
37866
37867 2007-03-24  Bruno Haible  <bruno@clisp.org>
37868
37869         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
37870         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
37871
37872 2007-03-22  Bruno Haible  <bruno@clisp.org>
37873
37874         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
37875
37876 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
37877
37878         * MODULES.html.sh (File system functions): New module write-any-file.
37879         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
37880         * m4/write-any-file.m4: New files.
37881
37882 2007-03-23  Eric Blake  <ebb9@byu.net>
37883
37884         * gnulib-tool: Rearrange space-tab sequences, since some editors
37885         like to eat them.
37886
37887 2007-03-23  Eric Blake  <ebb9@byu.net>
37888
37889         * lib/version-etc.c (version_etc_va): Update license wording to
37890         be more concise.  Recommended by Richard Stallman.
37891
37892 2007-03-22  Bruno Haible  <bruno@clisp.org>
37893
37894         * lib/poll.c (MSG_PEEK): New fallback definition.
37895
37896 2007-03-22  Bruno Haible  <bruno@clisp.org>
37897
37898         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
37899         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
37900         (main): Update.
37901         Fixes a compilation error on BeOS.
37902
37903 2007-03-22  Bruno Haible  <bruno@clisp.org>
37904
37905         * modules/frexpl-tests: New file.
37906         * tests/test-frexpl.c: New file.
37907
37908         * modules/frexpl: New file.
37909         * m4/frexpl.m4: New file.
37910         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
37911         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
37912         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
37913         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
37914         (Depends-on): Add frexpl. Remove isnanl-nolibm.
37915         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
37916
37917 2007-03-22  Bruno Haible  <bruno@clisp.org>
37918
37919         * lib/frexpl.c: Share code with lib/frexp.c.
37920         * modules/mathl (Files): Add lib/frexp.c.
37921         (Depends-on): Add isnanl-nolibm.
37922
37923 2007-03-22  Bruno Haible  <bruno@clisp.org>
37924
37925         * modules/printf-frexp (Files): Add m4/frexp.m4.
37926         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
37927         only if the found frexp function actually works.
37928
37929 2007-03-22  Bruno Haible  <bruno@clisp.org>
37930
37931         * lib/frexp.c: Remove older implementation that uses divisions.
37932
37933 2007-03-21  Bruno Haible  <bruno@clisp.org>
37934
37935         * modules/frexp-tests: New file.
37936         * tests/test-frexp.c: New file.
37937
37938         * modules/frexp: New file.
37939         * lib/frexp.c: New file.
37940         * m4/frexp.m4: New file.
37941         * lib/math_.h (frexp): New declaration.
37942         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
37943         REPLACE_FREXP.
37944         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
37945
37946 2007-03-21  Bruno Haible  <bruno@clisp.org>
37947
37948         * modules/isnanl-tests: New file.
37949         * tests/test-isnanl.c: New file.
37950
37951         * modules/isnanl: New file.
37952         * lib/isnanl.h: New file.
37953         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
37954         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
37955         gl_FUNC_ISNANL_WORKS.
37956         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
37957         New macros.
37958
37959 2007-03-21  Bruno Haible  <bruno@clisp.org>
37960
37961         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
37962         lib/isnanl.h.
37963         (Include): Update.
37964         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
37965         * lib/vasnprintf.c: Update.
37966         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
37967         tests/test-isnanl.h, remove tests/test-isnanl.c.
37968         (Makefile.am): Update.
37969         * tests/test-isnanl-nolibm.c: New file.
37970         * tests/test-isnanl.h: New file.
37971         * tests/test-isnanl.c: Remove file.
37972
37973 2007-03-21  Jim Meyering  <jim@meyering.net>
37974
37975         When trying to open ".", treat ESTALE like EACCES.
37976         * lib/savewd.c (savewd_save): Resort to forking not just upon
37977         failure with EACCES, but also when errno is ESTALE.
37978
37979 2007-03-20  Bruno Haible  <bruno@clisp.org>
37980
37981         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
37982         Needed on AIX 5.1. Reported by Matthew Woehlke.
37983
37984 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
37985
37986         Suggestions by Bruno Haible:
37987         * lib/acl-internal.h: Include "gettext.h" rather than rolling
37988         our own.
37989         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
37990         * modules/acl (Depends-on): Add gettext.
37991
37992 2007-03-19  Bruno Haible  <bruno@clisp.org>
37993
37994         * modules/iconvme: Remove file.
37995         * lib/iconvme.h: Remove file.
37996         * lib/iconvme.c: Remove file.
37997         * m4/iconvme.m4: Remove file.
37998
37999 2007-03-19  Bruno Haible  <bruno@clisp.org>
38000
38001         * doc/relocatable-maint.texi: Break long shell script line.
38002         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
38003
38004 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
38005
38006         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
38007         handle file_has_acl.
38008         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
38009         * lib/acl.c: Move header inclusions and related macro defns into
38010         lib/acl-internal.h.
38011         (S_ISLNK): Remove defn, since that's now done for us.
38012         (file_has_acl): Move to lib/file-has-acl.c.
38013         Call acl_trivial if available.  This is the crucial part of the fix.
38014         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
38015         shared within the library.  Rewrite a bit, partly to make it compatible
38016         with the GNU coding style.
38017         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
38018         Remove unnecessary double-quotes.
38019         Don't test for acl_to_text; the build will catch that.
38020         Replace acl_entries if it doesn't exist and it is needed.
38021         Check for -lsec and acl_trivial (as used on Solaris 10).
38022         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
38023         lib/file-has-acl.c.
38024         (Depends-on): Add sys_stat, for S_ISLNK.
38025
38026 2007-03-19  Ben Pfaff  <blp@gnu.org>
38027
38028         * doc/gnulib.texi: Fix typos.
38029         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
38030
38031 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
38032
38033         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
38034         If size is zero here, buf must be zero.
38035
38036 2007-03-19  Simon Josefsson  <simon@josefsson.org>
38037
38038         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
38039         <bruno@clisp.org>.
38040
38041 2007-03-18  Bruno Haible  <bruno@clisp.org>
38042
38043         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
38044         Suggested by Eric Blake.
38045
38046 2007-03-18  Ben Pfaff  <blp@gnu.org>
38047
38048         * doc/relocatable.texi: Recommend using as prefix a directory
38049         that does not exist and will never be created.  Based on
38050         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
38051         and others.
38052
38053 2007-03-17  Bruno Haible  <bruno@clisp.org>
38054
38055         * lib/fchownat.c: Include lchown.h.
38056
38057 2007-03-17  Bruno Haible  <bruno@clisp.org>
38058
38059         Fix endless loop when the given allocated size was > INT_MAX.
38060         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
38061         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
38062         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
38063         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
38064         * lib/sprintf.c (sprintf): Likewise.
38065
38066 2007-03-17  Bruno Haible  <bruno@clisp.org>
38067
38068         * tests/test-argp-2.sh (func_compare): Output a context diff.
38069
38070 2007-03-17  Bruno Haible  <bruno@clisp.org>
38071
38072         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
38073         locale's decimal-point character.
38074
38075 2007-03-17  Bruno Haible  <bruno@clisp.org>
38076
38077         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
38078         before comparing it. Needed because on some platforms (e.g. x86) a
38079         'long double' occupies less bytes than sizeof (long double).
38080
38081 2007-03-17  Bruno Haible  <bruno@clisp.org>
38082
38083         * tests/test-crc.c (main): Make printf statements 64-bit clean.
38084         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
38085         * tests/test-getaddrinfo.c (simple): Likewise.
38086         * tests/test-read-file.c (main): Likewise.
38087
38088 2007-03-17  Bruno Haible  <bruno@clisp.org>
38089
38090         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
38091
38092 2007-03-17  Bruno Haible  <bruno@clisp.org>
38093
38094         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
38095         unused variable.
38096
38097 2007-03-17  Bruno Haible  <bruno@clisp.org>
38098
38099         * tests/test-c-strcasecmp.c: Include c-strcase.h.
38100         * tests/test-c-strncasecmp.c: Likewise.
38101
38102 2007-03-17  Bruno Haible  <bruno@clisp.org>
38103
38104         * modules/stdlib (Depends-on): Add unistd.
38105         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
38106         Needed for MacOS X 10.3.
38107
38108 2007-03-17  Bruno Haible  <bruno@clisp.org>
38109
38110         * lib/unistr/u-strdup.h: Include <stdlib.h>.
38111
38112 2007-03-17  Bruno Haible  <bruno@clisp.org>
38113
38114         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
38115
38116 2007-03-17  Bruno Haible  <bruno@clisp.org>
38117
38118         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
38119         to reflect files copied from gnulib (with or without modifications).
38120         Suggested by Jim Meyering.
38121
38122 2007-03-17  Eric Blake  <ebb9@byu.net>
38123
38124         * NEWS: Document stdlib change from 2007-02-18.
38125
38126 2007-03-17  Jim Meyering  <jim@meyering.net>
38127
38128         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
38129         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
38130         someone uses a name containing shell meta-characters.
38131         Reported by Alfred M. Szmidt.
38132
38133         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
38134
38135 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
38136
38137         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
38138         and copy gettext configuration files only if configure.ac contains
38139         a use of AM_GNU_GETTEXT_VERSION.
38140
38141 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
38142
38143         * build-aux/bootstrap (gnulib_name): New variable.
38144         (gnulib_tool_options): Use it.
38145
38146 2007-03-13  Simon Josefsson  <simon@josefsson.org>
38147
38148         * tests/test-des.c: Use new namespace.
38149
38150 2007-03-15  Bruno Haible  <bruno@clisp.org>
38151
38152         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
38153         Reported by James Youngman <jay@gnu.org>.
38154
38155 2007-03-15  Bruno Haible  <bruno@clisp.org>
38156
38157         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
38158         declared prototype. Needed with cc on OSF/1 5.1.
38159
38160 2007-03-15  Bruno Haible  <bruno@clisp.org>
38161
38162         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
38163         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
38164         (struct gl_list_implementation): Add dispose_fn argument to the
38165         'create_empty', 'create' methods.
38166         (struct gl_list_impl_base): Add field 'dispose_fn'.
38167         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
38168         argument.
38169         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
38170         dispose_fn argument.
38171         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
38172         dispose_fn on the dropped values.
38173         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
38174         dispose_fn argument.
38175         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
38176         dropped values.
38177         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
38178         (gl_tree_remove_node): Call dispose_fn on the dropped value.
38179         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
38180         (gl_tree_remove_node): Call dispose_fn on the dropped value.
38181         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
38182         argument.
38183         (gl_tree_list_free): Call dispose_fn on the dropped values.
38184         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
38185         the dropped values.
38186         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
38187         Add dispose_fn argument.
38188         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
38189         Call dispose_fn on the dropped values.
38190         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
38191         Add dispose_fn argument.
38192         (gl_sublist_create): Initialize the 'dispose_fn' field.
38193         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
38194         * tests/test-array_list.c (main): Update.
38195         * tests/test-carray_list.c (main): Update.
38196         * tests/test-avltree_list.c (main): Update.
38197         * tests/test-rbtree_list.c (main): Update.
38198         * tests/test-avltreehash_list.c (main): Update.
38199         * tests/test-rbtreehash_list.c (main): Update.
38200         * tests/test-linked_list.c (main): Update.
38201         * tests/test-linkedhash_list.c (main): Update.
38202         * tests/test-array_oset.c (main): Update.
38203
38204 2007-03-15  Bruno Haible  <bruno@clisp.org>
38205
38206         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
38207         (gl_oset_create_empty): Add dispose_fn argument.
38208         (struct gl_oset_implementation): Add dispose_fn argument to
38209         'create_empty' method.
38210         (struct gl_oset_impl_base): Add dispose_fn field.
38211         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
38212         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
38213         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
38214         values.
38215         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
38216         (gl_tree_oset_free): Call dispose_fn on the dropped values.
38217         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
38218         dropped value.
38219         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
38220         dropped value.
38221         * tests/test-array_oset.c (main): Update.
38222         * tests/test-avltree_oset.c (main): Update.
38223         * tests/test-rbtree_oset.c (main): Update.
38224         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
38225
38226 2007-03-13  Bruno Haible  <bruno@clisp.org>
38227
38228         * tests/test-stdbool.c (i): Update after last patch.
38229
38230 2007-03-12  Bruno Haible  <bruno@clisp.org>
38231
38232         * lib/quotearg.c: Include <wctype.h> early, before the definition of
38233         the iswprint macro. Needed on Solaris 2.5.1.
38234
38235 2007-03-12  Bruno Haible  <bruno@clisp.org>
38236
38237         * tests/test-printf-frexp.c (main): Declare x as volatile.
38238
38239 2007-03-12  Simon Josefsson  <simon@josefsson.org>
38240
38241         * doc/gnulib.texi (Build robot for gnulib): New section.
38242
38243 2007-03-12  Jim Meyering  <jim@meyering.net>
38244
38245         * build-aux/bootstrap: New file.
38246         * build-aux/bootstrap.conf: New file, from coreutils.
38247
38248 2007-03-11  Bruno Haible  <bruno@clisp.org>
38249
38250         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
38251
38252 2007-03-12  Simon Josefsson  <simon@josefsson.org>
38253
38254         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
38255         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
38256         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
38257
38258 2007-03-11  Bruno Haible  <bruno@clisp.org>
38259
38260         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
38261         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
38262
38263 2007-03-11  Bruno Haible  <bruno@clisp.org>
38264
38265         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
38266         formula. Needed for SunPRO C 5.0.
38267
38268 2007-03-11  Bruno Haible  <bruno@clisp.org>
38269
38270         * modules/long-options (Depends-on): Add getopt.
38271
38272 2007-03-11  Bruno Haible  <bruno@clisp.org>
38273
38274         * modules/modechange (Depends-on): Add stdbool.
38275
38276 2007-03-11  Bruno Haible  <bruno@clisp.org>
38277
38278         * modules/i-ring (Depends-on): Add stdbool.
38279
38280 2007-03-11  Bruno Haible  <bruno@clisp.org>
38281
38282         * modules/gc-des (Depends-on): Add stdbool.
38283
38284 2007-03-11  Bruno Haible  <bruno@clisp.org>
38285
38286         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
38287
38288 2007-03-11  Bruno Haible  <bruno@clisp.org>
38289
38290         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
38291
38292 2007-03-11  Bruno Haible  <bruno@clisp.org>
38293
38294         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
38295
38296 2007-03-11  Bruno Haible  <bruno@clisp.org>
38297
38298         * lib/vasnprintf.c (sprintf): Undefine.
38299
38300 2007-03-11  Bruno Haible  <bruno@clisp.org>
38301
38302         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
38303         initializers in SunPRO C and Compaq C compilers.
38304
38305 2007-03-11  Bruno Haible  <bruno@clisp.org>
38306
38307         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
38308         decrementing code ANSI C compliant.
38309
38310 2007-03-11  Bruno Haible  <bruno@clisp.org>
38311
38312         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
38313         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
38314
38315 2007-03-11  Bruno Haible  <bruno@clisp.org>
38316
38317         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
38318         <stdbool.h> substitute doesn't pass.
38319
38320 2007-03-11  Bruno Haible  <bruno@clisp.org>
38321
38322         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
38323
38324 2007-03-11  Bruno Haible  <bruno@clisp.org>
38325
38326         * gnulib-tool (func_create_megatestdir): Create also an autobuild
38327         script, for submission to autobuild.josefsson.org.
38328
38329 2007-03-10  Bruno Haible  <bruno@clisp.org>
38330
38331         * modules/canonicalize-lgpl-tests: New file.
38332         * tests/test-canonicalize-lgpl.sh: New file.
38333         * tests/test-canonicalize-lgpl.c: New file.
38334
38335         * modules/c-strcase-tests: New file.
38336         * tests/test-c-strcase.sh: New file.
38337         * tests/test-c-strcasecmp.c: New file.
38338         * tests/test-c-strncasecmp.c: New file.
38339
38340         * modules/atexit-tests: New file.
38341         * tests/test-atexit.sh: New file.
38342         * tests/test-atexit.c: New file.
38343
38344 2007-03-10  Bruno Haible  <bruno@clisp.org>
38345
38346         * tests/test-binary-io.sh: Use temporary filenames that are not so
38347         likely to clash with those of other tests (in a parallel make).
38348         * tests/test-binary-io.c: Likewise.
38349
38350 2007-03-10  Bruno Haible  <bruno@clisp.org>
38351
38352         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
38353         fallback; use #error instead.
38354         Suggested by Simon Josefsson.
38355
38356 2007-03-10  Bruno Haible  <bruno@clisp.org>
38357
38358         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
38359         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
38360         first and the last.
38361
38362 2007-03-10  Bruno Haible  <bruno@clisp.org>
38363
38364         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
38365
38366 2007-03-10  Bruno Haible  <bruno@clisp.org>
38367
38368         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
38369         "make distcheck".
38370         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
38371         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
38372         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
38373
38374 2007-03-10  Bruno Haible  <bruno@clisp.org>
38375
38376         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
38377         variable.
38378         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
38379         variable.
38380
38381 2007-03-09  Eric Blake  <ebb9@byu.net>
38382         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
38383
38384         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
38385         types are not being provided by gnulib.
38386         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
38387         types are supported.
38388
38389 2007-03-10  Bruno Haible  <bruno@clisp.org>
38390
38391         * lib/stdio_.h (__attribute__): New macro.
38392         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
38393         vsprintf): Specify __attribute__ __format__ for GCC.
38394         Suggested by Eric Blake.
38395
38396 2007-03-09  Bruno Haible  <bruno@clisp.org>
38397
38398         * modules/printf-posix-tests: New file.
38399         * tests/test-printf-posix.sh: New file.
38400         * tests/test-printf-posix.c: New file.
38401
38402         * modules/printf-posix: New file.
38403         * lib/printf.c: New file.
38404         * m4/printf-posix-rpl.m4: New file.
38405         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
38406         REPLACE_PRINTF.
38407         * lib/stdio_.h (printf): New declaration.
38408         (format, __format__, ____printf____, ____scanf____, ____strftime____,
38409         ____strfmon____): New macros.
38410         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
38411         REPLACE_PRINTF.
38412
38413 2007-03-09  Bruno Haible  <bruno@clisp.org>
38414
38415         * tests/test-vasnprintf-posix2.sh: New file.
38416         * tests/test-vasnprintf-posix2.c: New file.
38417         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
38418         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
38419         (Makefile.am): Activate test-vasnprintf-posix2.sh.
38420
38421         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
38422         a locale dependent decimal point, rather than always '.'.
38423
38424 2007-03-09  Eric Blake  <ebb9@byu.net>
38425
38426         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
38427         spite of platforms like Tandem/NSK that define it to -1.
38428
38429 2007-03-08  Bruno Haible  <bruno@clisp.org>
38430
38431         * modules/vprintf-posix-tests: New file.
38432         * tests/test-vprintf-posix.sh: New file.
38433         * tests/test-vprintf-posix.c: New file.
38434         * tests/test-printf-posix.h: New file.
38435
38436         * modules/vprintf-posix: New file.
38437         * lib/vprintf.c: New file.
38438         * m4/vprintf-posix.m4: New file.
38439         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
38440         REPLACE_VPRINTF.
38441         * lib/stdio_.h (vprintf): New declaration.
38442         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
38443         REPLACE_VPRINTF.
38444
38445 2007-03-08  Bruno Haible  <bruno@clisp.org>
38446
38447         * modules/fprintf-posix-tests: New file.
38448         * tests/test-fprintf-posix.sh: New file.
38449         * tests/test-fprintf-posix.c: New file.
38450
38451         * modules/fprintf-posix: New file.
38452         * lib/fprintf.c: New file.
38453         * m4/fprintf-posix.m4: New file.
38454         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
38455         REPLACE_FPRINTF.
38456         * lib/stdio_.h (fprintf): New declaration.
38457         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
38458         REPLACE_FPRINTF.
38459
38460 2007-03-08  Bruno Haible  <bruno@clisp.org>
38461
38462         * modules/vfprintf-posix-tests: New file.
38463         * tests/test-vfprintf-posix.sh: New file.
38464         * tests/test-vfprintf-posix.c: New file.
38465         * tests/test-fprintf-posix.h: New file.
38466         * tests/test-fprintf-posix.out: New file.
38467
38468         * modules/vfprintf-posix: New file.
38469         * lib/vfprintf.c: New file.
38470         * m4/vfprintf-posix.m4: New file.
38471         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
38472         REPLACE_VFPRINTF.
38473         * lib/stdio_.h (vfprintf): New declaration.
38474         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
38475         REPLACE_VFPRINTF.
38476
38477 2007-03-08  Bruno Haible  <bruno@clisp.org>
38478
38479         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
38480
38481 2007-03-08  Bruno Haible  <bruno@clisp.org>
38482
38483         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
38484         instead of 'expr' invocations.
38485         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38486         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38487         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38488         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38489         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38490         Suggested by Paul Eggert.
38491
38492 2007-03-08  Bruno Haible  <bruno@clisp.org>
38493
38494         * modules/fseterr-tests: New file.
38495         * tests/test-fseterr.c: New file.
38496
38497         * modules/fseterr: New file.
38498         * lib/fseterr.h: New file.
38499         * lib/fseterr.c: New file.
38500
38501 2007-03-08  Bruno Haible  <bruno@clisp.org>
38502
38503         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
38504         * lib/getopt_.h: Likewise.
38505         * lib/mbswidth.h: Likewise.
38506         * lib/setenv.h: Likewise.
38507         * lib/vasnprintf.h: Likewise.
38508         * lib/vasprintf.h: Likewise.
38509         * lib/verror.h: Likewise.
38510         * lib/xsetenv.h: Likewise.
38511         * lib/xvasprintf.h: Likewise.
38512
38513 2007-03-08  Jim Meyering  <jim@meyering.net>
38514
38515         * users.txt: Add parted.
38516
38517         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
38518
38519 2007-03-07  Bruno Haible  <bruno@clisp.org>
38520
38521         * m4/printf.m4: Make the shell script snippets copy&pastable.
38522
38523 2007-03-02  Bruno Haible  <bruno@clisp.org>
38524
38525         * lib/netinet_in_.h: New file.
38526         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
38527         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
38528         * modules/netinet_in (Files): Add lib/netinet_in_.h.
38529         (Depends-on): Add absolute-header.
38530         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
38531         into netinet/in.h.
38532
38533 2007-03-03  Bruno Haible  <bruno@clisp.org>
38534
38535         * lib/sys_select_.h: New file.
38536         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
38537         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
38538         * modules/sys_select (Files): Add lib/sys_select_.h.
38539         (Depends-on): Add absolute-header.
38540         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
38541         into sys/select.h.
38542
38543 2007-03-02  Bruno Haible  <bruno@clisp.org>
38544
38545         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
38546         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
38547         values.
38548         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
38549         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
38550         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
38551         * modules/sys_socket (Depends-on): Add absolute-header.
38552         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
38553         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
38554         (Include): Remove requirement of inclusion of <sys/types.h>.
38555
38556 2007-03-02  Bruno Haible  <bruno@clisp.org>
38557
38558         * lib/byteswap_.h (bswap_32): Fix formula.
38559
38560 2007-03-06  Bruno Haible  <bruno@clisp.org>
38561
38562         * modules/sprintf-posix-tests: New file.
38563         * tests/test-sprintf-posix.c: New file.
38564
38565         * modules/sprintf-posix: New file.
38566         * lib/sprintf.c: New file.
38567         * m4/sprintf-posix.m4: New file.
38568         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
38569         REPLACE_SPRINTF.
38570         * lib/stdio_.h (sprintf): New declaration.
38571         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
38572         REPLACE_SPRINTF.
38573
38574 2007-03-06  Bruno Haible  <bruno@clisp.org>
38575
38576         * modules/vsprintf-posix-tests: New file.
38577         * tests/test-vsprintf-posix.c: New file.
38578         * tests/test-sprintf-posix.h: New file.
38579
38580         * modules/vsprintf-posix: New file.
38581         * lib/vsprintf.c: New file.
38582         * m4/vsprintf-posix.m4: New file.
38583         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
38584         REPLACE_VSPRINTF.
38585         * lib/stdio_.h (vsprintf): New declaration.
38586         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
38587         REPLACE_VSPRINTF.
38588
38589 2007-03-06  Bruno Haible  <bruno@clisp.org>
38590
38591         * modules/vsnprintf (Depend-on): Remove minmax.
38592
38593 2007-03-06  Bruno Haible  <bruno@clisp.org>
38594
38595         * modules/snprintf-posix-tests: New file.
38596         * tests/test-snprintf-posix.c: New file.
38597
38598         * modules/snprintf-posix: New file.
38599         * m4/snprintf-posix.m4: New file.
38600         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
38601         gl_FUNC_SNPRINTF.
38602         (gl_FUNC_SNPRINTF): Invoke it.
38603         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
38604         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
38605         is set.
38606         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
38607
38608 2007-03-06  Bruno Haible  <bruno@clisp.org>
38609
38610         * modules/vsnprintf-posix-tests: New file.
38611         * tests/test-vsnprintf-posix.c: New file.
38612         * tests/test-snprintf-posix.h: New file.
38613
38614         * modules/vsnprintf-posix: New file.
38615         * m4/vsnprintf-posix.m4: New file.
38616         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
38617         gl_FUNC_VSNPRINTF.
38618         (gl_FUNC_VSNPRINTF): Invoke it.
38619         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
38620         * lib/stdio_.h (vsnprintf): Define as a replacement if
38621         REPLACE_VSNPRINTF is set.
38622         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
38623
38624 2007-03-06  Bruno Haible  <bruno@clisp.org>
38625
38626         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
38627         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
38628
38629 2007-03-06  Bruno Haible  <bruno@clisp.org>
38630
38631         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
38632         (asinl): Declare also if HAVE_DECL_ASINL is set.
38633         (atanl): Declare also if HAVE_DECL_ATANL is set.
38634         (ceill): Declare also if HAVE_DECL_CEILL is set.
38635         (cosl): Declare also if HAVE_DECL_COSL is set.
38636         (expl): Declare also if HAVE_DECL_EXPL is set.
38637         (floorl): Declare also if HAVE_DECL_FLOORL is set.
38638         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
38639         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
38640         (logl): Declare also if HAVE_DECL_LOGL is set.
38641         (sinl): Declare also if HAVE_DECL_SINL is set.
38642         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
38643         (tanl): Declare also if HAVE_DECL_TANL is set.
38644         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
38645         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
38646         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
38647         declaration of frexpl, ldexpl.
38648         * modules/printf-frexpl (Depends-on): Add math.
38649         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
38650
38651 2007-03-05  Bruno Haible  <bruno@clisp.org>
38652
38653         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
38654         frexpl and ldexpl are declared.
38655         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
38656
38657 2007-03-05  Bruno Haible  <bruno@clisp.org>
38658
38659         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
38660         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
38661
38662 2007-03-05  Bruno Haible  <bruno@clisp.org>
38663
38664         * lib/stdio_.h: Include <stddef.h>.
38665
38666 2007-03-05  Bruno Haible  <bruno@clisp.org>
38667
38668         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
38669
38670 2007-03-05  Bruno Haible  <bruno@clisp.org>
38671
38672         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
38673         NetBSD 4, from Ralf Wildenhues.
38674
38675 2007-03-04  Bruno Haible  <bruno@clisp.org>
38676
38677         * lib/vasprintf.h: Update #if logic for the case when the functions
38678         exist but are overridden.
38679
38680 2007-03-04  Bruno Haible  <bruno@clisp.org>
38681
38682         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
38683         implementations: glibc-2.4 and MacOS X 10.3.
38684         * tests/test-vasnprintf-posix.c (test_function): Test also the case
38685         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
38686         * tests/test-vasprintf-posix.c (test_function): Likewise.
38687
38688 2007-03-04  Bruno Haible  <bruno@clisp.org>
38689
38690         * modules/vasprintf-posix-tests: New file.
38691         * tests/test-vasprintf-posix.c: New file.
38692
38693         * modules/vasprintf-posix: New file.
38694         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
38695         defined.
38696         * m4/vasprintf-posix.m4: New file.
38697         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
38698         gl_FUNC_VASPRINTF.
38699         (gl_FUNC_VASPRINTF): Invoke it.
38700         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
38701         here.
38702         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
38703
38704 2007-03-04  Bruno Haible  <bruno@clisp.org>
38705
38706         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
38707         REPLACE_GETTIMEOFDAY.
38708         * modules/sys_time (Makefile.am): Likewise.
38709         * m4/sys_time_h.m4: Likewise.
38710         * m4/gettimeofday.m4: Likewise.
38711
38712 2007-03-04  Bruno Haible  <bruno@clisp.org>
38713
38714         * modules/vasnprintf-posix-tests: New file.
38715         * tests/test-vasnprintf-posix.c: New file.
38716
38717         * modules/vasnprintf-posix: New file.
38718         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
38719         printf-frexpl.h.
38720         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
38721         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
38722         REPLACE_VASNPRINTF is defined.
38723         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
38724         gl_FUNC_VASNPRINTF.
38725         (gl_FUNC_VASNPRINTF): Invoke it.
38726         * m4/vasnprintf-posix.m4: New file.
38727         * m4/printf.m4: New file.
38728
38729 2007-03-04  Bruno Haible  <bruno@clisp.org>
38730
38731         Compile progreloc.c only if --enable-relocatable is specified.
38732         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
38733         if --enable-relocatable was specified.
38734         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
38735         lib_SOURCES.
38736
38737 2007-03-04  Jim Meyering  <jim@meyering.net>
38738
38739         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
38740         Use it consistently, rather than enumerating errno constants.
38741
38742 2007-03-04  Bruno Haible  <bruno@clisp.org>
38743
38744         * modules/xvasprintf-tests: New file.
38745         * tests/test-xvasprintf.c: New file.
38746
38747         * modules/vasprintf-tests: New file.
38748         * tests/test-vasprintf.c: New file.
38749
38750         * modules/vasnprintf-tests: New file.
38751         * tests/test-vasnprintf.c: New file.
38752
38753         * modules/vsnprintf-tests: New file.
38754         * tests/test-vsnprintf.c: New file.
38755
38756         * modules/snprintf-tests: New file.
38757         * tests/test-snprintf.c: New file.
38758
38759 2007-03-04  Bruno Haible  <bruno@clisp.org>
38760
38761         Compile relocatable.c only if --enable-relocatable is specified.
38762         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
38763         gl_RELOCATABLE_LIBRARY.
38764         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
38765         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
38766         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
38767         gl_RELOCATABLE_LIBRARY.
38768         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
38769         (Makefile.am): Remove lib_SOURCES.
38770         * modules/relocatable-lib-lgpl (configure.ac): Invoke
38771         gl_RELOCATABLE_LIBRARY.
38772         (Makefile.am): Remove lib_SOURCES.
38773         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
38774         always.
38775         * modules/relocatable-prog-wrapper (configure.ac): Invoke
38776         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
38777
38778 2007-03-04  Bruno Haible  <bruno@clisp.org>
38779
38780         * modules/argmatch-tests: New file.
38781         * tests/test-argmatch.c: New file.
38782
38783         * tests/test-allocsa.c (main): Halve the number of loop runs.
38784
38785         * modules/alloca-opt-tests: New file.
38786         * tests/test-alloca-opt.c: New file.
38787
38788 2007-03-04  Jim Meyering  <jim@meyering.net>
38789
38790         Work around difference between Linux ACLs and Solaris 10 ZFS.
38791         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
38792         for EINVAL.
38793
38794 2007-03-03  Bruno Haible  <bruno@clisp.org>
38795
38796         * modules/relocatable-prog (Depends-on): Add back progreloc's
38797         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
38798
38799 2007-03-03  Bruno Haible  <bruno@clisp.org>
38800
38801         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
38802         * modules/relocatable-lib: New file.
38803
38804 2007-03-03  Bruno Haible  <bruno@clisp.org>
38805
38806         * modules/relocatable-prog: Renamed from modules/relocatable.
38807         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
38808
38809 2007-03-03  Bruno Haible  <bruno@clisp.org>
38810
38811         * modules/relocatable-script (Files): Add doc/relocatable.texi,
38812         m4/relocatable-lib.m4.
38813         (Depends-on): Remove 'relocatable'.
38814         (configure.ac): Add gl_RELOCATABLE_NOP.
38815
38816 2007-03-03  Bruno Haible  <bruno@clisp.org>
38817
38818         * modules/relocatable-prog-wrapper: New file.
38819         * modules/relocatable (Depends-on): Add it. Remove all other
38820         dependencies except progname.
38821         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
38822
38823         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
38824         (gl_FUNC_STRERROR): Nop.
38825         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
38826
38827         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
38828         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
38829
38830         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
38831         (gl_FUNC_READLINK): Update.
38832
38833         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
38834
38835 2007-03-03  Bruno Haible  <bruno@clisp.org>
38836
38837         * lib/xreadlink.c: Include <unistd.h> unconditionally.
38838         * modules/xreadlink (Depends-on): Add unistd.
38839         * modules/xreadlink-with-size (Depends-on): Likewise.
38840
38841 2007-03-03  Bruno Haible  <bruno@clisp.org>
38842
38843         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
38844         extracted from gt_FUNC_SETENV.
38845         (gt_FUNC_SETENV): Remove macro.
38846         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
38847         remove gt_FUNC_SETENV.
38848
38849 2007-03-03  Bruno Haible  <bruno@clisp.org>
38850
38851         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
38852         ENABLE_RELOCATABLE here.
38853         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
38854
38855 2007-03-03  Bruno Haible  <bruno@clisp.org>
38856
38857         * modules/rbtreehash-list-tests (Depends-on): Add progname.
38858         * tests/test-rbtreehash_list.c: Include progname.h.
38859         (main): Call set_program_name.
38860
38861         * modules/rbtree-oset-tests (Depends-on): Add progname.
38862         * tests/test-rbtree_oset.c: Include progname.h.
38863         (main): Call set_program_name.
38864
38865         * modules/rbtree-list-tests (Depends-on): Add progname.
38866         * tests/test-rbtree_list.c: Include progname.h.
38867         (main): Call set_program_name.
38868
38869         * modules/linked-list-tests (Depends-on): Add progname.
38870         * tests/test-linked_list.c: Include progname.h.
38871         (main): Call set_program_name.
38872
38873 2007-03-03  Bruno Haible  <bruno@clisp.org>
38874
38875         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
38876         All uses of __restrict changed to _Restrict_.
38877         * lib/glob_.h (__restrict): Remove macro.
38878
38879 2007-03-02  Bruno Haible  <bruno@clisp.org>
38880
38881         * modules/gettext (configure.ac): Require gettext infrastructure
38882         from version 0.16.1.
38883
38884 2007-03-02  Bruno Haible  <bruno@clisp.org>
38885
38886         * modules/linkedhash-list-tests (Depends-on): Add progname.
38887         * tests/test-linkedhash_list.c: Include progname.h.
38888         (main): Call set_program_name.
38889
38890         * modules/carray-list-tests (Depends-on): Add progname.
38891         * tests/test-carray_list.c: Include progname.h.
38892         (main): Call set_program_name.
38893
38894         * modules/avltreehash-list-tests (Depends-on): Add progname.
38895         * tests/test-avltreehash_list.c: Include progname.h.
38896         (main): Call set_program_name.
38897
38898         * modules/avltree-oset-tests (Depends-on): Add progname.
38899         * tests/test-avltree_oset.c: Include progname.h.
38900         (main): Call set_program_name.
38901
38902         * modules/avltree-list-tests (Depends-on): Add progname.
38903         * tests/test-avltree_list.c: Include progname.h.
38904         (main): Call set_program_name.
38905
38906         * modules/array-oset-tests (Depends-on): Add progname.
38907         * tests/test-array_oset.c: Include progname.h.
38908         (main): Call set_program_name.
38909
38910         * modules/array-list-tests (Depends-on): Add progname.
38911         * tests/test-array_list.c: Include progname.h.
38912         (main): Call set_program_name.
38913
38914         * modules/argp-tests (Depends-on): Add progname.
38915         * tests/test-argp.c: Include argp.h first. Include progname.h.
38916         (main): Call set_program_name.
38917
38918 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
38919
38920         * doc/gnulib-tool.texi (Initial import): Reword description of
38921         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
38922         limited effect even if defined after the first system include.
38923
38924 2007-03-01  Bruno Haible  <bruno@clisp.org>
38925
38926         * build-aux/config.libpath: Update to libtool-1.5.22.
38927         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38928
38929 2007-03-01  Bruno Haible  <bruno@clisp.org>
38930
38931         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
38932         foo_CFLAGS.
38933         Reported by Ralf Wildenhues.
38934
38935 2007-03-01  Bruno Haible  <bruno@clisp.org>
38936
38937         * build-aux/install-reloc: Remove object files left over by some
38938         compilers.
38939         Reported by Ralf Wildenhues.
38940
38941 2007-03-01  Bruno Haible  <bruno@clisp.org>
38942
38943         * build-aux/install-reloc: Break long lines.
38944
38945 2007-03-01  Bruno Haible  <bruno@clisp.org>
38946
38947         * doc/relocatable.texi: Document that it may not work on OpenBSD.
38948         Reported by Ralf Wildenhues.
38949
38950 2007-03-01  Bruno Haible  <bruno@clisp.org>
38951
38952         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
38953         include ordering constraints.
38954
38955 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
38956
38957         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
38958         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
38959         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
38960         as another example.
38961         * lib/time_.h: Fix misspelling.
38962         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
38963         Require gl_HEADER_TIME_H_DEFAULTS.
38964         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
38965         * m4/time_r.m4 (gl_TIME_R): Likewise.
38966         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
38967
38968 2007-03-01  Bruno Haible  <bruno@clisp.org>
38969
38970         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
38971         * m4/utimens.m4 (gl_UTIMENS): Likewise.
38972
38973 2007-03-01  Jim Meyering  <jim@meyering.net>
38974
38975         * modules/xreadlink (Maintainer): Add my name.
38976         * modules/xreadlink-with-size (Depends-on): Alphabetize.
38977
38978 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
38979             Bruno Haible  <bruno@clisp.org>
38980
38981         * build-aux/install-reloc: Compile also c-ctype.c.
38982         * build-aux/relocatable.sh.in: New file.
38983         * doc/relocatable.texi: New file.
38984         * doc/relocatable-maint.texi: New file.
38985         * doc/gnulib.texi: Include relocatable-maint.texi.
38986         * lib/progreloc.c: Include unistd.h unconditionally.
38987         * lib/relocwrapper.c: Include unistd.h unconditionally.
38988         Include c-ctype.h.
38989         (add_dotbin): Use c_tolower.
38990         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
38991         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
38992         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
38993         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
38994         to m4/relocatable-lib.m4.
38995         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
38996         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
38997         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
38998         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
38999         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
39000         * modules/relocatable: New file.
39001         * modules/relocatable-lib: New file.
39002         * modules/relocatable-script: New file.
39003
39004 2007-02-28  Bruno Haible  <bruno@clisp.org>
39005
39006         Import --enable-relocatable infrastructure.
39007         * build-aux/config.libpath: New file, from GNU gettext.
39008         * build-aux/install-reloc: New file, from GNU gettext.
39009         * build-aux/reloc-ldflags: New file, from GNU gettext.
39010         * lib/relocatable.h: New file, from GNU gettext.
39011         * lib/relocatable.c: New file, from GNU gettext.
39012         * lib/relocwrapper.c: New file, from GNU gettext.
39013         * m4/relocatable.m4: New file, from GNU gettext.
39014
39015 2007-02-28  Bruno Haible  <bruno@clisp.org>
39016
39017         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
39018
39019         * modules/xreadlink: New file, from GNU gettext with modifications.
39020         * lib/xreadlink.c: New file, from GNU gettext.
39021         * lib/xreadlink.h: Add comments.
39022         (xreadlink): New declaration.
39023
39024         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
39025         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
39026         lib/xreadlink-with-size.c.
39027         (configure.ac): Remove gl_XREADLINK invocation.
39028         (Makefile.am): Augment lib_SOURCES.
39029         * m4/xreadlink.m4: Remove file.
39030         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
39031         (xreadlink_with_size): Renamed from xreadink.
39032         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
39033         * modules/canonicalize (Depends-on): Replace xreadlink with
39034         xreadlink-with-size.
39035         * lib/canonicalize.c (canonicalize_filename_mode): Update.
39036
39037 2007-02-25  Jim Meyering  <jim@meyering.net>
39038
39039         * build-aux/announce-gen: When complaining about excess arguments,
39040         list them.
39041
39042 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
39043
39044         * README: Document signed integer overflow situation more
39045         accurately.
39046
39047 2007-02-25  Bruno Haible  <bruno@clisp.org>
39048
39049         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
39050         'a' or 'A' conversion.
39051
39052 2007-02-25  Bruno Haible  <bruno@clisp.org>
39053
39054         * modules/filename: Renamed from modules/pathname.
39055         (Files): Replace lib/pathname.h with lib/filename.h. Replace
39056         lib/concatpath.c with lib/concat-filename.c.
39057         (Makefile.am): Update.
39058         (Include): Replace pathname.h with filename.h.
39059         * lib/filename.h: Renamed from lib/pathname.h.
39060         (concatenated_filename): Renamed from concatenated_pathname.
39061         * lib/concat-filename.c: Renamed from lib/concatpath.c.
39062         (concatenated_filename): Renamed from concatenated_pathname.
39063         * lib/findprog.c: Include filename.h instead of pathname.h.
39064         (find_in_path): Update.
39065         * lib/javacomp.c: Include filename.h instead of pathname.h.
39066         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
39067         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
39068         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
39069         is_oldgcj_14_13_usable, is_javac_usable): Update.
39070         * lib/javaexec.c: Include filename.h instead of pathname.h.
39071         (execute_java_class): Update.
39072         * modules/findprog: Update.
39073         * modules/javacomp: Update.
39074         * modules/javaexec: Update.
39075         * MODULES.html.sh (File system functions): Add 'filename', remove
39076         'pathname'.
39077
39078 2007-02-25  Bruno Haible  <bruno@clisp.org>
39079
39080         * modules/printf-frexpl-tests: New file.
39081         * tests/test-printf-frexpl.c: New file.
39082
39083         * modules/printf-frexpl: New file.
39084         * lib/printf-frexpl.h: New file.
39085         * lib/printf-frexpl.c: New file.
39086         * m4/printf-frexpl.m4: New file.
39087
39088 2007-02-25  Bruno Haible  <bruno@clisp.org>
39089
39090         * modules/printf-frexp-tests: New file.
39091         * tests/test-printf-frexp.c: New file.
39092
39093         * modules/printf-frexp: New file.
39094         * lib/printf-frexp.h: New file.
39095         * lib/printf-frexp.c: New file.
39096         * m4/printf-frexp.m4: New file.
39097
39098 2007-02-25  Bruno Haible  <bruno@clisp.org>
39099
39100         Assume automake >= 1.10 for the tests.
39101         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
39102         * modules/arctwo-tests: Likewise.
39103         * modules/argp-tests: Likewise.
39104         * modules/avltree-list-tests: Likewise.
39105         * modules/avltree-oset-tests: Likewise.
39106         * modules/avltreehash-list-tests: Likewise.
39107         * modules/carray-list-tests: Likewise.
39108         * modules/crc-tests: Likewise.
39109         * modules/des-tests: Likewise.
39110         * modules/gc-arcfour-tests: Likewise.
39111         * modules/gc-arctwo-tests: Likewise.
39112         * modules/gc-des-tests: Likewise.
39113         * modules/gc-hmac-md5-tests: Likewise.
39114         * modules/gc-hmac-sha1-tests: Likewise.
39115         * modules/gc-md2-tests: Likewise.
39116         * modules/gc-md4-tests: Likewise.
39117         * modules/gc-md5-tests: Likewise.
39118         * modules/gc-pbkdf2-sha1-tests: Likewise.
39119         * modules/gc-rijndael-tests: Likewise.
39120         * modules/gc-sha1-tests: Likewise.
39121         * modules/gc-tests: Likewise.
39122         * modules/getaddrinfo-tests: Likewise.
39123         * modules/hmac-md5-tests: Likewise.
39124         * modules/hmac-sha1-tests: Likewise.
39125         * modules/linked-list-tests: Likewise.
39126         * modules/linkedhash-list-tests: Likewise.
39127         * modules/lock-tests: Likewise.
39128         * modules/md2-tests: Likewise.
39129         * modules/md4-tests: Likewise.
39130         * modules/md5-tests: Likewise.
39131         * modules/rbtree-list-tests: Likewise.
39132         * modules/rbtree-oset-tests: Likewise.
39133         * modules/rbtreehash-list-tests: Likewise.
39134         * modules/read-file-tests: Likewise.
39135         * modules/rijndael-tests: Likewise.
39136         * modules/stdint-tests: Likewise.
39137         * modules/tls-tests: Likewise.
39138
39139 2007-02-24  Bruno Haible  <bruno@clisp.org>
39140
39141         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
39142         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
39143         function; instead check whether isnan with a double argument links.
39144         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
39145         function; instead check whether isnan with a 'long double' argument
39146         links.
39147         Reported by Eric Blake <ebb9@byu.net>.
39148
39149 2007-02-24  Bruno Haible  <bruno@clisp.org>
39150
39151         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
39152         defined.
39153         * lib/isnanl.c: Remove all code. Just include isnan.c.
39154         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
39155
39156 2007-02-25  Jim Meyering  <jim@meyering.net>
39157
39158         Avoid conflicting types for 'unsetenv' on FreeBSD.
39159         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
39160         conflicting with FreeBSD's (5.0 and 6.1) function declaration
39161         in stdlib.h.
39162
39163 2007-02-24  Bruno Haible  <bruno@clisp.org>
39164
39165         * modules/isnanl-nolibm-tests: New file.
39166         * tests/test-isnanl.c: New file.
39167
39168         * modules/isnanl-nolibm: New file.
39169         * lib/isnanl.h: New file.
39170         * lib/isnanl.c: New file.
39171         * m4/isnanl.m4: New file.
39172
39173 2007-02-24  Bruno Haible  <bruno@clisp.org>
39174
39175         * modules/isnan-nolibm-tests: New file.
39176         * tests/test-isnan.c: New file.
39177
39178         * modules/isnan-nolibm: New file.
39179         * lib/isnan.h: New file.
39180         * lib/isnan.c: New file.
39181         * m4/isnan.m4: New file.
39182
39183 2007-02-24  Bruno Haible  <bruno@clisp.org>
39184
39185         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
39186         assume that an exponent fits in 20 bits.
39187
39188 2007-02-24  Jim Meyering  <jim@meyering.net>
39189
39190         * m4/regex.m4: Update the description of the configure-time option,
39191         --without-included-regex, to state accurately what the defaults are,
39192         and perhaps to give people an idea why using this option is risky.
39193
39194 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
39195
39196         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
39197         loops on small arguments.  This attempts to avoid the problem
39198         Bruno Haible reported for AIX 4.3.2 in
39199         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
39200
39201 2007-02-23  Bruno Haible  <bruno@clisp.org>
39202
39203         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
39204         Needed for help2man.
39205
39206 2007-02-23  Karl Berry  <karl@gnu.org>
39207
39208         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
39209         exists, foo.h should be cvs-ignored, not committed.
39210
39211 2007-02-23  Eric Blake  <ebb9@byu.net>
39212
39213         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
39214         * lib/stat-time.h (includes): Likewise.
39215         * lib/utimecmp.c (includes): Likewise.
39216         * lib/utimens.h (includes): Likewise.
39217         * lib/getdate.y (includes): Also include "timespec.h" for use
39218         internal to the module.
39219         * modules/utimens (Depends-on): Revert yesterday's patch.
39220         * modules/nanosleep (Depends-on): Add missing dependency.
39221
39222 2007-02-22  Bruno Haible  <bruno@clisp.org>
39223
39224         * lib/glob.c: Don't include getlogin_r.h.
39225
39226 2007-02-22  Jim Meyering  <jim@meyering.net>
39227
39228         * modules/utimens (Depends-on): Add timespec, required for
39229         utimens.h's inclusion of timespec.h.
39230
39231 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
39232
39233         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
39234         long unreadable paths in GNU/Linux.  Problem reported by Andreas
39235         Schwab in
39236         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
39237         I'll try to think of a better way to fix the Solaris problem.
39238
39239         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
39240         like glibc; on Solaris 10, it fails with errno == EINVAL.
39241         POSIX says the behavior is unspecified if the first argument is NULL,
39242         so play it safe and never pass NULL to the system getcwd.
39243
39244 2007-02-21  Jim Meyering  <jim@meyering.net>
39245
39246         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
39247         of gettimeofday.  It would conflict with the one now always
39248         provided via sys_time_.h.  Reported by Matthew Woehlke, as
39249         an IRIX 6.5 build failure.
39250
39251 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
39252
39253         Minor fixups to port to Solaris 10 with Sun C 5.8.
39254         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
39255         * modules/getcwd (Depends-on): Add dirfd.
39256         * lib/putenv.c (putenv): #undef it.
39257         (rpl_putenv): New decl.
39258         (malloc, free): Include <stdlib.h> rather than prototyping separately.
39259
39260 2007-02-20  Bruno Haible  <bruno@clisp.org>
39261
39262         * modules/stdio-tests: New file.
39263         * tests/test-stdio.c: New file.
39264
39265         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
39266         (Depends-on): Add stdio.
39267         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
39268         (Include): Use <stdio.h> instead of vsnprintf.h.
39269         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
39270         HAVE_DECL_VSNPRINTF.
39271         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
39272
39273         * modules/snprintf (Files): Remove lib/snprintf.h.
39274         (Depends-on): Add stdio.
39275         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
39276         (Include): Use <stdio.h> instead of snprintf.h.
39277         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
39278         HAVE_DECL_SNPRINTF.
39279         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
39280         * lib/getaddrinfo.c: Likewise.
39281
39282         * modules/stdio: New file.
39283         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
39284         * lib/snprintf.h: Remove file.
39285         * lib/vsnprintf.h: Remove file.
39286         * lib/.cppi-disable: Remove snprintf.h.
39287         * m4/stdio_h.m4: New file.
39288         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
39289
39290 2007-02-20  Jim Meyering  <jim@meyering.net>
39291
39292         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
39293         used by e.g., mingw.  From Bruno Haible.
39294
39295 2007-02-19  Bruno Haible  <bruno@clisp.org>
39296
39297         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
39298         warnings.
39299         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39300
39301 2007-02-19  Bruno Haible  <bruno@clisp.org>
39302
39303         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
39304         from mingw users.
39305
39306 2007-02-19  Bruno Haible  <bruno@clisp.org>
39307
39308         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
39309         warnings.
39310         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
39311
39312 2007-02-19  Jim Meyering  <jim@meyering.net>
39313
39314         Don't use FD after a successful "fdopendir (fd)".
39315         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
39316         Reset it by calling dirfd on the just-obtained DIR*.
39317
39318         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
39319         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
39320
39321 2007-02-18  Bruno Haible  <bruno@clisp.org>
39322
39323         * lib/readlink.c: Include <unistd.h>.
39324         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
39325         HAVE_READLINK.
39326         * modules/readlink (Depends-on): Add unistd.
39327         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39328         (Include): Add <unistd.h>.
39329
39330         * lib/getlogin_r.h: Remove file.
39331         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
39332         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
39333         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
39334         HAVE_DECL_GETLOGIN_R.
39335         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
39336         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39337         (Include): Use <unistd.h> instead of getlogin_r.h.
39338
39339         * lib/getcwd.h: Remove file.
39340         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
39341         * lib/xgetcwd.c: Likewise.
39342         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
39343         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
39344         * modules/getcwd (Files): Remove lib/getcwd.h.
39345         (Depends-on): Add unistd.
39346         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39347         (Include): Use <unistd.h> instad of getcwd.h.
39348
39349         * lib/ftruncate.c: Include <unistd.h> first.
39350         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
39351         Set HAVE_FTRUNCATE.
39352         * modules/ftruncate (Depends-on): Add unistd.
39353         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39354
39355         * lib/fchdir.c: Include <unistd.h> first.
39356         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
39357         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
39358         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
39359         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39360         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
39361
39362         * lib/dup2.c: Include <unistd.h> first.
39363         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
39364         HAVE_DUP2.
39365         * modules/dup2 (Depends-on): Add unistd.
39366         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39367
39368         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
39369         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
39370         REPLACE_CHOWN. Don't define chown as a macro here.
39371         * modules/chown (Depends-on): Add unistd.
39372         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39373
39374         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
39375         Add definition for GL_LINK_WARNING.
39376         (chown, dup2): New declarations.
39377         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
39378         link warning.
39379         (ftruncate): New declaration.
39380         (getcwd): New declaration, taken from old getcwd.h.
39381         (getlogin_r): New declaration, taken from old getlogin_r.h.
39382         (readlink): New declaration.
39383         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
39384         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
39385         (gl_PREREQ_UNISTD): Remove macro.
39386         (gl_UNISTD_MODULE_INDICATOR): New macro.
39387         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
39388         many new variables. Don't set UNISTD_H.
39389         * modules/unistd (Description): Change.
39390         (Depends-on): Add link-warning.
39391         (configure.ac): Update.
39392         (Makefile.am): Create unistd.h always. Substitute many new variables
39393         into it.
39394
39395 2007-02-18  Bruno Haible  <bruno@clisp.org>
39396
39397         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
39398         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
39399         HAVE_GETSUBOPT.
39400         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
39401         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
39402         * lib/getsubopt.h: Remove file.
39403         * modules/getsubopt (Files): Remove lib/getsubopt.h.
39404         (Depends-on): Add stdlib.
39405         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39406         (Includes): Use <stdlib.h> instead of getsubopt.h.
39407         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
39408         Set HAVE_GETSUBOPT.
39409         * lib/getsubopt.c: Don't include getsubopt.h.
39410
39411 2007-02-18  Bruno Haible  <bruno@clisp.org>
39412
39413         * modules/fchdir (Depends-on): Add dup2.
39414
39415 2007-02-18  Bruno Haible  <bruno@clisp.org>
39416
39417         * lib/stdlib_.h: Handle glibc's special invocation convention
39418         specially.
39419
39420 2007-02-18  Bruno Haible  <bruno@clisp.org>
39421
39422         * modules/stdlib-tests: New file.
39423         * tests/test-stdlib.c: New file.
39424
39425         * modules/mkstemp (Files): Remove lib/mkstemp.h.
39426         (Depends-on): Add stdlib.
39427         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39428         (Includes): Use <stdlib.h> instead of mkstemp.h.
39429         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
39430         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
39431         * lib/mkstemp.c: Don't include mkstemp.h.
39432         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
39433         * lib/stdlib--.h: Don't include mkstemp.h.
39434
39435         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
39436         (Depends-on): Add stdlib.
39437         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39438         (Includes): Use <stdlib.h> instead of mkdtemp.h.
39439         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
39440         HAVE_MKDTEMP.
39441         * lib/mkdtemp.c: Don't include mkdtemp.h.
39442         * lib/clean-temp.c: Don't include mkdtemp.h.
39443
39444         * modules/exit (Files): Remove lib/exit.h.
39445         (Depends-on): Add stdlib.
39446         (Makefile.am): Remove lib_SOURCES.
39447         (Include): Use <stdlib.h> instead of exit.h.
39448         * lib/argmatch.c: Don't include exit.h.
39449         * lib/execute.c: Likewise.
39450         * lib/pagealign_alloc.c: Likewise.
39451         * lib/pipe.c: Likewise.
39452         * lib/wait-process.c: Likewise.
39453         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
39454         * lib/exitfail.c: Likewise.
39455         * lib/savewd.c: Likewise.
39456         * lib/xsetenv.c: Likewise.
39457
39458         * modules/stdlib: New file.
39459         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
39460         and extra comments about mkstemp().
39461         * lib/exit.h: Remove file.
39462         * lib/mkdtemp.h: Remove file.
39463         * lib/mkstemp.h: Remove file.
39464         * m4/stdlib_h.m4: New file.
39465         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
39466
39467 2007-02-18  Bruno Haible  <bruno@clisp.org>
39468
39469         * modules/math-tests: New file.
39470         * tests/test-math.c: New file.
39471
39472         * modules/math: New file.
39473         * modules/mathl (Files): Remove lib/mathl.h.
39474         (Depends-on): Add math.
39475         (Makefile.am): Don't mention mathl.h.
39476         (Include): Use <math.h> instead of mathl.h.
39477         * lib/math_.h: New file.
39478         * lib/mathl.h: Remove file.
39479         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
39480         mathl.h.
39481         * lib/asinl.c: Likewise.
39482         * lib/atanl.c: Likewise.
39483         * lib/ceill.c: Likewise.
39484         * lib/cosl.c: Likewise.
39485         * lib/expl.c: Likewise.
39486         * lib/floorl.c: Likewise.
39487         * lib/frexpl.c: Likewise.
39488         * lib/ldexpl.c: Likewise.
39489         * lib/logl.c: Likewise.
39490         * lib/sincosl.c: Likewise.
39491         * lib/sinl.c: Likewise.
39492         * lib/sqrtl.c: Likewise.
39493         * lib/tanl.c: Likewise.
39494         * lib/trigl.c: Likewise.
39495         * m4/math_h.m4: New file.
39496         * MODULES.html.sh (Mathematics): Add math.
39497
39498 2007-02-17  Bruno Haible  <bruno@clisp.org>
39499
39500         * modules/wctype-tests: New file.
39501         * tests/test-wctype.c: New file.
39502
39503         * modules/wchar-tests: New file.
39504         * tests/test-wchar.c: New file.
39505
39506         * modules/unistd-tests: New file.
39507         * tests/test-unistd.c: New file.
39508
39509         * modules/time-tests: New file.
39510         * tests/test-time.c: New file.
39511
39512         * modules/sysexits-tests: New file.
39513         * tests/test-sysexits.c: New file.
39514
39515         * modules/sys_time-tests: New file.
39516         * tests/test-sys_time.c: New file.
39517
39518         * modules/sys_stat-tests: New file.
39519         * tests/test-sys_stat.c: New file.
39520
39521         * modules/sys_socket-tests: New file.
39522         * tests/test-sys_socket.c: New file.
39523
39524         * modules/sys_select-tests: New file.
39525         * tests/test-sys_select.c: New file.
39526
39527         * modules/string-tests: New file.
39528         * tests/test-string.c: New file.
39529
39530         * modules/stdbool-tests: New file.
39531         * tests/test-stdbool.c: New file.
39532
39533         * modules/netinet_in-tests: New file.
39534         * tests/test-netinet_in.c: New file.
39535
39536         * modules/inttypes-tests: New file.
39537         * tests/test-inttypes.c: New file.
39538
39539         * modules/fcntl-tests: New file.
39540         * tests/test-fcntl.c: New file.
39541
39542         * modules/byteswap-tests: New file.
39543         * tests/test-byteswap.c: New file.
39544
39545         * modules/arpa_inet-tests: New file.
39546         * tests/test-arpa_inet.c: New file.
39547
39548 2007-02-17  Bruno Haible  <bruno@clisp.org>
39549
39550         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
39551         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
39552         if the corresponding module is not enabled. Emit link warnings if
39553         the function is used nevertheless.
39554         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
39555         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
39556         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
39557         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
39558         * modules/inttypes (Depends-on): Add link-warning.
39559         (Makefile.am): Copy the contents of build-aux/link-warning.h into
39560         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
39561         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
39562         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
39563         * modules/imaxdiv (configure.ac): Likewise.
39564         * modules/strtoimax (configure.ac): Likewise.
39565         * modules/strtoumax (configure.ac): Likewise.
39566
39567 2007-02-17  Bruno Haible  <bruno@clisp.org>
39568
39569         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
39570         gl_STRING_MODULE_INDICATOR_DEFAULTS.
39571         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
39572         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
39573
39574 2007-02-17  Bruno Haible  <bruno@clisp.org>
39575
39576         * modules/link-warning: New file.
39577         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
39578         * lib/string_.h (GL_LINK_WARNING): Remove definition.
39579         * modules/string (Depends-on): Add link-warning.
39580         (Makefile.am): Copy the contents of build-aux/link-warning.h into
39581         string.h.
39582         * MODULES.html.sh (Support for building libraries and executables): Add
39583         link-warning.
39584
39585 2007-02-17  Bruno Haible  <bruno@clisp.org>
39586
39587         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
39588         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
39589         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
39590         long lines.
39591
39592 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
39593             Bruno Haible  <bruno@clisp.org>
39594
39595         * modules/tmpfile: New file.
39596         * lib/tmpfile.c: New file.
39597         * m4/tmpfile.m4: New file.
39598         * MODULES.html.sh (func_all_modules): New section "Input/output".
39599
39600 2007-02-15  Bruno Haible  <bruno@clisp.org>
39601
39602         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
39603         (supports_delete_on_close): New function.
39604         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
39605
39606 2007-02-14  Bruno Haible  <bruno@clisp.org>
39607
39608         * modules/mbspcasecmp-tests: New file.
39609         * tests/test-mbspcasecmp.sh: New file.
39610         * tests/test-mbspcasecmp.c: New file.
39611
39612         New module mbspcasecmp.
39613         * modules/mbspcasecmp: New file.
39614         * lib/mbspcasecmp.c: New file.
39615         * lib/string_.h (strncasecmp): Change warning message.
39616         (mbspcasecmp): New declaration.
39617         * m4/mbspcasecmp.m4: New file.
39618         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39619         GNULIB_MBSPCASECMP.
39620         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
39621         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
39622
39623 2007-02-14  Bruno Haible  <bruno@clisp.org>
39624
39625         * modules/mbsncasecmp-tests: New file.
39626         * tests/test-mbsncasecmp.sh: New file.
39627         * tests/test-mbsncasecmp.c: New file.
39628
39629         New module mbsncasecmp.
39630         * modules/mbsncasecmp: New file.
39631         * lib/mbsncasecmp.c: New file.
39632         * lib/string_.h (mbsncasecmp): New declaration.
39633         * m4/mbsncasecmp.m4: New file.
39634         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39635         GNULIB_MBSNCASECMP.
39636         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
39637         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
39638
39639 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
39640
39641         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
39642         Verify that it doesn't overlap with our flags.
39643         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
39644         do not have the desired effect in multibyte locales; instead, use
39645         mbscasecmp.
39646         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
39647         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
39648         we don't require GNU fnmatch ourselves (if our users require it, they
39649         should do so explicitly).
39650
39651         Fix regex code so it doesn't rely on strcasecmp.
39652         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
39653         Otherwise, include gnulib's langinfo.h.
39654         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
39655         undesirable behavior in non-C locales.  Instead, rely on localecharset.
39656         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
39657         * modules/regex (FILES): Remove m4/codeset.m4.
39658         (Depends-on): Add localcharset.  Remove strcase.
39659
39660 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39661
39662         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
39663         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
39664
39665 2007-02-13  Bruno Haible  <bruno@clisp.org>
39666
39667         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
39668         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39669
39670 2007-02-12  Bruno Haible  <bruno@clisp.org>
39671
39672         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
39673         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
39674         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
39675         time warning rather than a link error.
39676
39677 2007-02-12  Bruno Haible  <bruno@clisp.org>
39678
39679         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
39680         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
39681         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39682
39683 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
39684
39685         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
39686         args, not 2.
39687
39688 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
39689
39690         New module 'time', so that apps can include <time.h> as per
39691         POSIX and GNU instead of separate include files like time_r.h
39692         and timegm.h.  This implementation tries out a simpler approach
39693         for replacing decls in standard include files (as compared to
39694         the string module), somewhat as an experiment.
39695
39696         * config/srclist.txt: Comment out mktime.c for now.
39697         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
39698         since it doesn't apply any more.  Use generic wording instead.
39699         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
39700         'time'.
39701         * lib/time_.h, m4/time_h.m4, modules/time: New files.
39702         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
39703         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
39704         Don't include <sys/types.h>; no longer needed since we assume C89.
39705         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
39706         * lib/strftime.c: Likewise.
39707         * lib/time_r.c: Likewise.
39708         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
39709         * lib/nanosleep.c: Include <time.h> first, to check interface.
39710         * lib/strptime.c: Likewise.
39711         * lib/time_r.c: Likewise.
39712         * lib/timegm.c: Likewise.
39713         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
39714         needed.
39715         * lib/timegm.c: Don't include timegm.h; no longer needed.
39716         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
39717         time.h now handles any problems in that area.
39718         (struct timespec, nanosleep): Remove; time.h now arranges for these.
39719         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
39720         that time.h defines struct timespec.
39721         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
39722         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
39723         handles that.
39724         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
39725         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
39726         needed.  Set REPLACE_LOCALTIME.
39727         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
39728         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
39729         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
39730         nanosleep; time_h.m4 now does that.  Don't require
39731         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
39732         module handles this now.
39733         * modules/getdate (Depends-on): Remove timespec.  Add time.
39734         * modules/nanosleep (Depends-on): Likewise.
39735         * modules/stat-time (Depends-on): Likewise.
39736         * modules/nanosleep (Include): Include time.h, not timespec.h.
39737         * modules/strptime (Files): Remove lib/strptime.h.
39738         (Depends-on): Add extensions, time.
39739         (Include): Include time.h, not strptime.h.
39740         * modules/time_r (Files): Remove lib/time_r.h.
39741         (Depends-on): Add time.
39742         (Include): Include time.h, not time_r.h.
39743         * modules/timegm: Likewise.
39744         * modules/timespec (Description): Now does timespec-related decls
39745         of our own, instead of struct timespec itself.
39746         (Depends-on): Add time; remove extensions.
39747         (Maintainer): Add self.
39748         * modules/utimecmp (Depends-on): Add time; remove timespec.
39749         * modules/utimens (Depends-on): Likewise.
39750         * modules/xnanosleep (Depends-on): Likewise.
39751
39752 2007-02-11  Bruno Haible  <bruno@clisp.org>
39753
39754         * lib/c-strstr.c: Include allocsa.h.
39755         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
39756         * lib/c-strcasestr.c: Include allocsa.h.
39757         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
39758         * lib/strcasestr.c: Include allocsa.h.
39759         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
39760         * lib/mbsstr.c: Include allocsa.h.
39761         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
39762         allocsa/freesa instead of malloc/free.
39763         * lib/mbscasestr.c: Include allocsa.h.
39764         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
39765         allocsa/freesa instead of malloc/free.
39766         * modules/c-strstr (Depends-on): Add allocsa.
39767         * modules/c-strcasestr (Depends-on): Likewise.
39768         * modules/strcasestr (Depends-on): Likewise.
39769         * modules/mbsstr (Depends-on): Likewise.
39770         * modules/mbscasestr (Depends-on): Likewise.
39771
39772 2007-02-11  Bruno Haible  <bruno@clisp.org>
39773
39774         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
39775
39776         * modules/mbsspn-tests: New file.
39777         * tests/test-mbsspn.sh: New file.
39778         * tests/test-mbsspn.c: New file.
39779
39780 2007-02-11  Bruno Haible  <bruno@clisp.org>
39781
39782         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
39783
39784         * modules/mbspbrk-tests: New file.
39785         * tests/test-mbspbrk.sh: New file.
39786         * tests/test-mbspbrk.c: New file.
39787
39788 2007-02-11  Bruno Haible  <bruno@clisp.org>
39789
39790         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
39791         unneeded cast.
39792
39793         * modules/mbscspn-tests: New file.
39794         * tests/test-mbscspn.sh: New file.
39795         * tests/test-mbscspn.c: New file.
39796
39797 2007-02-11  Bruno Haible  <bruno@clisp.org>
39798
39799         * modules/mbscasecmp-tests: New file.
39800         * tests/test-mbscasecmp.sh: New file.
39801         * tests/test-mbscasecmp.c: New file.
39802
39803 2007-02-11  Bruno Haible  <bruno@clisp.org>
39804
39805         Ensure O(n) worst-case complexity of mbscasestr.
39806         * lib/mbscasestr.c: Include stdbool.h.
39807         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
39808         functions.
39809         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
39810         the bookkeeping indicates that it's worth it.
39811         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
39812
39813         * modules/mbscasestr-tests: New file.
39814         * tests/test-mbscasestr1.c: New file.
39815         * tests/test-mbscasestr2.sh: New file.
39816         * tests/test-mbscasestr2.c: New file.
39817         * tests/test-mbscasestr3.sh: New file.
39818         * tests/test-mbscasestr3.c: New file.
39819         * tests/test-mbscasestr4.sh: New file.
39820         * tests/test-mbscasestr4.c: New file.
39821         * m4/locale-tr.m4: New file.
39822
39823 2007-02-11  Bruno Haible  <bruno@clisp.org>
39824
39825         Ensure O(n) worst-case complexity of mbsstr.
39826         * lib/mbsstr.c: Include stdbool.h.
39827         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
39828         functions.
39829         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
39830         bookkeeping indicates that it's worth it.
39831         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
39832
39833         * modules/mbsstr-tests: New file.
39834         * tests/test-mbsstr1.c: New file.
39835         * tests/test-mbsstr2.sh: New file.
39836         * tests/test-mbsstr2.c: New file.
39837         * tests/test-mbsstr3.sh: New file.
39838         * tests/test-mbsstr3.c: New file.
39839         * m4/locale-fr.m4: New file.
39840
39841 2007-02-11  Bruno Haible  <bruno@clisp.org>
39842
39843         * lib/mbsrchr.c (mbsrchr): Fix bug.
39844
39845         * modules/mbsrchr-tests: New file.
39846         * tests/test-mbsrchr.sh: New file.
39847         * tests/test-mbsrchr.c: New file.
39848
39849 2007-02-11  Bruno Haible  <bruno@clisp.org>
39850
39851         * lib/mbschr.c (mbschr): Fix bug.
39852
39853         * modules/mbschr-tests: New file.
39854         * tests/test-mbschr.sh: New file.
39855         * tests/test-mbschr.c: New file.
39856         * m4/locale-zh.m4: New file.
39857
39858 2007-02-11  Bruno Haible  <bruno@clisp.org>
39859
39860         Support for copying multibyte string iterators.
39861         * lib/mbiter.h: Include <string.h>.
39862         (mbiter_multi_copy): New function.
39863         (mbi_copy): New macro.
39864         * lib/mbuiter.h: Include <string.h>.
39865         (mbuiter_multi_copy): New function.
39866         (mbui_copy): New macro.
39867
39868 2007-02-11  Bruno Haible  <bruno@clisp.org>
39869
39870         New module mbslen.
39871         * modules/mbslen: New file.
39872         * lib/mbslen.c: New file.
39873         * lib/string_.h (mbslen): New declaration.
39874         * m4/mbslen.m4: New file.
39875         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39876         GNULIB_MBSLEN.
39877         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
39878         * MODULES.html.sh (Internationalization functions): Add mbslen.
39879
39880 2007-02-11  Bruno Haible  <bruno@clisp.org>
39881
39882         Ensure O(n) worst-case complexity of strcasestr substitute.
39883         * lib/strcasestr.c: Include stdbool.h.
39884         (knuth_morris_pratt): New function.
39885         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
39886         bookkeeping indicates that it's worth it.
39887         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
39888
39889         * modules/strcasestr-tests: New file.
39890         * tests/test-strcasestr.c: New file.
39891
39892 2007-02-11  Bruno Haible  <bruno@clisp.org>
39893
39894         Ensure O(n) worst-case complexity of c_strcasestr.
39895         * lib/c-strcasestr.c: Include stdbool.h, string.h.
39896         (knuth_morris_pratt): New function.
39897         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
39898         the bookkeeping indicates that it's worth it.
39899         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
39900
39901         * modules/c-strcasestr-tests: New file.
39902         * tests/test-c-strcasestr.c: New file.
39903
39904 2007-02-11  Bruno Haible  <bruno@clisp.org>
39905
39906         Ensure O(n) worst-case complexity of c_strstr.
39907         * lib/c-strstr.c: Include stdbool.h, string.h.
39908         (knuth_morris_pratt): New function.
39909         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
39910         bookkeeping indicates that it's worth it.
39911         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
39912
39913         * lib/c-strstr.c: Complete rewrite for maintainability.
39914
39915         * modules/c-strstr-tests: New file.
39916         * tests/test-c-strstr.c: New file.
39917
39918 2007-02-11  Bruno Haible  <bruno@clisp.org>
39919
39920         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
39921         5.2.1 and earlier, whereby \055 was treated just like the range
39922         delimiter '-'.
39923         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
39924
39925 2007-02-08  Bruno Haible  <bruno@clisp.org>
39926
39927         * modules/regex (Depends-on): Add stdbool.
39928         Reported by Dalibor Topic <robilad@kaffe.org>.
39929
39930 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
39931
39932         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
39933         Prefer returning from main to exiting from it.
39934         Remove unnecessary parens after sizeof.
39935
39936 2007-02-05  Bruno Haible  <bruno@clisp.org>
39937
39938         New module mbssep.
39939         * modules/mbssep: New file.
39940         * lib/mbssep.c: New file.
39941         * lib/string_.h (strsep): Add a conditional link warning.
39942         (mbssep): New declaration.
39943         * m4/mbssep.m4: New file.
39944         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39945         GNULIB_MBSSEP.
39946         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
39947         * MODULES.html.sh (Internationalization functions): Add mbssep.
39948
39949 2007-02-05  Bruno Haible  <bruno@clisp.org>
39950
39951         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
39952         Optimize search in case of 1 delimiter.
39953
39954 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
39955
39956         * lib/acl.h: Include sys/types.h before sys/acl.h.
39957
39958 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
39959
39960         Merge upstream fix for glibc bugzilla #3957:
39961
39962         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
39963
39964         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
39965         bit for RE_HAT_LISTS_NOT_NEWLINE.
39966         (build_charclass_op): Remove bogus comment.
39967
39968 2007-02-05  Simon Josefsson  <simon@josefsson.org>
39969
39970         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
39971
39972 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
39973
39974         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
39975         * lib/memmem.c [!defined _LIBC]: Include config.h.
39976
39977 2007-02-04  Bruno Haible  <bruno@clisp.org>
39978
39979         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
39980         warning message.
39981
39982 2007-02-04  Bruno Haible  <bruno@clisp.org>
39983
39984         New module mbstok_r.
39985         * modules/mbstok_r: New file.
39986         * lib/mbstok_r.c: New file.
39987         * lib/string_.h (strtok_r): Change argument names to match the
39988         comments. Add a conditional link warning.
39989         (mbstok_r): New declaration.
39990         * m4/mbstok_r.m4: New file.
39991         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39992         GNULIB_MBSTOK_R.
39993         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
39994         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
39995
39996 2007-02-04  Bruno Haible  <bruno@clisp.org>
39997
39998         New module mbsspn.
39999         * modules/mbsspn: New file.
40000         * lib/mbsspn.c: New file.
40001         * lib/string_.h (strspn): Add a conditional link warning.
40002         (mbsspn): New declaration.
40003         * m4/mbsspn.m4: New file.
40004         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
40005         GNULIB_MBSSPN.
40006         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
40007         * MODULES.html.sh (Internationalization functions): Add mbsspn.
40008
40009 2007-02-04  Bruno Haible  <bruno@clisp.org>
40010
40011         New module mbspbrk.
40012         * modules/mbspbrk: New file.
40013         * lib/mbspbrk.c: New file.
40014         * lib/string_.h (strpbrk): Add a conditional link warning.
40015         (mbspbrk): New declaration.
40016         * m4/mbspbrk.m4: New file.
40017         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
40018         GNULIB_MBSPBRK.
40019         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
40020         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
40021
40022 2007-02-04  Bruno Haible  <bruno@clisp.org>
40023
40024         New module mbscspn.
40025         * modules/mbscspn: New file.
40026         * lib/mbscspn.c: New file.
40027         * lib/string_.h (strcspn): Add a conditional link warning.
40028         (mbscspn): New declaration.
40029         * m4/mbscspn.m4: New file.
40030         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
40031         GNULIB_MBSCSPN.
40032         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
40033         * MODULES.html.sh (Internationalization functions): Add mbscspn.
40034
40035 2007-02-04  Bruno Haible  <bruno@clisp.org>
40036
40037         New module mbscasestr, reduced goal of strcasestr.
40038         * modules/mbscasestr: New file.
40039         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
40040         (mbscasestr): Renamed from strcasestr.
40041         * lib/strcasestr.c: Don't include mbuiter.h.
40042         (strcasestr): Remove support for multibyte locales.
40043         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
40044         Change the conditional link warning.
40045         (mbscasestr): New declaration.
40046         * m4/mbscasestr.m4: New file.
40047         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
40048         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
40049         REPLACE_STRCASESTR.
40050         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
40051         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40052         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
40053         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
40054         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
40055         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
40056         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
40057         (Depends-on): Remove mbuiter.
40058         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
40059
40060 2007-02-04  Bruno Haible  <bruno@clisp.org>
40061
40062         Simplify handling of strncasecmp.
40063         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
40064         the conditional link warning.
40065         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40066         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
40067         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
40068         * modules/strcase (configure.ac): Don't invoke
40069         gl_STRING_MODULE_INDICATOR.
40070         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
40071
40072 2007-02-04  Bruno Haible  <bruno@clisp.org>
40073
40074         New module mbscasecmp, reduced goal of strcasecmp.
40075         * modules/mbscasecmp: New file.
40076         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
40077         (mbscasecmp): Renamed from strcasecmp.
40078         * lib/strcasecmp.c: Don't include mbuiter.h.
40079         (strcasecmp): Remove support for multibyte locales.
40080         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
40081         Change the conditional link warning.
40082         (mbscasecmp): New declaration.
40083         * m4/mbscasecmp.m4: New file.
40084         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
40085         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
40086         REPLACE_STRCASECMP.
40087         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
40088         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
40089         GNULIB_MBSCASECMP.
40090         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
40091         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
40092         * modules/strcase (Files): Remove m4/mbrtowc.m4.
40093         (Depends-on): Remove mbuiter.
40094         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
40095
40096 2007-02-04  Bruno Haible  <bruno@clisp.org>
40097
40098         New module mbsstr. Remove module strstr.
40099         * modules/mbsstr: New file.
40100         * modules/strstr: Remove file.
40101         * lib/mbsstr.c: Renamed from lib/strstr.c.
40102         (mbsstr): Renamed from strstr.
40103         * lib/string_.h (strstr): Remove declaration. Change the conditional
40104         link warning.
40105         (mbsstr): New declaration.
40106         * m4/mbsstr.m4: New file.
40107         * m4/strstr.m4: Remove file.
40108         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
40109         REPLACE_STRSTR.
40110         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
40111         Don't initialize GNULIB_STRSTR.
40112         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
40113         substitute GNULIB_STRSTR and REPLACE_STRSTR.
40114         * MODULES.html.sh (Internationalization functions): Add mbsstr.
40115         (Support for systems lacking ANSI C 89): Remove strstr.
40116
40117 2007-02-04  Bruno Haible  <bruno@clisp.org>
40118
40119         New module mbsrchr.
40120         * modules/mbsrchr: New file.
40121         * lib/mbsrchr.c: New file.
40122         * lib/string_.h (strrchr): Add a conditional link warning.
40123         (mbsrchr): New declaration.
40124         * m4/mbsrchr.m4: New file.
40125         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
40126         GNULIB_MBSRCHR.
40127         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
40128         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
40129
40130 2007-02-04  Bruno Haible  <bruno@clisp.org>
40131
40132         New module mbschr.
40133         * modules/mbschr: New file.
40134         * lib/mbschr.c: New file.
40135         * lib/string_.h (strchr): Add a conditional link warning.
40136         (mbschr): New declaration.
40137         * m4/mbschr.m4: New file.
40138         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
40139         GNULIB_MBSCHR.
40140         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
40141         * MODULES.html.sh (Internationalization functions): Add mbschr.
40142
40143 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
40144
40145         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
40146
40147         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
40148
40149 2007-02-04  Bruno Haible  <bruno@clisp.org>
40150
40151         New module description section 'configure.ac-early'.
40152         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
40153         (func_get_autoconf_early_snippet): New function.
40154         (func_import, func_create_testdir): Use it. Remove special cases for
40155         modules 'extensions' and 'lock'.
40156         * modules/extensions (configure.ac-early): Require
40157         gl_USE_SYSTEM_EXTENSIONS.
40158         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
40159
40160 2007-02-04  Bruno Haible  <bruno@clisp.org>
40161
40162         Make use of gcj-4.3's -fsource and -ftarget option.
40163         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
40164         and if so try the options -fsource and -ftarget.
40165         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
40166         source_version, ftarget_option, target_version arguments.
40167         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
40168         (is_envjavac_oldgcj_14_14_usable): Renamed from
40169         is_envjavac_gcj_14_14_usable.
40170         (is_envjavac_oldgcj_14_13_usable): Renamed from
40171         is_envjavac_gcj_14_13_usable.
40172         (is_gcj_present): Update.
40173         (is_gcj_43, is_gcj43_usable): New functions.
40174         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
40175         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
40176         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
40177         try the options -fsource and -ftarget.
40178
40179 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
40180
40181         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
40182         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
40183         larger value.
40184
40185 2007-02-03  Jim Meyering  <jim@meyering.net>
40186
40187         Give tools a better chance to allocate space for very large buffers.
40188         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
40189
40190         Make pwd and readlink work also when run with an unreadable parent dir
40191         on systems with openat support.
40192         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
40193         provided getcwd function, even when we have openat support.
40194         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
40195
40196 2007-02-02  Bruno Haible  <bruno@clisp.org>
40197
40198         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
40199         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
40200         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
40201         portability problems if one of these functions is only used on specific
40202         platforms.
40203         Reported by Paul Eggert.
40204
40205 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
40206
40207         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
40208         is causing more trouble than it's curing.
40209         * lib/regex_internal.h (__mempcpy): Remove.
40210         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
40211         (and make the code a tad smaller to boot).
40212         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
40213
40214 2007-02-02  Jim Meyering  <jim@meyering.net>
40215
40216         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
40217         section, not in the Makefile.am: one.
40218
40219 2007-02-02  Eric Blake  <ebb9@byu.net>
40220
40221         * lib/strchrnul.c: Always include config.h first.
40222
40223         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
40224         gnulib strstr is not necessary here.
40225
40226 2007-02-02  Simon Josefsson  <simon@josefsson.org>
40227
40228         * m4/socklen.m4: Fix typo.
40229
40230 2007-02-02  Eric Blake  <ebb9@byu.net>
40231
40232         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
40233         * modules/netinet_in (Makefile.am): Likewise.
40234
40235 2007-02-01  Bruno Haible  <bruno@clisp.org>
40236
40237         * lib/string_.h (GL_LINK_WARNING): New macro.
40238         (strcasecmp, strstr, strcasestr): If provided by the system,
40239         conditionally define as a macro that leads to a warning instead of to
40240         an error.
40241         (strncasecmp): Conditionally define as a macro that leads to a warning.
40242
40243 2007-02-01  Karl Berry  <karl@gnu.org>
40244
40245         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
40246
40247 2007-02-01  Bruno Haible  <bruno@clisp.org>
40248
40249         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
40250         renamings.
40251
40252 2007-02-01  Eric Blake  <ebb9@byu.net>
40253
40254         * modules/regex (Depends-on): Revert dependence on mempcpy.
40255         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
40256         module's definition of mempcpy.
40257         Reported by Paul Eggert.
40258
40259 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
40260
40261         * lib/string_.h: If the gnulib module XYZ is not present, undefine
40262         the symbol XYZ before redefining it.  This fixes a problem with
40263         programs that don't use XYZ, when compiled on systems that define
40264         XYZ to something else.
40265
40266 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
40267
40268         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
40269         occurs when "mkdir -m foo" creates a setgid directory that is (1)
40270         writeable to group or other and (2) is intended to have a special
40271         mode bit that is set or cleared.  In such a case, the directory
40272         should be neither group- nor other-writeable until the special
40273         mode bits are right.
40274
40275 2007-01-31  Eric Blake  <ebb9@byu.net>
40276
40277         * modules/mountlist (Depends-on): Add strstr.
40278
40279         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
40280         bug.
40281         * modules/string (Makefile.am): Remove redundant replacement.
40282         * modules/regex (Depends-on): Add mempcpy.
40283
40284 2007-01-31  Bruno Haible  <bruno@clisp.org>
40285
40286         New module description field 'Link'.
40287         * gnulib-tool (func_usage): Document --extract-link-directive.
40288         (sed_extract_prog): Recognize 'Link' directive.
40289         (func_get_link_directive): New function.
40290         (func_import): Show summary of link directives.
40291         Handle --extract-link-directive option.
40292         * modules/acl (Link): New section.
40293         * modules/clock-time (Link): New section.
40294         * modules/euidaccess (Link): New section.
40295         * modules/gettext (Link): New section.
40296         * modules/iconv (Link): New section.
40297         * modules/lock (Link): New section.
40298         * modules/nanosleep (Link): New section.
40299         * modules/readline (Link): New section.
40300
40301 2007-01-27  Bruno Haible  <bruno@clisp.org>
40302
40303         Enforce the use of gnulib modules for unportable <string.h> functions.
40304         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
40305         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
40306         (gl_HEADER_STRING_H_BODY): Require it.
40307         * lib/string_.h: If the gnulib module XYZ is not present, redefine
40308         the symbol XYZ to one that gives a link error.
40309         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
40310         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
40311         * modules/mempcpy (configure.ac): Likewise.
40312         * modules/memrchr (configure.ac): Likewise.
40313         * modules/stpcpy (configure.ac): Likewise.
40314         * modules/stpncpy (configure.ac): Likewise.
40315         * modules/strcase (configure.ac): Likewise.
40316         * modules/strcasestr (configure.ac): Likewise.
40317         * modules/strchrnul (configure.ac): Likewise.
40318         * modules/strdup (configure.ac): Likewise.
40319         * modules/strndup (configure.ac): Likewise.
40320         * modules/strnlen (configure.ac): Likewise.
40321         * modules/strpbrk (configure.ac): Likewise.
40322         * modules/strsep (configure.ac): Likewise.
40323         * modules/strstr (configure.ac): Likewise.
40324         * modules/strtok_r (configure.ac): Likewise.
40325
40326 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
40327
40328         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
40329
40330 2007-01-30  Jim Meyering  <jim@meyering.net>
40331
40332         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
40333
40334 2007-01-29  Bruno Haible  <bruno@clisp.org>
40335
40336         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
40337         * lib/execute.c: Likewise.
40338         * lib/pipe.c: Likewise.
40339         * lib/printf-args.h: Likewise.
40340         * lib/printf-args.c: Likewise.
40341         * lib/printf-parse.c: Likewise.
40342         * lib/vasnprintf.c: Likewise.
40343
40344 2007-01-29  Eric Blake  <ebb9@byu.net>
40345
40346         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
40347         declaration.
40348
40349 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
40350
40351         * lib/strptime.h (strptime): Use 'restrict' for args where
40352         POSIX requires this.
40353         * lib/strptime.c (strptime): Likewise.
40354         Change license notice from LGPL to GPL, since gnulib-tool will
40355         change this as needed.
40356         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
40357         defined.
40358         Include "strptime.h" first, to check interface.
40359         Do not #undef _LIBC and _NL_CURRENT.
40360         Do not include <stdlib.h>; no longer needed.
40361         Include "time_r.h" and declare ptime_locale_status
40362         only if _LIBC is not defined.
40363         (__P): Remove unused macro.
40364         (match_string): Bring back glibc version, but use it only if _LIBC
40365         is defined.
40366         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
40367         Remove unnecessary assertion and abort() call.
40368         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
40369         * m4/strptime.m4: Fix serial number comment.
40370         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
40371         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
40372         (Depends-on): Add time_r.
40373
40374 2007-01-29  Bruno Haible  <bruno@clisp.org>
40375
40376         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40377         strptime.
40378         * modules/strptime (Depends-on): Add stdbool.
40379         * lib/strptime.h: Include <time.h> always. Add comments.
40380
40381 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40382
40383         * modules/strptime: New file.
40384         * lib/strptime.h: New file.
40385         * lib/strptime.c: New file.
40386         * m4/strptime.m4: New file.
40387
40388 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
40389
40390         * MODULES.html.sh: New module mpsort.
40391         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
40392
40393         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
40394         a circularity problem with HP-UX ia64 reported by Bob Proulx in
40395         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
40396         All uses changed.
40397         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
40398         All uses changed.
40399         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
40400         to _Restrict_.
40401         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
40402         the parameter matches the prototype.
40403
40404 2007-01-28  Jim Meyering  <jim@meyering.net>
40405
40406         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
40407         sys/time.h here, reverting that part of the previous patch:
40408         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
40409
40410 2007-01-28  Bruno Haible  <bruno@clisp.org>
40411
40412         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
40413         value of $(SYS_TIME_H).
40414         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
40415         remove it conditionally, too. [added by Jim Meyering]
40416         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
40417         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
40418         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
40419         GETTIMEOFDAY_REPLACEMENT to 1.
40420
40421 2007-01-28  Bruno Haible  <bruno@clisp.org>
40422
40423         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
40424         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
40425         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
40426         Set UNISTD_H instead of UNISTD_H2.
40427         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
40428
40429 2007-01-28  Bruno Haible  <bruno@clisp.org>
40430
40431         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
40432         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
40433
40434 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40435
40436         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
40437         (func_create_testdir): Ensure C locale for `grep' and `tr'
40438         character ranges.
40439         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
40440         ACLOCAL_AMFLAGS parsing state machine.
40441
40442 2007-01-27  Bruno Haible  <bruno@clisp.org>
40443
40444         * modules/unistr/base: Update.
40445
40446 2007-01-27  Bruno Haible  <bruno@clisp.org>
40447
40448         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
40449         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
40450         * modules/unistr/u32-mbtouc-unsafe: Renamed from
40451         modules/unistr/u32-mbtouc.
40452         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
40453         * lib/unistr.h: Update.
40454         * lib/linebreak.c: Update.
40455         * modules/unistr/u32-mbtouc: Renamed from
40456         modules/unistr/u32-mbtouc-safe.
40457         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
40458         * lib/unistr.h: Update.
40459         * lib/unistr/u32-to-u8.c: Update.
40460         * lib/unistr/u32-to-u16.c: Update.
40461
40462 2007-01-27  Bruno Haible  <bruno@clisp.org>
40463
40464         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
40465         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
40466         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
40467         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
40468         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
40469         * modules/unistr/u16-mbtouc-unsafe: Renamed from
40470         modules/unistr/u16-mbtouc.
40471         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
40472         * lib/unistr.h: Update.
40473         * lib/linebreak.c: Update.
40474         * modules/linebreak: Update.
40475         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
40476         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
40477         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
40478         * modules/unistr/u16-mbtouc: Renamed from
40479         modules/unistr/u16-mbtouc-safe.
40480         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
40481         * lib/unistr.h: Update.
40482         * lib/unistr/u16-to-u8.c: Update.
40483         * modules/unistr/u16-to-u8: Update.
40484         * lib/unistr/u16-to-u32.c: Update.
40485         * modules/unistr/u16-to-u32: Update.
40486
40487 2007-01-27  Bruno Haible  <bruno@clisp.org>
40488
40489         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
40490         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
40491         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
40492         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
40493         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
40494         * modules/unistr/u8-mbtouc-unsafe: Renamed from
40495         modules/unistr/u8-mbtouc.
40496         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
40497         * lib/unistr.h: Update.
40498         * lib/striconveh.c: Update.
40499         * modules/striconveh: Update.
40500         * lib/linebreak.c: Update.
40501         * modules/linebreak: Update.
40502         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
40503         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
40504         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
40505         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
40506         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
40507         * lib/unistr.h: Update.
40508         * lib/striconveh.c: Update.
40509         * modules/striconveh: Update.
40510         * lib/unistr/u8-to-u16.c: Update.
40511         * modules/unistr/u8-to-u16: Update.
40512         * lib/unistr/u8-to-u32.c: Update.
40513         * modules/unistr/u8-to-u32: Update.
40514
40515 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40516
40517         Sync from Libtool.
40518         * lib/argz.c: Do not include strings.h nor memory.h, include
40519         string.h unconditionally.  Patch by Simon Josefsson.
40520
40521 2007-01-27  Bruno Haible  <bruno@clisp.org>
40522
40523         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
40524         from gl_HEADER_STRING_H_BODY.
40525         (gl_HEADER_STRING_H_BODY): Require it.
40526         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
40527         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
40528         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
40529         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
40530         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
40531         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
40532         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40533         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
40534         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
40535         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
40536         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
40537         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
40538         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
40539         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40540         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
40541
40542 2007-01-27  Bruno Haible  <bruno@clisp.org>
40543
40544         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
40545         check_PROGRAMS into noinst_PROGRAMS.
40546         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
40547         check_PROGRAMS in this case.
40548         (func_import): Set for_test to false.
40549         (func_create_testdir): Set for_test to true.
40550
40551 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
40552             Bruno Haible  <bruno@clisp.org>
40553
40554         * modules/strcasestr (Files): Remove lib/strcasestr.h.
40555         (Depends-on): Add string.
40556         (Includes): Use <string.h> instead of strcasestr.h.
40557         * modules/string (Makefile.am): Also substitute the value of
40558         REPLACE_STRCASESTR.
40559         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
40560         assume strcasestr is declared in <string.h> not <strings.h>. Also
40561         set REPLACE_STRCASESTR.
40562         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
40563         REPLACE_STRCASESTR.
40564         * lib/strcasestr.h: Remove file.
40565         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
40566         * lib/string_.h (strcasestr): New declaration.
40567
40568 2007-01-27  Bruno Haible  <bruno@clisp.org>
40569
40570         * lib/string_.h: Use 'extern'.
40571
40572 2007-01-27  Jim Meyering  <jim@meyering.net>
40573
40574         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
40575         of set-but-not-used local, "q".
40576
40577         * lib/mempcpy.c: Include <config.h> before <string.h>.
40578         This fixes a compilation error on HP-UX, due to the system's
40579         "restrict"-using mempcpy prototype.
40580
40581 2007-01-26  Bruno Haible  <bruno@clisp.org>
40582
40583         Small optimization.
40584         * lib/javacomp.c: Include c-strstr.h.
40585          (is_envjavac_gcj): Use c_strstr instead of strstr.
40586         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
40587
40588 2007-01-26  Bruno Haible  <bruno@clisp.org>
40589
40590         * MODULES.html.sh (Unicode string functions): Add the new modules.
40591
40592         * modules/uniconv/u32-strconv-to-locale: New file.
40593         * lib/uniconv/u32-strconv-to-locale.c: New file.
40594
40595         * modules/uniconv/u16-strconv-to-locale: New file.
40596         * lib/uniconv/u16-strconv-to-locale.c: New file.
40597
40598         * modules/uniconv/u8-strconv-to-locale: New file.
40599         * lib/uniconv/u8-strconv-to-locale.c: New file.
40600
40601         * modules/uniconv/u32-strconv-from-locale: New file.
40602         * lib/uniconv/u32-strconv-from-locale.c: New file.
40603
40604         * modules/uniconv/u16-strconv-from-locale: New file.
40605         * lib/uniconv/u16-strconv-from-locale.c: New file.
40606
40607         * modules/uniconv/u8-strconv-from-locale: New file.
40608         * lib/uniconv/u8-strconv-from-locale.c: New file.
40609
40610         * modules/uniconv/u32-strconv-to-enc: New file.
40611         * lib/uniconv/u32-strconv-to-enc.c: New file.
40612         * modules/uniconv/u32-strconv-to-enc-tests: New file.
40613         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
40614
40615         * modules/uniconv/u16-strconv-to-enc: New file.
40616         * lib/uniconv/u16-strconv-to-enc.c: New file.
40617         * lib/uniconv/u-strconv-to-enc.h: New file.
40618         * modules/uniconv/u16-strconv-to-enc-tests: New file.
40619         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
40620
40621         * modules/uniconv/u8-strconv-to-enc: New file.
40622         * lib/uniconv/u8-strconv-to-enc.c: New file.
40623         * modules/uniconv/u8-strconv-to-enc-tests: New file.
40624         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
40625
40626         * modules/uniconv/u32-strconv-from-enc: New file.
40627         * lib/uniconv/u32-strconv-from-enc.c: New file.
40628         * modules/uniconv/u32-strconv-from-enc-tests: New file.
40629         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
40630
40631         * modules/uniconv/u16-strconv-from-enc: New file.
40632         * lib/uniconv/u16-strconv-from-enc.c: New file.
40633         * modules/uniconv/u16-strconv-from-enc-tests: New file.
40634         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
40635
40636         * modules/uniconv/u8-strconv-from-enc: New file.
40637         * lib/uniconv/u8-strconv-from-enc.c: New file.
40638         * lib/uniconv/u-strconv-from-enc.h: New file.
40639         * modules/uniconv/u8-strconv-from-enc-tests: New file.
40640         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
40641
40642         * modules/uniconv/u32-conv-from-enc: New file.
40643         * lib/uniconv/u32-conv-from-enc.c: New file.
40644         * modules/uniconv/u32-conv-from-enc-tests: New file.
40645         * tests/uniconv/test-u32-conv-from-enc.c: New file.
40646
40647         * modules/uniconv/u16-conv-from-enc: New file.
40648         * lib/uniconv/u16-conv-from-enc.c: New file.
40649         * lib/uniconv/u-conv-from-enc.h: New file.
40650         * modules/uniconv/u16-conv-from-enc-tests: New file.
40651         * tests/uniconv/test-u16-conv-from-enc.c: New file.
40652
40653         * modules/uniconv/u8-conv-from-enc: New file.
40654         * lib/uniconv/u8-conv-from-enc.c: New file.
40655         * modules/uniconv/u8-conv-from-enc-tests: New file.
40656         * tests/uniconv/test-u8-conv-from-enc.c: New file.
40657
40658         * modules/uniconv/base: New file.
40659         * lib/uniconv.h: New file.
40660
40661 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
40662
40663         * doc/gnulib-tool.texi (Initial import): Update to match current
40664         behavior with strdup module.
40665         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
40666         * lib/memmem.h: Remove; all uses removed.  This is now done
40667         by <string.h>.
40668         * lib/mempcpy.h: Likewise.
40669         * lib/memrchr.h: Likewise.
40670         * lib/stpcpy.h: Likewise.
40671         * lib/stpncpy.h: Likewise.
40672         * lib/strcase.h: Likewise.
40673         * lib/strchrnul.h: Likewise.
40674         * lib/strdup.h: Likewise.
40675         * lib/strndup.h: Likewise.
40676         * lib/strnlen.h: Likewise.
40677         * lib/strpbrk.h: Likewise.
40678         * lib/strsep.h: Likewise.
40679         * lib/strstr.h: Likewise.
40680         * lib/strtok_r.h: Likewise.
40681         * lib/string_.h: New file.
40682         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
40683         Rely on <string.h> instead.
40684         * lib/canon-host.c: Likewise.
40685         * lib/chdir-long.c: Likewise.
40686         * lib/concatpath.c: Likewise.
40687         * lib/exclude.c: Likewise.
40688         * lib/fchdir.c: Likewise.
40689         * lib/getaddrinfo.c: Likewise.
40690         * lib/getcwd.c: Likewise.
40691         * lib/getsubopt.c: Likewise.
40692         * lib/glob.c: Likewise.
40693         * lib/hard-locale.c: Likewise.
40694         * lib/iconvme.c: Likewise.
40695         * lib/javacomp.c: Likewise.
40696         * lib/mempcpy.c: Likewise.
40697         * lib/memrchr.c: Likewise.
40698         * lib/regex_internal.h: Likewise.
40699         * lib/stpncpy.c: Likewise.
40700         * lib/strcasecmp.c: Likewise.
40701         * lib/strchrnul.c: Likewise.
40702         * lib/strdup.c: Likewise.
40703         * lib/striconv.c: Likewise.
40704         * lib/striconveh.c: Likewise.
40705         * lib/striconveha.c: Likewise.
40706         * lib/strncasecmp.c: Likewise.
40707         * lib/strndup.c: Likewise.
40708         * lib/strnlen.c: Likewise.
40709         * lib/strsep.c: Likewise.
40710         * lib/strstr.c: Likewise.
40711         * lib/strtok_r.c: Likewise.
40712         * lib/userspec.c: Likewise.
40713         * lib/w32spawn.h: Likewise.
40714         * lib/xstrndup.c: Likewise.
40715         * lib/mountlist.c (strstr): Remove decl.
40716         * m4/string_h.m4: New file.
40717         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
40718         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
40719         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
40720         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
40721         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
40722         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
40723         Set REPLACE_STRCASECMP if necessary.
40724         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
40725         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
40726         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
40727         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
40728         HAVE_DECL_STRDUP if necessary.
40729         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
40730         since gl_FUNC_STRNDUP does that now.
40731         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
40732         Check for decl here...
40733         (gl_PREREQ_STRNLEN): ... not here.
40734         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
40735         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
40736         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
40737         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
40738         necessary.
40739         * modules/string: New file.
40740         * modules/memmem (Files): Remove special-purpose include file.
40741         (Depends-on): Add string.
40742         (Include): Include <string.h>, not the removed file.
40743         * modules/mempcpy: Likewise.
40744         * modules/memrchr: Likewise.
40745         * modules/stpcpy: Likewise.
40746         * modules/stpncpy: Likewise.
40747         * modules/strcase: Likewise.
40748         * modules/strchrnul: Likewise.
40749         * modules/strdup: Likewise.
40750         * modules/strndup: Likewise.
40751         * modules/strnlen: Likewise.
40752         * modules/strpbrk: Likewise.
40753         * modules/strsep: Likewise.
40754         * modules/strstr: Likewise.
40755         * modules/strtok_r: Likewise.
40756         * tests/test-dirname.c: Don't include "strdup.h", since
40757         <string.h> now suffices.
40758         * tests/test-memmem.c: Don't include "memmem.h", since
40759         <string.h> now suffices.
40760
40761 2007-01-25  Bruno Haible  <bruno@clisp.org>
40762
40763         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
40764         *resultp is 0.
40765
40766         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
40767         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
40768         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
40769         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
40770
40771         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
40772         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
40773         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
40774         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
40775         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
40776         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
40777
40778 2007-01-24  Bruno Haible  <bruno@clisp.org>
40779
40780         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
40781         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
40782         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
40783         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
40784         gl_FUNC_FTS_CORE.
40785         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
40786         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
40787         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
40788         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
40789         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
40790         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
40791         gl_FUNC_FCHOWNAT.
40792         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
40793         gl_FUNC_STRFTIME.
40794         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
40795         Reported by Ralf Wildenhues.
40796
40797 2007-01-24  Bruno Haible  <bruno@clisp.org>
40798
40799         Drop AC_REQUIRE calls that are redundant with the module dependencies.
40800         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
40801         gl_GETADDRINFO.
40802         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
40803         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
40804         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
40805
40806 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
40807
40808         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
40809         Don't use 'exit'; just return from 'main'.
40810         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
40811
40812         * lib/fnmatch_.h: Readjust white space and comments to match
40813         glibc, to avoid spurious diffs.
40814
40815 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
40816
40817         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
40818         2004-12-01 change by Jakub Jelinek, since this code won't compile
40819         if !LIBC.  Problem reported by Bob Proulx.
40820
40821 2007-01-23  Bruno Haible  <bruno@clisp.org>
40822
40823         * lib/striconveh.c: Include c-strcaseeq.h.
40824         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
40825         * modules/striconveh (Depends-on): Add c-strcaseeq.
40826
40827 2007-01-23  Bruno Haible  <bruno@clisp.org>
40828
40829         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
40830
40831         * modules/c-strcaseeq: New file.
40832         * lib/c-strcaseeq.h: New file.
40833
40834         * modules/streq: New file.
40835         * lib/streq.h: New file.
40836
40837 2007-01-23  Bruno Haible  <bruno@clisp.org>
40838
40839         * modules/striconveha-tests: New file.
40840         * tests/test-striconveha.c: New file.
40841
40842         * lib/striconveha.h: Include <stdbool.h>.
40843         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
40844         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
40845         (mem_iconveha_notranslit): Renamed from mem_iconveha.
40846         (mem_iconveha): New function.
40847         (str_iconveha_notranslit): Renamed from str_iconveha.
40848         (str_iconveha): New function.
40849         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
40850         c-strcase.
40851
40852 2007-01-23  Bruno Haible  <bruno@clisp.org>
40853
40854         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
40855         encodings without forgiving before trying any encoding with handler.
40856         (str_iconveha): Try all encodings without forgiving before trying any
40857         encoding with handler.
40858
40859 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
40860
40861         Import the following changes from libc.
40862
40863         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
40864
40865         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
40866
40867         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
40868
40869         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
40870         normal_bracket label.
40871
40872         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
40873
40874         [BZ #361]
40875         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
40876         to normal_bracket after fetching the next character.
40877
40878 2007-01-22  Bruno Haible  <bruno@clisp.org>
40879
40880         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
40881         argument.
40882         * lib/striconveh.c (iconv_carefully_1): New function.
40883         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
40884         argument.
40885         (str_cd_iconveh): Update.
40886         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
40887         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
40888         * tests/test-striconveh.c (MAGIC): New macro.
40889         (new_offsets): New function.
40890         (main): Test call with and without offsets.
40891
40892 2007-01-22  Bruno Haible  <bruno@clisp.org>
40893
40894         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
40895         * modules/sys_select (Makefile.am): Likewise.
40896         * modules/sys_socket (Makefile.am): Likewise.
40897         * modules/sys_time (Makefile.am): Likewise.
40898
40899 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
40900
40901         * modules/gettimeofday (License): Change from GPL to LGPL, since
40902         gettimeofday is a library function.
40903
40904 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40905
40906         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
40907
40908 2007-01-21  Bruno Haible  <bruno@clisp.org>
40909
40910         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
40911
40912 2007-01-21  Bruno Haible  <bruno@clisp.org>
40913
40914         * modules/striconveha: New file.
40915         * lib/striconveha.h: New file.
40916         * lib/striconveha.c: New file.
40917         * MODULES.html.sh (Internationalization functions): Add striconveha.
40918         * lib/striconv.c (str_iconv): Optimize the case of an empty input
40919         string.
40920         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
40921
40922 2007-01-21  Bruno Haible  <bruno@clisp.org>
40923
40924         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
40925         * lib/striconveh.c (str_iconveh): Likewise.
40926
40927 2007-01-21  Bruno Haible  <bruno@clisp.org>
40928
40929         * lib/striconveh.h (mem_iconveh): New declaration.
40930         * lib/striconveh.c (mem_iconveh): New function.
40931         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
40932
40933 2007-01-21  Bruno Haible  <bruno@clisp.org>
40934
40935         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
40936
40937         * lib/striconveh.h (mem_cd_iconveh): Change specification.
40938         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
40939         original result buffer.
40940         (str_cd_iconveh): Update.
40941         * tests/test-striconveh.c (main): Update.
40942
40943         * lib/striconv.h (mem_cd_iconv): Change specification.
40944         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
40945         result buffer.
40946         (str_cd_iconv): Update.
40947         * tests/test-striconv.c (main): Update.
40948
40949 2007-01-21  Bruno Haible  <bruno@clisp.org>
40950
40951         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
40952
40953 2007-01-20  Jim Meyering  <jim@meyering.net>
40954
40955         * lib/userspec.c (parse_with_separator): If a user or group string
40956         starts with "+", skip the corresponding name-to-ID look-up, since
40957         such a look-up must fail: user and group names may not include "+".
40958
40959 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
40960
40961         * lib/poll.c: Include sys/time.h and time.h unconditionally,
40962         since we now assume the sys_time module.
40963         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
40964         check for sys/time.h; no longer needed.
40965         * modules/poll (Depends-on): Depend on sys_time.
40966
40967 2007-01-18  Bruno Haible  <bruno@clisp.org>
40968
40969         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
40970         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
40971
40972         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
40973         gettimeofday.
40974
40975         * tests/test-gettimeofday.c: Include <time.h>.
40976         (dummy): Remove variable.
40977
40978         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
40979         gl_HEADER_SYS_TIME_H.
40980         (gl_HEADER_SYS_TIME_H): New macro.
40981
40982         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
40983         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40984         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
40985         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
40986         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40987         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
40988         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
40989         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40990         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
40991         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
40992         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40993
40994         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
40995         last change; it caused a compilation error when cross-compiling to
40996         Cygwin.
40997
40998 2007-01-18  Jim Meyering  <jim@meyering.net>
40999
41000         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
41001         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
41002         than the race-prone "test -d sys || mkdir sys".
41003         (configure.ac): Use AC_PROG_MKDIR_P.
41004         * modules/sys_select: Likewise.
41005         * modules/sys_socket: Likewise.
41006         * modules/sys_time: Likewise.
41007
41008 2007-01-18  Eric Blake  <ebb9@byu.net>
41009
41010         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
41011         replace gettimeofday.
41012         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
41013         name, to avoid infinite recursion.
41014
41015 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
41016
41017         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
41018         module sys_time.
41019         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
41020         assume timespec.h defines struct timeval.
41021         * lib/settime.c: Likewise.
41022         * lib/utimens.c: Likewise.
41023         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
41024         since we now assume the gettimeofday module.
41025         * lib/tempname.c (__gen_tempname): Likewise.
41026         * lib/gettimeofday.h: Remove.
41027         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
41028         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
41029         Include <time.h>, for 'time()'.
41030         (localtime_buffer_addr): Also use this workaround if
41031         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
41032         to simplify the uses.  All uses changed.
41033         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
41034         that #undef is inside {}, and 'const' follows type name consistently.
41035         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
41036         (gettimeofday): Do not use the maximum possible value for
41037         tv->tv_usec, since that might break usages other than ls.c.
41038         Instead, we'll leave ls.c alone.  This undoes today's patch
41039         by Bruno.  Add a compile-time warning for 1s-clock resolution;
41040         we've never observed the problem but might as well keep the
41041         canary.
41042         * lib/nanosleep.c: Include timespec.h first, for interface check.
41043         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
41044         now assume the sys_time module.
41045         * lib/tempname.c: Likewise.
41046         * lib/timespec.h: Likewise.
41047         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
41048         needed.
41049         * lib/strftime.c: Likewise.
41050         * lib/timespec.h: Likewise.
41051         * lib/posixtm.c: Include posixtm.h first, for interface check.
41052         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
41053         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
41054         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
41055         * lib/sys_time_.h: New file.
41056         * lib/timespec.h (struct timespec): Use long int, not long.
41057         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
41058         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
41059         Remove obsolescent call to AC_HEADER_TIME.
41060         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
41061         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
41062         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
41063         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
41064         Likewise.
41065         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
41066         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
41067         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
41068         into the sys_time module.  Check for gettimeofday just once.
41069         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
41070         for gettimeofday signature to just check the signature.  Merely
41071         compile it, since linking doesn't test signature.  Improve test for
41072         whether gettimeofday.o is actually needed.
41073         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
41074         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
41075         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
41076         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
41077         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
41078         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
41079         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
41080         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
41081         than worrying about sys/time.h.
41082         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
41083         Don't bother worrying about TIME_WITH_SYS_TIME.
41084         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
41085         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
41086         * m4/sys_time_h.m4: New file.
41087         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
41088         Don't include sys/time.h.  Return from main rather than exiting.
41089         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
41090         all uses changed.
41091         * modules/gethrxtime (Depends-on): Add sys_time.
41092         * modules/gettime (Depends-on): Likewise.
41093         * modules/gettimeofday (Depends-on): Likewise.
41094         * modules/nanosleep (Depends-on): Likewise.
41095         * modules/settime (Depends-on): Likewise.
41096         * modules/tempname (Depends-on): Likewise.
41097         * modules/utimens (Depends-on): Likewise.
41098         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
41099         (Include:) Change back to <sys/time.h>.
41100         (Maintainer:) Add self.
41101         * modules/sys_time: New file.
41102         * modules/tempname (Depends-on): Add gettimeofday.
41103         * tests/test-gettimeofday.c: Include <sys/time.h>
41104         rather than gettimeofday.h.
41105
41106 2007-01-17  Bruno Haible  <bruno@clisp.org>
41107
41108         * gnulib-tool (func_get_license): Revert last patch. Instead, let
41109         the license default to GPL.
41110         (func_create_testdir): Don't complain if a module is LGPL and its
41111         tests module depends on GPLed modules.
41112
41113 2007-01-17  Bruno Haible  <bruno@clisp.org>
41114
41115         * lib/gettimeofday.c (gettimeofday): Add code for the case
41116         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
41117         maximum possible value for tv->tv_usec, rather than the minimum one.
41118
41119 2005-10-08  Martin Lambers  <marlam@marlam.de>
41120 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
41121 2007-01-16  Bruno Haible  <bruno@clisp.org>
41122
41123         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
41124         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
41125         gl_FUNC_GETTIMEOFDAY.
41126         (Include): Add gettimeofday.h.
41127         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
41128         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
41129         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
41130         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
41131         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
41132         * lib/gettimeofday.h: New file.
41133         * lib/gettimeofday.c: Include <sys/timeb.h>.
41134         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
41135         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
41136         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
41137         fall back on time().
41138
41139         * tests/test-gettimeofday.c: New file.
41140         * modules/gettimeofday-tests: New file.
41141
41142 2007-01-16  Eric Blake  <ebb9@byu.net>
41143
41144         * modules/fnmatch (Depends-on): Depend on wchar.
41145         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
41146         * m4/fnmatch.m4: Likewise.
41147         * modules/mbchar (Makefile.am): Assume <wchar.h>.
41148         * m4/mbchar.m4: Likewise.
41149         * modules/mbswidth (Depends-on): Depend on wchar.
41150         * lib/mbswidth.c: Assume <wchar.h>.
41151         * m4/mbswidth.m4: Likewise.
41152         * modules/quotearg (Depends-on): Depend on wchar.
41153         * lib/quotearg.c: Assume <wchar.h>.
41154         * m4/quotearg.m4: Likewise.
41155         * modules/regex (Depends-on): Depend on wchar.
41156         * lib/regex_internal.h: Assume <wchar.h>.
41157         * m4/regex.m4: Likewise.
41158         * modules/stdint (Depends-on): Depend on wchar.
41159         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
41160         * m4/stdint.m4: Likewise.
41161         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
41162         * modules/strftime (Depends-on): Depend on wchar.
41163         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
41164         * modules/strtol (Depends-on): Depend on wchar.
41165         * lib/strtol.c: Assume <wchar.h>.
41166         * modules/wcwidth (Depends-on): Depend on wchar.
41167         * lib/wcwidth.h: Assume <wchar.h>.
41168         * m4/wcwidth.m4: Likewise.
41169
41170 2007-01-16  Bruno Haible  <bruno@clisp.org>
41171
41172         * modules/csharpexec-script: New, created from...
41173         * modules/csharpexec: ... this.
41174
41175 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
41176
41177         * modules/javaexec-script: New, created from...
41178         * modules/javaexec: ... this.
41179
41180 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41181
41182         * modules/poll (Dependencies): Add sys_select.
41183
41184 2007-01-15  Jim Meyering  <jim@meyering.net>
41185
41186         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
41187         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
41188         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
41189         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
41190
41191 2007-01-15  Bruno Haible  <bruno@clisp.org>
41192
41193         * modules/striconveh: New file.
41194         * lib/striconveh.h: New file.
41195         * lib/striconveh.c: New file.
41196         * MODULES.html.sh (Internationalization functions): Add striconveh.
41197
41198         * modules/striconveh-tests: New file.
41199         * tests/test-striconveh.c: New file.
41200
41201 2007-01-15  Bruno Haible  <bruno@clisp.org>
41202
41203         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
41204         not from GNU libiconv or GNU libc.
41205
41206 2007-01-15  Bruno Haible  <bruno@clisp.org>
41207
41208         * doc/gnulib-intro.texi (Copyright): Explain the different license
41209         terms for module descriptions, autoconf macros, tests, documentation.
41210
41211 2007-01-14  Bruno Haible  <bruno@clisp.org>
41212
41213         * modules/striconv-tests: New file.
41214         * tests/test-striconv.c: New file.
41215
41216 2007-01-14  Bruno Haible  <bruno@clisp.org>
41217
41218         * modules/iconv-tests: New file.
41219         * tests/test-iconv.c: New file.
41220
41221 2007-01-14  Bruno Haible  <bruno@clisp.org>
41222
41223         * gnulib-tool (func_get_license): For test modules, use the license of
41224         the main module.
41225
41226 2007-01-14  Bruno Haible  <bruno@clisp.org>
41227
41228         * modules/iconv (Include): Clarify that <iconv.h> can only be included
41229         if iconv is found to exist.
41230
41231 2007-01-14  Bruno Haible  <bruno@clisp.org>
41232
41233         * modules/c-ctype-tests: New file.
41234         * tests/test-c-ctype.c: New file.
41235
41236 2007-01-14  Bruno Haible  <bruno@clisp.org>
41237
41238         * modules/binary-io-tests: New file.
41239         * tests/test-binary-io.sh: New file.
41240         * tests/test-binary-io.c: New file.
41241
41242 2007-01-14  Bruno Haible  <bruno@clisp.org>
41243
41244         * modules/array-oset-tests: New file.
41245         * tests/test-array_oset.c: New file.
41246
41247 2007-01-14  Bruno Haible  <bruno@clisp.org>
41248
41249         * modules/array-list-tests: New file.
41250         * tests/test-array_list.c: New file.
41251
41252 2007-01-14  Bruno Haible  <bruno@clisp.org>
41253
41254         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
41255         and make.
41256         Reported by Simon Josefsson in
41257         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
41258
41259 2007-01-14  Bruno Haible  <bruno@clisp.org>
41260
41261         * modules/allocsa-tests: New file.
41262         * tests/test-allocsa.c: New file.
41263
41264 2007-01-14  Bruno Haible  <bruno@clisp.org>
41265
41266         * modules/fchdir (Depends-on): Add absolute-header.
41267         * modules/unistd (Depends-on): Likewise.
41268
41269 2006-12-30  Bruno Haible  <bruno@clisp.org>
41270
41271         * modules/fchdir: New file.
41272         * modules/unistd (Files): Add lib/unistd_.h.
41273         (Makefile.am): Generate unistd.h from unistd_.h.
41274         * lib/fchdir.c: New file.
41275         * lib/dirent_.h: New file.
41276         * lib/unistd_.h: New file.
41277         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
41278         * m4/fchdir.m4: New file.
41279         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
41280         (gl_HEADER_UNISTD): Invoke it.
41281         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
41282         function.
41283         * lib/backupfile.c (opendir, closedir): Undefine.
41284         * lib/chown.c (open, close): Undefine.
41285         * lib/clean-temp.c (open, close): Undefine.
41286         * lib/copy-file.c (open, close): Undefine.
41287         * lib/execute.c (open, close): Undefine.
41288         * lib/fsusage.c (open, close): Undefine.
41289         * lib/gc-gnulib.c (open, close): Undefine.
41290         * lib/getcwd.c (opendir, closedir): Undefine.
41291         * lib/glob.c (opendir, closedir): Undefine.
41292         * lib/javacomp.c (open, close): Undefine.
41293         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
41294         * lib/openat-proc.c (open, close): Undefine.
41295         * lib/pagealign_alloc.c (open, close): Undefine.
41296         * lib/pipe.c (open, close): Undefine.
41297         * lib/progreloc.c (open, close): Undefine.
41298         * lib/savedir.c (opendir, closedir): Undefine.
41299         * lib/utime.c (open, close): Undefine.
41300         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
41301
41302 2007-01-10  Bruno Haible  <bruno@clisp.org>
41303
41304         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
41305
41306 2007-01-12  Eric Blake  <ebb9@byu.net>
41307
41308         Provide a robust <wchar.h>.  Further simplifications are now
41309         possible in other modules, but not included here.
41310         * modules/wchar: New module.
41311         * m4/wchar.m4: New file.
41312         * lib/wchar_.h: Likewise.
41313         * modules/mbchar (Depends-on): Depend on wchar, as the first use
41314         of the new module.
41315         * MODULES.html.sh (Extended multibyte and wide character utilities):
41316         New section.
41317
41318 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
41319
41320         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
41321         to a reasonable default for memory allocation.
41322         (xreadlink): Don't allocate a huge buffer, to work around a buggy
41323         file system that reports garbage st_size values for symlinks.
41324         Problem reported by Liyang Hu.
41325
41326 2007-01-11  Simon Josefsson  <simon@josefsson.org>
41327
41328         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
41329         Emacs .#* auto-save files).
41330
41331 2007-01-11  Bruno Haible  <bruno@clisp.org>
41332
41333         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
41334         directory.
41335
41336 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
41337
41338         Use @...@ consistently in lib/wctype_.h.
41339         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
41340         on it being set to 1 or 0.
41341         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
41342         go back to AC_SUBSTing it.
41343         * modules/wctype (Makefile.am): Undo previous change.
41344
41345 2007-01-10  Eric Blake  <ebb9@byu.net>
41346
41347         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
41348         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
41349         * modules/wctype (Makefile.am): Likewise.
41350         Reported by Chris McGuire.
41351
41352 2007-01-10  Jim Meyering  <jim@meyering.net>
41353
41354         fts.c: a small readability/maintainability improvement
41355         * lib/fts.c (fts_read): Make this code slightly more readable and
41356         maintainable by hoisting the "sp->fts_cur = p" assignments to
41357         immediately follow the statements that set P.  Derived from
41358         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
41359
41360 2007-01-10  Eric Blake  <ebb9@byu.net>
41361
41362         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
41363         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
41364         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
41365         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
41366         Reported by Chris McGuire.
41367
41368 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41369
41370         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
41371         in sed script.
41372
41373 2007-01-09  Bruno Haible  <bruno@clisp.org>
41374
41375         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
41376         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
41377         variables.
41378         (func_module): Use them.
41379
41380 2007-01-09  Bruno Haible  <bruno@clisp.org>
41381
41382         * modules/unistr/base: New file.
41383         * lib/unistr.h: New file.
41384
41385         * modules/unistr/u8-to-u16: New file.
41386         * lib/unistr/u8-to-u16.c: New file.
41387
41388         * modules/unistr/u8-to-u32: New file.
41389         * lib/unistr/u8-to-u32.c: New file.
41390
41391         * modules/unistr/u16-to-u8: New file.
41392         * lib/unistr/u16-to-u8.c: New file.
41393
41394         * modules/unistr/u16-to-u32: New file.
41395         * lib/unistr/u16-to-u32.c: New file.
41396
41397         * modules/unistr/u32-to-u8: New file.
41398         * lib/unistr/u32-to-u8.c: New file.
41399
41400         * modules/unistr/u32-to-u16: New file.
41401         * lib/unistr/u32-to-u16.c: New file.
41402
41403         * modules/unistr/u8-check: New file.
41404         * modules/unistr/u16-check: New file.
41405         * modules/unistr/u32-check: New file.
41406         * lib/unistr/u8-check.c: New file.
41407         * lib/unistr/u16-check.c: New file.
41408         * lib/unistr/u32-check.c: New file.
41409
41410         * modules/unistr/u8-chr: New file.
41411         * modules/unistr/u16-chr: New file.
41412         * modules/unistr/u32-chr: New file.
41413         * lib/unistr/u8-chr.c: New file.
41414         * lib/unistr/u16-chr.c: New file.
41415         * lib/unistr/u32-chr.c: New file.
41416
41417         * modules/unistr/u8-cmp: New file.
41418         * modules/unistr/u16-cmp: New file.
41419         * modules/unistr/u32-cmp: New file.
41420         * lib/unistr/u8-cmp.c: New file.
41421         * lib/unistr/u16-cmp.c: New file.
41422         * lib/unistr/u32-cmp.c: New file.
41423
41424         * modules/unistr/u8-cpy: New file.
41425         * modules/unistr/u16-cpy: New file.
41426         * modules/unistr/u32-cpy: New file.
41427         * lib/unistr/u8-cpy.c: New file.
41428         * lib/unistr/u16-cpy.c: New file.
41429         * lib/unistr/u32-cpy.c: New file.
41430         * lib/unistr/u-cpy.h: New file.
41431
41432         * modules/unistr/u8-cpy-alloc: New file.
41433         * modules/unistr/u16-cpy-alloc: New file.
41434         * modules/unistr/u32-cpy-alloc: New file.
41435         * lib/unistr/u8-cpy-alloc.c: New file.
41436         * lib/unistr/u16-cpy-alloc.c: New file.
41437         * lib/unistr/u32-cpy-alloc.c: New file.
41438         * lib/unistr/u-cpy-alloc.h: New file.
41439
41440         * modules/unistr/u8-endswith: New file.
41441         * modules/unistr/u16-endswith: New file.
41442         * modules/unistr/u32-endswith: New file.
41443         * lib/unistr/u8-endswith.c: New file.
41444         * lib/unistr/u16-endswith.c: New file.
41445         * lib/unistr/u32-endswith.c: New file.
41446         * lib/unistr/u-endswith.h: New file.
41447
41448         * modules/unistr/u8-mblen: New file.
41449         * modules/unistr/u16-mblen: New file.
41450         * modules/unistr/u32-mblen: New file.
41451         * lib/unistr/u8-mblen.c: New file.
41452         * lib/unistr/u16-mblen.c: New file.
41453         * lib/unistr/u32-mblen.c: New file.
41454
41455         * modules/unistr/u8-mbtouc: New file.
41456         * modules/unistr/u16-mbtouc: New file.
41457         * modules/unistr/u32-mbtouc: New file.
41458         * lib/unistr/u8-mbtouc.c: New file.
41459         * lib/unistr/u16-mbtouc.c: New file.
41460         * lib/unistr/u32-mbtouc.c: New file.
41461
41462         * modules/unistr/u8-mbtouc-safe: New file.
41463         * modules/unistr/u16-mbtouc-safe: New file.
41464         * modules/unistr/u32-mbtouc-safe: New file.
41465         * lib/unistr/u8-mbtouc-safe.c: New file.
41466         * lib/unistr/u16-mbtouc-safe.c: New file.
41467         * lib/unistr/u32-mbtouc-safe.c: New file.
41468
41469         * modules/unistr/u8-move: New file.
41470         * modules/unistr/u16-move: New file.
41471         * modules/unistr/u32-move: New file.
41472         * lib/unistr/u8-move.c: New file.
41473         * lib/unistr/u16-move.c: New file.
41474         * lib/unistr/u32-move.c: New file.
41475         * lib/unistr/u-move.h: New file.
41476
41477         * modules/unistr/u8-next: New file.
41478         * modules/unistr/u16-next: New file.
41479         * modules/unistr/u32-next: New file.
41480         * lib/unistr/u8-next.c: New file.
41481         * lib/unistr/u16-next.c: New file.
41482         * lib/unistr/u32-next.c: New file.
41483
41484         * modules/unistr/u8-prev: New file.
41485         * modules/unistr/u16-prev: New file.
41486         * modules/unistr/u32-prev: New file.
41487         * lib/unistr/u8-prev.c: New file.
41488         * lib/unistr/u16-prev.c: New file.
41489         * lib/unistr/u32-prev.c: New file.
41490
41491         * modules/unistr/u8-set: New file.
41492         * modules/unistr/u16-set: New file.
41493         * modules/unistr/u32-set: New file.
41494         * lib/unistr/u8-set.c: New file.
41495         * lib/unistr/u16-set.c: New file.
41496         * lib/unistr/u32-set.c: New file.
41497         * lib/unistr/u-set.h: New file.
41498
41499         * modules/unistr/u8-startswith: New file.
41500         * modules/unistr/u16-startswith: New file.
41501         * modules/unistr/u32-startswith: New file.
41502         * lib/unistr/u8-startswith.c: New file.
41503         * lib/unistr/u16-startswith.c: New file.
41504         * lib/unistr/u32-startswith.c: New file.
41505         * lib/unistr/u-startswith.h: New file.
41506
41507         * modules/unistr/u8-stpcpy: New file.
41508         * modules/unistr/u16-stpcpy: New file.
41509         * modules/unistr/u32-stpcpy: New file.
41510         * lib/unistr/u8-stpcpy.c: New file.
41511         * lib/unistr/u16-stpcpy.c: New file.
41512         * lib/unistr/u32-stpcpy.c: New file.
41513         * lib/unistr/u-stpcpy.h: New file.
41514
41515         * modules/unistr/u8-stpncpy: New file.
41516         * modules/unistr/u16-stpncpy: New file.
41517         * modules/unistr/u32-stpncpy: New file.
41518         * lib/unistr/u8-stpncpy.c: New file.
41519         * lib/unistr/u16-stpncpy.c: New file.
41520         * lib/unistr/u32-stpncpy.c: New file.
41521         * lib/unistr/u-stpncpy.h: New file.
41522
41523         * modules/unistr/u8-strcat: New file.
41524         * modules/unistr/u16-strcat: New file.
41525         * modules/unistr/u32-strcat: New file.
41526         * lib/unistr/u8-strcat.c: New file.
41527         * lib/unistr/u16-strcat.c: New file.
41528         * lib/unistr/u32-strcat.c: New file.
41529         * lib/unistr/u-strcat.h: New file.
41530
41531         * modules/unistr/u8-strchr: New file.
41532         * modules/unistr/u16-strchr: New file.
41533         * modules/unistr/u32-strchr: New file.
41534         * lib/unistr/u8-strchr.c: New file.
41535         * lib/unistr/u16-strchr.c: New file.
41536         * lib/unistr/u32-strchr.c: New file.
41537
41538         * modules/unistr/u8-strcmp: New file.
41539         * modules/unistr/u16-strcmp: New file.
41540         * modules/unistr/u32-strcmp: New file.
41541         * lib/unistr/u8-strcmp.c: New file.
41542         * lib/unistr/u16-strcmp.c: New file.
41543         * lib/unistr/u32-strcmp.c: New file.
41544
41545         * modules/unistr/u8-strcpy: New file.
41546         * modules/unistr/u16-strcpy: New file.
41547         * modules/unistr/u32-strcpy: New file.
41548         * lib/unistr/u8-strcpy.c: New file.
41549         * lib/unistr/u16-strcpy.c: New file.
41550         * lib/unistr/u32-strcpy.c: New file.
41551         * lib/unistr/u-strcpy.h: New file.
41552
41553         * modules/unistr/u8-strcspn: New file.
41554         * modules/unistr/u16-strcspn: New file.
41555         * modules/unistr/u32-strcspn: New file.
41556         * lib/unistr/u8-strcspn.c: New file.
41557         * lib/unistr/u16-strcspn.c: New file.
41558         * lib/unistr/u32-strcspn.c: New file.
41559         * lib/unistr/u-strcspn.h: New file.
41560
41561         * modules/unistr/u8-strdup: New file.
41562         * modules/unistr/u16-strdup: New file.
41563         * modules/unistr/u32-strdup: New file.
41564         * lib/unistr/u8-strdup.c: New file.
41565         * lib/unistr/u16-strdup.c: New file.
41566         * lib/unistr/u32-strdup.c: New file.
41567         * lib/unistr/u-strdup.h: New file.
41568
41569         * modules/unistr/u8-strlen: New file.
41570         * modules/unistr/u16-strlen: New file.
41571         * modules/unistr/u32-strlen: New file.
41572         * lib/unistr/u8-strlen.c: New file.
41573         * lib/unistr/u16-strlen.c: New file.
41574         * lib/unistr/u32-strlen.c: New file.
41575         * lib/unistr/u-strlen.h: New file.
41576
41577         * modules/unistr/u8-strmblen: New file.
41578         * modules/unistr/u16-strmblen: New file.
41579         * modules/unistr/u32-strmblen: New file.
41580         * lib/unistr/u8-strmblen.c: New file.
41581         * lib/unistr/u16-strmblen.c: New file.
41582         * lib/unistr/u32-strmblen.c: New file.
41583
41584         * modules/unistr/u8-strmbtouc: New file.
41585         * modules/unistr/u16-strmbtouc: New file.
41586         * modules/unistr/u32-strmbtouc: New file.
41587         * lib/unistr/u8-strmbtouc.c: New file.
41588         * lib/unistr/u16-strmbtouc.c: New file.
41589         * lib/unistr/u32-strmbtouc.c: New file.
41590
41591         * modules/unistr/u8-strncat: New file.
41592         * modules/unistr/u16-strncat: New file.
41593         * modules/unistr/u32-strncat: New file.
41594         * lib/unistr/u8-strncat.c: New file.
41595         * lib/unistr/u16-strncat.c: New file.
41596         * lib/unistr/u32-strncat.c: New file.
41597         * lib/unistr/u-strncat.h: New file.
41598
41599         * modules/unistr/u8-strncmp: New file.
41600         * modules/unistr/u16-strncmp: New file.
41601         * modules/unistr/u32-strncmp: New file.
41602         * lib/unistr/u8-strncmp.c: New file.
41603         * lib/unistr/u16-strncmp.c: New file.
41604         * lib/unistr/u32-strncmp.c: New file.
41605
41606         * modules/unistr/u8-strncpy: New file.
41607         * modules/unistr/u16-strncpy: New file.
41608         * modules/unistr/u32-strncpy: New file.
41609         * lib/unistr/u8-strncpy.c: New file.
41610         * lib/unistr/u16-strncpy.c: New file.
41611         * lib/unistr/u32-strncpy.c: New file.
41612         * lib/unistr/u-strncpy.h: New file.
41613
41614         * modules/unistr/u8-strnlen: New file.
41615         * modules/unistr/u16-strnlen: New file.
41616         * modules/unistr/u32-strnlen: New file.
41617         * lib/unistr/u8-strnlen.c: New file.
41618         * lib/unistr/u16-strnlen.c: New file.
41619         * lib/unistr/u32-strnlen.c: New file.
41620         * lib/unistr/u-strnlen.h: New file.
41621
41622         * modules/unistr/u8-strpbrk: New file.
41623         * modules/unistr/u16-strpbrk: New file.
41624         * modules/unistr/u32-strpbrk: New file.
41625         * lib/unistr/u8-strpbrk.c: New file.
41626         * lib/unistr/u16-strpbrk.c: New file.
41627         * lib/unistr/u32-strpbrk.c: New file.
41628         * lib/unistr/u-strpbrk.h: New file.
41629
41630         * modules/unistr/u8-strrchr: New file.
41631         * modules/unistr/u16-strrchr: New file.
41632         * modules/unistr/u32-strrchr: New file.
41633         * lib/unistr/u8-strrchr.c: New file.
41634         * lib/unistr/u16-strrchr.c: New file.
41635         * lib/unistr/u32-strrchr.c: New file.
41636
41637         * modules/unistr/u8-strspn: New file.
41638         * modules/unistr/u16-strspn: New file.
41639         * modules/unistr/u32-strspn: New file.
41640         * lib/unistr/u8-strspn.c: New file.
41641         * lib/unistr/u16-strspn.c: New file.
41642         * lib/unistr/u32-strspn.c: New file.
41643         * lib/unistr/u-strspn.h: New file.
41644
41645         * modules/unistr/u8-strstr: New file.
41646         * modules/unistr/u16-strstr: New file.
41647         * modules/unistr/u32-strstr: New file.
41648         * lib/unistr/u8-strstr.c: New file.
41649         * lib/unistr/u16-strstr.c: New file.
41650         * lib/unistr/u32-strstr.c: New file.
41651         * lib/unistr/u-strstr.h: New file.
41652
41653         * modules/unistr/u8-strtok: New file.
41654         * modules/unistr/u16-strtok: New file.
41655         * modules/unistr/u32-strtok: New file.
41656         * lib/unistr/u8-strtok.c: New file.
41657         * lib/unistr/u16-strtok.c: New file.
41658         * lib/unistr/u32-strtok.c: New file.
41659         * lib/unistr/u-strtok.h: New file.
41660
41661         * modules/unistr/u8-uctomb: New file.
41662         * modules/unistr/u16-uctomb: New file.
41663         * modules/unistr/u32-uctomb: New file.
41664         * lib/unistr/u8-uctomb.c: New file.
41665         * lib/unistr/u16-uctomb.c: New file.
41666         * lib/unistr/u32-uctomb.c: New file.
41667
41668         * MODULES.html.sh (Unicode string functions): Add the new modules.
41669
41670 2007-01-08  Bruno Haible  <bruno@clisp.org>
41671
41672         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
41673         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
41674         subdirectories.
41675
41676 2007-01-08  Karl Berry  <karl@gnu.org>
41677
41678         * doc/error.texi: mention that main() fns must set program_name
41679         when progname is used.
41680
41681 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
41682
41683         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
41684         WCTYPE_H is empty, for the benefit of builds from non-distclean
41685         directories.  Problem reported by Eric Blake in
41686         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
41687
41688 2007-01-08  Bruno Haible  <bruno@clisp.org>
41689
41690         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
41691         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
41692         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
41693         PROVIDE_CANONICALIZE_FILENAME_MODE.
41694         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
41695
41696 2007-01-08  Bruno Haible  <bruno@clisp.org>
41697
41698         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
41699         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
41700         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
41701         * lib/fts.c: Likewise.
41702         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
41703
41704 2006-12-25  Bruno Haible  <bruno@clisp.org>
41705
41706         * modules/utf8-ucs4-safe: New file.
41707         * lib/utf8-ucs4-safe.h: New file.
41708         * lib/unistr/utf8-ucs4-safe.c: New file.
41709
41710         * modules/utf16-ucs4-safe: New file.
41711         * lib/utf16-ucs4-safe.h: New file.
41712         * lib/unistr/utf16-ucs4-safe.c: New file.
41713
41714         * MODULES.html.sh (Unicode string functions): Add the new modules.
41715
41716 2007-01-08  Bruno Haible  <bruno@clisp.org>
41717
41718         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
41719         (Depends-on): Add unitypes.
41720         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
41721         (u8_mbtouc_aux): Move out to separate file.
41722         (u8_mbtouc): Use ucs4_t, uint8_t types.
41723         * lib/unistr/utf8-ucs4.c: New file.
41724
41725         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
41726         (Depends-on): Add unitypes.
41727         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
41728         (u16_mbtouc_aux): Move out to separate file.
41729         (u16_mbtouc): Use ucs4_t, uint16_t types.
41730         * lib/unistr/utf16-ucs4.c: New file.
41731
41732         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
41733         (Depends-on): Add unitypes.
41734         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
41735         (u8_uctomb_aux): Move out to separate file.
41736         (u8_uctomb): Use ucs4_t, uint8_t types.
41737         * lib/unistr/ucs4-utf8.c: New file.
41738
41739         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
41740         (Depends-on): Add unitypes.
41741         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
41742         (u16_uctomb_aux): Move out to separate file.
41743         (u16_uctomb): Use ucs4_t, uint16_t types.
41744         * lib/unistr/ucs4-utf16.c: New file.
41745
41746 2006-12-25  Bruno Haible  <bruno@clisp.org>
41747
41748         * modules/unitypes: New file.
41749         * lib/unitypes.h: New file.
41750         * MODULES.html.sh (func_all_modules): New section "Unicode string
41751         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
41752         this section. Add unitypes.
41753
41754 2007-01-08  Bruno Haible  <bruno@clisp.org>
41755
41756         Avoid variable names that conflict with those from libtool.
41757         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
41758         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
41759         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
41760         library_names_spec to acl_library_names_spec, hardcode_* to
41761         acl_hardcode_*.
41762         Reported by Ralf Wildenhues.
41763
41764 2007-01-08  Bruno Haible  <bruno@clisp.org>
41765
41766         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
41767         definition.
41768         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
41769         definition.
41770         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
41771         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
41772         definition.
41773         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
41774         definition.
41775         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
41776         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
41777         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
41778         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
41779         definition.
41780         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
41781         definition.
41782         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
41783         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
41784         GC_USE_<algorithm>.
41785         * lib/gc-libgcrypt.c: Likewise.
41786         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
41787         * modules/gc-arctwo (configure.ac): Likewise.
41788         * modules/gc-des (configure.ac): Likewise.
41789         * modules/gc-hmac-md5 (configure.ac): Likewise.
41790         * modules/gc-hmac-sha1 (configure.ac): Likewise.
41791         * modules/gc-md2 (configure.ac): Likewise.
41792         * modules/gc-md4 (configure.ac): Likewise.
41793         * modules/gc-md5 (configure.ac): Likewise.
41794         * modules/gc-random (configure.ac): Likewise.
41795         * modules/gc-rijndael (configure.ac): Likewise.
41796         * modules/gc-sha1 (configure.ac): Likewise.
41797
41798 2007-01-08  Bruno Haible  <bruno@clisp.org>
41799
41800         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
41801         macro definition.
41802         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
41803         definition.
41804         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
41805         definition.
41806         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
41807         * modules/fcntl-safer (configure.ac): Likewise.
41808         * modules/fopen-safer (configure.ac): Likewise.
41809         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
41810         GNULIB_FWRITEERROR macro definition.
41811
41812 2007-01-08  Bruno Haible  <bruno@clisp.org>
41813
41814         * m4/gnulib-common.m4: New file.
41815         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
41816         (func_get_filelist): Add m4/gnulib-common.m4.
41817
41818 2007-01-08  Bruno Haible  <bruno@clisp.org>
41819
41820         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
41821         command.
41822
41823 2007-01-08  Jim Meyering  <jim@meyering.net>
41824
41825         Use a more robust test for a "can't happen" condition.
41826         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
41827         narrowed the st_size value.  Presuming the "can't happen" condition
41828         is true, that narrowing could conceivably convert an invalid st_size
41829         value into a valid one.  Instead, use a change based on Matthew
41830         Woehlke's original patch.
41831
41832         Slight readability improvement: use an assert-like macro
41833         in place of literal "abort ()" uses.
41834         * lib/fts.c (fts_assert): Define.
41835         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
41836         Use this macro instead of a bare 'abort'.
41837
41838 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
41839
41840         Don't worry about using IRIX 5.3's wctype.h broken definitions;
41841         simply work around them.
41842         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
41843         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
41844         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
41845         declaring.
41846         Don't bother to define as macros, since the standard doesn't require it.
41847         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
41848         longer worry about IRIX 5.3.
41849         (HAVE_WCTYPE_CTMP_BUG): Remove.
41850
41851 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
41852
41853         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
41854         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
41855         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41856         Problems reported by Georg Schwarz for IRIX 5.3.
41857
41858         * gnulib-tool (autoconf_minversion): Take the maximum version number
41859         found, not the minimum.  Problem reported by James Youngman.
41860
41861 2007-01-03  Karl Berry  <karl@gnu.org>
41862
41863         * doc/error.texi: new file, explaining interaction with progname.
41864         * doc/gnulib.texi: include it.  Update copyright.
41865
41866 2007-01-03  Simon Josefsson  <simon@josefsson.org>
41867
41868         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
41869         AC_CANONICAL_HOST, to improve autobuild outputs.
41870
41871 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
41872             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
41873
41874         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
41875         sockets, server sockets, and other file descriptors.  Count errors
41876         to compute the return value.  Reorder the code a bit to be easier
41877         to follow.  Don't set event bits that were not requested (except
41878         POLLERR and POLLHUP).
41879
41880 2007-01-01  Bruno Haible  <bruno@clisp.org>
41881
41882         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
41883
41884 2007-01-03  Jim Meyering  <jim@meyering.net>
41885
41886         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
41887
41888 2007-01-02  Bruno Haible  <bruno@clisp.org>
41889
41890         * modules/settime (Include): Require timespec.h.
41891         * modules/nanosleep (Include): Likewise.
41892
41893 2007-01-01  Bruno Haible  <bruno@clisp.org>
41894
41895         * gnulib-tool (func_emit_copyright_notice): Bump year.
41896         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
41897
41898 2007-01-01  Bruno Haible  <bruno@clisp.org>
41899
41900         Improve support for OpenBSD.
41901         * build-aux/config.rpath (libname_spec): Export.
41902         (library_names_spec): New variable. Export.
41903         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
41904         library_names_spec from the config.rpath output. Locate shared library
41905         through the name pattern in library_names_spec.
41906
41907 2007-01-01  Eric Blake  <ebb9@byu.net>
41908
41909         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
41910
41911 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
41912
41913         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
41914         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
41915         assume the C locale, and avoid an "eval" that could cause trouble.
41916         Problem with SORT reported by Bob Proulx.
41917
41918         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
41919         Define.  Trivial patch from Henning Nielsen Lund, originally
41920         sent to bug-grep@gnu.org today.
41921
41922 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
41923
41924         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
41925         struct stat.  Problem reported by Henning Nielsen Lund.
41926         * lib/acl.c: Include acl.h first, to check interface.  Don't
41927         bother to include sys/types.h and sys/stat.h again.
41928
41929 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
41930
41931         Import the following change from libc; problem reported by
41932         Sven Verdoolaege.
41933
41934         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
41935
41936         [BZ #1373]
41937         * lib/argp.h: Remove __NTH for __argp_usage inline function.
41938
41939 2006-12-28  Jim Meyering  <jim@meyering.net>
41940
41941         * build-aux/announce-gen: Do not assume that the package
41942         builds any of tar.gz, tar.bz2, and .xdelta files.
41943         Suggestion from Simon Josefsson.
41944
41945 2006-12-28  Simon Josefsson  <simon@josefsson.org>
41946
41947         * modules/announce-gen: New file.
41948
41949 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
41950
41951         * lib/mbchar.h: Just include <wctype.h>; the wctype module
41952         handles its gotchas now.
41953         * lib/mbswidth.c: Likewise.
41954         * lib/wcwidth.h: Likewise.
41955         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
41956         and iswcntrl; the wctype module does this stuff now.
41957         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
41958         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
41959         * modules/mbchar (Depends-on): Add wctype.
41960         * modules/mbswidth (Depends-on): Likewise.
41961         * modules/wcwidth (Depends-on): Likewise.
41962
41963 2006-12-27  Eric Blake  <ebb9@byu.net>
41964
41965         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
41966         module uses more than what <wctype.h> is required to provide.
41967
41968 2006-12-26  Eric Blake  <ebb9@byu.net>
41969
41970         * gnulib-tool (sed_extract_prog): Avoid space-tab.
41971
41972 2006-12-26  Eric Blake  <ebb9@byu.net>
41973
41974         * modules/absolute-header: New module.
41975         * modules/fcntl (Depends-on): Depend on it.
41976         * modules/inttypes (Depends-on): Likewise.
41977         * modules/stdint (Depends-on): Likewise.
41978         * modules/sys_stat (Depends-on): Likewise.
41979         * modules/wctype (Depends-on): Likewise.
41980         * MODULES.html.sh (Support for building libraries and
41981         executables): Document it.
41982
41983 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
41984
41985         * gnulib-tool (SED): Remove, undoing previous change.
41986         The problem was that it broke coreutils on Solaris, because
41987         "sed --posix" leaked into a makefile.
41988         (sed): New alias, if 'alias' and GNU sed.
41989
41990 2006-12-24  Jim Meyering  <jim@meyering.net>
41991
41992         Work around an fchownat bug in glibc-2.4:
41993         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
41994         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
41995         in spite of the -P option.
41996         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
41997         New macros.
41998         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
41999         * modules/openat (Files): Add lib/fchownat.c.
42000         * lib/openat.c (fchownat): Don't define here.  Move to...
42001         * lib/fchownat.c: ...this new file.
42002
42003 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
42004
42005         Fix bug reported by Bruno Haible in
42006         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
42007         where quotearg.c didn't compile on Mac OS X 10.2 because it
42008         lacks <wchar.h> and wint_t.
42009         * lib/wctype_.h (__wctype_wint_t): New type.
42010         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
42011         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
42012         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
42013         Arg is now of type __wctype_wint_t, not wint_t.
42014         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
42015         substitute HAVE_WINT_T.
42016         * modules/wctype (Files): Add m4/wint_t.m4.
42017         (wctype.h): Substitute HAVE_WINT_T.
42018
42019 2006-12-23  Bruno Haible  <bruno@clisp.org>
42020
42021         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
42022
42023 2006-12-23  Bruno Haible  <bruno@clisp.org>
42024
42025         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
42026         S_ISLNK.
42027         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
42028         mingw.
42029
42030 2006-12-22  Bruno Haible  <bruno@clisp.org>
42031
42032         * lib/copy-file.c: Include acl.h.
42033         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
42034         Close the file descriptors only after being done with copy_acl.
42035         * modules/copy-file (Depends-on): Add acl.
42036
42037 2006-12-22  Bruno Haible  <bruno@clisp.org>
42038
42039         * gnulib-tool (SED): New variable.
42040         Use $SED instead of sed everywhere.
42041
42042 2006-12-22  Bruno Haible  <bruno@clisp.org>
42043
42044         * modules/no-c++: New file.
42045         * m4/no-c++.m4: New file.
42046         * MODULES.html.sh (Support for building libraries and executables):
42047         Add no-c++.
42048
42049 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
42050
42051         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
42052         Include <limits.h>, and use its INT_MAX to rewrite the
42053         j loop so that it does not overflow 'int'.  Problem reported by
42054         Ralf Wildenhues in
42055         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
42056         Play it safe by shifting left by 1 rather than multiplying by 2,
42057         as GCC is less likely to optimize this away when the value
42058         is signed (when it assumes overflow leads to undefined behavior).
42059         Also, don't assume time_t uses two's complement.
42060
42061 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
42062
42063         * MODULES.html.sh: New module wctype.
42064         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
42065         * lib/fnmatch.c: Don't bother to include <wchar.h> before
42066         <wctype.h>, since the new wctype module should fix this.
42067         * lib/quotearg.c: Include <wctype.h> unconditionally, since
42068         the wctype module should arrange for it.
42069         * lib/regex_internal.h: Likewise.
42070         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
42071         since the wctype module should handle this now.
42072         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
42073         * modules/fnmatch (Depends-on): Add wctype.
42074         * modules/quotearg (Depends-on): Likewise.
42075         * modules/regex (Depends-on): Likewise.
42076
42077 2006-12-19  Bruno Haible  <bruno@clisp.org>
42078
42079         * lib/strdup.h [C++]: Wrap definitions in extern "C".
42080         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
42081
42082 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42083
42084         * modules/savewd (Depends-on): Fix dependency on fcntl.
42085
42086 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
42087
42088         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
42089         conforms to C99, rather than relying on the user's environment
42090         setting of STDINT_H.
42091
42092 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
42093         and Eric Blake  <ebb9@byu.net>
42094
42095         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
42096         This is more consistent with the other defines here.
42097         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
42098         Port to z/OS.  Problem reported by Paul Gilmartin.
42099         Change local vars to use gl_ prefix rather than ac_.
42100         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
42101         with other defines.
42102         * modules/double-slash-root: New module.
42103         * modules/dirname (Files): Remove m4/double-slash-root.m4.
42104         (Depends-on): Add double-slash-root.
42105         * MODULES.html.sh (File system functions): Mention new module.
42106
42107 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
42108
42109         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
42110         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
42111         This is for the benefit of gzip, which doesn't do i18n.
42112
42113 2006-12-12  Jim Meyering  <jim@meyering.net>
42114
42115         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
42116         Reported by Andreas Schwab <schwab@suse.de>.
42117
42118 2006-12-12  Bruno Haible  <bruno@clisp.org>
42119
42120         Merge these changes.
42121         2006-09-05  Bruno Haible  <bruno@clisp.org>
42122         * lib/iconvme.c (iconv_string): No need to save and restore errno when
42123         iconv_alloc succeeded.
42124         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
42125         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
42126         test for " && dest " at the end - dest is always != NULL there. Call
42127         iconv with 4xNULL arguments initially, to reset the state. Call iconv
42128         with 2xNULL arguments, also to flush the state storage. Handle the
42129         IRIX iconv behaviour. Realloc the final result, to throw away unused
42130         memory.
42131
42132 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
42133
42134         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
42135         and fchmodat unconditionally, since glibc 2.4 has them.
42136         Problem reported by Arkadiusz Miskiewicz.
42137
42138 2006-12-10  Bruno Haible  <bruno@clisp.org>
42139
42140         * gnulib-tool (func_import): Show the include files only for those
42141         modules that are copied and specified.
42142         Reported by Karl Berry.
42143
42144 2006-12-08  Jim Meyering  <jim@meyering.net>
42145
42146         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
42147         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
42148
42149         * build-aux/announce-gen: Add two new options, both optional:
42150         --bootstrap-tools=TOOL_LIST
42151               a comma-separated list of tools, e.g.,
42152               autoconf,automake,bison,gnulib
42153         --gnulib-snapshot-date=DATE
42154               if gnulib is in the bootstrap tool list,
42155               then report this as the snapshot date.
42156               If not specified, use the current date/time.
42157               If you specify a date here, be sure it's UTC.
42158
42159 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42160
42161         * tests/test-argp-2.sh: Fix test to match actual output.
42162         (func_compare): Fix sed script to be portable.
42163
42164 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
42165
42166         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
42167         workaround for this case.  It is not autoconfigured now; offhand
42168         it's hard to see how to autoconfigure it.
42169
42170 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
42171
42172         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
42173         a directory that is about to be chowned.  Such a directory's
42174         initial file permissions should permit the owner only and this
42175         should not be changed until after the chown, since the group and
42176         other bits would be incorrect if they granted permission before
42177         the chown.
42178
42179         Fix porting problem for iswctype reported by Georg Schwarz in:
42180         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
42181         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
42182         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
42183         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
42184         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
42185
42186 2006-12-03  Jim Meyering  <jim@meyering.net>
42187
42188         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
42189         p->fts_statp may not yet be defined.
42190         (fts_read): Instead, set it in the caller, once p->fts_statp is
42191         sure to be defined, and corresponds to a top-level directory.
42192         This bug made du -x fail.  Here's the coreutils test case:
42193         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
42194         Reported by Mike Frysinger.
42195
42196 2006-12-01  Jim Meyering  <jim@meyering.net>
42197
42198         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
42199         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
42200         Reported by Simon Josefsson.
42201
42202 2006-11-30  Jim Meyering  <jim@meyering.net>
42203
42204         * m4/warning.m4: Use the all-permissive copyright notice
42205         recommended by RMS (rather than LGPL).
42206         * m4/vararrays.m4: Likewise.
42207         * m4/flexmember.m4: Likewise.
42208
42209 2006-11-29  Bruno Haible  <bruno@clisp.org>
42210
42211         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
42212         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
42213         using +=.
42214         Reported by Simon Josefsson <simon@josefsson.org>.
42215
42216 2006-11-28  James Youngman <jay@gnu.org>
42217
42218         * README: Advise users that they might find the bug-gnulib@gnu.org
42219         and autotools-announce@gnu.org mailing lists useful.
42220
42221 2006-11-28  Bruno Haible  <bruno@clisp.org>
42222
42223         * m4/ptrdiff_max.m4: Remove file.
42224
42225 2006-11-21  Bruno Haible  <bruno@clisp.org>
42226
42227         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
42228         _AC_COMPUTE_INT.
42229         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
42230         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
42231         _AC_COMPUTE_INT.
42232         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
42233         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
42234         _AC_COMPUTE_INT.
42235         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
42236
42237 2006-11-28  Jim Meyering  <jim@meyering.net>
42238
42239         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
42240         warning from "gcc -Wshadow" about shadowing the builtin.
42241
42242 2006-11-27  Bruno Haible  <bruno@clisp.org>
42243
42244         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
42245         _AC_COMPUTE_INT.
42246         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
42247
42248 2006-11-27  Bruno Haible  <bruno@clisp.org>
42249             Paul Eggert  <eggert@cs.ucla.edu>
42250
42251         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
42252
42253 2006-11-26  Bruno Haible  <bruno@clisp.org>
42254
42255         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
42256         noinst_LTLIBRARIES.
42257
42258 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
42259             Bruno Haible  <bruno@clisp.org>
42260
42261         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
42262         if compiling with "gcc -ansi".
42263
42264 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
42265
42266         Fix some incompatibilities with gcc -ansi -pedantic.
42267         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
42268         if compiling pedantically with GCC, unless it's C99 or later.
42269         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
42270         it mishandles gcc -ansi -pedantic as well.
42271         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
42272         if gcc -pedantic.
42273         * lib/regexec.c (check_node_accept_bytes): Don't use auto
42274         initializers for struct if -pedantic, unless it's C99 or later.
42275
42276 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
42277
42278         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
42279         Don't close an fd more than once. Identical atimes indicate
42280         success, not failure.
42281
42282 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
42283
42284         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
42285
42286 2006-11-23  Jim Meyering  <jim@meyering.net>
42287
42288         * build-aux/announce-gen: New file.  From coreutils.
42289
42290 2006-11-22  Jim Meyering  <jim@meyering.net>
42291
42292         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
42293         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
42294         (fts_read): Use a temporary to narrow the overused st_size member
42295         before using it in a switch statement.  Reported by Matthew Woehlke.
42296
42297         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
42298         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
42299
42300 2006-11-20  Bruno Haible  <bruno@clisp.org>
42301
42302         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
42303         changequote instead of pairs of brackets.
42304         Reported by Andreas Schwab <schwab@suse.de>.
42305
42306 2006-11-21  Jim Meyering  <jim@meyering.net>
42307
42308         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
42309         so as to remain compatible with older compilers.
42310         Patch from Michael Deutschmann.
42311
42312 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
42313
42314         * MODULES.html.sh (File system functions): Add openat.
42315
42316         * lib/openat.h (rpl_fstatat): New macro, if
42317         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
42318         (fstatat): Define to rpl_fstatat under the same conditions,
42319         unless COMPILING_FSTATAT.
42320         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
42321         seems to have the bug.
42322         * lib/fstatat.c: New file.
42323         * modules/openat (Files): Add it.
42324
42325 2006-11-20  Bruno Haible  <bruno@clisp.org>
42326
42327         * Makefile: New file.
42328
42329 2006-11-20  Jim Meyering  <jim@meyering.net>
42330
42331         The beginnings of syntax-related checks for gnulib.
42332         * lib/Makefile: New file.
42333         * lib/t-idcache: New script.  Ensure that the two halves of
42334         idcache.c stay in sync.
42335
42336         * lib/idcache.c: Adjust comments in user- and group- portions to
42337         be more accurate, and to be consistent with one another.
42338
42339 2006-11-20  Jim Meyering  <jim@meyering.net>
42340
42341         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
42342         continue using the flexible array member (thus, this module performs
42343         half as many malloc calls), with the addition that...
42344         (getgroup, getuser): Consistently record a non-match via an empty
42345         "name" string, and map an empty string match to a NULL return value.
42346         * modules/idcache (Depends-on): Re-add flexmember.
42347
42348         * lib/idcache.c (getuser): Remove all uses of the register keyword.
42349         (getuidbyname, getgroup, getgidbyname): Likewise.
42350
42351         Use cleaner syntax: NULL rather than 0.
42352         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
42353
42354 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
42355
42356         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
42357         It mishandled the case where the group was missing.
42358         Problem reported by Greg Schafer.
42359         * modules/idcache: Likewise.
42360
42361 2006-11-18  Jim Meyering  <jim@meyering.net>
42362
42363         * check-module (%exempt_header): Add exception for some
42364         conditionally-included headers.
42365
42366         * modules/i-ring (Depends-on): Add verify.
42367         (License): Change to LGPL.
42368
42369 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
42370
42371         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
42372         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
42373         and inttostr.h.  Use snprintf rather than uinttostr, so that
42374         LGPLed code doesn't depend on GPLed.
42375
42376 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
42377
42378         * modules/inline (License): Change from GPL to LGPL.
42379
42380 2006-11-17  Jim Meyering  <jim@meyering.net>
42381
42382         * modules/d-type (License): Switch to LGPL.
42383
42384 2006-11-15  Bruno Haible  <bruno@clisp.org>
42385
42386         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
42387
42388 2006-11-15  Eric Blake  <ebb9@byu.net>
42389
42390         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
42391         the module dependency.
42392
42393 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42394             Bruno Haible  <bruno@clisp.org>
42395
42396         * gnulib-tool (func_create_testdir): Add license consistency check.
42397
42398 2006-11-15  Eric Blake  <ebb9@byu.net>
42399
42400         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
42401         random "(cached)" in configure output.
42402
42403 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42404
42405         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
42406         test for conforming inttypes.h is both announced and cached.
42407
42408         * MODULES.html.sh (seen_modules, seen_files): New variables.
42409         (func_module): Rewrite to use a few less gnulib-tool and sed
42410         invocations.  Avoid a couple of quadratic algorithms for ...
42411         (missed_modules, missed_files): ... these, with ...
42412         (func_append, func_tmpdir): ... these new functions, from
42413         gnulib-tool.  Analogously, install traps for cleanup.
42414
42415         * tests/test-gc.c (main): Remove unused variables.
42416         * tests/test-read-file.c: Include stdlib.h, for 'free'.
42417
42418 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
42419
42420         * modules/inttostr (License): Change to LGPL.
42421
42422 2006-11-14  Eric Blake  <ebb9@byu.net>
42423
42424         * modules/tempname (License): Change to LGPL.
42425
42426 2006-11-14  Eric Blake  <ebb9@byu.net>
42427
42428         * doc/functions.texi (Function Portability): *printf functions on
42429         Cygwin now understand all POSIX size specifiers.
42430
42431 2006-11-14  Bruno Haible  <bruno@clisp.org>
42432
42433         * modules/c-ctype (License): Change to LGPL.
42434
42435 2006-11-12  Bruno Haible  <bruno@clisp.org>
42436
42437         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
42438         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
42439         for GNOME libraries, for which the include files are installed in
42440         subdirectories of $prefix/include.
42441
42442 2006-11-12  Bruno Haible  <bruno@clisp.org>
42443
42444         * m4/lib-link.m4: Require at least autoconf-2.54.
42445         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
42446         name to underscores for the --with option.
42447
42448 2006-11-13  Bruno Haible  <bruno@clisp.org>
42449
42450         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
42451         the tests directory.
42452         Reported by Ralf Wildenhues.
42453
42454 2006-11-13  Bruno Haible  <bruno@clisp.org>
42455
42456         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
42457         (func_emit_initmacro_end): Undo the override here.
42458         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
42459         Works around the famous automake error in coreutils.
42460
42461 2006-11-13  Eric Blake  <ebb9@byu.net>
42462
42463         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
42464         element, not its node.
42465
42466 2006-11-12  Bruno Haible  <bruno@clisp.org>
42467
42468         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
42469         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
42470
42471 2006-11-12  Bruno Haible  <bruno@clisp.org>
42472
42473         * gnulib-tool: New option --local-symlink.
42474         (func_usage): Document it.
42475         (lsymbolic): New variable.
42476         (func_import, func_create_testdir): If --symlink was not specified,
42477         test whether --local-symlink was specified and the file comes from
42478         the local_gnulib_dir.
42479
42480 2006-11-12  Bruno Haible  <bruno@clisp.org>
42481
42482         * gnulib-tool (func_ln): New function.
42483         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
42484
42485 2006-11-12  Bruno Haible  <bruno@clisp.org>
42486
42487         Finish support for source files in subdirectories.
42488         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
42489         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
42490         AUTOMAKE_OPTIONS.
42491         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
42492
42493 2006-11-12  Bruno Haible  <bruno@clisp.org>
42494
42495         * gnulib-tool (func_get_automake_snippet): Synthesize also an
42496         EXTRA_lib_SOURCES augmentation.
42497         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
42498
42499 2006-11-12  Jim Meyering  <jim@meyering.net>
42500
42501         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
42502         file descriptors.  This also averts a failure on systems with
42503         native openat support when a traversed directory lacks "x" access.
42504         * lib/fts_.h: Include "i-ring.h"
42505         (struct FTS) [fts_fd_ring]: New member.
42506         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
42507         (FCHDIR): Add parentheses.
42508         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
42509         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
42510         When descending, rather than simply closing the previous
42511         fts_cwd_fd value, push that file descriptor onto the ring.
42512         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
42513         (fts_open): Initialize the new fd_ring member.
42514         (fts_close): Clear the ring.
42515         (fts_safe_changedir): When possible, use our new fd_ring to skip
42516         the diropen and fstat and dev/ino comparison that would normally
42517         accompany a virtual `chdir ("..")'.
42518
42519         * modules/fts (Depends-on): Add i-ring.
42520         * modules/i-ring: New module.
42521         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
42522         * m4/i-ring.m4: New file.
42523
42524 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42525
42526         * gnulib-tool (func_create_testdir): Fix replacement of
42527         `build-aux' in configure.ac.  Run autotools in gltests
42528         subdirectory.
42529         (func_create_testdir, func_create_megatestdir, test): There is
42530         no need for '--force' in most autotool invocations in a new
42531         tree.  Actually fail the whole test if any of the tools, or the
42532         configure or make stages fail.
42533
42534         Sync from Automake.
42535         * build-aux/gnupload: Revert last change.  Add pointer to upload
42536         instructions of the GNU Maintenance Instructions.
42537         Suggestion by Karl Berry.
42538
42539 2006-11-10  Jim Meyering  <jim@meyering.net>
42540
42541         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
42542
42543 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
42544
42545         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
42546         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
42547         (bind_textdomain_codeset) [! ENABLE_NLS]:
42548         Evaluate all the arguments.  That way, callers get compatible behavior
42549         if the arguments have side effects.  Also, it avoids some GCC
42550         diagnostics in some cases; Joel E. Denny reported problems when Bison
42551         was configured with --enable-gcc-warnigs.
42552
42553 2006-11-10  Jim Meyering  <jim@meyering.net>
42554
42555         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
42556         relevant options in CFLAGS (like -O, -fno-inline) are taken into
42557         account.
42558
42559 2006-11-10  Jim Meyering  <jim@meyering.net>
42560
42561         * modules/inline: New file/module.
42562         * modules/xalloc (Files): Remove m4/inline.m4.
42563         (Depends-on): Add inline, instead.
42564         * modules/oset: Likewise.
42565         * modules/list: Likewise.
42566
42567 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
42568
42569         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
42570         Problem reported by Matthew Woehlke.
42571
42572 2006-11-09  Bruno Haible  <bruno@clisp.org>
42573
42574         * lib/tempname.c (gen_tempname): Remove variant that invokes
42575         __gen_tempname.
42576         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
42577         __gen_tempname.
42578
42579 2006-11-08  Bruno Haible  <bruno@clisp.org>
42580
42581         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
42582         to 'yes' instead of 'cross-compiling'.
42583
42584 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
42585
42586         * lib/quotearg.h (quotearg_free): New decl.
42587         * lib/quotearg.c (quotearg_free): New function.
42588         (slot0, nslots, slotvec0, slotvec):
42589         Now file-scope so that quotearg_free can get at them.
42590
42591 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42592
42593         Sync from Automake.
42594         * build-aux/gnupload: Add missing 'gnu' to example URL.
42595         Report by Karl Berry.
42596
42597 2006-11-08  Bruno Haible  <bruno@clisp.org>
42598
42599         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
42600         Suggested by Paul Eggert.
42601
42602 2006-11-08  Jim Meyering  <jim@meyering.net>
42603
42604         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
42605         It's already included if !_LIBC.
42606         (fts_safe_changedir): Add a comment.
42607
42608 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
42609
42610         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
42611         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
42612         Matthew Woehlke.
42613
42614         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
42615         definitions up, to avoid colliding with change below.
42616         (static_inline) [HAVE_INLINE]: New macro.
42617         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
42618         Provide extern decls when !HAVE_INLINE.  Do not define unless
42619         static_inline is defined, either by us or by xmalloc.c.  Use
42620         static_inline rather than static inline.
42621         (XCALLOC): Optimize sizeof(T) = 1 case.
42622         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
42623
42624 2006-11-07  Bruno Haible  <bruno@clisp.org>
42625
42626         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
42627         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
42628         AC_C_INLINE.
42629         * modules/xalloc (Files): Add m4/inline.m4.
42630
42631 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42632
42633         * README: Fix typo.
42634         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
42635         (Miscellanous Notes): ...from this.
42636
42637 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
42638
42639         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
42640         Mention that offsetof should be used instead of sizeof.
42641         From Bruno Haible.
42642
42643 2006-11-07  Bruno Haible  <bruno@clisp.org>
42644
42645         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
42646
42647 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
42648
42649         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
42650         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
42651         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
42652         (gl_tree_add_before, gl_tree_add_after):
42653         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
42654         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
42655         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
42656         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
42657         (gl_linked_add_after, gl_linked_add_at): Likewise.
42658         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
42659         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
42660         (gl_tree_add_before, gl_tree_add_after): Likewise.
42661         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
42662         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
42663         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
42664
42665 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42666
42667         * lib/gl_oset.h: Use C comment style, not C++ comment style.
42668
42669 2006-11-06  Bruno Haible  <bruno@clisp.org>
42670
42671         * m4/inline.m4: New file.
42672         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
42673         * modules/list (Files): Add m4/inline.m4.
42674         * modules/oset (Files): Likewise.
42675
42676 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
42677
42678         * lib/idcache.c: Include <stddef.h>, for offsetof.
42679         (struct userid.name): Change from char * to a flexible array member.
42680         All uses changed.
42681         * modules/idcache (Depends-on): Add flexmember.
42682
42683         * MODULES.html.sh (Core language properties): New module flexmember.
42684         * modules/flexmember, m4/flexmember.m4: New files.
42685
42686         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
42687         inline functions that are identical with the old xnmalloc_inline,
42688         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
42689         that we can avoid some unnecessary integer multiplications and
42690         divisions in the common case where the element size is known at
42691         compile time.
42692         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
42693         needed.
42694         (xnboundedmalloc): Remove.
42695         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
42696         arguments, for consistency with rest of this header.
42697         (xcharalloc): Rewrite using XNMALLOC.
42698         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
42699         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
42700         versions have been moved to lib/xalloc.h and renamed to be the
42701         non-*_inline versions.
42702         (xmalloc, xrealloc): Implement without reference to the xnmalloc
42703         and xnrealloc functions, since those functions are now inline and
42704         now call us.
42705         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
42706         renaming described above.
42707         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
42708         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
42709         captures the dependency in AC_C_INLINE.
42710
42711         New module canonicalize-lgpl, proposed by Charles Wilson in
42712         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
42713         with a few small changes afterwards.
42714         * MODULES.html.sh (File system functions): New module
42715         canonicalize-lgpl.
42716         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
42717         and canonicalize_file_name.
42718         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
42719         * modules/canonicalize-lgpl: New files.
42720
42721 2006-11-05  Bruno Haible  <bruno@clisp.org>
42722
42723         * gnulib-tool (func_import, func_create_testdir): Create directories
42724         also for files in subdirectories of lib/.
42725
42726 2006-11-05  Bruno Haible  <bruno@clisp.org>
42727
42728         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
42729         ANSI C compliant.
42730
42731 2006-11-03  Bruno Haible  <bruno@clisp.org>
42732
42733         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
42734         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
42735         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
42736         (xnboundedmalloc): New inline function.
42737         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
42738         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
42739         xmalloc.
42740         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
42741         xmalloc.
42742         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
42743         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
42744         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
42745         xmalloc.
42746         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
42747         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
42748         xmalloc.
42749         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
42750         gl_tree_add_after): Use XMALLOC instead of xmalloc.
42751         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
42752         xmalloc.
42753         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
42754         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
42755         gl_tree_add_after): Use XMALLOC instead of xmalloc.
42756         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
42757         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
42758         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
42759         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
42760
42761 2006-11-03  Bruno Haible  <bruno@clisp.org>
42762
42763         * lib/c-ctype.h [C++]: Define functions without name mangling.
42764         * lib/fwriteerror.h [C++]: Likewise.
42765         * lib/gcd.h [C++]: Likewise.
42766         * lib/linebreak.h [C++]: Likewise.
42767
42768 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
42769
42770         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
42771         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
42772         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
42773         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
42774         Check for functions and headers just once.
42775         Check for declaration of canonicalize_file_name.
42776         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
42777
42778 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
42779
42780         * gnulib-tool (func_import): Fix typo in actioncmd.
42781
42782 2006-11-02  Bruno Haible  <bruno@clisp.org>
42783
42784         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
42785         newline sequence in the Makefile.am snippet as a space, like "make"
42786         does.
42787         Reported by Roger Persson <perrog@gmail.com>.
42788
42789 2006-11-01  Bruno Haible  <bruno@clisp.org>
42790
42791         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
42792         already declared in <string.h>.
42793         * lib/strcase.h (strncasecmp): Don't declare it if yes.
42794
42795 2006-11-01  Bruno Haible  <bruno@clisp.org>
42796
42797         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
42798         * lib/strcase.h: Include <string.h>.
42799         (strcasecmp): Define to rpl_strcasecmp here.
42800
42801 2006-11-01  Bruno Haible  <bruno@clisp.org>
42802
42803         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
42804
42805 2006-11-01  Eric Blake  <ebb9@byu.net>
42806
42807         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
42808
42809         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
42810
42811 2006-10-29  Bruno Haible  <bruno@clisp.org>
42812
42813         Make it compile in C++ mode.
42814         * lib/full-write.c (full_rw): Add a cast.
42815
42816 2006-11-01  Bruno Haible  <bruno@clisp.org>
42817
42818         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
42819         be POSIX compliant.
42820         Reported by Roger Persson <perrog@gmail.com>.
42821
42822 2006-11-01  Eric Blake  <ebb9@byu.net>
42823
42824         * lib/getopt_.h: Fix comments.
42825
42826 2006-10-31  Eric Blake  <ebb9@byu.net>
42827
42828         * modules/tmpdir (Depends-on): Add sys_stat.
42829         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
42830         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
42831         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
42832         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
42833         tempname.
42834
42835 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
42836
42837         Avoid some C++ diagnostics reported by Bruno Haible.
42838         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
42839         xmalloc.
42840         (quotearg_alloc): Use xcharalloc rather than xmalloc.
42841         (struct slotvec): Move to top level.
42842         (quotearg_n_options): Rewrite to avoid xmalloc.
42843         * lib/xalloc.h (xcharalloc): New function.
42844         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
42845         [defined __cplusplus]: Add function template that provides result
42846         type propagation.  This part of the change is from Bruno Haible.
42847
42848 2006-10-29  Bruno Haible  <bruno@clisp.org>
42849
42850         Make it compile in C++ mode.
42851         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
42852         * lib/strnlen1.c (strnlen1): Cast memchr result.
42853         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
42854         * lib/clean-temp.c (string_equals, string_hash): Add casts.
42855         (create_temp_dir): Rename local variable 'template'.
42856         (compile_csharp_using_sscli): Add cast.
42857         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
42858         * lib/findprog.c (find_in_path): Likewise.
42859         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
42860         * lib/wait-process.c (register_slave_subprocess): Likewise.
42861
42862 2006-10-22  Bruno Haible  <bruno@clisp.org>
42863
42864         * modules/tsearch: New file.
42865         * lib/tsearch.h: New file.
42866         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
42867         * m4/tsearch.m4: New file.
42868         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
42869
42870 2006-10-29  Eric Blake  <ebb9@byu.net>
42871
42872         * lib/arcfour.c: Assume config.h.
42873         * lib/arctwo.c: Likewise.
42874         * lib/base64.c: Likewise.
42875         * lib/check-version.c: Likewise.
42876         * lib/crc.c: Likewise.
42877         * lib/des.c: Likewise.
42878         * lib/gc-gnulib.c: Likewise.
42879         * lib/gc-libgcrypt.c: Likewise.
42880         * lib/gc-pbkdf2-sha1.c: Likewise.
42881         * lib/getaddrinfo.c: Likewise.
42882         * lib/getdelim.c: Likewise.
42883         * lib/getline.c: Likewise.
42884         * lib/hmac-md5.c: Likewise.
42885         * lib/hmac-sha1.c: Likewise.
42886         * lib/iconvme.c: Likewise.
42887         * lib/md2.c: Likewise.
42888         * lib/md4.c: Likewise.
42889         * lib/memxor.c: Likewise.
42890         * lib/read-file.c: Likewise.
42891         * lib/readline.c: Likewise.
42892         * lib/rijndael-alg-fst.c: Likewise.
42893         * lib/rijndael-api-fst.c: Likewise.
42894         * lib/xgetdomainname.c: Likewise.
42895
42896 2006-10-28  Eric Blake  <ebb9@byu.net>
42897
42898         * lib/xstrndup.c: Assume config.h.
42899
42900 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
42901
42902         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
42903         stat-macros.h is now for our own macros, whereas stat_h is for
42904         macros in the <sys/stat.h> name space.
42905         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
42906         (STAT_MACROS_H): Remove.
42907         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
42908         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
42909         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
42910         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
42911         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
42912         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
42913         Move these macros to ...
42914         * lib/stat_.h: here.  Don't include stat-macros.h.
42915         * lib/canonicalize.c: Don't include stat-macros.h.
42916         * lib/chown.c: Likewise.
42917         * lib/euidaccess.c: Likewise.
42918         * lib/file-type.c: Likewise.
42919         * lib/filemode.c: Likewise.
42920         * lib/glob.c: Likewise.
42921         * lib/isapipe.c: Likewise.
42922         * lib/lchown.c: Likewise.
42923         * lib/lstat.c: Likewise.
42924         * lib/mkdir-p.c: Likewise.
42925         * lib/rmdir.c: Likewise.
42926         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
42927         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
42928         unless mkdir isn't declared, to speed up 'configure'.
42929         Always create sys/stat.h, since it's unlikely any real sys/stat.h
42930         would define all the S_* symbols.
42931         * modules/canonicalize (Depends-on):
42932         Depend on sys_stat, not stat-macros.
42933         * modules/chown: Likewise.
42934         * modules/euidaccess: Likewise.
42935         * modules/filemode: Likewise.
42936         * modules/file-type: Likewise.
42937         * modules/glob: Likewise.
42938         * modules/isapipe: Likewise.
42939         * modules/lchown: Likewise.
42940         * modules/lstat: Likewise.
42941         * modules/mkancesdirs: Likewise.
42942         * modules/rmdir: Likewise.
42943         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
42944         * modules/modechange: Likewise.
42945         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
42946         (configure.ac): Remove gl_STAT_MACROS.
42947         * modules/sys_stat (Depends-on): Remove stat-macros.
42948
42949 2006-10-27  Bruno Haible  <bruno@clisp.org>
42950
42951         * m4/signed.m4: Remove file.
42952         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
42953         invocation.
42954         * modules/vasnprintf (Files): Remove m4/signed.m4.
42955
42956 2006-10-27  Bruno Haible  <bruno@clisp.org>
42957
42958         Update to GNU gettext 0.16.
42959         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
42960         m4/inttypes-h.m4, m4/signed.m4.
42961         * m4/gettext.m4: Update to GNU gettext 0.16.
42962         * m4/intl.m4: New file, from GNU gettext.
42963         * m4/intldir.m4: New file, from GNU gettext.
42964         * config/srclist.txt: Update
42965
42966 2006-10-27  Eric Blake  <ebb9@byu.net>
42967
42968         * MODULES.html.sh: Document tempname.
42969         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
42970         dependencies.
42971         (Files): Move lib/tempname.c...
42972         * modules/tempname: ...to this new module.
42973         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
42974         (gl_PREREQ_TEMPNAME): Move...
42975         * m4/tempname.m4: ...to this new file.
42976         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
42977         * modules/sys_stat (Depends-on): Add stat-macros.
42978         * lib/stat_.h (includes): Pick up stat macros.
42979         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
42980         if stat macros are broken.
42981         * lib/tempname.c (includes): No need to include "stat-macros.h".
42982         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
42983         (direxists, __path_search) [!_LIBC]: Don't compile these in
42984         gnulib; the tmpdir module covers that.
42985         * lib/tempname.h: New file.
42986
42987 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
42988
42989         * COPYING: Explain how gnulib-tool converts licence headers.
42990         Almost all wording by Eric Blake.
42991
42992 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
42993
42994         * lib/mbchar.h (is_basic_table): Make read-only.
42995         * lib/mbchar.c (is_basic_table): Likewise.
42996         Reported by John Darrington.
42997
42998 2006-10-25  Bruno Haible  <bruno@clisp.org>
42999
43000         * lib/progname.h (set_program_name): Undefine before defining.
43001
43002 2006-10-25  Bruno Haible  <bruno@clisp.org>
43003
43004         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
43005         false for non-gcc C++ compilers.
43006         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
43007
43008 2006-10-24  Bruno Haible  <bruno@clisp.org>
43009
43010         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
43011         iconv implementations like Irix iconv.
43012
43013 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
43014
43015         * modules/vararrays: New file.
43016         * m4/vararrays.m4: New file, taken from diffutils.
43017         * MODULES.html.sh: New module vararrays.
43018
43019 2006-10-24  Karl Berry  <karl@gnu.org>
43020
43021         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
43022         Don't call GNU Unix.
43023
43024 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43025
43026         * users.txt: Add Libtool.
43027
43028         Sync from Libtool:
43029
43030         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
43031
43032         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
43033         to gnulib's policy of including config.h unconditionally.
43034
43035 2006-10-24  Bruno Haible  <bruno@clisp.org>
43036
43037         * modules/wcwidth (Files): Add m4/wint_t.m4.
43038         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
43039         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
43040
43041 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
43042
43043         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
43044         to pacify GCC with some -W flags enabled.  Problem reported by
43045         Bruno Haible.
43046
43047 2006-10-24  Jim Meyering  <jim@meyering.net>
43048
43049         * MODULES.html.sh: Remove uinttostr.  It's not a module.
43050         Reported by Karl Berry.
43051
43052 2006-10-23  Bruno Haible  <bruno@clisp.org>
43053
43054         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
43055
43056 2006-10-24  Bruno Haible  <bruno@clisp.org>
43057
43058         * lib/gl_list.h: Use C comment style, not C++ comment style.
43059
43060 2006-10-23  Eric Blake  <ebb9@byu.net>
43061
43062         * lib/getaddrinfo.c (includes): Add missing include.
43063
43064 2006-10-23  Bruno Haible  <bruno@clisp.org>
43065             Paul Eggert  <eggert@cs.ucla.edu>
43066
43067         Ability to rename obstack_free.
43068         * lib/obstack.h (__obstack_free): New macro. Declare instead of
43069         obstack_free.
43070         (obstack_free): Invoke the __obstack_free macro.
43071         * lib/obstack.c (obstack_free): Use __obstack_free macro.
43072
43073 2006-10-23  Bruno Haible  <bruno@clisp.org>
43074             Paul Eggert  <eggert@cs.ucla.edu>
43075
43076         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
43077         __argc, __argv from the declaration. (They are defined as macros on
43078         mingw.)
43079
43080 2006-10-22  Bruno Haible  <bruno@clisp.org>
43081
43082         * doc/gnulib-intro.texi: New file.
43083         * doc/gnulib.texi: Include it.
43084
43085 2006-10-21  Bruno Haible  <bruno@clisp.org>
43086
43087         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
43088         "Introduction", "Miscellanous Notes", "Particular Modules".
43089
43090 2006-10-21  Bruno Haible  <bruno@clisp.org>
43091
43092         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43093         Change mostlyclean-local rule to avoid sh syntax error from bash
43094         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
43095
43096 2006-10-23  Jim Meyering  <jim@meyering.net>
43097
43098         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
43099         in place of snprintf.
43100
43101         * modules/inttostr (Files): Add lib/uinttostr.c.
43102         * lib/uinttostr.c (inttostr): New file/function.
43103         * lib/inttostr.h (uinttostr): Declare.
43104         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
43105         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
43106         Add uinttostr.
43107         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
43108
43109 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
43110
43111         * lib/canonicalize.c (ELOOP): Define if not already defined.
43112         Problem reported by Bruno Haible in
43113         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
43114
43115 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
43116
43117         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
43118         Problem reported by Perry Smith and Ville Laurikari.
43119
43120         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
43121         uses.
43122
43123 2006-10-19  Bruno Haible  <bruno@clisp.org>
43124
43125         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
43126         for mingw.
43127
43128 2006-10-19  Bruno Haible  <bruno@clisp.org>
43129
43130         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
43131         Needed for mingw.
43132
43133 2006-10-19  Bruno Haible  <bruno@clisp.org>
43134
43135         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
43136
43137 2006-10-19  Bruno Haible  <bruno@clisp.org>
43138
43139         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
43140         it.
43141
43142 2006-10-19  Bruno Haible  <bruno@clisp.org>
43143
43144         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
43145         invocation.
43146
43147 2006-10-19  Bruno Haible  <bruno@clisp.org>
43148
43149         * gnulib-tool (func_create_testdir): Don't include ftruncate and
43150         mountlist by default.
43151
43152 2006-10-16  Bruno Haible  <bruno@clisp.org>
43153
43154         * lib/c-strstr.c: Include c-strstr.h.
43155
43156 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
43157
43158         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
43159         in a slash.
43160
43161 2006-10-18  Bruno Haible  <bruno@clisp.org>
43162
43163         * lib/lock.h [C++]: Wrap definitions in extern "C".
43164
43165 2006-10-18  Bruno Haible  <bruno@clisp.org>
43166
43167         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
43168         gl_LIBOBJS list.
43169
43170 2006-10-18  Bruno Haible  <bruno@clisp.org>
43171
43172         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
43173
43174 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
43175
43176         * lib/xstrtol.h: Include gettext.h.
43177         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
43178         Problem reported by Eric Blake.
43179         * modules/xstrtol (Depends-on): Add gettext-h.
43180
43181 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
43182
43183         * lib/strftime.c (advance): New macro.
43184         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
43185         incomplete type, so you can't add 0 to it.  Problem and patch
43186         reported by Eelco Dolstra for dietlibc.
43187
43188 2006-10-18  Jim Meyering  <jim@meyering.net>
43189
43190         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
43191         type for a local, and rename it: s/up/user_proc/.
43192
43193 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
43194
43195         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
43196         READ_UTMP_USER_PROCESS.
43197         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
43198
43199 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
43200
43201         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
43202         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
43203
43204 2006-10-17  Eric Blake  <ebb9@byu.net>
43205
43206         * lib/sigprocmask.c (sigprocmask): Fix typo.
43207
43208         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
43209
43210         * modules/clean-temp (Makefile.am): Don't add to make output...
43211         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
43212         config.h.
43213
43214 2006-10-17  Bruno Haible  <bruno@clisp.org>
43215
43216         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
43217         differently if DEFAULT_TEXT_DOMAIN is set.
43218
43219 2006-10-16  Bruno Haible  <bruno@clisp.org>
43220
43221         * lib/clean-temp.c: Include fwriteerror.h.
43222
43223 2006-10-16  Bruno Haible  <bruno@clisp.org>
43224
43225         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
43226
43227 2006-10-16  Bruno Haible  <bruno@clisp.org>
43228
43229         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
43230         * lib/sigprocmask.h: Include <sys/types.h>.
43231         (sigset_t): Use the system's definition if present.
43232
43233 2006-10-17  Eric Blake  <ebb9@byu.net>
43234
43235         * lib/xvasprintf.c (includes): Assume config.h.
43236         * lib/xasprintf.c (includes): Likewise.
43237
43238 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
43239
43240         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
43241         at least as wide as intmax_t.
43242
43243 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
43244
43245         (Imported from Automake.)
43246         * build-aux/gnupload: Update to version 1.1 of directive file.
43247
43248 2006-10-16  Eric Blake  <ebb9@byu.net>
43249
43250         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
43251         match Automake 1.10a.
43252
43253 2006-10-14  Bruno Haible  <bruno@clisp.org>
43254
43255         * modules/sigprocmask: New file.
43256         * lib/sigprocmask.h: New file.
43257         * lib/sigprocmask.c: New file.
43258         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
43259         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
43260         request sigprocmask.o.
43261         (gl_PREREQ_SIGPROCMASK): New macro.
43262         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
43263         (Depends-on): Add sigprocmask.
43264         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
43265         gt_SIGNALBLOCKING. Test for 'raise' only once.
43266         * lib/fatal-signal.c: Include sigprocmask.h.
43267         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
43268         unblock_fatal_signals): Define always.
43269         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43270         sigprocmask.
43271
43272 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
43273
43274         Sync from Automake.
43275         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
43276         which incorrectly sets the mode of an existing destination
43277         directory.  In some cases the unpatched install-sh could do the
43278         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
43279         system.  We hope this is rare in practice, but it's clearly worth
43280         fixing.  Problem reported by Alex Unleashed in
43281         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
43282         Also, don't bother to check for -m bugs unless we're using -m;
43283         suggested by Stepan Kasal.
43284
43285 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43286
43287         Sync from Automake.
43288         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
43289         `-c' flag, so they appear at the same position as in %FASTDEP%
43290         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
43291         which ignores unknown options only after the first non-option.
43292         Bug report against M4 by Nelson H. F. Beebe.
43293
43294 2006-10-13  Jim Meyering  <jim@meyering.net>
43295
43296         Fix a bug in yesterday's change.
43297         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
43298         p->fts_statp->st_dev would be used uninitialized.
43299         Ensures that we always call fts_stat on the very first entry.
43300         Miklos Szeredi reported that find -xdev stopped working.
43301
43302 2006-10-12  Bruno Haible  <bruno@clisp.org>
43303
43304         * gnulib-tool (func_get_automake_snippet): Append an automatically
43305         computed EXTRA_DIST augmentation.
43306         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
43307         * modules/alloca-opt (Makefile.am): Likewise.
43308         * modules/allocsa (Makefile.am): Likewise.
43309         * modules/arcfour (Makefile.am): Likewise.
43310         * modules/arctwo (Makefile.am): Likewise.
43311         * modules/argmatch (Makefile.am): Likewise.
43312         * modules/argz (Makefile.am): Likewise.
43313         * modules/atexit (Makefile.am): Likewise.
43314         * modules/backupfile (Makefile.am): Likewise.
43315         * modules/byteswap (Makefile.am): Likewise.
43316         * modules/c-strtod (Makefile.am): Likewise.
43317         * modules/c-strtold (Makefile.am): Likewise.
43318         * modules/calloc (Makefile.am): Likewise.
43319         * modules/canon-host (Makefile.am): Likewise.
43320         * modules/canonicalize (Makefile.am): Likewise.
43321         * modules/chdir-long (Makefile.am): Likewise.
43322         * modules/chdir-safer (Makefile.am): Likewise.
43323         * modules/check-version (Makefile.am): Likewise.
43324         * modules/chown (Makefile.am): Likewise.
43325         * modules/cloexec (Makefile.am): Likewise.
43326         * modules/close-stream (Makefile.am): Likewise.
43327         * modules/closeout (Makefile.am): Likewise.
43328         * modules/crc (Makefile.am): Likewise.
43329         * modules/csharpexec (Makefile.am): Likewise.
43330         * modules/cycle-check (Makefile.am): Likewise.
43331         * modules/des (Makefile.am): Likewise.
43332         * modules/dev-ino (Makefile.am): Likewise.
43333         * modules/dirfd (Makefile.am): Likewise.
43334         * modules/dirname (Makefile.am): Likewise.
43335         * modules/dup2 (Makefile.am): Likewise.
43336         * modules/eealloc (Makefile.am): Likewise.
43337         * modules/error (Makefile.am): Likewise.
43338         * modules/euidaccess (Makefile.am): Likewise.
43339         * modules/exclude (Makefile.am): Likewise.
43340         * modules/exitfail (Makefile.am): Likewise.
43341         * modules/fcntl-safer (Makefile.am): Likewise.
43342         * modules/fcntl (Makefile.am): Likewise.
43343         * modules/file-type (Makefile.am): Likewise.
43344         * modules/fileblocks (Makefile.am): Likewise.
43345         * modules/filemode (Makefile.am): Likewise.
43346         * modules/filenamecat (Makefile.am): Likewise.
43347         * modules/fnmatch (Makefile.am): Likewise.
43348         * modules/fopen-safer (Makefile.am): Likewise.
43349         * modules/fpending (Makefile.am): Likewise.
43350         * modules/fprintftime (Makefile.am): Likewise.
43351         * modules/free (Makefile.am): Likewise.
43352         * modules/fsusage (Makefile.am): Likewise.
43353         * modules/ftruncate (Makefile.am): Likewise.
43354         * modules/fts (Makefile.am): Likewise.
43355         * modules/gc-arcfour (Makefile.am): Likewise.
43356         * modules/gc-des (Makefile.am): Likewise.
43357         * modules/gc-hmac-md5 (Makefile.am): Likewise.
43358         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
43359         * modules/gc-md4 (Makefile.am): Likewise.
43360         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
43361         * modules/gc-sha1 (Makefile.am): Likewise.
43362         * modules/gc (Makefile.am): Likewise.
43363         * modules/getaddrinfo (Makefile.am): Likewise.
43364         * modules/getcwd (Makefile.am): Likewise.
43365         * modules/getdelim (Makefile.am): Likewise.
43366         * modules/getdomainname (Makefile.am): Likewise.
43367         * modules/getgroups (Makefile.am): Likewise.
43368         * modules/gethostname (Makefile.am): Likewise.
43369         * modules/gethrxtime (Makefile.am): Likewise.
43370         * modules/getline (Makefile.am): Likewise.
43371         * modules/getloadavg (Makefile.am): Likewise.
43372         * modules/getlogin_r (Makefile.am): Likewise.
43373         * modules/getndelim2 (Makefile.am): Likewise.
43374         * modules/getopt (Makefile.am): Likewise.
43375         * modules/getpagesize (Makefile.am): Likewise.
43376         * modules/getpass-gnu (Makefile.am): Likewise.
43377         * modules/getpass (Makefile.am): Likewise.
43378         * modules/getsubopt (Makefile.am): Likewise.
43379         * modules/gettime (Makefile.am): Likewise.
43380         * modules/gettimeofday (Makefile.am): Likewise.
43381         * modules/getugroups (Makefile.am): Likewise.
43382         * modules/getusershell (Makefile.am): Likewise.
43383         * modules/glob (Makefile.am): Likewise.
43384         * modules/group-member (Makefile.am): Likewise.
43385         * modules/hard-locale (Makefile.am): Likewise.
43386         * modules/hash (Makefile.am): Likewise.
43387         * modules/hmac-md5 (Makefile.am): Likewise.
43388         * modules/hmac-sha1 (Makefile.am): Likewise.
43389         * modules/human (Makefile.am): Likewise.
43390         * modules/idcache (Makefile.am): Likewise.
43391         * modules/imaxabs (Makefile.am): Likewise.
43392         * modules/imaxdiv (Makefile.am): Likewise.
43393         * modules/inet_ntop (Makefile.am): Likewise.
43394         * modules/inet_pton (Makefile.am): Likewise.
43395         * modules/intprops (Makefile.am): Likewise.
43396         * modules/inttostr (Makefile.am): Likewise.
43397         * modules/inttypes (Makefile.am): Likewise.
43398         * modules/isapipe (Makefile.am): Likewise.
43399         * modules/javaversion (Makefile.am): Likewise.
43400         * modules/lchmod (Makefile.am): Likewise.
43401         * modules/lchown (Makefile.am): Likewise.
43402         * modules/localcharset (Makefile.am): Likewise.
43403         * modules/long-options (Makefile.am): Likewise.
43404         * modules/lstat (Makefile.am): Likewise.
43405         * modules/malloc (Makefile.am): Likewise.
43406         * modules/mathl (Makefile.am): Likewise.
43407         * modules/mbchar (Makefile.am): Likewise.
43408         * modules/md2 (Makefile.am): Likewise.
43409         * modules/md4 (Makefile.am): Likewise.
43410         * modules/md5 (Makefile.am): Likewise.
43411         * modules/memcasecmp (Makefile.am): Likewise.
43412         * modules/memchr (Makefile.am): Likewise.
43413         * modules/memcmp (Makefile.am): Likewise.
43414         * modules/memcoll (Makefile.am): Likewise.
43415         * modules/memcpy (Makefile.am): Likewise.
43416         * modules/memmem (Makefile.am): Likewise.
43417         * modules/memmove (Makefile.am): Likewise.
43418         * modules/mempcpy (Makefile.am): Likewise.
43419         * modules/memrchr (Makefile.am): Likewise.
43420         * modules/memset (Makefile.am): Likewise.
43421         * modules/memxor (Makefile.am): Likewise.
43422         * modules/mkancesdirs (Makefile.am): Likewise.
43423         * modules/mkdir-p (Makefile.am): Likewise.
43424         * modules/mkdir (Makefile.am): Likewise.
43425         * modules/mkdtemp (Makefile.am): Likewise.
43426         * modules/mkstemp (Makefile.am): Likewise.
43427         * modules/mktime (Makefile.am): Likewise.
43428         * modules/modechange (Makefile.am): Likewise.
43429         * modules/mountlist (Makefile.am): Likewise.
43430         * modules/nanosleep (Makefile.am): Likewise.
43431         * modules/obstack (Makefile.am): Likewise.
43432         * modules/openat (Makefile.am): Likewise.
43433         * modules/pagealign_alloc (Makefile.am): Likewise.
43434         * modules/pathmax (Makefile.am): Likewise.
43435         * modules/physmem (Makefile.am): Likewise.
43436         * modules/poll (Makefile.am): Likewise.
43437         * modules/posixtm (Makefile.am): Likewise.
43438         * modules/posixver (Makefile.am): Likewise.
43439         * modules/putenv (Makefile.am): Likewise.
43440         * modules/quote (Makefile.am): Likewise.
43441         * modules/quotearg (Makefile.am): Likewise.
43442         * modules/raise (Makefile.am): Likewise.
43443         * modules/read-file (Makefile.am): Likewise.
43444         * modules/readline (Makefile.am): Likewise.
43445         * modules/readlink (Makefile.am): Likewise.
43446         * modules/readtokens (Makefile.am): Likewise.
43447         * modules/readutmp (Makefile.am): Likewise.
43448         * modules/realloc (Makefile.am): Likewise.
43449         * modules/regex (Makefile.am): Likewise.
43450         * modules/rename-dest-slash (Makefile.am): Likewise.
43451         * modules/rename (Makefile.am): Likewise.
43452         * modules/rijndael (Makefile.am): Likewise.
43453         * modules/rmdir (Makefile.am): Likewise.
43454         * modules/rpmatch (Makefile.am): Likewise.
43455         * modules/safe-read (Makefile.am): Likewise.
43456         * modules/safe-write (Makefile.am): Likewise.
43457         * modules/same-inode (Makefile.am): Likewise.
43458         * modules/same (Makefile.am): Likewise.
43459         * modules/save-cwd (Makefile.am): Likewise.
43460         * modules/savedir (Makefile.am): Likewise.
43461         * modules/setenv (Makefile.am): Likewise.
43462         * modules/settime (Makefile.am): Likewise.
43463         * modules/sha1 (Makefile.am): Likewise.
43464         * modules/sig2str (Makefile.am): Likewise.
43465         * modules/snprintf (Makefile.am): Likewise.
43466         * modules/stat-macros (Makefile.am): Likewise.
43467         * modules/stat-time (Makefile.am): Likewise.
43468         * modules/stdbool (Makefile.am): Likewise.
43469         * modules/stdint (Makefile.am): Likewise.
43470         * modules/stdlib-safer (Makefile.am): Likewise.
43471         * modules/stpcpy (Makefile.am): Likewise.
43472         * modules/stpncpy (Makefile.am): Likewise.
43473         * modules/strcase (Makefile.am): Likewise.
43474         * modules/strcasestr (Makefile.am): Likewise.
43475         * modules/strchrnul (Makefile.am): Likewise.
43476         * modules/strcspn (Makefile.am): Likewise.
43477         * modules/strdup (Makefile.am): Likewise.
43478         * modules/strerror (Makefile.am): Likewise.
43479         * modules/strftime (Makefile.am): Likewise.
43480         * modules/strndup (Makefile.am): Likewise.
43481         * modules/strnlen (Makefile.am): Likewise.
43482         * modules/strpbrk (Makefile.am): Likewise.
43483         * modules/strsep (Makefile.am): Likewise.
43484         * modules/strstr (Makefile.am): Likewise.
43485         * modules/strtod (Makefile.am): Likewise.
43486         * modules/strtoimax (Makefile.am): Likewise.
43487         * modules/strtok_r (Makefile.am): Likewise.
43488         * modules/strtol (Makefile.am): Likewise.
43489         * modules/strtoll (Makefile.am): Likewise.
43490         * modules/strtoul (Makefile.am): Likewise.
43491         * modules/strtoull (Makefile.am): Likewise.
43492         * modules/strtoumax (Makefile.am): Likewise.
43493         * modules/strverscmp (Makefile.am): Likewise.
43494         * modules/sys_socket (Makefile.am): Likewise.
43495         * modules/sys_stat (Makefile.am): Likewise.
43496         * modules/sysexits (Makefile.am): Likewise.
43497         * modules/time_r (Makefile.am): Likewise.
43498         * modules/timegm (Makefile.am): Likewise.
43499         * modules/timespec (Makefile.am): Likewise.
43500         * modules/tmpfile-safer (Makefile.am): Likewise.
43501         * modules/trim (Makefile.am): Likewise.
43502         * modules/unistd-safer (Makefile.am): Likewise.
43503         * modules/unlinkdir (Makefile.am): Likewise.
43504         * modules/unlocked-io (Makefile.am): Likewise.
43505         * modules/userspec (Makefile.am): Likewise.
43506         * modules/utime (Makefile.am): Likewise.
43507         * modules/utimecmp (Makefile.am): Likewise.
43508         * modules/utimens (Makefile.am): Likewise.
43509         * modules/vasnprintf (Makefile.am): Likewise.
43510         * modules/vasprintf (Makefile.am): Likewise.
43511         * modules/vsnprintf (Makefile.am): Likewise.
43512         * modules/xalloc (Makefile.am): Likewise.
43513         * modules/xgetcwd (Makefile.am): Likewise.
43514         * modules/xnanosleep (Makefile.am): Likewise.
43515         * modules/xreadlink (Makefile.am): Likewise.
43516         * modules/xstrtod (Makefile.am): Likewise.
43517         * modules/xstrtol (Makefile.am): Likewise.
43518         * modules/xstrtold (Makefile.am): Likewise.
43519         * modules/yesno (Makefile.am): Likewise.
43520         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
43521
43522 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
43523
43524         * modules/error (Makefile.am): Distribute files through
43525         EXTRA_DIST, not lib_SOURCES.
43526
43527 2006-10-12  Eric Blake  <ebb9@byu.net>
43528
43529         * modules/error (Makefile.am): Distribute files in /lib.
43530         * modules/obstack (Makefile.am): Likewise.
43531
43532 2006-10-12  Bruno Haible  <bruno@clisp.org>
43533
43534         * modules/acl (Makefile.am): Distribute all files in lib/ through
43535         EXTRA_DIST.
43536         * modules/arcfour (Makefile.am): Likewise.
43537         * modules/arctwo (Makefile.am): Likewise.
43538         * modules/argmatch (Makefile.am): Likewise.
43539         * modules/argz (Makefile.am): Likewise.
43540         * modules/atexit (Makefile.am): Likewise.
43541         * modules/backupfile (Makefile.am): Likewise.
43542         * modules/c-strtod (Makefile.am): Likewise.
43543         * modules/c-strtold (Makefile.am): Likewise.
43544         * modules/calloc (Makefile.am): Likewise.
43545         * modules/canon-host (Makefile.am): Likewise.
43546         * modules/canonicalize (Makefile.am): Likewise.
43547         * modules/chdir-long (Makefile.am): Likewise.
43548         * modules/chdir-safer (Makefile.am): Likewise.
43549         * modules/check-version (Makefile.am): Likewise.
43550         * modules/chown (Makefile.am): Likewise.
43551         * modules/cloexec (Makefile.am): Likewise.
43552         * modules/close-stream (Makefile.am): Likewise.
43553         * modules/closeout (Makefile.am): Likewise.
43554         * modules/crc (Makefile.am): Likewise.
43555         * modules/cycle-check (Makefile.am): Likewise.
43556         * modules/des (Makefile.am): Likewise.
43557         * modules/dirfd (Makefile.am): Likewise.
43558         * modules/dirname (Makefile.am): Likewise.
43559         * modules/dup2 (Makefile.am): Likewise.
43560         * modules/euidaccess (Makefile.am): Likewise.
43561         * modules/exclude (Makefile.am): Likewise.
43562         * modules/exitfail (Makefile.am): Likewise.
43563         * modules/fcntl-safer (Makefile.am): Likewise.
43564         * modules/file-type (Makefile.am): Likewise.
43565         * modules/fileblocks (Makefile.am): Likewise.
43566         * modules/filemode (Makefile.am): Likewise.
43567         * modules/filenamecat (Makefile.am): Likewise.
43568         * modules/fnmatch (Makefile.am): Likewise.
43569         * modules/fopen-safer (Makefile.am): Likewise.
43570         * modules/fpending (Makefile.am): Likewise.
43571         * modules/fprintftime (Makefile.am): Likewise.
43572         * modules/free (Makefile.am): Likewise.
43573         * modules/fsusage (Makefile.am): Likewise.
43574         * modules/ftruncate (Makefile.am): Likewise.
43575         * modules/fts (Makefile.am): Likewise.
43576         * modules/gc (Makefile.am): Likewise.
43577         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
43578         * modules/getaddrinfo (Makefile.am): Likewise.
43579         * modules/getcwd (Makefile.am): Likewise.
43580         * modules/getdelim (Makefile.am): Likewise.
43581         * modules/getdomainname (Makefile.am): Likewise.
43582         * modules/getgroups (Makefile.am): Likewise.
43583         * modules/gethostname (Makefile.am): Likewise.
43584         * modules/gethrxtime (Makefile.am): Likewise.
43585         * modules/getline (Makefile.am): Likewise.
43586         * modules/getloadavg (Makefile.am): Likewise.
43587         * modules/getlogin_r (Makefile.am): Likewise.
43588         * modules/getopt (Makefile.am): Likewise.
43589         * modules/getpass (Makefile.am): Likewise.
43590         * modules/getpass-gnu (Makefile.am): Likewise.
43591         * modules/getsubopt (Makefile.am): Likewise.
43592         * modules/gettime (Makefile.am): Likewise.
43593         * modules/gettimeofday (Makefile.am): Likewise.
43594         * modules/getugroups (Makefile.am): Likewise.
43595         * modules/getusershell (Makefile.am): Likewise.
43596         * modules/glob (Makefile.am): Likewise.
43597         * modules/group-member (Makefile.am): Likewise.
43598         * modules/hard-locale (Makefile.am): Likewise.
43599         * modules/hash (Makefile.am): Likewise.
43600         * modules/hmac-md5 (Makefile.am): Likewise.
43601         * modules/hmac-sha1 (Makefile.am): Likewise.
43602         * modules/human (Makefile.am): Likewise.
43603         * modules/idcache (Makefile.am): Likewise.
43604         * modules/imaxabs (Makefile.am): Likewise.
43605         * modules/imaxdiv (Makefile.am): Likewise.
43606         * modules/inet_ntop (Makefile.am): Likewise.
43607         * modules/inet_pton (Makefile.am): Likewise.
43608         * modules/inttostr (Makefile.am): Likewise.
43609         * modules/isapipe (Makefile.am): Likewise.
43610         * modules/lchown (Makefile.am): Likewise.
43611         * modules/long-options (Makefile.am): Likewise.
43612         * modules/lstat (Makefile.am): Likewise.
43613         * modules/malloc (Makefile.am): Likewise.
43614         * modules/mathl (Makefile.am): Likewise.
43615         * modules/mbchar (Makefile.am): Likewise.
43616         * modules/md2 (Makefile.am): Likewise.
43617         * modules/md4 (Makefile.am): Likewise.
43618         * modules/md5 (Makefile.am): Likewise.
43619         * modules/memcasecmp (Makefile.am): Likewise.
43620         * modules/memchr (Makefile.am): Likewise.
43621         * modules/memcmp (Makefile.am): Likewise.
43622         * modules/memcoll (Makefile.am): Likewise.
43623         * modules/memcpy (Makefile.am): Likewise.
43624         * modules/memmem (Makefile.am): Likewise.
43625         * modules/memmove (Makefile.am): Likewise.
43626         * modules/mempcpy (Makefile.am): Likewise.
43627         * modules/memrchr (Makefile.am): Likewise.
43628         * modules/memset (Makefile.am): Likewise.
43629         * modules/memxor (Makefile.am): Likewise.
43630         * modules/mkancesdirs (Makefile.am): Likewise.
43631         * modules/mkdir (Makefile.am): Likewise.
43632         * modules/mkdir-p (Makefile.am): Likewise.
43633         * modules/mkdtemp (Makefile.am): Likewise.
43634         * modules/mkstemp (Makefile.am): Likewise.
43635         * modules/mktime (Makefile.am): Likewise.
43636         * modules/modechange (Makefile.am): Likewise.
43637         * modules/mountlist (Makefile.am): Likewise.
43638         * modules/nanosleep (Makefile.am): Likewise.
43639         * modules/openat (Makefile.am): Likewise.
43640         * modules/pagealign_alloc (Makefile.am): Likewise.
43641         * modules/physmem (Makefile.am): Likewise.
43642         * modules/poll (Makefile.am): Likewise.
43643         * modules/posixtm (Makefile.am): Likewise.
43644         * modules/posixver (Makefile.am): Likewise.
43645         * modules/putenv (Makefile.am): Likewise.
43646         * modules/quote (Makefile.am): Likewise.
43647         * modules/quotearg (Makefile.am): Likewise.
43648         * modules/raise (Makefile.am): Likewise.
43649         * modules/read-file (Makefile.am): Likewise.
43650         * modules/readline (Makefile.am): Likewise.
43651         * modules/readlink (Makefile.am): Likewise.
43652         * modules/readtokens (Makefile.am): Likewise.
43653         * modules/readutmp (Makefile.am): Likewise.
43654         * modules/realloc (Makefile.am): Likewise.
43655         * modules/regex (Makefile.am): Likewise.
43656         * modules/rename (Makefile.am): Likewise.
43657         * modules/rename-dest-slash (Makefile.am): Likewise.
43658         * modules/rijndael (Makefile.am): Likewise.
43659         * modules/rmdir (Makefile.am): Likewise.
43660         * modules/rpmatch (Makefile.am): Likewise.
43661         * modules/safe-read (Makefile.am): Likewise.
43662         * modules/safe-write (Makefile.am): Likewise.
43663         * modules/same (Makefile.am): Likewise.
43664         * modules/save-cwd (Makefile.am): Likewise.
43665         * modules/savedir (Makefile.am): Likewise.
43666         * modules/setenv (Makefile.am): Likewise.
43667         * modules/settime (Makefile.am): Likewise.
43668         * modules/sha1 (Makefile.am): Likewise.
43669         * modules/sig2str (Makefile.am): Likewise.
43670         * modules/snprintf (Makefile.am): Likewise.
43671         * modules/stdlib-safer (Makefile.am): Likewise.
43672         * modules/stpcpy (Makefile.am): Likewise.
43673         * modules/stpncpy (Makefile.am): Likewise.
43674         * modules/strcase (Makefile.am): Likewise.
43675         * modules/strcasestr (Makefile.am): Likewise.
43676         * modules/strchrnul (Makefile.am): Likewise.
43677         * modules/strcspn (Makefile.am): Likewise.
43678         * modules/strdup (Makefile.am): Likewise.
43679         * modules/strerror (Makefile.am): Likewise.
43680         * modules/strftime (Makefile.am): Likewise.
43681         * modules/strndup (Makefile.am): Likewise.
43682         * modules/strnlen (Makefile.am): Likewise.
43683         * modules/strpbrk (Makefile.am): Likewise.
43684         * modules/strsep (Makefile.am): Likewise.
43685         * modules/strstr (Makefile.am): Likewise.
43686         * modules/strtod (Makefile.am): Likewise.
43687         * modules/strtoimax (Makefile.am): Likewise.
43688         * modules/strtok_r (Makefile.am): Likewise.
43689         * modules/strtol (Makefile.am): Likewise.
43690         * modules/strtoll (Makefile.am): Likewise.
43691         * modules/strtoul (Makefile.am): Likewise.
43692         * modules/strtoull (Makefile.am): Likewise.
43693         * modules/strtoumax (Makefile.am): Likewise.
43694         * modules/strverscmp (Makefile.am): Likewise.
43695         * modules/time_r (Makefile.am): Likewise.
43696         * modules/timegm (Makefile.am): Likewise.
43697         * modules/tmpfile-safer (Makefile.am): Likewise.
43698         * modules/unistd-safer (Makefile.am): Likewise.
43699         * modules/unlinkdir (Makefile.am): Likewise.
43700         * modules/userspec (Makefile.am): Likewise.
43701         * modules/utime (Makefile.am): Likewise.
43702         * modules/utimecmp (Makefile.am): Likewise.
43703         * modules/utimens (Makefile.am): Likewise.
43704         * modules/vasnprintf (Makefile.am): Likewise.
43705         * modules/vasprintf (Makefile.am): Likewise.
43706         * modules/vsnprintf (Makefile.am): Likewise.
43707         * modules/xalloc (Makefile.am): Likewise.
43708         * modules/xgetcwd (Makefile.am): Likewise.
43709         * modules/xnanosleep (Makefile.am): Likewise.
43710         * modules/xreadlink (Makefile.am): Likewise.
43711         * modules/xstrtod (Makefile.am): Likewise.
43712         * modules/xstrtol (Makefile.am): Likewise.
43713         * modules/xstrtold (Makefile.am): Likewise.
43714         * modules/yesno (Makefile.am): Likewise.
43715
43716 2006-10-12  Jim Meyering  <jim@meyering.net>
43717
43718         * m4/getloadavg.m4: Revert the change below.
43719
43720         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
43721         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
43722         fail with a symlink, which is what coreutils' ./bootstrap now
43723         creates by default.
43724
43725 2006-10-12  Bruno Haible  <bruno@clisp.org>
43726
43727         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
43728         mingw.
43729         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
43730         MSVC and mingw explicitly.
43731
43732 2006-10-11  Simon Josefsson  <jas@extundo.com>
43733             Bruno Haible  <bruno@clisp.org>
43734
43735         Add support for multiple gnulib-tool invocations in the scope of a
43736         single configure.ac file.
43737         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
43738         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
43739         with the same contents as the _LIBADD variable.
43740         (func_emit_initmacro_start, func_emit_initmacro_end,
43741         func_emit_initmacro_done): New functions.
43742         (func_import, func_create_testdir): Invoke them. Allow the identifiers
43743         gl_LIBOBJS and gl_LTLIBOBJS.
43744
43745 2006-10-11  Bruno Haible  <bruno@clisp.org>
43746
43747         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
43748         (func_create_testdir): Don't create po/Makefile.am, don't invoke
43749         autoreconf. Instead, invoke autopoint explicitly but move back the
43750         *.m4 files from gnulib.
43751
43752 2006-10-11  Bruno Haible  <bruno@clisp.org>
43753
43754         * gnulib-tool (func_usage): Make module names after --create-testdir
43755         optional.
43756         (func_create_testdir): If no module was specified, use nearly all
43757         modules.
43758
43759 2006-10-12  Jim Meyering  <jim@meyering.net>
43760
43761         Big performance improvement for fts-based tools that use FTS_NOSTAT.
43762         Avoid spurious inode-mismatch problems on non-POSIX file systems.
43763         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
43764         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
43765         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
43766         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
43767         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
43768         (fts_set_stat_required): New function.
43769         (fts_open): Defer the calls to fts_stat, if possible or requested.
43770         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
43771         into fts_stat itself.
43772         (fts_read): Perform any required (deferred) fts_stat call.
43773         (fts_build): Likewise, for the directory we're about to open and read.
43774         In the readdir loop, carefully decide whether each entry will require
43775         an eventual call to fts_stat, using dirent.d_type info if available.
43776         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
43777         a command line argument into this function.  Update all callers.
43778         Map a return value of FTS_DOT to FTS_D for a command line argument.
43779         * modules/fts (Depends-on): Add d-type.  Alphabetize.
43780         Thanks to Miklos Szeredi for his tenacity and for the initial
43781         bug report about "find" failing on a FUSE-based file system.
43782
43783         * lib/fts.c (fts_open): Use consistent indentation.
43784
43785 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
43786
43787         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
43788         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
43789         reported by Jim Meyering.  All uses of cache variables renamed
43790         to match Autoconf's.
43791         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
43792         the other one.
43793
43794         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
43795         Fix misspelling in diagnostic.
43796
43797 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
43798
43799         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
43800         defined.  Problem reported by Matthew Woehlke.
43801
43802         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
43803         Add support for Tandem NonStop R series.
43804         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
43805         Use new macro.
43806
43807         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
43808         (has_trailing_slash): Omit size arg; all callers changed.
43809         Omit 'inline', since it doesn't help performance and we'd
43810         need to configure it.
43811         Don't count //, ///, etc. as having a trailing slash.
43812         As a side effect, this removes a C99ism reported by Matthew Woehlke.
43813         (rpl_rename_dest_slash): On failure, use rename's errno rather
43814         than (in some cases) an incorrect or junk errno.
43815         Simplify code by removing need to compute length; this does
43816         cause it to make two passes instead of one over the file name,
43817         but it's worth it.
43818
43819         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
43820         change, since Autoconf's version may no longer be appropriate now
43821         that we are using CVS Autoconf's version.  Add support for Tandem.
43822
43823 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
43824             Bruno Haible  <bruno@clisp.org>
43825
43826         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
43827         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
43828         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
43829         gl_AC_TYPE_LONG_LONG.
43830
43831         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
43832         instead of HAVE_LONG_LONG.
43833         * lib/printf-args.c (printf_fetchargs): Likewise.
43834         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
43835         * lib/vasnprintf.c (VASNPRINTF): Likewise.
43836         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
43837         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
43838         gl_AC_TYPE_LONG_LONG.
43839
43840 2006-10-11  Bruno Haible  <bruno@clisp.org>
43841
43842         * m4/longlong.m4: Add comments.
43843         * m4/ulonglong.m4: Likewise.
43844
43845 2006-10-10  Bruno Haible  <bruno@clisp.org>
43846
43847         Make it possible to #define stpcpy, strdup to aliases.
43848         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
43849         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
43850
43851 2006-10-10  Bruno Haible  <bruno@clisp.org>
43852
43853         Make it possible to #define gcd to an alias.
43854         * lib/gcd.c: Include config.h.
43855
43856 2006-10-10  Bruno Haible  <bruno@clisp.org>
43857
43858         Make it possible to #define c_isascii to an alias.
43859         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
43860         defined. Undefine the macros before defining them, to avoid gcc
43861         warnings.
43862         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
43863         define NO_C_CTYPE_MACROS early.
43864
43865 2006-10-10  Bruno Haible  <bruno@clisp.org>
43866
43867         Make it possible to #define set_program_name to an alias.
43868         * lib/progname.c: Don't undefine set_program_name; instead, undefine
43869         ENABLE_RELOCATABLE early.
43870
43871 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
43872
43873         Port to Tandem NSK OSS, which has 64-bit signed int but at most
43874         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
43875         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
43876         More generally, don't assume that 64-bit signed int is available
43877         if unsigned int is, and vice versa.
43878         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
43879         unsigned symbols, not on their signed counterparts.
43880         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
43881         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
43882         (UINT64_C, UINTMAX_C):
43883         Likewise.
43884         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
43885         unsigned counterparts.
43886         (Have_long_long, Unsigned): New macros.
43887         (Int): Renamed from INT.
43888         (strtoimax): Use the new macros.
43889         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
43890         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
43891         * modules/inttypes (inttypes.h): Substitute
43892         HAVE_UNSIGNED_LONG_LONG_INT.
43893         * modules/stdint (stdint.h): Likewise.
43894         (Files): Add m4/ulonglong.m4.
43895
43896 2006-10-10  Bruno Haible  <bruno@clisp.org>
43897
43898         Fix a gcc -Wshadow warning.
43899         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
43900         to 'bucket'.
43901         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
43902         gl_linked_indexof_from_to): Likewise.
43903         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
43904         Likewise.
43905         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
43906         Likewise.
43907         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
43908         Reported by Eric Blake.
43909
43910 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
43911
43912         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
43913         for NetBSD.  Problem reported by Bruno Haible.
43914
43915 2006-10-09  Jim Meyering  <jim@meyering.net>
43916
43917         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
43918         Patch from Bruno Haible.
43919
43920 2006-10-09  Jim Meyering  <jim@meyering.net>
43921
43922         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
43923         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
43924         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
43925
43926 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
43927
43928         Don't include <config.h> twice; this doesn't work in some cases,
43929         e.g., when config.h has "#define intmax_t long long int" and
43930         we include <config.h>, <inttypes.h>, <config.h> in that order.
43931         Problem reported by Matthew Woehlke in:
43932         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
43933         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
43934         * lib/fts-cycle.c: Don't include config.h.
43935         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
43936         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
43937         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
43938         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
43939         inttypes.h.
43940         * lib/xstrtoumax.c: Likewise.
43941         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
43942         __strtol and the like, so that this module is more like its siblings.
43943         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
43944         Remove; no longer needed now that we assume gnulib inttypes.h.
43945
43946 2006-10-08  Bruno Haible  <bruno@clisp.org>
43947
43948         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
43949         option.
43950
43951 2006-10-07  Jim Meyering  <jim@meyering.net>
43952
43953         * modules/inttypes (inttypes.h): Revert what seems to have been
43954         an inadvertent part of today's change: use "|", not "/" in the
43955         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
43956
43957 2006-10-07  Bruno Haible  <bruno@clisp.org>
43958
43959         * modules/sublist: New file.
43960
43961 2006-10-07  Bruno Haible  <bruno@clisp.org>
43962
43963         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
43964         * modules/argz (argz.h): Likewise.
43965         * modules/arpa_inet (arpa/inet.h): Likewise.
43966         * modules/byteswap (byteswap.h): Likewise.
43967         * modules/configmake (configmake.h): Likewise.
43968         * modules/fcntl (fcntl.h): Likewise.
43969         * modules/fnmatch (fnmatch.h): Likewise.
43970         * modules/getopt (getopt.h): Likewise.
43971         * modules/glob (glob.h): Likewise.
43972         * modules/inttypes (inttypes.h): Likewise.
43973         * modules/netinet_in (netinet/in.h): Likewise.
43974         * modules/poll (poll.h): Likewise.
43975         * modules/stdbool (stdbool.h): Likewise.
43976         * modules/stdint (stdint.h): Likewise.
43977         * modules/sys_select (sys/select.h): Likewise.
43978         * modules/sys_socket (sys/socket.h): Likewise.
43979         * modules/sys_stat (sys/stat.h): Likewise.
43980         * modules/sysexits (sysexits.h): Likewise.
43981         * modules/unistd (unistd.h): Likewise.
43982         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43983         Add a "DO NOT EDIT" comment to the generated file.
43984         (func_import): Likewise for gnulib-comp.m4.
43985
43986 2006-10-07  Bruno Haible  <bruno@clisp.org>
43987
43988         * lib/gl_sublist.h: New file.
43989         * lib/gl_sublist.c: New file.
43990
43991 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
43992
43993         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
43994         name (relative to the original working directory) and the file
43995         name component (relative to the temporary working directory).  All
43996         callers changed.
43997         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
43998         * lib/mkdir-p.c (make_dir_parents): Likewise.
43999         * lib/mkdir-p.h (make_dir_parents): Likewise.
44000
44001 2006-10-06  Eric Blake  <ebb9@byu.net>
44002
44003         Define several macros for use by the clean-temp module.
44004         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
44005         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
44006         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
44007
44008         * lib/clean-temp.h (close_stream_temp): New declaration.
44009         * lib/clean-temp.c (includes): Pull in headers according to what
44010         other modules are in use.
44011         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
44012
44013 2006-10-06  Bruno Haible  <bruno@clisp.org>
44014
44015         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
44016         instead of fopen, fwriteerror.
44017
44018 2006-10-06  Bruno Haible  <bruno@clisp.org>
44019
44020         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
44021         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
44022         int.
44023         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
44024         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
44025         Return an error indicator.
44026         Suggested by Eric Blake.
44027
44028 2006-10-06  Bruno Haible  <bruno@clisp.org>
44029
44030         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
44031         Reported by Eric Blake.
44032
44033 2006-10-06  Bruno Haible  <bruno@clisp.org>
44034
44035         * modules/closeout (Description): Mention stderr too.
44036
44037 2006-10-06  Bruno Haible  <bruno@clisp.org>
44038         and Paul Eggert  <eggert@cs.ucla.edu>
44039
44040         * lib/closeout.c (close_stdout): Also close stderr.
44041         * lib/closeout.h: Update comment.
44042
44043 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
44044
44045         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
44046         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
44047         * lib/dirchownmod.c: Include lchown.h.
44048         * lib/lchown.c: Don't include files that lchown.h now includes.
44049         Don't declare chown, since lchown.h now does that.
44050         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
44051         (lchown): Define to rpl_chown if lchown is declared but
44052         does not exist.  Declare using a prototype if lchown is not
44053         declared.  Add a copyright notice.
44054         * lib/mkstemp.h: Include <unistd.h>.
44055         * lib/openat.c: Include lchown.h.
44056
44057         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
44058         we now test for that separately.
44059         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
44060         rather than O_NOFOLLOW, when testing whether it's possible to
44061         avoid a race condition reliably.
44062         * lib/savewd.c (savewd_chdir): Likewise.
44063
44064         Remove macros that are no longer needed now that stdint.h is
44065         reliable.
44066         * lib/fsusage.c (UINTMAX_MAX): Remove.
44067         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
44068         * lib/utimecmp.c (SIZE_MAX): Remove.
44069
44070         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
44071
44072         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
44073         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
44074         O_NOATIME works.
44075
44076 2006-10-05  Bruno Haible  <bruno@clisp.org>
44077
44078         * lib/gl_list.h (gl_sortedlist_search_from_to,
44079         gl_sortedlist_indexof_from_to): New declarations.
44080         (gl_list_implementation): New fields sortedlist_search_from_to,
44081         sortedlist_indexof_from_to.
44082         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
44083         inline functions.
44084         * lib/gl_list.c (gl_sortedlist_search_from_to,
44085         gl_sortedlist_indexof_from_to): New functions.
44086         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
44087         function.
44088         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
44089         (gl_array_sortedlist_search_from_to): New function.
44090         (gl_array_list_implementation): Update.
44091         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
44092         function.
44093         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
44094         (gl_carray_sortedlist_search_from_to): New function.
44095         (gl_carray_list_implementation): Update.
44096         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
44097         gl_linked_sortedlist_indexof_from_to): New functions.
44098         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
44099         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
44100         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
44101         gl_tree_sortedlist_indexof_from_to): New functions.
44102         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
44103         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
44104         Update.
44105         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
44106         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
44107         Update.
44108
44109 2006-10-05  Bruno Haible  <bruno@clisp.org>
44110
44111         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
44112         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
44113         (struct gl_list_implementation): Add fields search_from_to,
44114         indexof_from_to. Remove fields search, indexof.
44115         (gl_list_search): Use the search_from_to method.
44116         (gl_list_search_from, gl_list_search_from_to): New functions.
44117         (gl_list_indexof): Use the indexof_from_to method.
44118         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
44119         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
44120         (gl_list_search_from, gl_list_search_from_to): New functions.
44121         (gl_list_indexof): Use the indexof_from_to method.
44122         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
44123         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
44124         gl_array_indexof. Add start_index, end_index arguments.
44125         (gl_array_search_from_to): Renamed from gl_array_search. Add
44126         start_index, end_index arguments.
44127         (gl_array_remove, gl_array_list_implementation): Update.
44128         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
44129         gl_carray_indexof. Add start_index, end_index arguments.
44130         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
44131         start_index, end_index arguments.
44132         (gl_carray_remove, gl_carray_list_implementation): Update.
44133         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
44134         gl_linked_search. Add start_index, end_index arguments.
44135         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
44136         start_index, end_index arguments.
44137         (gl_linked_remove): Update.
44138         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
44139         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
44140         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
44141         field to 'size_t'.
44142         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
44143         gl_tree_search. Add start_index, end_index arguments.
44144         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
44145         start_index, end_index arguments.
44146         (gl_tree_remove): Update.
44147         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
44148         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
44149         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
44150         function.
44151         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
44152         gl_tree_search. Add start_index, end_index arguments.
44153         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
44154         start_index, end_index arguments.
44155         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
44156         Update.
44157         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
44158
44159 2006-10-05  Bruno Haible  <bruno@clisp.org>
44160
44161         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
44162
44163         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
44164         fwriteerror_temp): New declarations.
44165         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
44166         (descriptors): New variable.
44167         (cleanup): First, close the descriptors.
44168         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
44169         fclose_temp, fwriteerror_temp): New functions.
44170
44171 2006-10-04  Jim Meyering  <jim@meyering.net>
44172
44173         * lib/fts.c (fts_open): Tiny comment change.
44174
44175 2006-10-04  Bruno Haible  <bruno@clisp.org>
44176
44177         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
44178         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
44179         gl_LOCK_BODY.
44180         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
44181         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
44182         gl_LOCK_EARLY_BODY.
44183         (gl_LOCK): Require gl_LOCK_BODY.
44184
44185 2006-10-04  Bruno Haible  <bruno@clisp.org>
44186
44187         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
44188         (gl_oset_search_atleast): New declaration.
44189         (struct gl_oset_implementation): Add field 'search_atleast'.
44190         (gl_oset_search_atleast): New inline function.
44191         * lib/gl_oset.c (gl_oset_search_atleast): New function.
44192         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
44193         (gl_array_oset_implementation): Update.
44194         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
44195         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
44196         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
44197
44198 2006-10-04  Bruno Haible  <bruno@clisp.org>
44199
44200         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
44201
44202 2006-10-03  Bruno Haible  <bruno@clisp.org>
44203
44204         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
44205         from gl_avltreehash_list_implementation.
44206
44207 2006-10-03  Bruno Haible  <bruno@clisp.org>
44208
44209         * lib/gl_oset.c (gl_oset_add): Fix return type.
44210
44211 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
44212
44213         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
44214
44215 2006-10-02  Eric Blake  <ebb9@byu.net>
44216
44217         * modules/strnlen (Depends-on): Add extensions.
44218
44219 2006-10-02  Eric Blake  <ebb9@byu.net>
44220
44221         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
44222         definition in 2.60+.
44223
44224 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
44225
44226         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
44227         checks.
44228
44229 2006-10-02  Bruno Haible  <bruno@clisp.org>
44230
44231         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
44232         to the AUTOMAKE_OPTIONS.
44233         Reported by Jim Meyering.
44234
44235 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
44236
44237         Work around bug in Solaris 10 /proc file system:
44238         /proc/self/fd/NNN/.. isn't the parent directory of
44239         the directory whose file descriptor is NNN.  This needs to
44240         be worked around at run time, not compile time, since a
44241         program might be built on Solaris 8, where things work, and
44242         run on Solaris 10.
44243         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
44244         to use the following interface instead:
44245         (OPENAT_BUFFER_SIZE): New macro.
44246         (openat_proc_name): New function.
44247         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
44248         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
44249         Likewise.
44250         * lib/openat-proc.c: New file.
44251         * modules/openat (Files): Add lib/openat-proc.c.
44252         (Depends-on): Add same-inode, stdbool.
44253         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
44254
44255 2006-09-29  Bruno Haible  <bruno@clisp.org>
44256
44257         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
44258         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
44259         argument. Set stdout_closed before testing for ferror, not after.
44260         (fwriteerror, fwriteerror_no_ebadf): New functions.
44261
44262 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44263
44264         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
44265
44266 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
44267
44268         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
44269         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
44270
44271 2006-09-28  Jim Meyering  <jim@meyering.net>
44272
44273         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
44274         Include <unistd.h>.
44275
44276 2006-09-28  Bruno Haible  <bruno@clisp.org>
44277
44278         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
44279         * modules/linkedhash-list (Depends-on): Likewise.
44280         * modules/rbtreehash-list (Depends-on): Likewise.
44281
44282 2006-09-28  Bruno Haible  <bruno@clisp.org>
44283
44284         * lib/strndup.h: Simplify the redefinition of strndup.
44285         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
44286         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
44287
44288 2006-09-28  Bruno Haible  <bruno@clisp.org>
44289
44290         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
44291         * lib/gl_linkedhash_list.c: Likewise.
44292         * lib/gl_rbtreehash_list.c: Likewise.
44293
44294 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
44295
44296         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
44297         getaddrinfo.
44298
44299         * lib/__fpending.h: Don't include <stdio_ext.h> unless
44300         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
44301         it causes <stdio_ext.h> to cause a compile-time error.
44302         Problem reported by Nelson H. F. Beebe.
44303         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
44304         of HAVE_DECL___PENDING.
44305
44306         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
44307         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
44308         declaration.
44309
44310 2006-09-27  Jim Meyering  <jim@meyering.net>
44311
44312         This file could end up with a definition for a function
44313         named __strndup, rather than rpl_strndup on a system with
44314         incomplete weak_alias support.
44315         * lib/strndup.c (strndup): Rename from __strndup.
44316         Remove #defines that used to map __strndup to strndup.
44317         Don't use K&R prototypes.
44318         Remove LIBC-related code, since this file is not sync'd with glibc.
44319         * lib/strndup.h: Revamp, accordingly.
44320         * m4/strndup.m4: Modernize.
44321
44322 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
44323
44324         * modules/savewd (Depends-on): Add 'raise'.
44325         * lib/savewd.c: Include <signal.h>, for 'raise'.
44326
44327 2006-09-26  Jim Meyering  <jim@meyering.net>
44328
44329         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
44330         when we detect Darwin 8.7.0's acl_get_file bug.
44331         Rearrange to perform the new (below) run-test while $LIBS
44332         contains any acl-related library.  Set USE_ACL at the end.
44333         (gl_ACL_GET_FILE): New function.
44334
44335 2006-09-26  Eric Blake  <ebb9@byu.net>
44336
44337         * lib/verror.c: Include <config.h> unconditionally.
44338
44339 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
44340
44341         * modules/clock-time (Maintainer): Add self.
44342         * modules/getlogin_r (Depends-on): Add extensions.
44343
44344 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44345
44346         * modules/clock-time: New module.
44347         * modules/nanosleep (Depends-on): Add clock-time.
44348         * modules/gethrxtime (Depends-on): Likewise.
44349         * modules/gettime (Depends-on): Likewise.
44350         * modules/settime (Depends-on): Likewise.
44351
44352         * modules/fts-lgpl: Depend on openat.
44353         * modules/mkancesdirs: Depend on savewd.
44354         * modules/mkdir-p: Likewise.
44355
44356 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44357
44358         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
44359
44360         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
44361         `gl_have_arbitrary_file_name_length_limit' to
44362         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
44363         actually works between configure runs.
44364
44365 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44366             Bruno Haible  <bruno@clisp.org>
44367
44368         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
44369
44370 2006-09-25  Jim Meyering  <jim@meyering.net>
44371
44372         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
44373         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
44374
44375 2006-09-25  Eric Blake  <ebb9@byu.net>
44376
44377         * gnulib-tool (func_import, func_create_testdir): Fix typos in
44378         exec's in 2006-09-18 patch when shuffling fds.
44379
44380 2006-09-25  Bruno Haible  <bruno@clisp.org>
44381
44382         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
44383         Reported by Jim Meyering.
44384
44385 2006-09-24  Jim Meyering  <jim@meyering.net>
44386
44387         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
44388         compare a pointer against a literal "0".  That caused failures with
44389         at least HP-UX's hpcc.
44390
44391 2006-09-22  Simon Josefsson  <jas@extundo.com>
44392
44393         * modules/gc-sha1:
44394         * modules/gc-md4:
44395         * modules/gc-hmac-sha1:
44396         * modules/gc-hmac-md5:
44397         * modules/gc-des:
44398         * modules/gc-arcfour: Distribute more files.
44399
44400 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44401
44402         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
44403         (gl_linked_iterator_from_to): Initialize struct completely.
44404         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
44405         (gl_tree_iterator_from_to): Likewise
44406         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
44407         * lib/gl_array_list.c [lint] (gl_array_iterator)
44408         (gl_array_iterator_from_to): Likewise.
44409         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
44410         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
44411         (gl_carray_iterator_from_to): Likewise.
44412
44413         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
44414         * lib/md4.c (md4_process_block): Remove unused variable.
44415         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
44416         parentheses for clarity.
44417
44418 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44419
44420         * modules/bison-i18n (Depends-on): Add gettext.
44421
44422 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44423
44424         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
44425         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
44426         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
44427         also add missing comma that caused broken test.
44428         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
44429         stdlib.h, for `abort'.
44430         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
44431         variables.
44432         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
44433         include unistd.h if present, for `rmdir'.
44434         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
44435         variables.
44436         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
44437         in the process include standard headers for prototypes.
44438         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
44439         gets declared on GNU/Linux.
44440         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
44441         unistd.h, for `rmdir'.
44442         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
44443
44444         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
44445         always true.
44446         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
44447
44448         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
44449
44450 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44451
44452         * gnulib-tool (func_version): Create output all at once.  This
44453         may help avoid triggering unnecessary SIGPIPEs, and at any
44454         rate it doesn't hurt.
44455
44456 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44457             Bruno Haible  <bruno@clisp.org>
44458
44459         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
44460         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
44461         * m4/signed.m4 (bh_C_SIGNED): Likewise.
44462
44463         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
44464         (gl_FUNC_VASPRINTF): Invoke it.
44465
44466 2006-09-22  Bruno Haible  <bruno@clisp.org>
44467
44468         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
44469         getloadavg.c as first argument.
44470
44471 2006-09-22  Bruno Haible  <bruno@clisp.org>
44472
44473         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
44474         at the beginning of the gl_INIT macro.
44475         * modules/getloadavg (configure.ac): Pass $gl_source_base to
44476         gl_GETLOADAVG.
44477
44478 2006-09-22  Bruno Haible  <bruno@clisp.org>
44479
44480         * gnulib-tool (func_create_megatestdir): Don't include the config-h
44481         module.
44482         Suggested by Ralf Wildenhues.
44483
44484 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
44485
44486         Import this patch from libc:
44487
44488         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
44489
44490         * lib/regex_internal.c (re_string_reconstruct): Handle
44491         offset < pstr->valid_raw_len && pstr->offsets_needed case.
44492         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
44493         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
44494         re_string_context_at.
44495
44496         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
44497         now requires it.
44498         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
44499         gl_REGEX now does it for us.
44500         (gl_REGEX): Add test taken from
44501         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
44502
44503         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
44504         Check that large offsets work.  Modernize Autoconf usages.
44505         Prefer "yes" to mean a good thing rather than a bad.
44506         Don't put "#define mkstemp" in config.h, as this might interfere
44507         with standard system headers that "#define mkstemp mkstemp64".
44508
44509         * modules/mkstemp (Depends-on): Add extensions, so that
44510         mkstemp is visible on some platforms.
44511         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
44512         (Include): Change to "mkstemp.h" from <stdlib.h>.
44513         (Files): Add mkstemp.h.
44514
44515         * lib/mkstemp.h: New file, since some standard headers
44516         #define mkstemp.
44517         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
44518         Include "mkstemp.h".
44519         Make the _LIBC code resemble glibc original more,
44520         e.g., use K&R style.
44521         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
44522         (mkstemp): Remove, since mkstemp.h does this for us.
44523         * lib/stdlib--.h: Include mkstemp.h.
44524
44525         Import this patch from libc:
44526
44527         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
44528
44529         * lib/tempname.c (__gen_tempname): Change attempts_min
44530         into a macro.  Use preprocessor to decide how to initialize
44531         attempts [Coverity CID 67].
44532
44533 2006-09-20  Bruno Haible  <bruno@clisp.org>
44534
44535         * lib/mkdtemp.c: Import from libc.
44536         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
44537                 * sysdeps/posix/tempname.c (__gen_tempname): Change
44538                 attempts_min into a macro.  Use preprocessor to decide how to
44539                 initialize attempts [Coverity CID 67].
44540         2001-11-27  Paul Eggert  <eggert@twinsun.com>
44541                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
44542                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
44543
44544 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44545
44546         * gnulib-tool (func_exit): New function, to allow to pass the
44547         exit status portably through the trap.  Use everywhere.
44548         (--help, --version): Signal a write error.
44549         (trap): catch SIGPIPE, for write errors.
44550         Exit at the end of the trap, with the correct exit status.
44551
44552 2006-09-19  Karl Berry  <karl@gnu.org>
44553
44554         * doc/gnulib.texi: note about the license texinfo files.
44555
44556 2006-09-19  Eric Blake  <ebb9@byu.net>
44557
44558         * gnulib-tool: Avoid space-tab.
44559
44560 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
44561
44562         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
44563         that prevented coreutils 6.1 from building.  Problem reported
44564         by Petter Reinholdtsen.
44565
44566 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
44567
44568         * gnulib-tool (avoidlist): Fix typo that broke options like
44569         --avoid=lock that are used by coreutils bootstrap.
44570
44571 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
44572
44573         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
44574         more systematically.
44575
44576 2006-09-18  Jim Meyering  <jim@meyering.net>
44577
44578         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
44579
44580 2006-09-18  Bruno Haible  <bruno@clisp.org>
44581
44582         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
44583
44584 2006-09-18  Bruno Haible  <bruno@clisp.org>
44585
44586         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
44587         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
44588         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
44589         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
44590         * m4/gettext.m4: Require autoconf >= 2.52.
44591         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
44592         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
44593         of gl_cv_header_inttypes_h.
44594
44595 2006-09-18  Bruno Haible  <bruno@clisp.org>
44596
44597         * lib/javaversion.c: Include configmake.h.
44598
44599 2006-09-18  Bruno Haible  <bruno@clisp.org>
44600
44601         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
44602         avoid that the while loops be executed in a subshell.
44603
44604 2006-09-18  Bruno Haible  <bruno@clisp.org>
44605
44606         * MODULES.html.sh (func_module): Break long lines.
44607         Suggested by Bruce Korb <bkorb@gnu.org>.
44608
44609 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44610
44611         Speed up by a factor of 1.12.
44612         * gnulib-tool (nl): New variable.
44613         (func_import): Rewrite include directive extraction to only read each
44614         directive once.
44615
44616 2006-09-17  Bruno Haible  <bruno@clisp.org>
44617
44618         * modules/javaversion (Makefile.am): Remove DEFS setting.
44619         (Depends-on): Add configmake, for PKGDATADIR definition.
44620
44621 2006-09-17  Bruno Haible  <bruno@clisp.org>
44622
44623         * gnulib-tool (func_create_testdir): Rewrite all files at once.
44624
44625 2006-09-17  Bruno Haible  <bruno@clisp.org>
44626
44627         * gnulib-tool (func_append): New function, stolen from libtool.m4.
44628         (func_modules_transitive_closure, func_modules_add_dummy,
44629         func_modules_to_filelist, func_import, func_create_testdir,
44630         func_create_megatestdir, ...): Use it wherever possible.
44631         Suggested by Ralf Wildenhues.
44632
44633 2006-09-16  Karl Berry  <karl@gnu.org>
44634
44635         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
44636         to avoid sectioning errors.
44637         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
44638         [ifinfo]: blank line after @center-ed titles.
44639         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
44640         Spell FSF address consistently with others.
44641         (These changes approved by rms.)
44642
44643 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44644
44645         Speed up by a factor of 1.61.
44646         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
44647         already checked module names again.
44648
44649 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44650
44651         Speed up by a factor of 1.13.
44652         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
44653         for new_files, and the input to func_add_or_update.
44654
44655 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44656
44657         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
44658         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
44659
44660 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
44661
44662         * modules/mkancesdirs (Depends-on): Add fcntl.
44663         * modules/savewd: New file.
44664         * MODULES.html.sh (File system functions): Add savewd.
44665
44666         * modules/configmake (Makefile.am): Add support for the
44667         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
44668
44669 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
44670
44671         * m4/savewd.m4: New file.
44672
44673 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
44674
44675         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
44676         (dirchownmod): New arg FD.  All callers changed.
44677         Use FD rather than opening the directory ourself, as opening is
44678         now the caller's responsibility.
44679         * lib/dirchownmod.h: Likewise.
44680         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
44681         hosts that require <sys/types.h> before <sys/stat.h>.  Include
44682         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
44683         (test_dir): Remove.
44684         (mkancesdirs): Return length of prefix of FILE that has already
44685         been made, or -2 if there is a child doing the work.  Redo
44686         algorithm so that it is O(N) rather than O(N**2).  Optimize away
44687         ".", and treat ".." specially since it might stray back into
44688         already-created areas.  Use a subprocess if necessary.  New arg
44689         WD; all users changed.  MAKE_DIR function should now return 1
44690         if it creates a directory that is not readable.  Return -2 if
44691         a child process is spun off.
44692         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
44693         Adjust signature to match code.
44694         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
44695         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
44696         all users changed.
44697         * lib/savewd.c, lib/savewd.h: New files.
44698
44699 2006-09-15  Jim Meyering  <jim@meyering.net>
44700
44701         * modules/rename-dest-slash: New module.
44702         * MODULES.html.sh (posix_compat): Add it here.
44703
44704         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
44705
44706 2006-09-15  Jim Meyering  <jim@meyering.net>
44707
44708         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
44709         file.
44710
44711         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
44712
44713 2006-09-15  Jim Meyering  <jim@meyering.net>
44714
44715         * lib/rename-dest-slash.c (has_trailing_slash): Use
44716         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
44717         (rpl_rename_dest_slash): Perform the cheaper trailing slash
44718         test before testing whether SRC is a directory.
44719         Suggestions from Bruno Haible.
44720
44721         Avoid a warning about an unused variable.
44722         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
44723         into the #ifdef block where it's used.
44724
44725         * lib/rename-dest-slash.c: New file.
44726
44727 2006-09-14  Bruno Haible  <bruno@clisp.org>
44728
44729         * lib/allocsa.c: Include <config.h> unconditionally.
44730         * lib/asnprintf.c: Likewise.
44731         * lib/asprintf.c: Likewise.
44732         * lib/c-strcasecmp.c: Likewise.
44733         * lib/c-strcasestr.c: Likewise.
44734         * lib/c-strncasecmp.c: Likewise.
44735         * lib/c-strstr.c: Likewise.
44736         * lib/classpath.c: Likewise.
44737         * lib/clean-temp.c: Likewise.
44738         * lib/concatpath.c: Likewise.
44739         * lib/copy-file.c: Likewise.
44740         * lib/csharpcomp.c: Likewise.
44741         * lib/csharpexec.c: Likewise.
44742         * lib/execute.c: Likewise.
44743         * lib/fatal-signal.c: Likewise.
44744         * lib/findprog.c: Likewise.
44745         * lib/fwriteerror.c: Likewise.
44746         * lib/gl_array_list.c: Likewise.
44747         * lib/gl_array_oset.c: Likewise.
44748         * lib/gl_avltree_list.c: Likewise.
44749         * lib/gl_avltree_oset.c: Likewise.
44750         * lib/gl_avltreehash_list.c: Likewise.
44751         * lib/gl_carray_list.c: Likewise.
44752         * lib/gl_linked_list.c: Likewise.
44753         * lib/gl_linkedhash_list.c: Likewise.
44754         * lib/gl_list.c: Likewise.
44755         * lib/gl_oset.c: Likewise.
44756         * lib/gl_rbtree_list.c: Likewise.
44757         * lib/gl_rbtree_oset.c: Likewise.
44758         * lib/gl_rbtreehash_list.c: Likewise.
44759         * lib/imaxabs.c: Likewise.
44760         * lib/imaxdiv.c: Likewise.
44761         * lib/javacomp.c: Likewise.
44762         * lib/javaexec.c: Likewise.
44763         * lib/javaversion.c: Likewise.
44764         * lib/linebreak.c: Likewise.
44765         * lib/localcharset.c: Likewise.
44766         * lib/lock.c: Likewise.
44767         * lib/mbchar.c: Likewise.
44768         * lib/mbswidth.c: Likewise.
44769         * lib/mkdtemp.c: Likewise.
44770         * lib/pipe.c: Likewise.
44771         * lib/printf-args.c: Likewise.
44772         * lib/printf-parse.c: Likewise.
44773         * lib/progname.c: Likewise.
44774         * lib/progreloc.c: Likewise.
44775         * lib/readlink.c: Likewise.
44776         * lib/sh-quote.c: Likewise.
44777         * lib/stpcpy.c: Likewise.
44778         * lib/stpncpy.c: Likewise.
44779         * lib/strcasecmp.c: Likewise.
44780         * lib/strcasestr.c: Likewise.
44781         * lib/strcspn.c: Likewise.
44782         * lib/striconv.c: Likewise.
44783         * lib/strncasecmp.c: Likewise.
44784         * lib/strnlen1.c: Likewise.
44785         * lib/strstr.c: Likewise.
44786         * lib/strtok_r.c: Likewise.
44787         * lib/tls.c: Likewise.
44788         * lib/tmpdir.c: Likewise.
44789         * lib/unicodeio.c: Likewise.
44790         * lib/unsetenv.c: Likewise.
44791         * lib/vasnprintf.c: Likewise.
44792         * lib/vasprintf.c: Likewise.
44793         * lib/wait-process.c: Likewise.
44794         * lib/xallocsa.c: Likewise.
44795         * lib/xsetenv.c: Likewise.
44796         * lib/xstriconv.c: Likewise.
44797
44798 2006-09-13  Simon Josefsson  <jas@extundo.com>
44799
44800         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
44801         that internally, suggested by Ralf Wildenhues
44802         <Ralf.Wildenhues@gmx.de>.
44803
44804 2006-09-13  Simon Josefsson  <jas@extundo.com>
44805
44806         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
44807         @LIBOBJS@.
44808         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44809
44810 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
44811
44812         * lib/_fpending.c: Include <config.h> unconditionally, since we no
44813         longer worry about uses that don't define HAVE_CONFIG_H.
44814         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
44815         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
44816         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
44817         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
44818         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
44819         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
44820         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
44821         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
44822         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
44823         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
44824         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
44825         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
44826         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
44827         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
44828         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
44829         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
44830         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
44831         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
44832         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
44833         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
44834         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
44835         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
44836         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
44837         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
44838         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
44839         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
44840         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
44841         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
44842         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
44843         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
44844         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
44845         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
44846         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
44847         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
44848         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
44849         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
44850         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
44851         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
44852         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
44853         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
44854         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
44855         Likewise.
44856
44857 2006-09-13  Eric Blake  <ebb9@byu.net>
44858
44859         * lib/getopt.c: Fix typo in last commit.
44860
44861 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44862
44863         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
44864         dgettext.
44865
44866 2006-09-12  Jim Meyering  <jim@meyering.net>
44867
44868         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
44869         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
44870         Reported by Nelson H. F. Beebe.
44871
44872 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
44873
44874         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
44875         program_invocation_name and program_invocation_short_name are
44876         initialized.
44877         * lib/argp-namefrob.h: Move declarations of program_invocation_name
44878         and program_invocation_short_name to argp.h, so they are visible
44879         to user programs.
44880         * lib/argp.h: Likewise
44881
44882 2006-09-10  Bruno Haible  <bruno@clisp.org>
44883
44884         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
44885         m4/inttypes_h.m4, m4/uintmax_t.m4.
44886
44887 2006-09-10  Bruno Haible  <bruno@clisp.org>
44888
44889         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
44890         gl_AC_TYPE_UINTMAX_T.
44891
44892 2006-09-10  Bruno Haible  <bruno@clisp.org>
44893
44894         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
44895
44896 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
44897
44898         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
44899         convention.  Text proposed by Bruno Haible.
44900         (struct argp_option): Document the use of N_() wrappers.
44901
44902         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
44903         '\v', and translate the two parts separately, instead of feeding
44904         the whole string to gettext.  This allows to exclude
44905         '\v' from the strings visible to the translator by writing doc
44906         strings as N_("..") "\v" N_("..").
44907
44908 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
44909
44910         * config/srclist.txt: Undo latest change; the bug was fixed.
44911
44912 2006-09-09  Bruno Haible  <bruno@clisp.org>
44913
44914         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
44915         assignments if building a library without libtool.
44916         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
44917         in func_emit_lib_Makefile_am.
44918         (func_import): When building a static library libfoo.a, arrange to
44919         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
44920         (func_create_testdir): Likewise.
44921         * modules/gc (configure.ac, Makefile.am): If building statically,
44922         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
44923         * modules/iconvme (configure.ac, Makefile.am): Likewise.
44924         * modules/striconv (configure.ac, Makefile.am): Likewise.
44925         Based on a suggestion by Ralf Wildenhues.
44926
44927 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44928
44929         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
44930         Check for unistd.h too, since Autoconf doesn't assume POSIX.
44931         Also:
44932
44933         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44934         Add year_2050_test to catch glibc bug 2821
44935         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
44936
44937         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44938         Prefer #ifdef to #if.
44939
44940         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
44941         Return from 'main' instead of calling 'exit'.
44942
44943 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44944
44945         * lib/mktime.c (guess_time_tm): Fix bug where mktime
44946         returned the maximum time_t value rather than (time_t) -1.
44947         Problem originally reported by William Bardwell
44948         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
44949
44950         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
44951         Moved to here ...
44952         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
44953         ... from here.
44954
44955 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44956
44957         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
44958         2821 is fixed.
44959
44960 2006-09-08  Jim Meyering  <jim@meyering.net>
44961
44962         Don't make generated files read-only.  That would bother too many
44963         people.  However, do retain the ability to work when targets are
44964         read-only: remove the destination and temporary files before writing
44965         them (when generated via sed or echo), or by using the -f option for
44966         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
44967         * modules/alloca-opt, modules/argz, modules/arpa_inet:
44968         * modules/byteswap, modules/configmake, modules/fcntl:
44969         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
44970         * modules/localcharset, modules/netinet_in, modules/poll:
44971         * modules/stdbool, modules/stdint, modules/sys_select:
44972         * modules/sys_socket, modules/sys_stat, modules/sysexits:
44973
44974 2006-09-08  Jim Meyering  <jim@meyering.net>
44975
44976         Avoid new build failure on FreeBSD 6.0.
44977         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
44978         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
44979         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
44980
44981 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44982
44983         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
44984
44985 2006-09-07  Jim Meyering  <jim@meyering.net>
44986
44987         Fix global typo in last change: use chmod u-w, not chmod u-x.
44988         Spotted by Paul Eggert and Bruce Korb.
44989         * modules/alloca-opt, modules/argz, modules/arpa_inet:
44990         * modules/byteswap, modules/configmake, modules/fcntl:
44991         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
44992         * modules/localcharset, modules/netinet_in, modules/poll:
44993         * modules/stdbool, modules/stdint, modules/sys_select:
44994         * modules/sys_socket, modules/sys_stat, modules/sysexits:
44995
44996 2006-09-06  Jim Meyering  <jim@meyering.net>
44997
44998         Make generated files be read-only.
44999         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
45000         Ensure that each generated file is now read-only.
45001         * modules/argz: Likewise.
45002         * modules/arpa_inet: Likewise.
45003         * modules/byteswap: Likewise.
45004         * modules/configmake: Likewise.
45005         * modules/fcntl: Likewise.
45006         * modules/fnmatch: Likewise.
45007         * modules/getopt: Likewise.
45008         * modules/glob: Likewise.
45009         * modules/inttypes: Likewise.
45010         * modules/netinet_in: Likewise.
45011         * modules/poll: Likewise.
45012         * modules/stdbool: Likewise.
45013         * modules/stdint: Likewise.
45014         * modules/sys_select: Likewise.
45015         * modules/sys_socket: Likewise.
45016         * modules/sys_stat: Likewise.
45017         * modules/sysexits: Likewise.
45018         * modules/localcharset: Same as above, but continue using temporary
45019         file named "t-$@" (why different?) rather than the "$@-t" used
45020         everywhere else.
45021
45022         * modules/sysexits (Makefile.am): Replace literal occurrences
45023         of "sysexit.h" more readable, and more consistent, "$@".
45024
45025 2006-09-06  Bruno Haible  <bruno@clisp.org>
45026
45027         * modules/striconv: New file.
45028         * modules/xstriconv: New file.
45029         * MODULES.html.sh (Internationalization functions): Add striconv,
45030         xstriconv.
45031
45032 2006-09-06  Bruno Haible  <bruno@clisp.org>
45033
45034         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
45035         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
45036         not using libtool correctly.
45037
45038 2006-09-06  Bruno Haible  <bruno@clisp.org>
45039
45040         * lib/striconv.h: New file.
45041         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
45042         iconvstring.c.
45043         * lib/xstriconv.h: New file.
45044         * lib/xstriconv.c: New file.
45045
45046 2006-09-06  Bruno Haible  <bruno@clisp.org>
45047
45048         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
45049         lib_..._LDFLAGS.
45050
45051 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45052
45053         * lib/argz_.h: Sync from Libtool.
45054
45055         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
45056                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45057
45058         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
45059
45060 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
45061
45062         * modules/trim: New file.
45063
45064 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
45065
45066         * lib/trim.h: New file.
45067         * lib/trim.c: New file.
45068
45069 2006-09-05  Bruno Haible  <bruno@clisp.org>
45070
45071         * MODULES.html.sh (String handling): Add trim.
45072
45073 2006-09-04  Karl Berry  <karl@gnu.org>
45074
45075         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
45076         until next release.
45077
45078 2006-09-03  Bruno Haible  <bruno@clisp.org>
45079
45080         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
45081         correctly.
45082
45083 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
45084
45085         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
45086         not gl_GETLOADAVG.  Omit unneeded semicolons.
45087         Problems reported by Ralf Wildenhues in
45088         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
45089         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
45090         at the end, which is the usual gnulib style.
45091
45092         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
45093         of doing all the work ourselves.
45094         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
45095         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
45096
45097 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
45098
45099         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
45100         Problem reported by Ralf Wildenhues in
45101         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
45102
45103         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
45104         HAVE_STRUCT_STATFS_F_FSTYPENAME.
45105
45106 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
45107
45108         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
45109         yesterday's patch by changing test -n to test -z.
45110
45111 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
45112
45113         * modules/getloadavg (Files): Add m4/getloadavg.m4.
45114         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
45115         the former is now obsolescent.
45116
45117         * modules/chdir-long (Depends-on): Add fcntl.
45118
45119 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
45120
45121         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
45122         obsolescent, and programs should use gnulib instead.
45123         * m4/getloadavg.m4: New file, with contents taken from Autoconf
45124         but with prefixes changed.
45125
45126 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
45127
45128         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
45129         or stdbool.h, because they might not exist while configuring.
45130
45131         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
45132         Don't include unistd.h or limits.h; not needed, since chdir-long.h
45133         does that for us.
45134         (O_DIRECTORY): Remove.
45135
45136 2006-08-31  Eric Blake  <ebb9@byu.net>
45137
45138         * gnulib-tool: Don't let emacs change spaces to TAB.
45139
45140 2006-08-31  Bruno Haible  <bruno@clisp.org>
45141
45142         * gnulib-tool: When calling func_import more than once, do it in a
45143         subshell.
45144         Reported by Eric Blake <ebb9@byu.net>.
45145
45146 2006-08-31  Bruno Haible  <bruno@clisp.org>
45147
45148         * gnulib-tool (nl): Remove variable.
45149         (sed_transform_lib_file): Use more robust test for config-h module.
45150         (func_import): Fix typo in 2006-08-25 patch.
45151
45152 2006-08-31  Bruno Haible  <bruno@clisp.org>
45153
45154         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
45155         specified, augment Makefile.am variables instead of assigning them.
45156
45157 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
45158
45159         Work around a bug in both the Linux and SunOS 64-bit kernels:
45160         nanosleep mishandles sleeps for longer than 2**31 seconds.
45161         Problem reported by Frank v Waveren in
45162         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
45163         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
45164         Check for nanosleep bug.
45165         (LIB_NANOSLEEP): Append clock_gettime library if needed.
45166
45167 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
45168
45169         Work around a bug in both the Linux and SunOS 64-bit kernels:
45170         nanosleep mishandles sleeps for longer than 2**31 seconds.
45171         Problem reported by Frank v Waveren in
45172         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
45173         * lib/nanosleep.c (BILLION): New constant.
45174         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
45175         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
45176         implementation.
45177
45178 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
45179
45180         * modules/nanosleep (Depends-on): Add gettime.
45181
45182 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
45183         and Simon Josefsson  <jas@extundo.com>
45184         and Oskar Liljeblad  <oskar@osk.mine.nu>
45185
45186         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
45187         * gnulib-tool (func_import): New license type 'unmodifiable license
45188         text'.
45189         * modules/fdl: Use it.  Longer description.
45190         * module/gpl, module/lgpl: New files.
45191
45192 2006-08-30  Jim Meyering  <jim@meyering.net>
45193
45194         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
45195         shadowing the parameter.
45196
45197 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45198
45199         Sync from Libtool:
45200
45201         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45202
45203         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
45204         sharing with gnulib.  Report by Eric Blake.
45205
45206 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
45207
45208         * modules/isapipe: New file.
45209         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
45210
45211 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
45212
45213         * modules/configmake (Makefile.am): Add a comment, and omit
45214         the CONFIGMAKE_ prefix from generated macro names.  Suggested
45215         by Bruno Haible.
45216
45217 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
45218
45219         * m4/isapipe.m4: New file.
45220
45221 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
45222
45223         * lib/isapipe.c, lib/isapipe.h: New files.
45224
45225 2006-08-29  Jim Meyering  <jim@meyering.net>
45226
45227         * modules/configmake (Makefile.am): Make configmake.h depend on
45228         Makefile.  Otherwise, a stale configmake.h could hang around.
45229
45230 2006-08-29  Eric Blake  <ebb9@byu.net>
45231
45232         * lib/error.c (error_at_line, print_errno_message): Match libc, after
45233         resolution of upstream bug 3044.
45234
45235 2006-08-29  Bruno Haible  <bruno@clisp.org>
45236
45237         * modules/localcharset (Depends-on): Add configmake.
45238         (Makefile.am): Remove setting of LIBDIR through DEFS.
45239
45240 2006-08-29  Bruno Haible  <bruno@clisp.org>
45241
45242         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
45243         defined.
45244
45245 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
45246
45247         * modules/fcntl: New file.
45248         * modules/chdir-safer (Depends-on): Add fcntl.
45249         * modules/fts: Likewise.
45250         * modules/mkdir-p: Likewise.
45251
45252         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
45253         This undoes the most recent change, since we're now addressing the
45254         problem in a different way.
45255
45256         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
45257         into output, since the output might be called Makefile.am even
45258         if $makefile_name is something different.
45259         (func_import): Use $makefile_am rather than
45260         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
45261         empty.
45262
45263         * modules/inttypes (Files): Add m4/inttypes-h.m4.
45264
45265 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
45266
45267         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
45268         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
45269         recent change to stdint.m4, since we're now addressing the problem in a
45270         different way.
45271
45272 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
45273
45274         * m4/fcntl_h.m4: New file.
45275
45276 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
45277
45278         * lib/fcntl_.h: New file.
45279         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
45280         the fcntl module.
45281         * lib/dirchownmod.c: Likewise.
45282         * lib/fts.c: Likewise.
45283
45284         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
45285         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
45286         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
45287         just before including <inttypes.h>, to avoid circular inclusion.
45288
45289 2006-08-28  Jim Meyering  <jim@meyering.net>
45290
45291         * doc/visibility.texi: Actually read and correct the grammar of the
45292         sentence affected by yesterday's change.
45293
45294 2006-08-28  Eric Blake  <ebb9@byu.net>
45295
45296         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
45297         needs wrapper.
45298
45299 2006-08-28  Eric Blake  <ebb9@byu.net>
45300
45301         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
45302
45303 2006-08-28  Eric Blake  <ebb9@byu.net>
45304
45305         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
45306
45307 2006-08-28  Bruno Haible  <bruno@clisp.org>
45308
45309         * modules/c-strstr: New file, from GNU gettext.
45310         * MODULES.html.sh (String handling): Add c-strstr.
45311
45312 2006-08-28  Bruno Haible  <bruno@clisp.org>
45313
45314         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
45315         macros.
45316         Reported by Eric Blake.
45317
45318 2006-08-28  Bruno Haible  <bruno@clisp.org>
45319
45320         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
45321         (VASNPRINTF): Return a string of length > INT_MAX without failing.
45322         * lib/vasprintf.c: Include errno.h, limits.h.
45323         (EOVERFLOW): New fallback definition.
45324         (vasprintf): Test here whether the string length is > INT_MAX.
45325         * lib/vsnprintf.c: Include errno.h, limits.h.
45326         (EOVERFLOW): New fallback definition.
45327         (vsnprintf): Fix bug when generated string was too long for the buffer.
45328         Test here whether the string length is > INT_MAX.
45329
45330 2006-08-28  Bruno Haible  <bruno@clisp.org>
45331
45332         * lib/inttypes_.h (SCNX*): Remove definitions.
45333         Reported by Eric Blake.
45334
45335 2006-08-28  Bruno Haible  <bruno@clisp.org>
45336
45337         * lib/c-strstr.h: New file, from GNU gettext.
45338         * lib/c-strstr.c: New file, from GNU gettext.
45339
45340 2006-08-28  Bruno Haible  <bruno@clisp.org>
45341
45342         * gnulib-tool: Reorder some statements.
45343
45344 2006-08-28  Bruno Haible  <bruno@clisp.org>
45345
45346         * gnulib-tool: New option --makefile-name.
45347         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
45348         $makefile_name.
45349         (func_import): Write $makefile_name to the cache file, and read it from
45350         there unless explicitly specified. Use $makefile_name as file name
45351         instead of Makefile.am. Adjust the recommendations accordingly.
45352
45353 2006-08-28  Bruno Haible  <bruno@clisp.org>
45354
45355         * gnulib-tool (func_verify_module): Check against misapplying patch.
45356
45357 2006-08-28  Bruno Haible  <bruno@clisp.org>
45358
45359         * gnulib-tool (func_relativize, func_relconcat): New functions.
45360         Give an error if --local-dir is given with --update.
45361         Remove trailing slashes from $local_gnulib_dir.
45362         (func_import): Store the relativized $local_gnulib_dir in
45363         gnulib-cache.m4, and read it from there if not specified explicitly.
45364
45365 2006-08-28  Bruno Haible  <bruno@clisp.org>
45366
45367         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
45368         is the current directory. Respect also $local_gnulib_dir.
45369
45370 2006-08-28  Bruno Haible  <bruno@clisp.org>
45371             Simon Josefsson  <jas@extundo.com>
45372
45373         BeOS portability.
45374         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
45375
45376 2006-08-27  Jim Meyering  <jim@meyering.net>
45377
45378         * doc/visibility.texi: Remove duplicate word: "pointer".
45379
45380 2006-08-26  Bruno Haible  <bruno@clisp.org>
45381
45382         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
45383         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
45384         (Makefile.am): Create inttypes.h from inttypes_.h.
45385         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
45386
45387         * modules/imaxabs: New file.
45388
45389         * modules/imaxdiv: New file.
45390
45391 2006-08-26  Bruno Haible  <bruno@clisp.org>
45392
45393         * m4/inttypes.m4: New file.
45394         * m4/_inttypes_h.m4: Remove file.
45395         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
45396         PRI_MACROS_BROKEN.
45397         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
45398
45399         * m4/imaxabs.m4: New file.
45400
45401         * m4/imaxdiv.m4: New file.
45402
45403 2006-08-26  Bruno Haible  <bruno@clisp.org>
45404
45405         * lib/inttypes_.h: New file.
45406         * lib/inttypes.h: Remove file.
45407         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
45408
45409         * lib/imaxabs.c: New file.
45410
45411         * lib/imaxdiv.c: New file.
45412
45413 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
45414
45415         New config-h module, so that "make" output needn't be cluttered
45416         by -DHAVE_CONFIG_H.
45417         * MODULES.html.sh (Support for building libraries and executables):
45418         Add config-h.
45419         * modules/config-h: New file.
45420         * gnulib-tool (nl, sed_transform_lib_file): New vars.
45421         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
45422         the config-h module is used.
45423
45424         New configmake module, so that "make" output needn't be cluttered
45425         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
45426         * MODULES.html.sh (Support for building libraries and executables):
45427         Add configmake.
45428         * modules/configmake: New file.
45429
45430 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
45431
45432         * m4/config-h.m4: New file.
45433
45434 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
45435
45436         * config/srclist.txt: Add elisp-comp.
45437
45438 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
45439
45440         * MODULES.html.sh (Support for building libraries and executables):
45441         Add elisp-comp.
45442         * build-aux/elisp-comp: New file.
45443         * modules/elisp-comp: New file.
45444
45445 2006-08-24  Bruno Haible  <bruno@clisp.org>
45446
45447         * gnulib-tool (func_create_testdir): Use non-default values of
45448         sourcebase and m4base.
45449
45450 2006-08-24  Bruno Haible  <bruno@clisp.org>
45451
45452         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
45453         HTML structure.
45454
45455 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
45456
45457         * modules/openat (Depends-on): Add lchown.
45458
45459 2006-08-23  Bruno Haible  <bruno@clisp.org>
45460
45461         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
45462         of gl_LOCK_EARLY instead of gl_LOCK.
45463
45464 2006-08-23  Bruno Haible  <bruno@clisp.org>
45465
45466         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
45467         on OSF/1 to no.
45468         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
45469
45470 2006-08-23  Bruno Haible  <bruno@clisp.org>
45471
45472         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
45473         as unusable.
45474
45475         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
45476         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
45477         (gl_LOCK): New macro.
45478
45479 2006-08-22  Simon Josefsson  <jas@extundo.com>
45480
45481         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
45482         to md5 module.
45483
45484 2006-08-22  Simon Josefsson  <jas@extundo.com>
45485
45486         * MODULES.html.sh: Add "Support for maintaining and release
45487         projects".
45488
45489         * build-aux/gnupload: New file, from coreutils.
45490
45491 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
45492
45493         Avoid the need for AC_LIBSOURCES in m4 macros.
45494         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
45495         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
45496         * modules/check-version (EXTRA_DIST): Add check-version.h.
45497         * modules/crc (EXTRA_DIST): Add crc.h.
45498         * modules/des (EXTRA_DIST): Add des.h.
45499         * modules/gc (EXTRA_DIST): Add gc.h.
45500         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
45501         * modules/getline (EXTRA_DIST): Add getline.h.
45502         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
45503         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
45504         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
45505         * modules/md2 (EXTRA_DIST): Add md2.h.
45506         * modules/md4 (EXTRA_DIST): Add md4.h.
45507         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
45508         * modules/read-file (EXTRA_DIST): Add read-file.h.
45509         * modules/readline (EXTRA_DIST): Add readline.h.
45510         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
45511         rijndael-api-fst.h.
45512
45513 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
45514
45515         * m4/rijndael.m4 (gl_ARCFOUR):
45516         * m4/arctwo.m4 (gl_ARCTWO):
45517         * m4/check-version.m4 (gl_CHECK_VERSION):
45518         * m4/crc.m4 (gl_CRC):
45519         * m4/des.m4 (gl_DES):
45520         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
45521         * m4/gc.m4 (gl_GC):
45522         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
45523         * m4/getline.m4 (gl_FUNC_GETLINE):
45524         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
45525         * m4/hmac-md5.m4 (gl_HMAC_MD5):
45526         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
45527         * m4/md2.m4 (gl_MD2):
45528         * m4/md4.m4 (gl_MD4):
45529         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
45530         * m4/read-file.m4 (gl_FUNC_READ_FILE):
45531         * m4/readline.m4 (gl_FUNC_READLINE):
45532         * m4/rijndael.m4 (gl_RIJNDAEL):
45533         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
45534         to get the necessary .h files and whatnot.
45535
45536 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
45537
45538         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
45539         gnulib rather than the other way around.
45540         * config/srclistvars.sh (COREUTILS): Remove.
45541
45542 2006-08-22  Jim Meyering  <jim@meyering.net>
45543
45544         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
45545
45546         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
45547
45548 2006-08-22  Eric Blake  <ebb9@byu.net>
45549
45550         * modules/regexprops-generic: New file.
45551         * MODULES.html.sh (Support for building documentation): List it.
45552
45553 2006-08-22  Eric Blake  <ebb9@byu.net>
45554
45555         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
45556         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
45557         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
45558         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
45559
45560 2006-08-22  Bruno Haible  <bruno@clisp.org>
45561
45562         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
45563         and lib_LTLIBRARIES like the other lib_* variables.
45564
45565 2006-08-22  Bruno Haible  <bruno@clisp.org>
45566
45567         * build-aux/x-to-1.in: New file, from GNU gettext.
45568
45569 2006-08-22  Bruno Haible  <bruno@clisp.org>
45570
45571         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
45572         <utmpx.h> exists.
45573
45574 2006-08-22  Bruno Haible  <bruno@clisp.org>
45575
45576         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
45577         <utmpx.h> exists.
45578
45579 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
45580
45581         BeOS portability.
45582         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
45583         exist.
45584         Problem reported by Bruno Haible.
45585
45586 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
45587
45588         Avoid the need for AC_LIBSOURCES in m4 macros.
45589         * modules/acl (EXTRA_DIST): Add acl.h.
45590         * modules/argmatch (Files): Add m4/argmatch.m4.
45591         (configure.ac): Add gl_ARGMATCH.
45592         (EXTRA_DIST): Renamed from lib_SOURCES, for
45593         consistency with the other modules.  Remove argmatch.c.
45594         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
45595         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
45596         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
45597         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
45598         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
45599         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
45600         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
45601         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
45602         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
45603         * modules/closeout (EXTRA_DIST): Add closeout.h.
45604         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
45605         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
45606         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
45607         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
45608         dirname.h; remove basename.c and stripslash.c.
45609         * modules/exclude (EXTRA_DIST): Add exclude.h.
45610         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
45611         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
45612         * modules/file-type (EXTRA_DIST): Add file-type.h.
45613         * modules/filemode (EXTRA_DIST): Add filemode.h.
45614         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
45615         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
45616         * modules/fpending (EXTRA_DIST): Add __fpending.h.
45617         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
45618         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
45619         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
45620         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
45621         * modules/getdate (EXTRA_DIST): Add getdate.c.
45622         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
45623         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
45624         * modules/getpass (EXTRA_DIST): Add getpass.h.
45625         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
45626         * modules/group-member (EXTRA_DIST): Add group-member.h.
45627         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
45628         * modules/hash (EXTRA_DIST): Add hash.h.
45629         * modules/human (EXTRA_DIST): Add human.h.
45630         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
45631         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
45632         * modules/lchown (EXTRA_DIST): Add lchown.h.
45633         * modules/long-options (EXTRA_DIST): Add long-options.h.
45634         * modules/lstat (EXTRA_DIST): Add lstat.h.
45635         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
45636         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
45637         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
45638         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
45639         * modules/memxor (EXTRA_DIST): Add memxor.h.
45640         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
45641         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
45642         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
45643         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
45644         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
45645         * modules/physmem (EXTRA_DIST): Add physmem.h.
45646         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
45647         * modules/posixver (EXTRA_DIST): Add posixver.h.
45648         * modules/quote (EXTRA_DIST): Add quote.h.
45649         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
45650         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
45651         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
45652         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
45653         regex_internal.h regexec.c.
45654         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
45655         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
45656         * modules/same (EXTRA_DIST): Add same.h.
45657         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
45658         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
45659         * modules/savedir (EXTRA_DIST): Add savedir.h.
45660         * modules/sha1 (EXTRA_DIST): Add sha1.h.
45661         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
45662         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
45663         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
45664         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
45665         * modules/strdup (EXTRA_DIST): Add strdup.h.
45666         * modules/strftime (EXTRA_DIST): Add strftime.h.
45667         * modules/strndup (EXTRA_DIST): Add strndup.h.
45668         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
45669         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
45670         * modules/time_r (EXTRA_DIST): Add time_r.h.
45671         * modules/timespec (EXTRA_DIST): Add timespec.h.
45672         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
45673         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
45674         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
45675         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
45676         * modules/userspec (EXTRA_DIST): Add userspec.h.
45677         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
45678         * modules/utimens (EXTRA_DIST): Add utimens.h.
45679         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
45680         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
45681         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
45682         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
45683         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
45684         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
45685         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
45686         * modules/yesno (EXTRA_DIST): Add yesno.h.
45687
45688 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
45689
45690         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
45691
45692         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
45693         * m4/dev-ino.m4, same-inode.m4: Remove.
45694
45695         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
45696         * m4/acl.m4 (AC_FUNC_ACL):
45697         * m4/backupfile.m4 (gl_BACKUPFILE):
45698         * m4/c-strtod.m4 (gl_C99_STRTOLD):
45699         * m4/canon-host.m4 (gl_CANON_HOST):
45700         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
45701         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
45702         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
45703         * m4/cloexec.m4 (gl_CLOEXEC):
45704         * m4/close-stream.m4 (gl_CLOSE_STREAM):
45705         * m4/closeout.m4 (gl_CLOSEOUT):
45706         * m4/dirfd.m4 (gl_FUNC_DIRFD):
45707         * m4/dirname.m4 (gl_DIRNAME):
45708         * m4/exclude.m4 (gl_EXCLUDE):
45709         * m4/exitfail.m4 (gl_EXITFAIL):
45710         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
45711         * m4/file-type.m4 (gl_FILE_TYPE):
45712         * m4/filemode.m4 (gl_FILEMODE):
45713         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
45714         * m4/fpending.m4 (gl_FUNC_FPENDING):
45715         * m4/fprintftime.m4 (gl_FPRINTFTIME):
45716         * m4/fts.m4 (gl_FUNC_FTS):
45717         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
45718         * m4/getdate.m4 (gl_GETDATE):
45719         * m4/gethrxtime.m4 (gl_GETHRXTIME):
45720         * m4/getpagesize.m4 (gl_GETPAGESIZE):
45721         * m4/getpass.m4 (gl_FUNC_GETPASS):
45722         * m4/gettime.m4 (gl_GETTIME):
45723         * m4/getugroups.m4 (gl_GETUGROUPS):
45724         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
45725         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
45726         * m4/hard-locale.m4 (gl_HARD_LOCALE):
45727         * m4/hash.m4 (gl_HASH):
45728         * m4/idcache.m4 (gl_IDCACHE):
45729         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
45730         * m4/lchown.m4 (gl_FUNC_LCHOWN):
45731         * m4/long-options.m4 (gl_LONG_OPTIONS):
45732         * m4/lstat.m4 (gl_FUNC_LSTAT):
45733         * m4/md5.m4 (gl_MD5):
45734         * m4/memcasecmp.m4 (gl_MEMCASECMP):
45735         * m4/memcoll.m4 (gl_MEMCOLL):
45736         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
45737         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
45738         * m4/memxor.m4 (gl_MEMXOR):
45739         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
45740         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
45741         * m4/modechange.m4 (gl_MODECHANGE):
45742         * m4/mountlist.m4 (gl_MOUNTLIST):
45743         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
45744         * m4/openat.m4 (gl_FUNC_OPENAT):
45745         * m4/pathmax.m4 (gl_PATHMAX):
45746         * m4/physmem.m4 (gl_PHYSMEM):
45747         * m4/posixtm.m4 (gl_POSIXTM):
45748         * m4/posixver.m4 (gl_POSIXVER):
45749         * m4/quote.m4 (gl_QUOTE):
45750         * m4/quotearg.m4 (gl_QUOTEARG):
45751         * m4/readtokens.m4 (gl_READTOKENS):
45752         * m4/readutmp.m4 (gl_READUTMP):
45753         * m4/regex.m4 (gl_REGEX):
45754         * m4/safe-read.m4 (gl_SAFE_READ):
45755         * m4/safe-write.m4 (gl_SAFE_WRITE):
45756         * m4/same.m4 (gl_SAME):
45757         * m4/save-cwd.m4 (gl_SAVE_CWD):
45758         * m4/savedir.m4 (gl_SAVEDIR):
45759         * m4/settime.m4 (gl_SETTIME):
45760         * m4/sha1.m4 (gl_SHA1):
45761         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
45762         * m4/stat-macros.m4 (gl_STAT_MACROS):
45763         * m4/stat-time.m4 (gl_STAT_TIME):
45764         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
45765         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
45766         * m4/strdup.m4 (gl_FUNC_STRDUP):
45767         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
45768         * m4/strndup.m4 (gl_FUNC_STRNDUP):
45769         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
45770         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
45771         * m4/time_r.m4 (gl_TIME_R):
45772         * m4/timespec.m4 (gl_TIMESPEC):
45773         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
45774         * m4/unlinkdir.m4 (gl_UNLINKDIR):
45775         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
45776         * m4/userspec.m4 (gl_USERSPEC):
45777         * m4/utimecmp.m4 (gl_UTIMECMP):
45778         * m4/utimens.m4 (gl_UTIMENS):
45779         * m4/xalloc.m4 (gl_XALLOC):
45780         * m4/xgetcwd.m4 (gl_XGETCWD):
45781         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
45782         * m4/xreadlink.m4 (gl_XREADLINK):
45783         * m4/xstrtod.m4 (gl_XSTRTOD):
45784         * m4/yesno.m4 (gl_YESNO):
45785         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
45786         to get the necessary .h files and whatnot.
45787
45788 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
45789             Bruno Haible  <bruno@clisp.org>
45790
45791         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
45792         /bin/sh understanding of '!' conditional negation.
45793
45794 2006-08-21  Jim Meyering  <jim@meyering.net>
45795
45796         * modules/openat (Depends-on): Really alphabetize.
45797
45798         * modules/acl (Depends-on): Add error and quote.
45799
45800         * check-module (find_included_lib_files): Add at-func.c to the
45801         ok-to-include-more-than-once white list.
45802
45803         * modules/openat (Depends-on): Add lstat.  Alphabetize.
45804
45805 2006-08-21  Bruno Haible  <bruno@clisp.org>
45806
45807         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45808         Emit a pkgdata_DATA variable only if some snippets add contents to it.
45809         Reported by Martin Lambers <marlam@marlam.de>.
45810
45811 2006-08-21  Bruno Haible  <bruno@clisp.org>
45812
45813         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
45814         specify an installation location, don't emit a noinst_LIBRARIES or
45815         noinst_LTLIBRARIES assignment.
45816
45817 2006-08-21  Bruno Haible  <bruno@clisp.org>
45818
45819         BeOS portability.
45820         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
45821         BeOS has mbrtowc() but no <wctype.h>.
45822
45823 2006-08-21  Bruno Haible  <bruno@clisp.org>
45824
45825         BeOS portability.
45826         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
45827         exist.
45828
45829 2006-08-21  Bruno Haible  <bruno@clisp.org>
45830
45831         BeOS portability.
45832         * lib/mbchar.h: Include <wctype.h> only if it exists.
45833
45834 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
45835
45836         Remove files that are no longer needed by their respective modules.
45837         * m4/obstack.m4: Remove.
45838         * m4/strerror_r.m4: Remove.
45839         * m4/uint32_t.m4: Remove.
45840         * m4/uintptr_t.m4: Remove.
45841         * m4/ullong_max.m4: Remove.
45842         * m4/xstrtoimax.m4: Remove.
45843         * m4/xstrtoumax.m4: Remove.
45844
45845         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
45846         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
45847         dependencies now capture this.
45848
45849         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
45850         Do not use AC_LIBSOURCES, since gnulib modules now do this.
45851         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
45852         * m4/human.m4 (gl_HUMAN): Likewise.
45853         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
45854         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
45855
45856         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
45857
45858         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
45859         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
45860         stdint.
45861         * m4/human.m4 (gl_HUMAN): Likewise.
45862         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
45863         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
45864         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
45865         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
45866         * m4/xstrtol (gl_XSTRTOL): Likewise.
45867
45868         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
45869         AC_TYPE_LONG_LONG_INT.
45870         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
45871         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
45872         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
45873         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
45874
45875         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
45876         on stdbool.
45877
45878         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
45879         (gl_PREREQ_XSTRTOUL): Remove.
45880
45881         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
45882
45883         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
45884         mode.
45885
45886 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
45887
45888         Add and change modules to make it easier for coreutils to use
45889         gnulib-tool.
45890         * modules/backupfile (Files): Remove m4/d-ino.m4.
45891         (Depends-on): Add d-ino.
45892         * modules/cycle-check (Depends-on): Add stdint.
45893         (lib_SOURCES): Add cycle-check.h.
45894         * modules/d-ino: New module.
45895         * modules/d-type: New module.
45896         * modules/error (Files): Remove m4/strerror_r.m4.
45897         * modules/filemode (Files): Add m4/st_dm_mode.m4.
45898         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
45899         m4/inttypes_h.m4, m4/uintmax_t.m4.
45900         (Depends-on): Add stdint.
45901         (lib_SOURCES): Add fsusage.h.
45902         * modules/getcwd (Files): Remove d-ino.m4.
45903         (Depends-on): Add d-ino.
45904         * modules/getndelim2 (Depends-on): Add stdint.
45905         * modules/glob (Files): Remove m4/d-type.m4.
45906         (Depends-on): Add d-type.
45907         * modules/host-os: New module.
45908         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
45909         m4/inttypes_h.m4, m4/uintmax_t.m4.
45910         * Depends-on: Add stdint.
45911         (lib_SOURCES): Add human.h.
45912         * modules/inttostr (Files): Remove m4/intmax_t.m4,
45913         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
45914         m4/uintmax_t.m4, m4/ulonglong.m4.
45915         (Depends-on): Add stdint.
45916         (EXTRA_DIST): Add inttostr.h.
45917         * modules/lchmod: New module.
45918         * modules/link-follow: New module.
45919         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
45920         (Depends-on): Add lchmod.
45921         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
45922         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
45923         (Depends-on): Add stdint.
45924         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
45925         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
45926         (Depends-on): Add stdint.
45927         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
45928         * modules/perl: New module.
45929         * modules/regex (Depends-on): Add stdint.
45930         * modules/rmdir-errno: New module.
45931         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
45932         m4/intmax_t.m4.
45933         (Depends-on): Add stdint.
45934         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
45935         m4/uintmax_t.m4.
45936         (Depends-on): Add stdint.
45937         * modules/unlink-busy: New module.
45938         * modules/utimecmp (Depends-on): Add stdint.
45939         * modules/uptime: New module.
45940         * modules/winsz-ioctl: New module.
45941         * modules/winsz-termios: New module.
45942         * modules/xnanosleep (Depends-on): Add nanosleep.
45943         * modules/ullong_max: Remove.
45944         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
45945         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
45946         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
45947         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
45948         (Depends-on): Add inttypes.
45949         (lib_SOURCES): Add xstrtol.h.
45950         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
45951         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
45952         * MODULES.html.sh: Move 'assert' into the assert section.
45953         Move 'dummy' into the linking section.
45954         Remove ullong_max.
45955         Add section for compatibility checks for POSIX:2001 functions,
45956         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
45957         winsz-ioctl, and winsz-termios into it.
45958         Add lchmod.
45959         Add top-level Misc section and put host-os, perl, and uptime
45960         into it.
45961
45962 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
45963
45964         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
45965         now assume the stdint module.  Do not include inttypes.h.
45966         * lib/fsusage.h: Likewise.
45967         * lib/getndelim2.c: Likewise.
45968         * lib/human.h: Likewise.
45969         * lib/inttostr.h: Likewise.
45970         * lib/obstack.c: Likewise.
45971         * lib/regex_internal.h: Likewise.
45972         * lib/tempname.c: Likewise.
45973         * lib/utimecmp.c: Likewise.
45974         * lib/xstrtol.h: Likewise.
45975
45976         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
45977
45978         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
45979         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
45980         * lib/xtime.h: Likewise.
45981
45982 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
45983
45984         * modules/openat (Files): Add lib/fchmodat.c.
45985         Fixes problem reported by Jay Youngman.
45986
45987 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
45988
45989         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
45990         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
45991
45992 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
45993             Bruno Haible  <bruno@clisp.org>
45994
45995         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
45996         and is a script that invokes bison. Tighten the code. Add comments.
45997
45998 2006-08-18  Jim Meyering  <jim@meyering.net>
45999
46000         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
46001         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
46002         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
46003         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
46004
46005 2006-08-18  Bruno Haible  <bruno@clisp.org>
46006
46007         * modules/bison-i18n: New file.
46008         * MODULES.html.sh (Internationalization functions): Add it.
46009
46010 2006-08-18  Bruno Haible  <bruno@clisp.org>
46011
46012         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
46013         sys/statvfs.h. When getmntinfo was found, check its declaration and
46014         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
46015
46016 2006-08-18  Bruno Haible  <bruno@clisp.org>
46017
46018         * m4/bison-i18n.m4: New file, from bison.
46019
46020 2006-08-18  Bruno Haible  <bruno@clisp.org>
46021
46022         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
46023         (ME_DUMMY): Treat "kernfs" as a dummy.
46024         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
46025
46026 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
46027
46028         Update from coreutils.
46029
46030         2006-08-15  Jim Meyering  <jim@meyering.net>
46031
46032         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
46033
46034         2006-01-17  Jim Meyering  <jim@meyering.net>
46035
46036         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
46037
46038         2006-01-11  Jim Meyering  <jim@meyering.net>
46039
46040         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
46041         Check for the lchmod function.
46042
46043 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
46044
46045         Update from coreutils.
46046
46047         * lib/__fpending.h: Add copyright notice.
46048         * lib/fprintftime.h: Likewise.
46049         * lib/savedir.c: Use (C) in copyright notice.
46050         * lib/savedir.h: Likewise.
46051
46052         2006-08-15  Jim Meyering  <jim@meyering.net>
46053
46054         * lib/at-func.c: New file, with the logic of all emulated at-functions.
46055         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
46056         in support of the EXPECTED_ERRNO macro.
46057         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
46058         definitions.  Instead, define the appropriate symbols and include
46059         "at-func.c".
46060         * lib/mkdirat.c (mkdirat): Likewise.
46061         * lib/fchmodat.c (fchmodat): Likewise.
46062         (ENOSYS): Remove definition.
46063         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
46064         it.  Don't include "unistd--.h" -- it wasn't ever used.
46065
46066         2006-01-17  Jim Meyering  <jim@meyering.net>
46067
46068         Rewrite fts.c not to change the current working directory,
46069         by using openat, fstatat, fdopendir, etc..
46070
46071         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
46072         (HAVE_OPENAT_SUPPORT): Define.
46073         [_LIBC] (fchdir): Don't undef or define; no longer used.
46074         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
46075         Now, this `function' always succeeds, and consumes its file descriptor
46076         parameter -- so callers must not close such FDs.  Update callers.
46077         (diropen_fd, opendirat, cwd_advance_fd): New functions.
46078         (diropen): Add parameter, SP.  Adjust all callers.
46079         Implement using diropen_fd, rather than open.
46080         (fts_open): Initialize new member, fts_cwd_fd.
46081         Remove fts_rft-setting code.
46082         (fts_close): Close fts_cwd_fd, if necessary.
46083         (__opendir2): Define in terms of opendir or opendirat,
46084         depending on whether the FST_NOCHDIR flag is set.
46085         (fts_build): Since fts_safe_changedir consumes its FD, and since
46086         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
46087         and close the dup'd file descriptor upon failure.
46088         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
46089         (fts_safe_changedir): Tweak semantics to reflect that this function
46090         now calls cwd_advance_fd and hence consumes its FD argument.
46091         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
46092         [struct FTS] (fts_rft): Remove now-unused member.
46093         [struct FTS] (fts_cycle.state): Improve comment.
46094
46095         * lib/openat.c (openat_needs_fchdir): New function.
46096         * lib/openat.h (openat_needs_fchdir): Declare it.
46097
46098 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
46099
46100         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
46101         Problem and fix reported by Pádraig Brady in
46102         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
46103
46104 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
46105
46106         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
46107
46108 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
46109
46110         * lib/memcoll.c (memcoll): Optimize for the common case where the
46111         arguments are bytewise equal.
46112
46113 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
46114
46115         * doc/regexprops-generic.texi: Add a copyright notice.
46116
46117 2006-08-15  Bruno Haible  <bruno@clisp.org>
46118
46119         * modules/tmpdir (License): Change to LGPL.
46120
46121 2006-08-15  Bruno Haible  <bruno@clisp.org>
46122
46123         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
46124         module.
46125
46126 2006-08-14  Simon Josefsson  <jas@extundo.com>
46127
46128         * config/srclist.txt: Add gnupload.
46129
46130 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
46131
46132         Change copyright notice from LGPL 2 to GPL 2, since that's the
46133         standard form used in the gnulib repository.
46134         * tests/test-lock.c: Likewise.
46135         * tests/test-stdint.c: Likewise.
46136         * tests/test-tls.c: Likewise.
46137
46138         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
46139         prelude-manager.  User shorter URLs for GNU projects, without '?'.
46140         Add copyright notice.
46141
46142         * check-module: Add copyright notice.  Output a copyright
46143         notice if "--version" is specified.
46144         * modules/COPYING: New file.
46145         * tests/test-getaddrinfo.c: Add copyright notice.
46146         * tests/test-verify.c: Likewise.
46147
46148 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
46149
46150         Change copyright notice from LGPL 2 to GPL 2, since that's the
46151         standard form used in the gnulib repository.
46152         * lib/lock.c: LGPL -> GPL.
46153         * lib/lock.h: Likewise.
46154         * lib/strnlen1.c: Likewise.
46155         * lib/strnlen1.h: Likewise.
46156         * lib/tls.c: Likewise.
46157         * lib/tls.h: Likewise.
46158         * lib/tmpdir.c: Likewise.
46159
46160         * lib/TODO: Remove; this belongs only in coreutils.
46161
46162 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
46163
46164         Add copyright notices to long-enough files that lack them, since
46165         otherwise the files aren't clearly free.  Use the same notice that
46166         getdate.texi already uses.
46167         * doc/alloca-opt.texi: Add copyright notice.
46168         * doc/alloca.texi: Likewise.
46169         * doc/ctime.texi: Likewise.
46170         * doc/functions.texi: Likewise.
46171         * doc/gcd.texi: Likewise.
46172         * doc/gnulib-tool.texi: Likewise.
46173         * doc/inet_ntoa.texi: Likewise.
46174         * doc/visibility.texi: Likewise.
46175
46176         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
46177         * doc/quote.texi: Add copyright notice.
46178
46179         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
46180         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
46181         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
46182         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
46183         is now obsolete, and give a pointer to the Sun list.
46184         Add copyright notice.
46185
46186 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
46187
46188         * config/srclistvars.sh: Add copyright notice.
46189
46190 2006-08-14  Eric Blake  <ebb9@byu.net>
46191
46192         Import the following change from libc:
46193
46194         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
46195
46196         Upstream bug 2997.
46197         * lib/misc/error.c: Add space between program name and message if file
46198         name is missing.
46199
46200 2006-08-12  Karl Berry  <karl@gnu.org>
46201
46202         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
46203         remove, these originate in gnulib now.
46204
46205 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46206
46207         * doc/Makefile (standards.info standards.html standards.dvi):
46208         Also depend on make-stds.texi.
46209
46210 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
46211
46212         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
46213         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
46214
46215         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
46216         in wchar_t.  Problem reported by Eric Blake.
46217
46218         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
46219         LEN is smaller than SIZE.  Suggested by Bruno Haible.
46220         Also, help the compiler to keep LEN in a register.
46221
46222 2006-08-11  Eric Blake  <ebb9@byu.net>
46223
46224         * users.txt: Sort.  Add tar.
46225
46226 2006-08-11  Bruno Haible  <bruno@clisp.org>
46227
46228         * users.txt: New file.
46229
46230 2006-08-11  Bruno Haible  <bruno@clisp.org>
46231
46232         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
46233         before <wchar.h>. Needed for OSF/1 and BSD/OS.
46234
46235 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
46236
46237         * modules/snprintf (Depends-on): Remove minmax.
46238         (Maintainer): Add self and Bruno.
46239
46240 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
46241
46242         * lib/.cppi-disable: Add snprintf.h, socket_.h.
46243         * lib/snprintf.c: Include <errno.h> and <limits.h>.
46244         (EOVERFLOW): Define if the system does not.
46245         Do not include "minmax.h"; it wasn't used.
46246         (snprintf): Don't assume size_t promotes to an unsigned type.
46247         Fix bug when generated string was too long for the buffer: the
46248         buffer's contents are supposed to be the initial prefix of the
46249         output.  Don't assume vasnprintf returns EOVERFLOW if the size
46250         exceeds INT_MAX; do the check ourselves.
46251
46252         Import the following changes from libc:
46253
46254         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
46255
46256         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
46257         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
46258         set wc to the byte which couldn't be converted.
46259         (re_string_reconstruct): Don't clear valid_raw_len before calling
46260         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
46261         tip_context using re_string_context_at.
46262
46263         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
46264
46265         * lib/posix/regex.h: g++ still cannot handled [restrict].
46266
46267         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
46268
46269         * lib/posix/regex.h: Remove special handling for VMS.
46270
46271 2006-08-10  Jim Meyering  <jim@meyering.net>
46272
46273         * modules/same-inode: New module.
46274         * modules/dev-ino: New module.
46275         * modules/cycle-check: Depend on these modules, rather than simply
46276         including their .h files.
46277         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
46278         required via m4/cycle-check.m4.
46279         * modules/same: Depend on new same-inode module, rather than
46280         including same-inode.h.
46281         * modules/chdir-safer: New file.
46282
46283         * modules/chown (Depends-on): Add stat-macros.
46284
46285 2006-08-10  Jim Meyering  <jim@meyering.net>
46286
46287         * m4/cycle-check.m4: New file.
46288         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
46289         * m4/dev-ino.m4, m4/same-inode.m4: New files.
46290
46291 2006-08-10  Eric Blake  <ebb9@byu.net>
46292
46293         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
46294         in from original proposal.
46295
46296 2006-08-10  Eric Blake  <ebb9@byu.net>
46297         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46298
46299         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
46300         namespace.
46301
46302 2006-08-10  Bruno Haible  <bruno@clisp.org>
46303
46304         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
46305         as well.
46306
46307 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
46308
46309         Sync from coreutils.
46310
46311         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
46312
46313         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
46314         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
46315
46316 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
46317
46318         * modules/restrict: Remove; no longer needed now that we assume
46319         Autoconf 2.59 or later.
46320         * MODULES.html.sh: Remove 'restrict'.
46321         * modules/argp (Depends-on): Remove 'restrict'.
46322         * modules/base64 (Depends-on): Likewise.
46323         * modules/gc (Depends-on): Likewise.
46324         * modules/getaddrinfo (Depends-on): Likewise.
46325         * modules/glob (Depends-on): Likewise.
46326         * modules/inet_ntop (Depends-on): Likewise.
46327         * modules/inet_pton (Depends-on): Likewise.
46328         * modules/memxor (Depends-on): Likewise.
46329         * modules/regex (Depends-on): Likewise.
46330         * modules/strtok_r (Depends-on): Likewise.
46331         * modules/time_r (Depends-on): Likewise.
46332
46333 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
46334
46335         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
46336         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
46337         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
46338         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
46339         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
46340         * m4/memxor.m4 (gl_MEMXOR): Likewise.
46341         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
46342         gl_C_RESTRICT replaced by AC_C_RESTRICT.
46343
46344         Merge from coreutils.
46345         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
46346         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
46347         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
46348         * m4/time_r.m4 (gl_TIME_R): Likewise.
46349
46350 2006-08-09  Karl Berry  <karl@gnu.org>
46351
46352         * config/srclist.txt: no more gettext-tools, per Bruno.
46353
46354 2006-08-08  Eric Blake  <ebb9@byu.net>
46355
46356         * modules/verror: New module.
46357         * MODULES.html.sh: Document it.
46358
46359 2006-08-08  Eric Blake  <ebb9@byu.net>
46360
46361         * lib/verror.h, lib/verror.c: New files.
46362
46363 2006-08-08  Eric Blake  <ebb9@byu.net>
46364
46365         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
46366         verror_at_line output complies with GNU Coding Standards even when
46367         file is NULL.
46368
46369 2006-08-07  Bruno Haible  <bruno@clisp.org>
46370
46371         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
46372         versions of AIX.
46373         Reported by Ralf Wildenhues.
46374
46375 2006-08-07  Bruno Haible  <bruno@clisp.org>
46376
46377         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
46378         in an AC_DEFUN. Needed so that the autoconf snippets can use
46379         AC_REQUIRE.
46380
46381 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46382
46383         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46384         Initialize pkgdata_DATA.
46385         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
46386         overriding it.
46387
46388 2006-08-06  Eric Blake  <ebb9@byu.net>
46389
46390         * lib/error.h: Fold in some upstream changes from glibc.
46391         * lib/error.c: Likewise.
46392
46393 2006-08-04  Bruno Haible  <bruno@clisp.org>
46394
46395         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46396         Make the mostlyclean-local rule depend on mostlyclean-generic.
46397         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
46398
46399 2006-07-31  Bruno Haible  <bruno@clisp.org>
46400
46401         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
46402         <stdlib.h>, <string.h>.
46403
46404 2006-07-30  Bruno Haible  <bruno@clisp.org>
46405
46406         * modules/readlink (License): Change to LGPL.
46407
46408 2006-07-30  Bruno Haible  <bruno@clisp.org>
46409
46410         * modules/javaversion (Makefile.am): Distribute javaversion.java and
46411         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
46412         set PKGDATADIR to point to it.
46413
46414 2006-07-30  Bruno Haible  <bruno@clisp.org>
46415
46416         * modules/csharpexec (configure.ac): Comment out macro invocation.
46417         * modules/javaexec (configure.ac): Likewise.
46418         * modules/javacomp-script (configure.ac): Likewise.
46419
46420         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
46421
46422 2006-07-30  Bruno Haible  <bruno@clisp.org>
46423
46424         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
46425         linked-list.
46426
46427 2006-07-30  Bruno Haible  <bruno@clisp.org>
46428
46429         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
46430
46431 2006-07-30  Bruno Haible  <bruno@clisp.org>
46432
46433         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46434         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
46435         get removed.
46436
46437 2006-07-29  Bruno Haible  <bruno@clisp.org>
46438
46439         Make it possible for gnulib-tool to work with locally modified or
46440         augmented gnulib repositories.
46441         * gnulib-tool (func_usage): Document --local-dir option.
46442         (local_gnulib_dir): New variable.
46443         Handle --local-dir option.
46444         (func_lookup_file): New function.
46445         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
46446         (func_get_description, func_get_filelist, func_get_description,
46447         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
46448         func_get_automake_snippet, func_get_include_directive,
46449         func_get_license, func_get_maintainer): Use func_lookup_file.
46450         (func_import, func_create_testdir): Use func_lookup_file.
46451
46452 2006-07-29  Bruno Haible  <bruno@clisp.org>
46453
46454         * modules/setenv (Depends-on): Add unistd.
46455
46456 2006-07-29  Bruno Haible  <bruno@clisp.org>
46457
46458         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
46459
46460 2006-07-29  Bruno Haible  <bruno@clisp.org>
46461
46462         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
46463
46464 2006-07-29  Bruno Haible  <bruno@clisp.org>
46465
46466         * gnulib-tool (import, update): If there is no Makefile.am, look at
46467         aclocal.m4, instead of bailing out.
46468
46469 2006-07-29  Bruno Haible  <bruno@clisp.org>
46470
46471         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
46472         Categorize the options by when they are useful.
46473
46474 2006-07-29  Bruno Haible  <bruno@clisp.org>
46475
46476         * gnulib-tool (func_usage): Document option --no-libtool.
46477         Handle option --no-libtool.
46478         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
46479         for changed semantics of $libtool variable.
46480         (func_import): Likewise. If libtool is not used, show this through
46481         an option --no-libtool.
46482         (func_create_testdir): Update.
46483
46484 2006-07-29  Bruno Haible  <bruno@clisp.org>
46485
46486         * gnulib-tool (func_import): Extend error message about missing
46487         --doc-base.
46488
46489 2006-07-29  Bruno Haible  <bruno@clisp.org>
46490
46491         * gnulib-tool (func_import): Don't create the $docbase directory if
46492         there is no file to store there.
46493
46494 2006-07-29  Bruno Haible  <bruno@clisp.org>
46495
46496         * gnulib-tool (autoconf_minversion): If a --dir option is given and
46497         relevant, look for configure.ac there, not in the current directory.
46498         Also use a simple search for AC_PREREQ, not "autoconf --trace".
46499
46500 2006-07-29  Bruno Haible  <bruno@clisp.org>
46501
46502         * gnulib-tool (SORT): New variable.
46503         (func_usage): Undocument --assume-autoconf option.
46504         Remove --assume-autoconf option handling.
46505         (autoconf_minversion): Determine from the contents of configure.ac.
46506         (func_import): Remove autoconf_minversion handling.
46507         Suggested by Eric Blake.
46508
46509 2006-07-29  Bruno Haible  <bruno@clisp.org>
46510
46511         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
46512
46513 2006-07-29  Bruno Haible  <bruno@clisp.org>
46514
46515         * config/srclist.txt (*setenv.[ch]): Remove rules.
46516
46517 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46518
46519         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
46520
46521 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46522
46523         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
46524         arpa/inet.h.
46525
46526 2006-07-28  Simon Josefsson  <jas@extundo.com>
46527
46528         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
46529         * modules/inet_pton (Depends-on): Likewise.
46530
46531 2006-07-28  Simon Josefsson  <jas@extundo.com>
46532
46533         * m4/netinet_in_h.m4: New file.
46534
46535 2006-07-28  Simon Josefsson  <jas@extundo.com>
46536
46537         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
46538         #include's.
46539
46540 2006-07-28  Simon Josefsson  <jas@extundo.com>
46541
46542         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
46543         #include's.
46544
46545 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
46546
46547         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
46548         setgid on directories only if they set these bits.
46549         * lib/modechange.h: Remove obsolete comment about masks.
46550
46551 2006-07-28  Eric Blake  <ebb9@byu.net>
46552
46553         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
46554         macro expansion.
46555
46556 2006-07-28  Bruno Haible  <bruno@clisp.org>
46557
46558         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
46559
46560 2006-07-28  Bruno Haible  <bruno@clisp.org>
46561
46562         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
46563
46564 2006-07-28  Bruno Haible  <bruno@clisp.org>
46565
46566         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
46567         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
46568         Define fallbacks.
46569         Avoids link error on FreeBSD 4.x.
46570         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46571
46572         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
46573         encoding.
46574         * lib/mbswidth.c (iswcntrl): Likewise.
46575
46576 2006-07-27  Bruno Haible  <bruno@clisp.org>
46577
46578         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
46579         test.
46580
46581 2006-07-27  Bruno Haible  <bruno@clisp.org>
46582
46583         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
46584         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
46585         defined.
46586
46587 2006-07-26  Eric Blake  <ebb9@byu.net>
46588
46589         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
46590
46591 2006-07-26  Eric Blake  <ebb9@byu.net>
46592
46593         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
46594         like mingw that lack mkstemp.
46595         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
46596         avoid compilation warning on mingw.
46597
46598 2006-07-26  Bruno Haible  <bruno@clisp.org>
46599
46600         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
46601         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
46602         INT_FAST*_MIN, INTPTR_MIN.
46603
46604 2006-07-25  Bruno Haible  <bruno@clisp.org>
46605
46606         * modules/version-etc (Depends-on): Add stdarg.
46607
46608 2006-07-25  Bruno Haible  <bruno@clisp.org>
46609
46610         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
46611         complex commands.
46612
46613 2006-07-25  Bruno Haible  <bruno@clisp.org>
46614
46615         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
46616         defined in <stdarg.h> or config.h.
46617
46618 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
46619
46620         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
46621         (gl_STDIO_SAFER): Remove.
46622
46623 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
46624
46625         * MODULES.html.sh (File stream based Input/Output):
46626         Add fopen-safer, tmpfile-safer; remove stdio-safer.
46627         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
46628         * modules/fopen-safer, modules/tmpfile-safer: New files.
46629         * modules/stdio-safer: Remove.
46630
46631 2006-07-24  Bruno Haible  <bruno@clisp.org>
46632
46633         * modules/tmpdir: New file.
46634         * MODULES.html.sh (File system functions): Add it.
46635
46636 2006-07-24  Bruno Haible  <bruno@clisp.org>
46637
46638         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
46639         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
46640
46641 2006-07-24  Bruno Haible  <bruno@clisp.org>
46642
46643         * modules/clean-temp: New file.
46644
46645 2006-07-24  Bruno Haible  <bruno@clisp.org>
46646
46647         * m4/tmpdir.m4: New file, from GNU gettext.
46648
46649 2006-07-24  Bruno Haible  <bruno@clisp.org>
46650
46651         * lib/tmpdir.h: New file, from GNU gettext.
46652         * lib/tmpdir.c: New file, from GNU gettext.
46653
46654 2006-07-24  Bruno Haible  <bruno@clisp.org>
46655
46656         * lib/clean-temp.h: New file, from GNU gettext.
46657         * lib/clean-temp.c: New file, from GNU gettext.
46658
46659 2006-07-23  Eric Blake  <ebb9@byu.net>
46660
46661         * modules/stdio-safer (Files): Add tmpfile-safer.c.
46662         (Depends-on): Add binary-io.
46663
46664 2006-07-23  Eric Blake  <ebb9@byu.net>
46665
46666         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
46667
46668 2006-07-23  Eric Blake  <ebb9@byu.net>
46669
46670         * lib/tmpfile-safer.c: New file.
46671         * lib/stdio-safer.h (fopen_safer): Add prototype.
46672         * lib/stdio--.h (tmpfile): Make safer.
46673
46674 2006-07-23  Bruno Haible  <bruno@clisp.org>
46675
46676         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
46677         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
46678         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
46679         gl_linked_remove_at): Use it.
46680
46681 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46682         and Simon Josefsson <jas@extundo.com>
46683
46684         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
46685
46686         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
46687
46688 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
46689
46690         * modules/close-stream: New file.
46691         * modules/closeout (Description): Make it clear that it exits
46692         with a diagnostic on error.
46693         (Depends-on): Add close-stream.  Remove fpending, stdbool.
46694         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
46695
46696 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
46697
46698         * m4/close-stream.m4: New file.
46699
46700 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
46701
46702         * lib/close-stream.c, lib/close-stream.h: New files.
46703
46704 2006-07-22  Bruno Haible  <bruno@clisp.org>
46705
46706         Merge from GNU gettext 0.15.
46707
46708         2006-05-01  Bruno Haible  <bruno@clisp.org>
46709
46710                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
46711
46712         2006-07-22  Bruno Haible  <bruno@clisp.org>
46713
46714                 * modules/javaversion: New file.
46715                 * MODULES.html.sh (Java): Add javaversion.
46716
46717         2006-03-12  Bruno Haible  <bruno@clisp.org>
46718
46719                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
46720
46721         2005-12-04  Bruno Haible  <bruno@clisp.org>
46722
46723                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
46724                 (untested).
46725
46726         2006-06-21  Bruno Haible  <bruno@clisp.org>
46727
46728                 Avoid warnings from recent versions of mcs.
46729                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
46730                 -o, -L, -r any more. Use options documented since mcs-1.0
46731                 instead. Similarly for -g.
46732
46733         2005-12-04  Bruno Haible  <bruno@clisp.org>
46734
46735                 * build-aux/csharpcomp.sh.in: Suffix for resources is
46736                 .resources, not .resource.
46737
46738         2005-07-09  Bruno Haible  <bruno@clisp.org>
46739
46740                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
46741                 add a .dll suffix.
46742                 Reported by Mark Junker <mjscod@gmx.de>.
46743
46744         2006-07-22  Bruno Haible  <bruno@clisp.org>
46745
46746                 * modules/gettext: Upgrade to gettext-0.15.
46747                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
46748                 m4/visibility.m4.
46749                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
46750
46751 2006-07-22  Bruno Haible  <bruno@clisp.org>
46752
46753         Merge from GNU gettext 0.15.
46754
46755         2006-03-25  Bruno Haible  <bruno@clisp.org>
46756
46757                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
46758
46759         2006-07-21  Bruno Haible  <bruno@clisp.org>
46760
46761                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
46762                 "1.1".
46763
46764         2006-05-09  Bruno Haible  <bruno@clisp.org>
46765
46766                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
46767                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
46768                 for the conftestver execution.
46769
46770         2006-05-01  Bruno Haible  <bruno@clisp.org>
46771
46772                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
46773                 optional target-version argument. Verify that the compiler
46774                 groks source of the specified source-version, or add -source
46775                 option as necessary. Verify that the compiler produces
46776                 bytecode in the specified target-version, or add -target and
46777                 -source options as necessary. Make the result of the test
46778                 available as variable CONF_JAVAC. Also log error output in
46779                 config.log.
46780
46781         2006-03-11  Bruno Haible  <bruno@clisp.org>
46782
46783                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
46784
46785         2006-05-09  Bruno Haible  <bruno@clisp.org>
46786
46787                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
46788                 CLASSPATH_SEPARATOR to a semicolon.
46789
46790         2006-03-12  Bruno Haible  <bruno@clisp.org>
46791
46792                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
46793                 available as variable CONF_JAVA, for subsequent autoconf
46794                 tests. Also log error output in config.log.
46795
46796         2006-07-19  Bruno Haible  <bruno@clisp.org>
46797
46798                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
46799                 that getline works on glibc2 systems. Needed to avoid trouble
46800                 in relocatable.c.
46801                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
46802
46803         2005-12-04  Bruno Haible  <bruno@clisp.org>
46804
46805                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
46806                 launcher (untested).
46807
46808         2005-12-04  Bruno Haible  <bruno@clisp.org>
46809
46810                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
46811
46812         2006-07-22  Bruno Haible  <bruno@clisp.org>
46813
46814                 * gettext.m4: Update from GNU gettext-0.15.
46815                 * nls.m4: Likewise.
46816                 * po.m4: Likewise.
46817                 * inttypes-pri.m4: Likewise.
46818                 * inttypes-h.m4: Renamed from inttypes.m4.
46819                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
46820
46821 2006-07-22  Bruno Haible  <bruno@clisp.org>
46822
46823         Merge from GNU gettext 0.15.
46824
46825         2005-07-05  Bruno Haible  <bruno@clisp.org>
46826
46827                 * printf-args.c (printf_fetchargs): Work around broken
46828                 definition of wint_t on mingw.
46829
46830         2005-02-12  Bruno Haible  <bruno@clisp.org>
46831
46832                 * xallocsa.h: Add extern "C" for C++.
46833
46834         2006-05-17  Bruno Haible  <bruno@clisp.org>
46835
46836                 Cygwin portability.
46837                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
46838
46839         2006-04-30  Bruno Haible  <bruno@clisp.org>
46840
46841                 * progreloc.c: Include <mach-o/dyld.h> if available.
46842                 (find_executable): Use _NSGetExecutablePath when possible.
46843
46844         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
46845
46846                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
46847                 function.
46848
46849         2005-12-29  Bruno Haible  <bruno@clisp.org>
46850
46851                 * progreloc.c (set_program_name_and_installdir): Fix
46852                 compilation error.
46853
46854         2005-12-04  Bruno Haible  <bruno@clisp.org>
46855
46856                 Cygwin portability.
46857                 * progreloc.c: Include <windows.h> also on Cygwin.
46858                 (find_executable): Add support for Cygwin.
46859                 (set_program_name_and_installdir): Handle also platforms with
46860                 nonempty EXEEXT.
46861
46862         2006-07-11  Bruno Haible  <bruno@clisp.org>
46863
46864                 * javacomp.c: Fix a comment.
46865                 Reported by Jim Meyering.
46866
46867         2006-04-30  Bruno Haible  <bruno@clisp.org>
46868
46869                 * javacomp.h (compile_java_class): Add source_version,
46870                 target_version arguments.
46871                 * javacomp.c: Rewritten to choose only a compiler that
46872                 respects the specified source_version and target_version.
46873
46874         2006-06-27  Bruno Haible  <bruno@clisp.org>
46875
46876                 Assume correct S_ISDIR macro.
46877                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
46878
46879         2006-07-22  Bruno Haible  <bruno@clisp.org>
46880
46881                 * javaversion.h: New file, from GNU gettext.
46882                 * javaversion.c: New file, from GNU gettext.
46883                 * javaversion.java: New file, from GNU gettext.
46884                 * javaversion.class: New file, from GNU gettext.
46885
46886         2006-05-17  Bruno Haible  <bruno@clisp.org>
46887
46888                 Cygwin portability.
46889                 * javaexec.c (execute_java_class): Test for jview program
46890                 also on Cygwin.
46891
46892         2006-04-09  Bruno Haible  <bruno@clisp.org>
46893
46894                 * fatal-signal.c: Don't include string.h.
46895                 (at_fatal_signal): Use a copying loop instead of memcpy.
46896
46897         2005-12-04  Bruno Haible  <bruno@clisp.org>
46898
46899                 * csharpexec.c: Add support for 'clix' launcher (untested).
46900                 (execute_csharp_using_sscli): New function.
46901                 (execute_csharp_program): Call it.
46902
46903         2006-06-21  Bruno Haible  <bruno@clisp.org>
46904
46905                 Avoid warnings from recent versions of mcs.
46906                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
46907                 -o, -L, -r any more. Use options documented since mcs-1.0
46908                 instead. Similarly for -g.
46909
46910         2005-07-09  Bruno Haible  <bruno@clisp.org>
46911
46912                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
46913                 add a .dll suffix.
46914                 Reported by Mark Junker <mjscod@gmx.de>.
46915
46916         2006-06-17  Bruno Haible  <bruno@clisp.org>
46917
46918                 * config.charset: Update for NetBSD 3.0.
46919
46920         2006-05-17  Bruno Haible  <bruno@clisp.org>
46921
46922                 Cygwin portability.
46923                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
46924
46925         2006-05-16  Bruno Haible  <bruno@clisp.org>
46926
46927                 * localcharset.c [CYGWIN]: Include <windows.h>.
46928                 (get_charset_aliases): For Cygwin, return the same CPxxx
46929                 aliases list as under WIN32.
46930                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
46931                 the environment variables. Fall back to GetACP().
46932
46933         2006-04-05  Bruno Haible  <bruno@clisp.org>
46934
46935                 * config.charset: Update Juan Manuel Guerrero's address.
46936
46937         2005-02-12  Bruno Haible  <bruno@clisp.org>
46938
46939                 * allocsa.h: Add extern "C" for C++.
46940
46941         2005-02-10  Bruno Haible  <bruno@clisp.org>
46942
46943                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
46944                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
46945
46946         2006-07-22  Bruno Haible  <bruno@clisp.org>
46947
46948                 * gettext.h: Update to GNU gettext-0.15.
46949
46950 2006-07-22  Bruno Haible  <bruno@clisp.org>
46951
46952         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
46953         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
46954         lib-prefix.m4, longdouble.m4, ssize_t.m4.
46955
46956 2006-07-21  Eric Blake  <ebb9@byu.net>
46957
46958         * modules/stdlib-safer: New file.
46959         * MODULES.html.sh (File stream based Input/Output): Add
46960         stdlib-safer.
46961
46962 2006-07-21  Eric Blake  <ebb9@byu.net>
46963
46964         * lib/stdlib-safer.h: New file from coreutils, required by
46965         stdlib--.h.
46966
46967 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
46968
46969         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
46970
46971 2006-07-20  Bruno Haible  <bruno@clisp.org>
46972
46973         * gnulib-tool: Recognize new option --assume-autoconf.
46974         (autoconf_minversion): New variable.
46975         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
46976
46977 2006-07-20  Bruno Haible  <bruno@clisp.org>
46978
46979         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
46980
46981 2006-07-19  Derek R. Price  <derek@ximbiot.com>
46982
46983         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
46984         Reindent and repaginate.
46985
46986 2006-07-19  Derek Price  <derek@ximbiot.com>
46987
46988         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
46989         Correct grammar.
46990
46991 2006-07-17  Bruno Haible  <bruno@clisp.org>
46992
46993         * modules/list: New file.
46994         * modules/array-list: New file.
46995         * modules/carray-list, modules/carray-list-tests: New files.
46996         * modules/linked-list, modules/linked-list-tests: New files.
46997         * modules/avltree-list, modules/avltree-list-tests: New files.
46998         * modules/rbtree-list, modules/rbtree-list-tests: New files.
46999         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
47000         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
47001         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
47002         * modules/oset: New file.
47003         * modules/array-oset: New file.
47004         * modules/avltree-oset, modules/avltree-oset-tests: New files.
47005         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
47006         * tests/test-carray_list.c: New file.
47007         * tests/test-linked_list.c: New file.
47008         * tests/test-avltree_list.c: New file.
47009         * tests/test-rbtree_list.c: New file.
47010         * tests/test-linkedhash_list.c: New file.
47011         * tests/test-avltreehash_list.c: New file.
47012         * tests/test-rbtreehash_list.c: New file.
47013         * tests/test-avltree_oset.c: New file.
47014         * tests/test-rbtree_oset.c: New file.
47015         * MODULES.html.sh (Container data structures): New section.
47016
47017 2006-07-17  Bruno Haible  <bruno@clisp.org>
47018
47019         * m4/gl_list.m4: New file.
47020
47021 2006-07-17  Bruno Haible  <bruno@clisp.org>
47022
47023         * lib/gl_list.h: New file.
47024         * lib/gl_list.c: New file.
47025         * lib/gl_array_list.h: New file.
47026         * lib/gl_array_list.c: New file.
47027         * lib/gl_carray_list.h: New file.
47028         * lib/gl_carray_list.c: New file.
47029         * lib/gl_linked_list.h: New file.
47030         * lib/gl_linked_list.c: New file.
47031         * lib/gl_anylinked_list1.h: New file.
47032         * lib/gl_anylinked_list2.h: New file.
47033         * lib/gl_avltree_list.h: New file.
47034         * lib/gl_avltree_list.c: New file.
47035         * lib/gl_anyavltree_list1.h: New file.
47036         * lib/gl_anyavltree_list2.h: New file.
47037         * lib/gl_rbtree_list.h: New file.
47038         * lib/gl_rbtree_list.c: New file.
47039         * lib/gl_anyrbtree_list1.h: New file.
47040         * lib/gl_anyrbtree_list2.h: New file.
47041         * lib/gl_anytree_list1.h: New file.
47042         * lib/gl_anytree_list2.h: New file.
47043         * lib/gl_linkedhash_list.h: New file.
47044         * lib/gl_linkedhash_list.c: New file.
47045         * lib/gl_anyhash_list1.h: New file.
47046         * lib/gl_anyhash_list2.h: New file.
47047         * lib/gl_avltreehash_list.h: New file.
47048         * lib/gl_avltreehash_list.c: New file.
47049         * lib/gl_rbtreehash_list.h: New file.
47050         * lib/gl_rbtreehash_list.c: New file.
47051         * lib/gl_anytreehash_list1.h: New file.
47052         * lib/gl_anytreehash_list2.h: New file.
47053
47054         * lib/gl_oset.h: New file.
47055         * lib/gl_oset.c: New file.
47056         * lib/gl_array_oset.h: New file.
47057         * lib/gl_array_oset.c: New file.
47058         * lib/gl_avltree_oset.h: New file.
47059         * lib/gl_avltree_oset.c: New file.
47060         * lib/gl_rbtree_oset.h: New file.
47061         * lib/gl_rbtree_oset.c: New file.
47062         * lib/gl_anytree_oset.h: New file.
47063
47064 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
47065
47066         * m4/mkancesdirs.m4: New file.
47067         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
47068         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
47069         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
47070         it.
47071
47072 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
47073
47074         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
47075         * lib/mkancesdirs.h: New files.
47076         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
47077         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
47078         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
47079         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
47080         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
47081         callers changed.  Revamp internals significantly, by not
47082         attempting to create directories that are temporarily more
47083         permissive than the final results.  Do not attempt to use
47084         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
47085         This removes some race conditions, fixes some bugs, and simplifies
47086         things.  Use new dirchownmod function to do owner and mode changes.
47087         * lib/mkdir-p.h: Likewise.
47088         * lib/modechange.c (octal_to_mode): New function.
47089         (struct mode_change): New member mentioned.
47090         (make_node_op_equals): New arg mentioned.  All callers changed.
47091         (mode_compile): Keep track of which mode bits the user has explicitly
47092         mentioned.
47093         (mode_adjust): New arg DIR, so that we implement the X op correctly.
47094         New arg PMODE_BITS, to keep track of which mode bits the user
47095         mentioned; it treats S_ISUID and S_ISGID speciall.
47096         All callers changed.
47097         * lib/modechange.h: Likewise.
47098
47099 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
47100
47101         * MODULES.html.sh: Add mkancestors.
47102         * modules/mkancesdirs: New module.
47103         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
47104         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
47105         The chdir-safer and afs files are now orphans; I'll remove them
47106         unless someone speaks up.
47107         Add lib/dirchownmod.c, lib/dirchownmod.h.
47108         (Depends-on): Remove alloca, chown, save-cwd, dirname.
47109         Add lchown, mkancesdirs.
47110         (Maintainer): Add self.
47111
47112 2006-07-15  Karl Berry  <karl@gnu.org>
47113
47114         * gnulib-tool: help message wording/arrangement.
47115
47116 2006-07-14  Simon Josefsson  <jas@extundo.com>
47117
47118         * doc/gnulib.texi (Libtool and Windows): New section.
47119
47120 2006-07-12  Simon Josefsson  <jas@extundo.com>
47121
47122         * modules/gendocs (License): Fix license, approved by Karl.
47123
47124 2006-07-12  Eric Blake  <ebb9@byu.net>
47125
47126         * MODULES.html.sh: Add gendocs.
47127
47128 2006-07-11  Eric Blake  <ebb9@byu.net>
47129
47130         * modules/fdl: New module, to install doc/fdl.texi.
47131         * MODULES.html.sh: Add new section for documentation modules.
47132         * gnulib-tool: Avoid space-tab.
47133         (--doc-base): New option, to manage files from doc.
47134
47135 2006-07-11  Eric Blake  <ebb9@byu.net>
47136
47137         * m4/absolute-header.m4: Fix comments to match recent change.
47138
47139 2006-07-11  Eric Blake  <ebb9@byu.net>
47140
47141         * gnulib-tool: List --doc-base before --tests-base.
47142
47143 2006-07-11  Derek R. Price  <derek@ximbiot.com>
47144
47145         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
47146
47147 2006-07-11  Bruno Haible  <bruno@clisp.org>
47148
47149         * README: Mention where to put documentation.
47150
47151 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47152
47153         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
47154
47155 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
47156
47157         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
47158         to stdint.m4.
47159
47160 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
47161
47162         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
47163         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
47164         "no/such/file/stdint.h" when there is no such file, so that
47165         the resulting C code can be parsed by dodgy compilers.
47166         Problems reported by Bob Proulx.
47167
47168 2006-07-10  Derek R. Price  <derek@ximbiot.com>
47169
47170         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
47171         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
47172         macros into the GNU _D_EXACT_NAMLEN.
47173         * lib/savedir.c:  Likewise.
47174         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
47175
47176 2006-07-10  Derek R. Price  <derek@ximbiot.com>
47177         and Paul Eggert  <eggert@cs.ucla.edu>
47178
47179         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
47180         * m4/savedir.m4:
47181         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
47182         macros into the GNU _D_EXACT_NAMLEN.
47183
47184 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
47185
47186         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
47187         around the absolute name, to work around a problem with the HP-UX
47188         11.23 native C compiler, reported by Bob Proulx.
47189
47190 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
47191
47192         * doc/maintain.texi, make-stds.texi: Sync from
47193         <http://savannah.gnu.org/projects/gnustandards>.
47194
47195 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
47196
47197         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
47198
47199 2006-07-09  Jim Meyering  <jim@meyering.net>
47200
47201         * m4/glob.m4: Remove a doubled word in a comment.
47202
47203 2006-07-09  Jim Meyering  <jim@meyering.net>
47204
47205         * lib/argp-pv.c: Remove a doubled word in a comment.
47206         * lib/check-version.c (check_version): Likewise.
47207         * lib/javacomp.c (compile_java_class): Likewise.
47208
47209 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
47210
47211         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
47212         for the benefit of people using Autoconf 2.60.  If you want to
47213         support older Autoconf versions you can copy m4/onceonly_2_57.m4
47214         (or m4/onceonly.m4, if pre-2.57) manually.
47215
47216 2006-07-08  Jim Meyering  <jim@meyering.net>
47217
47218         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
47219         comment.
47220         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
47221         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
47222         comment.
47223
47224 2006-07-08  Jim Meyering  <jim@meyering.net>
47225
47226         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
47227
47228 2006-07-07  Simon Josefsson  <jas@extundo.com>
47229
47230         * tests/test-crc.c: Change expected crc value, the test vector
47231         were probably computed using the old broken crc.c?
47232
47233 2006-07-06  Simon Josefsson  <jas@extundo.com>
47234
47235         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
47236         now the canonical place for the M4 file).
47237
47238         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
47239         from the sys_socket dependency now.
47240
47241         * modules/inet_pton (Files): Ditto.
47242
47243         * modules/inet_ntop (Files): Ditto.
47244
47245 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
47246
47247         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
47248         not gl_PREREQ_GETUSERSHELL.
47249
47250 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47251
47252         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
47253         with only one argument, for Autoconf 2.60.
47254         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
47255         expand to nothing, so add a shell command to avoid syntax error.
47256         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
47257
47258 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47259
47260         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
47261
47262 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
47263
47264         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
47265         no longer needed.  Check for isblank decl.
47266         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
47267         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
47268         of existence.
47269
47270 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
47271
47272         * lib/getloadavg.c: Use __VMS, not VMS.
47273         * lib/getopt.c: Likewise.
47274         * lib/getpagesize.h: Likewise.
47275         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
47276         and probably does not work.
47277
47278 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
47279
47280         * lib/.cppi-disable: Add wcwidth.
47281         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
47282         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
47283         (ISGRAPH): Remove.  All uses changed to isgraph.
47284         (FOLD) [!defined _LIBC]: Remove special case.
47285         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
47286         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
47287         HAVE_ISBLANK.
47288         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
47289         case.
47290
47291 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
47292
47293         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
47294         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
47295         brackets.  Other minor changes to suppress some compiler
47296         warnings.
47297
47298 2006-07-06  Derek R. Price  <derek@ximbiot.com>
47299         and Paul Eggert  <eggert@cs.ucla.edu>
47300
47301         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
47302         of invoking obsolescent AC_HEADER_DIRENT macro.
47303         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
47304         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
47305         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
47306         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
47307         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
47308         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
47309         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
47310         * m4/readdir.m4: Remove; no longer needed.
47311
47312 2006-07-06  Derek R. Price  <derek@ximbiot.com>
47313         and Paul Eggert  <eggert@cs.ucla.edu>
47314
47315         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
47316         Don't worry about this obsolete case any more.
47317         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
47318         directories.
47319         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
47320         worry about this obsolete case any more.
47321         * lib/fts.c: Likewise.
47322         * lib/getcwd.c: Likewise.
47323         * lib/glob.h: Likewise.
47324         * lib/savedir.c: Likewise.
47325
47326 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
47327
47328         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
47329         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
47330         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
47331         needed.
47332         All uses removed.
47333         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
47334         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
47335         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
47336         needed.
47337         * m4/getdate.m4 (gl_GETDATE): Likewise.
47338         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
47339         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
47340         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
47341         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
47342         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
47343         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
47344         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
47345         needed.
47346
47347 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
47348
47349         * lib/memcasecmp.c: Include <limits.h>.
47350         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
47351         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
47352         Don't assume isdigit succeeds only on '0' through '9'.
47353
47354 2006-07-05  Eric Blake  <ebb9@byu.net>
47355
47356         * modules/getaddrinfo (Depends-on): Add snprintf.
47357
47358 2006-07-05  Eric Blake  <ebb9@byu.net>
47359
47360         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
47361         to avoid 'header present but could not be compiled' on cygwin.
47362
47363 2006-07-05  Eric Blake  <ebb9@byu.net>
47364
47365         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
47366         missing from netdb.h.
47367         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
47368
47369 2006-07-05  Derek R. Price  <derek@ximbiot.com>
47370
47371         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
47372         no longer needed.
47373         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
47374         * m4/getdate.m4 (gl_GETDATE): Likewise.
47375         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
47376         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
47377         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
47378         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
47379         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
47380
47381 2006-07-05  Derek R. Price  <derek@ximbiot.com>
47382
47383         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
47384         All uses of is_space replaced by isspace.
47385         * lib/exit.h: Don't talk about STDC_HEADERS.
47386         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
47387         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
47388         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
47389         replaced by isprint etc.
47390         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
47391         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
47392         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
47393         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
47394         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
47395         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
47396
47397 2006-07-05  Bruno Haible  <bruno@clisp.org>
47398
47399         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
47400         the function exists, before testing against AIX.
47401         Reported by Martin Lambers <marlam@marlam.de>.
47402
47403 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
47404
47405         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
47406         From Mark D. Baushke.
47407
47408 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
47409
47410         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
47411         to the absolute name, not just one, to bypass Sun C 5.8's
47412         "warning: #include of /usr/include/... may be non-portable".
47413
47414 2006-07-04  Eric Blake  <ebb9@byu.net>
47415
47416         * modules/dirname-tests: New test module.
47417         * tests/test-dirname.c: New file, replacing dirname.c
47418         TEST_DIRNAME section that was recently deleted.
47419
47420 2006-07-04  Bruno Haible  <bruno@clisp.org>
47421
47422         Assume ANSI C header files and <ctype.h> functions.
47423         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
47424         (mbsnwidth): Use isprint, iscntrl instead.
47425
47426 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
47427
47428         Merge from coreutils.
47429         * MODULES.html.sh: Add xstrtold.
47430         * modules/xstrtold: New file.
47431         * modules/cycle-check (Files): Add lib/same-inode.h.
47432         * modules/dirname (Files): Add m4/double-slash-root.m4.
47433         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
47434         * modules/mkdir-p (Files): Add lib/same-inode.h.
47435         * modules/same (Files): Add lib/same-inode.h.
47436
47437 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
47438
47439         * m4/absolute-header.m4: Renamed from full-header-path.m4.
47440         This is to keep the terminology clean; POSIX talks about
47441         "absolute pathnames", not "full pathnames", but the GNU
47442         Coding Standards say to use "path" for something else;
47443         so use "absolute" to keep both sides happy.
47444         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
47445         Set gl_absolute_header, not gl_full_header_path.
47446         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
47447         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
47448         All uses changed.
47449
47450         Merge from coreutils.
47451
47452         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
47453
47454         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
47455         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
47456         want to require the building of c-strtod.o.
47457         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
47458         needs -lm directly.
47459         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
47460
47461         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
47462
47463         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
47464         --as-needed option if available.  Problem reported by Albert Chin in
47465         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
47466         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
47467         cc merely issues a bunch of annoying warnings for --as-needed
47468         (this problem was reported by Bob Proulx).  Also, try linking with
47469         -lm to detect a bug in binutils 2.16 (this problem was reported
47470         by Ralf Wildenhues).
47471
47472         2006-06-18  Jim Meyering  <jim@meyering.net>
47473
47474         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
47475         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
47476         macro.
47477         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
47478         also check for glibc-2.4's abort-inducing bug.
47479
47480         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
47481         Low-probability clean-up should be to use rmdir to get rid of
47482         the just-created directory, not unlink.
47483
47484         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
47485         configure fail, and request a bug report to inform us about it.
47486         Add a comment that, barring reports to the contrary, in 2007 we'll
47487         assume ftruncate is universally available.
47488
47489         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
47490
47491         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
47492
47493         2006-03-12  Jim Meyering  <jim@meyering.net>
47494
47495         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
47496         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
47497         * m4/same.m4 (gl_SAME): Likewise.
47498         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
47499
47500         2006-03-11  Eric Blake  <ebb9@byu.net>
47501
47502         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
47503         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
47504         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
47505         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
47506
47507 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
47508
47509         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
47510         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
47511         reported by Mark D. Baushke, one in
47512         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
47513
47514         Merge from coreutils.
47515
47516         * lib/.cppi-disable: Add stdint_.h.
47517         * lib/.cvsignore: Add stdint.h.
47518
47519         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
47520
47521         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
47522         both double and long double versions.
47523         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
47524         * lib/xstrtold.c: New file.
47525         * lib/xstrtod.h (xstrtold): New decl.
47526
47527         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
47528
47529         * lib/filemode.c (setst): Remove.
47530         (strmode): Rewrite to avoid setst.  This makes the code shorter,
47531         (arguably) clearer, and the generated code is a bit smaller on my
47532         Debian GNU/Linux stable x86 host.
47533
47534         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
47535
47536         * lib/filemode.c: Include "filemode.h" first, to test the interface.
47537         Assume that filemode.h includes sys/types.h and sys/stat.h.
47538         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
47539         (ftypelet): Reorder to put common cases first, for efficiency.
47540         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
47541         to do 'M'.
47542         (strmode): Renamed from mode_string, and now stores 12 bytes instead
47543         of 10, for compatibility with FreeBSD.  All callers changed.
47544         (filemodestring): Now stores 12 bytes instead of 10, and sets file
47545         types that can't be deduced solely from st_mode.  First arg is now a
47546         const pointer.
47547         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
47548         (strmode): Renamed from mode_string.
47549         (filemodestring): New decl.
47550         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
47551         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
47552         needed.
47553         (S_ISPORT, S_ISWHT): New macros, if not already defined.
47554
47555         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
47556
47557         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
47558         fsusage.h now does that.  Include fsusage.h first, to test interface.
47559         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
47560         at most one method (the old code could have generated decls that
47561         didn't conform to C89, not that this was ever exercised).
47562         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
47563
47564         2006-03-19  Jim Meyering  <jim@meyering.net>
47565
47566         Work even in a chroot where d_ino values for entries in "/"
47567         don't match the stat.st_ino values for the same names.
47568         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
47569         number, iterate through all entries again, using lstat instead.
47570         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
47571         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
47572
47573         * lib/getcwd.c (__getcwd): Clarify a comment.
47574         Use memcpy in place of a call to strcpy.
47575
47576         2006-03-12  Jim Meyering  <jim@meyering.net>
47577
47578         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
47579         matches that of the current directory (which we're about to chdir ".."
47580         out of), then save the dev-ino of the parent, instead.
47581
47582         * lib/same-inode.h (SAME_INODE): New file/macro.
47583         * lib/chdir-safer.c (SAME_INODE): Remove definition.
47584         Include "same-inode.h", instead.
47585         * lib/same.c: Likewise.
47586         * lib/cycle-check.h: Include "same-inode.h".
47587         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
47588         * lib/cycle-check.c (SAME_INODE): Remove definition.
47589         * lib/root-dev-ino.h: Include "same-inode.h".
47590
47591         2006-03-11  Eric Blake  <ebb9@byu.net>
47592
47593         * lib/same.c (same_name): s/base_name/last_component/
47594         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
47595         * lib/filenamecat.c (file_name_concat): Likewise.
47596
47597         2006-03-11  Eric Blake  <ebb9@byu.net>,
47598                     Paul Eggert  <eggert@cs.ucla.edu>
47599
47600         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
47601         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
47602         drive prefix.
47603         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
47604         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
47605         (last_component): New method.
47606         * lib/dirname.c (dir_len): Determine when drive letters need a
47607         subsequent slash.  Preserve // when it is special.
47608         (dir_name): Don't append dot when drive letter is absolute.
47609         [TEST_DIRNAME]: Move into a full-blown gnulib test.
47610         * lib/basename.c (base_name): New semantics - malloc the result.
47611         Preserve // when it is special.  Preserve relative files that look
47612         like drive letters.
47613         (base_len): Preserve // when it is special.
47614         (last_component): New method, similar to old base_name semantics.
47615         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
47616         base_name.  Strip redundant slashes from ///.
47617
47618 2006-07-03  Jim Meyering  <jim@meyering.net>
47619
47620         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
47621         macro is used before the first cycle_check call.
47622
47623 2006-07-03  Eric Blake  <ebb9@byu.net>
47624
47625         * modules/dirname (Depends-on): Add xstrndup.
47626
47627 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
47628
47629         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
47630         test cases, so that config.log is a bit easier to follow.
47631
47632 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
47633
47634         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
47635         both are 64 bits, since this seems to be the tradition, and this
47636         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
47637         we ever run into a host that prefers long long to long in this
47638         case, we'll need another configure-time test.  Problem reported by
47639         Jim Meyering.
47640
47641 2006-07-02  Eric Blake  <ebb9@byu.net>
47642
47643         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
47644
47645 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
47646
47647         * modules/inttypes (Depends-on): No longer depends on stdint.
47648         * modules/stdint (Description): Say more about assumptions.
47649         Say that the fast types might differ.  Say macros are used.
47650         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
47651         (Makefile.am): Revise list of substituted symbols to match
47652         new stdint.m4.
47653         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
47654         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
47655         * tests/test-stdint.c (verify_same_types)
47656         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
47657         the code conforms to C99/C89.
47658         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
47659         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
47660
47661 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
47662
47663         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
47664         but fix a bug, by requiring at least 64 bits.
47665         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
47666         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
47667         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
47668         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
47669
47670         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
47671         changes.  Make 2.59 a prerequisite.  Check and substitute for
47672         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
47673         inttypes.h.  Do not use special include files; just use the
47674         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
47675         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
47676         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
47677         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
47678         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
47679         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
47680         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
47681         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
47682         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
47683         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
47684         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
47685         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
47686         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
47687         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
47688         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
47689         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
47690         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
47691         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
47692         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
47693         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
47694         WINT_MAX.  Check for C99 conformance more strictly, by detecting
47695         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
47696         not check for things that C99 does not require, e.g., int8_t.  If
47697         a test isn't needed unless <stdint.h> isn't working, and is
47698         unlikely to be needed for any other reason, then don't do it
47699         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
47700         size_t, since we assume C89 freestanding at least.  Do not check
47701         for sig_atomic_t, wchar_t, or wint_t, since the code now does
47702         the right thing even if the types are not defined.  Instead use:
47703         (gl_STDINT_TYPE_PROPERTIES): New macro.
47704         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
47705         testing whether <sys/types.h> clashes, as Autoconf does this for
47706         us now.  All uses removed.
47707         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
47708         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
47709         (gl_CHECK_TYPE_SAME):
47710         Remove; no longer needed.
47711         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
47712         exists, since we'll return 0 anyway in that case.
47713         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
47714
47715 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
47716
47717         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
47718         possible collision with system files.
47719         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
47720         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
47721         WCHAR_MIN and WCHAR_MAX in this case.
47722         (<stddef.h>): Do not include; no longer needed.
47723         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
47724         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
47725         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
47726         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
47727         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
47728         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
47729         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
47730         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
47731         !defined(__c99))]: Include in this case too, since it's harmless
47732         now.
47733         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
47734         dangerous to do so.
47735         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
47736         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
47737         (_STDINT_MIN, _STDINT_MAX): New macros.
47738         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
47739         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
47740         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
47741         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
47742         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
47743         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
47744         macros, not typedefs; this simplifies things quite a bit.
47745         Use long int for all types narrower than int64_t.
47746         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
47747         Define in terms of long long int or int64_t or long int,
47748         not int64_t or int32_t.  This saves some compile-time testing.
47749         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
47750         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
47751         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
47752         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
47753         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
47754         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
47755         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
47756         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
47757         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
47758         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
47759         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
47760         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
47761         undef any previous version and define our own version, for
47762         simplicity and consistency with the new macros for types.
47763         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
47764         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
47765         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
47766         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
47767         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
47768         @WINT_T_SUFFIX@ to keep things simple here.
47769         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
47770         Simplify by assuming typical 8/16/32/64 host, since we're
47771         already doing that elsewhere anyway.
47772         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
47773         and assume long long int is 64 bits if available.  This
47774         speeds up 'configure'.
47775
47776 2006-07-01  Eric Blake  <ebb9@byu.net>
47777
47778         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
47779         Reported by Andreas Buening.
47780
47781 2006-07-01  Eric Blake  <ebb9@byu.net>
47782
47783         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
47784
47785 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
47786
47787         * lib/getaddrinfo.c: fixed typo
47788
47789 2006-06-29  Jim Meyering  <jim@meyering.net>
47790
47791         * modules/strftime (Maintainer): Add my name, since with the
47792         FPRINTFTIME changes strftime.c has forked from glibc.
47793
47794 2006-06-29  Eric Blake  <ebb9@byu.net>
47795
47796         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
47797
47798 2006-06-29  Eric Blake  <ebb9@byu.net>
47799
47800         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
47801
47802 2006-06-29  Eric Blake  <ebb9@byu.net>
47803
47804         * lib/stat_.h: New file.
47805
47806 2006-06-29  Eric Blake  <ebb9@byu.net>
47807
47808         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
47809         unused static function.
47810
47811 2006-06-29  Eric Blake  <ebb9@byu.net>
47812
47813         * doc/functions.texi (Function Portability): Document missing lstat
47814         on mingw.
47815
47816 2006-06-29  Eric Blake  <ebb9@byu.net>
47817
47818         * MODULES.html.sh: Add sys_stat.
47819         * modules/sys_stat: New module.
47820         * modules/mkstemp (Depends-on): Add sys_stat.
47821
47822 2006-06-29  Derek R. Price  <derek@ximbiot.com>
47823
47824         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
47825
47826 2006-06-29  Derek R. Price  <derek@ximbiot.com>
47827
47828         * m4/c-bs-a.m4: Removed.
47829
47830 2006-06-29  Derek R. Price  <derek@ximbiot.com>
47831
47832         * lib/strftime.c: Assume strftime() exists.
47833
47834 2006-06-29  Derek Price  <derek@ximbiot.com>
47835
47836         * modules/c-bs-a: Removed - \a is C89.
47837         * MODULES.html.sh: Remove c-bs-a.
47838
47839 2006-06-29  Bruno Haible  <bruno@clisp.org>
47840
47841         * modules/wcwidth (License): Change to LGPL.
47842
47843 2006-06-28  Simon Josefsson  <jas@extundo.com>
47844
47845         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
47846         on _WIN32.
47847
47848         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
47849         getnameinfo.
47850
47851 2006-06-28  Simon Josefsson  <jas@extundo.com>
47852
47853         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
47854
47855 2006-06-28  Simon Josefsson  <jas@extundo.com>
47856
47857         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
47858         functions there.  It will succeed on Windows XP, but on Windows
47859         2000 and (presumably) earlier, it will fail, and use the internal
47860         re-implementation.
47861         (use_win32_p): New function.
47862         (getaddrinfo): Use strtoul on servname, to support numeric ports.
47863         Support AI_NUMERICSERV to disable getservbyname.
47864         (getnameinfo): New function, only supports
47865         NI_NUMERICHOST|NI_NUMERICSERV for now.
47866
47867         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
47868         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
47869         getnameinfo.
47870
47871 2006-06-28  Eric Blake  <ebb9@byu.net>
47872
47873         * modules/wcwidth: New file.
47874         * modules/mbchar (Depends-on): Add wcwidth.
47875         * modules/mbswidth (Depends-on): Add wcwidth.
47876         * MODULES.html.sh: Add wcwidth.
47877
47878 2006-06-28  Eric Blake  <ebb9@byu.net>
47879
47880         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
47881         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
47882
47883 2006-06-28  Eric Blake  <ebb9@byu.net>
47884
47885         * lib/xvasprintf.h: Fix comments.
47886
47887 2006-06-28  Eric Blake  <ebb9@byu.net>
47888
47889         * lib/mbchar.h (wcwidth): Include wcwidth.h.
47890         * lib/mbswidth.c (wcwidth): Move from here...
47891         * lib/wcwidth.h: ...to this new file.
47892
47893 2006-06-28  Derek R. Price  <derek@ximbiot.com>
47894
47895         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
47896
47897         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
47898         it's obsolete.
47899         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
47900
47901 2006-06-28  Derek R. Price  <derek@ximbiot.com>
47902
47903         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
47904         Autoconf 2.60 says this stuff was obsolete.
47905
47906 2006-06-28  Bruno Haible  <bruno@clisp.org>
47907
47908         * modules/wcwidth (Files): Add m4/wchar_t.m4.
47909
47910 2006-06-28  Bruno Haible  <bruno@clisp.org>
47911
47912         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
47913         gt_TYPE_WCHAR_T.
47914
47915 2006-06-28  Bruno Haible  <bruno@clisp.org>
47916
47917         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
47918         declaration for wcwidth.
47919         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
47920
47921 2006-06-28  Bruno Haible  <bruno@clisp.org>
47922
47923         * lib/mkdtemp.c [MINGW]: Include <io.h>.
47924         (mkdir): Define using _mkdir.
47925
47926 2006-06-28  Bruno Haible  <bruno@clisp.org>
47927
47928         * lib/getaddrinfo.h: Fix POSIX URL.
47929         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
47930         _WIN32.
47931         (use_win32_p): Make static.
47932         (getaddrinfo): Reject service name if it is empty or does not consist
47933         solely of decimal digits, or if its value is > 65535.
47934         (getnameinfo): Remove useless casts.
47935
47936 2006-06-27  Simon Josefsson  <jas@extundo.com>
47937
47938         * modules/sys_select: New file, suggested by Bruno Haible, Paul
47939         Eggert and Martin Lambers.
47940
47941 2006-06-27  Simon Josefsson  <jas@extundo.com>
47942
47943         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
47944         Eggert and Martin Lambers.
47945
47946 2006-06-27  Bruno Haible  <bruno@clisp.org>
47947
47948         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
47949         result to 0, not to empty.
47950         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
47951
47952 2006-06-27  Bruno Haible  <bruno@clisp.org>
47953
47954         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
47955
47956 2006-06-26  Simon Josefsson  <jas@extundo.com>
47957
47958         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
47959         present.
47960
47961 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
47962
47963         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
47964         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
47965         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
47966
47967 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
47968
47969         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
47970
47971 2006-06-26  Bruno Haible  <bruno@clisp.org>
47972
47973         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
47974
47975 2006-06-26  Bruno Haible  <bruno@clisp.org>
47976
47977         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
47978
47979 2006-06-26  Bruno Haible  <bruno@clisp.org>
47980
47981         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
47982         SGI C compiler in pre-C99 mode.
47983         Suggested by Mark D. Baushke and Larry Jones.
47984
47985 2006-06-26  Bruno Haible  <bruno@clisp.org>
47986
47987         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
47988         WCHAR_MAX.
47989         Reported by Mark D. Baushke and Larry Jones.
47990
47991 2006-06-26  Bruno Haible  <bruno@clisp.org>
47992
47993         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
47994         in pre-C99 mode.
47995         Suggested by Mark D. Baushke and Larry Jones.
47996
47997 2006-06-23  Simon Josefsson  <jas@extundo.com>
47998             Bruno Haible  <bruno@clisp.org>
47999
48000         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
48001         Emit mostlyclean-local rule.
48002         (func_emit_tests_Makefile_am): Likewise.
48003         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
48004
48005 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
48006
48007         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
48008
48009 2006-06-23  Bruno Haible  <bruno@clisp.org>
48010
48011         * tests/test-stdint.c: Update to match ISO C 99 Technical
48012         Corrigendum 1.
48013
48014 2006-06-23  Bruno Haible  <bruno@clisp.org>
48015
48016         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
48017
48018 2006-06-23  Bruno Haible  <bruno@clisp.org>
48019
48020         * lib/stdint_.h: Treat IRIX like OpenBSD.
48021
48022 2006-06-23  Bruno Haible  <bruno@clisp.org>
48023
48024         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
48025         ISO C 99 Technical Corrigendum 1.
48026
48027 2006-06-22  Simon Josefsson  <jas@extundo.com>
48028
48029         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
48030         MinGW.
48031
48032 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
48033
48034         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
48035         needed.  Some compiler complained about some of them.  Problem reported
48036         by Larry Jones in
48037         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
48038
48039 2006-06-21  Simon Josefsson  <jas@extundo.com>
48040
48041         * tests/test-getaddrinfo.c: New file.
48042
48043         * modules/getaddrinfo-tests: New file.
48044
48045         * MODULES.html.sh: Add inet_pton.
48046
48047         * modules/inet_pton: New file.
48048
48049 2006-06-21  Simon Josefsson  <jas@extundo.com>
48050
48051         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
48052         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
48053         of using the (limited) gnulib implementation on Windows XP.
48054
48055         * m4/inet_pton.m4: New file.
48056
48057 2006-06-21  Simon Josefsson  <jas@extundo.com>
48058
48059         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
48060         variable.
48061
48062         * lib/socket_.h: Don't define WINVER.
48063
48064         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
48065         slightly modified to work in gnulib.
48066
48067 2006-06-21  Simon Josefsson  <jas@extundo.com>
48068
48069         * doc/gnulib.texi (Windows sockets): Add.
48070
48071 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
48072
48073         * lib/read-file.c (fread_file): Start with buffer allocation of
48074         0 bytes rather than 1 byte; this simplifies the code.
48075         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
48076         code to free buffer and save/restore errno.
48077         (internal_read_file): Remove unused local.
48078
48079 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
48080
48081         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
48082         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
48083         Problem reported by Denis Excoffier in
48084         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
48085
48086 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48087
48088         * modules/sys_socket, modules/socklen: Include sys/types since
48089         FreeBSD 4.x's sys/socket.h needs it.
48090
48091 2006-06-19  Simon Josefsson  <jas@extundo.com>
48092
48093         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
48094
48095 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
48096
48097         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
48098
48099 2006-06-19  Bruno Haible  <bruno@clisp.org>
48100
48101         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
48102         and FULL_PATH_INTTYPES_H in angle brackets.
48103         Reported by Mark D. Baushke <mdb@gnu.org>.
48104
48105 2006-06-17  Eric Blake  <ebb9@byu.net>
48106
48107         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
48108         errno.
48109
48110 2006-06-17  Bruno Haible  <bruno@clisp.org>
48111
48112         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
48113         <sys/inttypes.h>.
48114
48115 2006-06-17  Bruno Haible  <bruno@clisp.org>
48116
48117         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
48118         whether errno is declared. Assume <errno.h> declares errno.
48119
48120 2006-06-17  Bruno Haible  <bruno@clisp.org>
48121
48122         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
48123
48124 2006-06-17  Bruno Haible  <bruno@clisp.org>
48125
48126         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
48127         problem on Solaris 2.5.1.
48128
48129 2006-06-16  Eric Blake  <ebb9@byu.net>
48130
48131         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
48132         * lib/unicodeio.c [!defined errno]: Likewise.
48133         * lib/strtol.c [!defined errno]: Likewise.
48134         * lib/strtod.c [!defined errno]: Likewise.
48135
48136 2006-06-15  Eric Blake  <ebb9@byu.net>
48137
48138         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
48139
48140 2006-06-15  Eric Blake  <ebb9@byu.net>
48141
48142         * config/srclist.txt (ssize_t.m4): Lose sync.
48143
48144 2006-06-15  Bruno Haible  <bruno@clisp.org>
48145
48146         * modules/stdint (Files): Include m4/full-header-path.m4,
48147         m4/size_max.m4, m4/wchar_t.m4.
48148         (Makefile.am): Many more substitutions.
48149         * modules/stdint-tests: New file.
48150         * tests/test-stdint.c: New file.
48151
48152 2006-06-15  Bruno Haible  <bruno@clisp.org>
48153
48154         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
48155         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
48156         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
48157         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
48158         gl_CHECK_TYPE_SAME): New macros.
48159
48160 2006-06-15  Bruno Haible  <bruno@clisp.org>
48161
48162         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
48163
48164 2006-06-15  Bruno Haible  <bruno@clisp.org>
48165
48166         * lib/stdint_.h: Rewritten to be fully auto-configured.
48167         Fixes bug on HP-UX/IA64.
48168
48169 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
48170
48171         * lib/getdate.y (__attribute__): Don't define if already defined.
48172         Problem reported by Larry Jones.
48173         * lib/utimens.c (__attribute__): Likewise.
48174
48175 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
48176
48177         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
48178         reported by Andreas Schwab.
48179
48180 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48181             Bruno Haible  <bruno@clisp.org>
48182
48183         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
48184         check for the declaration of strnlen and a run test that exposes the
48185         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
48186         rpl_strndup.
48187
48188 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48189             Bruno Haible  <bruno@clisp.org>
48190
48191         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
48192
48193 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48194
48195         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
48196         compile test, for Tru64 4.0D.
48197
48198 2006-05-28  Karl Berry  <karl@gnu.org>
48199
48200         * config/srclist.txt (printf-args.c): lose sync.
48201
48202 2006-05-26  Martin Lambers  <marlam@marlam.de>
48203
48204         * lib/getpass.c: Updates the test for the native W32 API, and adds
48205         missing includes, thus fixing compilation warnings.
48206
48207 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48208
48209         * lib/exclude.c (exclude_fnmatch): New function.
48210         (excluded_file_name): Call exclude_fnmatch.
48211         * lib/exclude.h (excluded_file_name): New prototype
48212
48213 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
48214
48215         * lib/tempname.c (small_open, large_open): New macros.
48216         (__open, __open64) [!_LIBC]: Remove.
48217         (__gen_tempname): Use small_open and large_open instead of __open
48218         and __open64.  This fixes a portability bug on HP-UX 11.11i
48219         reported by Simon Wing-Tang in
48220         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
48221
48222 2006-05-24  Bruno Haible  <bruno@clisp.org>
48223
48224         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
48225         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
48226         Reported by Thorsten Maerz <torte@netztorte.de> via
48227         Aaron Stone <aaron@serendipity.cx>.
48228
48229 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
48230
48231         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
48232         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
48233         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
48234         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
48235         not really conditional on the cache.
48236         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
48237
48238 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
48239
48240         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
48241         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
48242         (my_usleep): Don't mishandle maximum value.
48243
48244 2006-05-19  Jim Meyering  <jim@meyering.net>
48245
48246         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
48247
48248 2006-05-17  Bruno Haible  <bruno@clisp.org>
48249
48250         Cygwin portability.
48251         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
48252
48253 2006-05-17  Bruno Haible  <bruno@clisp.org>
48254
48255         * lib/stdint_.h: Fix recognition of Cygwin.
48256
48257 2006-05-15  Bruno Haible  <bruno@clisp.org>
48258
48259         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
48260         on libtool patch by Ralf Wildenhues.
48261
48262 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
48263
48264         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
48265         test for C99 conformance; (bool) 0.5 is an integer constant
48266         expression, but (bool) -0.5 is not.  Problem reported by Fedor
48267         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
48268
48269 2006-05-11  Simon Josefsson  <jas@extundo.com>
48270
48271         * m4/xvasprintf.m4: Fix obvious typo.
48272
48273 2006-05-11  Jim Meyering  <jim@meyering.net>
48274
48275         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
48276         James Lemley.
48277
48278 2006-05-10  Simon Josefsson  <jas@extundo.com>
48279
48280         * lib/md4.c: Typo fix, update copyright years.
48281         (K1, K2): Don't use L because it turn computations into 64-bit on
48282         64-bit platforms.
48283
48284 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
48285
48286         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
48287         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
48288         unwanted sign propagation, e.g., on hosts with 64-bit int.
48289         There still are some problems with reeelly weird theoretical hosts
48290         (e.g., 33-bit int) but it's not worth worrying about now.
48291         * lib/sha1.c (rol): Likewise.
48292         (K1, K2, K3, K4): Remove unnecessary L suffix.
48293
48294 2006-05-10  Bruno Haible  <bruno@clisp.org>
48295
48296         * lib/des.c: Cast to avoid warnings.
48297
48298 2006-05-09  Bruno Haible  <bruno@clisp.org>
48299
48300         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
48301         (Depends-on): Depend also on xsize, stdarg.
48302         (configure.ac): Add gl_XVASPRINTF.
48303
48304 2006-05-09  Bruno Haible  <bruno@clisp.org>
48305
48306         * m4/xvasprintf.m4: New file.
48307
48308 2006-05-09  Bruno Haible  <bruno@clisp.org>
48309
48310         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
48311         (EOVERFLOW): Define fallback value.
48312         (xstrcat): New function.
48313         (xvasprintf): Recognize the special case of a string concatenation.
48314
48315 2006-05-08  Eric Blake  <ebb9@byu.net>
48316
48317         * gnulib-tool (func_version): Base copyright year on CVS date.
48318         (func_emit_copyright_notice): New function.
48319         (func_emit_lib_Makefile_am): Use it.
48320         (func_emit_tests_Makefile_am): Likewise.
48321         (func_import): Likewise.
48322
48323 2006-05-08  Bruno Haible  <bruno@clisp.org>
48324
48325         * modules/stdarg: New file.
48326         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
48327
48328 2006-05-08  Bruno Haible  <bruno@clisp.org>
48329
48330         * m4/stdarg.m4: New file, from GNU gettext.
48331
48332 2006-05-08  Bruno Haible  <bruno@clisp.org>
48333
48334         * config/srclist.txt (build-aux/config.rpath): different from latest
48335         release.
48336
48337 2006-05-08  Bruno Haible  <bruno@clisp.org>
48338
48339         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
48340
48341 2006-05-05  Jim Meyering  <jim@meyering.net>
48342
48343         * m4/warning.m4: New file, derived from bison's file by the same name.
48344
48345 2006-05-03  Bruno Haible  <bruno@clisp.org>
48346
48347         * lib/stdint_.h: Shorter URL.
48348         * lib/inttypes.h: Likewise.
48349
48350 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
48351
48352         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
48353
48354 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
48355
48356         * lib/verify.h: Document the internals better.  Most of this change
48357         was written by Bruno Haible.
48358
48359 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
48360
48361         * doc/verify.texi: New file, partly based on a proposal by
48362         Bruno Haible.
48363
48364 2006-05-02  Bruno Haible  <bruno@clisp.org>
48365
48366         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
48367         test from here...
48368         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
48369
48370 2006-04-29  Bruno Haible  <bruno@clisp.org>
48371
48372         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
48373         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
48374
48375 2006-04-29  Bruno Haible  <bruno@clisp.org>
48376
48377         * gnulib-tool: Make --update option actually work.
48378
48379 2006-04-29  Bruno Haible  <bruno@clisp.org>
48380
48381         * doc/gcd.texi: New file.
48382         * doc/gnulib.texi: Include it.
48383
48384 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
48385
48386         * lib/getdate.y (get_date): When adding relative date, start with the
48387         initial time, not with the result of the first mktime call.
48388
48389 2006-04-25  Bruno Haible  <bruno@clisp.org>
48390
48391         * gnulib-tool (func_import): Output the include directives in three
48392         blocks, sorted separately.
48393         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48394
48395 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
48396
48397         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
48398         to define main with arguments, for C++.  Reported by Eric Blake.
48399         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
48400         Prefer 'int main ()' to 'int main (void)', for C++.
48401         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
48402         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
48403         for 'main', for C99 and C++.
48404
48405 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
48406
48407         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
48408         Don't assume that exit status -1 is valid.
48409         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
48410         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
48411         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
48412         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
48413         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
48414         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
48415         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
48416         functions can be used without declaring them, or that you can
48417         exit with status -1.
48418         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
48419
48420 2006-04-24  Karl Berry  <karl@gnu.org>
48421
48422         * config/srclist.txt (longdouble.m4): sync lost.
48423
48424 2006-04-24  Eric Blake  <ebb9@byu.net>
48425
48426         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
48427
48428 2006-04-24  Bruno Haible  <bruno@clisp.org>
48429
48430         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
48431         poll() implementation in AIX.
48432         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48433
48434 2006-04-24  Bruno Haible  <bruno@clisp.org>
48435
48436         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
48437         assigned exactly once.
48438
48439 2006-04-23  Claudio Fontana  <claudio@gnu.org>
48440             Bruno Haible  <bruno@clisp.org>
48441
48442         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
48443         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
48444         for AM_CPPFLAGS.
48445
48446 2006-04-23  Bruno Haible  <bruno@clisp.org>
48447
48448         * modules/copy-file: Depend on unistd.
48449         * modules/execute: Likewise.
48450         * modules/fatal-signal: Likewise.
48451         * modules/findprog: Likewise.
48452         * modules/mkdtemp : Likewise.
48453         * modules/pipe: Likewise.
48454         * modules/wait-process: Likewise.
48455
48456 2006-04-23  Bruno Haible  <bruno@clisp.org>
48457
48458         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
48459         condition was already detected.
48460         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48461
48462 2006-04-23  Bruno Haible  <bruno@clisp.org>
48463
48464         * lib/copy-file.c: Include <unistd.h> unconditionally.
48465         * lib/execute.c: Likewise.
48466         * lib/fatal-signal.c: Likewise.
48467         * lib/findprog.c: Likewise.
48468         * lib/mkdtemp.c: Likewise.
48469         * lib/pipe.h: Likewise.
48470         * lib/pipe.c: Likewise.
48471         * lib/wait-process.h: Likewise.
48472
48473 2006-04-23  Bruno Haible  <bruno@clisp.org>
48474
48475         * gnulib-tool (func_usage): Fix --import description. Document
48476         --update.
48477         (func_import): Create temporary file in a temporary directory, if
48478         --dry-run is specified. Silence errors from 'grep' when there are no
48479         m4 files in $m4dir.
48480         (func_create_testdir): Silence errors from 'grep' when there are no
48481         m4 files in $m4dir.
48482         Reported by Karl Berry <karl@freefriends.org>.
48483
48484 2006-04-20  Bruno Haible  <bruno@clisp.org>
48485
48486         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
48487         one argument, so that the code will be portable to Autoconf 2.60.
48488         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
48489         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
48490         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
48491
48492 2006-04-19  Derek Price  <derek@ximbiot.com>
48493             Eric Blake  <ebb9@byu.net>
48494
48495         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
48496         rather than "/full/path.h".  Update comment to match.  Shorten &
48497         generalize m4_translit call via AS_TR_CPP.
48498
48499 2006-04-19  Derek Price  <derek@ximbiot.com>
48500             Eric Blake  <ebb9@byu.net>
48501
48502         * lib/inttypes.h: Correct grammar in comment.
48503
48504 2006-04-18  Derek Price  <derek@ximbiot.com>
48505             Paul Eggert  <eggert@cs.ucla.edu>
48506
48507         * modules/inttypes: New file.
48508         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
48509
48510 2006-04-18  Derek Price  <derek@ximbiot.com>
48511             Paul Eggert  <eggert@cs.ucla.edu>
48512
48513         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
48514         New files.
48515
48516 2006-04-18  Derek Price  <derek@ximbiot.com>
48517             Paul Eggert  <eggert@cs.ucla.edu>
48518
48519         * lib/inttypes.h: New file.
48520         * lib/strtoimax.c: Assume <inttypes.h>.
48521
48522 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
48523
48524         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
48525         isn't mounted.  Problem reported by Kir Kolyshkin.
48526
48527 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
48528
48529         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
48530         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
48531         Derek R. Price.
48532         * lib/regex.h (RE_DUP_MAX): Update comment to match current
48533         implementation.
48534
48535 2006-04-12  Eric Blake  <ebb9@byu.net>
48536
48537         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
48538         is now done automatically by the corresponding Autoconf macro.
48539
48540 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
48541
48542         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
48543         time_r.h.
48544
48545 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
48546
48547         Merge regex changes from libc, removing some of our
48548         POSIX-conformance changes that were rejected and redoing them in a
48549         less-intrusive way.
48550
48551         * lib/regcomp.c (re_compile_internal, init_dfa):
48552         Length arg is now size_t, not Idx.  All uses changed.
48553         (peek_token): Forward decl now says internal_function.
48554         (__re_error_msgid, __re_error_msgid_idx):
48555         Now static rather than extern with attribute_hidden.
48556         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
48557         For some reason libc prefers K&R style defns for external functions.
48558         (regerror) [!defined _LIBC]: Likewise.
48559         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
48560         (seek_collating_symbol_entry, lookup_collation_sequence_value):
48561         (build_range_exp, build_collating_symbol):
48562         Use K&R-style defn.
48563         (re_compile_fastmap): Use '\0' to memset, not 0.
48564         (utf8_sb_map): Make the calculations more obvious.
48565         (init_dfa, parse_bracket_exp, build_charclass_op):
48566         Call calloc and cast result, as glibc does.
48567         (init_word_char, fetch_token, peek_token, peek_token_bracket):
48568         (build_range_exp, build_collating_symbol):
48569         Now internal functions.
48570
48571         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
48572
48573         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
48574         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
48575         Don't depend on VMS; depend on __VMS instead, for POSIX
48576         namespace cleanness.
48577         (regoff_t): Define to ssize_t, not long int.
48578
48579         Remove the REG_ macros named below.  Instead, make the old names
48580         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
48581         __USE_GNU_REGEX.
48582         (REG_BACKSLASH_ESCAPE_IN_LISTS):
48583         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
48584         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
48585         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
48586         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
48587         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
48588         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
48589         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
48590         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
48591         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
48592         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
48593         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
48594         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
48595         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
48596         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
48597         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
48598         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
48599         (REG_NREGS):
48600         Remove.  All uses replaced by the old RE_* names.
48601         (RE_BACKSLASH_ESCAPE_IN_LISTS):
48602         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
48603         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
48604         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
48605         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
48606         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
48607         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
48608         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
48609         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
48610         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
48611         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
48612         Don't bother having these macros be independent of each others'
48613         values, since they no longer exist in the POSIX name space.
48614
48615         Rename the following member names back to their old names,
48616         unless !__USE_GNU_REGEX.  All uses changed back.
48617         (buffer): Renamed from re_buffer.
48618         (allocated): Renamed from re_allocated.
48619         (used): Renamed from re_used.
48620         (syntax): Renamed from re_syntax.
48621         (fastmap): Renamed from re_fastmap.
48622         (translate): Renamed from re_translate.
48623         (can_be_null): Renamed from re_can_be_null.
48624         (regs_allocated): Renamed from re_regs_allocated.
48625         (fastmap_accurate): Renamed from re_fastmap_accurate.
48626         (no_sub): Renamed from re_no_sub.
48627         (not_bol): Renamed from re_not_bol.
48628         (not_eol): Renamed from re_not_eol.
48629         (newline_anchor): Renamed from re_newline_anchor.
48630         (num_regs): Renamed from rm_num_regs.
48631         (start): Renamed from rm_start.
48632         (end): Renamed from rm_end.
48633
48634         (free_state): Move up a bit.
48635
48636         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
48637         #define to be empty.
48638         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
48639         when that is what is intended.
48640         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
48641         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
48642         (MAX): New macro.
48643         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
48644         All uses changed back to re_malloc, etc.  It's now the caller's
48645         responsibility to check for overflow; all callers changed.
48646         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
48647         (re_x2nrealloc): Remove.
48648         (free_state): Remove decl.
48649
48650         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
48651         (re_set_registers, re_exec):
48652         Use K&R-style defn.
48653
48654         2006-01-31  Roland McGrath  <roland@redhat.com>
48655
48656         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
48657         Reported by Mike Frysinger <vapier@gentoo.org>.
48658
48659         2006-01-15  Andreas Jaeger  <aj@suse.de>
48660
48661         [BZ #1950]
48662         * lib/regex_internal.c (re_string_reconstruct): Adjust for
48663         build_wcs_upper_buffer change.
48664         (build_wcs_upper_buffer): Change return type.
48665
48666         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
48667
48668         * lib/regex_internal.h: Include <stdint.h> if available.
48669
48670         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
48671
48672         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
48673
48674         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
48675
48676         * lib/regcomp.c: Adjust for changed secondary hash function.
48677
48678         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
48679
48680         * lib/regex.h: Pretty printing.
48681         Clean up namespace a bit.
48682
48683         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
48684
48685         * lib/regexec.c (update_cur_sifted_state, check_arrival,
48686         check_arrival_add_next_nodes): Avoid using uninitialized variable.
48687
48688         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
48689                     Ulrich Drepper  <drepper@redhat.com>
48690
48691         [BZ #1302]
48692         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
48693         changed.
48694         (bitset_word_t): Renamed from bitset_word.  All uses changed.
48695
48696         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
48697
48698         [BZ #281]
48699         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
48700         * lib/regcomp.c: Remove unnecessary uses of
48701         unsigned RE_TRANSLATE_TYPE.
48702         * lib/regex_internal.h: Likewise.
48703         * lib/regex_internal.c: Likewise.
48704         * lib/regexec.c: Likewise.
48705         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
48706
48707         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
48708
48709         * lib/regexec.c (find_recover_state): Remove unnecessary
48710         initialization.
48711         (transit_state_bkref): Make DFA a const pointer.
48712         (get_subexp): Likewise.
48713         (check_arrival): Likewise.
48714         (update_cur_sifted_state): Likewise.
48715         (re_search_internal): Likewise.
48716         (prune_impossible_nodes): Likewise.
48717         (acquire_init_state_context): Likewise.
48718         (proceed_next_node): Likewise.
48719         (set_regs): Likewise.
48720         (free_fail_stack_return): Likewise.
48721         (check_arrival_expand_ecl): Mark DFA parameter as const.
48722         (check_arrival_expand_ecl_sub): Likewise.
48723         (check_subexp_limits): Likewise.
48724         (sub_epsilon_src_nodes):  Likewise.
48725         (add_epsilon_src_nodes):  Likewise.
48726         (merge_state_array): Likewise.
48727         (update_regs): Likewise.
48728         (build_trtable): Likewise.
48729         (sift_states_backward): Mark MCTX parameter as const.
48730         (build_sifted_states): Likewise.
48731         (update_cur_sifted_state): Likewise.
48732         (sift_states_mkref): Likewise.
48733         (check_arrival_expand_ecl): Mark eclosure as const.
48734         (check_dst_limits_calc_pos_1): Likewise.
48735         * lib/regex_internal.h (re_match_context_t): Make dfa a const
48736         pointer.
48737
48738         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
48739
48740         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
48741         (transit_state_sb): Likewise.
48742         (transit_state_mb): Likewise.
48743         (sift_states_iter_mb): Likewise.
48744         (check_arrival_add_next_nodes): Likewise.
48745         (check_node_accept_bytes): Change first parameter to pointer-to-const.
48746         [_LIBC] (re_search_2_stub): Use mempcpy.
48747
48748         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
48749         mbrtowc for very simple UTF-8 case.
48750
48751         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
48752         a pointer-to-const.
48753         (re_acquire_state_context): Likewise.
48754         * lib/regex_internal.h: Adjust prototypes.
48755
48756         * lib/regex.c: Prevent using C++ compilers.
48757
48758         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
48759         (re_acquire_state_context): Likewise.
48760
48761 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
48762
48763         * modules/regex (Depends-on): Add ssize_t.
48764
48765 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
48766
48767         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
48768         translation table.
48769
48770 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
48771
48772         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
48773
48774 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
48775             Bruno Haible  <bruno@clisp.org>
48776
48777         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
48778         <sys/types.h> and <inttypes.h>.
48779
48780 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48781
48782         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
48783         `__error_t_defined', so argp.h will not typedef the former.
48784
48785 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
48786
48787         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
48788         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
48789         glibc names.  Even if glibc is changed to conform to POSIX, the
48790         traditional names will be available anyway, since regex depends on
48791         the extensions module.  Also, fix a longstanding typo in the
48792         implementation of Spencer ERE test #75 from grep 2.3.  Problems
48793         reported by Emanuele Giaquinta.  Also, change sense of cached
48794         variable, so that the message makes sense.
48795
48796 2006-03-24  Simon Josefsson  <jas@extundo.com>
48797
48798         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
48799         including some doc fixes.
48800         (base64_encode_alloc): Fix +1 bug on allocation failures.
48801
48802 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48803
48804         * lib/base64.c (base64_encode): Do not read past end of array with
48805         unsanitized input on systems with CHAR_BIT > 8.
48806
48807 2006-03-24  Eric Blake  <ebb9@byu.net>
48808
48809         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
48810
48811 2006-03-22  Karl Berry  <karl@gnu.org>
48812
48813         * config/srclist.txt (*setenv.[ch]): get from coreutils.
48814         * config/srclistvars.sh (COREUTILS): new var.
48815
48816 2006-03-17  Jim Meyering  <jim@meyering.net>
48817
48818         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
48819         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
48820
48821 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
48822
48823         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
48824         no longer needs it.  Instead, check that regoff_t is as least
48825         as wide as ptrdiff_t.
48826
48827         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
48828         so that our regex.h stays compatible with the installed regex.
48829         This is helpful for installers who configure --without-included-regex.
48830         Problem reported by Emanuele Giaquinta.
48831
48832 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
48833
48834         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
48835         Typedef to long int, not to off_, as POSIX will likely change
48836         in that direction.
48837
48838 2006-03-15  Eric Blake  <ebb9@byu.net>
48839
48840         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
48841
48842 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
48843
48844         * lib/argp-help.c (validate_uparams): Fix typo
48845         * lib/argp-parse.c (argp_default_options): Consistently begin help
48846         messages with a lowercase letter.
48847
48848 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
48849
48850         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
48851         overrun buffers and shouldn't be used (much as gets shouldn't be
48852         used).
48853         * lib/time_r.c (asctime_r, ctime_r): Likewise.
48854
48855 2006-03-08  Simon Josefsson  <jas@extundo.com>
48856
48857         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
48858         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48859
48860 2006-03-08  Simon Josefsson  <jas@extundo.com>
48861
48862         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
48863         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48864
48865 2006-03-08  Simon Josefsson  <jas@extundo.com>
48866
48867         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
48868         signal that configure disabled the device.
48869
48870 2006-03-08  Simon Josefsson  <jas@extundo.com>
48871
48872         * build-aux/maint.mk: Fix refresh-po, to handle no translated
48873         languages.
48874
48875 2006-03-07  Simon Josefsson  <jas@extundo.com>
48876
48877         * modules/getopt (Depends-on): Add unistd.
48878
48879         * modules/unistd: New file.
48880
48881 2006-03-07  Simon Josefsson  <jas@extundo.com>
48882
48883         * modules/gc-random: New file.
48884
48885 2006-03-07  Simon Josefsson  <jas@extundo.com>
48886
48887         * m4/unistd_h.m4: New file.
48888
48889 2006-03-07  Simon Josefsson  <jas@extundo.com>
48890
48891         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
48892         test to be side-effect free by storing the result in the cache
48893         variable gl_cv_lib_readline, and moving the assignment of
48894         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
48895         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48896
48897 2006-03-07  Simon Josefsson  <jas@extundo.com>
48898
48899         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
48900         error on missing devices (the functions will return an error).
48901
48902         * m4/gc.m4: Move random stuff to gc-random.m4
48903
48904 2006-03-07  Simon Josefsson  <jas@extundo.com>
48905
48906         * lib/unistd_.h: New file.
48907
48908 2006-03-07  Simon Josefsson  <jas@extundo.com>
48909
48910         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
48911
48912 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
48913
48914         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
48915         Problem reported by Juan Manuel Guerrero.
48916
48917 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
48918
48919         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
48920         the unistd module.
48921         * lib/getlogin_r.c: Likewise.
48922         * lib/getlogin_r.h: Likewise.
48923         * lib/glob.c: Likewise.
48924         * lib/pagealign_alloc.c: Likewise.
48925         * lib/unistd_.h: Remove; no longer needed.
48926
48927 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
48928
48929         * MODULES.html.sh (Support for systems lacking POSIX:2001):
48930         Add unistd.
48931         * modules/c-stack (Depends-on): Add unistd.
48932         * modules/getlogin_r: Likewise.
48933         * modules/glob: Likewise.
48934         * modules/pagealign_alloc: Likewise.
48935         * modules/unistd (Files): Remove lib/unistd_.h.
48936         (EXTRA_DIST): Remove.
48937         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
48938         need unistd_.h.
48939         (MOSTLYCLEANFILES): Remove unistd.h-t.
48940
48941 2006-03-03  Simon Josefsson  <jas@extundo.com>
48942
48943         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
48944
48945 2006-03-03  Simon Josefsson  <jas@extundo.com>
48946
48947         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
48948         libidn and bison.
48949
48950 2006-03-03  Simon Josefsson  <jas@extundo.com>
48951
48952         * build-aux/maint.mk: Add indent target.
48953
48954 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
48955
48956         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
48957         our replacement poll.h in any case, to avoid a differing
48958         declaration from a system header.  Seen on AIX.
48959
48960 2006-03-01  Simon Josefsson  <jas@extundo.com>
48961
48962         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
48963         <kasal@ucw.cz>.
48964
48965 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
48966
48967         * modules/gettime (Depends-on): Add extensions module.
48968         * modules/nanosleep (Depends-on): Likewise.
48969         * modules/settime (Depends-on): Likewise.
48970
48971 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
48972
48973         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
48974         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
48975         pedantically.
48976         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
48977         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
48978
48979         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
48980         not "==".  Reported by Ralf Wildenhues.
48981
48982 2006-03-01  Karl Berry  <karl@gnu.org>
48983
48984         * doc/Copyright/request-*: new files, synced from gnuorg.
48985
48986 2006-03-01  Karl Berry  <karl@gnu.org>
48987
48988         * config/srclist.txt (Copyright/*): new entries.
48989
48990 2006-02-28  Simon Josefsson  <jas@extundo.com>
48991
48992         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
48993
48994 2006-02-27  Simon Josefsson  <jas@extundo.com>
48995
48996         * lib/base64.h: Indent #define's.  From Jim Meyering
48997         <jim@meyering.net>.
48998
48999 2006-02-27  Jim Meyering  <jim@meyering.net>
49000
49001         Revert the change of 2006-02-24, so these files can continue
49002         to be sync'd from gettext.
49003         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
49004         of `config.h'.
49005
49006 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
49007
49008         * modules/intprops: New file.
49009         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
49010         Add intprops.
49011         * modules/getloadavg (Files): Remove lib/intprops.h.
49012         (Depends-on): Add intprops.
49013         * modules/human: Likewise.
49014         * modules/inttostr: Likewise.
49015         * modules/openat: Likewise.
49016         * modules/sig2str: Likewise.
49017         * modules/userspec: Likewise.
49018         * modules/utimecmp: Likewise.
49019         * modules/xnanosleep: Likewise.
49020         * modules/xstrtol: Likewise.
49021
49022 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
49023
49024         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
49025         * modules/lock-tests (TESTS): Use $(EXEEXT).
49026         * modules/tls-tests: Likewise.
49027         * modules/argp-tests: Likewise.
49028         (check_PROGRAMS): New var, replacing...
49029         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
49030
49031 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49032
49033         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
49034         `config.h'.
49035
49036 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
49037
49038         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
49039
49040 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49041
49042         Sync from coreutils.
49043         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
49044         gl_CHDIR_SAFER.
49045
49046 2006-02-22  Jim Meyering  <jim@meyering.net>
49047
49048         Sync from coreutils.
49049         * m4/chdir-safer.m4: New file.
49050
49051 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
49052
49053         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
49054         AT_FDCWD exceeds INT_MAX.
49055         * lib/openat.h (AT_FDCWD): Likewise.
49056
49057 2006-02-17  Eric Blake  <address@hidden>
49058
49059         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
49060
49061 2006-02-16  Simon Josefsson  <jas@extundo.com>
49062
49063         * modules/getaddrinfo (Depends-on): Add sys_socket.
49064
49065 2006-02-15  Simon Josefsson  <jas@extundo.com>
49066
49067         * build-aux/maint.mk: Add dsyntax-check rule.
49068
49069 2006-02-15  Eric Blake  <ebb9@byu.net>
49070
49071         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
49072         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
49073         'present but cannot compile' warnings on cygwin.
49074         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
49075         use ws2tcpip.h if sys/socket.h works.
49076         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
49077         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
49078
49079 2006-02-14  Simon Josefsson  <jas@extundo.com>
49080
49081         * modules/maintainer-makefile (Files): Rename.
49082
49083         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
49084         and (the local) Makefile.cfg to maint-cfg.mk.
49085
49086         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
49087         to the latter.
49088
49089         * modules/maintainer-makefile: New module.
49090
49091         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
49092         severaly stripped to make it possible to build it up from scratch
49093         with reliable tests.
49094
49095         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
49096         fixes to permit overriding the default actions when configure and
49097         makefile are not available.
49098
49099 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
49100
49101         Sync from coreutils.
49102         * modules/lstat (Depends-on): Don't depend on xalloc.
49103         (License): Change from GPL to LGPL, since this is now simply a
49104         replacement for a libc function.
49105
49106 2006-02-14  Jim Meyering  <jim@meyering.net>
49107
49108         Sync from coreutils.
49109
49110         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
49111         failure on deficient systems, and simplify gnulib lgpl dependencies.
49112         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
49113         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
49114
49115         * lib/xalloc-die.c: Remove unused definition of N_.
49116
49117 2006-02-14  Jim Meyering  <jim@meyering.net>
49118
49119         Sync from coreutils.
49120         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
49121         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
49122         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
49123         double-quote uses of that variable, to accommodate the rare case in
49124         which getmntent is available in none of the libraries checked.  This
49125         happens at least on FreeBSD 5.0.
49126
49127 2006-02-13  Simon Josefsson  <jas@extundo.com>
49128
49129         * gnulib-tool (Usage): Fix --import, from
49130         karl@freefriends.org (Karl Berry).
49131
49132 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
49133
49134         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
49135
49136 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
49137
49138         * lib/argp-namefrob.h: Restore changes accidentally lost during the
49139         "autoupdate" on 2005-12-12.
49140
49141 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
49142
49143         * modules/closeout (Depends-on): Remove atexit.
49144
49145 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
49146
49147         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
49148         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
49149
49150 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
49151
49152         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
49153         __EXTENSIONS__ if this causes compilation to fail.  Problem
49154         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
49155         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
49156
49157 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
49158
49159         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
49160         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
49161         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
49162         All uses changed.
49163
49164 2006-01-26  Simon Josefsson  <jas@extundo.com>
49165
49166         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
49167         prototype is visible on mingw32.
49168
49169         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
49170         for mingw32.
49171
49172         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
49173         mingw32).
49174
49175 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
49176
49177         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
49178         attempt to open for write; this always fails, at least on POSIX
49179         hosts.  This reinstates the 2006-01-09 change, which was
49180         inadvertently removed.
49181
49182 2006-01-26  Bruno Haible  <bruno@clisp.org>
49183
49184         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
49185         Reported by Paul Eggert.
49186
49187 2006-01-26  Bruno Haible  <bruno@clisp.org>
49188             Paul Eggert  <eggert@cs.ucla.edu>
49189
49190         * lib/stdbool_.h (_Bool)
49191         [(! (defined __cplusplus || defined __BEOS__)
49192           && !defined __GNUC__
49193           && !(defined __HP_cc || defined __xlc__
49194                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
49195                || defined __sgi))]:
49196         #define to signed char in these cases too; this simplifies
49197         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
49198         etc., separately) and makes it more conservative.
49199
49200 2006-01-25  Simon Josefsson  <jas@extundo.com>
49201
49202         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
49203         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
49204         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
49205
49206 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
49207
49208         * lib/argp-namefrob.h: Bugfix. Remove stray #
49209
49210 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
49211
49212         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
49213         so that we test the test.
49214         Check for yet another HP-UX cc bug involving *bool |= bool.
49215
49216 2006-01-25  Karl Berry  <karl@gnu.org>
49217
49218         * config/srclist.txt (vasnprintf.c): sync lost.
49219
49220 2006-01-25  Jim Meyering  <jim@meyering.net>
49221
49222         Sync from the stable (b5) branch of coreutils:
49223
49224         * lib/fts.c (fts_children): Don't let close() clobber errno from
49225         failed fchdir().
49226
49227         * lib/fts.c (fts_stat): When following a symlink-to-directory,
49228         don't necessarily interpret stat-fails+lstat-succeeds as indicating
49229         a dangling symlink.  That can also happen at least for ELOOP.
49230         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
49231         FYI, this bug predates the inclusion of fts.c in coreutils.
49232
49233         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
49234         in their own block, so pre-c99 compilers don't object.
49235
49236         Avoid the double-free (first in fts_read, second in fts_close) that
49237         would occur when an `active' directory is made inaccessible (e.g.,
49238         via chmod a-x) during a traversal.
49239         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
49240         before returning.  Reproduce this failure by
49241         mkdir -p a/b; cd a; chmod a-x . b
49242         Reported by Stavros Passas.
49243
49244 2006-01-25  Jim Meyering  <jim@meyering.net>
49245
49246         * lib/fileblocks.c: Remove more useless parentheses.
49247         * lib/readutmp.h: Likewise.
49248
49249 2006-01-25  Bruno Haible  <bruno@clisp.org>
49250
49251         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
49252         warnings.
49253         Reported by Paul Eggert.
49254
49255 2006-01-25  Bruno Haible  <bruno@clisp.org>
49256
49257         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
49258         rid of a trap command. For Solaris sh.
49259         Reported by Mark D. Baushke <mdb@gnu.org>.
49260
49261 2006-01-24  Simon Josefsson  <jas@extundo.com>
49262
49263         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
49264         Bruno.
49265
49266 2006-01-24  Karl Berry  <karl@gnu.org>
49267
49268         * config/srclist.txt (argp-namefrob.h): sync lost.
49269
49270 2006-01-24  Jim Meyering  <jim@meyering.net>
49271
49272         * modules/openat (Files): Add lib/intprops.h.
49273         From Mark D. Baushke.
49274
49275 2006-01-24  Jim Meyering  <jim@meyering.net>
49276
49277         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
49278         Reported by Mark D. Baushke.
49279
49280 2006-01-24  Jim Meyering  <jim@meyering.net>
49281
49282         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
49283
49284 2006-01-24  Bruno Haible  <bruno@clisp.org>
49285
49286         * modules/strnlen (Maintainer): Change from glibc to all.
49287
49288 2006-01-24  Bruno Haible  <bruno@clisp.org>
49289
49290         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
49291         Patch by Paul Eggert.
49292
49293 2006-01-24  Bruno Haible  <bruno@clisp.org>
49294
49295         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
49296         already has it.
49297         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
49298         2005-11-26.
49299
49300         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
49301         'signed char' to avoid problems with the built-in _Bool type.
49302         Reported by Paul Eggert on 2005-11-26.
49303
49304 2006-01-24  Bruno Haible  <bruno@clisp.org>
49305
49306         * gnulib-tool (func_import): Avoid constructing complicated sed
49307         expressions inside backquote.
49308         Report and solution by Mark D. Baushke <mdb@gnu.org>.
49309
49310 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
49311
49312         These changes imported from libc.
49313         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
49314         test and two separate function calls.
49315         * lib/strndup.c (__strndup): Add libc_hidden_def.
49316
49317 2006-01-23  Simon Josefsson  <jas@extundo.com>
49318
49319         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
49320         Remove the test_*_SOURCES variable: automake infers it by default.
49321         * modules/tls-tests: Likewise.
49322
49323 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
49324
49325         Work around porting bugs reported by Dieter in
49326         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
49327         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
49328         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
49329         Include "getopt.h" first, to check interface.
49330         (getenv): Declare only if defined HAVE_DECL_GETENV &&
49331         !HAVE_DECL_GETENV.
49332         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
49333         (__strndup): Revert to K&R-style function dfns, the glibc style.
49334         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
49335         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
49336         Include strnlen.h first, to get prototype properly.
49337         (strnlen): Renamed from __strnlen.
49338         Remove weak alias.
49339
49340 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
49341
49342         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
49343
49344 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
49345
49346         * config/srclist.txt: Adjust to reflect glibc reorganization.
49347         This affects only comments.
49348
49349 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
49350
49351          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
49352          Reported by Bruce Korb <bkorb@gnu.org>.
49353
49354 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
49355
49356         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
49357         to pacify gcc -Wswitch-default.
49358
49359 2006-01-22  Bruno Haible  <bruno@clisp.org>
49360
49361         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
49362         temporary buffer for sprintf, take into account the precision also
49363         for 'd', 'i', 'u', 'o', 'x', 'X'.
49364
49365 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
49366
49367         * modules/argp-tests: New module
49368         * tests/test-argp.c: New file
49369         * tests/test-argp-2.sh: New file
49370
49371 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
49372
49373         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
49374         (__argp_base_name): Removed
49375         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
49376         typo.
49377         (__argp_base_name): Provide macro definition or extern declaration
49378         depending on the configuration
49379
49380 2006-01-20  Simon Josefsson  <jas@extundo.com>
49381
49382         * modules/inet_ntop (Depends-on): Depend on sys_socket.
49383
49384 2006-01-20  Simon Josefsson  <jas@extundo.com>
49385
49386         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
49387
49388 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
49389
49390         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
49391         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
49392         Suggested by Bruno Haible.
49393
49394 2006-01-20  Karl Berry  <karl@gnu.org>
49395
49396         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
49397         until changes propagate, I guess.
49398
49399 2006-01-19  Simon Josefsson  <jas@extundo.com>
49400
49401         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
49402
49403 2006-01-19  Simon Josefsson  <jas@extundo.com>
49404
49405         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
49406
49407 2006-01-19  Simon Josefsson  <jas@extundo.com>
49408
49409         * gnulib-tool: Set check_PROGRAMS.
49410
49411         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
49412         modules/des-tests, modules/gc-arcfour-tests,
49413         modules/gc-arctwo-tests, modules/gc-des-tests,
49414         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
49415         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
49416         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
49417         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
49418         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
49419         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
49420         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
49421         test_*_SOURCES.
49422
49423 2006-01-18  Simon Josefsson  <jas@extundo.com>
49424
49425         * modules/socklen (Depends-on): Depend on sys_socket.
49426
49427 2006-01-18  Simon Josefsson  <jas@extundo.com>
49428
49429         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
49430         modules/des-tests, modules/gc-arcfour-tests,
49431         modules/gc-arctwo-tests, modules/gc-des-tests,
49432         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
49433         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
49434         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
49435         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
49436         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
49437         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
49438         $(EXEEXT) to automake TESTS variable, for mingw32.
49439
49440 2006-01-17  Simon Josefsson  <jas@extundo.com>
49441
49442         * modules/socklen (Include): Need sys/socket.h.
49443
49444 2006-01-17  Bruno Haible  <bruno@clisp.org>
49445
49446         * modules/ssize_t (Include): Add <sys/types.h>.
49447
49448 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
49449
49450         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
49451         it's not portable and it doesn't work with cross-compiles.
49452         Problem reported by Bruno Haible.  Fix missing-$ typo in
49453         'test "gl_cv_ignore_unused_libraries" ...' that prevented
49454         -zignore from being used with Sun's C compiler.
49455
49456 2006-01-12  Simon Josefsson  <jas@extundo.com>
49457
49458         * lib/base64.c: Fix warning, reported by Bruno Haible
49459         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
49460
49461 2006-01-12  Bruno Haible  <bruno@clisp.org>
49462
49463         * modules/ldd: New file.
49464         * build-aux/ldd.sh.in: New file.
49465         * MODULES.html.sh (Support for building libraries and executables): Add
49466         ldd.
49467
49468 2006-01-12  Bruno Haible  <bruno@clisp.org>
49469
49470         * m4/ldd.m4: New file.
49471
49472 2006-01-12  Bruno Haible  <bruno@clisp.org>
49473
49474         * gnulib-tool (func_import, func_create_testdir): Don't go into an
49475         endless loop while replacing $auxdir with build-aux.
49476
49477 2006-01-11  Simon Josefsson  <jas@extundo.com>
49478
49479         * lib/stdint_.h (SIZE_MAX): Add missing (.
49480
49481 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
49482
49483         Sync from coreutils.
49484         * lib/md5.c: Fix commentary typos.
49485         (alignof, UNALIGNED_P): No need for a GCC-specific version.
49486         * lib/md5.h (__attribute__): Remove; unused.
49487         * lib/sha1.c: Fix commentary to match md5 better.
49488         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
49489         so that we don't need to worry about alignment.  All uses changed.
49490         This merges the 2005-10-28 md5 change into sha1.
49491
49492 2006-01-11  Jim Meyering  <jim@meyering.net>
49493
49494         Sync from coreutils.
49495         * lib/md5.c (OP): Fix spacing.
49496
49497 2006-01-11  Bruno Haible  <bruno@clisp.org>
49498
49499         Ensure automatic ordering between gl_LOCK and gl_ARGP.
49500         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
49501         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
49502
49503 2006-01-11  Bruno Haible  <bruno@clisp.org>
49504
49505         Ensure automatic ordering between gl_LOCK and gl_ARGP.
49506         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
49507         the "early" section as well.
49508
49509 2006-01-11  Bruno Haible  <bruno@clisp.org>
49510
49511         Avoid "ar: no archive members specified" error on MacOS X.
49512         * gnulib-tool (func_modules_add_dummy): New function.
49513         (func_import, func_create_testdir): Invoke it.
49514
49515 2006-01-11  Bruno Haible  <bruno@clisp.org>
49516
49517         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
49518         with $auxdir in AC_CONFIG_FILES statements.
49519
49520 2006-01-11  Bruno Haible  <bruno@clisp.org>
49521
49522         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49523         Initialize also noinst_HEADERS to empty.
49524
49525 2006-01-11  Bruno Haible  <bruno@clisp.org>
49526
49527         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
49528         variables.
49529         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
49530         autoreconf.
49531
49532 2006-01-11  Bruno Haible  <bruno@clisp.org>
49533
49534         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
49535         overridable by the user.
49536         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49537
49538 2006-01-10  Simon Josefsson  <jas@extundo.com>
49539
49540         * modules/sys_socket: New file.
49541
49542 2006-01-10  Simon Josefsson  <jas@extundo.com>
49543
49544         * m4/sys_socket_h.m4: New file.
49545
49546 2006-01-10  Simon Josefsson  <jas@extundo.com>
49547
49548         * lib/socket_.h: New file.
49549
49550 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
49551
49552         * modules/readutmp (Maintainer): Add myself.
49553
49554 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
49555
49556         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
49557         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
49558         People who are still concerned with buggy memcmp implementations
49559         can invoke gl_FUNC_MEMCMP themselves.
49560
49561 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
49562
49563         * lib/regex_internal.h (BITSET_WORD_BITS):
49564         Work around a bug in 64-bit PGC (before version 6.1-2), where the
49565         preprocessor mishandles large unsigned values as if they were signed.
49566         Problem reported by Claudio Fontana in
49567         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
49568
49569 2006-01-10  Jim Meyering  <jim@meyering.net>
49570
49571         Avoid the double-free (first in fts_read, second in fts_close) that
49572         would occur when an `active' directory is made inaccessible (e.g.,
49573         via chmod a-x) during a traversal.
49574         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
49575         before returning.  Reproduce this failure by
49576         mkdir -p a/b; cd a; chmod a-x . b
49577         Reported by Stavros Passas.
49578
49579         Sync from coreutils.
49580         * lib/sha1.c: Tweak grammar in a comment.
49581
49582 2006-01-10  Jim Meyering  <jim@meyering.net>
49583
49584         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
49585         Patch by Joerg Sonnenberger.
49586
49587 2006-01-10  Bruno Haible  <bruno@clisp.org>
49588
49589         * modules/readutmp: Depend on module free.
49590         * modules/strtok_r: Depend on module restrict.
49591
49592 2006-01-10  Bruno Haible  <bruno@clisp.org>
49593
49594         * modules/gettext (configure.ac): Add an invocation of
49595         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
49596
49597 2006-01-10  Bruno Haible  <bruno@clisp.org>
49598
49599         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
49600         Reported by Werner Lemberg <wl@gnu.org>.
49601
49602 2006-01-10  Bruno Haible  <bruno@clisp.org>
49603
49604         * lib/localcharset.c: Update from GNU gettext.
49605
49606 2006-01-10  Bruno Haible  <bruno@clisp.org>
49607
49608         * lib/argp.h (__const): Remove macro. Use const instead.
49609         * lib/argp-fmtstream.h (__const): Likewise.
49610         * lib/glob_.h (__const): Remove macro.
49611         * lib/glob-libc.h: Use const instead of __const.
49612
49613 2006-01-10  Bruno Haible  <bruno@clisp.org>
49614
49615         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
49616         variable.
49617         Needed to avoid an automake error regarding the 'gettext' module.
49618
49619 2006-01-09  Simon Josefsson  <jas@extundo.com>
49620
49621         * modules/inet_ntop (Depends-on): Add restrict.
49622
49623 2006-01-09  Simon Josefsson  <jas@extundo.com>
49624
49625         * modules/gc-rijndael-tests (License): Put under LGPL.
49626
49627         * modules/gc-des-tests (License): Likewise.
49628
49629         * modules/gc-arcfour-tests (License): Likewise.
49630
49631         * modules/gc-arctwo-tests (License): Likewise.
49632
49633         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
49634
49635         * modules/gc-hmac-sha1-tests (Files): Likewise.
49636
49637         * modules/gc-hmac-md5-tests (License): Likewise.
49638
49639         * modules/gc-sha1-tests (License): Likewise.
49640
49641         * modules/gc-md5-tests (License): Likewise.
49642
49643         * modules/gc-md4-tests (License): Likewise.
49644
49645         * modules/gc-md2-tests (License): Likewise.
49646
49647         * modules/gc-tests (License): Likewise.
49648
49649         * modules/des-tests (License): Likewise.
49650
49651         * modules/md4-tests (License): Likewise.
49652
49653         * modules/md2-tests (License): Likewise.
49654
49655 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
49656
49657         Sync from coreutils:
49658
49659         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
49660         * modules/lib-ignore: New file.
49661         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
49662         chdir-safer.m4, lchmod.m4.
49663         * modules/openat: Add mkdirat.c, openat-priv.h.
49664
49665 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
49666
49667         Sync from coreutils.
49668         * m4/lib-ignore.m4: New file.
49669         * m4/lchmod.m4: New file.
49670
49671 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
49672
49673         Sync from coreutils.
49674         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
49675         for write access: POSIX says that must fail.
49676         * lib/fts.c (diropen): Likewise.
49677         * lib/save-cwd.c (save_cwd): Likewise.
49678         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
49679         well, for minor improvements on hosts that lack O_DIRECTORY.
49680         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
49681         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
49682         Fall back on chown if open failed with EACCES.
49683
49684         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
49685         Report an error at compile-time if only a 1-second nominal clock
49686         resolution is found.
49687
49688         * lib/lchmod.h: New file.
49689         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
49690         (make_dir_parents): Use lchown rather than chown, and
49691         lchmod rather than chmod.
49692
49693         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
49694         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
49695         "proc" reported by n0dalus.
49696
49697         * lib/mountlist.c: Include <limits.h>.
49698         (dev_from_mount_options)
49699         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
49700         New function.  It no longer assumes "dev=" has the System V meaning
49701         on Linux (since it doesn't).  It also parses "dev=" more carefully.
49702         (read_file_system_list)
49703         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
49704         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
49705         dev= in that case.
49706
49707         * lib/posixtm.h (PDS_PRE_2000): New macro.
49708         * lib/posixtm.c (year): Arg is now syntax_bits rather than
49709         allow_century.  All usages changed.  Reject dates outside the range
49710         1969-1999 if PDS_PRE_2000 is used.
49711
49712 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
49713
49714         Sync from coreutils.
49715         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
49716         (Time of day items): Mention the possibility of leap seconds.
49717         Problem reported by Dr. David Alan Gilbert.
49718
49719 2006-01-09  Jim Meyering  <jim@meyering.net>
49720
49721         Sync from coreutils.
49722
49723         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
49724
49725         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
49726
49727         * lib/modechange.c (mode_compile): Reject an invalid mode string
49728         that starts with an octal digit.  From Andreas Gruenbacher.
49729
49730         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
49731         and dup to open_safer and dup_safer, respectively.
49732         (openat_permissive): Fix typo in comment.
49733
49734         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
49735         "gettext.h"; either no longer needed or are guaranteed by openat.h.
49736         (_): Remove; no longer needed.
49737         (openat): Renamed from rpl_openat; no need for rpl_openat
49738         since openat.h renames openat for us.
49739         Replace most of the body with a call to openat_permissive,
49740         to avoid duplicate code.
49741         Port to (probably hypothetical) environments were mode_t is
49742         wider than int.
49743         (openat_permissive): Require mode arg, so that we can check
49744         types better.  Put it just after flags.  Change cwd failure
49745         indicator from pointer-to-bool to pointer-to-errno-value.
49746         All callers changed.
49747         Invoke openat_save_fail and/or openat_restore_fail if
49748         cwd_errno is null, so that openat can call us.
49749         (openat_permissive, fdopendir, fstatat, unlinkat):
49750         Simplify errno handling to avoid some duplicate code,
49751         as it's OK to set errno on success.
49752         * lib/openat.h: Revamp code so that function macros depend on
49753         __OPENAT_PREFIX only, not also on AT_FDCWD.
49754         (openat_ro): Remove.  Caller changed to use openat_permissive.
49755         (openat_permissive): Now a macro, if not a function.
49756         (openat_restore_fail, openat_save_fail): Now always functions,
49757         since mkdirat needs them even if __OPENAT_PREFIX is defined.
49758
49759         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
49760         and openat.c.
49761         * lib/mkdirat.c: Include openat-priv.h.
49762         Remove definitions of macros defined therein.
49763         * lib/openat.c: Likewise.
49764
49765         * lib/mkdirat.c (mkdirat): New file and function.
49766         * lib/openat.h (mkdirat): Declare.
49767
49768         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
49769
49770         * lib/openat.h (openat_permissive): Declare.
49771         (openat_ro): Define.
49772
49773         * lib/openat.c (EXPECTED_ERRNO): New macro.
49774         (openat_permissive): New function -- used in remove.c rewrite.
49775         (all functions): Set errno just before returning, only if there
49776         was an actual failure.
49777         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
49778
49779         Emulate openat-family functions using Linux's procfs, if possible.
49780         Idea and some code based on Ulrich Drepper's glibc changes.
49781
49782         * lib/openat.c: (BUILD_PROC_NAME): New macro.
49783         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
49784         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
49785         before falling back on save_cwd and restore_cwd.
49786         (fdopendir, fstatat, unlinkat): Likewise.
49787
49788         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
49789         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
49790
49791         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
49792         as second argument to va_arg.  Otherwise, some versions of gcc
49793         warn that `if this code is reached, the program will abort'.
49794
49795 2006-01-09  Jim Meyering  <jim@meyering.net>
49796
49797         Sync from coreutils.
49798         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
49799         Require openat-priv.h.
49800
49801 2006-01-09  Bruno Haible  <bruno@clisp.org>
49802
49803         * modules/strnlen (Include): Use strnlen.h.
49804
49805 2006-01-09  Bruno Haible  <bruno@clisp.org>
49806
49807         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
49808
49809 2006-01-09  Bruno Haible  <bruno@clisp.org>
49810
49811         * lib/sysexit_.h (EX_OK): New macro.
49812         Suggested by Martin Lambers <marlam@marlam.de>.
49813
49814 2006-01-09  Bruno Haible  <bruno@clisp.org>
49815
49816         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
49817         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
49818
49819 2006-01-09  Bruno Haible  <bruno@clisp.org>
49820
49821         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
49822         numbers.
49823
49824 2006-01-09  Bruno Haible  <bruno@clisp.org>
49825
49826         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
49827         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
49828         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
49829         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
49830
49831 2006-01-09  Bruno Haible  <bruno@clisp.org>
49832
49833         * build-aux/javacomp.sh.in: New file, moved from lib/.
49834         * modules/javacomp-script (Files): Update.
49835         (configure.ac): Add AC_CONFIG_FILES invocation.
49836         (EXTRA_DIST): Remove variable.
49837
49838         * build-aux/javaexec.sh.in: New file, moved from lib/.
49839         * modules/javaexec (Files): Update.
49840         (configure.ac): Add AC_CONFIG_FILES invocation.
49841         (EXTRA_DIST): Remove javaexec.sh.in.
49842
49843         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
49844         * modules/csharpcomp-script (Files): Update.
49845         (configure.ac): Add AC_CONFIG_FILES invocation.
49846         (EXTRA_DIST): Remove variable.
49847
49848         * build-aux/csharpexec.sh.in: New file, moved from lib/.
49849         * modules/csharpexec (Files): Update.
49850         (configure.ac): Add AC_CONFIG_FILES invocation.
49851         (EXTRA_DIST): Remove csharpexec.sh.in.
49852
49853 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
49854
49855         Sync from coreutils.
49856
49857         Add POSIX ACL support
49858         * lib/acl.h (copy_acl, set_acl): Add declarations.
49859         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
49860         systems other than Linux.
49861         (chmod_or_fchmod): New function: use fchmod when possible,
49862         and chmod otherwise.
49863         (file_has_acl): Add a POSIX ACL implementation, with a
49864         Linux-specific subcase.
49865         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
49866         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
49867         acls are unsupported.
49868         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
49869         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
49870         are unsupported.
49871
49872 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
49873
49874         Sync from coreutils.
49875         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
49876
49877 2006-01-07  Bruno Haible  <bruno@clisp.org>
49878
49879         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
49880         gl_EARLY.
49881
49882 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
49883
49884         * lib/strftime.c (tzname): Don't declare if it is already #defined.
49885         Problem reported for Mingw by Mark Junker.
49886
49887 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
49888
49889         * README: Gnulib normally doesn't generate a tarball.
49890
49891 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
49892
49893         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
49894         long int, not int, for nanosecond counts, so that people who are
49895         used to POSIX struct timespec won't be surprised.  Reported by Jim
49896         Meyering.
49897
49898 2005-12-28  Bruno Haible  <bruno@clisp.org>
49899
49900         * build-aux/config.rpath: Update from GNU gettext.
49901
49902 2005-12-16  Jim Meyering  <jim@meyering.net>
49903
49904         * modules/fprintftime: New module.
49905         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
49906
49907 2005-12-16  Jim Meyering  <jim@meyering.net>
49908
49909         * m4/fprintftime.m4: New file.
49910
49911 2005-12-16  Jim Meyering  <jim@meyering.net>
49912
49913         * lib/fprintftime.c, lib/fprintftime.h: New files.
49914
49915 2005-12-15  Simon Josefsson  <jas@extundo.com>
49916
49917         * modules/socklen (configure.ac): Fix M4 macro name, to align with
49918         new m4/socklen.m4.
49919
49920 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49921
49922         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
49923         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
49924
49925 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49926
49927         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
49928         * lib/argp-help.c (fill_in_uparams): Check if the constructed
49929         struct uparams is valid. Fall back to the default values if it is
49930         not.
49931
49932 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49933
49934         * modules/argp (Files): Add argp-pin.c
49935         (Depends-on): dirname
49936         (lib_SOURCES): Add argp-pin.c
49937
49938 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49939
49940         * m4/argp.m4:  Check if program_invocation_name and
49941         program_invocation_short_name are declared and define appropriate
49942         macros if they are not.
49943
49944 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49945
49946         * lib/argp-help.c (__argp_base_name): New function
49947         (__argp_short_program_name): Rewrite using __argp_base_name
49948         * lib/argp-namefrob.h: Define program_invocation_name and
49949         program_invocation_short_name if requested
49950         (__argp_base_name): Add prototype
49951         * lib/argp-parse.c (argp_def): Use gettext wrappers
49952         (argp_default_parser): Use __argp_base_name
49953         * lib/argp-pin.c: New file. Defines program_invocation_name and
49954         program_invocation_short_name on systems that lack them.
49955
49956 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
49957
49958         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
49959         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
49960         porting problem reported by Georg Schwarz in
49961         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
49962
49963 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
49964
49965         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
49966         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
49967         porting problem reported by Georg Schwarz in
49968         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
49969
49970 2005-12-05  Bruno Haible  <bruno@clisp.org>
49971
49972         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
49973         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
49974         Reported by Mark Junker <mjscod@gmx.de>.
49975
49976 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
49977
49978         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
49979         Use implementation from Albert Chin, with some
49980         comments/corrections by Stepan Kasal and myself.
49981
49982 2005-12-02  Bruno Haible  <bruno@clisp.org>
49983
49984         * gnulib-tool (func_import): Accept GPLed build tool modules when
49985         --lgpl is given.
49986         * modules/csharpcomp-script: New file.
49987         * modules/csharpcomp: Depend on it.
49988         * modules/javacomp-script: New file.
49989         * modules/javacomp: Depend on it.
49990         Suggested by Simon Josefsson.
49991
49992 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
49993
49994         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
49995         statement, to work around an HP-UX 10.20 compiler bug reported by
49996         Peter O'Gorman.
49997
49998 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
49999
50000         * modules/savedir (Depends-on): Add openat.
50001
50002 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
50003
50004         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
50005         (uintmax_t) [defined uintmax_t]: Do not declare.
50006         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
50007         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
50008         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
50009         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
50010         sake of portability to weird hosts that C allows (though we don't
50011         know of any practical examples).
50012
50013         * lib/savedir.h (fdsavedir): New decl.
50014         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
50015         contains most of the former guts of savedir.
50016         (savedir): Use savedirstream.
50017         Include "openat.h".
50018
50019 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
50020
50021         * modules/obstack (Files): Add m4/ulonglong.m4.
50022         Problem reported by Davide Angelocola.
50023
50024 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
50025
50026         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
50027         coreutils no longer futzes with rounding modes.
50028
50029 2005-11-14  Jim Meyering  <jim@meyering.net>
50030
50031         * lib/mkstemp-safer.c: Include <config.h>, required for possible
50032         replacement of mkstemp.
50033
50034 2005-11-10  Simon Josefsson  <jas@extundo.com>
50035
50036         * lib/readline.c: Remove EOL.
50037
50038 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
50039
50040         * modules/gethrxtime (Depends-on): Add gettime.
50041
50042 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
50043
50044         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
50045         or gettimeofday; no longer needed.
50046
50047 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
50048
50049         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
50050         time business.
50051         (gethrxtime) [! (HAVE_NANOUPTIME
50052         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
50053         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
50054         our own approximation.
50055
50056 2005-11-08  Eric Blake  <ebb9@byu.net>
50057
50058         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
50059
50060 2005-11-08  Eric Blake  <ebb9@byu.net>
50061
50062         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
50063
50064 2005-11-04  Bruno Haible  <bruno@clisp.org>
50065
50066         * gnulib-tool: Implement --update mode.
50067
50068 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
50069
50070         Fix porting problem reported by Theodoros V. Kalamatianos.
50071         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
50072         Don't assume that futimes failing means we must fail.
50073
50074 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
50075
50076         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
50077         variables to suggest the intended function of the PATH_MAX check.
50078
50079 2005-10-30  Kean Johnston  <jkj@sco.com>
50080
50081         Trivial changes to support SCO systems.
50082         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
50083         as PATH_MAX.
50084         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
50085         where __ptr is null when no I/O is pending.
50086
50087 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
50088
50089         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
50090         leave errno alone.  Problem reported by Dmitry V. Levin.
50091
50092 2005-10-28  Simon Josefsson  <jas@extundo.com>
50093
50094         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
50095         Test more.
50096
50097         * tests/test-gc-md2.c, tests/test-md2.c: New files.
50098
50099         * modules/md2, modules/md2-tests: New files.
50100
50101 2005-10-28  Simon Josefsson  <jas@extundo.com>
50102
50103         * m4/inet_ntop.m4: More tests.
50104
50105         * m4/gc-md2.m4, md2.m4: New file.
50106
50107 2005-10-28  Simon Josefsson  <jas@extundo.com>
50108
50109         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
50110         "restrict" keywords, as per POSIX.  Protect the function
50111         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
50112         Don't use K&R prototypes.  Check the sprintf return values.
50113         Re-define EAFNOSUPPORT if not present.  Indent.
50114
50115         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
50116         suggested by Bruno Haible <bruno@clisp.org>.
50117
50118         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
50119
50120         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
50121
50122         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
50123         libgcrypt).
50124
50125         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
50126
50127         * lib/md2.h, lib/md2.c: New files.
50128
50129 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
50130
50131         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
50132         errno alone.  Problem reported by Frederic Jolliton.
50133
50134 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
50135
50136         * modules/verify (License): Change from GPL to LGPL.  This is a
50137         tiny module and there are apparently near-equivalents that are
50138         under the BSD license.
50139
50140 2005-10-24  Simon Josefsson  <jas@extundo.com>
50141
50142         * modules/sha1: Relicense to LGPL.
50143
50144 2005-10-24  Simon Josefsson  <jas@extundo.com>
50145
50146         * lib/md4.h: Shrink buffer size, now that we changed the type.
50147
50148 2005-10-23  Simon Josefsson  <jas@extundo.com>
50149
50150         * gnulib-tool (func_import): Fix --tests-base.
50151
50152 2005-10-22  Simon Josefsson  <jas@extundo.com>
50153
50154         * modules/arcfour (Depends-on): Need stdint.
50155
50156 2005-10-22  Simon Josefsson  <jas@extundo.com>
50157
50158         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
50159         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
50160
50161 2005-10-22  Simon Josefsson  <jas@extundo.com>
50162
50163         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
50164         suggested by Bruno Haible <bruno@clisp.org>.
50165
50166 2005-10-22  Simon Josefsson  <jas@extundo.com>
50167
50168         * lib/crc.h: Include stddef.h, for size_t.
50169
50170 2005-10-22  Simon Josefsson  <jas@extundo.com>
50171
50172         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
50173         arcfour_context struct (simplify test vector testing in GNU
50174         Shishi).
50175
50176 2005-10-21  Simon Josefsson  <jas@extundo.com>
50177
50178         * modules/des, modules/des-tests: New files.
50179
50180         * modules/gc-des, modules/gc-des-tests: New files.
50181
50182         * tests/test-des.c, tests/test-gc-des.c: New file.
50183
50184 2005-10-21  Simon Josefsson  <jas@extundo.com>
50185
50186         * modules/arctwo, modules/arctwo-tests: New files.
50187
50188         * tests/test-arctwo.c: New file.
50189
50190         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
50191
50192         * tests/test-gc-arctwo.c: New file.
50193
50194 2005-10-21  Simon Josefsson  <jas@extundo.com>
50195
50196         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
50197         Bruno Haible <bruno@clisp.org>.
50198
50199         * m4/gc-des.m4: New file.
50200
50201 2005-10-21  Simon Josefsson  <jas@extundo.com>
50202
50203         * m4/arctwo.m4: New file.
50204
50205         * m4/gc-arctwo.m4: New file.
50206
50207 2005-10-21  Simon Josefsson  <jas@extundo.com>
50208
50209         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
50210         block.
50211
50212 2005-10-21  Simon Josefsson  <jas@extundo.com>
50213
50214         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
50215         <bruno@clisp.org>.
50216
50217         * lib/hmac-sha1.c (hmac_sha1): Likewise.
50218
50219         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
50220         Bruno Haible <bruno@clisp.org>.
50221
50222         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
50223         <bruno@clisp.org>.
50224
50225 2005-10-21  Simon Josefsson  <jas@extundo.com>
50226
50227         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
50228
50229 2005-10-21  Simon Josefsson  <jas@extundo.com>
50230
50231         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
50232
50233 2005-10-21  Simon Josefsson  <jas@extundo.com>
50234
50235         * lib/des.h, lib/des.c: New files.
50236
50237         * lib/gc-gnulib.c: Support DES.c
50238
50239 2005-10-21  Simon Josefsson  <jas@extundo.com>
50240
50241         * lib/arctwo.h, lib/arctwo.c: New files.
50242
50243         * lib/gc-gnulib.c: Support ARCTWO.
50244
50245 2005-10-21  Simon Josefsson  <jas@extundo.com>
50246
50247         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
50248         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50249
50250 2005-10-21  Simon Josefsson  <jas@extundo.com>
50251
50252         * gnulib-tool (func_import, func_create_testdir): Define automake
50253         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
50254         Makefile.am snippet),
50255         suggested by Bruno Haible <bruno@clisp.org>.
50256
50257         * modules/gc (Makefile.am): Use it.
50258
50259 2005-10-21  Bruno Haible  <bruno@clisp.org>
50260
50261         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
50262         patch.
50263
50264 2005-10-19  Simon Josefsson  <jas@extundo.com>
50265
50266         * tests/test-gc-rijndael.c: New file.
50267
50268         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
50269
50270 2005-10-19  Simon Josefsson  <jas@extundo.com>
50271
50272         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
50273         interface too.
50274
50275 2005-10-19  Simon Josefsson  <jas@extundo.com>
50276
50277         * tests/test-gc-arcfour.c: New file.
50278
50279         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
50280
50281 2005-10-19  Simon Josefsson  <jas@extundo.com>
50282
50283         * modules/gc-md4, modules/gc-md4-tests: New file.
50284
50285         * tests/test-gc-md4.c: New file.
50286
50287 2005-10-19  Simon Josefsson  <jas@extundo.com>
50288
50289         * m4/gc-md4.m4: New file.
50290
50291 2005-10-19  Simon Josefsson  <jas@extundo.com>
50292
50293         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
50294         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
50295         <kasal@ucw.cz>.
50296
50297 2005-10-19  Simon Josefsson  <jas@extundo.com>
50298
50299         * m4/gc-arcfour.m4: New file.
50300
50301         * m4/gc-rijndael.m4: New file.
50302
50303 2005-10-19  Simon Josefsson  <jas@extundo.com>
50304
50305         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
50306
50307 2005-10-19  Simon Josefsson  <jas@extundo.com>
50308
50309         * lib/gc-gnulib.c: Support ARCFOUR.
50310
50311 2005-10-19  Simon Josefsson  <jas@extundo.com>
50312
50313         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
50314         support.
50315
50316         * lib/gc.h: Add ECB enum type.
50317
50318         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
50319
50320 2005-10-18  Simon Josefsson  <jas@extundo.com>
50321
50322         * tests/test-md5.c: New file.
50323
50324         * modules/md5-tests: New file.
50325
50326 2005-10-18  Simon Josefsson  <jas@extundo.com>
50327
50328         * tests/test-md4.c: New file.
50329
50330         * modules/md4, modules/md4-tests: New files.
50331
50332 2005-10-18  Simon Josefsson  <jas@extundo.com>
50333
50334         * m4/md4.m4: New file.
50335
50336 2005-10-18  Simon Josefsson  <jas@extundo.com>
50337
50338         * lib/md4.h, lib/md4.c: New files, based on md5.?.
50339
50340 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
50341
50342         * gnulib-tool (func_create_testdir): Omit the second check whether
50343         BUILT_SOURCES in nonempty.
50344
50345 2005-10-17  Simon Josefsson  <jas@extundo.com>
50346
50347         * tests/test-rijndael.c: New file.
50348
50349 2005-10-17  Simon Josefsson  <jas@extundo.com>
50350
50351         * modules/sha1: Depend on stdint instead of md5.
50352
50353         * modules/md5: Depend on stdint, remove uint32_t.
50354
50355 2005-10-17  Simon Josefsson  <jas@extundo.com>
50356
50357         * modules/gc-sha1-tests: New file.
50358
50359         * tests/test-gc-sha1.c: New file.
50360
50361 2005-10-17  Simon Josefsson  <jas@extundo.com>
50362
50363         * m4/md5.m4: Remove call to uint32_t.m4.
50364
50365 2005-10-17  Simon Josefsson  <jas@extundo.com>
50366
50367         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
50368
50369         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
50370         md5.h.
50371
50372         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
50373
50374         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
50375
50376 2005-10-17  Simon Josefsson  <jas@extundo.com>
50377
50378         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
50379
50380 2005-10-17  Simon Josefsson  <jas@extundo.com>
50381
50382         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
50383
50384 2005-10-17  Simon Josefsson  <jas@extundo.com>
50385
50386         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
50387
50388         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
50389
50390 2005-10-17  Bruno Haible  <bruno@clisp.org>
50391
50392         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
50393         that it can also be used in a test.
50394
50395 2005-10-16  Bruno Haible  <bruno@clisp.org>
50396
50397         * gnulib-tool (func_emit_tests_Makefile_am): Also define
50398         TESTS_ENVIRONMENT, so that individual tests can augment it.
50399
50400         * gnulib-tool (func_create_testdir): Use an intermediate target for
50401         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
50402         macros, like $(ALLOCA_H), which cannot be passed through the command
50403         line.
50404
50405 2005-10-15  Simon Josefsson  <jas@extundo.com>
50406
50407         * modules/rijndael-tests: New file.
50408
50409         * modules/rijndael: New file.
50410
50411 2005-10-15  Simon Josefsson  <jas@extundo.com>
50412
50413         * m4/rijndael.m4: New file.
50414
50415 2005-10-15  Simon Josefsson  <jas@extundo.com>
50416
50417         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
50418
50419         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
50420
50421 2005-10-14  Simon Josefsson  <jas@extundo.com>
50422
50423         * tests/test-arcfour.c: New file.
50424
50425         * modules/arcfour, modules/arcfour-tests: New files.
50426
50427 2005-10-14  Simon Josefsson  <jas@extundo.com>
50428
50429         * m4/arcfour.m4: New file.
50430
50431 2005-10-14  Simon Josefsson  <jas@extundo.com>
50432
50433         * lib/arcfour.h, lib/arcfour.c: New files.
50434
50435 2005-10-14  Roland McGrath  <roland@redhat.com>
50436
50437         Import from libc.  [BZ #1331]
50438         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
50439         macro argument.
50440         Reported by Matej Vela <vela@debian.org>.
50441
50442 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
50443
50444         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
50445         include <wchar.h>; no longer needed.
50446
50447 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
50448
50449         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
50450
50451 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
50452         and  Ulrich Drepper  <drepper@redhat.com>
50453
50454         Import from libc.
50455         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
50456         instead of inline stream orientation test and two separate
50457         function calls.  Pay no attention to USE_IN_LIBIO.
50458
50459 2005-10-13  Simon Josefsson  <jas@extundo.com>
50460
50461         * modules/gc-hmac-md5-tests: New file.
50462
50463         * tests/test-gc-hmac-sha1.c: New file.
50464
50465         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
50466
50467         * modules/gc-hmac-md5-tests: New file.
50468
50469         * tests/test-gc-md5.c: New file.
50470
50471         * modules/gc-md5-tests: New file.
50472
50473 2005-10-13  Simon Josefsson  <jas@extundo.com>
50474
50475         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
50476         Move memory allocation outside of loop.
50477
50478 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
50479
50480         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
50481         intermediate directory is in a read-only file system.  Problem
50482         reported by Eric Blake.
50483
50484 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
50485
50486         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
50487
50488 2005-10-12  Simon Josefsson  <jas@extundo.com>
50489
50490         * tests/test-hmac-sha1.c: New file.
50491
50492         * modules/hmac-sha1-tests: New file.
50493
50494         * modules/hmac-sha1: New file.
50495
50496 2005-10-12  Simon Josefsson  <jas@extundo.com>
50497
50498         * modules/gc-sha1: New file.
50499
50500 2005-10-12  Simon Josefsson  <jas@extundo.com>
50501
50502         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
50503
50504         * tests/test-gc-pbkdf2-sha1.c: New file.
50505
50506 2005-10-12  Simon Josefsson  <jas@extundo.com>
50507
50508         * modules/gc-md5, modules/gc-hmac-md5: New files.
50509
50510         * modules/gc (Files): Remove md5, memxor and hmac files.
50511
50512 2005-10-12  Simon Josefsson  <jas@extundo.com>
50513
50514         * m4/gc-pbkdf2-sha1.m4: New file.
50515
50516         * m4/gc-hmac-sha1.m4: New file.
50517
50518         * m4/gc-sha1: New file.
50519
50520         * m4/hmac-sha1.m4: New file.
50521
50522 2005-10-12  Simon Josefsson  <jas@extundo.com>
50523
50524         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
50525
50526         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
50527
50528 2005-10-12  Simon Josefsson  <jas@extundo.com>
50529
50530         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
50531         suggested by Bruno Haible <bruno@clisp.org>.
50532
50533 2005-10-12  Simon Josefsson  <jas@extundo.com>
50534
50535         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
50536
50537 2005-10-12  Simon Josefsson  <jas@extundo.com>
50538
50539         * lib/gc-pbkdf2-sha1.c: New file.
50540
50541         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
50542
50543 2005-10-12  Simon Josefsson  <jas@extundo.com>
50544
50545         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
50546
50547         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
50548
50549 2005-10-12  Simon Josefsson  <jas@extundo.com>
50550
50551         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
50552         GC_USE_HMAC_MD5, respectively.
50553
50554         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
50555         (gc_md5): Fix typo.
50556
50557         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
50558
50559         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
50560
50561         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
50562
50563 2005-10-12  Bruno Haible  <bruno@clisp.org>
50564
50565         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
50566         Reported by Stepan Kasal <kasal@ucw.cz>.
50567
50568 2005-10-11  Simon Josefsson  <jas@extundo.com>
50569
50570         * tests/test-crc.c: New file.
50571
50572         * modules/crc, modules/crc-tests: New files.
50573
50574 2005-10-11  Simon Josefsson  <jas@extundo.com>
50575
50576         * m4/crc.m4: New file.
50577
50578 2005-10-11  Simon Josefsson  <jas@extundo.com>
50579
50580         * lib/gc.h: Add gc_hash and gc_hash_buffer.
50581
50582         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
50583
50584         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
50585
50586 2005-10-11  Simon Josefsson  <jas@extundo.com>
50587
50588         * lib/crc.h, lib/crc.c: New files.
50589
50590         * lib/gc.h (gc_hash_buffer): Add doc.
50591
50592 2005-10-11  Bruno Haible  <bruno@clisp.org>
50593
50594         * modules/c-strcasestr: New file.
50595         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
50596
50597 2005-10-11  Bruno Haible  <bruno@clisp.org>
50598
50599         * modules/c-strcase: New file.
50600         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
50601
50602 2005-10-11  Bruno Haible  <bruno@clisp.org>
50603
50604         * lib/strcasecmp.c: Include limits.h.
50605         (strcasecmp): Avoid integer overflow on exotic platforms.
50606         * lib/strncasecmp.c: Include limits.h.
50607         (strncasecmp): Avoid integer overflow on exotic platforms.
50608         Reported by Paul Eggert.
50609
50610 2005-10-11  Bruno Haible  <bruno@clisp.org>
50611
50612         * lib/c-strcasestr.h: New file, from GNU gettext.
50613         * lib/c-strcasestr.c: New file, from GNU gettext.
50614
50615 2005-10-11  Bruno Haible  <bruno@clisp.org>
50616
50617         * lib/c-strcase.h: New file, from GNU gettext.
50618         * lib/c-strcasecmp.c: New file, from GNU gettext.
50619         * lib/c-strncasecmp.c: New file, from GNU gettext.
50620
50621 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
50622
50623         * modules/mempcpy (License): GPL -> LGPL.
50624         * modules/strchrnul (License): Likewise.
50625         * modules/sysexits (License): Likewise.
50626
50627 2005-10-08  Simon Josefsson  <jas@extundo.com>
50628
50629         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
50630
50631 2005-10-07  Simon Josefsson  <jas@extundo.com>
50632
50633         * m4/memxor.m4: Remove gl_C_RESTRICT call.
50634
50635 2005-10-06  Simon Josefsson  <jas@extundo.com>
50636
50637         * tests/test-hmac-md5.c: New file.
50638
50639         * modules/hmac-md5-tests: New file.
50640
50641         * modules/hmac-md5: New file.
50642
50643 2005-10-06  Simon Josefsson  <jas@extundo.com>
50644
50645         * m4/hmac-md5.m4: New file.
50646
50647         * m4/memxor.m4: Require gl_C_RESTRICT.
50648
50649 2005-10-06  Simon Josefsson  <jas@extundo.com>
50650
50651         * lib/memxor.c (memxor): Avoid casts and warnings.
50652
50653 2005-10-06  Simon Josefsson  <jas@extundo.com>
50654
50655         * lib/hmac-md5.c: New file.
50656
50657         * lib/hmac.h: New file.
50658
50659 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
50660
50661         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
50662         promotes to int, not unsigned int, to catch the AIX 5.3
50663         compiler bug.
50664
50665 2005-10-05  Simon Josefsson  <jas@extundo.com>
50666
50667         * modules/memxor: New file.
50668
50669         * modules/iconv (Files): Move config.rpath to havelib, it is used
50670         there.
50671
50672         * modules/havelib (Files): Add config.rpath.
50673
50674 2005-10-05  Simon Josefsson  <jas@extundo.com>
50675
50676         * m4/memxor.m4: New file.
50677
50678 2005-10-05  Simon Josefsson  <jas@extundo.com>
50679
50680         * lib/memxor.c (memxor): Fix compiler error.
50681
50682         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
50683         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
50684
50685         * lib/memxor.h, lib/memxor.c: New files.
50686
50687         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
50688         we assume all systems have it, suggested by Jim Meyering
50689         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
50690         any systems lack sys/socket.h; mingw32 is known to lack it, but we
50691         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
50692         same reasons.
50693
50694 2005-10-05  Simon Josefsson  <jas@extundo.com>
50695
50696         * config/srclist.txt: Add glibc bug 1423 for md5.h.
50697
50698 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
50699
50700         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
50701         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
50702         needed, since the source code now assumes these .h files.
50703
50704 2005-10-05  Derek Price  <derek@ximbiot.com>
50705
50706         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
50707
50708 2005-10-05  Bruno Haible  <bruno@clisp.org>
50709
50710         * modules/stdint (License): Change to LGPL.
50711
50712 2005-10-04  Simon Josefsson  <jas@extundo.com>
50713
50714         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
50715         D. Baushke" <mdb@gnu.org>.
50716
50717 2005-10-04  Bruno Haible  <bruno@clisp.org>
50718
50719         * lib/verify.h (verify_true): Provide alternative definition for C++.
50720
50721 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
50722
50723         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
50724         (SSIZE_MAX): New macro, if not already defined.
50725         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
50726         than 2 GiB.
50727
50728 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
50729
50730         Sync from coreutils.
50731         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
50732         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
50733         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
50734         ULLONG_MAX doesn't work with 2.7.2.1.
50735
50736 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
50737
50738         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
50739         From Ben Pfaff.
50740
50741         * modules/exclude (Depends-on): Depend on verify.
50742         * modules/strtoimax (Depends-on): Likewise.
50743         * modules/utimecmp (Depends-on): Likewise.
50744
50745 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
50746
50747         * lib/exclude.c: Include verify.h.
50748         (verify): Remove.  All callers changed to use verify.h's version.
50749         * lib/strtoimax.c: Likewise.
50750         * lib/utimecmp.c: Likewis.e
50751
50752         Sync from coreutils.
50753         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
50754         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
50755         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
50756         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
50757         bother returning ENOSYS if settimeofday or stime fails; just let
50758         them return whatever errno they want to return.
50759         * lib/utimens.c: Include unistd.h, for dup2.
50760         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
50761         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
50762
50763 2005-10-02  Jim Meyering  <jim@meyering.net>
50764
50765         Sync from coreutils.
50766         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
50767         from glibc-2.2.5 that fails for read-only files.
50768
50769 2005-10-02  Jim Meyering  <jim@meyering.net>
50770
50771         Sync from coreutils.
50772         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
50773         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
50774         `#if HAVE_CONFIG_H'.
50775         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
50776         Remove AT_FDCWD test.
50777         Do not consume the fd unless successful.
50778         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
50779         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
50780         block, so that we don't even try to compile it if settimeofday is
50781         available.  This works around a compilation failure on OSF1 V5.1,
50782         due to stime requiring a `long int*' while tv_sec is `int'.
50783
50784 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
50785
50786         Sync from coreutils.
50787         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
50788         against `yes', rather than just testing for nonempty.
50789
50790 2005-10-01  Simon Josefsson  <jas@extundo.com>
50791
50792         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
50793         and Darwin.
50794
50795         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
50796         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
50797         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
50798         freeaddrinfo and gai_strerror are declared by the POSIX headers.
50799         Check if struct addrinfo is declared.
50800
50801 2005-10-01  Simon Josefsson  <jas@extundo.com>
50802
50803         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
50804         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
50805         AI_* and EAI_* definitions.  Protect function declarations.
50806
50807 2005-10-01  Jim Meyering  <jim@meyering.net>
50808
50809         Sync from coreutils.
50810
50811         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
50812         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
50813         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
50814         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
50815         in the inet and nsl libraries.  Required on Solaris 5.7.
50816
50817 2005-10-01  Jim Meyering  <jim@meyering.net>
50818
50819         Sync from coreutils.
50820         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
50821         in the inet and nsl libraries.  Required on Solaris 5.7.
50822
50823 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
50824
50825         * lib/getdelim.c (getdelim): Remove unused variables.
50826
50827 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
50828
50829         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
50830         so that the code works even with ancient cpp.  Portability problem
50831         with GCC 2.7.2.1 reported by Thomas M.Ott.
50832
50833 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
50834
50835         * modules/regex (Depends-on): Add strcase.
50836
50837         * modules/gethostname (Licence): Change from GPL to LGPL, since
50838         gethostname.c is a trivial implementation of a standard library
50839         function.
50840         * modules/poll (License): Change from GPL to LGPL, since it's
50841         derived from LGPL code.
50842
50843 2005-09-27  Jim Meyering  <jim@meyering.net>
50844
50845         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
50846         HAVE_CONFIG_H.
50847
50848         * lib/intprops.h (signed_type_or_expr__): Define.
50849         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
50850         for unsigned types.
50851
50852 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
50853
50854         * lib/verify.h (verify_expr): Remove, replacing with:
50855         (verify_true): New macro that returns true instead of void.
50856         (verify_type__): Remove.
50857         (verify): Use verify_true rather than verify_type__.
50858
50859 2005-09-26  Bruno Haible  <bruno@clisp.org>
50860
50861         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
50862         is necessary.
50863         (lib_SOURCES): Remove mbchar.c.
50864         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
50865         (Files): Add m4/mbrtowc.m4.
50866         * modules/mbiter: Likewise.
50867         * modules/mbuiter: Likewise.
50868
50869 2005-09-26  Bruno Haible  <bruno@clisp.org>
50870
50871         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
50872         compile mbchar.c if they are not both present.
50873         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
50874         * m4/mbiter.m4 (gl_MBITER): Likewise.
50875         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
50876         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
50877         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
50878
50879 2005-09-25  Jim Meyering  <jim@meyering.net>
50880
50881         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
50882         also uses socklen_t.
50883
50884 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
50885
50886         * lib/utimens.c (ENOSYS): Define if not already defined.
50887         (futimens): Support having a null PATH if the file descriptor
50888         is nonnegative.
50889
50890         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
50891         Remove.
50892         (__attribute): Define to empty unless GCC 3.1 or later.
50893         This works around a core dump on OpenBSD 3.4, which has GCC
50894         2.95.3, which dumps core when given __attribute__(()).  It also
50895         simplifies other tests, since we really don't want to bother with
50896         worrying about which ancient version of GCC supported what.
50897         Original problem reported by Yoann Vandoorselaere, with part of
50898         the fix suggested by Derek Price.
50899
50900 2005-09-24  Jim Meyering  <jim@meyering.net>
50901
50902         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
50903         so we can once again use a positive bitfield width of 1 -- now we
50904         don't have to explain why we were using a bitfield width of 2.
50905
50906 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
50907
50908         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
50909         and similarly for the other external symbols.  Problem reported
50910         by James Gallager.
50911
50912         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
50913         bug reported by Jim Meyering.
50914
50915         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
50916         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
50917         not needed, since socklen is a prerequisite module.
50918
50919 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
50920
50921         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
50922         Problem reported by Eric Blake.
50923         (getaddrinfo): Initialize se so that it's not garbage.
50924         Redo internal storage allocation so that it doesn't make unportable
50925         assumptions about alignment.
50926         Fix a memory leak.
50927
50928         * lib/utimens.c (futimens): Use futimesat if available.
50929         Prefer it to futimes since it doesn't have the futimes bug.
50930
50931         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
50932         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
50933         Instead, declare a function that returns a pointer to an array,
50934         and use verify_type__ to declare the size of the array.
50935         Problem and germ of a solution reported by Bruno Haible.
50936         (verify_type__): Use 2, not 1, for bitfield size, to avoid
50937         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
50938
50939 2005-09-23  Jim Meyering  <jim@meyering.net>
50940
50941         Sync from coreutils.
50942         Correct build failure (socklen_t not defined) on at least
50943         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
50944         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
50945
50946 2005-09-23  Jim Meyering  <jim@meyering.net>
50947
50948         * modules/getaddrinfo (Depends-on): Add socklen.
50949
50950 2005-09-23  Bruno Haible  <bruno@clisp.org>
50951
50952         * tests/test-verify.c: New file.
50953
50954 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50955
50956         Sync from coreutils.
50957
50958         * modules/argmatch (Depends-on): Add verify.
50959         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
50960         unistd-safer.
50961         * modules/save-cwd (Depends-on): Likewise.
50962
50963         * modules/openat (Files): Add lib/openat-die.c.
50964         (Depends-on): Remove error, exitfail.
50965         Add dirname.
50966
50967         * modules/verify: New file.
50968         * MODULES.html.sh (Diagnostics <assert.h>): New section,
50969         with "verify" module.
50970
50971 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50972
50973         Sync from coreutils.
50974
50975         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
50976         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
50977         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
50978         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
50979         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
50980         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
50981         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
50982         Don't bother checking for string.h, stdlib.h, unistd.h.
50983         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
50984         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
50985         module's job.
50986         * m4/jm-macros.m4 (gl_MACROS): Likewise.
50987         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
50988
50989         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
50990         (gl_GETDATE): Use it.
50991
50992         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
50993
50994 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50995
50996         Sync from coreutils.
50997
50998         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
50999         stat-time.h.
51000         * lib/argmatch.h: Include verify.h
51001         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
51002         (ARGMATCH_ASSERT): Remove; unused.
51003         * lib/canonicalize.c: Assume STDC_HEADERS.
51004         * lib/exclude.c: Include "strcase.h".
51005         * lib/regex_internal.h [!defined _LIBC]: Likewise.
51006         * lib/getusershell.c: Include stdio--.h rather than stdio.h
51007         and stdio-safer.h.
51008         (getusershell): Call fopen, not fopen_safer.
51009         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
51010         Do not include unistd-safer.h.
51011         (save_cwd): Don't call fd_safer; no longer needed
51012         now that we include fcntl--.h.
51013
51014         * lib/getdate.y (relative_time): New type.
51015         (RELATIVE_TIME_0): New constant.
51016         (parser_control): Use relative_time instead of doing it ourselves.
51017         (%union): Add new relative_time rel member.
51018         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
51019         Now typeless.
51020         (relunit, relunit_snumber): Now of type rel.
51021         (zone, rel, relunit, get_date): Adjust to above changes.
51022
51023         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
51024         Do not include unistd-safer.h.
51025         (getloadavg): Don't call fd_safer; no longer needed
51026         now that we include fcntl--.h.
51027
51028         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
51029         (make_dir_parents): Treat ENOSYS like EEXIST.
51030
51031         Improve quality of diagnostics on restore_cwd failure.
51032         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
51033         (make_dir_parents): Last arg is now int * (for errno), not bool *.
51034         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
51035         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
51036         each time through the loop.  Do not diagnose restore_cwd failure;
51037         that is the caller's job (and perhaps the caller does not care).
51038
51039         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
51040         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
51041         If the file already exists but is not a directory, don't bother
51042         to try to make its parents.
51043         Close potential file descriptor leak if we can't chdir("/") (!).
51044         Don't always return true if chdir($PWD) fails; return true only
51045         if the requested action was done successfully (except for the
51046         chdir($PWD)).
51047         Don't log final directory unless we actually made it.
51048         Refactor to avoid duplicate code to fix up permissions.
51049         Don't attempt to fix up parent permissions if chdir($PWD) fails.
51050
51051         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
51052         to make it a bit faster and (I hope) clearer.
51053         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
51054         Fix bug in formats like %2N.
51055
51056         * lib/verify.h: New file.
51057
51058 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
51059
51060         Sync from coreutils.
51061         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
51062
51063 2005-09-22  Jim Meyering  <jim@meyering.net>
51064
51065         Sync from coreutils.
51066
51067         * m4/lstat.m4 (gl_FUNC_LSTAT):
51068         Use AC_LIBSOURCES to require lstat.c and lstat.h.
51069         Remove obsolete comment.
51070         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
51071         * m4/xstrtod.m4: Likewise.
51072
51073         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
51074
51075 2005-09-22  Jim Meyering  <jim@meyering.net>
51076
51077         Sync from coreutils.
51078
51079         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
51080
51081         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
51082         the .tm_year member, since otherwise gcc-4.0 would now warn about
51083         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
51084
51085         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
51086         order to avoid an unsuppressible warning from gcc on 64-bit systems.
51087
51088         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
51089         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
51090         when run in a time zone for which daylight savings time is in effect
51091         for the starting date.
51092
51093         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
51094         stop us from restricting permissions of just-created absolute-named
51095         directories.
51096         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
51097         to restore initial working directory.
51098         * lib/mkdir-p.c (make_dir_parents): New parameter:
51099         different_working_dir, to tell caller if/when we change the working
51100         directory and are unable to return to the initial one.
51101         * lib/mkdir-p.h (make_dir_parents): Update prototype.
51102         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
51103         `return false'.  This fixes a bug introduced on 2004-07-30.
51104
51105         * lib/openat.c (fdopendir): Be sure to close the supplied
51106         file descriptor before returning.  This makes our replacement
51107         implementation a little closer to Solaris's, where fdopendir
51108         ties the file descriptor to the returned DIR* pointer.
51109         * lib/openat.c (unlinkat): New function.
51110         * lib/openat.h (unlinkat): Add prototype.
51111         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
51112         (openat_restore_fail): Rename from openat_restore_die.
51113         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
51114
51115         Provide an alternative to exiting immediately upon save_cwd or
51116         restore_cwd failure.  Now, an application can arrange e.g.,
51117         to perform a longjump in that case.
51118         * lib/openat.c: Include dirname.h.
51119         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
51120         (rpl_openat, fdopendir, fstatat): Call openat_save_die
51121         and openat_restore_die rather than calling error directly.
51122         Don't include "error.h" or "exitfail.h"; they're no longer needed.
51123
51124         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
51125         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
51126         define.
51127
51128         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
51129         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
51130                             int utc, int nanoseconds);
51131         Background:
51132         date should not have to allocate a megabyte of virtual memory to
51133         handle a format argument like +%1048575T.  When implemented with
51134         strftime, it must allocate such a buffer, use strftime to fill it
51135         in, print it, then free it.
51136         With fprintftime, it simply prints everything and exits.
51137         With no need for memory allocation, that's one fewer way to fail.
51138         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
51139         optional field width, not before, so we accept %9:z, not %:9z.
51140         (my_strftime): Be sure to use L_('x') for literals.
51141
51142         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
51143         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
51144         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
51145         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
51146         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
51147         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
51148         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
51149         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
51150         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
51151         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
51152         * lib/xgethostname.c, lib/xreadlink.c:
51153         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
51154
51155         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
51156         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
51157         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
51158         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
51159         and don't include <sys/file.h>).
51160
51161 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
51162
51163         Sync from coreutils.
51164
51165         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
51166         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
51167         [!LDAV_DONE]: Avoid unused variable warning.
51168
51169 2005-09-21  Bruno Haible  <bruno@clisp.org>
51170
51171         * lib/unicodeio.h (unicode_to_mb): New declaration.
51172
51173 2005-09-20  Derek Price  <derek@ximbiot.com>
51174
51175         * lib/getaddrinfo.c: Don't include <netdb.h> included from
51176         getaddrinfo.h.
51177
51178 2005-09-20  Bruno Haible  <bruno@clisp.org>
51179
51180         * gnulib-tool: Remove trailing slashes from the values specified for
51181         --source-base, --m4-base, --tests-base, --aux-dir.
51182         Suggested by Simon Josefsson <jas@extundo.com>.
51183
51184 2005-09-20  Bruno Haible  <bruno@clisp.org>
51185
51186         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
51187         func_modules_to_filelist, func_import, func_create_testdir): Make all
51188         sorting results locale-independent, so that gnulib-cache.m4 doesn't
51189         change when gnulib-tool is invoked in a different locale.
51190
51191 2005-09-19  Simon Josefsson  <jas@extundo.com>
51192
51193         * m4/socklen.m4: Fix typo.
51194
51195 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51196
51197         Use a consistent style for including <config.h>.
51198         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
51199         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
51200         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
51201         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
51202         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
51203         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
51204         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
51205         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
51206         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
51207         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
51208         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
51209         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
51210         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
51211         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
51212         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
51213         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
51214         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
51215         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
51216         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
51217         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
51218         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
51219         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
51220         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
51221         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
51222         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
51223         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
51224         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
51225         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
51226         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
51227         lib/xstrtoumax.c, lib/yesno.c:
51228         Standardize inclusion of config.h.
51229         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
51230         lib/inttostr.h:  Removed inclusion of config.h from header files.
51231         * lib/inttostr.c:  Adjusted in-tree users.
51232         * lib/timespec.h: Remove superfluous warning to include config.h.
51233         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
51234         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
51235         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
51236         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
51237         config.h with HAVE_CONFIG_H.
51238
51239 2005-09-19  Jim Meyering  <jim@meyering.net>
51240
51241         * modules/pathmax (License): Change to LGPL.
51242
51243 2005-09-19  Derek Price  <derek@ximbiot.com>
51244
51245         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
51246
51247 2005-09-19  Bruno Haible  <bruno@clisp.org>
51248
51249         * gnulib-tool (import): Provide default for --tests-base.
51250
51251 2005-09-19  Bruno Haible  <bruno@clisp.org>
51252
51253         * doc/quote.texi: New file, extracted from gnulib.texi.
51254         * doc/ctime.texi: New file, extracted from gnulib.texi.
51255         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
51256         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
51257         * doc/gnulib.texi: Include them.
51258
51259 2005-09-18  Bruno Haible  <bruno@clisp.org>
51260
51261         Portability fix.
51262         * gnulib-tool (func_readlink): New function.
51263         (func_ln_if_changed): Use it.
51264
51265 2005-09-18  Bruno Haible  <bruno@clisp.org>
51266
51267         * gnulib-tool: Support --with-tests also with --import.
51268         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
51269         (func_import): Use variables $testsbase and $inctests. Emit a
51270         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
51271         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
51272         SUBDIRS += $testsdir.
51273         (func_create_testdir): Update.
51274
51275 2005-09-18  Bruno Haible  <bruno@clisp.org>
51276
51277         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
51278         instead of $dry_run.
51279         (func_cp_if_changed, func_mv_if_changed): Remove functions.
51280         (func_ln_if_changed): Don't handle dry-run here.
51281         (func_import): In dry-run mode, detect more precisely which actions
51282         would be performed, and don't use "...ing" verbs.
51283
51284 2005-09-18  Bruno Haible  <bruno@clisp.org>
51285
51286         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
51287         (func_import): Use join on two temporary files instead of three nested
51288         loops, in order to determine which files are new or old.
51289
51290 2005-09-18  Bruno Haible  <bruno@clisp.org>
51291
51292         * gnulib-tool (func_import): Comment out code that spits out the
51293         new files with --dry-run.
51294
51295 2005-09-18  Bruno Haible  <bruno@clisp.org>
51296
51297         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
51298
51299 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
51300
51301         * lib/stat-time.h: New file.
51302         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
51303         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
51304         in a different way.
51305         (timespec_cmp): New function.
51306         * lib/utimecmp.c: Include stat-time.h.
51307         (SYSCALL_RESOLUTION): Depend on whether various struct stat
51308         members exist, not on the obsolescent ST_MTIM_NSEC.
51309         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
51310
51311 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
51312
51313         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
51314
51315 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
51316
51317         * MODULES.html.sh (File system functions): Add stat-time.
51318         * modules/stat-time: New file.
51319         * modules/timespec (Files): Remove m4/st_mtim.m4; this
51320         is now done in a different way, by the stat-time module.
51321         * modules/utimecmp (Depends-on): Add stat-time.
51322
51323 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
51324
51325         * m4/st_mtim.m4: Remove.  Superseded by...
51326         * m4/stat-time.m4: New file.
51327         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
51328         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
51329
51330 2005-09-15  Derek Price  <derek@ximbiot.com>
51331
51332         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
51333
51334 2005-09-15  Derek Price  <derek@ximbiot.com>
51335
51336         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
51337         * lib/regex_internal.c: Ditto, using this...
51338         (__GNUC_PREREQ): ...new macro.
51339         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
51340         using...
51341         (__GNUC_PREREQ): ...this new macro.
51342
51343         * lib/strstr.h: Include string.h. Define strstr as a macro here.
51344
51345 2005-09-15  Derek Price  <derek@ximbiot.com>
51346             Paul Eggert  <eggert@cs.ucla.edu>
51347
51348         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
51349         changes, consolidating in...
51350         * lib/regex_internal.h: ...this file.
51351
51352 2005-09-13  Jim Meyering  <jim@meyering.net>
51353
51354         * lib/canon-host.c: Filter through gnu indent and reword comments
51355         slightly.
51356         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
51357
51358 2005-09-13  Derek Price  <derek@ximbiot.com>
51359
51360         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
51361         failure.
51362         Reported by Jim Meyering  <jim@meyering.net>.
51363
51364 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
51365
51366         * lib/base64.c: Typo.
51367         (base64_encode): Put b64str in initialized data section.
51368
51369 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
51370
51371         Merge glibc and coreutils changes into gnulib, plus a few
51372         extra fixes.
51373         * lib/md5.c: Use #error rather than a string.
51374         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
51375         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
51376         (__attribute__): Define to empty for non recent-GCC.
51377         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
51378         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
51379         Renamed from their non-__ counterparts, with new macros replacing
51380         them if not _LIBC.  Add __THROW attribute.
51381         (rol): Remove.
51382         (struct md5_ctx): Align buffer if using GCC.
51383         * lib/sha1.h (struct sha1_ctx): Likewise.
51384         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
51385         The old name was backwards.
51386         (NOTSWAP): Remove; not used.
51387         (rol): New macro, moved here from md5.h.
51388         (sha1_process_block): Remove a FIXME that doesn't make sense.
51389
51390 2005-09-12  Derek Price  <derek@ximbiot.com>
51391
51392         Return usable errors from canon-host.
51393         * lib/canon-host.h: New file.
51394         * lib/canon-host.c (canon_host): Wrap...
51395         (canon_host_r): ...this new function, which now relies exclusively on
51396         getaddrinfo.
51397         (ch_strerror): New function.
51398         (last_cherror): New global.
51399         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
51400         interface.
51401         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
51402         void *.
51403         (freeaddrinfo): Free ai->ai_canonname when set.
51404
51405 2005-09-12  Derek Price  <derek@ximbiot.com>
51406
51407         Make canon-host require getaddrinfo.
51408         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
51409         AC_LIBSOURCE canon-host.h.  Call...
51410         (gl_PREREQ_CANON_HOST): ...this new function, which requires
51411         gl_GETADDRINFO.
51412         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
51413
51414 2005-09-12  Derek Price  <derek@ximbiot.com>
51415
51416         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
51417         LGPL.
51418         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
51419
51420 2005-09-12  Derek Price  <derek@ximbiot.com>
51421
51422         * lib/gai_strerror.c: Include config.h when available.  Include
51423         getaddrinfo.h before other headers to test interface.
51424         Reported by Larry Jones <lawrence.jones@ugs.com>.
51425
51426 2005-09-12  Derek Price  <derek@ximbiot.com>
51427             Paul Eggert  <eggert@cs.ucla.edu>
51428
51429         * modules/glob (Files): Add glob-libc.h.
51430
51431 2005-09-12  Derek Price  <derek@ximbiot.com>
51432             Paul Eggert  <eggert@cs.ucla.edu>
51433
51434         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
51435         glob_.h, glob-libc.h.
51436         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
51437
51438 2005-09-12  Derek Price  <derek@ximbiot.com>
51439             Paul Eggert  <eggert@cs.ucla.edu>
51440
51441         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
51442         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
51443         protecting things that should be done only in gnulib contexts.
51444         * lib/glob_.h: New file, containing only the glob things needed for
51445         gnulib.
51446         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
51447         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
51448         (glob, globfree, glob_pattern_p): Now defined simply in terms of
51449         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
51450         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
51451         and to respect the namespace rules better.
51452
51453 2005-09-08  Simon Josefsson  <jas@extundo.com>
51454
51455         * modules/socklen: New file.
51456
51457 2005-09-08  Simon Josefsson  <jas@extundo.com>
51458
51459         * m4/socklen.m4: New file.
51460
51461 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51462
51463         * modules/utimens (Files): Add m4/utimbuf.m4, since
51464         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
51465         Reported by Sergey Poznyakoff.
51466
51467 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51468
51469         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
51470         definitions, since that's the preferred style in glibc.
51471         Fix a minor spacing issue, and update copyright notice to match
51472         glibc's.
51473
51474 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51475
51476         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
51477
51478 2005-09-06  Simon Josefsson  <jas@extundo.com>
51479
51480         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
51481         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
51482
51483 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
51484
51485         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
51486         warning.
51487
51488 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
51489
51490         * config/srclist.txt: Add glibc bug 1302.
51491
51492 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
51493
51494         Change bitset word type from unsigned int to unsigned long int,
51495         as this has better performance on typical 64-bit hosts.
51496         Port bitset code to hosts with unusual word sizes.
51497         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
51498         (build_collating_symbol):
51499         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
51500         argument is a bitset.  This is merely a style issue, but it makes
51501         it clearer that an entire array is expected.
51502         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
51503         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
51504         Port to the case where bitset_word is not the same as unsigned int.
51505         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
51506         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
51507         Likewise.
51508         * lib/regexec.c (check_dst_limits_calc_pos_1,
51509         check_subexp_matching_top):
51510         (build_trtable, group_nodes_into_DFAstates):
51511         Likewise.
51512         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
51513         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
51514         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
51515         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
51516         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
51517         * lib/regcomp.c (optimize_subexps, lower_subexp):
51518         Work even if bitset_word has holes in its bitwise representation.
51519         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
51520         * lib/regexec.c (check_dst_limits_calc_pos_1,
51521         check_subexp_matching_top):
51522         Likewise.
51523         * lib/regex_internal.c (re_string_reconstruct):
51524         Don't assume UCHAR_MAX == 255.
51525         * lib/regex_internal.h (bitset_set_all): Likewise.
51526         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
51527         All uses changed.
51528         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
51529         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
51530         All uses changed.
51531         (BITSET_WORD_MAX): New macro.
51532         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
51533         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
51534         (bitset_empty, bitset_copy):
51535         Prefer sizeof (bitset) to multiplying it out ourselves.
51536         (bitset_not_merge): Remove; unused.
51537         (bitset_contain): Return bool, not unsigned int with one bit on.
51538         All callers changed.
51539         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
51540         alignment than re_node_set; do this by defining a new internal
51541         type struct dests_alloc and using it to allocate memory.
51542
51543 2005-09-05  Bruno Haible  <bruno@clisp.org>
51544
51545         * gnulib-tool (func_import): Fix comparison in handling of symbolic
51546         links.
51547
51548 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
51549
51550         * modules/size_max (Makefile.am): Add size_max.h
51551
51552 2005-09-04  Derek Price  <derek@ximbiot.com>
51553
51554         * gnulib-tool (func_import): Fix reversed $symbolic logic.
51555
51556 2005-09-03  Simon Josefsson  <jas@extundo.com>
51557
51558         * gnulib-tool: Fix typo.
51559
51560 2005-09-03  Simon Josefsson  <jas@extundo.com>
51561
51562         * config/srclist.txt: Add glibc bug 1293.
51563
51564 2005-09-03  Derek Price  <derek@ximbiot.com>
51565
51566         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
51567         From Larry Jones <lawrence.jones@ugs.com>.
51568
51569 2005-09-02  Simon Josefsson  <jas@extundo.com>
51570
51571         * modules/socklen: New file.
51572
51573 2005-09-02  Simon Josefsson  <jas@extundo.com>
51574
51575         * modules/havelib: New module.
51576
51577         * modules/gettext, modules/iconv, modules/lock, modules/readline:
51578         Use havelib.
51579
51580 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
51581
51582         Check for arithmetic overflow when calculating sizes, to prevent
51583         some buffer-overflow issues.  These patches are conservative, in the
51584         sense that when I couldn't determine whether an overflow was possible,
51585         I inserted a run-time check.
51586         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
51587         macros.
51588         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
51589         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
51590         (re_xnrealloc, re_x2nrealloc): New inline functions.
51591         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
51592         parse_bracket_exp):
51593         (build_equiv_class, build_charclass): Check for arithmetic overflow
51594         in size expression calculations.
51595         * lib/regex_internal.c (re_string_realloc_buffers):
51596         (build_wcs_upper_buffer, re_node_set_add_intersect):
51597         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
51598         (re_dfa_add_node, register_state): Likewise.
51599         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
51600         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
51601         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
51602         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
51603
51604 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
51605
51606         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
51607         m4/ulonglong.m4.  Problem reported by Martin Lambers.
51608
51609 2005-09-02  Bruno Haible  <bruno@clisp.org>
51610
51611         Support for lib vs. lib64 distinction on biarch platforms.
51612         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
51613         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
51614         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
51615
51616 2005-09-02  Bruno Haible  <bruno@clisp.org>
51617
51618         * gnulib-tool (import): In the other first-use case, provide defaults
51619         as well.
51620
51621 2005-09-02  Bruno Haible  <bruno@clisp.org>
51622
51623         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
51624         patches not yet found in the latest gettext release.
51625
51626 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
51627
51628         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
51629         to avoid a collision with bits/local_lim.h in glibc.
51630         All uses changed.  Problem reported by Dmitry V. Levin in
51631         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
51632
51633         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
51634         bugs in int versus size_t comparisons.
51635         (re_string_context_at): Fix bug where the code assumed that
51636         Idx is signed.
51637
51638         Use bool where appropriate.
51639         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
51640         All callers changed.
51641         (calc_eclosure_iter): Likewise, for ROOT arg.
51642         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
51643         (build_charclass_op): Likewise, for NON_MATCH arg.
51644         * lib/regex_internal.c (re_string_allocate, re_string_construct):
51645         (re_string_construct_common): Likewise, for ICASE arg.
51646         * lib/regexec.c (re_search_2_stub, re_search_stub):
51647         Likewise, for RET_LEN arg.
51648         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
51649         (set_regs): Likewise, for FL_BACKTRACK arg.
51650         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
51651         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
51652         (calc_eclosure_iter, parse_bracket_exp):
51653         Use bool for internal variables that are booleans.
51654         * lib/regexec.c (re_search_internal, check_matching,
51655         proceed_next_node):
51656         (set_regs, build_sifted_states, sift_states_bkref):
51657         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
51658         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
51659         (find_collation_sequence_value):
51660         Likewise.
51661         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
51662         (re_node_set_compare):
51663         Return bool, not int. All callers changed.
51664         * lib/regexec.c (check_halt_node_context, check_dst_limits):
51665         (build_trtable, check_node_accept): Likewise.
51666         * lib/regex_internal.h: Include stdbool.h.
51667
51668         Fix bugs uncovered when converting to bool.
51669         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
51670         failure instead of charging ahead blindly.
51671         * lib/regex_internal.c (register_state): Likewise.
51672         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
51673         for freeing internal storage.
51674         (group_nodes_into_DFA_states): Use unsigned int, not int, for
51675         bitset pieces used as boolean, to avoid undefined behavior
51676         on hosts that do int overflow checking.
51677
51678 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
51679
51680         * config/srclist.txt: Add glibc bugs 1285-1287.
51681
51682 2005-09-01  Jim Meyering  <jim@meyering.net>
51683
51684         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
51685         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
51686         Require gl_STAT_MACROS, too.
51687
51688 2005-09-01  Bruno Haible  <bruno@clisp.org>
51689
51690         * gnulib-tool (import): In the first-use case, provide defaults.
51691
51692 2005-09-01  Bruno Haible  <bruno@clisp.org>
51693
51694         * gnulib-tool (func_import): Remove the .tmp files.
51695
51696 2005-09-01  Bruno Haible  <bruno@clisp.org>
51697
51698         * gnulib-tool (func_import): Fix handling of symbolic links.
51699
51700 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51701
51702         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
51703         old glibc regex code mishandles strings longer than 2**31 bytes.
51704         This patch fixes this when the regex code is used in gnulib
51705         (i.e., outside glibc).
51706
51707         This patch should not affect the use of the regex code inside
51708         glibc.  No doubt this problem also needs to be handled for glibc
51709         as well, but the result will be an incompatible change to the
51710         glibc ABI, and the old ABI will have to be supported too.  That
51711         can be the the subject for another patch.
51712
51713         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
51714         governing whether the rest of this patch is active.  By default,
51715         the macro is disabled and the patch has no effect.
51716         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
51717         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
51718         (struct re_pattern_buffer, re_search, re_search_2, re_match):
51719         (re_match_2, re_set_registers): Use the new types.
51720         * lib/regex_internal.h (Idx, re_hashval_t): New types.
51721         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
51722         New macros.
51723         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
51724         (re_string_context_at, bin_tree_t, re_dfastate_t):
51725         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
51726         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
51727         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
51728         (re_string_char_size_at, re_string_wchar_at):
51729         (re_string_elem_size_at):
51730         Use the new types and macros to port to 64-bit hosts.
51731         Use unsigned types for internal values, so that the code
51732         mostly works even for arrays larger than SSIZE_MAX.
51733         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
51734         (search_duplicated_node, calc_eclosure_iter, fetch_number):
51735         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
51736         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
51737         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
51738         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
51739         (calc_inveclosure, parse_dup_op, build_range_exp):
51740         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
51741         (fetch_number, create_token_tree, mark_opt_subexp):
51742         Likewise.
51743         * lib/regex_internal.c (re_string_construct_common,
51744         create_ci_newstate):
51745         (create_cd_newstate, re_string_allocate, re_string_construct):
51746         (re_string_realloc_buffers, build_wcs_upper_buffer):
51747         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
51748         (re_string_reconstruct, re_string_peek_byte_case):
51749         (re_string_fetch_byte_case, re_string_context_at):
51750         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
51751         (re_node_set_init_copy, re_node_set_add_intersect):
51752         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
51753         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
51754         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
51755         (re_acquire_state, re_acquire_state_context, register_state):
51756         Likewise.
51757         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
51758         search_cur_bkref_entry):
51759         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
51760         (re_search_internal, re_search_2_stub, re_search_stub)
51761         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
51762         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
51763         (update_cur_sifted_state, check_dst_limits):
51764         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
51765         (check_subexp_limits, sift_states_bkref, merge_state_array):
51766         (check_subexp_matching_top, get_subexp, get_subexp_sub):
51767         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
51768         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
51769         (expand_bkref_cache, check_node_accept_bytes):
51770         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
51771         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
51772         (acquire_init_state_context, check_halt_node_context):
51773         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
51774         (sift_states_backward, clean_state_log_if_needed):
51775         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
51776         (find_recover_state, transit_state_sb, transit_state_mb):
51777         (transit_state_bkref, build_trtable, match_ctx_clean):
51778         Likewise.
51779         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
51780         to work around an assumption that REG_MISSING is negative.
51781
51782         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
51783         (seek_collating_symbol_entry) [defined _LIBC]:
51784         (lookup_collation_sequence_value) [defined _LIBC]:
51785         (build_range_exp, build_collating_symbol) [defined _LIBC]:
51786         Use prototypes rather than old-style function definitions.
51787         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
51788         (transit_state_sb) [0]:
51789         (find_collation_sequence_value) [defined _LIBC]: Likewise.
51790
51791         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
51792         rm_eo.
51793
51794         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
51795         (optimize_subexps, lower_subexp):
51796         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
51797         since the signed shift might overflow.  Use 1u<<31 instead.
51798         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
51799         Likewise.
51800         * lib/regexec.c (check_dst_limits_calc_pos_1,
51801         check_subexp_matching_top): Likewise.
51802
51803         * lib/regcomp.c (optimize_subexps, lower_subexp):
51804         Use CHAR_BIT rather than 8, for clarity.
51805         * lib/regexec.c (check_dst_limits_calc_pos_1):
51806         (check_subexp_matching_top): Likewise.
51807         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
51808         have to worry about portability issues when shifting it left.
51809         Remove no-longer-needed test for table_size > 0.
51810         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
51811         in a word, as the resulting behavior is undefined.
51812         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
51813         in one case, a <= should have been an <, and in another case the
51814         whole test was missing.
51815         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
51816         the standard name CHAR_BIT.
51817         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
51818         this is not true on one's complement and signed-magnitude hosts.
51819
51820         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
51821         next_last_offset.
51822         (struct re_dfa_t): Remove unused member states_alloc.
51823         * lib/regcomp.c (init_dfa): Don't initialize unused members.
51824
51825 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51826
51827         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
51828         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
51829         and large-file glibc and in 32-bit large-file Solaris.
51830
51831 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51832
51833         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
51834         lengths fit in regoff_t; this isn't true if regoff_t is the same
51835         width as size_t.
51836         * lib/regex.c (re_search_internal): 5th arg is LAST_START
51837         (= START + RANGE) instead of RANGE.  This avoids overflow
51838         problems when regoff_t is the same width as size_t.
51839         All callers changed.
51840         (re_search_2_stub): Check for overflow when adding the
51841         sizes of the two strings.
51842         (re_search_stub): Check for overflow when adding START
51843         to RANGE; if it occurs, substitute the extreme value.
51844
51845 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51846
51847         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
51848
51849 2005-08-31  Jim Meyering  <jim@meyering.net>
51850
51851         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
51852         a pointer-to-const.
51853         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
51854         (register_state): Likewise.
51855         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
51856         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
51857         (group_nodes_into_DFAstates): Likewise.
51858
51859 2005-08-31  Jim Meyering  <jim@meyering.net>
51860
51861         * check-module: Add a FIXME comment.
51862
51863 2005-08-31  Eric Blake  <ebb9@byu.net>
51864
51865         * modules/unistd-safer (Files): Add unistd--.h.
51866         * modules/stdio-safer (Files): Add stdio--.h.
51867
51868 2005-08-31  Derek Price  <derek@ximbiot.com>
51869
51870         * lib/getdelim.c (getdelim): Return EOF on EOF.
51871         Reported by Larry Jones <lawrence.jones@ugs.com>.
51872
51873 2005-08-31  Bruno Haible  <bruno@clisp.org>
51874
51875         Avoid unnecessary diffs in the generated lib/Makefile.am.
51876         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
51877         the generated files.
51878         (func_import): Don't set cmd.
51879
51880 2005-08-31  Bruno Haible  <bruno@clisp.org>
51881
51882         * lib/strstr.c: Include <stddef.h>, for NULL.
51883         * lib/strcasestr.c: Likewise.
51884         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51885
51886 2005-08-31  Bruno Haible  <bruno@clisp.org>
51887
51888         * gnulib-tool: New option --macro-prefix.
51889         (func_import): Use macro_prefix.
51890         (import): Handle option --macro-prefix.
51891
51892 2005-08-31  Bruno Haible  <bruno@clisp.org>
51893
51894         * gnulib-tool (import): Rename most ac_* variables to cached_*.
51895         Also use new variables cached_lgpl, cached_libtool.
51896
51897 2005-08-31  Bruno Haible  <bruno@clisp.org>
51898
51899         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
51900         always instantiating them.
51901
51902 2005-08-31  Bruno Haible  <bruno@clisp.org>
51903
51904         * gnulib-tool (func_import): Read the previous cached settings
51905         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
51906         earlier added by gnulib but are now dropped. Warn when a gnulib file
51907         overwrites a non-gnulib file.
51908
51909 2005-08-31  Bruno Haible  <bruno@clisp.org>
51910
51911         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
51912         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
51913         projects that don't keep autogenerated files in CVS. Put into
51914         actioncmd only the specified modules, not the transitive closure.
51915
51916 2005-08-31  Bruno Haible  <bruno@clisp.org>
51917
51918         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
51919         Create directories that shall be filled.
51920         (import): Don't look for gl_* macros in configure.ac. Recurse across
51921         all directories containing a gnulib-cache.m4 files, if meaningful.
51922
51923 2005-08-31  Bruno Haible  <bruno@clisp.org>
51924
51925         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
51926         (import): Set seen_libtool when we see gl_LIBTOOL.
51927
51928 2005-08-31  Bruno Haible  <bruno@clisp.org>
51929
51930         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
51931         declaration macro definitions from generated gnulib.m4.
51932
51933 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
51934
51935         * lib/iconvme.h: Add prototype for iconv_alloc.
51936
51937 2005-08-29  Simon Josefsson  <jas@extundo.com>
51938
51939         * lib/iconvme.c: Fix errno.
51940
51941 2005-08-29  Bruno Haible  <bruno@clisp.org>
51942
51943         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
51944         that it works when the directory contains spaces.
51945
51946 2005-08-29  Bruno Haible  <bruno@clisp.org>
51947
51948         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
51949
51950 2005-08-29  Bruno Haible  <bruno@clisp.org>
51951
51952         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
51953         Emit more advice.
51954
51955 2005-08-29  Bruno Haible  <bruno@clisp.org>
51956         and Stepan Kasal  <kasal@ucw.cz>
51957
51958         * check-module: If more parameters are given, check each of them
51959         separately; add more exceptions, as noted by Jim Meyering.
51960         (check_module): New procedure.
51961         (%exempt_header): Now contains all exceptions.
51962
51963 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
51964
51965         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
51966
51967 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
51968
51969         * lib/iconvme.c: Split iconv_string into iconv_alloc.
51970
51971 2005-08-28  Bruno Haible  <bruno@clisp.org>
51972
51973         * m4/gnulib-tool.m4: New file.
51974
51975 2005-08-27  Jim Meyering  <jim@meyering.net>
51976
51977         * modules/unistd-safer (Files): Add pipe-safer.c.
51978         * modules/fcntl-safer (Files): Add creat-safer.c.
51979
51980 2005-08-27  Jim Meyering  <jim@meyering.net>
51981
51982         * m4/stdlib-safer.m4: New file.  From coreutils.
51983         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
51984         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
51985         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
51986         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
51987         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
51988
51989 2005-08-27  Jim Meyering  <jim@meyering.net>
51990
51991         * lib/fopen-safer.c: Merge minor changes from coreutils.
51992         * lib/dup-safer.c: Likewise.
51993         * lib/fd-safer.c: Likewise.
51994
51995         Merge from coreutils.
51996         * lib/stdio--.h: New file.
51997         * lib/stdlib--.h: New file.
51998         * lib/mkstemp-safer.c: New file.
51999
52000         GNU tar needs these.
52001         * lib/pipe-safer.c: New file.
52002         * lib/creat-safer.c: New file.
52003         * lib/fcntl--.h (creat): Define to creat_safer.
52004         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
52005         * lib/unistd--.h (pipe): Define to pipe_safer.
52006         * lib/unistd-safer.h: Declare pipe_safer.
52007
52008 2005-08-26  Simon Josefsson  <jas@extundo.com>
52009
52010         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
52011         Haible <bruno@clisp.org>.
52012
52013 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
52014
52015         * lib/regex_internal.h: Remove all references to
52016         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
52017         or better.
52018         (bitset_not, bitset_merge, bitset_not_merge):
52019         (bitset_mask, re_string_allocate, re_string_construct):
52020         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
52021         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
52022         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
52023         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
52024         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
52025         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
52026         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
52027         (re_acquire_state_context):
52028         Remove unnecessary forward decls.
52029         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
52030         Put __attribute at function definition,
52031         now that the function decl has been removed.
52032         * lib/regex_internal.c (re_string_peek_byte_case):
52033         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
52034         Likewise.
52035
52036 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
52037
52038         * m4/regex.m4: Add AC_PREREQ(2.50).
52039         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
52040
52041 2005-08-25  Simon Josefsson  <jas@extundo.com>
52042
52043         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
52044         __fsetlocking.
52045
52046 2005-08-25  Simon Josefsson  <jas@extundo.com>
52047
52048         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
52049         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
52050         GLIBC specific code.
52051
52052 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
52053
52054         Make regex safe for g++.  This fixes one real bug (an "err"
52055         that should have been "*err").  g++ problem reported by
52056         Sam Steingold.
52057         * lib/regex_internal.h (re_calloc): New macro, consistent with
52058         re_malloc etc.  All callers of calloc changed to use re_calloc.
52059         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
52060         not int.  All callers changed.
52061         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
52062         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
52063         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
52064         (find_recover_state): Change "err" to "*err"; this fixes what
52065         appears to be a real bug.
52066         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
52067         versus int.
52068
52069 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
52070
52071         * modules/regex (Depends-on): Add malloc, since the code
52072         assumes that !malloc(0) means failure.
52073
52074 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
52075
52076         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
52077
52078         alloca modernization/simplification for regex.
52079         * lib/regex.c: Remove portability cruft for alloca.  This no longer
52080         needs to be at the start of the file, and can be moved into
52081         regex_internal.h and simplified.
52082         * lib/regex_internal.h: Include <alloca.h>.
52083         (__libc_use_alloca) [!defined _LIBC]: New macro.
52084         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
52085         now works outside glibc.
52086
52087 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
52088
52089         * config/srclist.txt: Add glibc bugs 1241, 1245.
52090
52091 2005-08-25  Jim Meyering  <jim@meyering.net>
52092
52093         * lib/open-safer.c: Include <config.h>.
52094         Otherwise, we'd lose LARGEFILE support in any file using
52095         e.g. "fcntl--.h"
52096
52097 2005-08-25  Bruno Haible  <bruno@clisp.org>
52098
52099         * m4/minmax.m4: Require autoconf 2.52.
52100         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
52101         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
52102         alternatives of translit over the alphabet.
52103         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
52104
52105 2005-08-24  Simon Josefsson  <jas@extundo.com>
52106
52107         * tests/test-getpass.c: New file.
52108
52109 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
52110
52111         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
52112         for GNU regex features.
52113
52114 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
52115
52116         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
52117         * lib/regex.h (regerror): Likewise.
52118
52119         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
52120         requires this.  (The code never needed it.)
52121
52122         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
52123         All uses of recently-renamed identifiers changed to use the new,
52124         POSIX-compliant names.  The code will build and run just fine
52125         without these changes, but it's better to eat our own dog food
52126         and use the standard-conforming names.
52127
52128         * lib/regex.h: Fix a multitude of POSIX name space violations.
52129         These changes have an effect only for programs that define
52130         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
52131         do not change anything for programs compiled in the normal way.
52132         Also, there is no effect on the ABI.
52133
52134         (_REGEX_SOURCE): New macro.
52135         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
52136         defined and _GNU_SOURCE is not; this fixes a name space violation.
52137
52138         Rename the following macros to obey POSIX requirements.
52139         The old names are still visible as macros if _REGEX_SOURCE is defined.
52140         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
52141         RE_BACKSLASH_ESCAPE_IN_LISTS.
52142         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
52143         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
52144         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
52145         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
52146         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
52147         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
52148         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
52149         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
52150         (REG_INTERVALS): renamed from RE_INTERVALS.
52151         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
52152         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
52153         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
52154         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
52155         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
52156         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
52157         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
52158         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
52159         RE_UNMATCHED_RIGHT_PAREN_ORD.
52160         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
52161         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
52162         (REG_DEBUG): renamed from RE_DEBUG.
52163         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
52164         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
52165         unusual, since we can't clash with the POSIX REG_ICASE.
52166         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
52167         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
52168         (REG_NO_SUB): renamed from RE_NO_SUB.
52169         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
52170         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
52171         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
52172         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
52173         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
52174         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
52175         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
52176         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
52177         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
52178         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
52179         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
52180         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
52181         RE_SYNTAX_POSIX_MINIMAL_BASIC.
52182         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
52183         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
52184         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
52185         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
52186         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
52187         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
52188         (REG_FIXED): Renamed from REGS_FIXED.
52189         (REG_NREGS): Renamed from RE_NREGS.
52190
52191         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
52192         of other REG_* macros, since POSIX says the user is allowed to
52193         #undef these macros selectively.
52194
52195         (reg_errcode_t): Update comment stating what other tables need
52196         to be consistent.
52197
52198         Rename the following enum values to obey POSIX requirements.
52199         The old names are still visible as macros.
52200         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
52201         is not defined, since GNU is supposed to be a superset of POSIX as
52202         much as possible, and since we want reg_errcode_t to be a signed
52203         type for implementation consistency.
52204         (_REG_NOERROR): Renamed from REG_NOERROR.
52205         (_REG_NOMATCH): Renamed from REG_NOMATCH.
52206         (_REG_BADPAT): Renamed from REG_BADPAT.
52207         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
52208         (_REG_ECTYPE): Renamed from REG_ECTYPE.
52209         (_REG_EESCAPE): Renamed from REG_EESCAPE.
52210         (_REG_ESUBREG): Renamed from REG_ESUBREG.
52211         (_REG_EBRACK): Renamed from REG_EBRACK.
52212         (_REG_EPAREN): Renamed from REG_EPAREN.
52213         (_REG_EBRACE): Renamed from REG_EBRACE.
52214         (_REG_BADBR): Renamed from REG_BADBR.
52215         (_REG_ERANGE): Renamed from REG_ERANGE.
52216         (_REG_ESPACE): Renamed from REG_ESPACE.
52217         (_REG_BADRPT): Renamed from REG_BADRPT.
52218         (_REG_EEND): Renamed from REG_EEND.
52219         (_REG_ESIZE): Renamed from REG_ESIZE.
52220         (_REG_ERPAREN): Renamed from REG_ERPAREN.
52221         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
52222         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
52223         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
52224         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
52225
52226         (_REG_RE_NAME, _REG_RM_NAME): New macros.
52227         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
52228         changed.  But support the old name if the new one is not defined
52229         and if _REGEX_SOURCE.
52230
52231         Change the following member names in struct re_pattern_buffer.
52232         The old names are still supported if !_REGEX_SOURCE.
52233         The new names are always supported, regardless of _REGEX_SOURCE.
52234         (re_buffer): Renamed from buffer.
52235         (re_allocated): Renamed from allocated.
52236         (re_used): Renamed from used.
52237         (re_syntax): Renamed from syntax.
52238         (re_fastmap): Renamed from fastmap.
52239         (re_translate): Renamed from translate.
52240         (re_can_be_null): Renamed from can_be_null.
52241         (re_regs_allocated): Renamed from regs_allocated.
52242         (re_fastmap_accurate): Renamed from fastmap_accurate.
52243         (re_no_sub): Renamed from no_sub.
52244         (re_not_bol): Renamed from not_bol.
52245         (re_not_eol): Renamed from not_eol.
52246         (re_newline_anchor): Renamed from newline_anchor.
52247
52248         Change the following member names in struct re_registers.
52249         The old names are still supported if !_REGEX_SOURCE.
52250         The new names are always supported, regardless of _REGEX_SOURCE.
52251         (rm_num_regs): Renamed from num_regs.
52252         (rm_start): Renamed from start.
52253         (rm_end): Renamed from end.
52254
52255         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
52256         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
52257         Prepend __ to parameter names.
52258
52259         Undo yesterday's changes.
52260
52261 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
52262
52263         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
52264         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
52265         lib/regex.c.
52266
52267 2005-08-24  Jim Meyering  <jim@meyering.net>
52268
52269         Sync from coreutils.
52270         * m4/fcntl-safer.m4: New file.
52271
52272         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
52273         and object files for this module.
52274
52275 2005-08-24  Jim Meyering  <jim@meyering.net>
52276
52277         Sync from coreutils.
52278         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
52279
52280 2005-08-24  Jim Meyering  <jim@meyering.net>
52281
52282         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
52283         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
52284
52285 2005-08-24  Jim Meyering  <jim@meyering.net>
52286
52287         * modules/fcntl-safer: New module.
52288         * modules/fts (Depends-on): Add fcntl-safer.
52289         * MODULES.html.sh (File descriptor based Input/Output):
52290         Add fcntl-safer.
52291
52292 2005-08-24  Bruno Haible  <bruno@clisp.org>
52293
52294         Support for unit test modules.
52295         * modules/README: Mention tests modules.
52296         * modules/TEMPLATE-TESTS: New file.
52297         * gnulib-tool: New options --extract-tests-module, --with-tests and
52298         --tests-base (unused for the moment).
52299         (testsbase, inctests): New variables.
52300         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
52301         (func_verify_module): Exclude TEMPLATE-TESTS.
52302         (func_verify_nontests_module, func_verify_tests_module): New functions.
52303         (func_get_dependencies): Add implicit dependency for tests modules.
52304         (func_get_tests_module): New function.
52305         (func_modules_transitive_closure): When --with-tests was specified,
52306         include the unit tests as well, unless explicitly avoided.
52307         (func_emit_lib_Makefile_am): Ignore the tests modules here.
52308         (func_emit_tests_Makefile_am): New function.
52309         (func_create_testdir): When --with-tests was specified, emit a
52310         tests/ directory.
52311         * MODULES.html.sh (Future developments): Update.
52312
52313 2005-08-24  Bruno Haible  <bruno@clisp.org>
52314
52315         * modules/tls-tests: New file.
52316         * tests/test-tls.c: New file, from GNU gettext.
52317
52318 2005-08-24  Bruno Haible  <bruno@clisp.org>
52319
52320         * modules/lock-tests: New file.
52321         * tests/test-lock.c: New file, from GNU gettext.
52322
52323 2005-08-24  Bruno Haible  <bruno@clisp.org>
52324
52325         * lib/lock.h: Add multiple inclusion guard.
52326         * lib/tls.h: Add multiple inclusion guard.
52327
52328 2005-08-24  Bruno Haible  <bruno@clisp.org>
52329
52330         * gnulib-tool: Add support for the --aux-dir option to
52331         --create-testdir, --create-megatestdir, --test, --megatest.
52332         (func_create_testdir, func_create_megatestdir): Optionally emit a
52333         AC_CONFIG_AUX_DIR directive.
52334         (create-testdir, create-megatestdir, test, megatest): Provide a
52335         default value for $auxdir.
52336
52337 2005-08-24  Bruno Haible  <bruno@clisp.org>
52338
52339         * gnulib-tool (import): Use compound statement instead of subshell
52340         where possible.
52341
52342 2005-08-24  Bruno Haible  <bruno@clisp.org>
52343
52344         * gnulib-tool (import): Change --aux-dir default to "build-aux".
52345
52346 2005-08-24  Bruno Haible  <bruno@clisp.org>
52347
52348         * gnulib-tool (func_version): Update.
52349
52350 2005-08-24  Bruno Haible  <bruno@clisp.org>
52351
52352         * gnulib-tool (func_import, func_create_testdir,
52353         func_create_megatestdir): Quote all autoconf macro arguments.
52354
52355 2005-08-24  Bruno Haible  <bruno@clisp.org>
52356
52357         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
52358         option --force, because --force causes the aclocal.m4 of each
52359         subdirectory to be newer than the corresponding config.h.in.
52360
52361 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
52362
52363         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
52364         All contents moved to gl_REGEX.
52365         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
52366         assume that it does.
52367
52368 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
52369
52370         * lib/regex.h (REG_NOSYS)
52371         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
52372         Define, since POSIX requires it as of 2001.
52373         (_REG_ENOSYS)
52374         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
52375         New private symbol, used to keep the enum signed in all cases.
52376         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
52377         Youngman in
52378         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
52379
52380         * lib/regex_internal.c (re_string_skip_chars, register_state):
52381         (calc_state_hash):
52382         Remove forward decls; no longer needed now that we use prototypes.
52383         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
52384         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
52385         (clean_state_log_if_needed): Likewise.
52386
52387 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
52388
52389         * config/srclist.txt: Add glibc bugs 1231-1233.
52390
52391 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
52392
52393         Fix problems reported by Sam Steingold in
52394         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
52395         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
52396         assumed that reg_errcode_t is a signed type, which is not
52397         necessarily true if _XOPEN_SOURCE is not defined.
52398         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
52399         since some compilers warn about it otherwise.
52400
52401 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
52402
52403         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
52404         (init_word_char, create_initial_state, duplicate_node_closure):
52405         (fetch_token, peek_token_bracket, build_range_exp):
52406         (build_collating_symbol): Remove forward decls; no longer needed
52407         now that we use prototypes.
52408
52409         * lib/regcomp.c:
52410         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
52411         (re_compile_fastmap_iter, regcomp, regerror, regfree):
52412         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
52413         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
52414         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
52415         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
52416         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
52417         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
52418         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
52419         (build_range_exp, build_collating_symbol, parse_bracket_exp):
52420         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
52421         (build_charclass, build_charclass_op, fetch_number, create_tree):
52422         (create_token_tree, mark_opt_subexp, duplicate_tree):
52423         Use prototypes rather than old-style definitions.
52424
52425         * lib/regex_internal.c:
52426         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
52427         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
52428         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
52429         (re_string_reconstruct, re_string_peek_byte_case):
52430         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
52431         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
52432         (re_node_set_init_copy, re_node_set_add_intersect):
52433         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
52434         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
52435         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
52436         (re_acquire_state, re_acquire_state_context, register_state):
52437         (create_ci_newstate, create_cd_newstate, free_state):
52438         Likewise.
52439         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
52440         re_search_2):
52441         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
52442         (re_search_internal, prune_impossible_nodes):
52443         (acquire_init_state_context, check_matching, static):
52444         (check_halt_node_context, check_halt_state_context, proceed_next_node):
52445         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
52446         (update_regs, sift_states_backward, build_sifted_states):
52447         (clean_state_log_if_needed, merge_state_array):
52448         (update_cur_sifted_state, add_epsilon_src_nodes):
52449         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
52450         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
52451         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
52452         (find_recover_state, check_subexp_matching_top, transit_state_mb):
52453         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
52454         (check_arrival, check_arrival_add_next_nodes):
52455         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
52456         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
52457         (check_node_accept_bytes, check_node_accept, extend_buffers):
52458         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
52459         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
52460         (sift_ctx_init):
52461         Likewise.
52462
52463         * lib/regex_internal.h:
52464         (re_string_allocate, re_string_construct, re_string_reconstruct):
52465         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
52466         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
52467         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
52468         (re_string_context_at, re_string_peek_byte_case):
52469         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
52470         is defined, since we now use prototypes always.
52471
52472         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
52473         C89 or better.  All uses removed.
52474
52475 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
52476
52477         * config/srclist.txt: Add glibc bugs 1220-1227.
52478
52479 2005-08-20  Jim Meyering  <jim@meyering.net>
52480
52481         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
52482         of unused local, dfa.
52483
52484 2005-08-20  Bruno Haible  <bruno@clisp.org>
52485
52486         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
52487
52488 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52489
52490         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
52491         (re_node_set_insert_last, re_dfa_add_node):
52492         Rename local variables to avoid GCC shadowing warnings.
52493
52494 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52495
52496         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
52497         [defined lint]: Suppress bogus uninitialized-variable warnings.
52498
52499         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
52500         and let the caller return REG_ESPACE if out of space.  This
52501         removes an uninitialied-variable warning with GCC 4.0.1, and also
52502         avoids taking the address of a local variable.  All callers
52503         changed.
52504
52505 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52506
52507         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
52508         $LIBCSRC/posix/regexec.c.
52509         Add glibc bug 1217 for regcomp.c.
52510
52511 2005-08-19  Jim Meyering  <jim@meyering.net>
52512
52513         * lib/regexec.c (proceed_next_node): Redo local variables to
52514         avoid GCC shadowing warnings.
52515
52516 2005-08-18  Bruno Haible  <bruno@clisp.org>
52517
52518         * lib/strstr.c (strstr): Fix return value in multibyte case.
52519         * lib/strcasestr.c (strcasestr): Likewise.
52520
52521 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
52522
52523         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
52524
52525 2005-08-17  Jim Meyering  <jim@meyering.net>
52526
52527         Make the %s format (seconds since the epoch) work for a negative
52528         number and when used with a zero-padded field width, e.g. %015s.
52529
52530         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
52531         label so that it precedes the code to set `digits'.  Otherwise,
52532         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
52533         print `00-22'.  Now, it prints `-0022', as it should.
52534
52535 2005-08-17  Bruno Haible  <bruno@clisp.org>
52536
52537         * modules/strstr (Files): Add m4/mbrtowc.m4.
52538         (Depends-on): Add mbuiter.
52539
52540 2005-08-17  Bruno Haible  <bruno@clisp.org>
52541
52542         * modules/strcasestr: New file.
52543         * MODULES.html.sh (String handling, based on ANSI C 89): Add
52544         strcasestr.
52545
52546 2005-08-17  Bruno Haible  <bruno@clisp.org>
52547
52548         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
52549
52550 2005-08-17  Bruno Haible  <bruno@clisp.org>
52551
52552         * modules/mbuiter: New file.
52553         * MODULES.html.sh (Extended multibyte and wide character utilities):
52554         Add mbuiter.
52555
52556 2005-08-17  Bruno Haible  <bruno@clisp.org>
52557
52558         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
52559         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
52560
52561 2005-08-17  Bruno Haible  <bruno@clisp.org>
52562
52563         * m4/strcasestr.m4: New file.
52564
52565 2005-08-17  Bruno Haible  <bruno@clisp.org>
52566
52567         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
52568         * lib/strstr.c: Completely rewritten, with multibyte locale support.
52569
52570 2005-08-17  Bruno Haible  <bruno@clisp.org>
52571
52572         * lib/strcasestr.h: New file.
52573         * lib/strcasestr.c: New file.
52574
52575 2005-08-17  Bruno Haible  <bruno@clisp.org>
52576
52577         * lib/strcasecmp.c: Use mbuiter.h.
52578
52579 2005-08-17  Bruno Haible  <bruno@clisp.org>
52580
52581         * lib/mbuiter.h: New file.
52582
52583 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
52584
52585         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
52586         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
52587         and gl_GETOPT are both invoked via different paths (as happens
52588         with GNU tar CVS because it uses both argp and getopt), the former
52589         wins.
52590
52591 2005-08-16  Bruno Haible  <bruno@clisp.org>
52592
52593         * modules/tls: New file.
52594         * MODULES.html.sh (Multithreading): Add tls.
52595
52596 2005-08-16  Bruno Haible  <bruno@clisp.org>
52597
52598         * modules/strnlen1: New file.
52599         * MODULES.html.sh (String handling): Add strnlen1.
52600
52601 2005-08-16  Bruno Haible  <bruno@clisp.org>
52602
52603         * modules/strcase (Files): Add m4/mbrtowc.m4.
52604         (Depends-on): Add strnlen1, mbchar.
52605
52606 2005-08-16  Bruno Haible  <bruno@clisp.org>
52607
52608         * modules/mbiter: New file.
52609         * MODULES.html.sh (Extended multibyte and wide character utilities):
52610         Add mbiter.
52611
52612 2005-08-16  Bruno Haible  <bruno@clisp.org>
52613
52614         * modules/mbfile: New file.
52615         * MODULES.html.sh (Extended multibyte and wide character utilities):
52616         Add mbfile.
52617
52618 2005-08-16  Bruno Haible  <bruno@clisp.org>
52619
52620         * modules/mbchar: New file.
52621         * MODULES.html.sh (Extended multibyte and wide character utilities):
52622         New section.
52623
52624 2005-08-16  Bruno Haible  <bruno@clisp.org>
52625
52626         * m4/tls.m4: New file, from GNU gettext.
52627
52628 2005-08-16  Bruno Haible  <bruno@clisp.org>
52629
52630         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
52631         always.
52632         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
52633
52634 2005-08-16  Bruno Haible  <bruno@clisp.org>
52635
52636         * m4/mbiter.m4: New file.
52637
52638 2005-08-16  Bruno Haible  <bruno@clisp.org>
52639
52640         * m4/mbfile.m4: New file.
52641
52642 2005-08-16  Bruno Haible  <bruno@clisp.org>
52643
52644         * m4/mbchar.m4: New file.
52645
52646 2005-08-16  Bruno Haible  <bruno@clisp.org>
52647
52648         * lib/tls.h: New file, from GNU gettext.
52649         * lib/tls.c: New file, from GNU gettext.
52650
52651 2005-08-16  Bruno Haible  <bruno@clisp.org>
52652
52653         * lib/strnlen1.h: New file.
52654         * lib/strnlen1.c: New file.
52655
52656 2005-08-16  Bruno Haible  <bruno@clisp.org>
52657
52658         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
52659         (mbi_init): Update.
52660         (mbi_avail, mbi_advance): Let the iteration end before the terminating
52661         NUL byte, not after it.
52662
52663 2005-08-16  Bruno Haible  <bruno@clisp.org>
52664
52665         * lib/strcase.h (strcasecmp): Add note in comments.
52666         * lib/strncasecmp.c: Use code from strcasecmp.c.
52667         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
52668         (strcasecmp): Work correctly in multibyte locales.
52669
52670 2005-08-16  Bruno Haible  <bruno@clisp.org>
52671
52672         * lib/mbiter.h: New file.
52673
52674 2005-08-16  Bruno Haible  <bruno@clisp.org>
52675
52676         * lib/mbfile.h: New file.
52677
52678 2005-08-16  Bruno Haible  <bruno@clisp.org>
52679
52680         * lib/mbchar.h: New file.
52681         * lib/mbchar.c: New file.
52682
52683 2005-08-16  Bruno Haible  <bruno@clisp.org>
52684
52685         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
52686         the valid ones. Makes the comparison operations transitive:
52687         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
52688         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
52689
52690 2005-08-15  Simon Josefsson  <jas@extundo.com>
52691
52692         * modules/ssize_t (License): Change to 'unlimited'.
52693
52694         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
52695
52696 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52697
52698         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
52699         Add comments for each pending glibc patch.
52700
52701 2005-08-15  Bruno Haible  <bruno@clisp.org>
52702
52703         * lib/regex.h (__restrict_arr): Don't define to __restrict if
52704         __cplusplus is defined.
52705
52706 2005-08-14  Jim Meyering  <jim@meyering.net>
52707
52708         Sync from coreutils.
52709
52710         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
52711         Use the hash-table-based cycle-detection code not just when
52712         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
52713         Reported by James Youngman in
52714         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
52715         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
52716         FTS_TIGHT_CYCLE_CHECK.
52717         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
52718         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
52719         once again.
52720         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
52721         * lib/fts.c (fd_safer): Remove decl.
52722         Include fcntl--.h rather than unistd-safer.h
52723         (fts_safe_changedir): Don't call fd_safer; no longer needed
52724         now that we include fcntl--.h.
52725
52726 2005-08-12  Simon Josefsson  <jas@extundo.com>
52727
52728         * modules/getndelim2: Use ssize_t module.
52729         * modules/getnline: Likewise.
52730         * modules/safe-read: Likewise.
52731         * modules/xreadlink: Likewise.
52732
52733         * modules/ssize_t: New file.
52734
52735 2005-08-12  Simon Josefsson  <jas@extundo.com>
52736
52737         * m4/readline.m4: Look for termcap, curses or ncurses if required.
52738
52739 2005-08-12  Simon Josefsson  <jas@extundo.com>
52740
52741         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52742         ssize_t.
52743
52744 2005-08-12  Simon Josefsson  <jas@extundo.com>
52745
52746         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
52747         readline, getdelim and check_version.
52748         (Support for systems lacking ISO C 99: Sizes of integer types):
52749         Add size_max.
52750
52751 2005-08-12  Bruno Haible  <bruno@clisp.org>
52752
52753         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
52754
52755 2005-08-11  Simon Josefsson  <jas@extundo.com>
52756
52757         * modules/readline: New file.
52758
52759         * modules/strnlen (Files): Add strnlen.h.
52760
52761 2005-08-11  Simon Josefsson  <jas@extundo.com>
52762
52763         * m4/readline.m4: New file.
52764
52765 2005-08-11  Simon Josefsson  <jas@extundo.com>
52766
52767         * lib/readline.h, readline.c: New file.
52768
52769 2005-08-11  Simon Josefsson  <jas@extundo.com>
52770
52771         * doc/gnulib.texi (Initial import, Finishing touches): Mention
52772         gl_AVOID.
52773
52774 2005-08-11  Bruno Haible  <bruno@clisp.org>
52775
52776         * lib/strnlen.h (strnlen): Change parameter name to match comment.
52777
52778 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
52779
52780         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
52781
52782 2005-08-10  Simon Josefsson  <jas@extundo.com>
52783
52784         * tests/test-iconvme.c: New file.
52785
52786 2005-08-10  Simon Josefsson  <jas@extundo.com>
52787
52788         * m4/strnlen.m4: New file.
52789
52790         * m4/strndup.m4: Don't check for strnlen declaration, done in
52791         strnlen.m4.
52792
52793 2005-08-10  Simon Josefsson  <jas@extundo.com>
52794
52795         * lib/strndup.c: Use strnlen.h.
52796
52797         * lib/strnlen.h: New file.
52798
52799 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
52800
52801         * README: Typos.
52802
52803 2005-08-02  Simon Josefsson  <jas@extundo.com>
52804
52805         * modules/readline: New file.
52806
52807 2005-08-02  Simon Josefsson  <jas@extundo.com>
52808
52809         * modules/getdelim: New file.
52810
52811         * modules/getline: Rewrite, don't use getndelim2.
52812
52813 2005-08-02  Simon Josefsson  <jas@extundo.com>
52814
52815         * m4/getline.m4: Separate out getdelim stuff into separate module.
52816
52817         * m4/getdelim.m4: New file.
52818
52819 2005-08-02  Simon Josefsson  <jas@extundo.com>
52820
52821         * lib/getline.h, getline.c: Rewrite.
52822
52823         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
52824
52825 2005-07-31  Bruno Haible  <bruno@clisp.org>
52826
52827         * lib/lock.h (gl_lock_initializer): New macro.
52828         (gl_lock_define_initialized): Use it.
52829         (gl_rwlock_initializer): New macro.
52830         (gl_rwlock_define_initialized): Use it.
52831         (gl_recursive_lock_initializer): New macro.
52832         (gl_recursive_lock_define_initialized): Use it.
52833
52834 2005-07-30  Karl Berry  <karl@gnu.org>
52835
52836         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
52837         Report from Ben Pfaff, regarding getopt.
52838
52839 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
52840
52841         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
52842         normal way.
52843         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
52844         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
52845         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
52846         (gl_GETOPT): Use the new macros.  Most of the implementation
52847         is moved to the new macros.  This is for programs like Emacs
52848         that don't want all the functionality of gl_GETOPT.
52849
52850 2005-07-26  Bruno Haible  <bruno@clisp.org>
52851
52852         * m4/lock.m4: Update from GNU gettext.
52853
52854 2005-07-26  Bruno Haible  <bruno@clisp.org>
52855
52856         * lib/lock.h: Update from GNU gettext.
52857         * lib/lock.c: Update from GNU gettext.
52858
52859 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
52860
52861         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
52862         obsolescent AC_TRY_RUN.  Include the default includes files, for
52863         'exit'.
52864
52865 2005-07-24  Bruno Haible  <bruno@clisp.org>
52866
52867         * modules/visibility: New file.
52868         * MODULES.html.sh (Misc): Add visibility.
52869
52870 2005-07-24  Bruno Haible  <bruno@clisp.org>
52871
52872         * m4/visibility.m4: New file.
52873
52874 2005-07-24  Bruno Haible  <bruno@clisp.org>
52875
52876         * doc/visibility.texi: New file.
52877
52878 2005-07-22  Bruno Haible  <bruno@clisp.org>
52879
52880         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
52881         $(ALLOCA_H), redundant through BUILT_SOURCES.
52882         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
52883         redundant through BUILT_SOURCES.
52884         * modules/byteswap (Makefile.am): Remove explicit dependency on
52885         $(BYTESWAP_H), redundant through BUILT_SOURCES.
52886         * modules/fnmatch (Makefile.am): Remove explicit dependency on
52887         $(FNMATCH_H), redundant through BUILT_SOURCES.
52888         * modules/getopt (Makefile.am): Remove explicit dependency on
52889         $(GETOPT_H), redundant through BUILT_SOURCES.
52890         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
52891         redundant through BUILT_SOURCES.
52892         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
52893         redundant through BUILT_SOURCES.
52894         * modules/stdbool (Makefile.am): Remove explicit dependency on
52895         $(STDBOOL_H), redundant through BUILT_SOURCES.
52896         * modules/stdint (Makefile.am): Remove explicit dependency on
52897         $(STDINT_H), redundant through BUILT_SOURCES.
52898         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
52899         Remove explicit dependency on $(SYSEXITS_H).
52900         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
52901
52902 2005-07-18  Simon Josefsson  <jas@extundo.com>
52903
52904         * lib/check-version.c (check_version): Accept identical versions too.
52905
52906 2005-07-18  Bruno Haible  <bruno@clisp.org>
52907
52908         * modules/lock: New file.
52909         * MODULES.html.sh (Multithreading): New section.
52910
52911 2005-07-18  Bruno Haible  <bruno@clisp.org>
52912
52913         * m4/lock.m4: New file, from GNU gettext.
52914
52915 2005-07-18  Bruno Haible  <bruno@clisp.org>
52916
52917         * lib/lock.h: New file, from GNU gettext.
52918         * lib/lock.c: New file, from GNU gettext.
52919
52920 2005-07-18  Bruno Haible  <bruno@clisp.org>
52921
52922         * lib/lock.h (gl_once_t): New type.
52923         (gl_once_define, gl_once): New macros.
52924         * lib/lock.c (fresh_once): New variable.
52925         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
52926         functions.
52927
52928 2005-07-16  Simon Josefsson  <jas@extundo.com>
52929
52930         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
52931         workaround, suggested by Bruno.
52932
52933 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
52934
52935         * modules/xalloc (Depends-on): Add xalloc-die.
52936         * modules/xvasprintf (Depends-on): Add xalloc-die.
52937
52938 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
52939
52940         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
52941         with a minor change.
52942
52943 2005-07-15  Bruno Haible  <bruno@clisp.org>
52944
52945         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
52946         When using lib/poll.c, define poll as rpl_poll.
52947
52948 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
52949
52950         * modules/argp (Depends-on): Remove unlocked-io.
52951
52952 2005-07-14  Derek Price  <derek@ximbiot.com>
52953
52954         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
52955         for glob symlink bug.
52956
52957 2005-07-14  Bruno Haible  <bruno@clisp.org>
52958
52959         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
52960         Instead, test for *_unlocked function declarations directly.
52961
52962 2005-07-11  Simon Josefsson  <jas@extundo.com>
52963
52964         * modules/size_max: New file.
52965
52966         * modules/xsize: Depend on size_max module for size_max.m4.
52967
52968 2005-07-11  Simon Josefsson  <jas@extundo.com>
52969
52970         * lib/size_max.h: New file.
52971
52972 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
52973
52974         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
52975         copyright symbol and the year.
52976         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
52977         (version_etc_va): Use parameterized copyright notice.
52978         Reword to conform to the current GNU coding standards.
52979
52980 2005-07-11  Karl Berry  <karl@gnu.org>
52981
52982         * doc/gnulib.texi (Quoting): new node.
52983         (Initial import): more info, from Patrice.
52984
52985 2005-07-11  Bruno Haible  <bruno@clisp.org>
52986
52987         * gnulib-tool (func_usage): Document option --avoid.
52988         (Command line options): Handle --avoid.
52989         (func_acceptable): New function.
52990         (func_modules_transitive_closure): Use it.
52991
52992 2005-07-11  Bruno Haible  <bruno@clisp.org>
52993
52994         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
52995         Reported by Jim Meyering.
52996
52997 2005-07-10  Bruno Haible  <bruno@clisp.org>
52998
52999         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
53000         Needed when size_t is smaller than 'unsigned int'.
53001         Reported by Paul Eggert.
53002
53003 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53004
53005         * modules/argp (Depends-on): Add unlocked-io
53006
53007 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53008
53009         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
53010         block of defines.
53011
53012 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
53013
53014         * config/srclist.txt: Comment out regcomp.c, since we have a porting
53015         fix now.
53016
53017 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
53018         and Paul Eggert  <eggert@cs.ucla.edu>
53019
53020         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
53021         in wint_t, not wchar_t.  Remove now-unnecessary cast.
53022
53023 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
53024
53025         * modules/regex (Files): Add lib/regex_internal.c,
53026         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
53027         (Depends-on): Add extensions.
53028         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
53029
53030 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
53031
53032         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
53033         pathconf.
53034         * m4/same.m4 (gl_SAME): Likewise.
53035         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
53036
53037         * m4/regex.m4: Adjust to new libc regex implementation.
53038         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
53039         all the .c and .h parts of (the new) regex.
53040         Quote the m4 stuff better.
53041         Check for RE_ICASE bug of old gnulib.
53042         Check for REG_STARTEND of recent libc.
53043         Rename local variables from jm_* to gl_*.
53044         Quote operand of "test -f".
53045         Say "recent enough" version of libc, not "version 2".
53046         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
53047         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
53048         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
53049         Remove check for btowc, isascii.
53050         Require AM_LANGINFO_CODESET.
53051
53052 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
53053
53054         * lib/regex.c, regex.h: Sync from libc.
53055         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
53056         * lib/regexec.c:
53057         New files, synced from libc, except that regex_internal.h
53058         currently has a small porting fix.
53059
53060 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
53061
53062         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
53063         regex_internal.c, regexec.c.
53064         Add regex_internal.h too, but as a comment, since the libc version
53065         is currently broken in gnulib mode.
53066
53067 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
53068
53069         Support programs like Emacs that use gnulib but not gettext.
53070         * MODULES.html.sh (Internationalization functions): Add gettext-h.
53071         * modules/gettext-h: New file.
53072         * modules/gettext (Files): Remove lib/gettext.h.
53073         (Depends-on): Add gettext-h.
53074         (Makefile.am): Remove lib_SOURCES.
53075         * modules/argmatch, modules/c-stack, modules/closeout:
53076         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
53077         * modules/execute, modules/file-type, modules/getaddrinfo:
53078         * modules/getopt, modules/human, modules/javacomp:
53079         * modules/javaexec, modules/mkdir-p, modules/obstack:
53080         * modules/openat, modules/pagealign_alloc, modules/pipe:
53081         * modules/quotearg, modules/regex, modules/rpmatch:
53082         * modules/unicodeio, modules/userspec, modules/version-etc:
53083         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
53084         * modules/xsetenv:
53085         Depend on gettext-h, not gettext.
53086
53087 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
53088
53089         * gnulib-tool (func_import): Add support for 'public domain' license.
53090         * modules/alloca, modules/atexit, modules/memmove:
53091         Now public domain, not GPL.
53092         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
53093         * modules/realloc, modules/strerror, modules/strtod:
53094         Now LGPL, not GPL.
53095
53096 2005-07-05  Bruno Haible  <bruno@clisp.org>
53097
53098         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
53099         autoconf CVS. Needed for mingw.
53100
53101 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
53102
53103         Remove the dependency of the strftime module on the tzset module.
53104         * modules/strftime (Depends-on): Remove dependency on tzset.
53105
53106 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
53107
53108         Remove the dependency of the strftime module on the tzset module.
53109         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
53110         gl_FUNC_TZSET_CLOBBER.
53111
53112 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
53113
53114         Remove the dependency of the strftime module on the tzset module.
53115         * lib/strftime.c (my_strftime)
53116         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
53117         Copy the input structure, to work around some of the bug with
53118         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
53119         Solaris releases, you should also use the tzset module, but we won't
53120         require it as a dependency any more since we don't want LGPLed code
53121         to depend on GPLed code.
53122
53123 2005-07-02  Jim Meyering  <jim@meyering.net>
53124
53125         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
53126         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
53127         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
53128         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
53129
53130 2005-07-02  Jim Meyering  <jim@meyering.net>
53131
53132         * lib/backupfile.c (backup_args): Change a `0' to NULL.
53133
53134 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
53135
53136         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
53137         declares only 'struct timespec;' (!).
53138
53139 2005-07-01  Jim Meyering  <jim@meyering.net>
53140
53141         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
53142         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
53143         * lib/save-cwd.c, tempname.c:
53144         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
53145         and don't include <sys/file.h>).
53146
53147 2005-06-29  Jim Meyering  <jim@meyering.net>
53148
53149         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
53150         type name.  Use the variable name instead.
53151         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
53152         Likewise.
53153
53154 2005-06-28  Simon Josefsson  <jas@extundo.com>
53155
53156         * modules/check-version (Files): Add check-version.m4.
53157
53158 2005-06-28  Simon Josefsson  <jas@extundo.com>
53159
53160         * m4/check-version.m4: New file, suggested by Jim Meyering
53161         <jim@meyering.net>.
53162
53163 2005-06-28  Simon Josefsson  <jas@extundo.com>
53164
53165         * lib/check-version.h, lib/check-version.c: New files.
53166
53167 2005-06-28  Simon Josefsson  <jas@extundo.com>
53168
53169         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
53170         collision with global variable.  Better indentation.  Don't
53171         increment buffer pointer beyond buffer end.  Based on comments
53172         from Paul Eggert <eggert@cs.ucla.edu>.
53173
53174         * lib/base64.h: Indent.
53175
53176 2005-06-28  Simon Josefsson  <jas@extundo.com>
53177
53178         * doc/gnulib.texi (Library version handling): New section.
53179
53180 2005-06-28  Jim Meyering  <jim@meyering.net>
53181
53182         * check-module (find_included_lib_files): Hard-code another
53183         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
53184         but modules/fts-lgpl (correctly) does not list those files.
53185
53186         * modules/canonicalize (Files): Add lib/pathmax.h.
53187
53188 2005-06-25  Simon Josefsson  <jas@extundo.com>
53189
53190         * modules/check-version: New file.
53191
53192 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
53193
53194         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
53195         initializer of struct addrinfo, as an indication that we don't
53196         care how many members the structure has.
53197
53198 2005-06-24  Derek Price  <derek@ximbiot.com>
53199         and Bruno Haible  <bruno@clisp.org>
53200
53201         Remove stat module & update lstat.
53202         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
53203         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
53204         * m4/stat.m4: Remove this file.
53205
53206 2005-06-24  Derek Price  <derek@ximbiot.com>
53207         and Bruno Haible  <bruno@clisp.org>
53208
53209         Remove stat module & update lstat.
53210         * lib/stat.c: Remove this file...
53211         (slash_aware_lstat): ...moving this content and its support...
53212         * lib/lstat.c (rpl_lstat): ...into here.
53213         * lib/lstat.h: New file.
53214
53215 2005-06-24  Derek Price  <derek@ximbiot.com>
53216         and Bruno Haible  <bruno@clisp.org>
53217
53218         Remove stat module & update lstat.
53219         * config/srclist.txt (libc sources): Remove stat.
53220
53221 2005-06-24  Derek Price  <derek@ximbiot.com>
53222         and Bruno Haible  <bruno@clisp.org>
53223
53224         Remove stat module & update lstat.
53225         * MODULES.html.sh (stat): Remove.
53226         * MODULES.html: Regenerated.
53227         * modules/lstat (Description): Correct function name.
53228         (Files): Add "lstat.h".
53229         (Depends-on): Remove stat, add xalloc, stat-macros.
53230         * modules/stat: Remove this file.
53231         (Include): Add "lstat.h", remove <sys/stat.h>.
53232
53233 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
53234
53235         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
53236         (ranged_convert): Don't save conversion in a temporary struct.
53237         This causes a warning with GCC 4.0.0, and anyway in the typical
53238         case it's not worth the extra 100 bytes or so of code.
53239         (ranged_convert, __mktime_internal): When calling a function via a
53240         pointer P, use P () rather than (*P) (), as we now assume C89 or
53241         better.
53242
53243 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53244
53245         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
53246         "who -r" failed to give output.  Problem reported by Tim Waugh.
53247
53248         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
53249         (xcalloc): Use it to avoid needless tests.
53250         Problem reported by Jim Meyering.
53251
53252 2005-06-20  Derek Price  <derek@ximbiot.com>
53253
53254         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
53255         unnecessary for Autoconfs > 2.59c.
53256
53257 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53258
53259         * lib/argp.h (__option_is_short): Check upper limit of
53260         __key. Isprint() requires its argument to have the value
53261         of an unsigned char or EOF.
53262
53263 2005-06-16  Jim Meyering  <jim@meyering.net>
53264
53265         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
53266         when either N or S is zero.
53267
53268 2005-06-16  Derek Price  <derek@ximbiot.com>
53269
53270         * m4/bison.m4: Declare YACC & YFLAGS precious.
53271
53272 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
53273
53274         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
53275         multibyte string or pattern, fall back on unibyte matching.
53276         Problem reported by James Youngman.
53277
53278 2005-06-08  Bruno Haible  <bruno@clisp.org>
53279
53280         * modules/csharpcomp: New file.
53281         * MODULES.html.sh (C#): Add csharpcomp.
53282
53283 2005-06-08  Bruno Haible  <bruno@clisp.org>
53284
53285         * m4/csharpcomp.m4: New file, from GNU gettext.
53286
53287 2005-06-08  Bruno Haible  <bruno@clisp.org>
53288
53289         * lib/csharpcomp.h: New file, from GNU gettext.
53290         * lib/csharpcomp.c: New file, from GNU gettext.
53291         * lib/csharpcomp.sh.in: New file, from GNU gettext.
53292
53293 2005-06-08  Bruno Haible  <bruno@clisp.org>
53294
53295         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
53296         warning on mingw.
53297
53298 2005-06-07  Derek Price  <derek@ximbiot.com>
53299
53300         Sync from CVS.
53301         * lib/glob_.h: Indent nested #ifdef.
53302
53303 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
53304
53305         Sync from coreutils.
53306         Use "file name" when talking about file names, instead of "filename"
53307         or "path", as per the GNU coding standards.
53308         * lib/mkdir-p.c: Renamed from makepath.c.
53309         (make_dir_parents): Renamed from make_path.  All callers changed.
53310         * lib/mkdir-p.h: Likewise.  All includers changed.
53311         * lib/filenamecat.c: Renamed from path-concat.c.
53312         (file_name_concat): Renamed from path_concat.  All callers changed.
53313         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
53314         * lib/filenamecat.h: Likewise.  All includers changed.
53315         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
53316         in comments or local variable names.
53317         * lib/basename.c: Likewise.
53318         * lib/canonicalize.c, canonicalize.h: Likewise.
53319         * lib/dirname.c, dirname.h: Likewise.
53320         * lib/euidaccess.c: Likewise.
53321         * lib/exclude.c: Likewise
53322         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
53323         * lib/fsusage.c, fsuage.h: Likewise.
53324         * lib/fts.c, fts_.h: Likewise.
53325         * lib/getcwd.c: Likewise.
53326         * lib/getloadavg.c: Likewise.
53327         * lib/mkstemp.c: Likewise.
53328         * lib/mountlist.c, mountlist.h: Likewise.
53329         * lib/openat.c, openat.h: Likewise.
53330         * lib/readlink-stub.c: Likewise.
53331         * lib/readutmp.c, readutmp.h: Likewise.
53332         * lib/rename.c: Likewise.
53333         * lib/rmdir.c: Likewise.
53334         * lib/same.c: Likewise.
53335         * lib/savedir.c: Likewise.
53336         * lib/stripslash.c: Likewise.
53337         * lib/tempname.c: Likewise.
53338         * lib/xreadlink.c: Likewise.
53339         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
53340         All uses changed.
53341         * lib/exclude.h: Likewise.
53342
53343         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
53344         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
53345         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
53346         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
53347         * lib/pathmax.h: Include <limits.h> unconditionally, since other
53348         files have been getting away with it for years (MORE/BSD 4.3
53349         is extinct now).
53350         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
53351         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
53352
53353         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
53354         Define to 256, not 255, as per modern POSIX.
53355
53356 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
53357
53358         Sync from coreutils.
53359         Use "file name" when talking about file names, instead of "filename"
53360         or "path", as per the GNU coding standards.
53361         * MODULES.html.sh: mkdir-p renamed from makepath.
53362         filenamecat renamed from path-concat.
53363         * modules/filenamecat: Renamed from modules/path-concat.
53364         (Files): filenamecat.h and filenamecat.c renamed from
53365         path-concat.h and path-concat.c.
53366         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
53367         (Include): filenamecat.h, not path-concat.h.
53368         * modules/mkdir-p: Renamed from modules/makepath.
53369         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
53370         makepath.c.
53371         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
53372         (Include): mkdir-p.h, not makepath.h.
53373
53374 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
53375
53376         Sync from coreutils.
53377         * m4/mkdir-p.m4: Renamed from makepath.m4.
53378         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
53379         Rename files from makepath.c to mkdir-p.c, and from
53380         makepath.h to mkdir-p.h.
53381         * m4/filenamecat.m4: Renamed from path-concat.m4.
53382         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
53383         Rename files from path-concat.c to filenamecat.c,
53384         and from path-concat.h to filenamecat.h.
53385         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
53386         "file name" in local variables or comments.
53387         * m4/rename.m4: Likewise.
53388
53389 2005-06-01  Bruno Haible  <bruno@clisp.org>
53390
53391         * modules/csharpexec: New file.
53392         * MODULES.html.sh (C#): New section.
53393
53394 2005-06-01  Bruno Haible  <bruno@clisp.org>
53395
53396         * m4/csharp.m4: New file, from GNU gettext.
53397         * m4/csharpexec.m4: New file, from GNU gettext.
53398
53399 2005-06-01  Bruno Haible  <bruno@clisp.org>
53400
53401         * lib/csharpexec.h: New file, from GNU gettext.
53402         * lib/csharpexec.c: New file, from GNU gettext.
53403         * lib/csharpexec.sh.in: New file, from GNU gettext.
53404
53405 2005-05-31  Derek Price  <derek@ximbiot.com>
53406             Paul Eggert  <eggert@cs.ucla.edu>
53407
53408         Sync from cvs.
53409         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
53410
53411 2005-05-31  Derek Price  <derek@ximbiot.com>
53412             Paul Eggert  <eggert@cs.ucla.edu>
53413
53414         Sync from cvs.
53415         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
53416
53417 2005-05-29  Derek Price  <derek@ximbiot.com>
53418
53419         * config/srclist.txt (glob_.h, glob.c): Add these files.
53420
53421 2005-05-29  Derek Price  <derek@ximbiot.com>
53422
53423         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
53424         * modules/glob: New file.
53425         * modules/getlogin_r: Add link to POSIX spec in description.
53426
53427 2005-05-29  Derek Price  <derek@ximbiot.com>
53428             Paul Eggert  <eggert@cs.ucla.edu>
53429
53430         * m4/glob.m4: New file.
53431
53432 2005-05-29  Derek Price  <derek@ximbiot.com>
53433             Paul Eggert  <eggert@cs.ucla.edu>
53434
53435         * lib/glob_.h, lib/glob.c: New files.
53436
53437 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
53438
53439         * modules/fts (Files): Remove m4/inttypes-pri.m4.
53440         * modules/fts-lgpl (Depends-on): Remove gettext.
53441
53442 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
53443
53444         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
53445         and don't require gt_INTTYPES_PRI.
53446
53447 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
53448
53449         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
53450
53451         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
53452         the configuration hassle isn't worth it.
53453         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
53454         (LONGEST_MODIFIER, PRIuMAX): Remove.
53455
53456 2005-05-27  Bruno Haible  <bruno@clisp.org>
53457
53458         * lib/getlogin_r.h: Remove second include of <stddef.h>.
53459
53460 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
53461
53462         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
53463         _POSIX_PTHREAD_SEMANTICS for Solaris.
53464
53465 2005-05-25  Derek Price  <derek@ximbiot.com>
53466
53467         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
53468
53469 2005-05-25  Derek Price  <derek@ximbiot.com>
53470             Paul Eggert  <eggert@cs.ucla.edu>
53471
53472         * modules/getlogin_r, m4/getlogin_r.m4: New files.
53473         * lib/getlogin_r.c, getlogin_r.h: New files.
53474
53475 2005-05-25  Bruno Haible  <bruno@clisp.org>
53476             Derek Price  <derek@ximbiot.com>
53477
53478         * lib/getlogin_r.h: Simplify API documentation.
53479
53480 2005-05-23  Derek Price  <derek@ximbiot.com>
53481
53482         * modules/minmax (Files): Add m4/minmax.m4.
53483         (configure.ac): Add gl_MINMAX.
53484
53485 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
53486
53487         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
53488         so that unistd-safer.h (GPL'ed code) need not be included.
53489
53490 2005-05-22  Bruno Haible  <bruno@clisp.org>
53491
53492         * m4/minmax.m4: New file.
53493         Based on a patch by Derek Price <derek@ximbiot.com>.
53494
53495 2005-05-22  Bruno Haible  <bruno@clisp.org>
53496
53497         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
53498         (INT64_MIN): Fix definition.
53499         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
53500
53501         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
53502         NEED_SIGNED_INT_TYPES.
53503
53504         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
53505         HAVE_SYSTEM_INTTYPES.
53506
53507 2005-05-22  Bruno Haible  <bruno@clisp.org>
53508
53509         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
53510         Also include <sys/param.h> if it defines MIN, MAX.
53511         Based on a patch by Derek Price <derek@ximbiot.com>.
53512
53513 2005-05-21  Jim Meyering  <jim@meyering.net>
53514
53515         * modules/fts (Files): Add m4/inttypes-pri.m4.
53516         (Depends-on): Add lstat and remove gettext.  Alphabetize.
53517
53518 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
53519
53520         New fts module.
53521         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
53522         (setup_dir, free_dir): New functions.
53523         (enter_dir, leave_dir): Define trivial
53524         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
53525         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
53526         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
53527         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
53528         Move to fts-cycle.c.
53529         (fts_open): Use setup_dir.
53530         (fts_close): Use free_dir.
53531         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
53532         This adds a label and some gotos, but the alternatives were messier.
53533         Check for memory allocation failure when entering a dir.
53534         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
53535         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
53536         (FTS): New member fts_cycle, that is a union that contains the
53537         old active_dir_ht and cycle_state.  All uses changed to mention
53538         fts_cycle.ht and fts_cycle.state.
53539         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
53540         fts.c, with the following changes:
53541         (setup_dir, free_dir): New functions.
53542         (enter_dir): Now returns bool.  Return true if successful, false
53543         if memory exhausted.  All callers changed.
53544         Do not bother partly cleaning up on
53545         memory allocation failure; that is free_dir's job.
53546         However, free ad if hash_insert fails, to avoid memory leak.
53547         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
53548         fts->fts_options to see which union member to use.
53549
53550 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
53551
53552         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
53553         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
53554
53555 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
53556
53557         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
53558
53559 2005-05-20  Jim Meyering  <jim@meyering.net>
53560
53561         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
53562         Now a macro, to pacify GCC.
53563
53564 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
53565
53566         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
53567         of -1.
53568
53569 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
53570
53571         * lib/chown.c (rpl_chown): Return -1 on failure.
53572
53573 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
53574
53575         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
53576         Don't check for stddef.h.
53577         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
53578         don't use its results.
53579         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
53580         since we include them unconditionally.  Don't require
53581         AM_STDBOOL_H, since stdbool is a prerequisite.
53582         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
53583         since we assume C89 or better.
53584         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
53585         as we don't use their results.
53586         Don't check for fchdir, memmove, memset, strrchr, as we use
53587         them unconditionally.
53588         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
53589         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
53590
53591 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
53592
53593         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
53594         Include <stddef.h> unconditionally, since we assume C89 now.
53595         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
53596         * lib/fts.c: Include fts_.h first, to check interface.
53597         Do not include intprops.h; no longer needed.
53598         Include cycle-check.h and hash.h, since fts_.h no longer does.
53599         Remove unnecessary casts of closedir to void.
53600         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
53601         decide whether to decrement nlinks.
53602         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
53603         (FTS): Use struct hash_table * instead of Hash_table, so that
53604         we no longer need to include hash.h here.
53605
53606 2005-05-18  Jim Meyering  <jim@meyering.net>
53607
53608         * modules/dirfd (License): Change to LGPL.  Most of the code
53609         is already in the public domain.
53610
53611 2005-05-18  Jim Meyering  <jim@meyering.net>
53612
53613         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
53614         Reported by Yoann Vandoorselaere.
53615
53616 2005-05-17  Jim Meyering  <jim@meyering.net>
53617
53618         * m4/fts.m4: New file, from coreutils.
53619
53620 2005-05-17  Jim Meyering  <jim@meyering.net>
53621
53622         * lib/fts.c, lib/fts_.h: New files, from coreutils.
53623
53624 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
53625
53626         Sync from coreutils.
53627         * m4/unlinkdir.m4: New file.
53628
53629 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
53630
53631         Sync from coreutils.
53632         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
53633         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
53634         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
53635         White space changes only.
53636         * lib/makepath.c (make_path): Port to hosts where leading "//" is
53637         special.
53638         * lib/yesno.c: Include getline.h, not ctype.h.
53639         (yesno): Don't remove leading white space; POSIX doesn't allow it.
53640         Use getline to remove arbitrary restriction on response length.
53641
53642 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
53643
53644         * config/srclist-update: Spell out "Street" in FSF postal
53645         mail address; this is the style the FSF seems to prefer.
53646
53647         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
53648         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
53649         this updates FSF postal mail address.
53650
53651         Sync from coreutils.
53652         * modules/unlinkdir: New file.
53653         * modules/yesno (Depends-on): Add getline.
53654         * MODULES.html.sh (File system functions): Add unlinkdir.
53655
53656 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
53657
53658         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
53659         lib/strsep.h:
53660         Change the initial comment to refer to GPL, not LGPL.
53661         gnulib-tool will change it to LGPL as needed.
53662
53663         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
53664         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
53665         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
53666         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
53667         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
53668         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
53669         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
53670         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
53671         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
53672         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
53673         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
53674         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
53675         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
53676         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
53677         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
53678         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
53679         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
53680         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
53681         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
53682         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
53683         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
53684         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
53685         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
53686         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
53687         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
53688         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
53689         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
53690         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
53691         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
53692         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
53693         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
53694         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
53695         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
53696         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
53697         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
53698         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
53699         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
53700         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
53701         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
53702         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
53703         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
53704         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
53705         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
53706         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
53707         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
53708         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
53709         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
53710         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
53711         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
53712         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
53713         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
53714         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
53715         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
53716         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
53717         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
53718         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
53719         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
53720         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
53721         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
53722         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
53723         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
53724         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
53725         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
53726         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
53727         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
53728         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
53729         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
53730         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
53731         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
53732         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
53733         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
53734         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
53735         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
53736         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
53737         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
53738         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
53739         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
53740         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
53741         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
53742         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
53743         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
53744         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
53745         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
53746         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
53747         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
53748         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
53749         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
53750         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
53751         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
53752         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
53753         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
53754         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
53755         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
53756         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
53757         lib/yesno.c, lib/yesno.h:
53758         Update FSF postal mail address.
53759
53760 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
53761
53762         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
53763         tests/test-memmem.c, tests/test-stpncpy.c:
53764         Update FSF postal mail address.
53765
53766 2005-05-13  Bruno Haible  <bruno@clisp.org>
53767
53768         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
53769         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
53770         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
53771         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
53772         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
53773         Add support for 64-bit integers in the MSVC compiler.
53774
53775 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53776
53777         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
53778
53779 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
53780
53781         * gnulib-tool (func_import): Sort and uniquify recommended includes.
53782
53783 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
53784
53785         * doc/getdate.texi (General date syntax): Don't say that date
53786         date --iso-8601=ns generates acceptable dates; it doesn't yet.
53787         Problem reported by Nic Ferrier.
53788
53789 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53790
53791         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
53792         specified in ai_socktype. Fix invalid ai_protocol
53793         check. ai_protocol is usually set to 0 or depending on
53794         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
53795         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
53796         ai_socktype / ai_protocol in the returned addrinfo structure.
53797
53798 2005-05-10  Simon Josefsson  <jas@extundo.com>
53799
53800         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
53801         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53802
53803 2005-05-10  Karl Berry  <karl@gnu.org>
53804
53805         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
53806         (from http://www.gnu.org/licenses).
53807         * doc/COPYING.LIB: also rename to COPYING.LESSER.
53808         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
53809         fdl.texi suffices.
53810
53811 2005-05-10  Karl Berry  <karl@gnu.org>
53812
53813         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
53814         (COPYING.DOC): remove.
53815
53816         * config/srclist-update: new FSF address.
53817
53818 2005-05-10  Derek Price  <derek@ximbiot.com>
53819
53820         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
53821         possible.
53822
53823 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53824             Bruno Haible  <bruno@clisp.org>
53825
53826         * modules/inet_ntop: New file.
53827         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53828         inet_ntop.
53829
53830 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53831             Bruno Haible  <bruno@clisp.org>
53832
53833         * m4/inet_ntop.m4: New file.
53834
53835 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53836             Bruno Haible  <bruno@clisp.org>
53837
53838         * lib/inet_ntop.h: New file.
53839         * lib/inet_ntop.c: New file, from glibc with modifications.
53840
53841 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
53842
53843         * modules/time_r (License): Change to LGPL.
53844         * modules/extensions (License): Change to LGPL.  Actually,
53845         the license is more permissive than that, but currently gnulib-tool
53846         doesn't know how to handle more-permissive licenses.
53847
53848         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
53849         Problem reported by Dave Love.
53850
53851 2005-05-08  Jim Meyering  <jim@meyering.net>
53852
53853         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
53854         blank.
53855
53856 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
53857
53858         * modules/argmatch (Depends-on): Add stdbool.
53859         * modules/backupfile (Depends-on): Likewise.
53860         * modules/chdir-long (Depends-on): Likewise.
53861         * modules/closeout (Depends-on): Likewise.
53862         * modules/cycle-check (Depends-on): Likewise.
53863         * modules/dirname (Depends-on): Likewise.
53864         * modules/fnmatch (Depends-on): Likewise.
53865         * modules/fsusage (Depends-on): Likewise.
53866         * modules/fwriteerror (Depends-on): Likewise.
53867         * modules/getcwd (Depends-on): Likewise.
53868         * modules/getloadavg (Depends-on): Likewise.
53869         * modules/hard-locale (Depends-on): Likewise.
53870         * modules/makepath (Depends-on): Likewise.
53871         * modules/mountlist (Depends-on): Likewise.
53872         * modules/nanosleep (Depends-on): Likewise.
53873         * modules/posixtm (Depends-on): Likewise.
53874         * modules/quotearg (Depends-on): Likewise.
53875         * modules/readtokens (Depends-on): Likewise.
53876         * modules/readtokens0 (Depends-on): Likewise.
53877         * modules/readutmp (Depends-on): Likewise.
53878         * modules/save-cwd (Depends-on): Likewise.
53879         * modules/strftime (Depends-on): Likewise.
53880         * modules/userspec (Depends-on): Likewise.
53881         * modules/utimecmp (Depends-on): Likewise.
53882         * modules/xgetcwd (Depends-on): Likewise.
53883         * modules/xnanosleep (Depends-on): Likewise.
53884         * modules/xstrtod (Depends-on): Likewise.
53885         * modules/yesno (Depends-on): Likewise.
53886
53887 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
53888
53889         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
53890         needless checks.
53891
53892 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53893
53894         Merge from coreutils.  Among other things,
53895         add bulletproofing for cases where stdin, stdout, or stderr are closed.
53896         * lib/fd-safer.c: New file.
53897         * lib/fcntl-safer.h, open-safer.c: Remove.
53898         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
53899         * lib/dup-safer.c: Include unistd-safer.h first.
53900         Don't include errno.h.
53901         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
53902         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
53903         * lib/file-type.c: Rely on file-type.h change.
53904         * lib/getloadavg.c: Include unistd-safer.h.
53905         (getloadavg): Use safer open.
53906         * lib/getusershell.c: Include "stdio-safer.h".
53907         (getusershell): Use safer fopen.
53908         * lib/long-options.c (long_options): Use NULL rather than 0.
53909         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
53910         'free'.
53911         * lib/modechange.c: Likewise.
53912         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
53913         (MODE_DONE): New constant.
53914         (struct mode_change): Remove 'next' member.
53915         (make_node_op_equals): New function; like the old one of the
53916         same name, except it allocates an array.
53917         (mode_compile, mode_create_from_ref): Use it.
53918         (mode_compile): Allocate result as an array, not a linked list.
53919         Parse octal string ourself, so that we catch mistakes like "+0".
53920         (mode_adjust): Arg is an array, not a linked list.
53921         * lib/modechange.c: Include stat-macros.h, xalloc.h.
53922         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
53923         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
53924         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
53925         Remove.  This is now stat-macros.h's job.
53926         (talloc): Remove.  All callers replaced by xalloc, so that
53927         our invokers don't have to worry about reporting memory failures.
53928         (make_node_op_equals): Remove.
53929         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
53930         New constants.
53931         (struct mode_change): Moved here from modechange.h.
53932         (mode_append_entry): Remove.
53933         (mode_compile): Remove MASKED_OPS arg, since it encouraged
53934         apps to have incorrect behavior.  Use simpler algorithm for head
53935         and tail.  Don't futz with umask; that's now the job of mode_adjust.
53936         Detect more invalid usages rather than having somewhat-random behavior.
53937         Don't insert an "a=" action, as that leads to incorrect behavior.
53938         (mode_compile, mode_create_from_ref): Return NULL on error instead
53939         of an enum, since now there's only one way to have an error.  All
53940         callers changed.
53941         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
53942         at the correct time.  Simplify calculation of "+u" and its ilk.
53943         Don't mishandle "+X".
53944         (mode_free): Remove "register" and localize decls.
53945         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
53946         (struct mode_change): Move to modechange.c; callers don't
53947         need to see this stuff.
53948         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
53949         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
53950         (mode_change, mode_adjust): Reflect the new signatures noted above.
53951         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
53952         that might redefine system include files.
53953         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
53954         (my_usleep): Use NULL rather than (void *) 0.
53955         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
53956         Use siginterrupt to specify that system calls should be interrupted.
53957         (rpl_nanosleep): Move initialization of suspended closer to call of
53958         my_usleep.
53959         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
53960         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
53961         (desirable_utmp_entry): New function.
53962         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
53963         using x2nrealloc, to simplify logic.
53964         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
53965         size calculation.  Do not assume utmp file is a regular file.
53966         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
53967         (READ_UTMP_CHECK_PIDS): New constant.
53968         * lib/save-cwd.c: Include unistd-safer.h.
53969         (save_cwd): Use fd_safer.
53970         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
53971         [!_LIBC] Include "stat-macros.h" instead.
53972         * lib/unistd-safer.h (fd_safer): New decl.
53973
53974 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53975
53976         * modules/getloadavg (Depends-on): Add unistd-safer.
53977         * modules/getusershell (Depends-on): Add stdio-safer.
53978         * modules/lstat (Depends-on): Remove xalloc.
53979         * modules/mkstemp (Depends-on): Add stat-macros.
53980         * modules/modechange (Depends-on): Remove xstrtol.
53981         Add stat-macros, xalloc.
53982         * modules/save-cwd (Depends-on): Add unistd-safer.
53983         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
53984         * modules/unistd-safer (Files): Add lib/fd-safer.c
53985         (Makefile.am): Remove lib_SOURCES.
53986
53987         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
53988         Remove fcntl-safer; unistd-safer supersedes it.
53989
53990 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53991
53992         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
53993         AC_HEADER_STAT.
53994         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
53995         (gl_PREREQ_CHOWN): Remove.
53996         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
53997         it.  Don't require AC_HEADER_STAT.
53998         (gl_PREREQ_LSTAT): Remove.
53999         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
54000         Don't require AC_HEADER_STAT.
54001         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
54002         (gl_PREREQ_RMDIR): Remove.
54003         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
54004         mention stat-macros.h or AC_HEADER_STAT, since we'll make
54005         the stat-macros module a prerequisite.
54006         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
54007         * m4/filemode.m4 (gl_FILEMODE): Likewise.
54008         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
54009         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
54010         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
54011         variable names.
54012         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
54013         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
54014         variable prefixes.
54015         * m4/fcntl-safer.m4: Remove.
54016         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
54017         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
54018         Invoke gl_PREREQ_FD_SAFER.
54019         (gl_PREREQ_FD_SAFER): New macro.
54020         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
54021         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
54022         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
54023         Remove duplicate call to AC_LIBOBJ(readutmp).
54024         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
54025
54026         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
54027         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
54028
54029 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
54030
54031         * MODULES.html.sh (Misc): Add byteswap.
54032
54033 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
54034
54035         * modules/getcwd (Depends-on): Add extensions.
54036         * modules/openat (Depends-on): Likewise.
54037
54038 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
54039
54040         * modules/byteswap: New file.
54041
54042 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
54043
54044         * m4/byteswap.m4: New file.
54045
54046 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
54047
54048         * lib/byteswap_.h: New file.
54049
54050 2005-04-25  Karl Berry  <karl@gnu.org>
54051
54052         * m4/gettext.m4: Update from GNU gettext 0.14.4.
54053
54054 2005-04-25  Albert Chin  <china@thewrittenword.com>
54055
54056         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
54057         Toolkit C bug.
54058
54059 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
54060
54061         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
54062         (func_ln_if_changed) Remove forcibly for no error message
54063         in case file does not exist.
54064
54065 2005-04-19  Simon Josefsson  <jas@extundo.com>
54066
54067         * gnulib-tool (Options): Make --symlink mean --symbolic.
54068
54069 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
54070
54071         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
54072
54073 2005-04-16  Simon Josefsson  <jas@extundo.com>
54074
54075         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
54076
54077 2005-04-15  Simon Josefsson  <jas@extundo.com>
54078
54079         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
54080
54081 2005-04-15  Simon Josefsson  <jas@extundo.com>
54082
54083         * gnulib-tool: Rename --symlink to --symbolic.
54084
54085 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
54086
54087         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
54088         symbolic links to files instead of copying/moving.  Add --aux-dir,
54089         specifying directory relative --dir where auxiliary build tools
54090         are placed.
54091
54092 2005-04-14  Bruno Haible  <bruno@clisp.org>
54093
54094         * modules/allocsa (License): Change to LGPL.
54095         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54096
54097 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
54098
54099         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
54100         that "UTC +1 second" continues to work.  Problem reported
54101         by Dmitry V. Levin.
54102         (relunit_snumber): New rule.
54103         (relunit): Use it.
54104
54105 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
54106
54107         * lib/getdate.y (universal_time_zone_table): New constant.
54108         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
54109         universal_time_zone_table.
54110         (lookup_zone): Prefer universal_time_zone_table to
54111         local_time_zone_table, so that "GMT" time stamps are allowed in
54112         London during the summer.  Problem reported by Ian Abbott.
54113
54114 2005-04-12  Jim Meyering  <jim@meyering.net>
54115
54116         * lib/human.c (humblock): Set *options even when returning due to
54117         xstrtoumax conversion failure.  Thanks to a used-uninitialized
54118         warning from gcc-4.
54119
54120 2005-04-09  Jim Meyering  <jim@meyering.net>
54121
54122         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
54123         -Wuninitialized: initialize tm0.tm_year.
54124
54125 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
54126
54127         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
54128         count, since there's no maximum.  All uses changed.
54129         Add member dsts_seen.
54130         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
54131         not being INT_MAX.
54132         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
54133         Use pc_rels_seen to decide whther a date is absolute.
54134
54135         * lib/getdate.y (number): Don't overwrite year.
54136         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
54137         check.
54138
54139 2005-04-02  Simon Josefsson  <jas@extundo.com>
54140
54141         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
54142         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
54143
54144 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
54145
54146         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
54147         where no absolute path name can be longer than PATH_MAX.
54148
54149 2005-03-27  Jim Meyering  <jim@meyering.net>
54150
54151         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
54152
54153 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
54154
54155         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
54156         "one's complement" -> "ones' complement" in comment, as per Knuth.
54157         "value of type" -> "type or expression" in comment.
54158         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
54159
54160 2005-03-26  Jim Meyering  <jim@meyering.net>
54161
54162         Comment nits.
54163         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
54164         Correct typos: s/or/of/.
54165
54166 2005-03-26  Jim Meyering  <jim@meyering.net>
54167
54168         * modules/check-include-files: Move to ../ and rename to...
54169         * check-module: ...this.
54170
54171 2005-03-25  Jim Meyering  <jim@meyering.net>
54172
54173         * modules/xvasprintf (Files): Add xalloc.h.
54174
54175 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
54176
54177         * modules/gettext (Files): config/config.rpath ->
54178         build-aux/config.rpath
54179         * modules/iconv (Files): Likewise.
54180         Problem reported by Oskar Liljeblad.
54181
54182 2005-03-23  Jim Meyering  <jim@meyering.net>
54183
54184         * modules/check-include-files: New script to check for
54185         missing dependencies, multiple includes, etc.
54186
54187         * modules/c-strtold (Depends-on): Add xalloc.
54188         * modules/c-strtod (Depends-on): Add xalloc.
54189         * modules/hash (Depends-on): Add xalloc.
54190         (Files): Remove lib/xalloc.h.
54191
54192         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
54193         * modules/userspec (Files): Add lib/inttostr.h.
54194
54195 2005-03-23  Jim Meyering  <jim@meyering.net>
54196
54197         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
54198
54199 2005-03-22  Jim Meyering  <jim@meyering.net>
54200
54201         * modules/stat-macros: New module.
54202         * modules/canonicalize, modules/euidaccess, modules/file-type,
54203         * modules/filemode, modules/lchown, modules/makepath,
54204         * modules/rmdir, modules/stat: Depend on new stat-macros module
54205         rather than listing lib/stat-macros.h manually.
54206         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
54207
54208 2005-03-22  Jim Meyering  <jim@meyering.net>
54209
54210         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
54211
54212 2005-03-22  Bruno Haible  <bruno@clisp.org>
54213
54214         * config/srclist.txt: Replace target directory 'config' with
54215         'build-aux'.
54216         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
54217         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
54218         ../build-aux/.
54219
54220 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
54221
54222         * modules/chdir-long (Depends-on): Add mempcpy.
54223
54224         * modules/acl, modules/backupfile, modules/c-strtod,
54225         modules/c-strtold, modules/canon-host, modules/canonicalize,
54226         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
54227         modules/exclude, modules/exitfail, modules/file-type,
54228         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
54229         modules/getdate, modules/getline, modules/getpagesize,
54230         modules/getpass, modules/getugroups, modules/group-member,
54231         modules/hard-locale, modules/hash, modules/human, modules/idcache,
54232         modules/inttostr, modules/long-options, modules/makepath,
54233         modules/md5, modules/memcasecmp, modules/memcoll,
54234         modules/modechange, modules/mountlist, modules/path-concat,
54235         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
54236         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
54237         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
54238         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
54239         modules/strftime, modules/strndup, modules/strverscmp,
54240         modules/timespec, modules/unlocked-io, modules/userspec,
54241         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
54242         modules/yesno:
54243         Remove lib_SOURCES line from Makefile.am section, as this is now
54244         done automatically by the corresponding Autoconf macro.
54245
54246 2005-03-21  Jim Meyering  <jim@meyering.net>
54247
54248         Changes imported from coreutils.
54249
54250         * lib/cycle-check.c: Don't include xalloc.h.
54251
54252         * lib/path-concat.c: Don't include assert.h.
54253         (path_concat): Remove assertion that would have triggered
54254         for ABASE starting with more than one slash.
54255         Reported by Andreas Schwab.
54256
54257         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
54258         properly when ABASE is an absolute file name.
54259         Correct the description of this function.
54260         Include <assert.h>.
54261         Add an assertion and a test driver.
54262         This fixes a bug introduced on 2004-07-02.
54263         Andreas Schwab reported the resulting failure of cp --parents:
54264         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
54265
54266 2005-03-21  Jim Meyering  <jim@meyering.net>
54267
54268         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
54269         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
54270
54271 2005-03-21  Jim Meyering  <jim@meyering.net>
54272         and  Paul Eggert  <eggert@cs.ucla.edu>
54273
54274         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
54275         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
54276         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
54277         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
54278         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
54279         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
54280         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
54281         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
54282         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
54283         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
54284         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
54285         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
54286         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
54287         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
54288         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
54289         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
54290         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
54291         for these modules.
54292
54293 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
54294
54295         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
54296         (which shouldn't happen), generate nothing instead of returning 0
54297         immediately, so that nstrftime (NULL, ...) doesn't return 0.
54298
54299 2005-03-16  Bruno Haible  <bruno@clisp.org>
54300
54301         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
54302         HAVE_LONGLONG_64BIT.
54303
54304 2005-03-16  Bruno Haible  <bruno@clisp.org>
54305
54306         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
54307         HAVE_LONGLONG_64BIT.
54308
54309 2005-03-16  Bruno Haible  <bruno@clisp.org>
54310
54311         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
54312         HAVE_LONGLONG_64BIT.
54313
54314 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
54315
54316         * lib/strftime.c (my_strftime): Prepend space to format so that we can
54317         reliably distinguish strftime failure from empty output on POSIX
54318         hosts.
54319
54320 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
54321
54322         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
54323         (iconv_string): Don't guess a size-zero buffer, as that might cause
54324         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
54325         result would be 'too large', where 'too large' is (heuristically)
54326         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
54327         overflow concerns.  This will prevent some unwanted malloc failures
54328         when the inputs are very large.
54329
54330 2005-03-15  Karl Berry  <karl@gnu.org>
54331
54332         * config/srclist.txt (config.rpath): from gettext.
54333         * config/config.rpath: update.
54334
54335 2005-03-15  Bruno Haible  <bruno@clisp.org>
54336
54337         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
54338         to 'negate'.
54339
54340         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
54341         variable.
54342
54343         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
54344         results.
54345
54346 2005-03-14  Simon Josefsson  <jas@extundo.com>
54347
54348         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
54349         <fx@gnu.org>.
54350
54351 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
54352
54353         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
54354         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
54355         intprops.h.
54356         * lib/strtol.c: Likewise.
54357
54358 2005-03-14  Jim Meyering  <jim@meyering.net>
54359
54360         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
54361         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
54362         to be nonzero so that we (and caller) can detect the difference
54363         between a valid zero-length expansion and an error return, even
54364         when the underlying strftime fails before writing anything into
54365         that location.
54366
54367 2005-03-14  Bruno Haible  <bruno@clisp.org>
54368
54369         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
54370         Update from GNU gettext 0.14.3.
54371
54372 2005-03-10  Jim Meyering  <jim@meyering.net>
54373
54374         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
54375
54376 2005-03-10  Jim Meyering  <jim@meyering.net>
54377
54378         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
54379         so that this module works on systems without fchdir.
54380
54381 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
54382
54383         Factor int-properties macros into a single file, except for
54384         glibc-related files.
54385         * lib/intprops.h: New file.
54386         * lib/getloadavg.c: Include it instead of limits.h.
54387         (INT_STRLEN_BOUND): Remove.
54388         * lib/human.c: Include intprops.h.
54389         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
54390         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
54391         302/1000.
54392         * lib/inttostr.h: Include intprops.h instead of limits.h.
54393         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
54394         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
54395         for consistency with intprops.h.
54396         (time_t_is_integer, twos_complement_arithmetic): Use them.
54397         * lib/sig2str.h: Include <signal.h>, intprops.h.
54398         (INT_STRLEN_BOUND): Remove.
54399         * lib/strftime.c (TYPE_SIGNED): Remove.
54400         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
54401         * lib/strtol.c: Adjust comments to match intprops.h.
54402         * lib/userspec.c: Include intprops.h.
54403         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
54404         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
54405         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
54406         instead of rolling our own expressions.
54407         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
54408
54409         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
54410         instead of int.
54411         (my_strftime): Do not mishandle years close to INT_MAX, by doing
54412         the right thing even if adding 1900 would overflow.  Similarly
54413         for tm_mon + 1 and tm_yday + 1.
54414         Make %Y always equivalent to %C%y, and similarly for %G and %g.
54415         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
54416         (DO_SIGNED_NUMBER): New macro.
54417         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
54418
54419 2005-03-07  Bruno Haible  <bruno@clisp.org>
54420
54421         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
54422
54423 2005-03-07  Bruno Haible  <bruno@clisp.org>
54424
54425         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
54426
54427 2005-03-04  Derek R. Price  <derek@ximbiot.com>
54428
54429         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
54430         (func_import): Only replace files via --import when they have actually
54431         changed.
54432
54433 2005-03-03  Derek R. Price  <derek@ximbiot.com>
54434
54435         * m4/mmap-anon.m4: New file.
54436         * m4/pagealign_alloc.m4: New file.
54437
54438 2005-03-03  Derek R. Price  <derek@ximbiot.com>
54439             Bruno Haible  <bruno@clisp.org>
54440
54441         * modules/pagealign_alloc: New file.
54442         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
54443
54444 2005-03-03  Derek R. Price  <derek@ximbiot.com>
54445             Bruno Haible  <bruno@clisp.org>
54446
54447         * lib/pagealign_alloc.h: New file.
54448         * lib/pagealign_alloc.c: New file.
54449
54450 2005-03-03  Bruno Haible  <bruno@clisp.org>
54451
54452         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
54453         Use an all-permissive copyright notice, recommended by RMS.
54454
54455 2005-03-02  Bruno Haible  <bruno@clisp.org>
54456
54457         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
54458         of AIX, the replacement has to be done only after <string.h> is
54459         included, therefore not in config.h. stpncpy.h does the replacement,
54460         and stpncpy.c uses it.
54461
54462 2005-03-02  Bruno Haible  <bruno@clisp.org>
54463
54464         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
54465         stpncpy.c uses it.
54466
54467 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
54468
54469         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
54470         The workaround isn't strictly needed for POSIX conformance, and
54471         it's too much of a pain to configure and maintain.  We'll ask
54472         people to fix their kernels instead.
54473         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
54474         (NANOSLEEP_BUG_WORKAROUND): Remove.
54475         (xnanosleep): Remove the workaround.
54476
54477 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
54478
54479         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
54480         Reported by Derek Price.
54481         (Include): Add "timespec.h".
54482
54483         * modules/xnanosleep (Depends-on): Remove gethrxtime.
54484
54485 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
54486
54487         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
54488         to detect nanosleep bug.
54489
54490 2005-03-01  Bruno Haible  <bruno@clisp.org>
54491
54492         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
54493
54494 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
54495
54496         * modules/gethrxtime: New file.
54497         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
54498         (Depends-on): Add gethrxtime.
54499         (configure.ac): Add gl_XNANOSLEEP.
54500         (Makefile.am): Remove lib_SOURCES line.
54501
54502 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
54503
54504         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
54505         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
54506
54507 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
54508
54509         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
54510         * lib/timespec.h (gettime): Return void, since it always
54511         succeeds now.  All uses changed.
54512         * lib/gettime.c (gettime) Likewise.
54513         [HAVE_NANOTIME]: Prefer nanotime.
54514         Assume gettimeofday succeeds, as POSIX requires.
54515         Assime time () succeeds, since other code already does.
54516         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
54517         (timespec_subtract): Remove.
54518         (NANOSLEEP_BUG_WORKAROUND): New constant.
54519         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
54520         things considerably.  Use it only on GNU/Linux hosts, since the
54521         workaround shouldn't be needed elsewhere.
54522
54523 2005-02-24  Bruno Haible  <bruno@clisp.org>
54524
54525         * modules/gettext (Files): Add m4/glibc2.m4.
54526
54527 2005-02-24  Bruno Haible  <bruno@clisp.org>
54528
54529         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
54530         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
54531         * m4/progtest.m4:
54532         Update from GNU gettext 0.14.2.
54533         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
54534
54535 2005-02-24  Bruno Haible  <bruno@clisp.org>
54536
54537         * lib/localcharset.c: Update from GNU gettext 0.14.2.
54538         * lib/config.charset: Update from GNU gettext 0.14.2.
54539
54540 2005-02-24  Bruno Haible  <bruno@clisp.org>
54541
54542         * lib/gettext.h: Update from GNU gettext 0.14.2.
54543
54544 2005-02-23  Simon Josefsson  <jas@extundo.com>
54545
54546         * m4/iconvme.m4: New file.
54547
54548 2005-02-23  Jim Meyering  <jim@meyering.net>
54549
54550         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
54551         change.
54552         Thanks to Bruno Haible for catching it.
54553
54554 2005-02-22  Simon Josefsson  <jas@extundo.com>
54555
54556         * modules/iconvme: New file.
54557
54558         * MODULES.html.sh: Add iconvme.
54559
54560 2005-02-22  Simon Josefsson  <jas@extundo.com>
54561
54562         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
54563
54564 2005-02-22  Simon Josefsson  <jas@extundo.com>
54565
54566         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
54567
54568 2005-02-22  Jim Meyering  <jim@meyering.net>
54569
54570         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
54571         s/ifndef/ifdef/.
54572
54573 2005-02-20  Neil Conway  <neilc@samurai.com>
54574
54575         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
54576         returned by OSX/Darwin if the specified buffer is not large
54577         enough for the hostname.
54578
54579 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54580
54581         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
54582         pass it to _help, otherwise the latter coredumps trying to
54583         dereference state.root_argp.
54584
54585 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
54586
54587         * modules/chdir-long (Depends-on): Add memrchr.
54588         * modules/memrchr (Files): Add lib/memrchr.h.
54589         (Include): "memrchr.h".
54590
54591 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
54592
54593         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
54594
54595 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
54596
54597         * lib/memrchr.h: New file.
54598         * lib/chdir-long.c: Include it.
54599         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
54600         Don't bother including stddef.h.
54601
54602 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
54603
54604         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
54605         inclusion.
54606         Include <sys/types.h>, for dev_t.
54607         (ME_DUMMY, ME_REMOTE): Move from here....
54608         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
54609         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
54610         Dmitry V. Levin.
54611         Include mountlist.h first, to test the interface.
54612
54613 2005-01-29  Bruno Haible  <bruno@clisp.org>
54614
54615         * lib/progname.c (program_name): Initialize.
54616         Needed when linking statically on MacOS X.
54617
54618 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
54619
54620         Sync from coreutils.
54621         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
54622         (Depends-on): Add c-strtod.
54623         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
54624
54625 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
54626
54627         Sync from coreutils.
54628         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
54629
54630         Remove files that are specific to coreutils.
54631         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
54632
54633 2005-01-28  Bruno Haible  <bruno@clisp.org>
54634
54635         * modules/javacomp: New file.
54636         * MODULES.html.sh (Java): Add javacomp.
54637
54638 2005-01-28  Bruno Haible  <bruno@clisp.org>
54639
54640         * m4/javacomp.m4: New file, from GNU gettext.
54641
54642 2005-01-28  Bruno Haible  <bruno@clisp.org>
54643
54644         * lib/javacomp.sh.in: New file, from GNU gettext.
54645         * lib/javacomp.h: New file, from GNU gettext.
54646         * lib/javacomp.c: New file, from GNU gettext.
54647
54648 2005-01-26  Simon Josefsson  <jas@extundo.com>
54649
54650         * lib/gai_strerror.c: Use GPL in header.
54651
54652 2005-01-26  Bruno Haible  <bruno@clisp.org>
54653
54654         * modules/javaexec: New file.
54655         * MODULES.html.sh (Java): Add javaexec.
54656
54657 2005-01-26  Bruno Haible  <bruno@clisp.org>
54658
54659         * m4/javaexec.m4: New file, from GNU gettext.
54660
54661 2005-01-26  Bruno Haible  <bruno@clisp.org>
54662
54663         * lib/javaexec.sh.in: New file, from GNU gettext.
54664         * lib/javaexec.h: New file, from GNU gettext.
54665         * lib/javaexec.c: New file, from GNU gettext.
54666
54667 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54668
54669         * modules/lchown (Depends-on): Remove lchown.h
54670
54671 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54672
54673         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
54674         must be defined if the header file was not found, in order
54675         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
54676
54677 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54678
54679         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
54680         initializers for struct pentry_state.
54681         (__argp_error): Check return value of __asprintf
54682         (__argp_failure): Translate error message
54683
54684         * lib/argp-parse.c: Removed braces around the expansion of N_()
54685
54686 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54687
54688         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
54689         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
54690         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
54691         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
54692         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
54693         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
54694         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
54695         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
54696         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
54697         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
54698         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
54699         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
54700         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
54701         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
54702         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
54703         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
54704         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
54705         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
54706         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
54707         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
54708         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
54709         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
54710         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
54711         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
54712         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
54713         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
54714         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
54715         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
54716         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
54717         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
54718         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
54719         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
54720         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
54721         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
54722         xstrtol.m4, xstrtoumax.m4, yesno.m4:
54723         Use an all-permissive copyright notice, recommended by RMS.
54724
54725 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
54726
54727         * modules/chdir-long (Depends-on): Remove mempcpy.
54728
54729 2005-01-21  Jim Meyering  <jim@meyering.net>
54730
54731         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
54732         same value as for Solaris 9.
54733
54734         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
54735         component length.  This included changing the parameter to be
54736         of type `char *' rather than `char const *'.
54737         * lib/chdir-long.h (chdir_long): Update prototype.
54738
54739         * lib/openat.c (fdopendir, fstatat): New functions.
54740         * lib/openat.h: Include headers required for use of DIR and struct
54741         stat.
54742         [AT_SYMLINK_NOFOLLOW]: Define.
54743         (fdopendir, fstatat): Add prototypes.
54744
54745 2005-01-21  Bruno Haible  <bruno@clisp.org>
54746
54747         * modules/classpath: New file.
54748         * MODULES.html.sh (Java): Add classpath.
54749
54750 2005-01-21  Bruno Haible  <bruno@clisp.org>
54751
54752         * lib/classpath.h: New file, from GNU gettext.
54753         * lib/classpath.c: New file, from GNU gettext.
54754
54755 2005-01-20  Simon Josefsson  <jas@extundo.com>
54756
54757         * modules/version-etc-fsf: New file.
54758
54759 2005-01-20  Simon Josefsson  <jas@extundo.com>
54760
54761         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
54762         * lib/version-etc.c: Remove version_etc_copyright.
54763         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
54764         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
54765
54766 2005-01-20  Simon Josefsson  <jas@extundo.com>
54767
54768         * lib/base64.h (isbase64): Add.
54769
54770         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
54771         using a unsigned prototype, don't inline.
54772         (base64_decode): Use it.
54773
54774 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
54775
54776         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
54777         it.
54778
54779 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
54780
54781         * lib/save-cwd.c (save_cwd): Remove code to support the case
54782         where fchdir is missing or flaky.
54783
54784 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
54785
54786         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
54787
54788 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
54789
54790         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
54791         AC_LIBSOURCES now does this.
54792         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
54793         with new ullong_max module.
54794
54795 2005-01-19  Bruno Haible  <bruno@clisp.org>
54796
54797         * modules/sh-quote: New file.
54798         * MODULES.html.sh (Executing programs): Add sh-quote.
54799
54800 2005-01-19  Bruno Haible  <bruno@clisp.org>
54801
54802         * lib/sh-quote.h: New file, from GNU gettext.
54803         * lib/sh-quote.c: New file, from GNU gettext.
54804
54805 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
54806
54807         Merge from coreutils.
54808         * m4/ullong_max.m4: New file.
54809         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
54810         (gl_MACROS): Assume localeconv exists.
54811
54812 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
54813
54814         Merge changes from coreutils, as described below in several
54815         changelogs dated today.
54816
54817         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
54818         (O_DIRECTORY): Remove; not needed here, since "." must be
54819         a directory.  All uses removed.
54820         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
54821         universal on Suns, and we also need to test for IRIX.
54822         Revamp code to use 'if' rather than '#if'.
54823         Avoid unnecessary comparison of cwd->desc to 0.
54824
54825         * lib/utimens.c (futimens): Robustify the previous patch, by checking
54826         for known valid error numbers rather than observed invalid ones.
54827
54828 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
54829
54830         * modules/ullong_max: New file.
54831
54832         * modules/chdir-long, modules/openat: New files.
54833         * modules/save-cwd (Depends-on): Depend on chdir-long.
54834         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
54835
54836 2005-01-18  Jim Meyering  <jim@meyering.net>
54837
54838         Merge from coreutils.
54839         * m4/chdir-long.m4, m4/openat.m4: New files.
54840         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
54841         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
54842         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
54843         is sane and DOES follow symlinks.  Besides, testing 20 different
54844         systems found no broken chown implementations.
54845         Prompted by a change in rsync's copy of this macro.
54846         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
54847
54848         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
54849
54850         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
54851         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
54852         NULL-means-set-to-current-time semantics.
54853         Remove temporary file immediately, rather than waiting
54854         for configure's at-exit trap code to do it.
54855
54856 2005-01-18  Jim Meyering  <jim@meyering.net>
54857
54858         * lib/version-etc.c (version_etc_copyright): Update copyright date.
54859
54860         * lib/utimens.c (futimens): Account for the fact that futimes
54861         can also fail with errno == ENOSYS or errno == ENOENT.
54862         Patch from Dmitry V. Levin.
54863
54864         Change the name of the robust chdir function from chdir to chdir_long.
54865         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
54866         (restore_cwd): Use chdir_long, not chdir.
54867         * lib/chdir-long.c: Renamed from chdir.c.
54868         * lib/chdir-long.h: Renamed from chdir.h.
54869         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
54870         Hurd.
54871
54872 2005-01-18  Bruno Haible  <bruno@clisp.org>
54873
54874         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
54875         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
54876         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
54877         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
54878         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
54879         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
54880         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
54881         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
54882         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
54883         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
54884         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
54885         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
54886         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
54887         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
54888         Use an all-permissive copyright notice, recommended by RMS.
54889
54890 2005-01-18  Bob Proulx  <bob@proulx.com>
54891
54892         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
54893         simplify offsetof() macro construct to avoid compile failure with
54894         native HP-UX 11.0 ANSI C compiler.
54895
54896 2005-01-17  Bruno Haible  <bruno@clisp.org>
54897
54898         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
54899         redundant because stpncpy.m4 takes care of it.
54900
54901 2005-01-17  Bruno Haible  <bruno@clisp.org>
54902
54903         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
54904
54905 2005-01-17  Bruno Haible  <bruno@clisp.org>
54906
54907         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
54908         used.
54909
54910 2005-01-17  Bruno Haible  <bruno@clisp.org>
54911
54912         * lib/fwriteerror.h (fwriteerror): Change specification to include
54913         fclose.
54914         * lib/fwriteerror.c: Include <stdbool.h>.
54915         (fwriteerror): At the end, close the file stream. Record whether
54916         stdout was already closed.
54917
54918 2005-01-17  Bruno Haible  <bruno@clisp.org>
54919
54920         * lib/execute.c (environ): Declare if needed.
54921         * lib/pipe.c (environ): Likewise.
54922         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
54923
54924 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54925
54926         * modules/argp: Depend on vsnprintf
54927
54928 2005-01-10  Jim Meyering  <jim@meyering.net>
54929
54930         * modules/closeout (Depends-on): Add atexit.
54931
54932 2005-01-06  Bruno Haible  <bruno@clisp.org>
54933
54934         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
54935
54936 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
54937
54938         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
54939         definitions to be after all include files, to avoid collisions.
54940         Problem reported by Bob Proulx.
54941
54942 2005-01-04  Jim Meyering  <jim@meyering.net>
54943
54944         Changes imported from coreutils.
54945         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
54946         as the mkstemp template, use a temporary directory and an
54947         8.3-friendly template to avoid trouble on systems like DJGPP.
54948         Reported by Juan M. Guerrero via Stepan Kasal.
54949         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
54950         close. Remove the temporary directory right away, rather than waiting
54951         for configure's at-exit trap code to do it.
54952         Suggestion from Stepan Kasal.
54953
54954 2005-01-01  Simon Josefsson  <jas@extundo.com>
54955
54956         * gnulib-tool: Print #include directives when --import'ing.
54957
54958 2004-12-28  Simon Josefsson  <jas@extundo.com>
54959
54960         * tests/test-base64.c: Include required header files.  Remove
54961         unused variables.
54962
54963 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
54964
54965         * modules/error (Depends-on): Remove gettext.
54966
54967 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
54968
54969         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
54970         not needed.  This removes a dependency on the gettext module.
54971         [defined _LIBC]: Do not include <libintl.h>; not needed.
54972
54973 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
54974
54975         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
54976         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
54977
54978 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
54979
54980         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
54981         HAVE_DECL_STRTOLD.
54982
54983 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54984
54985         * modules/getdate (Depends-on): Remove alloca-opt.
54986
54987 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54988
54989         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
54990
54991 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54992
54993         * lib/argp-parse.c: Include <stddef.h>.
54994         (alignof, alignto): New macros.
54995         (parser_init): Don't assume that void * is aligned sufficiently
54996         for struct option.
54997
54998         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
54999         need to extend the stack.
55000         (YYINITDEPTH): New macro, so that the initial stack isn't overly
55001         large.
55002
55003 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
55004
55005         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
55006
55007 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
55008
55009         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
55010         (2004-10-24) change.  Apparently this was a false alarm.
55011
55012         * modules/getdate: Depend on alloca-opt, not alloca.
55013
55014 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
55015
55016         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
55017         Remove now-obsolete comment about AIX.
55018         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
55019         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
55020         (YYMAXDEPTH): New macro.
55021
55022 2004-12-18  Simon Josefsson  <jas@extundo.com>
55023
55024         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
55025
55026 2004-12-18  Bruno Haible  <bruno@clisp.org>
55027
55028         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
55029
55030 2004-12-18  Bruno Haible  <bruno@clisp.org>
55031
55032         * lib/fatal-signal.c (fatal_signals): Make non-const.
55033         (init_fatal_signals): New function.
55034         (uninstall_handlers, install_handlers): Ignore signals that were set to
55035         SIG_IGN.
55036         (at_fatal_signal): Call init_fatal_signals.
55037         (init_fatal_signal_set): Likewise. Ignore signals that were set to
55038         SIG_IGN.
55039         Reported by Paul Eggert.
55040
55041 2004-12-18  Bruno Haible  <bruno@clisp.org>
55042
55043         * doc/alloca.texi: New file.
55044         * doc/alloca-opt.texi: New file.
55045
55046 2004-12-17  Jim Meyering  <jim@meyering.net>
55047
55048         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
55049         Otherwise, install-sh could exit with improper exit status when
55050         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
55051
55052 2004-12-16  Simon Josefsson  <jas@extundo.com>
55053
55054         * tests/test-base64.c: Add license.
55055
55056 2004-12-15  Stepan Kasal  <address@hidden>
55057
55058         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
55059
55060 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
55061
55062         * modules/getcwd (Files): Add m4/d-ino.m4.
55063         Suggested by Mark D. Baushke.
55064
55065 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
55066
55067         * lib/getdate.y (textint): New member "negative".
55068         (time_zone_hhmm): New function.
55069         Expect 14 shift-reduce conflicts, not 13.
55070         (o_colon_minutes): New rule.
55071         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
55072         (yylex): Set the "negative" member of signed numbers.
55073
55074 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
55075
55076         * doc/getdate.texi (Time of day items, Time zone items):
55077         Describe new formats +00:00, UTC+00:00.
55078
55079 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
55080
55081         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
55082         spurious "-l"s.  Problem reported by Stepan Kasal.
55083
55084 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
55085
55086         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
55087         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
55088
55089 2004-12-04  Simon Josefsson  <jas@extundo.com>
55090
55091         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
55092         Vandoorselaere <yoann@prelude-ids.org>.
55093
55094 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
55095
55096         Changes imported from coreutils.
55097         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
55098         exist.
55099         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
55100
55101 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
55102
55103         Changes imported from coreutils.
55104         * lib/hard-locale.c: Assume <locale.h> exists.
55105         Include "strdup.h".
55106         (GLIBC_VERSION): New macro.
55107         (hard_locale): Assume setlocale exists.
55108         Rewrite to avoid #ifdef.
55109         Use strdup rather than malloc + strcpy.
55110         * lib/human.c: Assume <locale.h> exists.
55111         (human_readable): Assume localeconv exists.
55112
55113 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
55114
55115         * modules/hard-locale (Depends-on): Add strdup.
55116
55117 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
55118
55119         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
55120         convert T2, not T.  (Imported from libc.)
55121
55122 2004-11-30  Simon Josefsson  <jas@extundo.com>
55123
55124         * modules/restrict (License): Change to LGPL.
55125
55126 2004-11-30  Simon Josefsson  <jas@extundo.com>
55127
55128         * m4/restrict.m4: Add copyright and copying conditions.
55129
55130 2004-11-30  Simon Josefsson  <jas@extundo.com>
55131
55132         * m4/base64.m4: New file.
55133
55134 2004-11-30  Simon Josefsson  <jas@extundo.com>
55135
55136         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
55137         base64.
55138
55139         * tests/test-base64.c: New file.
55140
55141         * modules/base64: New file.
55142
55143 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
55144
55145         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
55146         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
55147
55148         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
55149
55150 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
55151
55152         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
55153         (__getcwd.c): Don't restore errno; glibc doesn't.
55154         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
55155         first, falling back to our code only if its results look suspicious.
55156         Ensure that the resulting buffer is only as large as necessary.
55157
55158         * lib/readutmp.c: Include readutmp.h first.
55159         Include <errno.h>, since readutmp.h no longer does that.
55160         * lib/readutmp.h: Don't include <errno.h>,
55161         <sys/param.h>, <time.h>; not needed to establish interface.
55162         (errno): Remove decl.
55163         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
55164         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
55165         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
55166
55167 2004-11-28  Simon Josefsson  <jas@extundo.com>
55168
55169         * lib/base64.h, base64.c: New file.
55170
55171 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
55172
55173         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
55174
55175 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
55176
55177         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
55178         (Depends-on): Remove pathmax, same.  Add mempcpy.
55179         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
55180         (Makefile.am): Append getcwd.h to lib_SOURCES.
55181         (Include): Add getcwd.h.
55182         (Maintainer): Change from Jim Meyering to "all, glibc",
55183         since getdate now uses intended-for-glibc code.
55184         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
55185         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
55186
55187 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
55188
55189         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
55190         HP's ANSI C compiler.
55191         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
55192         Declaring int functions causes warnings on some modern systems and
55193         shouldn't be needed to compile on ancient ones.
55194         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
55195         defined.
55196
55197         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
55198         with the following changes.
55199         (__set_errno): Parenthesize properly.
55200         Include <stdbool.h>.
55201         (MIN, MAX, MATCHING_INO): New macros.
55202         (__getcwd): Define with prototype, not K&R form.
55203         Use heuristics to allocate default buffer on stack if possible.
55204         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
55205         behavior, and to avoid the PATH_MAX limit when computing
55206         ../../../../...
55207         Use MATCHING_INO to compare inode number to file.
55208         Check for arithmetic overflow in size calculations.
55209         Fix bug in reallocation of dot array that caused getcwd to fail
55210         on directories nested deeper than 75.
55211         Be more careful about saving errno on error.
55212         Do not use realloc; use only free+malloc, as this is a bit
55213         more flexible and avoids a needless copy operation.
55214         Do not inspect st_dev and st_ino for symbolic links; POSIX
55215         doesn't specify the latter.
55216         Check for closedir errors.
55217         Avoid needless casts.
55218         Use "#ifdef weak_alias" around weak_alias, to be like other
55219         glibc code.
55220         The following changes to getcwd.c have effect only when used in
55221         gnulib; they have no effect inside glibc proper.
55222         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
55223         as alloca isn't used.
55224         (alloca, __alloca): Likewise.
55225         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
55226         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
55227         unconditionally, as gnulib assumes C89 or better.
55228         Do not include <sys/param.h>.
55229         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
55230         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
55231         better.
55232         (NULL) [!defined NULL]: Remove; we assume C89 or better.
55233         Include <dirent.h> in a way that is compatible with modern Autoconf.
55234         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
55235         New macros, if not already defined.
55236         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
55237         Use "_LIBC", not "defined _LIBC", for consistency.
55238         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
55239         a mempcpy module.
55240         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
55241         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
55242         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
55243         credit only to Jim Meyering and adjust the copyright dates.
55244         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
55245         <stdlib.h>, <unistd.h>, "pathmax.h".
55246         Instead, include "xgetcwd.h" (first) and "getcwd.h".
55247         (INITIAL_BUFFER_SIZE): Remove.
55248         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
55249
55250 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
55251
55252         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
55253         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
55254         Use the _ONCE methods, for efficiency.
55255         Check for fcntl.h.  In test program, include <errno.h>
55256         and <fcntl.h> if available.  Remove old K&R cruft from
55257         test program.  Check for common errors in GNU/Linux,
55258         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
55259         don't do AC_LIBOBJ, as that's getcwd.m4's job.
55260         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
55261         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
55262         name accordingly.
55263         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
55264         accommodate new getcwd.c.
55265         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
55266         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
55267         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
55268         that's all we need now.
55269
55270 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
55271
55272         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
55273         argp-parse.c depends on getopt internals, that means we should
55274         always use our getopt, to be on the safe side.
55275         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
55276         order not to spoil the result of an eventual previous invocation
55277         of gl_GETOPT_SUBSTITUTE.
55278
55279 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
55280
55281         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
55282         redefinition warnings. To avoid them, include the defines
55283         in `#if !defined __need_getopt ... #endif'. The only place
55284         where __getopt_argv_const is used is in definitions
55285         of getopt_long and getopt_long_only below, which are as well
55286         protected by `#ifndef __need_getopt'.
55287         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
55288         __need_getopt after including <stdio.h> and <unistd.h> These
55289         headers might have defined it.
55290
55291 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
55292
55293         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
55294
55295 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
55296
55297         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
55298         (futimens): New function, which uses futimes if available.
55299         (futimens, utimens): Support timespec==NULL, with same semantics
55300         as utime and utimens.
55301         * lib/utimens.h (futimens): New decl.
55302
55303 2004-11-23  Jim Meyering  <jim@meyering.net>
55304
55305         * lib/getopt_.h: Remove trailing blanks.
55306
55307 2004-11-23  Jim Meyering  <jim@meyering.net>
55308
55309         * lib/__fpending.c: Add comment.
55310
55311 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
55312
55313         * modules/canonicalize (Depends-on): Add xreadlink.
55314         Problem reported by James Youngman.
55315
55316 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
55317
55318         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
55319         New macros.
55320         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
55321         optopt): Use them instead of invoking ## directly; otherwise, the
55322         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
55323
55324 2004-11-19  Bruno Haible  <bruno@clisp.org>
55325
55326         * lib/strtok_r.c: Move comments from here...
55327         * lib/strtok_r.h: ... to here.
55328
55329 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
55330
55331         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
55332         implementations that mishandle size_t overflow.
55333
55334 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
55335
55336         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
55337         might fail.  Problem reported by Yoann Vandoorselaere.
55338         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
55339         implementations that mishandle size_t overflow.
55340
55341 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
55342
55343         * modules/canon-host (Depends-on): Add strdup.
55344
55345 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
55346
55347         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
55348
55349 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
55350
55351         * lib/canon-host.c: Include "strdup.h".
55352         (canon_host): Use getaddrinfo if available, so that IPv6 works.
55353         Use strdup instead of malloc/strcpy to duplicate strings.
55354
55355         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
55356         (human_space_before_unit): New constant.
55357         * lib/human.c (human_readable): Support it.
55358
55359         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
55360         (xgetcwd): Set errno correctly when failing.
55361         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
55362         the failure is actually due to a PATH_MAX problem.
55363
55364         Further getopt changes to make it more likely that glibc will
55365         buy the changes back.
55366         * lib/getopt.c (POSIXLY_CORRECT): New constant.
55367         (getopt): Use it, so to preserve glibc semantic
55368         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
55369         when compiling for libc.
55370         * lib/getopt_.h (__getopt_argv_const): Bring it back.
55371         (getopt_long, getopt_long_only): Use it.
55372
55373         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
55374         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
55375         (getopt): Argv is now char * const *, as per standard.
55376         (_getopt_internal_r, _getopt_internal): Argv is now char **,
55377         not char *__getopt_argv_const *.
55378         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
55379         _getopt_long_only_r): Likewise.
55380         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
55381         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
55382         _getopt_long_r, _getopt_long_only_r): Likewise.
55383         * lib/getopt_.h (__getopt_argv_const): Remove.
55384         (getopt): Argv is now char * const *, as per standard.
55385
55386         * lib/getdate.y (tORDINAL): New token.
55387         (day, relunit): Allow it for relative times.
55388         (relative_time_table): Use tORDINAL for ordinals.
55389
55390 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
55391
55392         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
55393         Document that "second" isn't allowed as an ordinal number.
55394
55395 2004-11-16  Jim Meyering  <jim@meyering.net>
55396
55397         * modules/closeout (Depends-on): Add fpending.
55398
55399 2004-11-15  Jim Meyering  <jim@meyering.net>
55400
55401         * lib/closeout.c: Include "__fpending.h" once again.
55402         Include <stdbool.h>.
55403         (close_stdout): Don't fail just because stdout was closed initially,
55404         since some programs don't write to stdout in the normal course of
55405         operation (other than --version and --help), and we don't want this
55406         function to make e.g. `touch file >&-' fail.
55407         But do fail if it was closed and someone has tried to write to it.
55408         E.g., `printf foo >&-' must fail.
55409
55410 2004-11-13  Jim Meyering  <jim@meyering.net>
55411
55412         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
55413
55414 2004-11-12  Simon Josefsson  <jas@extundo.com>
55415
55416         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
55417         small doc fix is still pending.
55418
55419 2004-11-11  Simon Josefsson  <jas@extundo.com>
55420
55421         * modules/strtok_r: New file.
55422
55423         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55424         strtok_r.
55425
55426 2004-11-11  Simon Josefsson  <jas@extundo.com>
55427
55428         * m4/strtok_r.m4: New file.
55429
55430         * m4/getopt.m4: Replace opterr.
55431
55432 2004-11-11  Simon Josefsson  <jas@extundo.com>
55433
55434         * lib/strtok_r.h, strtok_r.c: New file.
55435
55436 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
55437
55438         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
55439         of replacing opterr, getopt, etc.  This should handle the
55440         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
55441
55442 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
55443
55444         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
55445         we can stop lying to compilers about the constness of argv when we
55446         are compiled outside glibc.
55447         (getopt, getopt_long, getopt_long_only): Use it.
55448         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
55449         _getopt_internal, getopt): Likewise.
55450         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
55451         _getopt_long_only_r): Likewise.
55452         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
55453         _getopt_long_r, _getopt_long_only_r): Likewise.
55454
55455         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
55456         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
55457         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
55458         the other external symbols.
55459         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
55460         declaration, since the above renaming now works around collisions.
55461
55462 2004-11-11  Jim Meyering  <jim@meyering.net>
55463
55464         * lib/linebreak.c: Remove trailing blanks.
55465         * lib/alloca_.h: Likewise.
55466         * lib/acosl.c: Likewise.
55467         * lib/euidaccess.c: Likewise.
55468         * lib/allocsa.h: Likewise.
55469
55470 2004-11-10  Simon Josefsson  <jas@extundo.com>
55471
55472         * m4/getaddrinfo.m4: New file.
55473
55474 2004-11-10  Simon Josefsson  <jas@extundo.com>
55475
55476         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
55477
55478 2004-11-10  Simon Josefsson  <jas@extundo.com>
55479
55480         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55481         getaddrinfo.
55482
55483         * modules/getaddrinfo: New file.
55484
55485 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
55486
55487         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
55488
55489 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
55490
55491         * lib/mktime.c (SHR): New macro, which is a portable
55492         substitute for >> that should work even on Crays.
55493         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
55494         Problem reported by Mark D. Baushke in
55495         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
55496         * lib/getdate.y (SHR): Likewise.
55497         (tm_diff): Use it.
55498         * lib/strftime.c (SHR): Likewise.
55499         (tm_diff): Use it.
55500         * lib/quotearg.c (struct quoting_options): Use unsigned int for
55501         quote_these_too, so that right shifts are well defined.  All uses
55502         changed.
55503
55504 2004-11-10  Jim Meyering  <jim@meyering.net>
55505
55506         Ensure that no close failure goes unreported.
55507         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
55508         return early when it seems there's nothing to flush.
55509         Don't include __fpending.h.
55510
55511 2004-11-10  Jim Meyering  <jim@meyering.net>
55512
55513         * modules/closeout (Depends-on): Remove fpending.
55514
55515 2004-11-10  Jim Meyering  <jim@meyering.net>
55516
55517         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
55518
55519 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
55520
55521         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
55522         gl_FUNC_STRFTIME.
55523         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
55524         and AC_REQUIRE when possible, to avoid duplicate checks.
55525         Check for <wchar.h>.
55526
55527 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
55528
55529         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
55530
55531 2004-11-09  Bruno Haible  <bruno@clisp.org>
55532
55533         * m4/sockpfaf.m4: New file.
55534
55535 2004-11-05  Bruno Haible  <bruno@clisp.org>
55536
55537         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
55538         Reported by Mark D. Baushke <mdb@cvshome.org>.
55539
55540 2004-11-04  Bruno Haible  <bruno@clisp.org>
55541
55542         2004-09-11  Bruno Haible  <bruno@clisp.org>
55543                 * allocsa.valgrind: New file.
55544         2004-02-06  Bruno Haible  <bruno@clisp.org>
55545                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
55546                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
55547                 Reported by Christopher Seip <chris.seip@hp.com>.
55548
55549 2004-11-04  Bruno Haible  <bruno@clisp.org>
55550
55551         * modules/allocsa (Files): Add lib/allocsa.valgrind.
55552         (Makefile.am): Distribute it.
55553
55554 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
55555
55556         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
55557         with errno == ERANGE if the buffer is too small.
55558         Problem reported by Mark D. Baushke.
55559
55560 2004-11-03  Albert Chin  <china@thewrittenword.com>
55561             Paul Eggert  <eggert@cs.ucla.edu>
55562
55563         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
55564         equivalent, substitute $ac_type for equivalent type rather than
55565         blindly using uint32_t *always* which won't work if uint32_t is not
55566         available.  Define _UINT32_T to work around typedef of uint32_t if
55567         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
55568         2.5.1.
55569
55570 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
55571
55572         * m4/jm-macros.m4: Sync from coreutils.
55573         (gl_MACROS): Check for mbrlen, for pathchk.
55574         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
55575
55576 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
55577
55578         * lib/xreadlink.c (MAXSIZE): New macro.
55579         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
55580         size does not exceed MAXSIZE.  Avoid cast.
55581         As suggested by Mark D. Baushke in
55582         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
55583         if readlink fails with buffer size just under MAXSIZE, try again
55584         with MAXSIZE.
55585
55586 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
55587
55588         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
55589
55590 2004-11-02  Derek R. Price  <derek@ximbiot.com>
55591         and  Paul Eggert  <eggert@cs.ucla.edu>
55592
55593         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
55594         (get_date): Overparenthesize to avoid GCC warning.
55595
55596 2004-11-02  Bruno Haible  <bruno@clisp.org>
55597
55598         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
55599         returns void.
55600
55601 2004-11-02  Bruno Haible  <bruno@clisp.org>
55602
55603         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
55604         function returns void.
55605
55606 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
55607
55608         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
55609         fflush_unlocked, flockfile, funlockfile, funlockfile,
55610         fputs_unlocked, putc_unlocked.
55611
55612 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
55613
55614         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
55615         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
55616         already declared.
55617
55618 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
55619
55620         * modules/getdate (Files): Add doc/getdate.texi.
55621         (Depends-on): Add setenv, xalloc.
55622
55623 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
55624
55625         * lib/getdate.y: Add support for TZ="foo" within a date string.
55626         Fix some bugs near time_t boundaries.  Reject dates with
55627         out-of-range components, e.g., "Sept 31".
55628         Include <stdlib.h>, "setenv.h", "xalloc.h".
55629         (ISDIGIT_LOCALE): Remove; unused.
55630         Note that the TZ and time functions used here are not reentrant.
55631         (mktime_ok, get_tz): New functions.
55632         (TZBUFSIZE): New constant.
55633         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
55634         This requires that we sometimes generate our own TZ="XXX..." setting.
55635
55636 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
55637
55638         * doc/getdate.texi: New file, from coreutils with modifications for
55639         the new TZ parsing.
55640
55641 2004-10-27  Derek R. Price  <derek@ximbiot.com>
55642
55643         * lib/mktime.c (not_equal_tm): Remove redundant check.
55644
55645 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55646
55647         * modules/regex (lib_SOURCES): Add regex.c.
55648         Reported by James Youngman in
55649         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
55650
55651 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55652
55653         * lib/getdate.y: Use Bison 1.875 features, and some minor
55654         code cleanups.  This change does not affect semantics.
55655         Don't include <stdlib.h>; no longer needed.
55656         Don't include unlocked-io.h; only the "#if TEST" code uses
55657         stdio, and performance isn't crucial there.
55658         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
55659         Bison 1.875 features as described below.
55660         All uses of "PC." replaced by "pc->".
55661         (YYSTYPE): Add a forward declaration.
55662         (yylex, yyerror): Use full prototypes in forward decls.
55663         Use "%pure-parser" rather than obsolescent "%pure_parser".
55664         Use %parse-param and %lex-param instead of obsolescent
55665         YYPARSE_PARAM and YYLEX_PARAM.
55666         (meridian_table, month_and_day_table, time_units_table,
55667         relative_time_table, time_zone_table, military_table,
55668         lookup_zone, lookup_word, get_date):
55669         Use NULL instead of 0 where appropriate.
55670         (to_hour): Avoid abort (), to avoid a dependency on
55671         stdlib.h.
55672         (yyerror, yylex): Now accepts parser_control * arg.
55673         (main) [TEST]: Use '\0' rather than 0 for char.
55674
55675 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55676
55677         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
55678
55679 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55680
55681         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
55682         It's now the caller's responsibility to handle the case where
55683         !HAVE_GETPAGESIZE && !defined getpagesize.
55684
55685         * lib/mktime.c (leapyear): Arg is long int, not int.
55686
55687 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
55688
55689         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
55690
55691 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55692
55693         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
55694         missing.  Problem reported by James Youngman.
55695
55696 2004-10-16  Simon Josefsson  <jas@extundo.com>
55697
55698         * gnulib-tool: Fix comments.  Fix parse problem.
55699         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
55700
55701 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
55702
55703         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
55704         implementation of getopt_long.  Problem reported by Alexander Taler in:
55705         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
55706
55707 2004-10-15  Bruno Haible  <bruno@clisp.org>
55708
55709         * gnulib-tool: Untabify. Initialize supplied_libname.
55710         (func_usage): More homogenous output.
55711         (func_modules_transitive_closure, func_modules_to_filelist,
55712         func_emit_lib_Makefile_am): New functions.
55713         (func_import): New function, extracted from big case statement. Use
55714         func_get_license, func_modules_transitive_closure,
55715         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
55716         opt_lgpl. Don't use test -a, as it's not portable.
55717         (func_create_testdir): Use func_modules_transitive_closure,
55718         func_modules_to_filelist, func_emit_lib_Makefile_am.
55719
55720 2004-10-15  Bruno Haible  <bruno@clisp.org>
55721
55722         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
55723
55724 2004-10-15  Bruno Haible  <bruno@clisp.org>
55725
55726         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
55727         the portions belonging to each module.
55728         Suggested by Derek Robert Price <derek@ximbiot.com>.
55729
55730 2004-10-12  Simon Josefsson  <jas@extundo.com>
55731
55732         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
55733         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
55734         to real functions.
55735
55736 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55737
55738         * modules/vsnprintf: New file.
55739
55740 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55741
55742         * m4/vsnprintf.m4: New file.
55743
55744 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55745
55746         * lib/vsnprintf.h: New file.
55747         * lib/vsnprintf.c: New file.
55748
55749 2004-10-11  Bruno Haible  <bruno@clisp.org>
55750
55751         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
55752         vsnprintf.
55753
55754 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
55755
55756         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
55757
55758 2004-10-07  Bruno Haible  <bruno@clisp.org>
55759
55760         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
55761         fits into the provided buffer.
55762
55763 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
55764
55765         * lib/diacrit.c, diacrit.h: Add GPL notice.
55766
55767         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
55768         notice.
55769         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
55770         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
55771         This avoids a potential constant-folding bug.
55772
55773 2004-10-05  Bruno Haible  <bruno@clisp.org>
55774
55775         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
55776         for the declaration of strsep.
55777
55778 2004-10-05  Bruno Haible  <bruno@clisp.org>
55779
55780         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
55781
55782 2004-10-04  Simon Josefsson  <jas@extundo.com>
55783
55784         * modules/memmem: New file.
55785         * tests/test-memmem.c: New file.
55786         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
55787
55788 2004-10-04  Simon Josefsson  <jas@extundo.com>
55789
55790         * m4/memmem.m4: New file.
55791
55792 2004-10-04  Simon Josefsson  <jas@extundo.com>
55793
55794         * lib/memmem.h: New file.
55795         * lib/memmem.c: New file, taken from glibc.
55796
55797 2004-10-04  Simon Josefsson  <jas@extundo.com>
55798
55799         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
55800         '#ifdef USE_UNLOCKED_IO'.
55801
55802 2004-10-04  Simon Josefsson  <jas@extundo.com>
55803
55804         * config/srclist.txt: Add memmem from glibc.
55805
55806 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
55807
55808         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
55809
55810         * modules/argmatch, modules/argp, modules/closeout, modules/error,
55811         modules/exclude, modules/getdate, modules/getline,
55812         modules/getndelim2, modules/getpass, modules/getpass-gnu,
55813         modules/getusershell, modules/linebuffer, modules/md5,
55814         modules/mountlist, modules/posixtm, modules/readtokens,
55815         modules/readutmp, modules/regex, modules/sha1,
55816         modules/version-etc, modules/yesno:
55817         Remove dependency on unlocked-io.
55818
55819 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
55820
55821         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
55822
55823         * m4/unlocked-io.m4: Add copyright notice.
55824         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
55825
55826 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
55827
55828         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
55829         * lib/xmalloc.c (xmemdup): Likewise.
55830         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
55831         XFREE): Remove these long-obsolescent macros.
55832         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
55833         * lib/xstrdup.c: Remove.
55834
55835         * lib/regex.c (re_comp): Cast gettext return value to char *,
55836         Problem reported by Martin Neitzel via Mark D. Baushke.
55837
55838 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
55839
55840         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
55841         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
55842         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
55843         regex.c, sha1.c, version-etc.c, yesno.c:
55844         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
55845         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
55846         the includer's responsibility.
55847
55848         Sync from coreutils.
55849
55850         * lib/modechange.c (mode_compile): Don't decrement a pointer that
55851         points to the start of a string, as the C Standard says the
55852         resulting behavior is undefined.
55853
55854         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
55855         simple -> simple_backups, numbered_existing ->
55856         numbered_existing_backups, numbered -> numbered_backups
55857         to avoid shadowing problems.  All uses changed.
55858         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
55859         * lib/backupfile.c (check_extension, numbered_backup):
55860         Rename locals to avoid shadowing 'basename'.
55861         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
55862         once.
55863
55864         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
55865         * lib/.cvsignore: Add getopt.h.
55866
55867 2004-10-04  Bruno Haible  <bruno@clisp.org>
55868
55869         * modules/README: New file.
55870         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
55871         not a module.
55872
55873 2004-10-02  Jim Meyering  <jim@meyering.net>
55874
55875         * lib/dirfd.h, getpagesize.h: Add copyright notice.
55876
55877 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55878
55879         * modules/strsep: New file.
55880
55881 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55882
55883         * m4/strsep.m4: New file.
55884
55885 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55886
55887         * lib/strsep.h: New file.
55888         * lib/strsep.c: New file.
55889
55890 2004-10-01  Simon Josefsson  <jas@extundo.com>
55891
55892         * lib/snprintf.c (snprintf): Handle size==0.
55893
55894 2004-10-01  Simon Josefsson  <jas@extundo.com>
55895             Bruno Haible  <bruno@clisp.org>
55896
55897         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
55898         (snprintf): Declare 'args'.
55899
55900 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
55901
55902         * lib/snprintf.c: Remove comments as to why each header is needed.
55903
55904 2004-10-01  Bruno Haible  <bruno@clisp.org>
55905
55906         * MODULES.html.sh: Add strsep.
55907
55908 2004-09-30  Simon Josefsson  <jas@extundo.com>
55909
55910         * modules/snprintf: New file.
55911
55912 2004-09-30  Simon Josefsson  <jas@extundo.com>
55913
55914         * m4/snprintf.m4: New file.
55915
55916 2004-09-30  Simon Josefsson  <jas@extundo.com>
55917
55918         * lib/snprintf.h, lib/snprintf.c: New files.
55919
55920 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
55921
55922         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
55923         (hol_entry_help): Never translate an empty string.
55924         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
55925         * lib/argp.h (OPTION_NO_TRANS): New option.
55926
55927 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
55928
55929         * modules/argp (Maintainer): Replace Simon Josefsson
55930         by Sergey Poznyakoff.
55931
55932 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
55933
55934         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
55935         changes merged back into glibc.
55936
55937 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
55938
55939         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
55940
55941 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
55942
55943         * lib/xvasprintf.c: Include xalloc.h.
55944         (xvasprintf): Use xalloc_die, not xmalloc_die.
55945
55946 2004-09-29  Bruno Haible  <bruno@clisp.org>
55947
55948         * modules/alloca-opt: New file, derived from modules/alloca.
55949         * modules/allocsa: Depend on alloca-opt instead of alloca.
55950         * modules/setenv: Likewise.
55951         * modules/vasnprintf: Likewise.
55952         * MODULES.html.sh: Add alloca-opt.
55953
55954 2004-09-28  Simon Josefsson  <jas@extundo.com>
55955
55956         * gnulib-tool: New parameter --lgpl, to asseert that modules are
55957         LGPL, and to replace license template from GPL to LGPL.
55958
55959 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
55960
55961         * modules/dummy: Change license to LGPL.
55962
55963 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
55964
55965         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
55966
55967 2004-09-24  Simon Josefsson  <jas@extundo.com>
55968
55969         * modules/minmax (License): Change from GPL to LGPL.
55970
55971 2004-09-23  Simon Josefsson  <jas@extundo.com>
55972
55973         * gnulib-tool (--import): Typo.
55974
55975 2004-09-23  Simon Josefsson  <jas@extundo.com>
55976
55977         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
55978
55979 2004-09-22  Bruno Haible  <bruno@clisp.org>
55980
55981         * modules/*: Add 'License' field.
55982         * gnulib-tool: Accept --extract-license option.
55983         (func_get_license): New function.
55984
55985 2004-09-21  Bruno Haible  <bruno@clisp.org>
55986
55987         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
55988         Reported by Simon Josefsson.
55989
55990 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
55991
55992         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
55993         gl_AC_TYPE_LONG_LONG.
55994
55995 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
55996
55997         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
55998
55999 2004-09-18  Simon Josefsson  <jas@extundo.com>
56000         and  Paul Eggert  <eggert@cs.ucla.edu>
56001
56002         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
56003         calls with autoreconf.  Define GL_LIB.
56004
56005 2004-09-14  Karl Berry  <karl@gnu.org>
56006
56007         * config/srclist.txt: unsync setenv.c, sigh.
56008
56009 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
56010
56011         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
56012         Problem reported by Bruno Haible in:
56013         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
56014
56015 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
56016
56017         * config/srclist.txt: Comment out argp-pvh.c.
56018
56019 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
56020
56021         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
56022         in case some system header has #define'd it.  Problem reported by
56023         Soeren D. Schulze in
56024         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
56025
56026 2004-09-09  Karl Berry  <karl@gnu.org>
56027
56028         * regex.[ch]: delete from the root.  These were supposed to be
56029                 synced with emacs cvs, but this has not happened for about
56030                 a year, and anyway nothing else uses emacs regex.[ch].
56031                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
56032                 lib/regex[.ch] is untouched.
56033
56034 2004-09-09  Bruno Haible  <bruno@clisp.org>
56035
56036         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
56037
56038 2004-09-09  Bruno Haible  <bruno@clisp.org>
56039
56040         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
56041         modifications.
56042         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
56043
56044 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
56045
56046         * modules/xvasprintf: New file.
56047         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
56048
56049 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
56050
56051         * lib/xvasprintf.h: New file.
56052         * lib/xvasprintf.c: New file.
56053         * lib/xasprintf.c: New file.
56054
56055 2004-09-08  Bruno Haible  <bruno@clisp.org>
56056
56057         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
56058
56059 2004-09-08  Bruno Haible  <bruno@clisp.org>
56060
56061         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
56062         length is > INT_MAX.
56063         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
56064         more.
56065
56066 2004-09-08  Bruno Haible  <bruno@clisp.org>
56067
56068         * lib/stdint_.h: New file, taken from GNU clisp.
56069
56070 2004-09-08  Bruno Haible  <bruno@clisp.org>
56071             Oskar Liljeblad  <oskar@osk.mine.nu>
56072
56073         * modules/stdint: New file.
56074         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
56075
56076 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56077
56078         Import from coreutils.
56079         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
56080         strings on unbounded length.  alloca's performance benefits aren't
56081         that important here.
56082         (V_STRDUP): Remove.
56083         (parse_with_separator): New function, with most of the internals
56084         of the old parse_user_spec.  Allow user to omit both user and group,
56085         for compatibility with FreeBSD.
56086         Clone only the user name, not the entire spec.
56087         Do not set *uid, *gid unless entirely successful.
56088         Avoid memory leak in some failing cases.
56089         Fix regression for USER.GROUP reported by Dmitry V. Levin in
56090         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
56091         (parse_user_spec): Rewrite to use parse_with_separator.
56092
56093 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56094
56095         * modules/userspec: Don't depend on alloca.
56096
56097 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56098
56099         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
56100
56101 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
56102
56103         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
56104         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
56105         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
56106
56107 2004-08-16  Simon Josefsson  <jas@extundo.com>
56108
56109         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
56110         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
56111         Add --dry-run for --import.
56112         Let user provided command line parameters override configure.ac
56113         settings.
56114
56115 2004-08-12  Simon Josefsson  <jas@extundo.com>
56116
56117         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
56118         as discussed with Paul Eggert in threads rooted at
56119         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
56120         and
56121         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
56122         Before, the test was empty, and relied on ELIDE_CODE in source
56123         code.)
56124         (gl_PREREQ_GETOPT): New macro.
56125         (gl_GETOPT): Use them.
56126
56127 2004-08-12  Simon Josefsson  <jas@extundo.com>
56128
56129         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
56130         * lib/getopt_.h: Renamed from getopt.h.
56131
56132 2004-08-12  Simon Josefsson  <jas@extundo.com>
56133
56134         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
56135         Change default library name from libfoo to libgnu.
56136         Now, if you have a configure.ac that says:
56137                 gl_SOURCE_BASE(gl)
56138                 gl_M4_BASE(gl/m4)
56139                 gl_MODULES(error getopt etcetera)
56140                 gl_INIT
56141         you can import all you need by running:
56142                 ../gnulib/gnulib-tool --import
56143
56144         * modules/getopt (Files): Rename getopt.h to getopt_.h.
56145         (Makefile.am): Rewrite, use logic from argz.
56146         (Include): Use <getopt.h> instead of "getopt.h".
56147
56148 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
56149
56150         * modules/argp (Files): Add m4/unlocked-io.m4.
56151         (Depends-on): Add extensions.
56152
56153 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
56154
56155         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
56156         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
56157         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
56158         Check for program_invocation_name, program_invocation_short_name,
56159         flockfile, funlockfile, features.h, _getopt_long_only_r.
56160
56161 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
56162
56163         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
56164         its complicated substitute.
56165         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
56166         and program_invocation_name.
56167         (__argp_basename) [!_LIBC]: Remove; the only use was
56168         replaced by its body.
56169         (__argp_short_program_name): Change condition from
56170         !defined __argp_short_program_name to
56171         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
56172         to match argp-namefrob.h.
56173         (__argp_failure): Don't assume strerror_r returns char *.
56174         * lib/argp-parse.c (N_): Define unconditionally.
56175         (argp_default_options): Fill out initializers with 0 to avoid
56176         gcc warnings.
56177
56178 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
56179
56180         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
56181         getopt1.c.
56182
56183 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
56184
56185         Merge from coreutils.
56186
56187         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
56188
56189         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
56190         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
56191
56192 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
56193
56194         Merge from coreutils.
56195
56196         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
56197         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
56198         for Reliant Unix 5.43.
56199
56200         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
56201         (union fooround): Use uintmax_t, not long int.
56202         The rest is a merge from libc:
56203         [defined _LIBC]: Include <shlib-compat.h>.
56204         (_obstack) [defined _LIBC]: Remove after 2.3.4.
56205
56206         * lib/settime.c (settime): Recode to avoid warning with
56207         Sun Forte C 6U2.
56208
56209         * lib/strverscmp.c: Convert to UTF-8.
56210
56211 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
56212
56213         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
56214         m4/uintmax_t.m4.
56215
56216 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
56217
56218         * modules/xalloc-die: New file.
56219         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
56220
56221         * modules/md5 (Files): Add m4/uint32_t.m4.
56222         * modules/sha1: Renamed from modules/sha.
56223         (Files):
56224         Rename lib/sha.h to lib/sha1.h.
56225         Rename lib/sha.c to lib/sha1.c.
56226         Rename m4/sha.m4 to m4/sha1.m4.
56227         (lib_SOURCES): Likewise.
56228         (configure.ac): Rename gl_SHA to gl_SHA1.
56229         (Include): sha.h -> sha1.h.
56230
56231 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
56232
56233         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
56234         * m4/sha1.m4: Renamed from sha.m4.
56235         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
56236
56237 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
56238
56239         * lib/obstack.h (obstack_empty_p):
56240         Don't assume that chunk->contents is suitably aligned.
56241         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
56242         Likewise. Problem reported by Benno in
56243         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
56244
56245         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
56246         readable.  This could be improved further but it'd take some work.
56247
56248 2004-08-08  Simon Josefsson  <jas@extundo.com>
56249
56250         * modules/xgethostname (Depends-on): Remove exit and error (not
56251         used).
56252
56253         * modules/getpass-gnu: Add getpass.h.
56254         (Depends-on): Add stdbool.
56255         * modules/getpass: Add getpass.h.
56256
56257 2004-08-08  Simon Josefsson  <jas@extundo.com>
56258
56259         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
56260         Check getpass declaration.
56261
56262 2004-08-08  Simon Josefsson  <jas@extundo.com>
56263
56264         * lib/xgethostname.c: Don't include error.h (not used).
56265
56266         * lib/getpass.h: Add.
56267         * lib/getpass.c: Include getpass.h first.
56268
56269 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
56270
56271         * lib/xalloc-die.c: New file.
56272         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
56273         All uses removed.
56274         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
56275         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
56276         xalloc-die.c.
56277         (_, N_, xalloc_die): Move to xalloc-die.c.
56278         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
56279         so that we needn't mess with xalloc_msg_memory_exhausted.
56280
56281         * lib/sha1.h: Renamed from sha.h.
56282         (SHA1_H): Renamed from _SHA_H.
56283         (sha1_ctx): Renamed from sha_ctx.
56284         (sha1_init_ctx): Renamed from sha_init_ctx.
56285         (sha1_process_block): Renamed from sha_process_block.
56286         (sha1_process_bytes): Renamed from sha_process_bytes.
56287         (sha1_finish_ctx): Renamed from sha_finish_ctx.
56288         (sha1_read_ctx): Renamed from sha_read_ctx.
56289         (sha1_stream): Renamed from sha_stream.
56290         (sha1_buffer): Renamed from sha_buffer.
56291         * lib/sha1.c: Likewise; renamed from sha.c.
56292         Do not include <sys/types.h>.
56293         Include <stddef.h> rather than <stdlib.h>.
56294
56295 2004-08-08  Bruno Haible  <bruno@clisp.org>
56296
56297         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
56298         FILESYSTEM_PREFIX_LEN.
56299         * lib/progreloc.c: Likewise.
56300         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
56301
56302 2004-08-06  Simon Josefsson  <jas@extundo.com>
56303
56304         * modules/progname (Depends-on): Don't depend on stdbool.
56305
56306 2004-08-06  Simon Josefsson  <jas@extundo.com>
56307
56308         * modules/getsubopt: New file.
56309         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56310         getsubopt.
56311
56312 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
56313
56314         More merge from coreutils.
56315
56316         * m4/utimens.m4, m4/utimecmp.m4: New files.
56317         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
56318         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
56319         prereq.m4, sha.m4: Import changes from coreutils.
56320
56321 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
56322
56323         More merge from coreutils.
56324         * modules/raise, modules/readtokens0, modules/utimens:
56325         * modules/utimecmp, module/xnanosleep: New files.
56326         * modules/strftime: Add lib/strftime.h.
56327         Change include from <time.h> to "strftime.h".
56328         * modules/yesno: Add lib/yesno.h.
56329         * modules/backupfile: Remove lib/addext.c.
56330         * modules/euidaccess: Add stat-macros.h.
56331         * modules/canonicalize, modules/euidaccess,
56332         modules/filemode, modules/lchown, modules/makepath,
56333         modules/rmdir, modules/stat: Likewise.
56334
56335 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
56336
56337         Merge from tar.
56338         * lib/argp-help.c (make_hol, hol_append): Don't assume that
56339         SIZE_MAX is a valid preprocessor constant.
56340         (__argp_basename): Change from "#ifndef _LIBC"
56341         to "#ifndef __argp_short_program_name", so that
56342         we don't compile these functions for tar.
56343
56344         More merges from coreutils.
56345         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
56346         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
56347         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
56348         * lib/addext.c: Remove; no longer needed.
56349         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
56350         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
56351         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
56352         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
56353         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
56354         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
56355         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
56356         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
56357         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
56358         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
56359         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
56360         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
56361         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
56362         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
56363         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
56364         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
56365         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
56366         Import changes from coreutils.
56367
56368 2004-08-05  Simon Josefsson  <jas@extundo.com>
56369
56370         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
56371
56372 2004-08-05  Simon Josefsson  <jas@extundo.com>
56373
56374         * m4/getsubopt.m4: New file.
56375
56376 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
56377
56378         Merge from coreutils.
56379
56380         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
56381         * m4/getcwd-path-max.m4: New files.
56382
56383         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
56384         FILESYSTEM_PREFIX_LEN ->
56385         FILE_SYSTEM_PREFIX_LEN.
56386         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
56387         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
56388         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
56389         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
56390
56391         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
56392         prerequisite modules now handle the DOS stuff.
56393         Don't check for unistd.h.
56394
56395 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
56396
56397         Merge from coreutils.
56398
56399         * lib/.gdb-history: Remove; this doesn't belong here.
56400
56401         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
56402         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
56403         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
56404         * lib/getcwd.c: New files.
56405
56406         * lib/dirname.h: Include <stdbool.h>.
56407         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
56408         for consistency with POSIX terminology.  All uses changed.
56409         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
56410         (strip_trailing_slashes): Use bool for booleans.
56411         * lib/stripslash.c (strip_trailing_slashes): Likewise.
56412
56413         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
56414         sometimes returns a positive errno value even when it succeeds.
56415         (print_errno_message) [!LIBC]: Fall back on strerror if
56416         __strerror_r fails.
56417
56418         * lib/path-concat.c (mempcpy): Don't define if a system header defines
56419         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
56420         (longest_relative_suffix): New function.
56421         (path_concat): Use it.  Assume first argument is not NULL.
56422         Port to DOS.  Omit redundant separators.
56423         Report an error instead of returning NULL.
56424         Use mempcpy instead of memcpy.
56425         (xpath_concat): Remove: not declared or used.
56426
56427         * lib/same.h: Include <stdbool.h>
56428         (same_name): Return bool, not int.
56429         * lib/same.c (same_name): Likewise.
56430         (errno): Don't declare; we assume C89 or better now.
56431
56432         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
56433         if not already defined.
56434
56435         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
56436         * lib/dup-safer.c (errno): Likewise.
56437
56438 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
56439
56440         Merge from coreutils.
56441         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
56442         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
56443         * modules/path-concat: Don't depend on strdup.
56444
56445 2004-08-03  Simon Josefsson  <jas@extundo.com>
56446
56447         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
56448         * lib/progname.h: Don't include stdbool.h.
56449
56450 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
56451
56452         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
56453         * MODULES.html.sh (func_all_modules): Remove fatal.
56454
56455 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
56456
56457         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
56458
56459 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
56460
56461         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
56462         working.
56463
56464 2004-08-02  Simon Josefsson  <jas@extundo.com>
56465
56466         * lib/getsubopt.h: New file, with comments from Bruno Haible.
56467         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
56468         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
56469
56470 2004-08-01  Simon Josefsson  <jas@extundo.com>
56471
56472         * lib/xgetdomainname.c: Include stdlib.h, for free().
56473
56474 2004-07-19  Bruno Haible  <bruno@clisp.org>
56475
56476         * MODULES.html.sh (func_all_modules): Add dummy.
56477
56478 2004-07-16  Simon Josefsson  <jas@extundo.com>
56479
56480         * modules/dummy: New file.
56481
56482 2004-07-16  Simon Josefsson  <jas@extundo.com>
56483
56484         * lib/dummy.c: New file.
56485
56486 2004-07-16  Bruno Haible  <bruno@clisp.org>
56487
56488         * lib/backupfile.h: Add extern "C" for C++.
56489         * lib/closeout.h: Likewise.
56490         * lib/copy-file.h: Likewise.
56491         * lib/findprog.h: Likewise.
56492         * lib/full-write.h: Likewise.
56493         * lib/pathname.h: Likewise.
56494         * lib/progname.h: Likewise.
56495         * lib/stpcpy.h: Likewise.
56496         * lib/stpncpy.h: Likewise.
56497         * lib/strcase.h: Likewise.
56498         * lib/strstr.h: Likewise.
56499         * lib/xalloc.h: Likewise.
56500
56501         * lib/mbswidth.h: Add extern "C" for C++.
56502         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
56503
56504 2004-07-13  Robert Millan  <robertmh@gnu.org>
56505
56506         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
56507
56508 2004-07-09  Simon Josefsson  <jas@extundo.com>
56509
56510         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
56511         failed without this.)
56512
56513 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
56514
56515         * modules/chown (Files): Add lib/fchown-stub.c, since
56516         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
56517
56518 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
56519
56520         * lib/fchown-stub.c: New file.
56521
56522 2004-06-24  Jim Meyering  <jim@meyering.net>
56523
56524         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
56525
56526 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
56527
56528         * modules/argz: Omit "#include".
56529
56530         * MODULES.html.sh (func_all_modules): Add calloc, to match
56531         2004-06-01 addition of calloc module.
56532
56533 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
56534
56535         * m4/argz.m4: New file, which is autoupdated from libtool.
56536
56537 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
56538
56539         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
56540         libtool.
56541
56542 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
56543
56544         * config/srclist-update: Don't insist on "USA." before the
56545         close-comment, as libtool omits the period and puts the */ on a
56546         separate line.
56547         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
56548         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
56549
56550 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
56551
56552         * modules/argz: New file.
56553         * MODULES.html.sh (func_all_modules): Add argz.
56554
56555 2004-06-12  Jim Meyering  <jim@meyering.net>
56556         and  Paul Eggert  <eggert@cs.ucla.edu>
56557
56558         * modules/hash (Files): Add lib/xalloc.h.
56559         * modules/pipe (Depends-on): Add wait-process.
56560         * modules/stat (Depends-on): Add xalloc.
56561         * modules/userspec (Files): Add lib/userspec.h.
56562         * modules/xstrto
56563
56564         Upgrade from gettext-0.13.
56565         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
56566         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
56567         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
56568
56569 2004-06-10  Jim Meyering  <jim@meyering.net>
56570
56571         * lib/calloc.c: New file.
56572
56573 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
56574
56575         * lib/getdate.y (yylex): Allow space between sign and number.
56576         Problem reported by Dan Jacobson.
56577
56578 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
56579
56580         Merge from coreutils CVS.
56581
56582         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
56583         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
56584         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
56585         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
56586         xstrtol.m4: Fix copyright date and/or serial number.
56587
56588         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
56589         See if we need an fchown replacement.
56590         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
56591         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
56592         and use the replacement function if we detect either defect.
56593
56594         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
56595         gl_UTIMECMP.
56596
56597 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
56598         and  Jim Meyering  <jim@meyering.net>
56599
56600         Merge from coreutils CVS.
56601
56602         * lib/stat-macros.h: New file, with contents from file-type.h
56603         and coreutils' system.h.
56604         * lib/file-type.c: Include "stat-macros.h".
56605         * lib/file-type.h (file_type): Move all macro definitions to new file,
56606         stat-macros.h.
56607
56608         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
56609         Wrap old code with this conditional.
56610         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
56611         function that does not dereference symlinks.
56612         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
56613
56614         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
56615         dependency problems.
56616         (xreadlink): Accept new arg SIZE, for efficiency.
56617         All decls and uses changed.
56618         * lib/xreadlink.h: Include <stddef.h>, for size_t.
56619
56620         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
56621         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
56622
56623         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
56624         sysexits.h.
56625
56626 2004-06-01  Jim Meyering  <jim@meyering.net>
56627
56628         * m4/calloc.m4: New file.
56629
56630 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
56631
56632         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
56633         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
56634         Also, fix a typo in a diagnostic.
56635
56636 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
56637
56638         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
56639         or AC_FUNC_REALLOC.
56640
56641 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
56642
56643         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
56644         macros to be defined.
56645         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
56646         the allocator returns NULL because the requested size is zero.
56647
56648 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
56649
56650         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
56651         var.  Add comment explaining why libc still defines it.  This
56652         merges the following patch from glibc:
56653         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
56654
56655 2004-05-20  Andreas Schwab  <schwab@suse.de>
56656
56657         * m4/free.m4: Replace free if it not known to work, not the other
56658         way round.
56659
56660 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
56661
56662         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
56663         present in glibc since revision 1.1 of this file.
56664         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
56665         obstack_alignment_mask, obstack_alloc, obstack_base,
56666         obstack_blank, obstack_blank_fast, obstack_chunk_size,
56667         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
56668         obstack_grow0, obstack_init, obstack_int_grow,
56669         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
56670         obstack_next_free, obstack_object_size, obstack_ptr_grow,
56671         obstack_ptr_grow_fast, obstack_room): Remove declarations of
56672         nonexistent functions.
56673
56674 2004-05-18  Karl Berry  <karl@gnu.org>
56675
56676         * config/srclist.txt: break link for vasnprintf.c.
56677
56678 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
56679
56680         Port obstack to the AS/400, where pointers are 16 bytes wide and
56681         you cannot cast an integer to a valid pointer.  This patch is
56682         currently waiting to be integrated into glibc; see
56683         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
56684
56685         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
56686         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
56687         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
56688         (struct obstack): temp member is now a union of a pointer and
56689         an integer, instead of an integer.  All integer uses changed.
56690         This does not affect the physical layout of struct obstack,
56691         except on hosts (like the AS/400) where the size or alignment of
56692         void * is greater than that of ptrdiff_t.
56693         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
56694         __STDC__)]: Store temporary in pointer member of union, not
56695         integer member.
56696         * lib/obstack.c: Include <stddef.h>, for offsetof.
56697         (struct fooalign): Remove; it doesn't need a name.
56698         (union fooround): Change double to long double, and add void *.
56699         (DEFAULT_ALIGNMENT): Use offsetof to compute.
56700         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
56701         not a macro.  Hence the values are always int; so remove all
56702         casts-to-int in uses.
56703
56704 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
56705
56706         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
56707         we can get this patch merged into glibc.
56708
56709 2004-05-17  Derek R. Price  <derek@ximbiot.com>
56710             Paul Eggert  <eggert@cs.ucla.edu>
56711
56712         * m4/argp: Depend on alloca.
56713
56714 2004-05-17  Derek R. Price  <derek@ximbiot.com>
56715             Paul Eggert  <eggert@cs.ucla.edu>
56716
56717         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
56718         freecoding.
56719
56720 2004-05-17  Bruno Haible  <bruno@clisp.org>
56721
56722         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
56723         precision that consists of a '.' followed by an empty digit string.
56724         Patch by Tor Lillqvist <tml@iki.fi>.
56725
56726 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
56727
56728         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
56729         for backward compatibility with older code.  We need our own
56730         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
56731         it under some other name, and our alloca.h will define it.
56732
56733 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
56734             Derek Price  <derek@ximbiot.com>
56735
56736         * lib/alloca.c: Include <alloca.h>, to get our interface.
56737         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
56738         include <alloca.h> first.  Use C89 prototype for alloca; this
56739         requires including <stddef.h> for size_t.  Use extern "C" if C++.
56740         Use #elif for simplicity, since we can assume C89 now.
56741         Don't try to source the system alloca.h since it will not be found
56742         and to prevent recursively including its replacement.
56743         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
56744         * lib/regex.c: Likewise.
56745
56746 2004-05-16  Derek Price  <derek@ximbiot.com>
56747             Paul Eggert  <eggert@cs.ucla.edu>
56748
56749         getline cleanup.  This changes the getndelim2 API: both order of
56750         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
56751         no delimiter).
56752
56753         * lib/getline.c: Don't include stddef.h or stdio.h, since our
56754         interface does that.
56755         (getline): Always use getdelim, so that we don't have two
56756         copies of this code.
56757         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
56758         if available.
56759         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
56760         (GETNDELIM2_MAXIMUM): New macro.
56761         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
56762         instead of the old practice of delim2==0.  All callers changed.
56763         Return -1 on overflow, instead of returning junk.
56764         Do not set *linesize unless allocation succeeds.
56765         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
56766         that we include sys/types.h.
56767         * lib/getnline.h: Likewise.
56768         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
56769         (getndelim2): Reorder arguments.
56770         * lib/getnline.c (getnline, getndelim):
56771         Don't discard the NMAX argument.
56772         (getnline): Invoke getndelim, to avoid code duplication.
56773         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
56774         of (size_t) -1 by callers of the getnline family.
56775
56776 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
56777
56778         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
56779         Check for gettimeofday.
56780         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
56781         Check for settimeofday, stime.
56782
56783 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
56784
56785         * lib/nanosleep.c (suspended): Change its type from int to
56786         sig_atomic_t volatile.
56787         (first_call): Make it private to rpl_nanosleep, and have it
56788         be zero initially as that's a bit faster.
56789         (my_usleep): Round up fractional times instead of truncating them,
56790         as this is the usual meaning for 'sleep'.
56791
56792         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
56793         doesn't work.
56794         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
56795         (ENOSYS): Define if not defined.
56796         (settime): Fall back on stime if it exists and settimeofday fails.
56797         But don't bother with fallbacks if a method fails with errno == EPERM.
56798
56799 2004-05-11  Jim Meyering  <jim@meyering.net>
56800
56801         Prior to this change, the save_cwd caller required read access to the
56802         current directory on most systems (ones with the fchdir function).
56803
56804         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
56805         fails, try write-only, and finally, resort to using xgetcwd.
56806
56807 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
56808
56809         * lib/obstack.c, obstack.h: Import changes from libc.
56810
56811 2004-04-28  Bruno Haible  <bruno@clisp.org>
56812
56813         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
56814         also implicitly appends .exe to executables.
56815         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
56816         accepts Windows pathnames.
56817         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
56818         Treat Cygwin like Windows, since it now accepts Windows pathnames.
56819         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
56820         Treat Cygwin like Windows, since it now accepts Windows pathnames.
56821         Reported by Derek Robert Price <derek@ximbiot.com>.
56822
56823 2004-04-21  Karl Berry  <karl@gnu.org>
56824
56825         * config/srclist.txt (localcharset.c): break sync.
56826
56827 2004-04-20  Paul Eggert  <eggert@twinsun.com>
56828
56829         * m4/host-os.m4: Add a copyright notice.
56830
56831 2004-04-20  Jim Meyering  <jim@meyering.net>
56832
56833         Change UTILS_ to gl_ in AC_DEFINE'd names.
56834         Change utils_- and jm_-prefixed variables, too.
56835         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
56836         UTILS_FUNC_MKDIR_TRAILING_SLASH.
56837         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
56838
56839         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
56840         Don't emit trailing blanks.
56841         Also rename jm_-prefixed variables to have gl_ prefix.
56842
56843         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
56844         Also rename jm_-prefixed variables to have gl_ prefix.
56845
56846         * m4/jm-macros.m4: Reflect the renamings.
56847         * m4/prereq.m4: Likewise.
56848
56849 2004-04-20  Jim Meyering  <jim@meyering.net>
56850
56851         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
56852         memory.
56853
56854 2004-04-20  Jim Meyering  <jim@meyering.net>
56855             Bruno Haible  <bruno@clisp.org>
56856
56857         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
56858         memory when realloc fails.
56859
56860 2004-04-19  Jim Meyering  <jim@meyering.net>
56861
56862         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
56863         now that readutmp.c may call `free (0)'.
56864
56865 2004-04-19  Bruno Haible  <bruno@clisp.org>
56866
56867         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
56868         * m4/inttypes_h.m4: Likewise.
56869         * m4/stdint_h.m4: Likewise.
56870         * m4/intmax_t.m4: Likewise.
56871         * m4/uintmax_t.m4: Likewise.
56872
56873 2004-04-18  Jim Meyering  <jim@meyering.net>
56874
56875         * m4/prereq.m4: Don't forbid jm_ prefix.
56876
56877         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
56878         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
56879         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
56880         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
56881         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
56882         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
56883         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
56884         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
56885         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
56886         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
56887         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
56888         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
56889         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
56890         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
56891         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
56892         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
56893         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
56894         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
56895         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
56896
56897 2004-04-18  Jim Meyering  <jim@meyering.net>
56898
56899         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
56900         failure, don't leak memory and do call END_UTMP_ENT.
56901
56902 2004-04-16  Jim Meyering  <jim@meyering.net>
56903
56904         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
56905         coreutils' stat program.
56906         (gl_PREREQ): Don't require jm_PREREQ_STAT.
56907
56908 2004-04-11  Paul Eggert  <eggert@twinsun.com>
56909
56910         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
56911         C89.
56912         (CHAR_BIT): Remove, since we assume C89.
56913         Include <stdint.h> if available, as per current Autoconf CVS advice.
56914
56915 2004-03-31  Jim Meyering  <jim@meyering.net>
56916
56917         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
56918         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
56919         * m4/xalloc.m4: Likewise.
56920
56921 2004-03-30  Paul Eggert  <eggert@twinsun.com>
56922
56923         Merge from coreutils.
56924
56925         * m4/inttostr.m4: New file.
56926         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
56927         Require AM_STDBOOL_H and gl_TIMESPEC instead.
56928         Require gl_CLOCK_TIME.
56929         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
56930
56931 2004-03-30  Paul Eggert  <eggert@twinsun.com>
56932
56933         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
56934         not bool, to be more consistent with Unix conventions.
56935         Suggested by Bruno Haible.
56936
56937         Merge from coreutils.
56938
56939         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
56940         * lib/umaxtostr.c: New files.
56941
56942         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
56943         the usual <time.h> dance.
56944         (get_date): Change signature to support fractional time stamps.
56945         All callers changed.
56946         * lib/getdate.y: Include "getdate.h" first, as we can now
56947         assume C89 and don't need to worry about 'const'.
56948         Similarly, include "unlocked-io.h" near start, not in middle.
56949         Include <limits.h>.
56950         (textint.value): Use long int rather than int.
56951         (textint.digits): Use size_t rather than int.
56952         (BILLION, LOG10_BILLION): New constants.
56953         (parser_control): New member rel_ns.  Members day_ordinal,
56954         time_zone, month, day, hour, minutes, rel_year, rel_month,
56955         rel_day, rel_hour, rel_minutes, rel_seconds
56956         are now long int, not int.  Member seconds is now struct timespec,
56957         not int.  New member timespec_seen.  Members dates_seen, days_seen,
56958         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
56959         not int.
56960         (%union.intval): Now long int, not int.
56961         New member timespec.
56962         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
56963         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
56964         (spec): Now is a timespec or an item list.
56965         (timespec, items): New nonterminals.
56966         (time, rel, relunit, number, get_date):
56967         Add support for fractional seconds.
56968         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
56969         (gmtime, localtime, mktime): Remove decls; not needed with C89.
56970         (to_hour): First arg is now long int, not int.
56971         (to_year): Returns long int, not int.
56972         Don't treat year -70 like 70.
56973         (tm_diff): Returns long int, not int.
56974         (lookup_word): Use bool instead of int when appropriate.
56975         (yylex): Use size_t for count, not int.
56976         Detect overflow when parsing large integer constants.
56977         Add support for fractions.
56978         (get_date): Make pointers 'const' if possible.
56979         Use more-portable code to detect integer overflow.
56980         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
56981         Don't use ctime; it's not reliable if the year has >4 digits.
56982
56983         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
56984         This is for compatibility with BSD.
56985
56986         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
56987         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
56988         From coreutils' system.h.
56989
56990         * lib/userspec.c: Don't include "posixver.h".
56991         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
56992         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
56993         compatible extension.  Simplify code by removing a boolean int
56994         that was always nonzero if a string was nonnull.
56995
56996 2004-03-30  Jim Meyering  <jim@meyering.net>
56997
56998         Merge from coreutils.
56999
57000         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
57001         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
57002         on some systems one must include <grp.h> before it.
57003         Reported by Christian Krackowizer.
57004
57005 2004-03-30  Jim Meyering  <jim@meyering.net>
57006
57007         Merge from coreutils.
57008
57009         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
57010
57011         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
57012         an empty input stream.
57013
57014         * lib/readtokens.c: Include <stdbool.h>.
57015         (readtoken): Use `size_t' rather than int/long.
57016         All callers adjusted.
57017         Use `bool' rather than `int' where appropriate.
57018         Use memset rather than an explicit loop.
57019         Use x2nrealloc rather than xrealloc.
57020         Allow the use of `\0' as a delimiter.
57021         (readtokens): Likewise.
57022         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
57023
57024 2004-03-30  Jim Meyering  <jim@meyering.net>
57025
57026         * m4/realloc.m4: Remove file, since now it does no more than
57027         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
57028         the `configure.ac' section of module/realloc.
57029         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
57030
57031 2004-03-30  Bruno Haible  <bruno@clisp.org>
57032
57033         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
57034         nonnull.
57035
57036 2004-03-29  Paul Eggert  <eggert@twinsun.com>
57037
57038         Merge changes to getloadavg.c from coreutils and Emacs.
57039
57040         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
57041         Define to an expression, not to the empty string.
57042         Include cloexec.h and xalloc.h.
57043         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
57044         Use set_cloexec_flag rather than rolling our own.
57045         * lib/cloexec.c, lib/cloexec.h: New files.
57046
57047 2004-03-29  Paul Eggert  <eggert@twinsun.com>
57048
57049         * m4/cloexec.m4: New file.
57050
57051 2004-03-18  Paul Eggert  <eggert@twinsun.com>
57052
57053         * lib/getopt.h: Sync with libc CVS.
57054
57055 2004-03-18  Paul Eggert  <eggert@twinsun.com>
57056             Bruno Haible  <bruno@clisp.org>
57057
57058         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
57059         mbswidth.
57060
57061 2004-03-18  Paul Eggert  <eggert@twinsun.com>
57062             Bruno Haible  <bruno@clisp.org>
57063
57064         * lib/mbswidth.h: Include <wchar.h> only if
57065         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
57066         <wchar.h>.
57067         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
57068
57069 2004-03-09  Paul Eggert  <eggert@twinsun.com>
57070
57071         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
57072         Sync with libc CVS.
57073         * lib/getopt_int.h: New file, also synced from libc.
57074
57075 2004-03-09  Paul Eggert  <eggert@twinsun.com>
57076
57077         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
57078         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
57079         Bring back getopt.c, getopt.h, getopt1.c.
57080
57081 2004-03-07  Paul Eggert  <eggert@twinsun.com>
57082
57083         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
57084         All uses changed.  Check for sa_sigaction member; this fixes
57085         a bug first reported by Jason Andrade in
57086         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
57087
57088 2004-03-07  Paul Eggert  <eggert@twinsun.com>
57089
57090         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
57091         '#if' expressions.  Unlike the code it replaces, it does not
57092         depend on (defined _SC_PAGESIZE).  However, it does depend on
57093         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
57094         first reported by Jason Andrade in
57095         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
57096
57097 2004-02-25  Simon Josefsson  <jas@extundo.com>
57098
57099         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
57100
57101 2004-02-25  Simon Josefsson  <jas@extundo.com>
57102
57103         * lib/strdup.h: New file.
57104         * lib/strdup.c: Include it.
57105         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
57106         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
57107
57108 2004-02-23  Karl Berry  <karl@gnu.org>
57109
57110         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
57111         (from fencepost.gnu.org:/gd/gnuorg).
57112
57113 2004-02-23  Karl Berry  <karl@gnu.org>
57114
57115         * config/srclistvars.sh (GNUORG) [karl]: redefine.
57116         * config/srclist.txt: add maintain/standards documents.
57117
57118 2004-02-18  Bruno Haible  <bruno@clisp.org>
57119
57120         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
57121         Reported by Derek Robert Price <derek@ximbiot.com>.
57122
57123 2004-02-16  Karl Berry  <karl@gnu.org>
57124
57125         * config/mkinstalldirs, install-sh: update from automake.
57126
57127 2004-02-06  Karl Berry  <karl@gnu.org>
57128
57129         * m4/po.m4: update from gettext 0.14.1.
57130
57131 2004-02-06  Karl Berry  <karl@gnu.org>
57132
57133         * lib/config.charset: update from gettext 0.14.1.
57134
57135 2004-02-05  Paul Eggert  <eggert@twinsun.com>
57136
57137         Add comments and code, prompted by suggestions from Bruno Haible
57138         for sh-quote.
57139         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
57140         describing the enum quoting_style values.
57141         * lib/quotearg.c (quotearg_alloc): New function.
57142         (quotearg_buffer_restyled): Treat lone { and } as special.
57143         Treat = as special.  Work around bug with older shells
57144         that "see" a '\' that is really the 2nd byte of a multibyte char.
57145         Quote empty string with shell_quoting_style.
57146
57147 2004-02-03  Bruno Haible  <bruno@clisp.org>
57148
57149         * m4/pipe.m4: New file, from GNU gettext.
57150
57151 2004-02-03  Bruno Haible  <bruno@clisp.org>
57152
57153         * lib/pipe.h: New file, from GNU gettext.
57154         * lib/pipe.c: New file, from GNU gettext.
57155
57156 2004-01-27  Bruno Haible  <bruno@clisp.org>
57157
57158         * m4/execute.m4: New file, from GNU gettext.
57159
57160 2004-01-27  Bruno Haible  <bruno@clisp.org>
57161
57162         * lib/execute.h: New file, from GNU gettext.
57163         * lib/execute.c: New file, from GNU gettext.
57164         * lib/w32spawn.h: New file, from GNU gettext.
57165
57166 2004-01-24  Paul Eggert  <eggert@twinsun.com>
57167
57168         Merge from diffutils.
57169
57170         * lib/file-type.c (file_type): Add typed memory objects.
57171         * lib/file-type.h (S_TYPEISTMO): New macro.
57172
57173         * lib/c-stack.h (c_stack_action): Remove argv argument.
57174         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
57175         (die): Don't calculate message unless segv_action returns.
57176         (get_stack_location, min_address_from_argv, max_address_from_argv,
57177         volatile stack_base, volatile_stack_size): Remove.
57178         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
57179         that every segmentation violation is a stack overflow.  (Ouch!)
57180         See Debian bug 136249 (still outstanding) for more info about why
57181         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
57182
57183 2004-01-24  Paul Eggert  <eggert@twinsun.com>
57184
57185         Exit-status fix from coreutils.
57186
57187         Use exit_failure consistently in place of EXIT_FAILURE,
57188         so that program exit statuses are consistent on failure.
57189
57190         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
57191         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
57192         * lib/argmatch.h: Comment fix to match the above.
57193         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
57194         Now a macro referring to exit_failure, instead of a separate
57195         variable.  Include "exitfail.h" to get it.
57196         * lib/xstrtol.h: Include "exitfail.h".
57197         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
57198
57199         * lib/long-options.c (parse_long_options): Use prototype
57200         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
57201         for clarity.
57202
57203 2004-01-21  Jim Meyering  <jim@meyering.net>
57204
57205         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
57206         so as not to conflict with a different-sized __mktime_internal
57207         function in GNU libc.
57208         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
57209         Problem building statically-linked `ls' reported by Michael Brunnbauer.
57210
57211 2004-01-20  Karl Berry  <karl@gnu.org>
57212
57213         * config/config.guess: update from config.
57214
57215         * config/srclistvars.sh: GNUWWWLICENSES for karl.
57216
57217 2004-01-20  Bruno Haible  <bruno@clisp.org>
57218
57219         Safer stack allocation.
57220         * lib/setenv.c: Include allocsa.h.
57221         (alloca): Remove fallback definition.
57222         (freea): Remove macro.
57223         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
57224         instead of freea.
57225
57226 2004-01-20  Bruno Haible  <bruno@clisp.org>
57227
57228         * m4/eealloc.m4: New file, from GNU gettext.
57229
57230 2004-01-20  Bruno Haible  <bruno@clisp.org>
57231
57232         * m4/allocsa.m4: New file, from GNU gettext.
57233
57234 2004-01-20  Bruno Haible  <bruno@clisp.org>
57235
57236         * lib/xallocsa.h: New file, from GNU gettext.
57237         * lib/xallocsa.c: New file, from GNU gettext.
57238
57239 2004-01-20  Bruno Haible  <bruno@clisp.org>
57240
57241         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
57242
57243 2004-01-20  Bruno Haible  <bruno@clisp.org>
57244
57245         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
57246         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
57247         specially.
57248
57249 2004-01-20  Bruno Haible  <bruno@clisp.org>
57250
57251         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
57252         patch.
57253
57254 2004-01-20  Bruno Haible  <bruno@clisp.org>
57255
57256         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
57257
57258 2004-01-20  Bruno Haible  <bruno@clisp.org>
57259
57260         * lib/eealloc.h: New file.
57261
57262 2004-01-20  Bruno Haible  <bruno@clisp.org>
57263
57264         * lib/binary-io.h: Avoid warnings on Cygwin.
57265
57266 2004-01-20  Bruno Haible  <bruno@clisp.org>
57267
57268         * lib/allocsa.h: New file, from GNU gettext.
57269         * lib/allocsa.c: New file, from GNU gettext.
57270
57271 2004-01-18  Karl Berry  <karl@gnu.org>
57272
57273         * doc/gpl.texi, doc/lgpl.texi: new files.
57274
57275 2004-01-18  Karl Berry  <karl@gnu.org>
57276
57277         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
57278         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
57279
57280 2004-01-15  Paul Eggert  <eggert@twinsun.com>
57281
57282         Merge from coreutils.
57283
57284         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
57285         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
57286         (gl_DEFAULT_POSIX2_VERSION): Move
57287         the documentation from 'configure' into 'config.hin',
57288         so that 'configure --help' isn't burdened by it and
57289         we don't have to worry about its formatting there.
57290         Reword the documentation so that it's more succinct
57291         and can be run together into a single paragraph.
57292         * m4/same.m4 (gl_SAME): Check for pathconf.
57293
57294 2004-01-15  Paul Eggert  <eggert@twinsun.com>
57295
57296         Merge from coreutils.
57297
57298         * lib/posixver.c: Include posixver.h.
57299
57300         * lib/same.c: Include <stdbool.h>, <limits.h>.
57301         (_POSIX_NAME_MAX): Define if not defined.
57302         (MIN): New macro.
57303         (same_name): If file names are silently truncated, report
57304         that the file names are the same if they are the same after
57305         the silent truncation.
57306
57307         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
57308         conversion function.
57309         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
57310         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
57311         longer needed.
57312
57313 2004-01-15  Jim Meyering  <jim@meyering.net>
57314
57315         Merge from coreutils.
57316
57317         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
57318         if no library is required.
57319         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
57320         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
57321         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
57322         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
57323         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
57324         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
57325         value, $ac_cv_search_crypt, if it's "none required".
57326         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
57327         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
57328         not gl_FUNC_GETLOADAVG.
57329         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
57330         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
57331
57332 2004-01-15  Jim Meyering  <jim@meyering.net>
57333
57334         Merge from coreutils.
57335
57336         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
57337         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
57338         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
57339
57340         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
57341         optional configure-time default.
57342
57343         * lib/version-etc.c (version_etc_copyright): Update copyright date.
57344
57345         * lib/xreadlink.c (xreadlink): Correct outdated comment.
57346
57347 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
57348
57349         Merge from coreutils.
57350
57351         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
57352         value, $ac_cv_search_nanosleep, if it's "none required".
57353
57354 2004-01-14  Paul Eggert  <eggert@twinsun.com>
57355
57356         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
57357         with like-named macro in fnmatch.c.
57358         (EXT): Use an internal constant instead.
57359
57360         Merge fnmatch patches from glibc.
57361         * lib/fnmatch.c (mbsinit): Remove define.
57362         Add libc_hidden_ver (__fnmatch, fnmatch).
57363         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
57364         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
57365
57366 2004-01-14  Karl Berry  <karl@gnu.org>
57367
57368         * config/install-sh: update from automake.
57369
57370 2004-01-13  Karl Berry  <karl@gnu.org>
57371
57372         * config/install-sh: update from automake.
57373
57374 2004-01-09  Karl Berry  <karl@gnu.org>
57375
57376         * config/install-sh: update from automake.
57377
57378 2004-01-05  Karl Berry  <karl@gnu.org>
57379
57380         * config/config.{sub,guess}: update from config.
57381
57382 2003-12-31  Karl Berry  <karl@gnu.org>
57383
57384         * config/depcomp: update from automake.
57385
57386 2003-12-14  Karl Berry  <karl@gnu.org>
57387
57388         * lib/config.charset: update from gettext-runtime.
57389
57390 2003-12-03  Paul Eggert  <eggert@twinsun.com>
57391
57392         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
57393         Bug reported by Alfred M. Szmidt.
57394
57395 2003-12-03  Bruno Haible  <bruno@clisp.org>
57396
57397         * m4/gettext.m4: Upgrade from gettext-0.13.
57398         * m4/po.m4: Upgrade from gettext-0.13.
57399         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
57400         * m4/intmax.m4: New file, from gettext-0.13.
57401         * m4/printf-posix.m4: New file, from gettext-0.13.
57402
57403 2003-11-29  Karl Berry  <karl@gnu.org>
57404
57405         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
57406
57407 2003-11-25  Paul Eggert  <eggert@twinsun.com>
57408             Bruno Haible  <bruno@clisp.org>
57409
57410         * lib/printf-parse.h: Don't include sys/types.h.
57411         (ARG_NONE): New macro.
57412         (char_directive): Change type of *arg_index fields to size_t.
57413         * lib/printf-parse.c: Don't include sys/types.h.
57414         (SSIZE_MAX): Remove macro.
57415         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
57416         Remove unnecessary overflow check.
57417         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
57418         fields.
57419
57420 2003-11-25  Bruno Haible  <bruno@clisp.org>
57421
57422         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
57423
57424 2003-11-25  Bruno Haible  <bruno@clisp.org>
57425
57426         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
57427         gt_TYPE_SSIZE_T.
57428
57429 2003-11-24  Paul Eggert  <eggert@twinsun.com>
57430
57431         * modules/alloca: Remove dependency on xalloc.
57432
57433 2003-11-24  Paul Eggert  <eggert@twinsun.com>
57434
57435         * lib/alloca.c: Remove dependency on xalloc module.
57436         (xalloc_die): Remove.
57437         (memory_full) [!defined emacs]: New macro.
57438         [!defined emacs]: Don't include xalloc.h.
57439         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
57440         address arithmetic overflows.  Change datatypes a bit to avoid
57441         unnecessary casts.
57442
57443 2003-11-22  Jim Meyering  <jim@meyering.net>
57444
57445         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
57446         s/size/size_t/.
57447
57448 2003-11-21  Karl Berry  <karl@gnu.org>
57449
57450         * config/config.{sub,guess}: update from config.
57451
57452 2003-11-18  Karl Berry  <karl@gnu.org>
57453
57454         * config/config.{sub,guess}: update from config.
57455
57456         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
57457
57458 2003-11-17  Paul Eggert  <eggert@twinsun.com>
57459
57460         * README: Mention that S+T cannot overflow if S is the size of
57461         an existing object and T is sufficiently small.
57462
57463 2003-11-17  Jim Meyering  <jim@meyering.net>
57464
57465         On systems without utime and without a utimes function capable of
57466         dealing with a NULL struct utimbuf* argument, this utime replacement
57467         could -- in unusual circumstances -- leak a file descriptor.
57468         * lib/utime.c: Include <unistd.h> and <errno.h>.
57469         (utime_null): Be sure to close `fd' and to preserve errno.
57470         Reported by Geoff Collyer via Arnold Robbins.
57471
57472 2003-11-17  Bruno Haible  <bruno@clisp.org>
57473
57474         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
57475         (Depends-on): Add xsize.
57476
57477 2003-11-17  Bruno Haible  <bruno@clisp.org>
57478
57479         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
57480
57481 2003-11-17  Bruno Haible  <bruno@clisp.org>
57482
57483         * lib/vasnprintf.c (alloca): Remove fallback definition.
57484         (freea): Remove definition.
57485         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
57486         Reported by Paul Eggert.
57487
57488 2003-11-16  Paul Eggert  <eggert@twinsun.com>
57489             Bruno Haible  <bruno@clisp.org>
57490
57491         Protect against address arithmetic overflow.
57492         * lib/printf-args.h: Include stddef.h.
57493         (arguments): Change type of field 'count' to size_t.
57494         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
57495         'unsigned int' where appropriate.
57496         * lib/printf-parse.h: Include sys/types.h.
57497         (char_directive): Change type of *arg_index fields to ssize_t.
57498         (char_directives): Change type of fields 'count', max_*_length to
57499         size_t.
57500         * lib/printf-parse.c: Include sys/types.h and xsize.h.
57501         (SSIZE_MAX): Define fallback value.
57502         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
57503         instead of 'int' where appropriate. Check a_allocated, d_allocated
57504         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
57505         * lib/vasnprintf.c: Include xsize.h.
57506         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
57507         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
57508         overflow. Avoid wraparound when converting a width or precision from
57509         decimal to binary.
57510
57511 2003-11-16  Bruno Haible  <bruno@clisp.org>
57512
57513         Update from GNU gettext.
57514         * lib/printf-parse.c: Generalize to it can be compiled for wide
57515         strings.
57516         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
57517         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
57518         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
57519         SNPRINTF): New macros.
57520         Don't include <alloca.h> if the file is used inside libintl.
57521         (local_wcslen): New function, for Solaris 2.5.1.
57522         (VASNPRINTF): Use it instead of wcslen.
57523
57524 2003-11-16  Bruno Haible  <bruno@clisp.org>
57525
57526         * lib/xsize.h (xmax): New function.
57527         (xsum, xsum3, xsum4): Declare as "pure" functions.
57528
57529 2003-11-12  Paul Eggert  <eggert@twinsun.com>
57530
57531         * modules/xalloc (Files): Undo latest change, since xalloc.h
57532         no longer needs SIZE_MAX or PTRDIFF_MAX.
57533
57534 2003-11-12  Paul Eggert  <eggert@twinsun.com>
57535
57536         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
57537         gl_PTRDIFF_MAX.
57538
57539 2003-11-12  Paul Eggert  <eggert@twinsun.com>
57540
57541         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
57542         "return", to pacify some unknown compiler.  Problem reported
57543         by Joerg Schilling.
57544
57545 2003-11-12  Paul Eggert  <eggert@twinsun.com>
57546
57547         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
57548         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
57549         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
57550         heuristic is just as accurate as far as we know, and it removes a
57551         dependency on size_max.m4 and ptrdiff_max.m4.
57552
57553 2003-11-11  Bruno Haible  <bruno@clisp.org>
57554
57555         * modules/xsize (Files): Add m4/size_max.m4.
57556         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
57557
57558 2003-11-11  Bruno Haible  <bruno@clisp.org>
57559
57560         * m4/size_max.m4: New file.
57561         * m4/ptrdiff_max.m4: New file.
57562         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
57563         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
57564         (gl_XALLOC): Invoke it.
57565
57566 2003-11-11  Bruno Haible  <bruno@clisp.org>
57567
57568         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
57569         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
57570         defined.
57571
57572 2003-11-10  Paul Eggert  <eggert@twinsun.com>
57573
57574         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
57575         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
57576         rejected some allocations of exactly SIZE_MAX - 2 bytes.
57577         From Bruno Haible.
57578         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
57579         not (size_t) -1, since it's defined here.
57580
57581 2003-11-09  Karl Berry  <karl@gnu.org>
57582
57583         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
57584
57585 2003-11-06  Paul Eggert  <eggert@twinsun.com>
57586
57587         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
57588         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
57589         Reject sizes of exactly SIZE_MAX bytes.
57590         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
57591         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
57592
57593 2003-11-05  Bruno Haible  <bruno@clisp.org>
57594
57595         * lib/xsize.h: Include limits.h, to avoid a possible collision with
57596         SIZE_MAX defined in <limits.h> on Solaris.
57597
57598 2003-11-04  Jim Meyering  <jim@meyering.net>
57599
57600         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
57601         variable names, rather than @VAR@.
57602         * modules/poll: Likewise.
57603
57604 2003-11-04  Bruno Haible  <bruno@clisp.org>
57605
57606         * modules/xsize: New file.
57607         * modules/linebreak: Depend on xsize.
57608         * MODULES.html.sh (func_all_modules): Add xsize.
57609
57610 2003-11-04  Bruno Haible  <bruno@clisp.org>
57611
57612         * m4/xsize.m4: New file.
57613
57614 2003-11-04  Bruno Haible  <bruno@clisp.org>
57615
57616         * lib/xsize.h: New file.
57617         * lib/linebreak.c: Include xsize.h.
57618         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
57619         argument for overflow.
57620         Suggested by Paul Eggert.
57621
57622 2003-11-03  Karl Berry  <karl@gnu.org>
57623
57624         * config/config.{guess,sub}: update from config.
57625
57626 2003-11-03  Jim Meyering  <jim@meyering.net>
57627
57628         * modules/userspec (lib_SOURCES): Add userspec.h.
57629         (Include): Add "userspec.h".
57630         Improve description.
57631
57632 2003-11-03  Jim Meyering  <jim@meyering.net>
57633
57634         * lib/userspec.c: Include "userspec.h".
57635         * lib/userspec.h: New file.
57636
57637 2003-11-03  Bruno Haible  <bruno@clisp.org>
57638
57639         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
57640
57641 2003-11-03  Bruno Haible  <bruno@clisp.org>
57642
57643         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
57644         available, to avoid (extremely rare) race condition.
57645         Suggested by Paul Eggert.
57646
57647 2003-11-02  Karl Berry  <karl@gnu.org>
57648
57649         * config/srclist.txt (vasprintf.c): sync broken, sigh.
57650
57651 2003-10-31  Paul Eggert  <eggert@twinsun.com>
57652
57653         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
57654         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
57655         (read_filesystem_list): Set and use me_type_malloced.
57656         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
57657         whatever the type happens to be), for brevity and consistency.
57658         Check for size calculation overflow on Alphas running OSF/1.
57659
57660 2003-10-31  Jim Meyering  <jim@meyering.net>
57661
57662         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
57663
57664         * lib/linebuffer.c: Include <string.h> for declaration of memset.
57665
57666 2003-10-30  Paul Eggert  <eggert@twinsun.com>
57667             Bruno Haible  <bruno@clisp.org>
57668
57669         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
57670         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
57671
57672 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
57673
57674         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
57675         netbsd*-gnu*.  Suggested by Robert Millan.
57676
57677 2003-10-29  Paul Eggert  <eggert@twinsun.com>
57678
57679         * modules/group-member: Depend on stdbool.
57680
57681 2003-10-29  Paul Eggert  <eggert@twinsun.com>
57682
57683         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
57684
57685 2003-10-29  Paul Eggert  <eggert@twinsun.com>
57686
57687         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
57688         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
57689         after the 'gnu' in these cases.  This fixes some bugs in the
57690         previous change, and is based on suggestions by Robert Millan.
57691
57692 2003-10-29  Paul Eggert  <eggert@twinsun.com>
57693
57694         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
57695         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
57696         no longer needed.
57697         * lib/quotearg.c (quotearg_n_options): Use it.
57698         * lib/group-member.c: Include <stdbool.h>.
57699         (free_group_info): Arg is now const *; don't free arg.
57700         (get_group_info): Now returns bool and accepts struct group_info *,
57701         rather than returning a malloc'ed struct group_info *.
57702         All uses changed.  Check for overflow in internal size calculation.
57703
57704         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
57705         rather than xmalloc/xrealloc.
57706         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
57707         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
57708         conformance bug: the old code used a pointer after freeing the
57709         storage that it addressed.
57710         * lib/hash.c (hash_initialize): Simplify the code by using
57711         xalloc_oversized rather than doing it by hand.
57712         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
57713         the buffer preserved.  Use free and xmalloc instead.
57714         * lib/quotearg.c (quotearg_n_options): Likewise.
57715         Use a simpler test for size overflow.  Don't use xalloc_oversized
57716         because unsigned int might be wider than size_t (!); this suggests
57717         that we should switch from unsigned int to size_t for slot numbers.
57718
57719 2003-10-28  Paul Eggert  <eggert@twinsun.com>
57720
57721         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
57722         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
57723         NetBSD kernels.  Requested by Richard Stallman.
57724
57725 2003-10-27  Paul Eggert  <eggert@twinsun.com>
57726
57727         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
57728         to allocate the returned structure.  Do not allocate a subarray,
57729         as x2nrealloc will do that.
57730         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
57731         instead of xnrealloc.
57732         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
57733
57734 2003-10-27  Bruno Haible  <bruno@clisp.org>
57735
57736         * lib/stdbool_.h: Better support for BeOS.
57737
57738 2003-10-26  Paul Eggert  <eggert@twinsun.com>
57739
57740         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
57741         now uses inline.
57742
57743 2003-10-26  Paul Eggert  <eggert@twinsun.com>
57744
57745         * lib/xalloc.h (xalloc_oversized): New static inline function, for
57746         callers that want to do their own size-overflow checking.  Include
57747         <stdbool.h>, since xalloc_oversized returns bool.
57748         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
57749         to use xalloc_oversized.
57750
57751         Add two functions x2realloc, x2nrealloc, for programs that grow
57752         arrays dynamically by doubling their sizes.
57753         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
57754         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
57755         New functions.
57756
57757         Port to C99 semantics for 'inline' of external functions.
57758         Bug reported by Bruno Haible.
57759         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
57760         with the old contents of xnmalloc.
57761         (xnmalloc, xmalloc): Use it.
57762         (xnrealloc_inline): New static inline function,
57763         with the old contents of xnrealloc.
57764         (xnrealloc, xrealloc): Use it.
57765
57766         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
57767         that.
57768
57769 2003-10-26  Karl Berry  <karl@gnu.org>
57770
57771         * config/srclist.txt (COPYING.DOC): no longer available from
57772         /gd/gnuorg; don't know where the ultimate source is.
57773
57774 2003-10-25  Paul Eggert  <eggert@twinsun.com>
57775
57776         Fix several address-calculation bugs in the hash modules,
57777         plus some minor code cleanup.
57778
57779         * lib/hash.h: Include <stdbool.h>, for bool.
57780         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
57781         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
57782         hash_get_n_entries, hash_get_max_bucket_length,
57783         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
57784         hash_rehash): Use size_t rather than unsigned.
57785         * lib/hash.c (struct hash_table, hash_get_n_buckets,
57786         hash_get_n_buckets_used, hash_get_n_entries,
57787         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
57788         hash_get_entries, hash_do_for_each, hash_string, is_prime,
57789         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
57790         Likewise.
57791         (SIZE_MAX): Define if not defined.
57792         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
57793         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
57794         hash_print):
57795         Use const * when possible.
57796         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
57797         (check_tuning): Fix bug: if tuning parameters were very close to
57798         0 or 1, rounding errors could have caused subscript violations.
57799         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
57800         (hash_initialize): Add 'fail:' label
57801         to free table and return NULL, and use it to simplify code.
57802         Use calloc rather than clearing the storage ourself.
57803         (hash_initialize, hash_rehash): Check for arithmetic overflow in
57804         buffer size calculations.
57805         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
57806         Include <stddef.h>, for size_t.
57807         * lib/hash-pjw.c (hash_pjw): Likewise.
57808         Switch to method described by Bruno Haible.
57809         Include <limits.h>, for CHAR_BIT.
57810         (SIZE_BITS): New macro.
57811
57812 2003-10-23  Paul Eggert  <eggert@twinsun.com>
57813
57814         * m4/getline.m4 (AM_FUNC_GETLINE):
57815         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
57816         hosts.  Problem reported by Derek Robert Price in
57817         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
57818         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
57819         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
57820
57821 2003-10-21  Paul Eggert  <eggert@twinsun.com>
57822
57823         * lib/getndelim2.c (getndelim2): When size calculation overflows,
57824         ceiling the allocation at NMAX bytes rather than silently
57825         discarding input bytes before NMAX is reached.  This makes
57826         a difference only if NMAX exceeds SIZE_MAX / 2.
57827
57828         * lib/obstack.c: Merge from glibc.
57829         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
57830         Add libc_hidden_def (_obstack_newchunk).
57831         (_obstack_free) [! defined _LIBC]: Remove.
57832         [defined _LIBC]: Make a strong alias from obstack_free, rather than
57833         a clone of the function body.
57834         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
57835         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
57836
57837         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
57838         glibc.
57839         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
57840         arg to memcpy.
57841
57842         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
57843         (obstack_ptr_grow_fast, obstack_int_grow_fast):
57844         Don't use lvalue casts, as GCC plans to remove support for them
57845         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
57846         was also present in the non-GCC version, indicating that this
57847         code had always been buggy and had never been widely used.
57848         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
57849         Use the fast variant of each macro, rather than copying the
57850         definiens of the fast variant; that way, we'll be more likely to
57851         catch future bugs in the fast variants.
57852
57853 2003-10-20  Bruno Haible  <bruno@clisp.org>
57854
57855         * modules/wait-process: New file.
57856         * MODULES.html.sh (func_all_modules): Add wait-process.
57857
57858 2003-10-20  Bruno Haible  <bruno@clisp.org>
57859
57860         * m4/wait-process.m4: New file.
57861
57862 2003-10-20  Bruno Haible  <bruno@clisp.org>
57863
57864         * lib/wait-process.h: New file, from GNU gettext.
57865         * lib/wait-process.c: New file, from GNU gettext.
57866
57867 2003-10-19  Jim Meyering  <jim@meyering.net>
57868
57869         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
57870         HPUX 10.20.
57871
57872 2003-10-18  Karl Berry  <karl@gnu.org>
57873
57874         * config/config.guess: update from config.
57875
57876 2003-10-16  Paul Eggert  <eggert@twinsun.com>
57877
57878         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
57879         (getgroups): First arg is int, not size_t.
57880         Don't let 'free' mangle errno.
57881
57882 2003-10-16  Paul Eggert  <eggert@twinsun.com>
57883
57884         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
57885
57886 2003-10-16  Karl Berry  <karl@gnu.org>
57887
57888         * config/config.{guess,sub}: update from config.
57889
57890 2003-10-16  Jim Meyering  <jim@meyering.net>
57891
57892         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
57893         memcpy.
57894
57895 2003-10-15  Paul Eggert  <eggert@twinsun.com>
57896
57897         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
57898         (SIZE_MAX): Remove.
57899         (new_exclude, add_exclude_file): Initial size no longer needs to
57900         be a power of 2.
57901         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
57902         our own address arithmetic overflow checking.
57903
57904         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
57905         (fnmatch): Do not alloca more than 2000 wide characters;
57906         instead, use malloc for large buffers.
57907         Check for address arithmetic overflow, and return -1
57908         with errno set to ENOMEM in that case.
57909         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
57910         (NEW_PATTERN): Do not alloca more than 8000 bytes;
57911         instead, return -1.  Check for address arithmetic overflow.
57912
57913 2003-10-14  Paul Eggert  <eggert@twinsun.com>
57914
57915         Handle invalid suffixes and overflow independently, so that
57916         callers can treat them independently as needed.  Fix some bugs in
57917         suffix handling, e.g., "100k@" was not diagnosed as an invalid
57918         suffix for a human-readable blocksize.  The major caller-visible
57919         change is the addition of a new
57920         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
57921         that both overflow and suffix chars were found.
57922
57923         * lib/human.c (humblock): Don't check separately for invalid suffix
57924         char; that is xstrtoumax's job (now that its bug is fixed).
57925         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
57926         INTMAX_MAX]: New macros.
57927         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
57928         TYPE_MAXIMUM): New macros.
57929         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
57930         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
57931         if overflow occurs, as it's what __strtol does and it's more useful
57932         in practice.
57933         (__xstrtol): If __strtol reports some error other than ERANGE,
57934         reflect it to the caller as LONGINT_INVALID.  If it reports
57935         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
57936         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
57937         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
57938         value.
57939         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
57940         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
57941         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
57942         [defined UINTMAX_MAX]: New macros.
57943
57944 2003-10-14  Bruno Haible  <bruno@clisp.org>
57945
57946         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
57947
57948 2003-10-14  Bruno Haible  <bruno@clisp.org>
57949
57950         * m4/sig_atomic_t: New file, from GNU gettext.
57951         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
57952
57953 2003-10-14  Bruno Haible  <bruno@clisp.org>
57954
57955         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
57956         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
57957         Also use volatile where needed.
57958
57959 2003-10-12  Paul Eggert  <eggert@twinsun.com>
57960
57961         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
57962         Change maintainer from Bruno Haible to 'all'.
57963
57964 2003-10-12  Paul Eggert  <eggert@twinsun.com>
57965
57966         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
57967
57968 2003-10-12  Paul Eggert  <eggert@twinsun.com>
57969
57970         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
57971         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
57972         and define in terms of the other primitives.
57973         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
57974         (SIZE_MAX): Define if not already defined.
57975         (array_size_overflow): New function.
57976         (xalloc_die): Abort instead of exiting if 'error' returns.
57977         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
57978         (xmalloc, xrealloc): Use them.
57979         (xcalloc): Check for address arithmetic overflow.
57980         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
57981         a bit faster than strcpy.
57982
57983 2003-10-10  Simon Josefsson  <jas@extundo.com>
57984
57985         * modules/argp (Depends-on): Add restrict and strcase.
57986
57987 2003-10-10  Simon Josefsson  <jas@extundo.com>
57988
57989         * m4/argp.m4: Add AC_C_INLINE.
57990
57991 2003-10-08  Paul Eggert  <eggert@twinsun.com>
57992
57993         Merge getpass from libc, plus a few fixes.
57994
57995         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
57996         Include <stdbool.h>.
57997         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
57998         __fsetlocking to empty.
57999         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
58000         do include <bits/libc-lock.h>.
58001         Do not include <fcntl.h>; not needed.
58002         [_LIBC]: Include <wchar.h>.
58003         (NOTCANCEL_MODE): New macro.
58004         (flockfile, funlockfile) [_LIBC]: New macros.
58005         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
58006         [!_LIBC]: New macros.
58007         (call_fclose): New function.
58008         (getpass): Use it.  Save tty stream separately; this simplifies the
58009         code and makes it more reliable if stdin happens to equal stdout.
58010         Invoke __fsetlocking on tty.
58011         Handle thread cancellation if needed.
58012         Namespace cleanup (use __tcgetattr, __getline).
58013         Use bool for Booleans.
58014         [USE_IN_LIBIO]: Handle wide streams.
58015         [!_LIBC]: Unconditionally do the fseek, since we don't know what
58016         stream might go where.
58017
58018         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
58019         doesn't have to include <stdio.h> before us.
58020         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
58021         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
58022         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
58023         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
58024         if not declared, so that we can use getpass.c code from libc without
58025         rewriting it.
58026         (flockfile, ftrylockfile, funlockfile): New macros.
58027
58028 2003-10-08  Paul Eggert  <eggert@twinsun.com>
58029
58030         * modules/getpass: Depend on stdbool.
58031
58032 2003-10-08  Paul Eggert  <eggert@twinsun.com>
58033
58034         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
58035
58036 2003-10-07  Karl Berry  <karl@gnu.org>
58037
58038         * config/config.{guess,sub}: update from config.
58039
58040 2003-10-06  Jim Meyering  <jim@meyering.net>
58041             Bruno Haible  <bruno@clisp.org>
58042
58043         This lets translators provide better translations for the
58044         "Written by ..." part of --version output.
58045         * lib/version-etc.h: Include stdarg.h.
58046         (version_etc_copyright): Declare as readonly.
58047         (version_etc): Make this function variadic with a NULL-terminated list
58048         of author name strings.
58049         (version_etc_va): New declaration.
58050         * lib/version-etc.c: Include stdarg.h, stdlib.h.
58051         (version_etc_copyright): Declare as readonly.
58052         (version_etc_va): New function. Provide a different translatable string
58053         for each possible number of authors < 10. Abbreviate when there are 10
58054         authors or more.
58055         (version_etc): Make this function variadic. Call version_etc_va.
58056         Suggestion from Gary V. Vaughan.
58057
58058         * lib/long-options.h (parse_long_options): Change prototype: the
58059         authors string is moved to the end and becomes variadic.
58060         * lib/long-options.c: Include stdarg.h.
58061         (parse_long_options): Make this function variadic, too.
58062         Call version_etc_va, not version_etc.
58063
58064 2003-10-06  Bruno Haible  <bruno@clisp.org>
58065
58066         * modules/version-etc-2: Remove file.
58067         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
58068
58069 2003-10-06  Bruno Haible  <bruno@clisp.org>
58070
58071         * modules/fatal-signal: New file.
58072         * MODULES.html.sh (func_all_modules): Add fatal-signal.
58073
58074 2003-10-06  Bruno Haible  <bruno@clisp.org>
58075
58076         * m4/fatal-signal.m4: New file.
58077         * m4/signalblocking.m4: New file, from GNU gettext.
58078
58079 2003-10-06  Bruno Haible  <bruno@clisp.org>
58080
58081         * lib/version-etc-2.h: Remove file.
58082         * lib/version-etc-2.c: Remove file.
58083
58084 2003-10-06  Bruno Haible  <bruno@clisp.org>
58085
58086         * lib/fatal-signal.h: New file, from GNU gettext.
58087         * lib/fatal-signal.c: New file, from GNU gettext.
58088
58089 2003-10-05  Paul Eggert  <eggert@twinsun.com>
58090
58091         * README: Rework advice for preventing empty .o files.
58092         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
58093         not <sys/types.h>.
58094
58095 2003-10-04  Karl Berry  <karl@gnu.org>
58096
58097         * lib/argp*: update from libc.
58098
58099 2003-10-04  Karl Berry  <karl@gnu.org>
58100
58101         * config/config.{guess,sub}: update from config.
58102
58103 2003-10-02  Bruno Haible  <bruno@clisp.org>
58104
58105         * modules/lchown (Include): Add lchown.h.
58106         * modules/time_r (Include): Use "..." syntax.
58107         * modules/xgetdomainname (Include): Add xgetdomainname.h.
58108
58109 2003-10-01  Simon Josefsson  <jas@extundo.com>
58110
58111         * MODULES.html.sh (func_all_modules): Move gethostname from section
58112         'based on' to section 'lacking' POSIX:2001.
58113
58114 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
58115
58116         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
58117         to output mode on the same stream.
58118
58119 2003-09-29  Paul Eggert  <eggert@twinsun.com>
58120
58121         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
58122         Fix arg typo in previous patch.
58123
58124 2003-09-28  Jim Meyering  <jim@meyering.net>
58125
58126         * lib/error.c: Correct cpp indentation.
58127
58128 2003-09-27  Paul Eggert  <eggert@twinsun.com>
58129
58130         * modules/free: New file.
58131
58132 2003-09-27  Paul Eggert  <eggert@twinsun.com>
58133
58134         * m4/free.m4: New file.
58135
58136 2003-09-27  Paul Eggert  <eggert@twinsun.com>
58137
58138         * lib/minmax.h (MIN, MAX)
58139         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
58140         Omit the special code that used __typeof__, since we worry that
58141         it could be more trouble than it's worth.  See:
58142         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
58143         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
58144
58145         * lib/free.c: New file.
58146
58147 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
58148
58149         Trivial fixes to Makefile.am parts of module listings.
58150         * modules/strstr: Append strstr.h to lib_SOURCES.
58151         * modules/strcase: Likewise, for strcase.h.
58152
58153 2003-09-27  Karl Berry  <karl@gnu.org>
58154
58155         * config/mkinstalldirs: update from automake.
58156
58157 2003-09-26  Paul Eggert  <eggert@twinsun.com>
58158
58159         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
58160         (error_tail): Do not loop, reallocating temporary buffer, since
58161         the output cannot contain more wide characters than the input
58162         contains bytes, the size must be big enough already.  This avoids
58163         one potential size overflow calculation.  Check for size overflow
58164         when calculating temporary buffer size.  Free temporary buffer
58165         when done, if it was allocated with malloc; this plugs a memory
58166         leak.  Remove casts from void * to pointers, that are no longer
58167         needed now that we're assuming C89 or better.
58168
58169         Merge error changes from glibc.
58170
58171         * lib/error.c, error.h: Update copyright notice header to match glibc.
58172         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
58173         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
58174         Disable cancellation while printing error.
58175         * lib/error.h: Prepend __ to parameter names.
58176
58177 2003-09-26  Jim Meyering  <jim@meyering.net>
58178
58179         * lib/error.c (error_tail): Move some declarations
58180         into inner scope where the local variables are used.
58181
58182 2003-09-26  Bruno Haible  <bruno@clisp.org>
58183
58184         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
58185         stpncpy().
58186         Don't define stpncpy through config.h; it's now done through stpncpy.h.
58187
58188 2003-09-26  Bruno Haible  <bruno@clisp.org>
58189
58190         * lib/stpncpy.h (gnu_stpncpy): New declaration.
58191         (stpncpy): Define as alias for gnu_stpncpy.
58192         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
58193
58194 2003-09-25  Simon Josefsson  <jas@extundo.com>
58195
58196         * lib/xgetdomainname.h: New file.
58197         * lib/xgetdomainname.c: New file.
58198
58199 2003-09-25  Simon Josefsson  <jas@extundo.com>
58200             Bruno Haible  <bruno@clisp.org>
58201
58202         * modules/getdomainname: New file.
58203         * modules/xgetdomainname: New file.
58204         * MODULES.html.sh (func_all_modules): Add getdomainname,
58205         xgetdomainname.
58206
58207 2003-09-25  Simon Josefsson  <jas@extundo.com>
58208             Bruno Haible  <bruno@clisp.org>
58209
58210         * m4/getdomainname.m4: New file.
58211
58212 2003-09-25  Simon Josefsson  <jas@extundo.com>
58213             Bruno Haible  <bruno@clisp.org>
58214
58215         * lib/getdomainname.h: New file.
58216         * lib/getdomainname.c: New file.
58217
58218 2003-09-25  Karl Berry  <karl@gnu.org>
58219
58220         * lib/argp-fmtstream.c, argp-help.c: update from libc.
58221
58222 2003-09-25  Karl Berry  <karl@gnu.org>
58223
58224         * config/install-sh: update from automake.
58225
58226 2003-09-25  Bruno Haible  <bruno@clisp.org>
58227
58228         * modules/version-etc-2: New file, from modules/version-etc with
58229         modifications.
58230         * MODULES.html.sh (func_all_modules): Add version-etc-2.
58231
58232 2003-09-25  Bruno Haible  <bruno@clisp.org>
58233
58234         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
58235         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
58236
58237 2003-09-24  Simon Josefsson  <jas@extundo.com>
58238
58239         * modules/xgethostname: Add xgethostname.h.
58240
58241 2003-09-24  Paul Eggert  <eggert@twinsun.com>
58242
58243         * lib/linebuffer.c (freebuffer): Don't free the argument, just
58244         the buffer associated with the argument.  Bug reported by
58245         Simon Josefsson.
58246
58247 2003-09-24  Paul Eggert  <eggert@twinsun.com>
58248
58249         * README: Document assumptions that 'int' is at least 32 bits
58250         wide, that integer arithmetic is 2's complement without overflow,
58251         that there are no holes in integer values, that adding sizes of
58252         two nonoverlapping objects can't overflow, and that all-bits-zero
58253         yields scalar zero.  Fix spelling and capitalization typos.
58254
58255 2003-09-19  Karl Berry  <karl@gnu.org>
58256
58257         * lib/argp.h: update from libc.
58258
58259 2003-09-17  Paul Eggert  <eggert@twinsun.com>
58260
58261         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
58262         to avoid spurious warnings like "AC_RUN_IFELSE was called before
58263         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
58264
58265 2003-09-17  Paul Eggert  <eggert@twinsun.com>
58266
58267         * gnulib-tool: Use "test -h", not "test -L", for portability
58268         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
58269         (tags_regexp): Remove, since \| doesn't conform to POSIX.
58270         (sed_extract_prog): Issue s commands one-by-one, rather than
58271         using \| in one s command.
58272
58273 2003-09-16  Paul Eggert  <eggert@twinsun.com>
58274
58275         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
58276         input error, instead of returning NULL the next time we are called
58277         (and therefore losing track of errno).
58278
58279 2003-09-16  Bruno Haible  <bruno@clisp.org>
58280
58281         * gnulib-tool (func_create_testdir): Warn about duplicated
58282         dependencies.
58283
58284 2003-09-15  Paul Eggert  <eggert@twinsun.com>
58285
58286         * modules/argmatch, modules/fatal, modules/obstack,
58287         modules/xalloc, modules/xgethostname: Sort dependencies by
58288         importance, not alphabetically.
58289
58290 2003-09-15  Paul Eggert  <eggert@twinsun.com>
58291
58292         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
58293         fails, so that the caller gets the proper errno.
58294
58295         * lib/readutmp.c (read_utmp): Likewise.
58296         Check for fstat error.  Close stream and free storage
58297         when failing.
58298
58299 2003-09-14  Karl Berry  <karl@gnu.org>
58300
58301         * config/srclist.txt (strdup.c): disable for c89 changes.
58302
58303 2003-09-14  Jim Meyering  <jim@meyering.net>
58304
58305         * lib/getloadavg.c: Correct cpp indentation.
58306         * lib/strdup.c: Likewise.
58307         * lib/vasnprintf.c: Likewise.
58308
58309 2003-09-14  Bruno Haible  <bruno@clisp.org>
58310
58311         * modules/fwriteerror: New file.
58312         * MODULES.html.sh (func_all_modules): Add fwriteerror.
58313
58314 2003-09-14  Bruno Haible  <bruno@clisp.org>
58315
58316         * lib/fwriteerror.h: New file.
58317         * lib/fwriteerror.c: New file.
58318
58319 2003-09-12  Paul Eggert  <eggert@twinsun.com>
58320
58321         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
58322         modules/xgethostname, modules/xalloc: Depend on exit.
58323
58324 2003-09-12  Paul Eggert  <eggert@twinsun.com>
58325
58326         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
58327
58328         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
58329         and AC_MINIX, too, so that their extensions are available.
58330
58331         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
58332         This macro has been superseded by gl_BACKUPFILE.
58333
58334         More patches to assume C89 or better.
58335
58336         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
58337
58338         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
58339         unconditionally.
58340         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
58341         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
58342         Include <string.h>, <stdlib.h> unconditionally.
58343         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
58344         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
58345         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
58346         headers or for string.h.
58347         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
58348         or strtoul.
58349
58350         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
58351         headers.
58352         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
58353         * m4/userspec.m4 (gl_USERSPEC): Likewise.
58354         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
58355         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
58356         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
58357         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
58358         memcpy, memset.
58359         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
58360         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
58361         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
58362         strtol.
58363         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
58364         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
58365         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
58366         strtoul.
58367
58368 2003-09-12  Paul Eggert  <eggert@twinsun.com>
58369
58370         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
58371         * lib/obstack.c [!defined _LIBC]: Likewise.
58372         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
58373         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
58374         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
58375
58376         More changes to assume C89 or better.
58377
58378         * lib/error.c (error_tail): Assume vprintf.
58379
58380         * lib/argmatch.c (getenv): Remove decl.
58381         * lib/progreloc.c (get_full_program_name): Define via prototype.
58382         * lib/setenv.c (clearenv): Likewise.
58383         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
58384         needed.
58385         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
58386         (malloc, memcpy): Remove decls.
58387         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
58388         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
58389         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
58390         (memcpy): Remove macro.
58391         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
58392         (__P): Remove.  All uses removed.
58393         (PTR): Remove.  All uses changed to void *.
58394         (CHAR_BIT, NULL): Remove.
58395         (spaces, zeros, memset_space, memset_zero)
58396         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
58397         Remove.
58398         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
58399         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
58400         Define with prototype.
58401         Remove now-unnecessary prototype decl.
58402         (extra_args_spec): Assume ANSI C.  All uses changed.
58403         (extra_args_spec_iso): Remove.
58404         (my_strftime, emacs_strftimeu): Define via prototype.
58405         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
58406         unconditionally.
58407         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
58408         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
58409         (strtoul, strtol): Remove decls.
58410         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
58411         LONG_MAX): Remove.
58412         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
58413         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
58414         (LOCALE_PARAM_PROTO): New macro.
58415         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
58416         (INTERNAL (strtol), strtol): Define with a prototype.
58417         (PARAMS): Remove.  All uses removed.
58418         * lib/tempname.c: Include <string.h> unconditionally.
58419         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
58420         * lib/xgethostname.c (main): Define with a prototype.
58421         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
58422         Include <stdlib.h> unconditionally.
58423         (calloc, malloc, realloc, free): Remove decls.
58424         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
58425         Include <stdlib.h> unconditionally.  Sort include file names.
58426         (strtod): Remove.
58427         (xstrtod): Define with a prototype.
58428         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
58429         (strtol, strtoul): Remove decls.
58430
58431 2003-09-11  Paul Eggert  <eggert@twinsun.com>
58432
58433         More patches to assume C89 or better.
58434         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
58435         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
58436         string.h, memchr, STDC_HEADERS.
58437
58438 2003-09-11  Paul Eggert  <eggert@twinsun.com>
58439
58440         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
58441         Include <stdlib.h>, <string.h> unconditionally.
58442         Remove now-unnecessary cast to char *.
58443         * lib/strnlen.c: Include <string.h> unconditionally.
58444         * lib/yesno.c (yesno): Define with a prototype.
58445
58446 2003-09-11  Bruno Haible  <bruno@clisp.org>
58447
58448         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
58449
58450 2003-09-10  Jim Meyering  <jim@meyering.net>
58451
58452         * lib/error.c: Correct indentation of cpp directives.
58453
58454 2003-09-10  Bruno Haible  <bruno@clisp.org>
58455
58456         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
58457         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
58458         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
58459         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
58460         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
58461         <stdlib.h> and <string.h> checks.
58462         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
58463         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
58464
58465 2003-09-10  Bruno Haible  <bruno@clisp.org>
58466
58467         * lib/strcspn.c: Include <string.h> unconditionally.
58468         * lib/strpbrk.c: Include <string.h> unconditionally.
58469         * lib/strstr.c: Include <string.h> unconditionally.
58470         * lib/unicodeio.c: Include <string.h> unconditionally.
58471         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
58472         * lib/unsetenv.c: Likewise.
58473         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
58474         * lib/yesno.c: Include <stdlib.h> unconditionally.
58475         (rpmatch): Add prototype.
58476
58477 2003-09-09  Paul Eggert  <eggert@twinsun.com>
58478
58479         More patches to assume C89 or better.
58480         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
58481         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
58482         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
58483         or for string.h.
58484         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
58485         stdlib.h.
58486         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
58487         C headers.
58488         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
58489         string.h.
58490         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
58491         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
58492         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
58493         or for string.h.
58494         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
58495         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
58496         C headers.
58497         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
58498         memcpy.
58499         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
58500         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
58501         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
58502         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
58503         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
58504         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
58505         string.h, free.
58506         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
58507         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
58508         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
58509         C headers, or for string.h.
58510         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
58511         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
58512         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
58513         headers, memory.h, stdlib.h, string.h, strings.h.
58514         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
58515         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
58516         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
58517         strchr.
58518         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
58519         headers, memory.h, string.h.
58520         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
58521         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
58522         free.
58523         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
58524         headers.
58525         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
58526         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
58527         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
58528         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
58529         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
58530
58531 2003-09-09  Paul Eggert  <eggert@twinsun.com>
58532
58533         More K&R removal.
58534
58535         * lib/acosl.c (main): Use a prototype.
58536         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
58537         tanl.c: Likewise.
58538
58539         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
58540
58541         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
58542         (getopt, etopt_long, getopt_long_only, _getopt_internal)
58543         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
58544         with a prototype.
58545         * lib/getopt.c (const): Remove macro.
58546         Include <string.h> unconditionally.
58547         (my_index): Remove; all uses changed to strchr.
58548         (strlen): Remove decl.
58549         (exchange): Remove forward decl; no longer needed.
58550         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
58551         Define with prototype.
58552         * lib/getopt1.c (const): Remove macro.
58553         (getopt_long, getopt_long_only, main): Define with prototype.
58554
58555         * lib/getugroups.c: Include <string.h> unconditionally.
58556
58557         * lib/getusershell.c: Include <stdlib.h> unconditionally.
58558         (getusershell, setusershell, endusershell, readname, main):
58559         Define with prototypes.
58560
58561         * lib/group-member.c: Include group-member.h first.
58562         Include <stdlib.h> unconditionally.
58563
58564         * lib/hard-locale.c: Include hard-locale.h first.
58565         Include <stdlib.h>, <string.h> unconditionally.
58566
58567         * lib/hash.c (free, malloc): Remove decls.
58568         Include <stdlib.h> unconditionally.
58569
58570         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
58571         (getenv): Do not declare.
58572
58573         * lib/idcache.c: Include <string.h> unconditionally.
58574
58575         * lib/long-options.c: Include long-options.h first, to test interface.
58576         Include <stdlib.h> unconditionally.
58577
58578         * lib/makepath.c: Include makepath.h first, to test interface.
58579         Include <stdlib.h> and <string.h> unconditionally.
58580
58581         * lib/linebuffer.c: Include <stdlib.h>.
58582         (free): Remove decl.
58583
58584         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
58585         stddef.h. rpl_malloc returns void *, not char *.
58586         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
58587         prototype.
58588
58589         * lib/md5.h: Include <limits.h> unconditionally.
58590         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
58591         (__P): Remove; all uses removed.
58592         * lib/md5.c: Include "md5.h" first.
58593         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
58594         md5_buffer, md5_process_bytes, md5_process_block):
58595         Define with prototypes.
58596         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
58597         * lib/sha.c: Include "sha.h" first.
58598         Include <stdlib.h>, <string.h> unconditionally.
58599
58600         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
58601         * lib/memcmp.c (__ptr_t): Likewise.
58602         * lib/memrchr.c (__ptr_t): Likewise.
58603         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
58604         Include <string.h> unconditionally.
58605         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
58606         * lib/memchr.c: Include <stdlib.h> unconditionally.
58607         * lib/memchr.c (LONG_MAX): Remove.
58608         * lib/memrchr.c (LONG_MAX): Likewise.
58609         * lib/memchr.c (__memchr): Define via a prototype.
58610         * lib/memrchr.c (__memrchr): Likewise.
58611         * lib/memcmp.c (__P): Remove, and remove all uses.
58612         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
58613         Remove forward decls; no longer needed.
58614         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
58615         Use types required by C89 in prototype.
58616
58617         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
58618         * lib/savedir.c: Likewise.
58619         * lib/mkdir.c (free): Remove decl.
58620         * lib/rmdir.c (rmdir): Define with a prototype.
58621         * lib/savedir.c: Include savedir.h first, to test interface.
58622
58623         * lib/mktime.c (STDC_HEADERS): Remove.
58624         Include <stdlib.h>, <string.h> unconditionally.
58625
58626         * lib/modechange.c: Include <stdlib.h> unconditionally.
58627         (malloc): Remove decl.
58628
58629         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
58630         (free): Remove decl.
58631
58632         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
58633         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
58634         (This type really should be intptr_t, but that's a C99ism.)
58635         (_obstack_memcpy): Remove: all uses changed to memcpy.
58636         Include <string.h> unconditionally.
58637         (struct obstack): Assume __STDC__ for types of members
58638         chunkfun, freefun, extra_arg.
58639         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
58640         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
58641         obstack_begin, obstack_specify_allocation,
58642         obstack_specify_allocation_with_arg, obstack_chunkfun,
58643         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
58644         Remove unprototyped decls and the macros that use them.
58645         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
58646         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
58647         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
58648         (defined __STDC__ && __STDC__)]:
58649         Remove nonprototyped code.
58650         Include <stdlib.h> unconditionally.
58651         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
58652         _obstack_allocated_p, _obstack_free, obstack_free,
58653         _obstack_memory_used, print_and_abort):
58654         Define using prototypes.
58655         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
58656         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
58657         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
58658         obstack_next_free, obstack_object_size, obstack_room) [0]:
58659         Remove unused, unprototyped code.
58660
58661         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
58662
58663         * lib/physmem.c (physmem_total, physmem_available, main): Define
58664         with prototypes.
58665
58666         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
58667         (main): Define with a prototype.
58668
58669         * lib/posixver.c (getenv): Remove decl.
58670
58671         * lib/putenv.c (malloc): Returns void *, not char *.
58672         Include <string.h> unconditionally.
58673         (strchr, memcpy, NULL): Do not define.
58674
58675         * lib/readtokens.c: Include readtokens.h first, to test interface.
58676         Include <stdlib.h>, <string.h> unconditionally.
58677         (init_tokenbuffer): Define with a prototype.
58678
58679         * lib/regex.c (PARAMS): Remove.  All uses removed.
58680         All uses of _RE_ARGS removed, too.
58681         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
58682         unconditionally.
58683         (bzero): Assume memset exists.
58684         (memcmp, memcpy, NULL): Remove.
58685         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
58686         char, or assignments to local vars of type signed char.
58687         (init_syntax_once, PREFIX(extract_number_and_incr),
58688         PREFIX(print_partial_compiled_pattern),
58689         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
58690         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
58691         PREFIX(regex_grow_registers), PREFIX(regex_compile),
58692         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
58693         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
58694         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
58695         wcs_compile_range, byte_compile_range, truncate_wchar,
58696         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
58697         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
58698         count_mbs_length, wcs_re_match_2_internal,
58699         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
58700         PREFIX(alt_match_null_string_p),
58701         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
58702         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
58703         regfree, PREFIX(extract_number)): Define with prototype.  Remove
58704         now-unnecessary declaration, if any.
58705         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
58706         regcomp, regexec):
58707         Remove now-unnecessary casts among pointer types.
58708         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
58709
58710         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
58711         (free): Remove decl.
58712
58713         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
58714
58715         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
58716         (free): Remove decl.
58717
58718         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
58719         * lib/xgetcwd.c: Likewise.
58720
58721         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
58722         (free): Remove decl.
58723
58724         * lib/strchrnul.c (strchrnul): Define with a prototype.
58725         Fix bug: c_in was not converted to char before searching.
58726
58727         The following changes are not K&R related:
58728
58729         * lib/group-member.h: Include <sys/types.h>, so that this file is
58730         self-contained.
58731         * lib/makepath.h: Likewise.
58732
58733         * lib/getusershell.c (readname, default_index, line_size, readname):
58734         Use size_t, not int, for sizes.
58735         (readname): If the size overflows, report an error instead of
58736         looping forever.
58737
58738 2003-09-09  Paul Eggert  <eggert@twinsun.com>
58739
58740         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
58741         libc.
58742
58743 2003-09-09  Paul Eggert  <eggert@twinsun.com>
58744
58745         * README: New section: portability guidelines.
58746
58747 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
58748
58749         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
58750         C89 spec.
58751
58752 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
58753
58754         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
58755
58756 2003-09-08  Paul Eggert  <eggert@twinsun.com>
58757
58758         Assume C89 or better; remove K&R cruft.
58759         A few of these changes were first proposed by Derek Robert Price
58760         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
58761
58762         * lib/addext.c: Include <string.h> unconditionally.
58763         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
58764         Don't declare getenv or malloc.
58765
58766         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
58767         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
58768         (NULL): Remove.
58769         (find_stack_direction, alloca): Use prototypes.
58770
58771         * lib/atexit.c (atexit): Define using a prototype.
58772
58773         * lib/basename.c, dirname.c, stripslash.c:
58774         Include <string.h> unconditionally.
58775
58776         * lib/bcopy.c: Include <stddef.h>.
58777         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
58778
58779         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
58780
58781         * lib/error.h (error, error_at_line, error_print_progname)
58782         [! (defined (__STDC__) && __STDC__)]: Remove decls.
58783         * lib/error.c: Include error.h first, to check interface.
58784         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
58785         (VA_START): Remove; all uses changeed to va_start.
58786         (exit, strerror): Remove decls.
58787         (error_print_progname): Prototype uncondionally.
58788         Don't include <errno.h>; no longer needed.
58789         (private_strerror): Remove.
58790         (error_tail): Always define.
58791         (error, error_at_line): Assume C89 or better; always use prototypes.
58792         * lib/fatal.c: Include "fatal.h" first, to test interface.
58793         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
58794         (VA_START): Remove; all uses changed to va_start.
58795         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
58796         this case.
58797         (exit): Remove decl.
58798         (fatal): Prototype unconditionally.  Assume va_start works.
58799         Abort at end, to pacify gcc.
58800
58801         * lib/euidaccess.c (main): Define with a prototype.
58802
58803         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
58804
58805         * lib/exitfail.c: Include <stdlib.h> unconditionally.
58806
58807         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
58808         prototypes.
58809         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
58810         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
58811         (getenv): Remove decl.
58812         (fnmatch): Define using a prototype.
58813         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
58814         (FCT): Define using a prototype.
58815
58816         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
58817
58818         * lib/gethostname.c: Include <stddef.h>.
58819         (gethostname): Define with prototype.  Length is size_t, not int.
58820
58821 2003-09-08  Paul Eggert  <eggert@twinsun.com>
58822
58823         Assume C89 or better; remove K&R cruft.
58824         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
58825         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
58826         string.h, getenv, malloc.
58827         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
58828         headers.
58829         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
58830         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
58831         do not check for strerror.
58832         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
58833         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
58834         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
58835         do not check for doprnt or vprintf.
58836         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
58837         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
58838
58839 2003-09-08  Paul Eggert  <eggert@twinsun.com>
58840
58841         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
58842         getversion.c should have been removed then, but was accidentally
58843         preserved.
58844
58845         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
58846         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
58847
58848 2003-09-08  Karl Berry  <karl@gnu.org>
58849
58850         * config/config.sub, config.guess, srclistvars.sh: update from savannah
58851                 config, forget about prep.
58852
58853         * config/depcomp, missing: update from automake.
58854
58855 2003-09-07  Paul Eggert  <eggert@twinsun.com>
58856
58857         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
58858         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
58859
58860 2003-09-07  Paul Eggert  <eggert@twinsun.com>
58861
58862         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
58863         copy_tm_result.  Bug reported by Simon Josefsson in
58864         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
58865
58866 2003-09-06  Paul Eggert  <eggert@twinsun.com>
58867
58868         * m4/time_r.m4: New file.
58869         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
58870         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
58871         is. Check for timegm declaration.
58872         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
58873         Do not check for gmtime_r.
58874         Replace mktime if __mktime_internal does not exist and if mktime
58875         hasn't been replaced already.
58876
58877 2003-09-06  Paul Eggert  <eggert@twinsun.com>
58878
58879         * lib/time_r.c, lib/time_r.h: New files.
58880
58881         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
58882         __localtime_r.
58883         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
58884         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
58885
58886         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
58887         __gmtime_r.
58888         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
58889         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
58890         Include <time_r.h>.
58891
58892         * lib/timegm.c: Switch to glibc implementation, with the following
58893         changes:
58894         [defined HAVE_CONFIG_H]: Include <config.h>.
58895         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
58896         (__mktime_internal) [!defined _LIBC]: New decl.
58897         (__gmtime_r) [!defined _LIBC]: New macro and function.
58898         (timegm): Use a prototype, since gnulib assumes C89.
58899         Do not bother declaring tmp to be const, as it's not really usefu.
58900         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
58901         (timegm): Declare only if HAVE_DECL_TIMEGM.
58902
58903 2003-09-06  Paul Eggert  <eggert@twinsun.com>
58904
58905         * MODULES.html.sh (func_all_modules): Add time_r.
58906         * modules/time_r: New file.
58907         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
58908         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
58909
58910 2003-09-03  Paul Eggert  <eggert@twinsun.com>
58911
58912         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
58913         Bug reported by Lute Kamstra in
58914         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
58915
58916         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
58917         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
58918         course with correspondingly smaller numbers for tomorrow and
58919         yesterday.  From Tadayoshi Funaba.  Originally installed into
58920         sh-utils on 1999-08-07, but the patch got lost (I guess during the
58921         coreutils merge?).
58922
58923 2003-08-31  Simon Josefsson  <jas@extundo.com>
58924
58925         * modules/timegm: New file.
58926         * MODULES.html.sh (func_all_modules): Add timegm.
58927
58928 2003-08-31  Simon Josefsson  <jas@extundo.com>
58929
58930         * m4/timegm.m4: New file.
58931
58932 2003-08-31  Simon Josefsson  <jas@extundo.com>
58933
58934         * lib/timegm.h: New file.
58935         * lib/timegm.c: New file.  Based on
58936         wget-1.8.2/src/http.c:mktime_from_utc.
58937
58938 2003-08-31  Karl Berry  <karl@gnu.org>
58939
58940         * lib/argp.h: update from libc.
58941
58942 2003-08-28  Bruno Haible  <bruno@clisp.org>
58943
58944         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
58945         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
58946         followed by '#define fnmatch fnmatch_posix' gives an error.
58947
58948 2003-08-28  Bruno Haible  <bruno@clisp.org>
58949
58950         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
58951         warning on QNX, which defines O_BINARY to 000000.
58952
58953 2003-08-27  Jim Meyering  <jim@meyering.net>
58954
58955         * m4/mkstemp.m4: Require that the system mkstemp be able to create
58956         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
58957         would fail after 32.  Reported by Danny Levinson.  Details here:
58958         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
58959
58960 2003-08-24  Bruno Haible  <bruno@clisp.org>
58961
58962         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
58963         MSVC7 <stdio.h> is included later.
58964
58965 2003-08-22  Simon Josefsson  <jas@extundo.com>
58966
58967         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
58968
58969 2003-08-20  Karl Berry  <karl@gnu.org>
58970
58971         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
58972
58973 2003-08-20  Bruno Haible  <bruno@clisp.org>
58974
58975         * modules/progname: New file.
58976         * MODULES.html.sh (func_all_modules): Add progname.
58977
58978 2003-08-20  Bruno Haible  <bruno@clisp.org>
58979
58980         * lib/progname.h: New file, from GNU gettext.
58981         * lib/progname.c: New file, from GNU gettext.
58982         * lib/progreloc.c: New file, from GNU gettext.
58983
58984 2003-08-19  Jim Meyering  <jim@meyering.net>
58985
58986         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
58987         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
58988
58989 2003-08-19  Bruno Haible  <bruno@clisp.org>
58990
58991         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
58992         more.
58993
58994 2003-08-19  Bruno Haible  <bruno@clisp.org>
58995
58996         * lib/xstrdup.c: Assume <string.h> exists.
58997
58998 2003-08-18  Paul Eggert  <eggert@twinsun.com>
58999
59000         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
59001         in makefile rules.
59002
59003 2003-08-18  Jim Meyering  <jim@meyering.net>
59004
59005         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
59006         * m4/lib-ld.m4: Likewise.
59007
59008 2003-08-18  Jim Meyering  <jim@meyering.net>
59009
59010         * lib/setenv.h: Indent nested cpp directive.
59011         * lib/vasnprintf.c: Remove trailing blanks.
59012
59013 2003-08-17  Simon Josefsson  <jas@extundo.com>
59014
59015         * modules/xstrndup: New file.
59016         * MODULES.html.sh (func_all_modules): Add xstrndup.
59017
59018 2003-08-17  Simon Josefsson  <jas@extundo.com>
59019
59020         * modules/argp: Fix autoconf macro name. Add more dependencies.
59021
59022 2003-08-17  Simon Josefsson  <jas@extundo.com>
59023
59024         * m4/xstrndup.m4: New file.
59025
59026 2003-08-17  Simon Josefsson  <jas@extundo.com>
59027
59028         * m4/argp.m4: New file.
59029
59030 2003-08-17  Simon Josefsson  <jas@extundo.com>
59031             Bruno Haible  <bruno@clisp.org>
59032
59033         * lib/xstrndup.h: New file.
59034         * lib/xstrndup.c: New file.
59035
59036 2003-08-17  Bruno Haible  <bruno@clisp.org>
59037
59038         * modules/strndup (Files, Include): Add lib/strndup.h.
59039
59040 2003-08-17  Bruno Haible  <bruno@clisp.org>
59041
59042         * modules/euidaccess (Files): Add lib/euidaccess.h.
59043
59044 2003-08-17  Bruno Haible  <bruno@clisp.org>
59045
59046         * lib/strndup.h: New file.
59047
59048 2003-08-17  Bruno Haible  <bruno@clisp.org>
59049
59050         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
59051         like AC_GNU_SOURCE.
59052         * modules/extensions (configure.ac): Comment out the invocation of
59053         gl_USE_SYSTEM_EXTENSIONS.
59054
59055 2003-08-16  Paul Eggert  <eggert@twinsun.com>
59056
59057         Merges from coreutils, etc.
59058         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
59059         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
59060         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
59061         fixing a typo.
59062         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
59063         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
59064
59065 2003-08-16  Paul Eggert  <eggert@twinsun.com>
59066
59067         Document merge from coreutils.
59068         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
59069         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
59070         * modules/utime: Add m4/utimes-null.m4.
59071
59072 2003-08-16  Paul Eggert  <eggert@twinsun.com>
59073
59074         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
59075         space, undoing this 2003-08-12 change:
59076         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
59077
59078 2003-08-16  Paul Eggert  <eggert@twinsun.com>
59079
59080         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
59081         strtoul.c from libc, undoing this 2003-08-12 change:
59082         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
59083
59084 2003-08-16  Jim Meyering  <jim@meyering.net>
59085
59086         Merges from coreutils.
59087         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
59088         prefix.  Adjust cache variables similarly.  Create 500 rather than
59089         just 300 files, to exercise bug on Darwin6.5, too.
59090         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
59091         $missing_dir.
59092         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
59093         AM_SYS_POSIX_TERMIOS.
59094         Reported by mkc@mathdogs.com.
59095         Also change use of $am_cv_sys_posix_termios
59096         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
59097         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
59098         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
59099         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
59100         in /proc/mounts until it finds one with matching device number.  This
59101         is unnecessary when the FILE argument *is* a mount point.  No stat call
59102         is necessary in that case.  So, disable the statvfs-testing code on
59103         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
59104         as RedHat bug# 84846.
59105         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
59106         to 1MB, so as not to render systems with no stack size limit (e.g.,
59107         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
59108         Include <unistd.h>.  On some systems,
59109         it is required for the definition of _SC_PAGESIZE.
59110
59111 2003-08-16  Jim Meyering  <jim@meyering.net>
59112
59113         Merge from coreutils.
59114         * lib/xstrtoimax.c: #else #if -> #elif.
59115         * lib/xstrtoumax.c: Likewise.
59116
59117 2003-08-16  Jim Meyering  <jim@meyering.net>
59118
59119         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
59120         * m4/utimes.m4: Removed.
59121         * m4/utimes-null.m4: Renamed from utimes.m4.
59122
59123         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
59124         to 1MB, so as not to render systems with no stack size limit (e.g.,
59125         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
59126         Include <unistd.h>.  On some systems,
59127         it is required for the definition of _SC_PAGESIZE.
59128
59129 2003-08-16  Jim Meyering  <jim@meyering.net>
59130         and Paul Eggert  <eggert@cs.ucla.edu>
59131
59132         Merges from coreutils, etc.
59133
59134         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
59135         using the latest version from cvs.  This avoids problems with #line
59136         directives using a vendor (Sun) compiler.
59137         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
59138         Don't set GETGROUPS_LIB here; now it's
59139         done via getgroups.m4's wrapper function.
59140         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
59141         rather than just in sh-util/configure.in, so that the
59142         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
59143         same.
59144         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
59145         AC_FUNC_GETLOADAVG where to find getloadavg.c.
59146         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
59147         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
59148         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
59149         Remove code that is now done by the newly-required macros.
59150         Append $(EXEEXT) to DF_PROG.
59151         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
59152         Do not invoke or require the following here,
59153         since prereq.m4 or some gnulib .m4 now does this for us:
59154         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
59155         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
59156         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
59157         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
59158         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
59159         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
59160         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
59161         AC_FUNC_OBSTACK.
59162         Do not replace the following functions, as this is now the job
59163         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
59164         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
59165         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
59166         atexit getpass, strdup, getpagesize.
59167         Replace 'raise'.
59168         Do not check for the following functions, as this is now the job
59169         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
59170         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
59171         setregid.
59172         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
59173         Check for sys/sysctl.h.
59174         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
59175         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
59176         of checking for ssize_t ourselves.
59177
59178         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
59179         Require every macro that gnulib/modules/* suggests for us.
59180         (jm_PREREQ_ADDEXT): New macro.
59181         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
59182         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
59183
59184         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
59185         (gl_PHYSMEM): Use it.
59186         Also check for `table' function.
59187         Check for new headers and functions.
59188         Add check for sys/sysmp.h.
59189         With suggestions from Kaveh Ghazi.
59190         Ignore headers that are present but cannot be compiled.  This
59191         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
59192         C 5.4.
59193
59194 2003-08-15  Paul Eggert  <eggert@twinsun.com>
59195
59196         Document merge from coreutils.
59197         * modules/userspec: Depend on posixver.
59198         * modules/strftime: Depend on tzset.
59199
59200 2003-08-15  Paul Eggert  <eggert@twinsun.com>
59201
59202         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
59203         rather than tab, after '#' in shell-script copyright notices.
59204         Suggested by Bruno Haible.
59205
59206 2003-08-15  Paul Eggert  <eggert@twinsun.com>
59207
59208         * config/srclist-update: Use three spaces, rather than tab, after '#'
59209         in shell-script copyright notices.  Suggested by Bruno Haible.
59210         Remove unnecessary parenthesization in regular expression.
59211
59212 2003-08-15  Jim Meyering  <jim@meyering.net>
59213
59214         Merge from coreutils.
59215         * lib/xgethostname.c: Include <stdlib.h>.
59216         (xghostname): Don't exit for anything other than memory-related
59217         failure; just return NULL.
59218         * lib/userspec.c: Include "posixver.h".
59219         (parse_user_spec): Accept `.' as a separator only
59220         in pre-POSIX-200112 mode.
59221         * lib/strtoimax.c: Use #elif rather than #else #if.
59222         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
59223         Remove function, now that we can rely on a working tzset function.
59224         [!_LIBC]: Ensure that the required autoconf test has been run.
59225         [!defined _NL_CURRENT && HAVE_STRFTIME]:
59226         Use underlying_strftime for %r.
59227         * lib/sha.c: Merge in some clean-up and optimization changes from
59228         glibc.
59229         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
59230         Ensure that it is a multiple of 64.
59231         Rearrange loop exit tests so as to avoid performing an
59232         additional fread after encountering an error or EOF.
59233         * lib/realloc.c: Update copyright date.
59234
59235 2003-08-15  Jim Meyering  <jim@meyering.net>
59236         and Paul Eggert  <eggert@twinsun.com>
59237
59238         Merge from coreutils.
59239         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
59240         member but strut utmpx does not.  Needed for AIX 4.3.3.
59241         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
59242
59243 2003-08-15  Jim Meyering  <jim@meyering.net>
59244         and Paul Eggert  <eggert@cs.ucla.edu>
59245
59246         Merges from coreutils, etc.
59247         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
59248         Require gl_FUNC_TZSET_CLOBBER.
59249         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
59250         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
59251         members.
59252
59253 2003-08-14  Paul Eggert  <eggert@twinsun.com>
59254
59255         Help the merge from coreutils.
59256         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
59257         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
59258         * m4/tzset.m4: Use it too.
59259
59260 2003-08-14  Paul Eggert  <eggert@twinsun.com>
59261
59262         * modules/tzset: New file.
59263
59264 2003-08-14  Jim Meyering  <jim@meyering.net>
59265
59266         Merges from coreutils.
59267         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
59268         variable names, rather than @FNMATCH_H@.
59269         * modules/alloca: Likewise for $(ALLOCA_H).
59270
59271         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
59272         the three copies of the literal target, `fnmatch.h'.
59273         * modules/alloca (alloca.h): Likewise.
59274
59275 2003-08-14  Jim Meyering  <jim@meyering.net>
59276
59277         Merge from coreutils.
59278         * m4/tzset.m4: New file.
59279         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
59280         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
59281         otherwise, AIX 5.1 systems would end up using the latter.
59282         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
59283         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
59284         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
59285         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
59286
59287 2003-08-14  Jim Meyering  <jim@meyering.net>
59288
59289         Merge from coreutils.
59290         * lib/obstack.h: Whitespace changes.
59291         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
59292         and xcalloc return values.
59293         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
59294         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
59295         hang on OSF/1 5.1 for DIR on both local and remote file systems.
59296         Reported by (and fix confirmed by) Nelson H. F. Beebe.
59297         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
59298         error from mntctl.
59299         Use mntctl's return value to drive the entry-processing loop, since
59300         we can't rely on the value of the vmt_length member in the last
59301         entry.  On some systems doing so could result in exhausting
59302         virtual memory.  Based in part on a patch from Mike Jetzer.
59303
59304 2003-08-14  Jim Meyering  <jim@meyering.net>
59305         and Paul Eggert  <eggert@twinsun.com>
59306
59307         Merges from coreutils, plus other fixes.
59308         * lib/physmem.c: Merge in portability changes from gcc/libiberty
59309         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
59310         for credits and details.  Thanks to Kaveh Ghazi for helping
59311         to keep these files in sync.
59312         (ARRAY_SIZE): Define it.
59313         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
59314         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
59315         (memcasecmp): Don't assume size_t fits in unsigned int.
59316         Remove casts and duplicate code.
59317         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
59318         (memcpy): Remove definition.
59319         Merge in some clean-up and optimization changes from glibc.
59320         [BLOCKSIZE]: Move definition to top of file.
59321         Ensure that it is a multiple of 64.
59322         Rearrange loop exit tests so as to avoid performing an
59323         additional fread after encountering an error or EOF.
59324         * lib/md5.h (md5_uintptr): Define.
59325         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
59326         return to the initial working directory.  Preserve errno
59327         for caller.
59328         * lib/idcache.c: Include "xalloc.h".
59329         (xmalloc, xrealloc): Remove decls.
59330         (getuser): Remove casts no longer required in C89.
59331         * lib/human.c: Include stdio.h, for sprintf.
59332         * lib/group-member.c: Include "xalloc.h".
59333         (xmalloc, xrealloc): Remove decls.
59334         (get_group_info): Remove casts no longer required in C89.
59335         * lib/getusershell.c (readname): Remove casts no longer required in
59336         C89.
59337         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
59338         * lib/getline.c: Whitespace fix, from coreutils.
59339
59340 2003-08-13  Paul Eggert  <eggert@twinsun.com>
59341
59342         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
59343         Check for isascii.
59344
59345         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
59346         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
59347         Undo previous (whitespace-only) change.
59348
59349 2003-08-13  Paul Eggert  <eggert@twinsun.com>
59350
59351         * lib/exclude.c: Include <ctype.h>
59352         (IN_CTYPE_DOMAIN): New macro.
59353         (is_space): New fn.
59354         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
59355         and empty lines.
59356
59357         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
59358         Undo previous (whitespace-only) change.
59359
59360 2003-08-13  Paul Eggert  <eggert@twinsun.com>
59361
59362         * config/srclist-update: Change update back to the old behavior,
59363         leaving whitespace alone.  Use one 'sed' command rather than a
59364         pipeline.
59365         (fixlicense): Now a variable, not a function.
59366         (remove_trailing_blanks): Remove.
59367         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
59368         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
59369         Undo previous (whitespace-only) change.
59370
59371 2003-08-12  Paul Eggert  <eggert@twinsun.com>
59372
59373         Merge from coreutils.
59374         * modules/euidaccess: Add lib_SOURCES, include for new
59375         file euidaccess.h
59376
59377 2003-08-12  Paul Eggert  <eggert@twinsun.com>
59378
59379         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
59380         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
59381         Normalize leading white space and remove trailing white space.
59382
59383         Merge from coreutils
59384         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
59385
59386         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
59387         0.12.1.  These files are now being upgraded automatically by
59388         ../config/srclist-update.
59389
59390 2003-08-12  Paul Eggert  <eggert@twinsun.com>
59391
59392         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
59393         Normalize leading white space and remove trailing white space.
59394         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
59395         notice, as per ../config/srclist-update.
59396
59397         Merge from coreutils.
59398         * lib/euidaccess.h: New file.
59399         * lib/euidaccess.c: Include it.
59400         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
59401         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
59402         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
59403
59404 2003-08-12  Paul Eggert  <eggert@twinsun.com>
59405
59406         * config/srclist-update: Add copyright notice.
59407         (remove_id_lines, remove_trailing_blanks): New constants.
59408         (fixfile): Use them to normalize spacing a bit in copied files.
59409         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
59410         Normalize leading white space and remove trailing white space.
59411
59412         * config/texinfo.tex: Sync with texinfo.
59413
59414         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
59415         strtoul.c from libc, to merge coreutils whitespace changes.
59416
59417         * config/srclist.txt: Get the following m4 files from gettext:
59418         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
59419         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
59420         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
59421         wint_t.m4.
59422
59423 2003-08-12  Karl Berry  <karl@gnu.org>
59424
59425         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
59426         been made.
59427
59428 2003-08-11  Paul Eggert  <eggert@twinsun.com>
59429
59430         * modules/gnu-source, m4/gnu-source.m4:
59431         Remove; we're assuming Autoconf 2.54 or later now.
59432         Suggested by Bruno Haible.
59433         * MODULES.html.sh (func_all_modules): Remove gnu-source.
59434
59435 2003-08-11  Bruno Haible  <bruno@clisp.org>
59436
59437         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
59438
59439 2003-08-11  Bruno Haible  <bruno@clisp.org>
59440
59441         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
59442         (vasnprintf): Use it instead of wcslen.
59443
59444 2003-08-11  Bruno Haible  <bruno@clisp.org>
59445
59446         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
59447         value to ensure that _Bool promotes to int. Use #define for _Bool when
59448         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
59449
59450 2003-08-10  Karl Berry  <karl@gnu.org>
59451
59452         * lib/regex.h: update from libc (whitespace fix).
59453
59454 2003-08-09  Paul Eggert  <eggert@twinsun.com>
59455
59456         Merge some files from coreutils.  These changes were
59457         originally made by Jim Meyering.
59458         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
59459         many older Unixes require this.
59460         * lib/alloca.c (alloca): Remove cast to argument of free;
59461         no longer needed in C89.
59462         * lib/alloca_.h, regex.h: Fix white space to match
59463         what GNU indent does.
59464
59465 2003-08-09  Paul Eggert  <eggert@twinsun.com>
59466
59467         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
59468         apparently Emacs's Unicode mode got confused before my 2003-08-05
59469         checkin.
59470
59471 2003-08-08  Paul Eggert  <eggert@twinsun.com>
59472
59473         * m4/extensions.m4: New file.
59474         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
59475         Require gl_USE_SYSTEM_EXTENSIONS.
59476         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
59477         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
59478
59479 2003-08-08  Paul Eggert  <eggert@twinsun.com>
59480
59481         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
59482         * modules/extensions, modules/gnu-source: New files.
59483         * modules/timespec, modules/unlocked-io: Depend on extensions.
59484
59485 2003-08-07  Paul Eggert  <eggert@twinsun.com>
59486
59487         * modules/restrict: New file.
59488         * MODULES.html.sh (func_all_modules): Add restrict.
59489         * modules/regex: Depend on restrict.
59490
59491 2003-08-07  Paul Eggert  <eggert@twinsun.com>
59492
59493         * m4/restrict.m4: New file.
59494         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
59495
59496 2003-08-07  Bruno Haible  <bruno@clisp.org>
59497
59498         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
59499         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
59500
59501 2003-08-07  Bruno Haible  <bruno@clisp.org>
59502
59503         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
59504         makes the module 'getndelim2' compatible with the module 'getline'.
59505
59506 2003-08-05  Paul Eggert  <eggert@twinsun.com>
59507
59508         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
59509         byte with "\201" to avoid glitches when editing that source file
59510         with multi-gnome-terminal.
59511
59512 2003-08-05  Paul Eggert  <eggert@twinsun.com>
59513
59514         * lib/bumpalloc.h: Remove.
59515
59516 2003-08-05  Paul Eggert  <eggert@twinsun.com>
59517
59518         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
59519         * modules/bumpalloc: Remove.
59520
59521 2003-08-04  Paul Eggert  <eggert@twinsun.com>
59522
59523         * lib/getloadavg.c: Change copyright notice and spacing to conform to
59524         GNU coding style.
59525
59526         Merge from coreutils.
59527         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
59528         1. From glibc.
59529         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
59530         from Karl Berry, implemented by Jim Meyering.
59531         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
59532         from Dmitry V. Levin.
59533         Remove anachronistic cast of xrealloc.
59534         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
59535         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
59536         type. Otherwise, it wouldn't compile with at least /bin/cc on
59537         ymp-cray-unicos9.0.2.X.
59538         Combine two mostly-identical uses of alloca into one.
59539         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
59540
59541 2003-08-04  Dave Love  <d.love@dl.ac.uk>
59542
59543         [From Emacs.]
59544
59545         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
59546         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
59547         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
59548         obsolete NLIST_NAME_UNION.
59549         [__GNU__]: Undef BSD and FSCALE.
59550         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
59551
59552 2003-08-03  Paul Eggert  <eggert@twinsun.com>
59553
59554         * lib/stdbool_.h (_Bool): Make it signed char, instead of
59555         an enum type, so that it's guaranteed to promote to int.  See:
59556         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
59557
59558 2003-08-03  Karl Berry  <karl@gnu.org>
59559
59560         * config/depcomp: update from automake.
59561
59562 2003-07-31  Paul Eggert  <eggert@twinsun.com>
59563
59564         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
59565         (strerror): Don't assume that a printable int fits in 14 bytes.
59566
59567 2003-07-31  Bruno Haible  <bruno@clisp.org>
59568
59569         * modules/getpass-gnu: New file.
59570         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
59571
59572 2003-07-31  Bruno Haible  <bruno@clisp.org>
59573
59574         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
59575
59576 2003-07-24  Karl Berry  <karl@gnu.org>
59577
59578         * config/missing: update from automake.
59579
59580 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
59581             Bruno Haible  <bruno@clisp.org>
59582
59583         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
59584         * lib/getline.c (getline, getdelim): Likewise.
59585         Remove _GNU_SOURCE define; now it's defined in config.h through
59586         m4/getline.m4.
59587
59588 2003-07-23  Karl Berry  <karl@gnu.org>
59589
59590         * config/config.sub: update from prep.
59591
59592 2003-07-22  Paul Eggert  <eggert@twinsun.com>
59593
59594         * modules/xalloc (Depends-on): Add exitfail.
59595         * modules/xmemcoll: Likewise.
59596
59597 2003-07-22  Paul Eggert  <eggert@twinsun.com>
59598
59599         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
59600         over-parenthesization in macros.
59601
59602         Sync with coreutils.
59603
59604         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
59605         required by C99.
59606
59607         Use `exit_failure' for xalloc and xmemcoll instead of their own
59608         private exit-failure variables.
59609         * lib/xalloc.h (xalloc_exit_failure): Remove.
59610         * lib/xmalloc.c: Likewise.  Include exitfail.h.
59611         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
59612         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
59613         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
59614         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
59615
59616 2003-07-20  Jim Meyering  <jim@meyering.net>
59617
59618         * modules/closeout (Depends-on): Add exitfail.
59619         Suggestion from Bruno Haible.
59620
59621 2003-07-19  Karl Berry  <karl@gnu.org>
59622
59623         * config/config.sub: update from prep.
59624
59625 2003-07-18  Paul Eggert  <eggert@twinsun.com>
59626
59627         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
59628         Remove.
59629         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
59630         to test that it can stand by itself.  Include "exitfail.h".
59631         Clients should set exit_failure instead.
59632         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
59633
59634 2003-07-18  Bruno Haible  <bruno@clisp.org>
59635
59636         * modules/getndelim2: New file.
59637         * modules/getline: Share files with module getndelim2.
59638         * modules/getnline: Depend on getndelim2 instead of sharing files with
59639         it. Add getnline.c to lib_SOURCES.
59640         * MODULES.html.sh (func_all_modules): Add getndelim2.
59641
59642 2003-07-18  Bruno Haible  <bruno@clisp.org>
59643
59644         * m4/getndelim2.m4: New file.
59645         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
59646         invoke gl_PREREQ_GETNDELIM2.
59647         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
59648         gl_PREREQ_GETNDELIM2.
59649         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
59650         gl_GETNDELIM2.
59651
59652 2003-07-18  Bruno Haible  <bruno@clisp.org>
59653
59654         * lib/getndelim2.h: New file.
59655         * lib/getndelim2.c: Make into a module of its own. Include config.h,
59656         getndelim2.h.
59657         (getndelim2): Make non-static. Change return type to ssize_t.
59658         * lib/getline.h: Change argument names.
59659         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
59660         * lib/getnline.c: Include getndelim2.h.
59661
59662 2003-07-18  Andreas Schwab  <schwab@suse.de>
59663
59664         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
59665
59666 2003-07-17  Karl Berry  <karl@gnu.org>
59667
59668         * config/config.sub: update from prep.
59669
59670 2003-07-17  Bruno Haible  <bruno@clisp.org>
59671
59672         * modules/getnline: New file.
59673         * modules/getline: Add lib/getndelim2.c to source file list.
59674         * MODULES.html.sh (func_all_modules): Add getnline.
59675
59676 2003-07-17  Bruno Haible  <bruno@clisp.org>
59677
59678         * m4/getnline.m4: New file.
59679
59680 2003-07-17  Bruno Haible  <bruno@clisp.org>
59681
59682         * m4/Makefile.am.in: Remove file.
59683         * m4/Makefile.am: Remove file.
59684         * m4/Makefile.in: Remove file.
59685
59686 2003-07-17  Bruno Haible  <bruno@clisp.org>
59687
59688         * lib/getnline.h: New file.
59689         * lib/getnline.c: New file.
59690         * lib/getndelim2.c: New file, extracted from getline.c.
59691         (getndelim2): Renamed from getdelim2, with added nmax argument.
59692         * lib/getline.c: Include getndelim2.c.
59693         (getdelim2): Moved out to getndelim2.c.
59694         (getline, getdelim): Update.
59695
59696 2003-07-17  Bruno Haible  <bruno@clisp.org>
59697
59698         * lib/Makefile.am: Remove file.
59699         * lib/Makefile.in: Remove file.
59700
59701 2003-07-17  Bruno Haible  <bruno@clisp.org>
59702
59703         * configure.in: Remove file.
59704         * Makefile.in: Remove file.
59705
59706 2003-07-17  Bruno Haible  <bruno@clisp.org>
59707
59708         * MODULES.html.sh: Put the </BODY> right before </HTML>.
59709
59710 2003-07-16  Karl Berry  <karl@gnu.org>
59711
59712         * config/srclist-update: was running fixlicense twice, which caused
59713                 texinfo.tex to be nullified for some reason.  Simplify,
59714                 $gplsrc is no longer needed as far as I can see?
59715
59716 2003-07-16  Jim Meyering  <jim@meyering.net>
59717
59718         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
59719
59720 2003-07-15  Paul Eggert  <eggert@twinsun.com>
59721
59722         * config/srclist.txt: Get the following files from gettext-runtime/intl
59723         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
59724         ref-del.sin.  From Bruno Haible.
59725         * config/srclist-update (fixfile): Change grep pattern again, since the
59726         previous fix didn't work (there was another trailing $).  Use
59727         '[$]' to escape the $s.
59728
59729 2003-07-15  Karl Berry  <karl@gnu.org>
59730
59731         * lib/vasnprintf.c: update from gettext.
59732
59733 2003-07-15  Karl Berry  <karl@gnu.org>
59734
59735         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
59736         gets expanded when surrounded by '$'.
59737
59738 2003-07-15  Jim Meyering  <jim@meyering.net>
59739
59740         * modules/save-cwd: Don't depend on error.  From Derek Price.
59741
59742 2003-07-15  Jim Meyering  <jim@meyering.net>
59743
59744         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
59745
59746 2003-07-14  Simon Josefsson  <jas@extundo.com>
59747
59748         * modules/mempcpy: New file.
59749         * MODULES.html.sh (func_all_modules): Add mempcpy.
59750
59751 2003-07-14  Simon Josefsson  <jas@extundo.com>
59752
59753         * m4/mempcpy.m4: New file.
59754
59755 2003-07-14  Simon Josefsson  <jas@extundo.com>
59756
59757         * lib/mempcpy.h: New file.
59758         * lib/mempcpy.c: New file.
59759
59760 2003-07-14  Paul Eggert  <eggert@twinsun.com>
59761
59762         * modules/getdate, modules/posixtm: Depend on mktime.
59763
59764 2003-07-14  Paul Eggert  <eggert@twinsun.com>
59765
59766         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
59767         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
59768         unicodeio.c, unicodeio.h, unlocked-io.h:
59769         Switch from LGPL to GPL.
59770
59771 2003-07-14  Paul Eggert  <eggert@twinsun.com>
59772
59773         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
59774         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
59775         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
59776         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
59777         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
59778         updated automatically by ../config/srclist-update.  This changes
59779         their license from LPGL to GPL.
59780
59781 2003-07-14  Paul Eggert  <eggert@twinsun.com>
59782
59783         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
59784         assumed to refer to the root of the most recent stable gettext version.
59785         * config/srclistvars.sh: Add defaults for eggert.
59786         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
59787         Match "This program" as well as "The program".  This is needed
59788         for gettext.
59789
59790 2003-07-14  Jim Meyering  <jim@meyering.net>
59791
59792         Don't emit diagnostics.  Let callers do that.
59793         * lib/save-cwd.c: Don't include "error.h".
59794         (save_cwd): Don't call error.  Ensure that errno is valid
59795         when returning nonzero.
59796
59797         * lib/save-cwd.h (restore_cwd): Update prototype.
59798         * lib/save-cwd.c (restore_cwd): Remove two parameters.
59799         Simplify.  Don't call error upon failure.  Let callers do that.
59800         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
59801         when auditing is enabled.  But don't bother updating the #if.
59802
59803 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
59804
59805         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
59806         it breaks C++ compilation.
59807         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
59808
59809 2003-07-10  Simon Josefsson  <jas@extundo.com>
59810
59811         * modules/strchrnul (Makefile.am): Add strchrnul.h.
59812
59813 2003-07-10  Jim Meyering  <jim@meyering.net>
59814
59815         * m4/clock_time.m4: Remove trailing blank.
59816         * m4/intmax_t.m4: Likewise.
59817
59818 2003-07-10  Jim Meyering  <jim@meyering.net>
59819
59820         * lib/vasnprintf.c: Remove trailing blanks.
59821         Make cpp indentation consistent.
59822
59823 2003-07-09  Paul Eggert  <eggert@twinsun.com>
59824
59825         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
59826         posixver.c, strftime.c, strnlen.c, strverscmp.c:
59827         Switch from LGPL to GPL.
59828
59829 2003-07-09  Paul Eggert  <eggert@twinsun.com>
59830
59831         * config/srclist.txt: Sort sublists.  Add
59832         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
59833         that differ from gnulib for one reason or another; we'd like this list
59834         to be smaller but for now let's document what we have.
59835
59836 2003-07-08  Paul Eggert  <eggert@twinsun.com>
59837
59838         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
59839         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
59840         and sweeter "eval x=$x".
59841         * config/srclist.txt: Get lib/argp* from glibc.
59842
59843 2003-07-07  Paul Eggert  <eggert@twinsun.com>
59844
59845         * lib/mktime.c: Fix some boundary cases and remove need for floating
59846         point.
59847
59848         Issue a compile-time diagnostic if time_t is floating point, or if
59849         two's complement arithmetic is not in effect, or if arithmetic
59850         right shift does not propagate the sign.  These assumptions were
59851         all in the original code but they weren't checked.
59852
59853         (TIME_T_MIDPOINT, verify): New macros.
59854         (__isleap): Remove; it has integer overflow problems.
59855         (leapyear): New function, without those problems.
59856         (ydhms_tm_diff): Remove; splitting into two parts.
59857         (ydhms_diff): New function, containing the arithmetic part of
59858         the old ydhms_tm_diff function.  Issue a compile-time
59859         diagnostic if we are not using C99 integer division.
59860         Avoid casts when possible.
59861         (guess_time_tm): New function, containing the checking part of
59862         the old ydhms_tm_diff function.  Return the new value, rather than
59863         the difference between it and the old.  Accept a new argument T
59864         so that *T specifies the old value.  Check for overflow in the result.
59865
59866         (__mktime_internal): Use a time_t offset, not a long int offset.
59867         This undoes the 2003-06-04 change, which is no longer needed now
59868         that we have better overflow checking.
59869         (localtime_offset): Likewise.
59870
59871         (__mktime_internal): Avoid harmful overflow on hosts where time_t
59872         and long are 64-bit but int is only 32-bit.
59873         (ydhms_diff): Use long int to store year1 and yday1.
59874         Issue a compile-time diagnostic if long int is not wide enough.
59875
59876         (__mktime_internal): Use long int to store adjusted year and yday.
59877         Use plain C rather than preprocessor commands, if that doesn't
59878         affect efficiency.
59879         Check for overflow (and try to repair) after each probe
59880         rather than checking only at the very end.  This avoids some bugs
59881         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
59882         does not equal GMT offset at maximum time).
59883         Use integer to check for overflow rather than floating point; this
59884         is more portable to non-IEEE hosts, and is a tad faster.
59885         When we detect that we are oscillating between two values,
59886         don't check whether tm_isdst has the requested value, since
59887         we already know the answer.  When tm_isdst has the wrong value,
59888         use a different heuristic to find the right one, based on the
59889         extreme values actually observed in practice in tz2003a,
59890         rather than the (overly optimistic) "previous 3 calendar quarters".
59891
59892         (not_equal_tm, print_tm, check_result): Use "const T" rather than
59893         "T const" to accommodate glibc style.
59894         (check_result): Use less-confusing report format.  "long" -> "long int.
59895         (main): Likewise.
59896         Don't loop if the iteration overflows time_t.
59897         Allow a negative step in the iteration.
59898
59899 2003-07-06  Karl Berry  <karl@gnu.org>
59900
59901         * config/depcomp: update from automake.
59902         * config/config.sub: update from prep.
59903
59904 2003-07-03  Karl Berry  <karl@gnu.org>
59905
59906         * config/config.guess: update from prep.
59907
59908 2003-07-01  Paul Eggert  <eggert@twinsun.com>
59909
59910         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
59911         xreadlink.c now includes it unconditionally.
59912
59913 2003-07-01  Paul Eggert  <eggert@twinsun.com>
59914
59915         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
59916         having it depend on HAVE_SYS_TYPES_H.
59917
59918 2003-07-01  Bruno Haible  <bruno@clisp.org>
59919
59920         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
59921         <sys/types.h> should be sufficient.
59922         Reported by Paul Eggert.
59923
59924 2003-06-26  Karl Berry  <karl@gnu.org>
59925
59926         * config/depcomp: update from automake.
59927
59928 2003-06-26  Bruno Haible  <bruno@clisp.org>
59929
59930         * modules/human: Depend on module stdbool.
59931
59932 2003-06-25  Bruno Haible  <bruno@clisp.org>
59933
59934         * modules/readlink: New file.
59935         * modules/xreadlink: Depend on it.
59936         * MODULES.html.sh (func_all_modules): Add readlink.
59937
59938 2003-06-25  Bruno Haible  <bruno@clisp.org>
59939
59940         * m4/readlink.m4: New file.
59941
59942 2003-06-25  Bruno Haible  <bruno@clisp.org>
59943
59944         * lib/readlink.c: New file.
59945
59946 2003-06-22  Karl Berry  <karl@gnu.org>
59947
59948         * config/srclist.txt: update mkinstalldirs from automake.
59949         * config/mkinstalldirs: update.
59950
59951 2003-06-22  Bruno Haible  <bruno@clisp.org>
59952
59953         Portability to mingw32.
59954         * m4/ssize_t.m4: New file, from GNU gettext.
59955         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
59956         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
59957
59958 2003-06-22  Bruno Haible  <bruno@clisp.org>
59959
59960         * modules/safe-read: Add m4/ssize_t.m4.
59961         * modules/xreadlink: Add m4/ssize_t.m4.
59962
59963 2003-06-20  Bruno Haible  <bruno@clisp.org>
59964
59965         Assume C89, so PARAMS isn't needed.
59966         * lib/unicodeio.h (PARAMS): Remove.
59967         * lib/unicodeio.c: Don't use PARAMS.
59968
59969 2003-06-18  Karl Berry  <karl@gnu.org>
59970
59971         * config/config.{guess,sub}: update from prep.
59972
59973 2003-06-18  Jim Meyering  <jim@meyering.net>
59974
59975         Merge changes from coreutils.
59976         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
59977         Remove explicit declarations of xmalloc and realloc.
59978         Include xalloc.h.
59979         (read_utmp): Remove anachronistic cast of xmalloc.
59980
59981 2003-06-17  Paul Eggert  <eggert@twinsun.com>
59982
59983         Assume C89, so PARAMS isn't needed.
59984         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
59985         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
59986         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
59987         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
59988         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
59989         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
59990         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
59991         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
59992         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
59993         lib/xstrtod.h, lib/xstrtol.h: Likewise.
59994         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
59995         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
59996         no longer needed. Anyway, config.h should always be included before any
59997         other file.
59998
59999 2003-06-11  Simon Josefsson  <jas@extundo.com>
60000
60001         * modules/sysexits: New file.
60002         * MODULES.html.sh (func_all_modules): Add sysexits.
60003
60004 2003-06-11  Simon Josefsson  <jas@extundo.com>
60005
60006         * lib/sysexit_.h: New file.
60007
60008 2003-06-11  Derek Price  <derek@ximbiot.com>
60009
60010         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
60011         necessary.
60012
60013 2003-06-11  Bruno Haible  <bruno@clisp.org>
60014
60015         * m4/sysexits.m4: New file.
60016
60017 2003-06-10  Simon Josefsson  <jas@extundo.com>
60018
60019         * lib/argp.h: New file, from glibc.
60020         * lib/argp-ba.c: New file, from glibc.
60021         * lib/argp-eexst.c: New file, from glibc.
60022         * lib/argp-fmtstream.c: New file, from glibc.
60023         * lib/argp-fmtstream.h: New file, from glibc.
60024         * lib/argp-fs-xinl.c: New file, from glibc.
60025         * lib/argp-help.c: New file, from glibc.
60026         * lib/argp-namefrob.h: New file, from glibc.
60027         * lib/argp-parse.c: New file, from glibc.
60028         * lib/argp-pv.c: New file, from glibc.
60029         * lib/argp-pvh.c: New file, from glibc.
60030         * lib/argp-xinl.c: New file, from glibc.
60031
60032 2003-06-10  Simon Josefsson  <jas@extundo.com>
60033
60034         * modules/strchrnul: New file.
60035
60036 2003-06-10  Simon Josefsson  <jas@extundo.com>
60037
60038         * modules/argp: New file.
60039
60040 2003-06-10  Simon Josefsson  <jas@extundo.com>
60041
60042         * m4/strchrnul.m4: New file.
60043
60044 2003-06-10  Simon Josefsson  <jas@extundo.com>
60045
60046         * lib/strchrnul.h: New file.
60047         * lib/strchrnul.c: New file.
60048
60049 2003-06-10  Bruno Haible  <bruno@clisp.org>
60050
60051         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
60052
60053 2003-06-07  Karl Berry  <karl@gnu.org>
60054
60055         * config/config.{guess,sub}: update from prep.
60056
60057 2003-06-07  Jim Meyering  <jim@meyering.net>
60058
60059         * modules/strtod: Use $(...) notation, not @...@ for
60060         AC_REPLACE'd variables.
60061         * modules/localcharset: Likewise.
60062
60063 2003-06-07  Jim Meyering  <jim@meyering.net>
60064
60065         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
60066         in place of my name in the copyright comment.
60067         Remove definition and uses of __P.
60068
60069         From coreutils.
60070         * lib/stat.c: Don't declare xmalloc explicitly.
60071         Instead, include "xalloc.h".
60072         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
60073         xrealloc, and xcalloc return values.
60074         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
60075         Improve comment.
60076         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
60077
60078 2003-06-07  Bruno Haible  <bruno@clisp.org>
60079
60080         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
60081         avoid AC_CONFIG_LINKS.
60082         * modules/fnmatch (Makefile.am): Use explicit creation rule for
60083         fnmatch.h, to avoid AC_CONFIG_LINKS.
60084         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
60085
60086 2003-06-07  Bruno Haible  <bruno@clisp.org>
60087
60088         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
60089         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
60090         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
60091         directory.
60092         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
60093         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
60094         directory.
60095
60096 2003-06-06  Jim Meyering  <jim@meyering.net>
60097
60098         Merge from coreutils.
60099         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
60100         Consolidate declarations and initializations of *_base* locals.
60101
60102         Merge from coreutils.
60103         This avoids a core dump on systems without GNU putenv,
60104         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
60105         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
60106         (unsetenv): New static function, from GNU libc.
60107         (rpl_putenv): Use it.
60108
60109         * lib/modechange.c: Remove trailing blanks.
60110
60111         Merge from coreutils.
60112         * lib/fsusage.c: Remove declaration of statfs.
60113         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
60114
60115         * lib/posixtm.c: Include <stdbool.h> unconditionally.
60116
60117 2003-06-06  Jim Meyering  <jim@meyering.net>
60118
60119         * lib/stdbool_.h: Renamed from stdbool.h.in.
60120
60121 2003-06-06  Jim Meyering  <jim@meyering.net>
60122             Bruno Haible  <bruno@clisp.org>
60123
60124         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
60125         Adjust Makefile.am snippet not to redirect directly to target.
60126         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
60127
60128 2003-06-05  Paul Eggert  <eggert@twinsun.com>
60129
60130         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
60131         mismatch, look in future quarters as well as past.  This fixes a
60132         bug when processing fall-backwards gaps immediately after a long
60133         period of daylight-saving time.
60134
60135         * lib/mktime.c: Assume freestanding C89 or better.
60136         (HAVE_LIMITS_H): Remove.  Assume it's 1.
60137         (__P): Remove; not used.
60138         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
60139         (mktime, not_equal_tm, print_tm, check_result,
60140         main): Use prototypes.  Use const * where appropriate.
60141         (main): Fix typo in testing code that uncovered by above changes.
60142         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
60143
60144 2003-06-04  Paul Eggert  <eggert@twinsun.com>
60145
60146         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
60147         locale.h, localeconv.  This merges changes from coreutils.
60148
60149         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
60150         It can be removed after the next Autoconf is released.
60151         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
60152         needed.
60153
60154 2003-06-04  Paul Eggert  <eggert@twinsun.com>
60155
60156         * lib/mktime.c: Fix Debian bug 177940
60157         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
60158         (localtime_offset): Now long int, not time_t, because we want it
60159         to be guaranteed to be signed.  All uses changed.
60160         (__mktime_internal): If overflow would occur when adding offset,
60161         don't add it.
60162
60163         Merge 'human' changes from coreutils.  Rewrite to support
60164         locale-specific notations like thousands separators.
60165         * lib/human.c: Simplify authorship notice.
60166         Include human.h immediately after config.h.
60167         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
60168         <limits.h>: Do not include, since human.h does.
60169         (SIZE_MAX, UINTMAX_MAX): New macros.
60170         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
60171         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
60172         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
60173         (power_letter): Renamed from suffixes.
60174         (generate_suffix_backwards): Remove.
60175         (adjust_value): Now takes int style (because of human.h changes)
60176         and long double value (for greater precision on some platforms).
60177         (group_number): New function.
60178         (human_readable): Use it.  Use integer options, not enum.
60179         Put the options before the sizes in the arg list.
60180         Support all the new options.
60181         The old human_readable function has been removed;
60182         use inttostr.h instead.
60183         (human_readable, default_block_size, humblock):
60184         Use uintmax_t, not int, for block sizes.
60185         (human_readable_inexact, block_size_types): Remove.
60186         (block_size_opts): New constant.
60187         (human_options): Renamed from human_block_size, with new signature
60188         that allows block sizes up to UINTMAX_MAX.  All callers changed.
60189         * lib/human.h: Add copyright and authorship notice.
60190         Include <limits.h> and <stdbool.h> unconditionally.
60191         (PARAMS): Remove.  All uses removed.
60192         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
60193         (enum human_inexact_style): Remove tag; now a nameless enum.
60194         (human_floor, human_ceiling, human_round_to_even): Now have
60195         values 2, 0, 1 rather than -1, 1, 0.
60196         (human_group_digits, human_suppress_point_zero, human_autoscale,
60197         human_base_1024, human_SI, human_B): New constants.
60198         (human_readable_inexact, human_block_size): Remove.
60199         (human_readable): Size args are now uintmax_t, not int.
60200         (human_options): New decl.
60201
60202         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
60203         unnecessary now that we assume C89 or better.  This change
60204         imported from coreutils.
60205
60206         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
60207         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
60208         in the 2003-05-30 sync from glibc.
60209
60210         .h files should stand alone, but we shouldn't include <sys/types.h>
60211         if we can get away with just <stddef.h>.
60212
60213         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
60214         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
60215         rather than <sys/types.h>, as we merely need size_t.
60216         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
60217         to get size_t.
60218         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
60219         Include <stdio.h>, to get FILE.
60220         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
60221         memcasecmp.h has included <stddef.h> and all we need is size_t.
60222         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
60223         our interface, instead of including <sys/types.h>
60224
60225 2003-06-04  Paul Eggert  <eggert@twinsun.com>
60226
60227         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
60228         now, as glibc mktime is buggy on non-glibc systems.
60229
60230 2003-06-03  Karl Berry  <karl@gnu.org>
60231
60232         * config/config.sub: update from prep.
60233
60234 2003-06-02  Paul Eggert  <eggert@twinsun.com>
60235
60236         [from coreutils]
60237         Fix some minor time-related bugs with POSIX time arguments.
60238         Some valid time stamps were being rejected (notably -1, and
60239         time stamps before 1900 on 64-bit hosts).  And some invalid
60240         time stamps were being accepted, e.g. September 31.
60241
60242         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
60243         that we can return (time_t) -1 successfully.
60244         * lib/posixtm.c: Likewise.
60245         [HAVE_STDBOOL_H]: Include <stdbool.h>.
60246         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
60247         (t): Remove static var.
60248         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
60249         of static var.  All uses changed.
60250         (year): Do not reject years before 1900; they can occur with
60251         64-bit time_t.
60252         (posix_time_parse): Do not check for out-of-range components;
60253         that is now the caller's responsibility, since our checks were
60254         only approximations.
60255         (posixtime): Use mktime to check for out-of-range components,
60256         since it knows them exactly.
60257         If mktime returns (time_t) -1, check whether an error actually occurred
60258         by invoking localtime on -1.
60259         (main) [TEST_POSIXTIME]: Check for input data errors, and report
60260         posixtime failures better.
60261         Improve the test data (in comments only).
60262
60263 2003-06-02  Karl Berry  <karl@gnu.org>
60264
60265         * config/mkinstalldirs (version): new variable.
60266         (--version): new option.
60267         (usage): improve message.
60268
60269 2003-05-30  Karl Berry  <karl@gnu.org>
60270
60271         * lib/mktime.c: update from libc.
60272
60273 2003-05-30  Bruno Haible  <bruno@clisp.org>
60274
60275         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
60276         * config/config.rpath: Upgrade to gettext-0.12.1.
60277
60278 2003-05-30  Bruno Haible  <bruno@clisp.org>
60279
60280         * m4/gettext.m4: Upgrade to gettext-0.12.1.
60281         * m4/nls.m4: New file, from gettext-0.12.1.
60282         * m4/po.m4: New file, from gettext-0.12.1.
60283         * m4/progtest.m4: Upgrade to gettext-0.12.1.
60284
60285 2003-05-30  Bruno Haible  <bruno@clisp.org>
60286
60287         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
60288         * lib/localcharset.h: Likewise.
60289         * lib/localcharset.c: Likewise.
60290
60291 2003-05-29  Karl Berry  <karl@gnu.org>
60292
60293         * config/config.rpath: update from gettext.
60294
60295 2003-05-28  Paul Eggert  <eggert@twinsun.com>
60296
60297         Assume the headers required for C89 freestanding compilers.
60298         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
60299         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
60300         * m4/human.m4 (gl_HUMAN): Likewise.
60301         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
60302         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
60303         * m4/userspec.m4 (gl_USERSPEC): Likewise.
60304         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
60305         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
60306         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
60307
60308 2003-05-28  Paul Eggert  <eggert@twinsun.com>
60309
60310         Assume the headers required for C89 freestanding compilers.
60311         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
60312         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
60313         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
60314         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
60315         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
60316         define, since <limits.h> is guaranteed to do that.
60317         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
60318         * lib/exclude.c: Include <stdbool.h> unconditionally.
60319         * lib/tempname.c: Include <stddef.h> unconditionally.
60320         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
60321         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
60322         <stddef.h> does that.
60323         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
60324         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
60325         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
60326         needed.
60327         * lib/xstrtol.c: Likewise.
60328         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
60329         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
60330
60331         * lib/addext.c (addext): Use assignment rather than cast, to avoid
60332         warnings on some platforms.
60333
60334         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
60335         arbitrarily.
60336
60337 2003-05-26  Jim Meyering  <jim@meyering.net>
60338
60339         Merge in a change from coreutils:
60340         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
60341         that is guaranteed to be `no'.  Use `no_such_member' to indicate
60342         that condition, rather than `-1' which is slightly misleading.
60343         Change the name of the cache variable to have the gl_ prefix.
60344         Prompted by a patch from Richard Dawe for DJGPP.
60345
60346 2003-05-24  Karl Berry  <karl@gnu.org>
60347
60348         * config/config.guess: update from prep.
60349
60350 2003-05-22  Karl Berry  <karl@gnu.org>
60351
60352         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
60353
60354 2003-05-20  Karl Berry  <karl@gnu.org>
60355
60356         * config/config.guess: update from prep.
60357
60358 2003-05-18  Karl Berry  <karl@gnu.org>
60359
60360         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
60361         might actually be set by the user.
60362
60363         * config/depcomp, install-sh, mdate-sh: update from automake.
60364
60365 2003-05-17  Bruno Haible  <bruno@clisp.org>
60366
60367         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
60368         invalid expansion for AC_EGREP_CPP.
60369         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
60370         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
60371         Suggested by Akim Demaille <akim@epita.fr> in
60372         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
60373
60374 2003-05-12  Jim Meyering  <jim@meyering.net>
60375
60376         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
60377         the space-padded-by-default conversion specifiers, %e, %k, %l.
60378
60379 2003-05-12  Bruno Haible  <bruno@clisp.org>
60380
60381         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
60382         the string is longer than 4 KB.
60383
60384 2003-05-11  Karl Berry  <karl@gnu.org>
60385
60386         * config/config.{guess,sub}: update from prep.
60387
60388 2003-05-09  Bruno Haible  <bruno@clisp.org>
60389
60390         * modules/error: Add m4/strerror_r.m4 to file list.
60391
60392 2003-05-03  Bruno Haible  <bruno@clisp.org>
60393
60394         Upgrade to Unicode-4.0.
60395         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
60396         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
60397         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
60398         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
60399         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
60400         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
60401         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
60402         Change width of U+E0100..U+E01EF from 1 to 0.
60403
60404 2003-04-25  Jim Meyering  <jim@meyering.net>
60405
60406         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
60407         of type size_t, not int.
60408
60409 2003-04-25  Bruno Haible  <bruno@clisp.org>
60410
60411         * lib/copy-file.c: Include <stddef.h>, for size_t.
60412
60413 2003-04-21  Paul Eggert  <eggert@twinsun.com>
60414
60415         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
60416         code which expansion is under static control.  Patch imported from
60417         Akim Demaille's patch to Bison; see
60418         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
60419
60420 2003-04-14  Bruno Haible  <bruno@clisp.org>
60421
60422         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
60423
60424 2003-04-11  Jim Meyering  <jim@meyering.net>
60425
60426         Merge changes from Coreutils.
60427
60428         2003-03-22  Jim Meyering  <jim@meyering.net>
60429
60430         * lib/strftime.c (widen): Cast alloca return value to proper type.
60431
60432         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
60433
60434         From GNU libc.
60435         * lib/strftime.c (my_strftime): Handle very large width
60436         specifications for numeric values correctly.  Improve checks for
60437         overflow.
60438
60439         2003-01-19  Jim Meyering  <jim@meyering.net>
60440
60441         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
60442         definitions.
60443         (nl_get_alt_digit) [! defined my_strftime]: Define.
60444         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
60445         _nl_get_alt_digit and _nl_get_walt_digit.
60446
60447         * lib/strftime.c (my_strftime): Merge in locale-related changes from
60448         libc. These changes have no effect outside of _LIBC.
60449
60450 2003-04-10  Bruno Haible  <bruno@clisp.org>
60451
60452         * modules/findprog: New file.
60453         * MODULES.html.sh (func_all_modules): Add it.
60454
60455 2003-04-10  Bruno Haible  <bruno@clisp.org>
60456
60457         * m4/findprog.m4: New file.
60458         * m4/eaccess.m4: New file.
60459
60460 2003-04-10  Bruno Haible  <bruno@clisp.org>
60461
60462         * lib/findprog.h: New file, from GNU gettext.
60463         * lib/findprog.c: New file, from GNU gettext.
60464
60465 2003-04-05  Jim Meyering  <jim@meyering.net>
60466
60467         Merge changes from Coreutils.
60468
60469         * lib/exclude.h (PARAMS): Remove definition and uses.
60470         * lib/exclude.c: Remove uses of `PARAMS'.
60471
60472         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
60473         Add test-cases for DOS filenames. Declare program_name.
60474         (main): Set up program_name.  Patch by Rich Dawe.
60475
60476         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
60477         error from mntctl.
60478         Use mntctl's return value to drive the entry-processing loop, since
60479         we can't rely on the value of the vmt_length member in the last
60480         entry.  On some systems doing so could result in exhausting
60481         virtual memory.  Based in part on a patch from Mike Jetzer.
60482
60483 2003-04-04  Bruno Haible  <bruno@clisp.org>
60484
60485         * modules/linebreak: New file.
60486         * MODULES.html.sh (func_all_modules): Add it.
60487
60488 2003-04-04  Bruno Haible  <bruno@clisp.org>
60489
60490         * m4/linebreak.m4: New file.
60491
60492 2003-04-04  Bruno Haible  <bruno@clisp.org>
60493
60494         * lib/linebreak.h: New file, from GNU gettext.
60495         * lib/linebreak.c: New file, from GNU gettext with slight
60496         modifications.
60497         * lib/lbrkprop.h: New file, from GNU gettext.
60498
60499 2003-04-03  Bruno Haible  <bruno@clisp.org>
60500
60501         * modules/utf8-ucs4: New file.
60502         * modules/utf16-ucs4: New file.
60503         * modules/ucs4-utf8: New file.
60504         * modules/ucs4-utf16: New file.
60505         * MODULES.html.sh (func_all_modules): Add them.
60506
60507 2003-04-03  Bruno Haible  <bruno@clisp.org>
60508
60509         * m4/utf-ucs4.m4: New file.
60510         * m4/ucs4-utf.m4: New file.
60511
60512 2003-04-03  Bruno Haible  <bruno@clisp.org>
60513
60514         * lib/utf8-ucs4.h: New file, from GNU gettext.
60515         * lib/utf16-ucs4.h: New file, from GNU gettext.
60516         * lib/ucs4-utf8.h: New file, from GNU gettext.
60517         * lib/ucs4-utf16.h: New file, from GNU gettext.
60518
60519 2003-04-02  Bruno Haible  <bruno@clisp.org>
60520
60521         * modules/binary-io: New file.
60522         * MODULES.html.sh (func_all_modules): Add it.
60523
60524 2003-04-02  Bruno Haible  <bruno@clisp.org>
60525
60526         * lib/binary-io.h: New file, from GNU gettext.
60527
60528 2003-04-01  Bruno Haible  <bruno@clisp.org>
60529
60530         * modules/pathname: New file.
60531         * MODULES.html.sh (func_all_modules): Add it.
60532
60533 2003-04-01  Bruno Haible  <bruno@clisp.org>
60534
60535         * lib/pathname.h: New file, from GNU gettext.
60536         * lib/concatpath.c: New file, from GNU gettext.
60537
60538 2003-03-30  Bruno Haible  <bruno@clisp.org>
60539
60540         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
60541
60542 2003-03-30  Bruno Haible  <bruno@clisp.org>
60543
60544         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
60545         function chown() doesn't exist.
60546
60547 2003-03-28  Bruno Haible  <bruno@clisp.org>
60548
60549         * modules/copy-file: New file.
60550         * MODULES.html.sh (func_all_modules): Add it.
60551
60552 2003-03-28  Bruno Haible  <bruno@clisp.org>
60553
60554         * m4/copy-file.m4: New file.
60555
60556 2003-03-28  Bruno Haible  <bruno@clisp.org>
60557
60558         * lib/copy-file.h: New file, from GNU gettext.
60559         * lib/copy-file.c: New file, from GNU gettext.
60560
60561 2003-03-18  Jim Meyering  <jim@meyering.net>
60562
60563         * lib/quote.c (quote_n): Fix typo in comment.
60564
60565 2003-03-18  Bruno Haible  <bruno@clisp.org>
60566
60567         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
60568         checking.
60569         * m4/onceonly_2_57.m4: Likewise.
60570
60571 2003-03-17  Bruno Haible  <bruno@clisp.org>
60572
60573         * m4/onceonly.m4: Require autoconf 2.54 or newer.
60574         (m4_quote): Remove macro.
60575         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
60576
60577 2003-03-14  Jim Meyering  <jim@meyering.net>
60578
60579         Merge changes from Coreutils.
60580         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
60581         to be const, in order to avoid warnings.
60582         (obstack_room): Likewise.
60583         (obstack_empty_p): Likewise.
60584
60585 2003-03-14  Bruno Haible  <bruno@clisp.org>
60586
60587         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
60588         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
60589
60590 2003-03-13  Paul Eggert  <eggert@twinsun.com>
60591
60592         Merge changes from Bison.
60593         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
60594         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
60595         when compiling Bison 1.875's `bitset bset = obstack_alloc
60596         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
60597         * lib/hash.c: Include <stdbool.h> unconditionally.
60598
60599 2003-03-13  Paul Eggert  <eggert@twinsun.com>
60600
60601         * m4/onceonly.m4 (m4_quote): New macro.
60602         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
60603         Quote AC_FOREACH variable-expansions properly.
60604
60605 2003-03-13  Paul Eggert  <eggert@twinsun.com>
60606
60607         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
60608
60609 2003-03-09  Paul Eggert  <eggert@twinsun.com>
60610
60611         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
60612         Reported by Bruce Becker; see:
60613         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
60614
60615 2003-03-03  Paul Eggert  <eggert@twinsun.com>
60616             Bruno Haible  <bruno@clisp.org>
60617
60618         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
60619         Reported by John Hughes, see
60620         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
60621
60622 2003-02-20  Bruno Haible  <bruno@clisp.org>
60623
60624         * MODULES.html.sh (func_all_modules): Add poll.
60625
60626 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
60627
60628         * modules/poll: New file.
60629
60630 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
60631
60632         * lib/poll_.h: New file.
60633         * lib/poll.c: New file.
60634
60635 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
60636
60637         * m4/poll.m4: New file.
60638
60639 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
60640
60641         * modules/mathl: New file.
60642
60643 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
60644
60645         * lib/mathl.h: New file.
60646         * lib/acosl.c: New file.
60647         * lib/asinl.c: New file.
60648         * lib/atanl.c: New file.
60649         * lib/ceill.c: New file.
60650         * lib/cosl.c: New file.
60651         * lib/expl.c: New file.
60652         * lib/floorl.c: New file.
60653         * lib/frexpl.c: New file.
60654         * lib/ldexpl.c: New file.
60655         * lib/logl.c: New file.
60656         * lib/sincosl.c: New file.
60657         * lib/sinl.c: New file.
60658         * lib/sqrtl.c: New file.
60659         * lib/tanl.c: New file.
60660         * lib/trigl.c: New file.
60661         * lib/trigl.h: New file.
60662
60663 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
60664
60665         * m4/mathl.m4: New file.
60666
60667 2003-02-18  Bruno Haible  <bruno@clisp.org>
60668
60669         * MODULES.html.sh (func_all_modules): Add mathl.
60670
60671 2003-02-17  Bruno Haible  <bruno@clisp.org>
60672
60673         * modules/mkdtemp: New module.
60674         * MODULES.html.sh (func_all_modules): Add it.
60675
60676 2003-02-17  Bruno Haible  <bruno@clisp.org>
60677
60678         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
60679
60680 2003-02-17  Bruno Haible  <bruno@clisp.org>
60681
60682         * lib/mkdtemp.h: New file, from GNU gettext.
60683         * lib/mkdtemp.c: New file, from GNU gettext.
60684
60685 2003-02-02  Jim Meyering  <jim@meyering.net>
60686
60687         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
60688         e.g. glibc-2.2.93.
60689
60690 2003-01-31  Bruno Haible  <bruno@clisp.org>
60691
60692         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
60693         'rpl_rename'.
60694         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
60695         'rpl_strnlen'.
60696         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
60697         'rpl_strtod'.
60698         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
60699         'rpl_utime'.
60700
60701 2003-01-31  Bruno Haible  <bruno@clisp.org>
60702
60703         * lib/rename.c: #undef rename before defining rpl_rename.
60704         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
60705
60706 2003-01-30  Bruno Haible  <bruno@clisp.org>
60707
60708         * modules/vasnprintf, modules/vasprintf: New modules.
60709         * MODULES.html.sh (func_all_modules): Add them.
60710
60711 2003-01-30  Bruno Haible  <bruno@clisp.org>
60712
60713         * m4/signed.m4: New file, from GNU gettext.
60714         * m4/longdouble.m4: New file, from GNU gettext.
60715         * m4/wchar_t.m4: New file, from GNU gettext.
60716         * m4/wint_t.m4: New file, from GNU gettext.
60717         * m4/vasnprintf.m4: New file.
60718         * m4/vasprintf.m4: New file.
60719
60720 2003-01-30  Bruno Haible  <bruno@clisp.org>
60721
60722         * lib/printf-args.h: New file, from GNU gettext.
60723         * lib/printf-args.c: New file, from GNU gettext.
60724         * lib/printf-parse.h: New file, from GNU gettext.
60725         * lib/printf-parse.c: New file, from GNU gettext.
60726         * lib/vasnprintf.h: New file, from GNU gettext.
60727         * lib/vasnprintf.c: New file, from GNU gettext.
60728         * lib/asnprintf.c: New file, from GNU gettext.
60729         * lib/vasprintf.h: New file, from GNU gettext with modifications.
60730         * lib/vasprintf.c: New file, from GNU gettext.
60731         * lib/asprintf.c: New file, from GNU gettext.
60732
60733 2003-01-29  Bruno Haible  <bruno@clisp.org>
60734
60735         * modules/stpncpy: New module.
60736         * MODULES.html.sh (func_all_modules): Add it.
60737
60738 2003-01-29  Bruno Haible  <bruno@clisp.org>
60739
60740         * m4/stpncpy.m4: New file.
60741
60742 2003-01-29  Bruno Haible  <bruno@clisp.org>
60743
60744         * lib/stpncpy.h: New file, from GNU gettext with modifications.
60745         * lib/stpncpy.c: New file, from GNU gettext with modifications.
60746
60747 2003-01-28  Bruno Haible  <bruno@clisp.org>
60748
60749         * modules/c-ctype: New module.
60750         * MODULES.html.sh (func_all_modules): Add it.
60751
60752 2003-01-28  Bruno Haible  <bruno@clisp.org>
60753
60754         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
60755         Paul Eggert.
60756         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
60757         Paul Eggert.
60758
60759 2003-01-27  Bruno Haible  <bruno@clisp.org>
60760
60761         * modules/xsetenv: New module.
60762         * MODULES.html.sh (func_all_modules): Add it.
60763
60764 2003-01-27  Bruno Haible  <bruno@clisp.org>
60765
60766         * lib/xsetenv.h: New file, from GNU gettext.
60767         * lib/xsetenv.c: New file, from GNU gettext.
60768
60769 2003-01-23  Jim Meyering  <jim@meyering.net>
60770
60771         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
60772         from working on systems without dirfd (at least Irix and OSF1/Tru64).
60773
60774 2003-01-23  Bruno Haible  <bruno@clisp.org>
60775
60776         * modules/minmax: New module.
60777         * MODULES.html.sh (func_all_modules): Add it.
60778
60779 2003-01-23  Bruno Haible  <bruno@clisp.org>
60780
60781         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
60782         Eggert.
60783
60784 2003-01-22  Bruno Haible  <bruno@clisp.org>
60785
60786         * modules/exit: New module.
60787         * MODULES.html.sh (func_all_modules): Add it.
60788
60789 2003-01-22  Bruno Haible  <bruno@clisp.org>
60790
60791         * lib/exit.h: New file, from GNU gettext.
60792
60793 2003-01-19  Bruno Haible  <bruno@clisp.org>
60794
60795         * gnulib-tool: Recognize option --extract-maintainer.
60796         (func_get_maintainer): New function.
60797         * modules/*: Add Maintainer entry.
60798
60799 2003-01-16  Jim Meyering  <jim@meyering.net>
60800
60801         * m4/regex.m4: The `regex' struct is both input and output.
60802         Initialize it before each use.  Patch by Tim Waugh.
60803
60804 2003-01-16  Bruno Haible  <bruno@clisp.org>
60805
60806         * MODULES.html.sh: Add a table of contents. Add the module name as
60807         leftmost column. Add hyperlinks.
60808
60809 2003-01-15  Bruno Haible  <bruno@clisp.org>
60810
60811         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
60812
60813 2003-01-15  Bruno Haible  <bruno@clisp.org>
60814
60815         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
60816         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
60817         suffix.
60818
60819 2003-01-15  Bruno Haible  <bruno@clisp.org>
60820
60821         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
60822
60823 2003-01-15  Bruno Haible  <bruno@clisp.org>
60824
60825         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
60826         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
60827
60828 2003-01-14  Jim Meyering  <jim@meyering.net>
60829
60830         * lib/same.c (same_name): Tweak a comment.
60831
60832 2003-01-14  Bruno Haible  <bruno@clisp.org>
60833
60834         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
60835         when a string comparison is sufficient.
60836
60837 2003-01-14  Bruno Haible  <bruno@clisp.org>
60838
60839         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
60840         'unsigned int'.
60841
60842 2003-01-14  Bruno Haible  <bruno@clisp.org>
60843
60844         * lib/hash-pjw.c: Add comment about low quality of this function.
60845
60846 2003-01-13  Bruno Haible  <bruno@clisp.org>
60847
60848         * modules/stpcpy: Distribute lib/stpcpy.h.
60849         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
60850
60851 2003-01-13  Bruno Haible  <bruno@clisp.org>
60852
60853         * modules/*: Add a description.
60854         * modules/strpbrk: Fix Makefile.am snippet.
60855         * modules/strtoimax: Fix dependencies.
60856         * modules/strtoumax: Likewise.
60857
60858 2003-01-13  Bruno Haible  <bruno@clisp.org>
60859
60860         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
60861         * modules/alloca (Makefile.am): All object files depend on alloca.h.
60862         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
60863
60864 2003-01-13  Bruno Haible  <bruno@clisp.org>
60865
60866         * gnulib-tool (func_create_testdir): Store config/* files in the main
60867         directory.
60868         * config.rpath: Move to ...
60869         * config/config.rpath: ... here.
60870         * modules/gettext: Contains config/config.rpath, not config.rpath.
60871         * modules/iconv: Likewise.
60872
60873 2003-01-12  Paul Eggert  <eggert@twinsun.com>
60874
60875         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
60876         to avoid collisions with libcurses and libreadline.
60877
60878         * m4/getstr.m4: Remove.
60879         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
60880
60881 2003-01-12  Paul Eggert  <eggert@twinsun.com>
60882
60883         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
60884         to avoid collisions with libcurses and libreadline.
60885
60886         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
60887         * lib/getstr.h, getstr.c: Remove.
60888         * lib/getline.c: Include "getline.h", to check interface.
60889         Move body of old getstr.c here: this defines MIN_CHUNK and
60890         declares getdelim2, which is renamed from getstr.
60891         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
60892
60893         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
60894         All uses changed.
60895         * lib/linebuffer.h: Likewise.
60896         (readline): Remove backward-compatibility macro.
60897
60898 2003-01-12  Paul Eggert  <eggert@twinsun.com>
60899
60900         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
60901         to avoid collisions with libcurses and libreadline.
60902         * getstr: Remove.
60903         * MODULES.html.sh: Remove getstr.
60904         * modules/getline: Depend on unlocked-io, not getstr.
60905
60906 2003-01-12  Jim Meyering  <jim@meyering.net>
60907
60908         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
60909
60910 2003-01-10  Bruno Haible  <bruno@clisp.org>
60911
60912         * modules/alloca: Change Makefile.am requirements. Simplify Include
60913         requirements. Add lib/alloca_.h to file list.
60914
60915 2003-01-10  Bruno Haible  <bruno@clisp.org>
60916
60917         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
60918
60919 2003-01-10  Bruno Haible  <bruno@clisp.org>
60920
60921         * lib/alloca_.h: New file.
60922         * lib/getdate.y: Unconditionally include alloca.h.
60923         * lib/makepath.c: Likewise.
60924         * lib/setenv.c: Likewise.
60925         * lib/userspec.c: Likewise.
60926
60927 2003-01-09  Karl Berry  <karl@gnu.org>
60928
60929         * MODULES.html.sh: include `dirname $0` in PATH, to find
60930         gnulib-tool.
60931
60932 2003-01-09  Bruno Haible  <bruno@clisp.org>
60933
60934         * modules/stdbool: Change configure.ac, Makefile.am requirements.
60935         Simplify Include requirements. Add lib/stdbool.h.in to file list.
60936
60937 2003-01-09  Bruno Haible  <bruno@clisp.org>
60938
60939         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
60940
60941 2003-01-09  Bruno Haible  <bruno@clisp.org>
60942
60943         * lib/stdbool.h.in: New file.
60944
60945 2003-01-09  Bruno Haible  <bruno@clisp.org>
60946
60947         * gnulib-tool (func_all_modules): Ignore files ending in ~.
60948         * MODULES.html.sh: Likewise.
60949
60950 2003-01-08  Jim Meyering  <jim@meyering.net>
60951
60952         * lib/full-write.c: Undefine and define-away `const' after inclusion
60953         of errno.h, not before.  Suggestion from Bruno Haible.
60954
60955 2003-01-08  Bruno Haible  <bruno@clisp.org>
60956
60957         * modules/full-read: Depend on full-write.
60958
60959 2003-01-08  Bruno Haible  <bruno@clisp.org>
60960
60961         * lib/safe-read.c: Include specification header first, to ensure its
60962         selfcontainedness.
60963         * lib/full-write.c: Likewise.
60964
60965 2003-01-07  Jim Meyering  <jim@meyering.net>
60966
60967         * lib/full-write.c: Rework so that it may serve to define full_read,
60968         too.
60969         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
60970
60971 2003-01-07  Bruno Haible  <bruno@clisp.org>
60972
60973         * lib/strtoimax.c: Include <stdint.h> as an alternative to
60974         <inttypes.h>.
60975         * lib/xstrtol.h: Likewise.
60976         * lib/xstrtoimax.c: Likewise.
60977         * lib/xstrtoumax.c: Likewise.
60978         * lib/human.h: Likewise.
60979
60980         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
60981         on systems that have <inttypes.h> but not <stdint.h>.
60982
60983 2003-01-07  Bruno Haible  <bruno@clisp.org>
60984
60985         * MODULES.html.sh: Add copyright notice.
60986         (missed_files): Omit CVS directory entries.
60987         (func_module): Make it work with sed-3.02.
60988         * MODULES.txt: Remove file.
60989
60990 2003-01-06  Jim Meyering  <jim@meyering.net>
60991
60992         * lib/version-etc.c: Update year in translatable copyright string.
60993
60994 2003-01-03  Karl Berry  <karl@gnu.org>
60995
60996         * config/config.{guess,sub}: update from prep.
60997
60998 2003-01-02  Karl Berry  <karl@gnu.org>
60999
61000         * doc/COPYING.DOC: belatedly updated to 1.2.
61001
61002 2003-01-01  Karl Berry  <karl@gnu.org>
61003
61004         * gnulib-tool (func_verify_module): report module name $module in
61005         error message, not $1.
61006         * gnulib-tool (create-testdir): don't complain if destdir couldn't
61007         be created, only if it doesn't exist.
61008         * gnulib-tool (last_checkin_date): don't expand the $Date here.
61009
61010 2002-12-31  Paul Eggert  <eggert@twinsun.com>
61011
61012         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
61013
61014 2002-12-31  Paul Eggert  <eggert@twinsun.com>
61015
61016         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
61017         memcmp if strcoll doesn't work.
61018
61019 2002-12-31  Bruno Haible  <bruno@clisp.org>
61020
61021         * lib/utime.c (utime_null): No need to call ftruncate if the file was
61022         nonempty.
61023
61024 2002-12-31  Bruno Haible  <bruno@clisp.org>
61025
61026         * lib/memcoll.c (STRCOLL): New macro.
61027         (memcoll): Use it.
61028
61029 2002-12-31  Bruno Haible  <bruno@clisp.org>
61030
61031         * lib/localcharset.h: New file.
61032         * lib/localcharset.c: Include it.
61033         * lib/unicodeio.c: Likewise.
61034
61035 2002-12-31  Bruno Haible  <bruno@clisp.org>
61036
61037         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
61038         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
61039
61040 2002-12-31  Bruno Haible  <bruno@clisp.org>
61041
61042         * lib/getline.h: Include <stddef.h>, for size_t.
61043
61044         * lib/unicodeio.h: Include <stddef.h>, for size_t.
61045         * lib/unicodeio.c: Don't include <stddef.h>.
61046
61047 2002-12-31  Bruno Haible  <bruno@clisp.org>
61048
61049         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
61050         HAVE_TM_ZONE.
61051
61052 2002-12-24  Karl Berry  <karl@gnu.org>
61053
61054         * config/config.guess: update from prep.
61055
61056 2002-12-24  Bruno Haible  <bruno@clisp.org>
61057
61058         General infrasructure.
61059         * m4/README: Rewritten.
61060         * m4/onceonly.m4: New file.
61061         * m4/onceonly_2_57.m4: New file.
61062
61063         Module atexit.
61064         * m4/atexit.m4: New file.
61065
61066         Module strtod.
61067         * m4/strtod.m4: New file.
61068
61069         Module strtol.
61070         * m4/strtol.m4: New file.
61071
61072         Module strtoul.
61073         * m4/strtoul.m4: New file.
61074
61075         Module memchr.
61076         * m4/memchr.m4: New file.
61077
61078         Module memcmp.
61079         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
61080         (jm_FUNC_MEMCMP): Invoke it.
61081
61082         Module memcpy.
61083         * m4/memcpy.m4: New file.
61084
61085         Module memmove.
61086         * m4/memmove.m4: New file.
61087
61088         Module memset.
61089         * m4/memset.m4: New file.
61090
61091         Module strcspn.
61092         * m4/strcspn.m4: New file.
61093
61094         Module strpbrk.
61095         * m4/strpbrk.m4: New file.
61096
61097         Module strstr.
61098         * m4/strstr.m4: New file.
61099
61100         Module strerror.
61101         * m4/strerror.m4: New file.
61102
61103         Module mktime.
61104         * m4/mktime.m4: Renamed from jm-mktime.m4.
61105         (gl_PREREQ_MKTIME): New macro.
61106         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
61107
61108         Module malloc.
61109         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
61110         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
61111         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
61112
61113         Module realloc.
61114         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
61115         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
61116         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
61117
61118         Module strftime.
61119         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
61120         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
61121         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
61122         gl_TM_GMTOFF.
61123         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
61124
61125         Module xalloc.
61126         * m4/xalloc.m4: New file.
61127
61128         Module alloca.
61129         * m4/alloca.m4: New file.
61130
61131         Module putenv.
61132         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
61133         (jm_FUNC_PUTENV): Invoke it.
61134
61135         Module setenv.
61136         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
61137         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
61138         when invoked twice.
61139         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
61140         gt_FUNC_SETENV.
61141
61142         Module memrchr.
61143         * m4/memrchr.m4: New file.
61144
61145         Module stpcpy.
61146         * m4/stpcpy.m4: New file.
61147
61148         Module strcase.
61149         * m4/strcase.m4: New file.
61150
61151         Module strdup.
61152         * m4/strdup.m4: New file.
61153
61154         Module strnlen.
61155         * m4/strnlen.m4: New file.
61156
61157         Module strndup.
61158         * m4/strndup.m4: New file.
61159
61160         Module xstrtod.
61161         * m4/xstrtod.m4: New file.
61162
61163         Module xstrtol.
61164         * m4/xstrtol.m4: New file.
61165
61166         Module getdate.
61167         * m4/getdate.m4: New file.
61168
61169         Module unlocked-io.
61170         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
61171         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
61172         * m4/jm-glibc-io.m4n: Remove file.
61173
61174         Module long-options.
61175         * m4/long-options.m4: New file.
61176
61177         Module md5.
61178         * m4/md5.m4: New file.
61179
61180         Module sha.
61181         * m4/sha.m4: New file.
61182
61183         Module getstr.
61184         * m4/getstr.m4: New file.
61185
61186         Module getline.
61187         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
61188         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
61189         <sys/types.h>, for size_t. Use the function name gnu_getline, not
61190         simply getline. Infoke gl_PREREQ_GETLINE.
61191
61192         Module obstack.
61193         * m4/obstack.m4: New file.
61194
61195         Module hash.
61196         * m4/hash.m4: New file.
61197
61198         Module readtokens.
61199         * m4/readtokens.m4: New file.
61200
61201         Module strverscmp.
61202         * m4/strverscmp.m4: New file.
61203
61204         Module stdbool.
61205         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
61206         OSF/1.
61207
61208         Module strtoll.
61209         * m4/strtoll.m4: New file.
61210
61211         Module strtoull.
61212         * m4/strtoull.m4: New file.
61213
61214         Module strtoimax.
61215         * m4/strtoimax.m4: New file.
61216
61217         Module strtoumax.
61218         * m4/strtoumax.m4: New file.
61219
61220         Module xstrtoimax.
61221         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
61222         jm_AC_PREREQ_XSTRTOIMAX.
61223         Moved the strtol prerequisites to strtol.m4.
61224         Moved the strtoll prerequisites to strtoll.m4.
61225         Moved the strtoimax prerequisites to strtoimax.m4.
61226
61227         Module xstrtoumax.
61228         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
61229         jm_AC_PREREQ_XSTRTOUMAX.
61230         Moved the strtoul prerequisites to strtoul.m4.
61231         Moved the strtoull prerequisites to strtoull.m4.
61232         Moved the strtoumax prerequisites to strtoumax.m4.
61233
61234         Module chown.
61235         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
61236         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
61237
61238         Module dup2.
61239         * m4/dup2.m4: New file.
61240
61241         Module ftruncate.
61242         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
61243         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
61244
61245         Module getgroups.
61246         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
61247         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
61248
61249         Module gettimeofday.
61250         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
61251         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
61252         gl_PREREQ_GETTIMEOFDAY.
61253
61254         Module mkdir.
61255         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
61256         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
61257
61258         Module mkstemp.
61259         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
61260         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
61261         jm_AC_TYPE_UINTMAX_T.
61262         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
61263
61264         Module stat.
61265         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
61266         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
61267
61268         Module lstat.
61269         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
61270         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
61271
61272         Module timespec.
61273         * m4/timespec.m4 (gl_TIMESPEC): New macro.
61274         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
61275         * m4/st_mtim.m4: Indentation.
61276
61277         Module nanosleep.
61278         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
61279         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
61280         gl_PREREQ_NANOSLEEP.
61281
61282         Module regex.
61283         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
61284         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
61285         (gl_REGEX): New macro.
61286
61287         Module rename.
61288         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
61289         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
61290
61291         Module rmdir.
61292         * m4/rmdir.m4: New file.
61293
61294         Module utime.
61295         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
61296         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
61297         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
61298
61299         Module dirname.
61300         * m4/dirname.m4: New file.
61301
61302         Module getopt.
61303         * m4/getopt.m4: New file.
61304
61305         Module unistd-safer.
61306         * m4/unistd-safer.m4: New file.
61307
61308         Module fnmatch.
61309         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
61310         declaration.
61311         (gl_PREREQ_FNMATCH_EXTRA): New macro.
61312         (gl_FUNC_FNMATCH_POSIX): New macro.
61313         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
61314         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
61315         simply fnmatch.
61316
61317         Module exclude.
61318         * m4/exclude.m4: New file.
61319
61320         Module human.
61321         * m4/human.m4: New file.
61322
61323         Module acl.
61324         * m4/acl.m4: Nop.
61325
61326         Module backupfile.
61327         * m4/backupfile.m4: New file.
61328         * m4/d-ino.m4: Indentation.
61329
61330         Module fsusage.
61331         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
61332         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
61333         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
61334
61335         Module dirfd.
61336         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
61337         requirements.
61338
61339         Module euidaccess.
61340         * m4/euidaccess.m4: New file.
61341
61342         Module file-type.
61343         * m4/file-type.m4: New file.
61344
61345         Module fileblocks.
61346         * m4/fileblocks.m4: New file.
61347
61348         Module filemode.
61349         * m4/filemode.m4: New file.
61350
61351         Module isdir.
61352         * m4/isdir.m4: New file.
61353
61354         Module lchown.
61355         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
61356         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
61357
61358         Module makepath.
61359         * m4/makepath.m4: New file.
61360
61361         Module modechange.
61362         * m4/modechange.m4: New file.
61363
61364         Module mountlist.
61365         * m4/mountlist.m4: New file.
61366         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
61367         Indentation.
61368
61369         Module path-concat.
61370         * m4/path-concat.m4: New file.
61371
61372         Module pathmax.
61373         * m4/pathmax.m4: New file.
61374
61375         Module same.
61376         * m4/same.m4: New file.
61377
61378         Module save-cwd.
61379         * m4/save-cwd.m4: New file.
61380
61381         Module savedir.
61382         * m4/savedir.m4: New file.
61383
61384         Module xgetcwd.
61385         * m4/xgetcwd.m4: New file.
61386         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
61387
61388         Module xreadlink.
61389         * m4/xreadlink.m4: New file.
61390
61391         Module safe-read.
61392         * m4/safe-read.m4: New file.
61393
61394         Module safe-write.
61395         * m4/safe-write.m4: New file.
61396
61397         Module closeout.
61398         * m4/closeout.m4: New file.
61399
61400         Module stdio-safer.
61401         * m4/stdio-safer.m4: New file.
61402
61403         Module getpass.
61404         * m4/getpass.m4: New file.
61405
61406         Module getugroups.
61407         * m4/getugroups.m4: New file.
61408
61409         Module group-member.
61410         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
61411         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
61412
61413         Module idcache.
61414         * m4/idcache.m4: New file.
61415
61416         Module userspec.
61417         * m4/userspec.m4: New file.
61418
61419         Module gettime.
61420         * m4/clock_time.m4: New file.
61421         * m4/gettime.m4: New file.
61422
61423         Module settime.
61424         * m4/settime.m4: New file.
61425
61426         Module posixtm.
61427         * m4/posixtm.m4: New file.
61428
61429         Module gethostname.
61430         * m4/gethostname.m4: New file.
61431
61432         Module canon-host.
61433         * m4/canon-host.m4: New file.
61434
61435         Module gettext.
61436         * m4/codeset.m4: New file, from gettext-0.11.5.
61437         * m4/gettext.m4: New file, from gettext-0.11.5.
61438         * m4/glibc21.m4: New file, from gettext-0.11.5.
61439         * m4/iconv.m4: New file, from gettext-0.11.5.
61440         * m4/intdiv0.m4: New file, from gettext-0.11.5.
61441         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
61442         * m4/inttypes.m4: New file, from gettext-0.11.5.
61443         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
61444         * m4/isc-posix.m4: New file, from gettext-0.11.5.
61445         * m4/lcmessage.m4: New file, from gettext-0.11.5.
61446         * m4/lib-ld.m4: New file, from gettext-0.11.5.
61447         * m4/lib-link.m4: New file, from gettext-0.11.5.
61448         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
61449         * m4/progtest.m4: New file, from gettext-0.11.5.
61450         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
61451         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
61452         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
61453
61454         Module localcharset.
61455         * m4/localcharset.m4: New file.
61456
61457         Module hard-locale.
61458         * m4/hard-locale.m4: New file.
61459
61460         Module mbswidth.
61461         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
61462         onceonly macros.
61463         * m4/mbrtowc.m4: Add comment.
61464
61465         Module memcasecmp.
61466         * m4/memcasecmp.m4: New file.
61467
61468         Module memcoll.
61469         * m4/memcoll.m4: New file.
61470
61471         Module unicodeio.
61472         * m4/unicodeio.m4: New file.
61473
61474         Module rpmatch.
61475         * m4/rpmatch.m4: New file.
61476
61477         Module yesno.
61478         * m4/yesno.m4: New file.
61479
61480         Module exitfail.
61481         * m4/exitfail.m4: New file.
61482
61483         Module c-stack.
61484         * m4/c-stack.m4 (gl_C_STACK): New macro.
61485         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
61486
61487         Module error.
61488         * m4/error.m4 (gl_ERROR): New macro.
61489         (jm_PREREQ_ERROR): Use onceonly macros.
61490
61491         Module fatal.
61492         * m4/fatal.m4: New file.
61493
61494         Module getloadavg.
61495         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
61496         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
61497
61498         Module getpagesize.
61499         * m4/getpagesize.m4: New file.
61500
61501         Module getusershell.
61502         * m4/getusershell.m4: New file.
61503
61504         Module physmem.
61505         * m4/physmem.m4: New file.
61506
61507         Module posixver.
61508         * m4/posixver.m4: New file.
61509
61510         Module quotearg.
61511         * m4/quotearg.m4: New file.
61512
61513         Module quote.
61514         * m4/quote.m4: New file.
61515
61516         Module readutmp.
61517         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
61518
61519         Module sig2str.
61520         * m4/sig2str.m4: New file.
61521
61522         Other.
61523         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
61524         ulonglong.m4.
61525         * m4/intmax_t.m4: New file.
61526         * m4/d-type.m4: Indentation.
61527         * m4/jm-macros.m4: Update.
61528         * m4/prereq.m4 (jm_PREREQ): Update.
61529         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
61530         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
61531         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
61532         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
61533         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
61534         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
61535         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
61536         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
61537         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
61538         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
61539         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
61540         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
61541         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
61542         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
61543         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
61544         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
61545         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
61546         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
61547         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
61548
61549 2002-12-24  Bruno Haible  <bruno@clisp.org>
61550
61551         * MODULES.txt: Update according to m4/ changes.
61552
61553         Module gettext.
61554         * config.rpath: New file, from gettext-0.11.5.
61555
61556         * modules/*: New module descriptions.
61557         * gnulib-tool: New file.
61558         * MODULES.html.sh: New file.
61559
61560 2002-12-21  Karl Berry  <karl@gnu.org>
61561
61562         * doc/fdl.texi: update to version 1.2.
61563
61564 2002-12-19  Karl Berry  <karl@gnu.org>
61565
61566         * config/config.guess: update from prep.
61567
61568 2002-12-18  Bruno Haible  <bruno@clisp.org>
61569
61570         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
61571         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
61572
61573 2002-12-17  Bruno Haible  <bruno@clisp.org>
61574
61575         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
61576         stdlib.h, string.h.
61577
61578 2002-12-17  Bruno Haible  <bruno@clisp.org>
61579
61580         * lib/canon-host.c (strdup): Remove unused declaration.
61581
61582         * lib/fsusage.c: Include full_read.h.
61583         (get_fs_usage): Use full_read instead of safe_read.
61584
61585         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
61586
61587 2002-12-12  Karl Berry  <karl@gnu.org>
61588
61589         * config/config.guess: update from prep.
61590
61591 2002-12-11  Bruno Haible  <bruno@clisp.org>
61592
61593         * m4/setenv.m4: New file, from gettext-0.11.5.
61594
61595 2002-12-11  Bruno Haible  <bruno@clisp.org>
61596
61597         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
61598         not unsetenv().
61599         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
61600         modifications:
61601
61602         2002-12-11  Bruno Haible  <bruno@clisp.org>
61603
61604                 * setenv.c (alloca): Fall back to malloc.
61605                 (freea): New macro.
61606                 (setenv): Use freea() to free memory allocated with alloca().
61607
61608         2002-11-13  Bruno Haible  <bruno@clisp.org>
61609
61610                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
61611                 function declarations.
61612                 * unsetenv.c (unsetenv): Likewise.
61613
61614         2002-03-04  Bruno Haible  <bruno@clisp.org>
61615
61616                 Portability to AIX 4.3.3.
61617                 * unsetenv.c: New file, extracted from setenv.c.
61618                 * setenv.c: Move the unsetenv() function to unsetenv.c.
61619
61620         2001-12-20  Bruno Haible  <bruno@clisp.org>
61621
61622                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
61623                 use malloc instead. For SunOS 4.
61624
61625         2001-12-11  Bruno Haible  <bruno@clisp.org>
61626
61627                 * setenv.c: Declare alloca.
61628                 (compar_fn_t): New typedef.
61629                 (KNOWN_VALUE, STORE_VALUE): Use it.
61630
61631         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
61632         setenv.h.
61633
61634 2002-12-10  Paul Eggert  <eggert@twinsun.com>
61635
61636         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
61637         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
61638         Choose values that are less likely to collide with system fnmatch
61639         options.
61640         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
61641         defined (e.g., a pure POSIX system).
61642         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
61643         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
61644
61645 2002-12-06  Paul Eggert  <eggert@twinsun.com>
61646
61647         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
61648         a pain in practice to deal with generated m4 files.  This change
61649         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
61650
61651         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
61652         and jm-glibc-io.m4, as they are no longer a special case.
61653         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
61654         kludge and the auto-generation stuff.  Check only whether the
61655         functions are declared, not whether they exist, since older hosts
61656         that don't declare the functions can't use the optimization anyway.
61657
61658 2002-12-06  Jim Meyering  <jim@meyering.net>
61659
61660         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
61661
61662         Merge in changes from libc's misc/error.c, in preparation
61663         for the merge of gnulib's changes back into libc.
61664
61665         * lib/error.c (_): Define only if not already defined.
61666         Move definition to follow all #include directives.
61667         Include unlocked-io.h only if !_LIBC.
61668         [_LIBC]: Include <libio/libioP.h>.
61669         [USE_IN_LIBIO]: Include <libio/iolibio.h>
61670         (fflush): Tweak definition to use INTUSE.
61671         (putc): Define.
61672
61673 2002-12-05  Paul Eggert  <eggert@twinsun.com>
61674
61675         * lib/alloca.c [defined emacs]: Include "lisp.h".
61676         (xalloc_die) [defined emacs]: New macro.
61677         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
61678         [! defined emacs]: Include <xalloc.h>.
61679         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
61680         (pointer): Typedef to POINTER_TYPE *.
61681         (malloc): Remove decl; we now always use xmalloc.
61682         (alloca): Use old-style definition, since Emacs needs this.
61683         Check for arithmetic overflow when computing combined size.
61684
61685 2002-12-04  Paul Eggert  <eggert@twinsun.com>
61686
61687         Do not generate unlocked-io.h automatically, since it's easier to
61688         maintain it by hand.
61689
61690         * lib/unlocked-io.h: New file, from GNU diffutils,
61691         but with proper copyright notice and attribution.
61692         * lib/gen-uio: Remove.
61693         * lib/Makefile.am: Add copyright notice.
61694         (libfetish_a_SOURCES): Add unlocked-io.h.
61695         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
61696         (DISTCLEANFILES, io_functions): Remove macros.
61697         (EXTRA_DIST): Remove gen_uio.
61698         (unlocked-io.h): Remove rule.
61699
61700 2002-12-04  Jim Meyering  <jim@meyering.net>
61701
61702         Reflect the fact that stat.c and lstat.c are no longer generated.
61703         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
61704         (DISTCLEANFILES): Likewise.
61705         (EXTRA_DIST): Likewise.
61706         (all_local): Don't depend on stat.c or lstat.c.
61707         (stat.c, lstat.c): Remove rules.
61708         (EXTRA_DIST): Remove xstat.in.
61709
61710         * lib/xstat.in: Remove file.  Contents moved into stat.c.
61711         * lib/stat.c: New file.  Contents mostly from xstat.in.
61712         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
61713         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
61714
61715         * lib/safe-read.c: Rework so that it may serve to define safe_write,
61716         too.
61717         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
61718
61719 2002-12-03  Jim Meyering  <jim@meyering.net>
61720
61721         * lib/safe-read.c, safe-write.c: Change variable names and comments,
61722         but not semantics, to minimize the differences between these two files.
61723         (safe_read): Change comment to mention SAFE_READ_ERROR.
61724
61725         * lib/safe-read.c (IS_EINTR): Define.
61726         (safe_read): Use IS_EINTR in place of in-function cpp directives.
61727
61728 2002-12-02  Jim Meyering  <jim@meyering.net>
61729
61730         * lib/safe-read.c (EINTR): Define.
61731         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
61732         (INT_MAX): Provide fallback.
61733         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
61734
61735         * lib/safe-read.h (SAFE_READ_ERROR): Define.
61736
61737 2002-12-02  Bruno Haible  <bruno@clisp.org>
61738
61739         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
61740         Define, taken from safe-read.c.
61741         (INT_MAX): Provide fallback.
61742         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
61743         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
61744
61745         * lib/safe-read.c (EINTR): Remove definition.
61746         (safe_read): Don't use EINTR if it is absent.
61747
61748 2002-12-01  Jim Meyering  <jim@meyering.net>
61749
61750         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
61751         zero.
61752         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
61753
61754 2002-11-27  Paul Eggert  <eggert@twinsun.com>
61755
61756         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
61757         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
61758         with `if (! (value < limit)) abort ();', for readability.
61759
61760 2002-11-26  Karl Berry  <karl@gnu.org>
61761
61762         * lib/strdup.c: copy from libc again, with jim's ok.
61763         * lib/.cppi-disable: re-add strdup.c
61764
61765 2002-11-25  Karl Berry  <karl@gnu.org>
61766
61767         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
61768         instead of "strtol.c".
61769
61770 2002-11-25  Karl Berry  <karl@gnu.org>
61771
61772         * config/install-sh: update from automake for variable quoting, $0 in
61773         error msgs, etc.
61774
61775         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
61776         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
61777         entry.
61778
61779 2002-11-25  Jim Meyering  <jim@meyering.net>
61780
61781         * lib/mktime.c: Sync from libc, now that it has the latest fix.
61782
61783 2002-11-24  Karl Berry  <karl@gnu.org>
61784
61785         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
61786         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
61787
61788 2002-11-24  Jim Meyering  <jim@meyering.net>
61789
61790         Update from coreutils:
61791
61792         * lib/mktime.c: Merge in changes from libc.
61793
61794         Avoid a link-time failure on some Linux systems.
61795         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
61796         (otherwise).
61797         (__mon_yday): Declare with the STATIC attribute.
61798         (__mktime_internal): Likewise.
61799         Based on a report from Greg Schafer.
61800
61801 2002-11-23  Jim Meyering  <jim@meyering.net>
61802
61803         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
61804         Use `unsigned', not `int', as type of index.
61805
61806         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
61807
61808         * lib/fsusage.c: Remove unneeded parentheses around operands of
61809         `defined'.
61810
61811 2002-11-22  Paul Eggert  <eggert@twinsun.com>
61812
61813         * lib/quotearg.h: Allow multiple inclusion by surrounding with
61814         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
61815         so that we can be included first.
61816         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
61817         * lib/quotearg.c: Include quotearg.h immediately after config.h.
61818         No need to include stddef.h or sys/types.h any more.
61819         Surround local include files with "", not "<>".
61820         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
61821         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
61822         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
61823         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
61824         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
61825         (ISPRINT): Remove; no longer needed now that we assume C89.
61826
61827         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
61828         Preserve errno.
61829
61830         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
61831         quotearg_char): Use SIZE_MAX rather than
61832         (size_t) -1 when we are talking about "infinity".
61833
61834         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
61835
61836 2002-11-22  Paul Eggert  <eggert@twinsun.com>
61837
61838         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
61839         hint that one should use `if (! x) abort ();' rather than `assert
61840         (x);', and anyway it's one less thing to worry about configuring.
61841         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
61842         hash_rehash, hash_insert): Use abort rather than assert.
61843
61844 2002-11-22  Bruno Haible  <bruno@clisp.org>
61845
61846         * lib/safe-read.h: Assume C89. Add comments.
61847         (safe_read): Change return type to size_t.
61848         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
61849         byte counts > SSIZE_MAX correctly.
61850         * lib/safe-write.h: New file.
61851         * lib/safe-write.c: New file.
61852         * lib/full-read.h: New file.
61853         * lib/full-read.c: New file.
61854         * lib/full-write.h: Assume C89. Add comments.
61855         * lib/full-write.c: Include safe-write.h.
61856         (full_write): Rewritten to use safe_write.
61857         Suggested by Jim Meyering and Paul Eggert.
61858
61859 2002-11-21  Jim Meyering  <jim@meyering.net>
61860
61861         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
61862
61863         Merge in changes from the coreutils.
61864
61865         2002-09-25  Paul Eggert  <eggert@twinsun.com>
61866         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
61867         <stdint.h>.
61868         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
61869         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
61870         int.  Work more efficiently if X is the same width as uintmax_t.
61871         Do not compare X to -1, to avoid bogus compiler warning.
61872         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
61873         Don't assume that f_frsize and f_bsize are the same type.
61874
61875         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
61876         warning on FreeBSD.
61877
61878         * lib/makepath.c (make_path): Restore umask *before* creating the final
61879         component.
61880         (make_path): Minor reformatting.
61881
61882         * lib/xmalloc.c: Adjust to work with new autoconf macros,
61883         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
61884         HAVE_MALLOC/HAVE_REALLOC.
61885
61886         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
61887         dummy ones.  At least on GNU/Linux systems, `auto' means something
61888         else.
61889         From Michael Stone.
61890
61891 2002-11-21  Bruno Haible  <bruno@clisp.org>
61892
61893         Remove case insensitive option matching.
61894         * lib/argmatch.h (argcasematch): Remove declaration.
61895         (ARGCASEMATCH): Remove macro.
61896         (__xargmatch_internal): Remove case_sensitive argument.
61897         (XARGMATCH): Update.
61898         (XARGCASEMATCH): Remove macro.
61899         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
61900         case_sensitive argument.
61901         (argcasematch): Remove function.
61902         (__xargmatch_internal): Remove case_sensitive argument.
61903         (main): Use XARGMATCH instead of XARGCASEMATCH.
61904
61905         * lib/xmalloc.c: Change compile-time error message. Add comment about
61906         required autoconf version.
61907
61908 2002-11-20  Paul Eggert  <eggert@twinsun.com>
61909
61910         Merge argmatch cleanups from Bison.  Assume C89.
61911
61912         * lib/argmatch.c: Include config.h here, not in argmatch.h.
61913         Include stdlib.h, for EXIT_FAILURE.
61914         Always include <string.h>, since we assume C89.
61915         (EXIT_FAILURE): Remove pre-C89 bug workaround.
61916         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
61917         Include <stddef.h> instead, since it's all we need for size_t.
61918         (PARAMS): Remove.  All uses removed.
61919         (ARRAY_CARDINALITY): Do not bother to #undef.
61920         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
61921         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
61922         Remove unnecessary parentheses.
61923         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
61924         Insert necessary parentheses.
61925         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
61926         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
61927
61928 2002-11-19  Bruno Haible  <bruno@clisp.org>
61929
61930         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
61931         * lib/mbswidth.h: Include <stddef.h>, for size_t.
61932
61933         * lib/mbswidth.h (PARAMS): Remove macro.
61934         (mbswidth, mbsnwidth): Use ANSI C function declarations.
61935         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
61936
61937         * lib/gcd.h (PARAMS): Remove macro.
61938         (gcd): Use ANSI C function declarations.
61939         * lib/gcd.c (gcd): Likewise.
61940
61941 2002-11-15  Bruno Haible  <bruno@clisp.org>
61942
61943         * lib/strcspn.c: Include <stddef.h>.
61944         (strcspn): Use ANSI C function declaration. Change return type to
61945         size_t. Use NULL.
61946         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
61947         (strpbrk): Use NULL.
61948         * lib/strpbrk.h (PARAMS): Remove macro.
61949         (strpbrk): Use ANSI C function declaration.
61950         * lib/strstr.c: Don't include <sys/types.h>.
61951         * lib/strstr.h (PARAMS): Remove macro.
61952         (strstr): Use ANSI C function declarations.
61953
61954 2002-11-14  Karl Berry  <karl@gnu.org>
61955
61956         * config/mkinstalldirs: `do' on separate line, instead of
61957         `for var; do'.
61958
61959 2002-11-06  Bruno Haible  <bruno@clisp.org>
61960
61961         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
61962         * lib/gcd.c (gcd): Likewise.
61963
61964 2002-11-05  Bruno Haible  <bruno@clisp.org>
61965
61966         * lib/gcd.h: New file, from gettext-0.11.5.
61967         * lib/gcd.c: New file, from gettext-0.11.5.
61968
61969 2002-11-05  Bruno Haible  <bruno@clisp.org>
61970
61971         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61972         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61973         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61974         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61975
61976         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
61977         <libintl.h>.
61978         * lib/makepath.c: Include gettext.h instead of <locale.h> and
61979         <libintl.h>.
61980
61981         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
61982         * lib/human.c: Include gettext.h instead of <libintl.h>.
61983         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
61984         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
61985         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
61986         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
61987         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
61988         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
61989         (textdomain): Remove definition.
61990         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
61991
61992         * lib/long-options.c: Remove include of <libintl.h> and definition of
61993         _.
61994         * lib/same.c: Remove include of <libintl.h> and definition of _.
61995
61996 2002-11-04  Owen Taylor  <otaylor@redhat.com>
61997
61998         * lib/config.charset: A few additions for Solaris.
61999
62000 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
62001
62002         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
62003         * lib/localcharset.c (locale_charset): Declare as extern "C".
62004
62005 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
62006
62007         * lib/config.charset: msdos in uk_UA uses CP1125.
62008
62009 2002-11-04  Bruno Haible  <bruno@clisp.org>
62010
62011         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
62012         * lib/strcase.h: New file, from GNU gettext-0.11.5.
62013         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
62014         * lib/strstr.h: New file, from GNU gettext-0.11.5.
62015         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
62016
62017 2002-11-04  Bruno Haible  <bruno@clisp.org>
62018
62019         * lib/localcharset.c (locale_charset): Don't return an empty string.
62020
62021 2002-11-04  Bruno Haible  <bruno@clisp.org>
62022
62023         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
62024         aliases.
62025
62026 2002-11-04  Bruno Haible  <bruno@clisp.org>
62027
62028         * lib/config.charset: Update for newest glibc. Add canonical names
62029         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
62030
62031 2002-11-04  Bruno Haible  <bruno@clisp.org>
62032
62033         * lib/config.charset: Add support for NetBSD.
62034
62035 2002-11-04  Bruno Haible  <bruno@clisp.org>
62036
62037         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
62038
62039 2002-11-01  Bruno Haible  <bruno@clisp.org>
62040
62041         * configure.in: Add AC_CONFIG_AUX_DIR call.
62042         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
62043         test/Makefile.
62044         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
62045
62046 2002-09-28  Karl Berry  <karl@gnu.org>
62047
62048         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
62049         installed automake until the next release, since changes have been
62050         made.
62051
62052 2002-09-25  Karl Berry  <karl@gnu.org>
62053
62054         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
62055         * lib/getopt*: copy from libc/posix.
62056         * lib/gettext.h: copy from gettext.
62057         * lib/.cppi-disable: add strdup.c, gettext.h.
62058
62059 2002-09-25  Karl Berry  <karl@gnu.org>
62060
62061         * config/srclist.txt: enable gettext.h check.
62062         * config/config.{guess,sub}: update from prep.
62063         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
62064                 from automake 1.6.3.
62065         See srclist*.
62066
62067 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
62068
62069         * regex.c (PATFETCH): Remove the translating fetch.
62070         (PATFETCH_RAW): Rename to PATFETCH.
62071         (set_image_of_range): New fun.
62072         (SET_RANGE_TABLE_WORK_AREA): Use it.
62073         (regex_compile): Don't translate the pattern chars so eagerly.
62074         Only do it when inserting an `exactn' bytecode or when handling
62075         a char-range.
62076         (mutually_exclusive_p): Avoid empty statement.
62077
62078 2002-07-06  Jim Meyering  <meyering@lucent.com>
62079
62080         * m4/README: Don't mention Makefile.am.in.
62081         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
62082
62083 2002-07-01  Jim Meyering  <meyering@lucent.com>
62084
62085         * lib/c-stack.c: Include sys/time.h.
62086         From Volker Borchert.
62087
62088 2002-06-26  Paul Eggert  <eggert@twinsun.com>
62089
62090         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
62091
62092 2002-06-26  Paul Eggert  <eggert@twinsun.com>
62093
62094         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
62095         New macro.  Use it uniformly instead of
62096         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
62097         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
62098         reported by Vin Shelton.
62099
62100 2002-06-22  Paul Eggert  <eggert@twinsun.com>
62101
62102         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
62103         Do not assume SA_SIGINFO behavior.
62104         Bug reported by Jim Meyering on NetBSD 1.5.2.
62105
62106 2002-06-22  Jim Meyering  <meyering@lucent.com>
62107
62108         * m4/c-stack.m4: New file, from diffutils-2.8.2.
62109         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
62110
62111         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
62112         now that configure.ac uses AC_GNU_SOURCE.
62113         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
62114         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
62115
62116         Update to latest tools.  Suggestions from Paul Eggert.
62117         * m4/stdbool.m4: New file, from diffutils-2.8.2.
62118         * m4/gnu-source.m4: Update from diffutils-2.8.2.
62119         * m4/fnmatch.m4: Likewise.
62120         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
62121         to AC_HEADER_STDBOOL
62122
62123 2002-06-22  Jim Meyering  <meyering@lucent.com>
62124
62125         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
62126         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
62127
62128 2002-06-22  Jim Meyering  <meyering@lucent.com>
62129
62130         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
62131
62132         * lib/exitfail.c, exitfail.h: Likewise.
62133         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
62134
62135         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
62136         of fnmatch.h.
62137         (EXTRA_DIST): Add fnmatch_loop.c.
62138         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
62139
62140         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
62141         * lib/fnmatch.c: Update from diffutils-2.8.2.
62142         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
62143         * lib/fnmatch.h: Remove file.
62144
62145 2002-06-21  Jim Meyering  <meyering@lucent.com>
62146
62147         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
62148         * m4/mbrtowc.m4: Likewise.
62149
62150         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
62151         * m4/mbswidth.m4: Reflect name change:
62152         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
62153         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
62154
62155         * m4/lib-link.m4: Update from gettext-0.11.2.
62156         * m4/gettext.m4: Likewise.
62157
62158         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
62159         From Alfred M. Szmidt.
62160
62161 2002-06-18  Paul Eggert  <eggert@twinsun.com>
62162
62163         * lib/file-type.h: Report an error if neither S_ISREG nor
62164         S_IFREG is defined, instead of using a test specific to glibc
62165         2.2.  This should be safe, since POSIX requires S_ISREG and
62166         Unix Version 7 had S_IFREG.  We don't need to check for
62167         <sys/types.h> since we don't use any symbols that it defines.
62168
62169 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
62170
62171         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
62172         $@-t, so that each temporary file name is unique and valid in the first
62173         8 characters, for operation under DOS.
62174
62175 2002-06-15  Paul Eggert  <eggert@twinsun.com>
62176
62177         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
62178
62179 2002-06-15  Jim Meyering  <meyering@lucent.com>
62180
62181         Work even with DJGPP 2.03, which lacks support for symlinks.
62182         From Richard Dawe.
62183         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
62184         is defined.
62185         * lib/lchown.c (S_ISLNK): Likewise.
62186
62187 2002-06-15  Jim Meyering  <meyering@lucent.com>
62188
62189         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
62190         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
62191         have been included before this file.
62192
62193 2002-06-14  Jim Meyering  <meyering@lucent.com>
62194
62195         * lib/file-type.h: Use the version from diffutils-2.8.2.
62196         * lib/file-type.c: Likewise.
62197
62198 2002-06-07  Jim Meyering  <meyering@lucent.com>
62199
62200         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
62201         They're needed at least for NetBSD 1.5.2.
62202         ($statxfs_includes): Include those same headers.
62203         ($statxfs_includes): Include sys/vfs.h if available.
62204         ($statxfs_includes): Likewise for sys/statvfs.h.
62205         Check for the following members in both structs statfs and statvfs:
62206         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
62207
62208 2002-06-01  Jim Meyering  <meyering@lucent.com>
62209
62210         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
62211         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
62212
62213 2002-05-28  Jim Meyering  <meyering@lucent.com>
62214
62215         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
62216         Reported by Volker Borchert.
62217
62218 2002-05-27  Jim Meyering  <meyering@lucent.com>
62219
62220         Fix a problem seen only on nonconforming systems whereby ls.c's
62221         use of localtime, and then of gettimeofday would cause trouble:
62222         the localtime call used to initialize rpl_gettimeofday's save
62223         mechanism would clobber ls's current local time information so
62224         that in any long listing the first file would always be listed
62225         with date 1970-01-01.  Analysis by Volker Borchert.
62226
62227         * lib/gettimeofday.c (localtime): Undefine.
62228         (rpl_localtime): New function.
62229
62230 2002-05-27  Jim Meyering  <meyering@lucent.com>
62231
62232         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
62233         localtime.
62234
62235         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
62236         use the replacement function; it wouldn't resolve at link time.
62237         Reported by Volker Borchert.
62238
62239 2002-05-22  Jim Meyering  <meyering@lucent.com>
62240
62241         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
62242         file-type.h.
62243         * lib/file-type.h: New file.
62244         * lib/file-type.c (file_type): New file/function.  Extracted from
62245         diffutils.
62246
62247 2002-04-30  Jim Meyering  <meyering@lucent.com>
62248
62249         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
62250
62251 2002-04-29  Paul Eggert  <eggert@twinsun.com>
62252
62253         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
62254
62255 2002-04-29  Paul Eggert  <eggert@twinsun.com>
62256
62257         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
62258         Do not check for alloca.h (no longer used) or stdbool.h (was never
62259         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
62260
62261 2002-04-29  Paul Eggert  <eggert@twinsun.com>
62262
62263         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
62264
62265 2002-04-29  Jim Meyering  <meyering@lucent.com>
62266
62267         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
62268         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
62269         Use AC_FUNC_STRNLEN here instead.
62270
62271         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
62272         With autoconf-2.53a, it's part of AC_PROG_CC.
62273
62274 2002-04-28  Paul Eggert  <eggert@twinsun.com>
62275
62276         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
62277         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
62278
62279 2002-04-28  Paul Eggert  <eggert@twinsun.com>
62280
62281         * lib/sig2str.h, lib/sig2str.c: New files.
62282         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
62283
62284 2002-04-28  Paul Eggert  <eggert@twinsun.com>
62285
62286         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
62287         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
62288         of 127, since 64 is the largest conceivable number for ancient
62289         nonstandard hosts.
62290         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
62291
62292 2002-04-28  Jim Meyering  <meyering@lucent.com>
62293
62294         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
62295
62296 2002-04-24  Jim Meyering  <meyering@lucent.com>
62297
62298         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
62299         (jm_PREREQ): Use it.
62300
62301         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
62302         mach/mach.h fcntl.h.
62303         Check for this function: setlocale.
62304
62305 2002-04-24  Jim Meyering  <meyering@lucent.com>
62306
62307         * lib/gettext.h: New file, from Gettext.
62308         * lib/Makefile.am (INCLUDES): Remove -I../intl.
62309         (libfetish_a_SOURCES): Add gettext.h.
62310
62311 2002-04-16  Jim Meyering  <meyering@lucent.com>
62312
62313         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
62314         ut_pid, ut_id, ut_exit.
62315
62316 2002-04-16  Jim Meyering  <meyering@lucent.com>
62317
62318         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
62319         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
62320         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
62321
62322 2002-04-12  Jim Meyering  <meyering@lucent.com>
62323
62324         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
62325         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
62326         existence of the getmntinfo function.  Needed for Darwin 5.3.
62327
62328         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
62329         This is necessary at least on Darwin 5.3.
62330
62331         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
62332         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
62333         strnlen.o in the library, and that makes some versions of ranlib
62334         object.
62335
62336 2002-04-12  Jim Meyering  <meyering@lucent.com>
62337
62338         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
62339
62340 2002-04-09  Jim Meyering  <meyering@lucent.com>
62341
62342         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
62343         to be more precise.  Rather than saying we're checking whether the
62344         function `works', say what we're testing.
62345         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
62346         Reported by Bruno Haible.
62347
62348 2002-03-10  Jim Meyering  <meyering@lucent.com>
62349
62350         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
62351         Suggestion from Santiago Vila.
62352
62353 2002-03-08  Jim Meyering  <meyering@lucent.com>
62354
62355         * lib/rename.c: Mention that this wrapper is needed also on
62356         mips-dec-ultrix4.4 systems.
62357
62358 2002-03-02  Jim Meyering  <meyering@lucent.com>
62359
62360         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
62361         not HAVE_CLOCK_SETTIME.
62362
62363 2002-02-27  Paul Eggert  <eggert@twinsun.com>
62364
62365         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
62366         Check for clock_settime.
62367
62368 2002-02-27  Paul Eggert  <eggert@twinsun.com>
62369
62370         * lib/nanosleep.h: Rename to....
62371         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
62372
62373         * lib/gettime.c: New file.
62374         * lib/settime.c: New file.
62375         * lib/stime.c: Remove.
62376
62377         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
62378         timespec.h.  Remove nanosleep.h.
62379
62380 2002-02-25  Paul Eggert  <eggert@twinsun.com>
62381
62382         * m4/acl.m4: New file.
62383         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
62384         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
62385
62386 2002-02-25  Paul Eggert  <eggert@twinsun.com>
62387
62388         * lib/acl.c, lib/acl.h: New files.
62389         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
62390
62391 2002-02-24  Jim Meyering  <meyering@lucent.com>
62392
62393         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
62394         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
62395         cause trouble.  Reported by Nelson Beebe.
62396
62397 2002-02-23  Paul Eggert  <eggert@twinsun.com>
62398
62399         * lib/path-concat.c (xpath_concat): Reorder code to pacify
62400         compilers that don't know that xalloc_die never returns.
62401
62402 2002-02-20  Jim Meyering  <meyering@lucent.com>
62403
62404         * lib/getdate.c: Regenerate using bison-1.33.
62405
62406 2002-02-17  Jim Meyering  <meyering@lucent.com>
62407
62408         * config/config.guess (main): Don't use `head -1'; it's no longer
62409         portable. Use `sed 1q' instead.
62410
62411 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
62412
62413         * m4/codeset.m4: Upgrade to gettext-0.11.
62414         * m4/gettext.m4: Upgrade to gettext-0.11.
62415         * m4/glibc21.m4: Upgrade to gettext-0.11.
62416         * m4/iconv.m4: Upgrade to gettext-0.11.
62417         * m4/isc-posix.m4: Upgrade to gettext-0.11.
62418         * m4/lcmessage.m4: Upgrade to gettext-0.11.
62419         * m4/lib-ld.m4: New file, from gettext-0.11.
62420         * m4/lib-link.m4: New file, from gettext-0.11.
62421         * m4/lib-prefix.m4: New file, from gettext-0.11.
62422         * m4/progtest.m4: Upgrade to gettext-0.11.
62423
62424 2002-02-15  Paul Eggert  <eggert@twinsun.com>
62425
62426         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
62427         (jm_PREREQ): Use it.
62428
62429 2002-02-15  Paul Eggert  <eggert@twinsun.com>
62430
62431         * lib/posixver.c, lib/posixver.h: New files.
62432         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
62433
62434 2002-02-02  Paul Eggert  <eggert@twinsun.com>
62435             Bruno Haible  <bruno@clisp.org>
62436
62437         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
62438         (fwrite_success_callback): New declaration.
62439         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
62440         print_unicode_char. Call failure callback instead of error.
62441         (fwrite_success_callback): New function.
62442         (exit_failure_callback): New function.
62443         (fallback_failure_callback): New function.
62444         (print_unicode_char): Call unicode_to_mb.
62445
62446 2002-01-26  Jim Meyering  <meyering@lucent.com>
62447
62448         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
62449         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
62450
62451 2002-01-26  Jim Meyering  <meyering@lucent.com>
62452
62453         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
62454
62455 2002-01-22  Paul Eggert  <eggert@twinsun.com>
62456
62457         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
62458
62459 2002-01-22  Jim Meyering  <meyering@lucent.com>
62460
62461         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
62462         Otherwise, some versions of automake would omit the rule that makes
62463         Makefile from Makefile.in.
62464
62465 2002-01-21  Paul Eggert  <eggert@twinsun.com>
62466
62467         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
62468         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
62469         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
62470         (memcoll): Set errno to zero if there is no error.
62471
62472         * lib/quotearg.c (quotearg_buffer_restyled):
62473         Fix bug with quoting buffers containing NUL when backslashing escapes.
62474         This bug was exposed by the other changes in this patch.
62475         (quotearg_n_options): New arg ARGSIZE.
62476         All callers changed.
62477         (quoting_options_from_style): New function.
62478         (quotearg_n_style): Use it.
62479         (quotearg_n_style_mem): New function.
62480
62481         * lib/quotearg.h (quotearg_n_style_mem): New function.
62482
62483 2002-01-19  Jim Meyering  <meyering@lucent.com>
62484
62485         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
62486         Remove useless quotes: DF_PROG="df".
62487         * m4/strnlen.m4: New file.
62488
62489 2002-01-16  Paul Eggert  <eggert@twinsun.com>
62490
62491         * lib/backupfile.c (ISDIGIT): Comment fix.
62492         * lib/getdate.y (ISDIGIT): Likewise.
62493         * lib/posixtm.c (ISDIGIT, year): Likewise.
62494         * lib/strverscmp.c (ISDIGIT): Likewise.
62495         * lib/userspec.c (ISDIGIT): Likewise.
62496
62497 2002-01-16  Jim Meyering  <meyering@lucent.com>
62498
62499         * lib/getdate.y: Add three semicolons, each just before a closing
62500         brace. Bison (as of version 1.31) no longer papers over that mistake.
62501
62502 2002-01-05  Jim Meyering  <meyering@lucent.com>
62503
62504         * lib/version-etc.c (version_etc_copyright): Update copyright year.
62505
62506 2001-12-19  Paul Eggert  <eggert@twinsun.com>
62507
62508         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
62509         not silently exit merely because the output buffer happens to
62510         have nothing pending.
62511
62512 2001-12-18  Paul Eggert  <eggert@twinsun.com>
62513
62514         See the big note in ../ChangeLog.
62515         * lib/human.c (suffixes): Prefer K to k for 1024.
62516         (generate_suffix_backwards): New function.
62517         (human_readable_inexact): Use it.
62518         * lib/xstrtol.c (__xstrtol): If there is no number but there
62519         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
62520         Accept 'K' as well as 'k'.
62521
62522 2001-12-15  Jim Meyering  <meyering@lucent.com>
62523
62524         * lib/regex.h (__restrict_arr): Update from libc.
62525
62526         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
62527         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
62528         (STREQ): Define.
62529
62530 2001-12-14  Jim Meyering  <meyering@lucent.com>
62531
62532         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
62533         Suggestion from Bruno Haible.
62534
62535 2001-12-10  Jim Meyering  <meyering@lucent.com>
62536
62537         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
62538         xrealloc, Instead, include "xalloc.h".
62539         (initbuffer): Don't cast xmalloc return value to char*.
62540         (readline): Reword comment.
62541         Don't cast xrealloc return value to char*
62542         Return NULL, not 0.
62543
62544 2001-12-09  Jim Meyering  <meyering@lucent.com>
62545
62546         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
62547         about `signed and unsigned type in conditional expression'.
62548         * lib/posixtm.c (posix_time_parse): Likewise.
62549
62550         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
62551
62552         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
62553         to avoid a pedantic warning.
62554
62555         * lib/getstr.c: Don't include assert.h.
62556         (getstr): Remove warning-evoking assertions.
62557         Return -1 if offset parameter is out of bounds.
62558         Change the type of a local from int to size_t.
62559
62560         * lib/strftime.c (my_strftime_localtime_r): Include this function
62561         definition in the `#if ! HAVE_TM_GMTOFF' block.
62562
62563         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
62564         Include xalloc.h instead.
62565
62566 2001-12-02  Jim Meyering  <meyering@lucent.com>
62567
62568         * lib/tempname.c: Don't declare getenv, thus reverting the change of
62569         2001-11-18.  It's no longer necessary, now that stdlib.h is always
62570         included.
62571
62572         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
62573         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
62574
62575 2001-11-30  Akim Demaille  <akim@epita.fr>
62576
62577         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
62578         before being defined.
62579
62580 2001-11-27  Paul Eggert  <eggert@twinsun.com>
62581
62582         * lib/quotearg.h (quotearg_n, quotearg_n_style):
62583         First arg is int, not unsigned.
62584         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
62585         (SIZE_MAX, UINT_MAX): New macros.
62586         (quotearg_n_options): Abort if N is negative.
62587         Avoid overflow check on hosts where size_t is 64 bits and int
62588         is 32 bits, as overflow is impossible there.
62589         Fix off-by-one typo that caused unnecessary reallocation.
62590
62591 2001-11-27  Jim Meyering  <meyering@lucent.com>
62592
62593         * lib/tempname.c: Merge with version from libc.
62594         * lib/regex.c: Likewise.
62595
62596         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
62597         systems for which STDC_HEADERS is 0, it was not included, resulting in
62598         a warning about an integer-to-pointer conversion problem with getenv.
62599         Reported by Volker Borchert.
62600
62601 2001-11-26  Jim Meyering  <meyering@lucent.com>
62602
62603         * lib/gtod.h: Remove file.
62604         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
62605         * lib/gettimeofday.c: Don't include gtod.h.
62606         (GTOD_init): Remove function.
62607         (rpl_gettimeofday): Do its job here instead, rather than aborting.
62608         Suggestion from Volker Borchert.
62609
62610 2001-11-23  Jim Meyering  <meyering@lucent.com>
62611
62612         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
62613         it.
62614         * lib/hash.c (struct hash_table): Define it here instead.
62615
62616 2001-11-22  Jim Meyering  <meyering@lucent.com>
62617
62618         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
62619
62620 2001-11-20  Jim Meyering  <meyering@lucent.com>
62621
62622         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
62623         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
62624
62625 2001-11-19  Jim Meyering  <meyering@lucent.com>
62626
62627         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
62628         directory.  Use "conftestXXXXXX" as the template.
62629         Suggestion from Paul Eggert.
62630
62631         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
62632         immediately, so the test doesn't mistakenly hit the max-open-files
62633         limit.
62634
62635 2001-11-18  Paul Eggert  <eggert@twinsun.com>
62636
62637         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
62638         (TEMPORARIES): New macro.
62639         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
62640         removes an artificial limitation (e.g. HP-UX 10.20, where
62641         TMP_MAX is 17576).
62642
62643 2001-11-18  Jim Meyering  <meyering@lucent.com>
62644
62645         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
62646
62647 2001-11-18  Jim Meyering  <meyering@lucent.com>
62648
62649         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
62650         on SunOS 4.
62651
62652         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
62653         files will be created before anything else.
62654
62655 2001-11-17  Paul Eggert  <eggert@twinsun.com>
62656
62657         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
62658         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
62659
62660 2001-11-17  Jim Meyering  <meyering@lucent.com>
62661
62662         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
62663         Prompted by a report from Bob Proulx.
62664
62665         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
62666         Instead, require UTILS_FUNC_MKSTEMP.
62667
62668 2001-11-17  Jim Meyering  <meyering@lucent.com>
62669
62670         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
62671         Now, that's done as part of AC_FUNC_STRTOD.
62672
62673 2001-11-17  Jim Meyering  <meyering@lucent.com>
62674
62675         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
62676         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
62677         rather than group writable.  Patch by Juan F. Codagnone.
62678
62679         * lib/readtokens.c: Remove explicit declarations of xmalloc and
62680         xrealloc, Instead, include "xalloc.h".
62681
62682         * lib/mountlist.c: Include unlocked-io.h after all system headers.
62683         Remove explicit declarations of xmalloc, xrealloc,
62684         and xstrdup.  Instead, include "xalloc.h".
62685
62686         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
62687         unlocked-io.h.
62688         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
62689         Likewise.
62690         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
62691
62692         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
62693         Reported by Padraig Brady.
62694
62695         * lib/mkstemp.c: #undef mkstemp.
62696         Include config.h.
62697         (rpl_mkstemp): Rename from mkstemp.
62698         Protoize.
62699
62700 2001-11-16  Jim Meyering  <meyering@lucent.com>
62701
62702         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
62703         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
62704         determine the amount of total physical memory, use pstat_getstatic.
62705         HPUX-11 doesn't define _SC_PHYS_PAGES.
62706         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
62707         If sysconf couldn't be used to determine the amount of available
62708         physical memory, use both pstat_getstatic and pstat_getdynamic.
62709         Based on a patch from Bob Proulx.
62710
62711 2001-11-10  Jim Meyering  <meyering@lucent.com>
62712
62713         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
62714         (jm_PREREQ): Use it.
62715
62716 2001-11-09  Jim Meyering  <meyering@lucent.com>
62717
62718         * m4/jm-macros.m4: Require autoconf-2.52f.
62719         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
62720         Use these AC_-prefixed names, not the AM_-prefixed ones.
62721
62722         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
62723
62724 2001-11-05  Jim Meyering  <meyering@lucent.com>
62725
62726         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
62727
62728 2001-11-04  Jim Meyering  <meyering@lucent.com>
62729
62730         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
62731         $DEFS.
62732
62733 2001-11-03  Jim Meyering  <meyering@lucent.com>
62734
62735         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
62736         of AC_DEFUN.
62737
62738         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
62739         know the name of the variable in the macro definition.
62740
62741 2001-11-03  Jim Meyering  <meyering@lucent.com>
62742
62743         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
62744         in argmatch_to_argument call.
62745
62746         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
62747         argument.
62748
62749         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
62750         e.g., a fault due to an attempt to free a NULL pointer.
62751
62752 2001-11-01  Jim Meyering  <meyering@lucent.com>
62753
62754         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
62755         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
62756
62757 2001-11-01  Jim Meyering  <meyering@lucent.com>
62758
62759         * lib/dirfd.c, lib/dirfd.h: New files.
62760         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
62761
62762         * lib/hash.c (hash_print) [TESTING]: Clean up.
62763
62764 2001-10-22  Paul Eggert  <eggert@twinsun.com>
62765
62766         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
62767         to avoid a warning if -Wall.
62768
62769 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
62770
62771         * README: New file
62772         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
62773         (per RMS's instructions, this is now the canonical source)
62774         * lgpl/, gpl/: New directories.
62775
62776 2001-10-21  Paul Eggert  <eggert@twinsun.com>
62777
62778         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
62779
62780 2001-10-21  Jim Meyering  <meyering@lucent.com>
62781
62782         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
62783         this code would end up calling gettext even in packages built
62784         with --disable-nls.
62785         * lib/getopt.c (_): Likewise.
62786         * lib/regex.c (_): Likewise.
62787
62788 2001-10-20  Paul Eggert  <eggert@twinsun.com>
62789
62790         * m4/error.m4 (jm_PREREQ_ERROR):
62791         Do not invoke AC_CHECK_FUNCS with strerror_r, as
62792         AC_FUNC_STRERROR_R does that.
62793         Check for strerror declaration.
62794
62795         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
62796         are supposed to have them these days.
62797         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
62798         Merge changes from latest Autoconf CVS.
62799         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
62800         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
62801         POSIX decided to standardize on the int flavor of strerror_r.
62802
62803 2001-10-20  Paul Eggert  <eggert@twinsun.com>
62804
62805         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
62806         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
62807         Use strerror_r that is only a macro, even if it is not a function.
62808         (strerror): Check for HAVE_DECL_STRERROR before declaring.
62809         (private_strerror): Use prototypes, not old-style function definition.
62810         (print_errno_message): New function.
62811         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
62812         char*-flavored one.
62813         (error_tail, error, error_at_line): Use it.
62814
62815 2001-10-11  Jim Meyering  <meyering@lucent.com>
62816
62817         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
62818         and quote_n (1, ... to avoid clobbering a buffer.
62819
62820 2001-10-05  Jim Meyering  <meyering@lucent.com>
62821
62822         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
62823         hash-pjw.h.
62824         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
62825         * lib/hash-pjw.h: New file.
62826
62827 2001-09-30  Jim Meyering  <meyering@lucent.com>
62828
62829         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
62830         `struct fsstat' has the `f_fstypename' member.
62831         Use that to define FS_TYPE, which is now used to make
62832         the getfsstat link test tighter.
62833
62834 2001-09-30  Jim Meyering  <meyering@lucent.com>
62835
62836         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
62837         Include <sys/ucred.h>, for Apple Darwin.
62838         Include sys/mount.h and sys/fs_types.h only if available.
62839         (FS_TYPE): Define.
62840         (read_filesystem_list): Use FS_TYPE.
62841
62842 2001-09-29  Paul Eggert  <eggert@twinsun.com>
62843
62844         * lib/exclude.c (excluded_filename): 0 -> false, since it's
62845         a boolean context.
62846
62847 2001-09-29  Jim Meyering  <meyering@lucent.com>
62848
62849         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
62850         [one-argument getmntent function]): Include stdio.h before mntent.h.
62851         SunOS 4.1.x needs it for the declaration of `FILE'.
62852         Patch by Volker Borchert.
62853
62854         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
62855         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
62856         sys/fs_types.h, and make the link-test for getfsstat guard #include
62857         directives with appropriate #if HAVE_*_H tests so that we can
62858         detect getfsstat on Apple Darwin1.3.7 systems.
62859         Reported by Nelson Beebe.
62860         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
62861
62862 2001-09-28  Paul Eggert  <eggert@twinsun.com>
62863
62864         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
62865         #defines strtoimax.  Also treat the other strto* functions
62866         like strtoimax.
62867
62868         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
62869         Check for strtoul and strtoumax,
62870         as those declarations are made even in the signed case.
62871         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
62872         Likewise, for strtol and strtoimax.
62873
62874 2001-09-28  Paul Eggert  <eggert@twinsun.com>
62875
62876         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
62877         #defines strtoimax.  Also treat the other strto* functions
62878         like strtoimax.
62879
62880         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
62881         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
62882         (strtoimax, strtoumax): Do not declare if already defined as a macro.
62883
62884 2001-09-26  Jim Meyering  <meyering@lucent.com>
62885
62886         Most macros in unlocked-io.h had the wrong number of arguments.
62887         * lib/gen-uio: New script.
62888         (USE_UNLOCKED_IO): Define to 1 if not already defined.
62889         * lib/unlocked-io.hin: Remove file.
62890         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
62891         rather than trying to embed it here.
62892         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
62893         Reported by Padraig Brady.
62894
62895 2001-09-25  Volker Borchert  <bt@teknon.de>
62896
62897         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
62898         `result'.
62899
62900 2001-09-24  Jim Meyering  <meyering@lucent.com>
62901
62902         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
62903
62904 2001-09-23  Jim Meyering  <meyering@lucent.com>
62905
62906         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
62907         instead of the mere test for existence of mntent.h.  The latter
62908         would get a false-positive on AIX 3.4 systems.
62909         In the outer getmntent if-block, don't die if neither of the getmntent
62910         tests succeeds.  Instead, just fall through and continue with the
62911         remaining tests.
62912
62913 2001-09-23  Jim Meyering  <meyering@lucent.com>
62914
62915         * lib/mountlist.c: Remove useless parentheses in #if directives.
62916         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
62917         the deprecated MOUNTED symbol is no longer defined in mntent.h.
62918
62919 2001-09-22  Jim Meyering  <meyering@lucent.com>
62920
62921         * m4/gettext.m4: New file.  From gettext.
62922         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
62923         * m4/progtest.m4: Likewise
62924         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
62925         * m4/glibc21.m4: Likewise.
62926
62927         * m4/libintl.m4: Remove.  No longer used.
62928
62929 2001-09-22  Jim Meyering  <meyering@lucent.com>
62930
62931         * lib/localcharset.c: Update from latest gettext.
62932         * lib/config.charset: Likewise.
62933
62934 2001-09-20  Jim Meyering  <meyering@lucent.com>
62935
62936         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
62937         strtoimax.
62938         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
62939         strtoumax.
62940
62941 2001-09-20  Jim Meyering  <meyering@lucent.com>
62942
62943         * lib/xstrtol.c (strtoimax): Guard declaration with
62944         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
62945         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
62946         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
62947         (strtoumax): Likewise, for completeness (it wasn't necessary).
62948
62949 2001-09-17  Paul Eggert  <eggert@twinsun.com>
62950
62951         * lib/strtoimax.c (HAVE_LONG_LONG):
62952         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
62953         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
62954         to work around bug in IBM C compiler.
62955
62956 2001-09-17  Jim Meyering  <meyering@lucent.com>
62957
62958         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
62959         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
62960         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
62961         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
62962         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
62963         whenever the right hand side need not be expanded by the shell.
62964
62965 2001-09-16  Paul Eggert  <eggert@twinsun.com>
62966
62967         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
62968         library.  It's not correct, as some older glibcs are buggy.
62969         fnmatch wasn't fixed until glibc 2.2.
62970
62971         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
62972         special shell magic here.
62973
62974 2001-09-16  Jim Meyering  <meyering@lucent.com>
62975
62976         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
62977         * m4/jm-macros.m4: Require it.
62978
62979 2001-09-16  Jim Meyering  <meyering@lucent.com>
62980
62981         * lib/mkdir.c: New file.
62982
62983 2001-09-15  Jim Meyering  <meyering@lucent.com>
62984
62985         * m4/jm-macros.m4: Check for help2man.
62986
62987 2001-09-11  Jim Meyering  <meyering@lucent.com>
62988
62989         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
62990         The body, by Paul Eggert, was moved here from configure.in.
62991         * m4/jm-macros.m4: Require UTILS_HOST_OS.
62992
62993 2001-09-04  Paul Eggert  <eggert@twinsun.com>
62994
62995         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
62996         (jm_PREREQ): Use it.
62997
62998 2001-09-04  Paul Eggert  <eggert@twinsun.com>
62999
63000         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
63001         Use ssize_t, not int, to store result of readlink.
63002         Check for ssize_t overflow as well as size_t overflow,
63003         as POSIX says the result of readlink is implementation-defined
63004         when ssize_t overflows.
63005         Remove unnecessary cast to char*.
63006         Use free+malloc instead of realloc, as the storage doesn't need
63007         to be preserved and it's clearer and can be more efficient that way.
63008         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
63009         * lib/xreadlink.h (xreadlink): Update prototype.
63010
63011 2001-09-04  Paul Eggert  <eggert@twinsun.com>
63012
63013         * lib/xgetcwd.c: Revert some of the previous change; intead,
63014         fix the HAVE_GETCWD_NULL code to behave more like the
63015         !HAVE_GETCWD_NULL code used to.
63016
63017         Include "xalloc.h".
63018         (xgetcwd): Do not return NULL when memory is exhausted; instead,
63019         invoke xalloc_die.
63020
63021 2001-09-03  Paul Eggert  <eggert@twinsun.com>
63022
63023         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
63024         sys/param.h, as pathmax.h includes them.
63025
63026 2001-09-03  Paul Eggert  <eggert@twinsun.com>
63027
63028         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
63029         (jm_PREREQ_XGETCWD): New macro.
63030
63031         * m4/getcwd.m4: New file.
63032
63033 2001-09-03  Paul Eggert  <eggert@twinsun.com>
63034
63035         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
63036         like the HAVE_GETCWD_NULL code.
63037         Include pathmax.h if not HAVE_GETCWD.
63038         Do not include xalloc.h.
63039         (INITIAL_BUFFER_SIZE): New symbol.
63040         Do not use xmalloc / xrealloc, since the caller is responsible for
63041         handling errors.  Preserve errno around `free' during failure.
63042         Do not overrun buffer when using getwd.
63043
63044 2001-09-03  Paul Eggert  <eggert@twinsun.com>
63045
63046         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
63047         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
63048         getcwd (NULL, 0).
63049
63050 2001-09-03  Paul Eggert  <eggert@twinsun.com>
63051
63052         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
63053         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
63054         spotted by Jim Meyering.
63055
63056 2001-09-03  Jim Meyering  <meyering@lucent.com>
63057
63058         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
63059         failure.
63060
63061 2001-09-02  Jim Meyering  <meyering@lucent.com>
63062
63063         * lib/error.c: Update from GNU libc.
63064
63065 2001-09-01  Jim Meyering  <meyering@lucent.com>
63066
63067         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
63068         Used by df.
63069
63070 2001-09-01  Jim Meyering  <meyering@lucent.com>
63071
63072         * lib/xreadlink.c: New file.
63073         * lib/xreadlink.h: New file.
63074         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
63075         xreadlink.h.
63076
63077         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
63078         doesn't conflict with sparc Solaris 7's definition in
63079         /usr/include/sys/int_types.h.
63080
63081         * lib/exclude.c: Use `""', not `<>' to #include non-system header
63082         files.
63083         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
63084         and strncasecmp as r-values.  Unixware didn't have declarations.
63085
63086 2001-08-31  Paul Eggert  <eggert@twinsun.com>
63087
63088         * lib/xstrtol.h: Add copyright notice.
63089         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
63090         LONGINT_INVALID_SUFFIX_CHAR.
63091
63092 2001-08-31  Paul Eggert  <eggert@twinsun.com>
63093
63094         * lib/xstrtol.c (strtoimax): New decl.
63095
63096 2001-08-31  Paul Eggert  <eggert@twinsun.com>
63097
63098         * lib/xgetcwd.c: Don't include pathmax.h.
63099         Include stdlib.h and unistd.h if available.
63100         Include xalloc.h.
63101         (xmalloc, xstrdup, free): Remove decls.
63102         (xgetcwd): Don't assume sizes fit in unsigned.
63103         Check for overflow when computing sizes.
63104         Simplify reallocation code.
63105
63106 2001-08-31  Paul Eggert  <eggert@twinsun.com>
63107
63108         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
63109         a directory's st_size can have an arbitrary value, so the old
63110         usage could waste an arbitrary amount of memory.  All uses
63111         changed.
63112         * lib/savedir.h: Update prototype.
63113
63114 2001-08-31  Paul Eggert  <eggert@twinsun.com>
63115
63116         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
63117
63118         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
63119         old strtoimax.c.
63120
63121         Also, make the following further changes to make this file's
63122         configuration more similar to that of strtol.c:
63123         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
63124         (strtoumax, uintmax_t, strtoull, strtol): Remove.
63125         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
63126         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
63127         changed to signed values.
63128
63129         And make the following changes as well:
63130         Fix copyright notice, as 1999 was missing.
63131         (verify): New macro.
63132         (strtoimax): Check sizes at compile-time, not run-time.
63133         Prefer strtol to strtoll if both work.
63134         (main): Remove; it was not that useful and was a pain to maintain.
63135
63136         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
63137
63138 2001-08-31  Jim Meyering  <meyering@lucent.com>
63139
63140         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
63141         Use an initial, malloc'd, buffer of length 128 rather than
63142         a statically allocated one of length 1024.
63143
63144 2001-08-30  Paul Eggert  <eggert@twinsun.com>
63145
63146         Simplify code, partly by assuming autoconf 2.52 semantics.
63147
63148         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
63149
63150         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
63151         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
63152         All uses removed.
63153         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
63154         Move AC_REQUIRE to next-to-top level, to avoid confusion.
63155         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
63156         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
63157         jm_AC_HEADER_INTTYPES_H.
63158         * m4/jm-macros.m4 (jm_MACROS): Likewise.
63159
63160         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
63161
63162         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
63163         Quote first arg of AC_DEFUN.
63164         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
63165         since they are needed to parse the include file even if we need
63166         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
63167         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
63168         but with opposite signedness.
63169
63170 2001-08-30  Paul Eggert  <eggert@twinsun.com>
63171
63172         Merge 'exclude' changes from tar 1.13.22.
63173         This fixes one or two unlikely storage allocation overflow bugs,
63174         but doesn't change user-visible behavior otherwise.
63175
63176 2001-08-30  Paul Eggert  <eggert@twinsun.com>
63177
63178         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
63179         (jm_PREREQ_EXCLUDE): New macro.
63180
63181 2001-08-30  Paul Eggert  <eggert@twinsun.com>
63182
63183         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
63184         tm to be declared.
63185
63186 2001-08-30  Paul Eggert  <eggert@twinsun.com>
63187
63188         * lib/hash.c: Remove '2001' from copyright notice.
63189
63190 2001-08-30  Paul Eggert  <eggert@twinsun.com>
63191
63192         * lib/full-write.h: New file.
63193         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
63194         * lib/full-write.c: Correct credits, as cccp.c no longer
63195         exists and anyway it was so heavily changed from the old cccp
63196         code as to be unrecognizable.  Include full-write.h.
63197         (full_write) Return size_t, with short writes meaning failure.
63198         All callers changed.  This fixes a bug with large buffers
63199         on 64-bit hosts.
63200         * lib/utime.c: Include full-write.h.
63201
63202 2001-08-30  Paul Eggert  <eggert@twinsun.com>
63203
63204         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
63205         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
63206         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
63207         Include if available.
63208         (<xalloc.h>): Include
63209         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
63210         (verify): New macro.  Use it to verify that EXCLUDE macros do not
63211         collide with FNM macros.
63212         (struct patopts): New struct.
63213         (struct exclude): Use it, as exclude patterns now come with options.
63214         (new_exclude): Support above changes.
63215         (new_exclude, add_exclude_file):
63216         Initial size must now be a power of two to simplify overflow checking.
63217         (free_exclude, fnmatch_no_wildcards): New function.
63218         (excluded_filename): No longer requires options arg, as the options
63219         are determined by add_exclude.  Now returns bool, not int.
63220         (excluded_filename, add_exclude):
63221         Add support for the fancy new exclusion options.
63222         (add_exclude, add_exclude_file): Now takes int options arg.
63223         Check for arithmetic overflow when computing sizes.
63224         (add_exclude_file): xrealloc might modify errno, so don't
63225         realloc until after errno might be used.
63226
63227         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
63228         New macros.
63229         (free_exclude): New decl.
63230         (add_exclude, add_exclude_file): Now takes int options arg.
63231         (excluded_filename): No longer requires options arg, as the options
63232         are determined by add_exclude.  Now returns bool, not int.
63233
63234 2001-08-30  Paul Eggert  <eggert@twinsun.com>
63235
63236         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
63237
63238 2001-08-27  Jim Meyering  <meyering@lucent.com>
63239
63240         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
63241
63242         * lib/version-etc.c (N_): Remove definition.
63243         Revert most of last change.
63244         Instead, simply don't mark the `Copyright...' string for translation.
63245         Based on advice from Paul Eggert.
63246
63247         * lib/strtoxmax.c: Tweak comment.
63248
63249 2001-08-26  Jim Meyering  <meyering@lucent.com>
63250
63251         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
63252
63253         * m4/xstrtoimax.m4: New file.
63254         * m4/xstrtoumax.m4: Add comments explaining why we
63255         AC_REPLACE_FUNCS(strtol).
63256
63257 2001-08-26  Jim Meyering  <meyering@lucent.com>
63258
63259         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
63260         of copyright with `%s' so translators don't get an untranslated
63261         message in 2002.
63262         (COPYRIGHT_YEAR): Define.
63263         (version_etc): Use fprintf rather than fputs.
63264         Suggestion from Ulrich Drepper.
63265
63266         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
63267
63268         * lib/strtoll.c: New file, from GNU libc.
63269         * lib/xstrtoimax.c: New file.
63270
63271         * lib/xstrtol.h: Add xstrtoimax.
63272         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
63273         * lib/strtoimax.c: New file.  Likewise, but first define
63274         STRTOUXMAX_SIGNED.
63275
63276         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
63277         ...
63278         * lib/strtoxmax.c: ... then renamed to this.
63279
63280 2001-08-18  Paul Eggert  <eggert@twinsun.com>
63281
63282         * m4/inttypes.m4: Add AC_PREREQ(2.13).
63283         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
63284         (jm_AC_TYPE_INTMAX_T): New macro.
63285         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
63286
63287         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
63288
63289         * m4/longlong.m4: Renamed from ulonglong.m4.
63290         * m4/inttypes.m4: Renamed from inttypes_h.m4.
63291         * m4/uintmax_t.m4: Removed.
63292
63293 2001-08-13  Paul Eggert  <eggert@twinsun.com>
63294
63295         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
63296         Port to Solaris 8, where 'sed' requires a space after the 'r'
63297         command, and where sh dislikes "$/".  Clean up the spacing a bit.
63298         Redirect output to $tmp just once.
63299
63300 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
63301
63302         * lib/addext.c (<errno.h>): Include.
63303         (errno): Declare if not defined.
63304         (addext): Work correctly when pathconf returns -1 and leaves
63305         errno alone because there is no limit.  Also, work even if
63306         pathconf returns a value greater than SIZE_MAX.
63307
63308 2001-08-12  Jim Meyering  <meyering@lucent.com>
63309
63310         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
63311         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
63312         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
63313         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
63314         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
63315         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
63316         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
63317         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
63318         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
63319         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
63320         utime.m4, utimes.m4, xstrtoumax.m4:
63321         Quote the first argument in each use of AC_DEFUN.
63322
63323 2001-08-12  Jim Meyering  <meyering@lucent.com>
63324
63325         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
63326         Simply `return getcwd (NULL, 0);'.
63327         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
63328         Use 1300 as initial value for length, not PATH_MAX.
63329
63330         * lib/pathmax.h: Clean up cpp syntax.
63331
63332 2001-08-12  Jim Meyering  <meyering@lucent.com>
63333
63334         * lib/gettimeofday.c: New file.
63335         * lib/gtod.h: New file.
63336         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
63337
63338 2001-08-05  Jim Meyering  <meyering@lucent.com>
63339
63340         * m4/jm-macros.m4: Require autoconf-2.52.
63341
63342 2001-08-04  Jim Meyering  <meyering@lucent.com>
63343
63344         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
63345         stmt, to get in sync with glibc.
63346
63347 2001-08-03  Paul Eggert  <eggert@twinsun.com>
63348
63349         The following changes are from gettext 0.10.39 as maintained by
63350         Bruno Haible.
63351
63352         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
63353         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
63354         with inverted sense.  All uses changed.
63355
63356         * lib/mbswidth.c: Don't include <limits.h>.
63357         Include <stdlib.h> and <string.h> unconditionally.
63358         (iswcntrl, mbsinit, ISCNTRL): New macros.
63359         (mbsnwidth): Use K&R style function declarations.
63360         Don't bother checking for MB_LEN_MAX == 1, since the compiler
63361         can optimize it when MB_CUR_MAX == 1.
63362         The width of control characters is zero, not 1.
63363
63364 2001-08-03  Paul Eggert  <eggert@twinsun.com>
63365
63366         The following changes are from gettext 0.10.39 as maintained by
63367         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
63368
63369         * m4/codeset.m4: Upgrade to serial AM1.
63370         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
63371         all uses changed.  Quote first arg of AC_DEFUN.
63372         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
63373
63374         * m4/iconv.m4: Upgrade to serial AM2.
63375         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
63376         Add --with-libconv-prefix.
63377         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
63378         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
63379         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
63380         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
63381         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
63382
63383         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
63384         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
63385         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
63386         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
63387         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
63388         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
63389         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
63390         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
63391         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
63392
63393         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
63394         string.h any more.
63395
63396         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
63397         not the default value.
63398
63399         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
63400         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
63401         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
63402         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
63403         Also check for iswcntrl, used for wcwidth fallback.
63404         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
63405         to Autoconf 2.13.
63406
63407 2001-08-03  Jim Meyering  <meyering@lucent.com>
63408
63409         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
63410         as it was in the original.  Reported by Paul Eggert.
63411
63412 2001-07-16  Jim Meyering  <meyering@lucent.com>
63413
63414         * m4/gettimeofday.m4: New file.
63415         Prompted by a report from Bernhard Baehr.
63416
63417 2001-07-15  Jim Meyering  <meyering@lucent.com>
63418
63419         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
63420         stuff. Now it's in ../Makefile.cfg.
63421
63422 2001-07-15  Jim Meyering  <meyering@lucent.com>
63423
63424         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
63425         (BUILT_SOURCES): Add unlocked-io.h.
63426         (io_functions): Define.
63427         (unlocked-io.h): New rule.
63428         (DISTCLEANFILES): Add unlocked-io.h.
63429         (all-local): Depend on unlocked-io.h, to ensure it is created.
63430
63431         * lib/unlocked-io.hin: New file
63432
63433         * lib/regex.c: Update from glibc.
63434
63435 2001-07-05  Jim Meyering  <meyering@lucent.com>
63436
63437         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
63438         recommendation.
63439         (libfetish_a_SOURCES): Put all .h files here instead.
63440         Remove a thus-exposed (better checks in automake) duplicate and
63441         two unnecessary .h files.
63442
63443 2001-07-04  Jim Meyering  <meyering@lucent.com>
63444
63445         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
63446         that generates jm-glibc-io.m4 so that it doesn't trigger any make
63447         distcheck failure.
63448
63449 2001-07-02  Jim Meyering  <meyering@lucent.com>
63450
63451         The following changes were prompted by suggestions from Bruno Haible.
63452
63453         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
63454         is now generated.
63455         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
63456         definition of EXTRA_DIST.
63457         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
63458         ensure that the generated file is created/updated whenever the list
63459         of $(unlocked_functions) is changed.
63460         (jm-glibc-io.m4): New rule.
63461         (unlocked-io.h): New rule -- currently unused.
63462
63463 2001-06-24  Jim Meyering  <meyering@lucent.com>
63464
63465         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
63466         unmatched right bracket, rather than kludging it with an extra,
63467         falsely-matching quote in a comment.  Patch by Akim Demaille.
63468
63469 2001-06-11  Jim Meyering  <meyering@lucent.com>
63470
63471         * lib/regex.c: Update from GNU libc.
63472
63473 2001-05-27  Jim Meyering  <meyering@lucent.com>
63474
63475         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
63476         Check for ut_type in struct utmp.
63477
63478 2001-05-27  Jim Meyering  <meyering@lucent.com>
63479
63480         * lib/readutmp.h (UT_TYPE): Define.
63481
63482 2001-05-24  Jim Meyering  <meyering@lucent.com>
63483
63484         * lib/argmatch.c: Include "quote.h".
63485         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
63486         quote function.  Reported by Göran Uddeborg.
63487
63488 2001-05-22  Jim Meyering  <meyering@lucent.com>
63489
63490         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
63491         now that we use the package-supplied version unconditionally.
63492         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
63493
63494 2001-05-21  Jim Meyering  <meyering@lucent.com>
63495
63496         * m4/regex.m4: Change a couple backticks to single quotes to avoid
63497         shell syntax errors.
63498
63499 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
63500
63501         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
63502
63503 2001-05-20  Paul Eggert  <eggert@twinsun.com>
63504
63505         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
63506         Don't bother to check library strftime, since
63507         we'll be using our own my_strftime function anyway.
63508         Define my_strftime instead of strftime.
63509
63510 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
63511
63512         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
63513         which is not yet declared.
63514
63515 2001-05-15  Jim Meyering  <meyering@lucent.com>
63516
63517         * m4/regex.m4: Use proper quoting so brackets appear in the test
63518         program.
63519         Reported by, and with help from, Bruno Haible.
63520
63521 2001-05-13  Jim Meyering  <meyering@lucent.com>
63522
63523         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
63524         undefined.
63525
63526 2001-05-11  Paul Eggert  <eggert@twinsun.com>
63527
63528         dirname code cleanup.  base_name now behaves more compatibly
63529         with POSIX basename when given file names that have trailing
63530         slashes, and similarly for dir_name.  Add new primitives
63531         base_len and dir_len.  Put the directory-name-related decls
63532         into dirname.h.
63533
63534         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
63535         * lib/backupfile.c (base_name): Likewise.
63536         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
63537         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
63538         * lib/makepath.c (strip_trailing_slashes): Likewise.
63539         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
63540         ISSLASH): Likewise.
63541         * lib/rename.c (strip_trailing_slashes): Likewise.
63542         * lib/same.c (base_name): Likewise.
63543         * lib/stripslash.c (ISSLASH): Likewise.
63544
63545         * lib/addext.c: Include <dirname.h> after size_t is defined.
63546         * lib/backupfile.c: Likewise.
63547
63548         * lib/addext.c (addext): Use base_len to trim redundant
63549         trailing slashes instead of doing it ourselves.
63550         But do not trim the last slash if it is not redundant.
63551
63552         * lib/backupfile.c (find_backup_file_name,
63553         max_backup_version): Use base_len instead of rolling it ourselves.
63554         Handle the case of "" and (on DOS) "C:" correctly.
63555
63556         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
63557         needed. Include <string.h>, <dirname.h>.
63558         (base_name): Allow file names ending in slashes, other than names
63559         that are all slashes.  In this case, return the basename followed
63560         by the slashes.  This is more general, and can be used in places
63561         where the original base_name purposely had an assertion failure.
63562         (base_len): New function.
63563
63564         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
63565         Do not include <assert.h>; no longer needed.
63566         Include xalloc.h.
63567         (memrchr): Remove decl.
63568         (dir_name_r): Remove.
63569         (dir_len): Renamed from dirlen.  All callers changed.
63570         Rewrite in terms of base_name, for simplicity and consistency.
63571         (dir_name): Never return NULL.  All callers changed.
63572         Do not include <stdlib.h> in test program; no longer needed.
63573         return 0; is fine for test program.
63574
63575         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
63576         New macros.
63577         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
63578
63579         * lib/path-concat.c (path_concat): Use base_len to compute
63580         base length, not strlen; this means we cannot rely on memcpy
63581         to null-terminate.
63582
63583         * lib/same.c (STREQ): Remove.
63584         (same_name): Handle the case where the basename ends in trailing '/'.
63585
63586         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
63587         a slash was stripped.  Do not strip the last slash after a
63588         file system prefix.
63589
63590 2001-05-11  Paul Eggert  <eggert@twinsun.com>
63591
63592         * lib/Makefile.am (libfetish_a_SOURCES):
63593         Add strftime.c, since we now compile it on all hosts.
63594
63595         * lib/strftime.c (my_strftime):
63596         Define to nstrftime if emacs, but only if my_strftime is not defined.
63597         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
63598         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
63599         Add one more extra argument: a nanoseconds value.
63600         All uses changed.
63601         (ns): New macro.
63602         (my_strftime function): Add %N format.
63603         (emacs_strftimeu): Renamed from emacs_strftime,
63604         with extra ut argument.
63605
63606 2001-05-09  Paul Eggert  <eggert@twinsun.com>
63607
63608         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
63609
63610 2001-04-21  Jim Meyering  <meyering@lucent.com>
63611
63612         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
63613         doesn't interfere.
63614
63615 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
63616
63617         * m4/ftruncate.m4: Check for chsize.
63618         Link with ftruncate.o unconditionally if ftruncate is missing.
63619         This was required when cross-compiling to i586-mingw32msvc.
63620
63621 2001-04-08  Jim Meyering  <meyering@lucent.com>
63622
63623         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
63624         recomputed; that's necessary when the offset spans a DST transition.
63625         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
63626
63627 2001-04-02  Jim Meyering  <meyering@lucent.com>
63628
63629         * lib/regex.h, regex.c: Update from GNU libc.
63630
63631 2001-03-24  Jim Meyering  <meyering@lucent.com>
63632
63633         * m4/jm-macros.m4: Require autoconf-2.49d.
63634
63635 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
63636
63637         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
63638
63639 2001-03-19  Paul Eggert  <eggert@twinsun.com>
63640
63641         * lib/version-etc.c (version_etc_copyright): Update to 2001.
63642
63643 2001-03-17  Jim Meyering  <meyering@lucent.com>
63644
63645         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
63646         now that the version in autoconf is equivalent.
63647         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
63648
63649         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
63650         Suggestion from Akim Demaille.
63651
63652         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
63653         (jm_PREREQ_TEMPNAME): New function.
63654
63655 2001-03-16  Paul Eggert  <eggert@twinsun.com>
63656
63657         * lib/tempname.c (uint64_t): Define to uintmax_t if
63658         not defined, and if UINT64_MAX is not defined.
63659         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
63660         Reported by John David Anglin.
63661
63662 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
63663
63664         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
63665         resolve alias if codeset is empty.
63666         * lib/config.charset (BeOS): Use wildcard syntax.
63667
63668 2001-03-13  Jim Meyering  <meyering@lucent.com>
63669
63670         * lib/path-concat.c (path_concat)
63671         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
63672         concatenating e.g., `C:' and `foo'.
63673         From Bruno Haible.
63674
63675 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
63676
63677         * lib/localcharset.c (locale_charset): Don't use
63678         setlocale(LC_CTYPE,NULL). Don't return NULL.
63679         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
63680
63681 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
63682
63683         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
63684         support for DOS/DJGPP.
63685
63686 2001-03-01  Paul Eggert  <eggert@twinsun.com>
63687
63688         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
63689         lacks mkstemp.  Compile our own tempname.c if we compile our own
63690         mkstemp.c, as mkstemp relies on tempname.
63691
63692 2001-03-01  Jim Meyering  <meyering@lucent.com>
63693
63694         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
63695         AH_VERBATIM really does output its argument verbatim.
63696
63697 2001-02-28  Paul Eggert  <eggert@twinsun.com>
63698
63699         * lib/Makefile.am (libfetish_a_SOURCES):
63700         Add dup-safer.c, fopen-safer.c.
63701         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
63702
63703         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
63704         * lib/unistd-safer.h: New files.
63705
63706 2001-02-25  Paul Eggert  <eggert@twinsun.com>
63707
63708         The mkstemp replacement is taken from glibc 2.2.2, with some
63709         portability fixes for use outside glibc, as follows:
63710
63711         * lib/tempname.c (struct_stat64): New macro.
63712         (direxists, __gen_tempname): Use it.
63713         This avoids a portability problem with Solaris 8.
63714
63715         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
63716         (<stddef.h>, <stdint.h>, <string.h>):
63717         Include only if STDC_HEADERS || _LIBC.
63718         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
63719         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
63720         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
63721         (__set_errno): Define this macro if <errno.h> doesn't.
63722         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
63723         Define these macros if <stdio.h> doesn't.
63724         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
63725         Define these macros if <sys/stat.h>
63726         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
63727         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
63728         __xstat64): Define if not _LIBC.
63729         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
63730         (__gen_tempname): Invoke gettimeofday only if
63731         HAVE_GETTIMEOFDAY || _LIBC;
63732         otherwise, fall back on plain "time".
63733         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
63734
63735         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
63736
63737         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
63738
63739 2001-02-18  Paul Eggert  <eggert@twinsun.com>
63740
63741         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
63742
63743 2001-02-17  Paul Eggert  <eggert@twinsun.com>
63744
63745         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
63746         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
63747         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
63748         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
63749
63750 2001-02-17  Paul Eggert  <eggert@twinsun.com>
63751
63752         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
63753         Remove workaround macros for hosts that have mbrtowc but not
63754         mbstate_t, as we now insist on proper declarations for both
63755         before using mbrtowc.
63756
63757 2001-02-17  Jim Meyering  <meyering@lucent.com>
63758
63759         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
63760         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
63761         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
63762         UnixWare 7.1.1.
63763
63764         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
63765         rather than AC_CACHE_VAL.
63766
63767 2001-02-17  Jim Meyering  <meyering@lucent.com>
63768
63769         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
63770         around included file name.
63771
63772         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
63773
63774         * lib/strftime.c: Update from GNU libc (the only changes were to
63775         comments).
63776
63777 2001-02-17  Jim Meyering  <meyering@lucent.com>
63778
63779         * lib/regex.c: Update from libc.
63780
63781 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
63782
63783         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
63784         clash.
63785
63786 2001-02-16  Paul Eggert  <eggert@twinsun.com>
63787
63788         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
63789         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
63790         Reported by Mark Hounschell via Paul Eggert.
63791
63792 2001-02-07  Jim Meyering  <meyering@lucent.com>
63793
63794         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
63795
63796 2001-02-05  Jim Meyering  <meyering@lucent.com>
63797
63798         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
63799         it includes the patch required for `large file' support with at least
63800         HP-UX's 10.20 /bin/cc.
63801
63802 2001-02-03  Jim Meyering  <meyering@lucent.com>
63803
63804         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
63805         AS_IF, now that it works once again (mysteriously).
63806         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
63807
63808 2001-01-30  Jim Meyering  <meyering@lucent.com>
63809
63810         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
63811         * m4/chown.m4: Rename conftestchown to conftest.chown.
63812         * m4/rename.m4: s/conftestdir/conftest.d1/ and
63813         s/conftestdir2/conftest.d2/.
63814         * m4/utimes.m4: s/conftestdata/conftest.data/
63815         Inspired by Pavel Roskin's change in autoconf.
63816
63817 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
63818
63819         * lib/config.charset: Update for FreeBSD 4.2.
63820
63821 2001-01-27  Jim Meyering  <meyering@lucent.com>
63822
63823         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
63824         a use of AS_IF.
63825         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
63826
63827 2001-01-26  Jim Meyering  <meyering@lucent.com>
63828
63829         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
63830         quotearg.c includes it.
63831
63832 2001-01-26  Jim Meyering  <meyering@lucent.com>
63833
63834         * lib/quotearg.c: Include stddef.h.
63835         * lib/quote.c: Include stddef.h.
63836         Reported by Axel Kittenberger.
63837
63838         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
63839         line in double quotes so that it evokes a better diagnostic.
63840         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
63841         Reported by Axel Kittenberger.
63842
63843 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
63844
63845         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
63846         as if it was a `charset'.
63847
63848 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
63849
63850         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
63851         has const.
63852
63853 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
63854
63855         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
63856         to avoid a warning.  Add back 'const' to inptr.
63857
63858 2001-01-20  Jim Meyering  <meyering@lucent.com>
63859
63860         Be sure that headers are checked before used in code compiled
63861         for the type checks.
63862         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
63863         In place of that, invoke jm_CHECK_ALL_TYPES.
63864         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
63865         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
63866         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
63867         The check for ssize_t was mistakenly run before the test for unistd.h.
63868
63869         The configure-time check for stdbool.h was missing.
63870         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
63871         (jm_PREREQ_HASH): New function.
63872
63873 2001-01-17  Jim Meyering  <meyering@lucent.com>
63874
63875         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
63876         for autoconf-2.49c.
63877         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
63878
63879 2001-01-16  Jim Meyering  <meyering@lucent.com>
63880
63881         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
63882         From Bruno Haible.
63883
63884 2001-01-14  Jim Meyering  <meyering@lucent.com>
63885
63886         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
63887         foo and bar.  Create conftestdir/ in the script, not in the C code.
63888         Remove directories in the script, not in the C code.
63889         Remove conftestdir{,2} before trying to create the directory.
63890         Make the entire configure script fail if the mkdir fails.
63891
63892 2001-01-14  Jim Meyering  <meyering@lucent.com>
63893
63894         * lib/rename.c: New file.  From Volker Borchert.
63895         Include stdlib.h, string.h or strings.h, and xalloc.h.
63896         Use strip_trailing_slashes rather than open-coding it.
63897
63898 2001-01-03  Paul Eggert  <eggert@twinsun.com>
63899
63900         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
63901
63902 2001-01-03  Jim Meyering  <meyering@lucent.com>
63903
63904         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
63905         of local `inptr' to avoid warning with some system declarations of
63906         iconv.
63907
63908 2001-01-02  Volker Borchert  <bt@teknon.de>
63909
63910         * m4/rename.m4: New file.
63911         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
63912
63913 2001-01-01  Jim Meyering  <meyering@lucent.com>
63914
63915         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
63916         even on systems with utmpx.h.  It's necessary for the declaration of
63917         utmp's ut_user member.  Reported by Andreas Jaeger.
63918
63919         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
63920         available. They are required for the declarations of getgrgid and
63921         getpwuid resp.
63922         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
63923         Reported by Andreas Jaeger.
63924
63925 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
63926
63927         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
63928         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
63929         so `make install' also works in VPATH builds.
63930
63931 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
63932
63933         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
63934         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
63935         can be used in subdirectories.
63936
63937 2000-12-29  Paul Eggert  <eggert@twinsun.com>
63938
63939         * lib/modechange.c: Do not assume that mode_t uses the
63940         traditional octal encoding.  E.g. "chmod 1 FOO" should set
63941         the other-execute bit of FOO even if S_IXOTH != 1.
63942
63943         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
63944         WOTH, XOTH, ALLM): New macros.
63945         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
63946          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
63947         Use them.
63948         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
63949         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
63950         (mode_compile):
63951         No need to use uintmax_t; unsigned long is long enough.
63952         Don't bother to get suffix since we don't use it.
63953
63954 2000-12-26  Jim Meyering  <meyering@lucent.com>
63955
63956         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
63957         better with autoheader.
63958
63959 2000-12-24  Jim Meyering  <meyering@lucent.com>
63960
63961         * lib/hash.c (is_prime): Return explicit boolean values.
63962         (hash_get_first): Return NULL to appease Irix5.6's 89.
63963         Reported by Nelson Beebe.
63964
63965 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
63966
63967         * lib/localcharset.c (locale_charset): Add support for Win32.
63968
63969 2000-12-18  Paul Eggert  <eggert@twinsun.com>
63970
63971         * lib/physmem.h, lib/physmem.c: New files.
63972
63973         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
63974         (noinst_HEADERS): Add physmem.h.
63975
63976         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
63977         't' for compatibility with Solaris 8 sort.
63978
63979 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
63980
63981         * lib/config.charset: Add support for BeOS.
63982
63983 2000-12-17  Jim Meyering  <meyering@lucent.com>
63984
63985         * m4/dos.m4 (jm_AC_DOS): New file and macro.
63986         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
63987
63988 2000-12-16  Jim Meyering  <meyering@lucent.com>
63989
63990         This bug had a serious impact on chown: `chown N:M FILE' (for integer
63991         N and M) would have treated it like `chown N:N FILE'.
63992
63993         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
63994
63995 2000-12-16  Jim Meyering  <meyering@lucent.com>
63996
63997         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
63998         SHELLS_FILE to a file name that's useful on djgpp systems.
63999         Include stdlib.h.
64000         (ADDITIONAL_DEFAULT_SHELLS): Define.
64001         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
64002         Based mostly on a patch from Prashant TR.
64003
64004 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
64005
64006         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
64007         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
64008         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
64009
64010 2000-12-08  Andreas Schwab  <schwab@suse.de>
64011
64012         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
64013         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
64014
64015 2000-12-07  Jim Meyering  <meyering@lucent.com>
64016
64017         * lib/stripslash.c (ISSLASH): Define.
64018         (strip_trailing_slashes): Use ISSLASH rather than comparing against
64019         `/'.
64020         From Prashant TR.
64021
64022         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
64023         (dir_name_r): Declare this function as static.
64024         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
64025         manifest itself on a name containing a mix of slashes and
64026         backslashes.
64027         Make this function work with names starting with a DOS-style
64028         drive letter and colon prefix.
64029         (dir_name): Append `.' if necessary.
64030         Based mostly on patches from Prashant TR and Eli Zaretskii.
64031
64032         * lib/dirname.h (dir_name_r): Remove prototype.
64033
64034 2000-12-06  Paul Eggert  <eggert@twinsun.com>
64035
64036         * m4/off_t-format.m4: Remove this file.
64037         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
64038
64039 2000-12-06  Jim Meyering  <meyering@lucent.com>
64040
64041         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
64042         replacement strtoull, we may well need the replacement strtoul, too.
64043         Check for declarations of strtoul and strtoull.
64044         Check for strtol.  Mainly as a cue to cause automake to include
64045         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
64046         Check for limits.h -- strtol.c needs it.
64047
64048 2000-12-05  Jim Meyering  <meyering@lucent.com>
64049
64050         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
64051
64052 2000-12-04  Jim Meyering  <meyering@lucent.com>
64053
64054         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
64055         Also include memory.h, stdlib.h, unistd.h if appropriate.
64056         Reported by Andreas Jaeger (conflicting declaration of malloc).
64057
64058 2000-12-02  Jim Meyering  <meyering@lucent.com>
64059
64060         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
64061         * m4/jm-macros.m4 (jm_MACROS): require it.
64062
64063 2000-12-02  Jim Meyering  <meyering@lucent.com>
64064
64065         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
64066
64067 2000-12-01  Paul Eggert  <eggert@twinsun.com>
64068
64069         * lib/memrchr.c: Include <config.h> before any system include file.
64070
64071 2000-11-30  Jim Meyering  <meyering@lucent.com>
64072
64073         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
64074
64075 2000-11-30  Jim Meyering  <meyering@lucent.com>
64076
64077         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
64078
64079 2000-11-29  Paul Eggert  <eggert@twinsun.com>
64080
64081         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
64082
64083 2000-11-26  Jim Meyering  <meyering@lucent.com>
64084
64085         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
64086
64087 2000-11-22  Paul Eggert  <eggert@twinsun.com>
64088
64089         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
64090         size of (size_t) -1; it's not portable.
64091
64092 2000-11-17  Jim Meyering  <meyering@lucent.com>
64093
64094         * lib/strstr.c: Update from GNU libc.
64095
64096 2000-11-17  Akim Demaille  <akim@epita.fr>
64097
64098         * lib/obstack.h: Formatting changes.
64099         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
64100         prevent type checking.
64101         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
64102         cast the value to (void *): assigning a `foo *' to a `void *'
64103         variable is valid.
64104         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
64105
64106 2000-11-16  Jim Meyering  <meyering@lucent.com>
64107
64108         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
64109
64110 2000-11-11  Jim Meyering  <meyering@lucent.com>
64111
64112         * lib/error.c: Add a couple #includes, merging from GNU libc version.
64113
64114 2000-11-10  Jim Meyering  <meyering@lucent.com>
64115
64116         * lib/obstack.h: Update from GNU libc.
64117         * lib/obstack.c: Likewise.
64118
64119 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
64120
64121         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
64122
64123 2000-11-06  Paul Eggert  <eggert@twinsun.com>
64124
64125         * lib/getusershell.c (setusershell): Use rewind rather than
64126         fseek/fseeko, to avoid configuration hassles with fseeko.
64127         Don't bother opening SHELLS_FILE if shellstream is NULL;
64128         it's not necessary.
64129
64130 2000-11-05  Jim Meyering  <meyering@lucent.com>
64131
64132         * lib/makepath.h (make_dir): Declare.
64133         * lib/makepath.c (make_dir): Remove `static' attribute.
64134         Tweak a comment.
64135
64136 2000-11-04  Jim Meyering  <meyering@lucent.com>
64137
64138         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
64139
64140 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
64141
64142         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
64143         last one in a bucket, advance to the next bucket.
64144
64145 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
64146
64147         * lib/fnmatch.c: Do not comment out all the code if we are using
64148         the GNU C library, because in some cases we are replacing buggy
64149         code in the GNU C library itself.
64150
64151 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
64152
64153         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
64154         (regex_compile): Catch bogus \(\1\).
64155
64156 2000-10-30  Paul Eggert  <eggert@twinsun.com>
64157
64158         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
64159         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
64160         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
64161
64162 2000-10-30  Paul Eggert  <eggert@twinsun.com>
64163
64164         * lib/error.h, getline.h, modechange.h:
64165         Remove "2000" from Copyright line, as the file hasn't been
64166         changed this year other than in the copyright notice.
64167
64168         * lib/xalloc.h: Add "2000" to Copyright line, as this file
64169         was changed this year.
64170
64171 2000-10-29  Jim Meyering  <meyering@lucent.com>
64172
64173         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
64174         renaming.
64175         * m4/ls-mntd-fs.m4: Likewise
64176
64177 2000-10-29  Jim Meyering  <meyering@lucent.com>
64178
64179         * lib/xstat.in: Fix grammar in comment.
64180
64181 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
64182
64183         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
64184         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
64185         doesn't define __restrict_arr.
64186
64187 2000-10-28  Jim Meyering  <meyering@lucent.com>
64188
64189         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
64190         (jm_PREREQ_MEMCHR): New function.
64191
64192 2000-10-28  Jim Meyering  <meyering@lucent.com>
64193
64194         * lib/memchr.c: Update from libc.
64195         Adjust for portability:
64196         [HAVE_STDLIB_H]: Include stdlib.h.
64197         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
64198         Undef __memchr, too.
64199         [!weak_alias]: Define __memchr to memchr.
64200
64201         * lib/regex.c: Update from libc.
64202         * lib/regex.h: Likewise.
64203         * lib/getopt1.c: Likewise.
64204         * lib/memcmp.c: Likewise.
64205
64206         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
64207         Avoid using fseek, when possible -- it's broken by design.
64208         Patch by Ulrich Drepper.
64209
64210 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
64211
64212         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
64213         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
64214         Giving in to popular pressure to shut up the compiler with casts.
64215
64216 2000-10-26  Jim Meyering  <meyering@lucent.com>
64217
64218         * lib/strftime.c: Update from libc.
64219
64220 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
64221
64222         * regex.c: More `unsigned char' -> `re_char' changes.
64223         Also change several `int' into `re_wchar_t'.
64224         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
64225         (PUSH_FAILURE_POINTER): Don't cast any more.
64226         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
64227         We want GCC to complain, since this piece of code makes
64228         re_match non-reentrant, which *should* be fixed.
64229         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
64230         (EXTEND_BUFFER): Use RETALLOC.
64231         (SET_LIST_BIT): Don't cast.
64232         (re_wchar_t): New type.
64233         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
64234         that those two functions will always properly return.
64235         (IMMEDIATE_QUIT_CHECK): Cast to void.
64236         (analyse_first): Use recursion rather than an explicit stack.
64237         (re_compile_fastmap): Can't fail anymore.
64238         (re_search_2): Don't check re_compile_fastmap for failure.
64239         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
64240         Now also sets the new value (passed in a new argument).
64241         (re_match_2_internal): Use it.
64242         Also, use a new var `reg' of type size_t when looping through regs
64243         rather than reuse the inappropriate `mcnt'.
64244
64245 2000-10-25  Jim Meyering  <meyering@lucent.com>
64246
64247         * lib/obstack.c: Update from libc.
64248
64249 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
64250
64251         * regex.c (regex_compile): Change the way of handling a range from
64252         a char less than 256 to a char not less than 256.
64253
64254 2000-10-24  Andrew Innes  <andrewi@gnu.org>
64255
64256         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
64257         NT-Emacs only.
64258         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
64259         so that re_search functions only quit when callers expect them to.
64260
64261 2000-10-23  Jim Meyering  <meyering@lucent.com>
64262
64263         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
64264         wrong.  That set_locale call must not have any side effects.
64265         From Paul Eggert.
64266
64267 2000-10-22  Jim Meyering  <meyering@lucent.com>
64268
64269         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
64270         [CYCLIC]: Remove now-unused definition.
64271
64272         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
64273         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
64274         Suggestion from Ulrich Drepper.
64275
64276 2000-10-21  Jim Meyering  <meyering@lucent.com>
64277
64278         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
64279         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
64280         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
64281
64282 2000-10-21  Jim Meyering  <meyering@lucent.com>
64283
64284         * lib/dirname.c (memrchr): Declare if necessary.
64285         (dir_name): Remove the restriction that there be no
64286         trailing slashes.  Now, this code skips past them, effectively
64287         ignoring them.
64288         [TEST_DIRNAME] (main): New unit tests.
64289
64290         * lib/memrchr.c: New file from GNU libc.
64291         Undef __memrchr, too.
64292         [!weak_alias]: Define __memrchr to memrchr.
64293         Guard weak_alias use with `#ifdef weak_alias'.
64294
64295 2000-10-21  Jim Meyering  <meyering@lucent.com>
64296
64297         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
64298         (dir_name): Use dir_name_r.
64299         * lib/dirname.h (dir_name_r): Declare it.
64300
64301 2000-10-17  Jim Meyering  <meyering@lucent.com>
64302
64303         * lib/quote.h (PARAMS): Define and use.
64304         Reported by Akim Demaille.
64305
64306         * lib/getopt.c: Update from libc.
64307
64308 2000-10-16  Jim Meyering  <meyering@lucent.com>
64309
64310         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
64311         setlocale.
64312         From Jan Fedak.
64313
64314 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
64315
64316         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
64317
64318 2000-09-25  Jim Meyering  <meyering@lucent.com>
64319
64320         * lib/md5.h (rol): Define (from GnuPG).
64321
64322         * lib/sha.c: Give credit (GnuPG) where due.
64323         (M): Use rol rather than open-coding it.
64324         Add a FIXME comment.
64325
64326 2000-09-21  Jim Meyering  <meyering@lucent.com>
64327
64328         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
64329         Reported by Michael Stone.
64330
64331 2000-09-20  Jim Meyering  <meyering@lucent.com>
64332
64333         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
64334         (noinst_HEADERS): Add sha.h.
64335         Based on code from Scott G. Miller and from GnuPG.
64336
64337 2000-09-18  Jim Meyering  <meyering@lucent.com>
64338
64339         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
64340         LIBS. Otherwise, everyone ends up linking with -lelf for some
64341         configurations.
64342         Reported by Mike Stone.
64343
64344 2000-09-15  Jim Meyering  <meyering@lucent.com>
64345
64346         * lib/regex.c: Update from libc.
64347
64348 2000-09-10  Jim Meyering  <meyering@lucent.com>
64349
64350         * lib/getopt.c (_getopt_internal): Update from glibc.
64351
64352 2000-09-09  Jim Meyering  <meyering@lucent.com>
64353
64354         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
64355         think it should be used as a general replacement for isascii.
64356         * lib/fnmatch.c: Likewise.
64357         * lib/mbswidth.c: Likewise
64358         * lib/regex.c: Likewise.
64359
64360         Don't use atoi.
64361         * lib/userspec.c: Include sys/param.h and limits.h.
64362         Include xstrtol.h.
64363         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
64364         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
64365         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
64366         UID, GID.  Check range.
64367
64368 2000-09-06  Jim Meyering  <meyering@lucent.com>
64369
64370         * lib/getopt.c (_getopt_internal): Update from glibc.
64371
64372 2000-08-30  Jim Meyering  <meyering@lucent.com>
64373
64374         * lib/strftime.c: Merge in changes from GNU libc.
64375
64376 2000-08-26  Jim Meyering  <meyering@lucent.com>
64377
64378         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
64379         * m4/fpending.m4: New file.
64380
64381 2000-08-26  Jim Meyering  <meyering@lucent.com>
64382
64383         * lib/closeout.c: Include "__fpending.h".
64384         (close_stdout_status): Return right away if there's nothing to flush.
64385
64386         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
64387         * lib/__fpending.c: New file.
64388         * lib/__fpending.h: New file.
64389
64390 2000-08-20  Jim Meyering  <meyering@lucent.com>
64391
64392         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
64393         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
64394         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
64395
64396 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
64397
64398         Improve fileutils installation on systems where running
64399         programs (like install) can't be unlinked.
64400         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
64401         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
64402
64403 2000-08-07  Paul Eggert  <eggert@twinsun.com>
64404
64405         Standardize on "memory exhausted" instead of "Memory exhausted"
64406         or "virtual memory exhausted".
64407         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
64408         "virtual memory exhausted".
64409         * lib/same.c (same_name): Invoke xalloc_die instead of printing
64410         our own message.
64411         * lib/userspec.c (parse_user_spec): Likewise.
64412         * lib/bumpalloc.h: comment fix
64413         * lib/same.c, userspec.c: Include xalloc.h.
64414
64415         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
64416         not char *const and pointing to a constant array.
64417         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
64418         (xrealloc): Comment fix.
64419
64420         * lib/userspec.c (parse_user_spec):
64421         Don't translate a message until just before returning,
64422         to avoid unnecessary translation.
64423
64424 2000-08-07  Jim Meyering  <meyering@lucent.com>
64425
64426         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
64427         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
64428         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
64429         getgroups.c, gethostname.c, getopt.h, group-member.c,
64430         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
64431         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
64432         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
64433         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
64434         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
64435         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
64436         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
64437         yesno.c: Back out Copyright date changes for each file with no change
64438         this year.  This eases coordination with other programs using the same
64439         source code modules.  From Paul Eggert.
64440
64441 2000-08-06  Paul Eggert  <eggert@twinsun.com>
64442
64443         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
64444         not char, for compatibility with glibc 2.1.3 strftime.c.
64445
64446 2000-08-03  Greg McGary  <greg@mcgary.org>
64447
64448         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
64449         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
64450         (EXTEND_BUFFER): Use them.
64451
64452 2000-08-01  Jim Meyering  <meyering@lucent.com>
64453
64454         * lib/dirname.c (ISSLASH): Define.
64455         (BACKSLASH_IS_PATH_SEPARATOR): Define.
64456         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
64457         both `\' and `/' may be use as path separators.
64458         Based on a patch from Prashant TR.
64459
64460 2000-07-31  Paul Eggert  <eggert@twinsun.com>
64461
64462         * lib/quotearg.c (quotearg_n_options): Don't make the initial
64463         slot vector a constant, since it might get modified.
64464
64465 2000-07-31  Jim Meyering  <meyering@lucent.com>
64466
64467         * lib/xmalloc.c: Use `virtual memory exhausted', not
64468         `Memory exhausted'.
64469         * lib/obstack.c (print_and_abort): Likewise.
64470
64471 2000-07-30  Paul Eggert  <eggert@twinsun.com>
64472
64473         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
64474         buffer, so that the caller can always quote one small
64475         component of a "memory exhausted" message in slot 0.
64476         From a suggestion by Jim Meyering.
64477
64478 2000-07-30  Jim Meyering  <meyering@lucent.com>
64479
64480         * lib/makepath.c (make_path): Quote the other instance, too.
64481
64482         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
64483         (STATIC_BUF_SIZE): Define.
64484         (quotearg_n_options): Use only statically allocated storage when
64485         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
64486         than STATIC_BUF_SIZE.
64487
64488 2000-07-29  Jim Meyering  <meyering@lucent.com>
64489
64490         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
64491         * lib/dirname.c (dir_name): Likewise.
64492
64493         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
64494         `/'.
64495
64496         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
64497         (dir_name): Assert that there are no trailing slashes.
64498
64499 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
64500
64501         * lib/mbswidth.h (mbswidth): Add a flags argument.
64502         (mbswidth): New declaration.
64503         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
64504         * lib/mbswidth.c (mbswidth): Add a flags argument.
64505         (mbsnwidth): New function.
64506
64507 2000-07-24  Jim Meyering  <meyering@lucent.com>
64508
64509         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
64510
64511 2000-07-23  Paul Eggert  <eggert@twinsun.com>
64512
64513         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
64514
64515 2000-07-23  Paul Eggert  <eggert@twinsun.com>
64516
64517         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
64518         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
64519         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
64520         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
64521         invoke multibyte primitives.
64522
64523 2000-07-23  Paul Eggert  <eggert@twinsun.com>
64524
64525         * lib/quotearg.c:
64526         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
64527         so that mbstate_t is always defined.
64528
64529         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
64530         be 1 in at least one GCC installation, and this configuration
64531         error is likely to be common.  Ignoring MB_LEN_MAX hurts
64532         performance on hosts that have mbrtowc but have only unibyte
64533         locales, but I assume these hosts are rare.
64534
64535 2000-07-23  Paul Eggert  <eggert@twinsun.com>
64536
64537         * lib/mbswidth.c (_XOPEN_SOURCE):
64538         Don't define; this causes problems on Solaris 7.
64539         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
64540
64541 2000-07-23  Jim Meyering  <meyering@lucent.com>
64542
64543         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
64544         too: getgrgid, getpwuid, getuid.
64545
64546 2000-07-23  Jim Meyering  <meyering@lucent.com>
64547
64548         * lib/basename.c (base_name): Add an assertion.
64549
64550 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
64551
64552         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
64553         shadow its mbsinit function.
64554
64555 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
64556
64557         * lib/mbswidth.h: New file.
64558         * lib/mbswidth.c: New file.
64559         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
64560         (noinst_HEADERS): Add mbswidth.h.
64561
64562 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
64563
64564         * lib/config.charset: Add support for FreeBSD. Improve support for
64565         HP-UX and IRIX 6.
64566
64567 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
64568
64569         * m4/mbswidth.m4: New file.
64570         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
64571
64572 2000-07-15  Jim Meyering  <meyering@lucent.com>
64573
64574         * lib/makepath.c: Include quote.h.
64575         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
64576         corresponding argument in a `quote (...)' call.
64577         Give better diagnostics.
64578
64579         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
64580         (noinst_HEADERS): Add quote.h.
64581
64582         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
64583         from tar's src/misc.c.
64584         * lib/quote.h: New file.  Prototypes for same.
64585
64586 2000-07-14  Paul Eggert  <eggert@twinsun.com>
64587
64588         From a suggestion by Bruno Haible.
64589         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
64590         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
64591         to decide whether to define the BeOS workaround macro;
64592         this adjusts to the change to AC_MBSTATE_T.
64593
64594 2000-07-14  Jim Meyering  <meyering@lucent.com>
64595
64596         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
64597         jm_AC_TYPE_UINTMAX_T.
64598
64599 2000-07-13  Paul Eggert  <eggert@twinsun.com>
64600
64601         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
64602
64603         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
64604         quotearg_buffer_restyled): Add support for
64605         clocale_quoting_style.  Undo previous change to
64606         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
64607         and "{RIGHT QUOTATION MARK}" msgids.
64608
64609 2000-07-10  Paul Eggert  <eggert@twinsun.com>
64610
64611         From a suggestion by Bruno Haible.
64612         * m4/mbstate_t.m4 (AC_MBSTATE_T):
64613         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
64614         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
64615         and mbstate_t, to a single-part test that simply defines mbstate_t.
64616         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
64617         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
64618
64619 2000-07-10  Jim Meyering  <meyering@lucent.com>
64620
64621         * m4/strerror_r.m4: Mirror the correction made in autoconf.
64622
64623         * m4/gnu-source.m4: Output to confdefs.h directly.
64624         Suggestion from Akim Demaille.
64625
64626 2000-07-09  Paul Eggert  <eggert@twinsun.com>
64627
64628         The old behavior of quoting `like this' doesn't look good with
64629         newer, ISO-style fonts.  See:
64630         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
64631
64632         Instead, quote "like this" by default.  Let the translator
64633         tailor the locale-specific quoting behavior by providing
64634         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
64635
64636         * lib/quotearg.c (N_): New macro.
64637         (gettext_default): New function.
64638         (quotearg_buffer_restyled): Use
64639         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
64640         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
64641
64642 2000-07-09  Jim Meyering  <meyering@lucent.com>
64643
64644         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
64645         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
64646
64647         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
64648         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
64649
64650 2000-07-09  Jim Meyering  <meyering@lucent.com>
64651
64652         * lib/Most files: Update copyright dates to include 2000.
64653
64654 2000-07-08  Jim Meyering  <meyering@lucent.com>
64655
64656         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
64657         if not defined.
64658         (xgethostname): Remove now-unnecessary #ifdef.
64659         Move declaration of `err' into loop where it's used.
64660
64661 2000-07-05  Paul Eggert  <eggert@twinsun.com>
64662         and Bruno Haible  <haible@clisp.cons.org>
64663
64664         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
64665         only if the test for an object-type mbstate_t fails.  This
64666         prevents us from mistakenly reporting that mbstate_t is a
64667         system object type after we "#define mbstate_t int" to work
64668         around its lack.
64669
64670 2000-07-05  Paul Eggert  <eggert@twinsun.com>
64671         and Bruno Haible  <haible@clisp.cons.org>
64672
64673         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
64674
64675 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
64676
64677         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
64678         to strerror_r.
64679         Include <ctype.h> for use of isalpha.
64680
64681 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
64682
64683         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
64684         by allocating a larger buffer. Test the gethostname return value for
64685         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
64686         returns an error and ENAMETOOLONG isn't defined.
64687
64688 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
64689
64690         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
64691         dimension.
64692
64693 2000-07-04  Jim Meyering  <meyering@lucent.com>
64694
64695         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
64696         of the deprecated AC_CHECKING.
64697
64698 2000-07-04  Jim Meyering  <meyering@lucent.com>
64699
64700         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
64701         Reported by Bruno Haible.
64702
64703 2000-07-04  Jim Meyering  <meyering@lucent.com>
64704
64705         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
64706         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
64707         lacks mbrtowc.
64708
64709 2000-07-03  Paul Eggert  <eggert@twinsun.com>
64710
64711         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
64712         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
64713
64714 2000-07-03  Paul Eggert  <eggert@twinsun.com>
64715         and Bruno Haible  <haible@clisp.cons.org>
64716
64717         * lib/quotearg.c (mbrtowc):
64718         Assign to *pwc, and return 1 only if result is nonzero.
64719         (iswprint): Use ISPRINT when substituting our own mbrtowc.
64720
64721 2000-07-03  Jim Meyering  <meyering@lucent.com>
64722
64723         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
64724
64725 2000-07-03  Jim Meyering  <meyering@lucent.com>
64726
64727         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
64728         This is necessary to get a definition of e.g., UTMP_FILE on
64729         HP-UX 10.20.
64730         From Bob Proulx.
64731
64732 2000-07-02  Jim Meyering  <meyering@lucent.com>
64733
64734         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
64735
64736         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
64737         AC_LIBOBJ(function_name).
64738         * m4/chown.m4: Likewise.
64739         * m4/fnmatch.m4: Likewise.
64740         * m4/ftruncate.m4: Likewise.
64741         * m4/getgroups.m4: Likewise.
64742         * m4/getline.m4: Likewise.
64743         * m4/group-member.m4: Likewise.
64744         * m4/jm-macros.m4: Likewise.
64745         * m4/lstat.m4: Likewise.
64746         * m4/malloc.m4: Likewise.
64747         * m4/memcmp.m4: Likewise.
64748         * m4/nanosleep.m4: Likewise.
64749         * m4/putenv.m4: Likewise.
64750         * m4/realloc.m4: Likewise.
64751         * m4/regex.m4: Likewise.
64752         * m4/stat.m4: Likewise.
64753         * m4/strftime.m4: Likewise.
64754
64755 2000-07-02  Jim Meyering  <meyering@lucent.com>
64756
64757         * lib/quotearg.c (mbstate_t): Don't define here.
64758
64759 2000-07-02  Jim Meyering  <meyering@lucent.com>
64760
64761         * lib/nanosleep.c (SIGCONT): Define if not already defined.
64762
64763 2000-07-01  Jim Meyering  <meyering@lucent.com>
64764
64765         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
64766
64767 2000-07-01  Jim Meyering  <meyering@lucent.com>
64768
64769         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
64770         problem.
64771
64772 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
64773
64774         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
64775         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
64776
64777 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
64778
64779         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
64780         per change in ../m4/ls-mntd-fs.m4.
64781         (read_filesystem_list): Ignore symbolic links.
64782
64783 2000-06-29  Jim Meyering  <meyering@lucent.com>
64784
64785         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
64786         for declaration of strcmp.
64787
64788         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
64789
64790         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
64791         Avoid warning by casting result to `char *' to remove `const'.
64792
64793 2000-06-28  Jim Meyering  <meyering@lucent.com>
64794
64795         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
64796         included by quotearg.c, for which we perform this test.  From
64797         Bruno Haible.
64798
64799 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
64800
64801         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
64802         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
64803         <utmpx.h> exists, put readutmp.o into LIBOBJS.
64804
64805 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
64806
64807         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
64808
64809 2000-06-26  Paul Eggert  <eggert@twinsun.com>
64810
64811         savedir now sets errno on failure and invokes xmalloc to get memory.
64812         Fix a couple of other minor bugs while we're at it.
64813
64814         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
64815         (NAMLEN): Remove macro.
64816         (malloc, realloc): Remove decls.
64817         (stpcpy): Likewise.
64818         ("xalloc.h"): Include.
64819         (NAME_SIZE_DEFAULT): New macro.
64820         (savedir): Use xmalloc / xrealloc to allocate memory.
64821         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
64822         Skip "" directory entries.
64823         Use strlen to calculate directory entry length, since the old method
64824         is rarely used these days and isn't worth supporting.
64825         Don't use a pointer after freeing it.
64826         Check for integer overflow when calculating allocation size.
64827         Use memcpy to copy entries, instead of stpcpy.
64828         Set errno properly when returning NULL.
64829         Check for readdir error.
64830
64831 2000-06-26  Jim Meyering  <meyering@lucent.com>
64832
64833         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
64834
64835 2000-06-25  Jim Meyering  <meyering@lucent.com>
64836
64837         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
64838         Linux header bug when _XOPEN_SOURCE is defined to 500.
64839
64840 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
64841
64842         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
64843         deficiency.
64844
64845 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
64846
64847         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
64848         Include xalloc.h.
64849         Don't include <stdlib.h>.  Don't declare malloc, realloc.
64850
64851 2000-06-24  Jim Meyering  <meyering@lucent.com>
64852
64853         * m4/strerror_r.m4: Revive this file -- to try out an experimental
64854         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
64855         for which strerror does return char*, but which lacks a conveniently
64856         accessible declaration of the function.  If the compile-test says
64857         strerror_r doesn't work, then resort to a `run'-test that works on
64858         BeOS and segfaults on DEC Unix.
64859
64860 2000-06-24  Jim Meyering  <meyering@lucent.com>
64861
64862         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
64863
64864 2000-06-23  Paul Eggert  <eggert@twinsun.com>
64865
64866         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
64867         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
64868
64869 2000-06-23  Paul Eggert  <eggert@twinsun.com>
64870
64871         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
64872         (mbrtowc, mbstate_t): Define substitutes if
64873         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
64874         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
64875         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
64876
64877 2000-06-23  Jim Meyering  <meyering@lucent.com>
64878
64879         * m4/afs.m4: Add missing AC_MSG_RESULT.
64880         Reported by Bruno Haible.
64881
64882         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
64883         Suggestion from Bruno Haible.
64884
64885 2000-06-23  Jim Meyering  <meyering@lucent.com>
64886
64887         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
64888
64889 2000-06-21  Jim Meyering  <meyering@lucent.com>
64890
64891         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
64892
64893 2000-06-21  Jim Meyering  <meyering@lucent.com>
64894
64895         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
64896         (noinst_HEADERS): Add getstr.h.
64897
64898         * lib/getline.c (getstr): Move into a separate file.
64899         * lib/getstr.c (getstr): New file, extracted from getline.c, with
64900         the following changes: new parameter, delim2; both delim[12]
64901         parameters have type `int', not `char'.  The latter would lose
64902         with 8-bit delimiters.
64903         * lib/getstr.h: New file.
64904
64905 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
64906
64907         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
64908         than 1024, return a memory chunk of least possible size, instead
64909         of size PATH_MAX + 2. In the loop, increment the size proportionally.
64910         Use free/xmalloc instead of xrealloc to avoid copying for very long
64911         paths.
64912
64913 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
64914
64915         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
64916         the empty string.
64917
64918 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
64919
64920         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
64921         address, not strdup.  Include <stdlib.h> and don't declare free().
64922
64923 2000-06-19  Jim Meyering  <meyering@lucent.com>
64924
64925         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
64926
64927 2000-06-18  Jim Meyering  <meyering@lucent.com>
64928
64929         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
64930
64931         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
64932         `checking whether...' message to be consistent with that of the
64933         lstat test.
64934
64935 2000-06-18  Jim Meyering  <meyering@lucent.com>
64936
64937         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
64938         Besides, these days every porting target provides a mkdir function.
64939
64940         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
64941         needed. (this snippet comes from src/system.h).
64942
64943 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
64944
64945         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
64946
64947 2000-06-15  Paul Eggert  <eggert@twinsun.com>
64948
64949         * lib/human.c (adjust_value): New function.
64950         (human_readable_inexact): Apply rounding style even when
64951         printing approximate values.
64952
64953 2000-06-14  Paul Eggert  <eggert@twinsun.com>
64954
64955         * lib/human.c (human_readable_inexact): Allow an input block
64956         size that is not a multiple of the output block size, and vice versa.
64957         Reported by Piergiorgio Sartor.
64958
64959 2000-06-14  Paul Eggert  <eggert@twinsun.com>
64960
64961         * lib/getdate.y (get_date): Apply relative times after time
64962         zone indicator, not before.  Reported by Todd A. Jacobs.
64963
64964 2000-06-13  Jim Meyering  <meyering@lucent.com>
64965
64966         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
64967
64968         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
64969
64970 2000-06-12  Paul Eggert  <eggert@twinsun.com>
64971
64972         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
64973
64974 2000-06-12  Jim Meyering  <meyering@lucent.com>
64975
64976         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
64977         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
64978         optional argument.
64979         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
64980         the optional argument, `lib'.
64981
64982 2000-06-08  Jim Meyering  <meyering@lucent.com>
64983
64984         * m4/largefile.m4: Remove file (now that it's part of autoconf).
64985
64986 2000-06-04  Paul Eggert  <eggert@twinsun.com>
64987
64988         Rewrite largefile configuration so that we don't need to run
64989         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
64990         AC_CANONICAL_HOST in configure.in -- jmm]
64991
64992         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
64993         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
64994         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
64995         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
64996         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
64997         All uses changed.
64998         Instead of inspecting the output of getconf, try to compile the
64999         test program without and with the macro definition.
65000         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
65001         for getconf.  Instead, check for the needed flags by compiling
65002         test programs.
65003
65004 2000-06-04  Paul Eggert  <eggert@twinsun.com>
65005
65006         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
65007
65008 2000-06-04  Jim Meyering  <meyering@lucent.com>
65009
65010         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
65011         SunOS 4.1.4 for which gid_t is an unsigned type.
65012
65013 2000-06-03  Jim Meyering  <meyering@lucent.com>
65014
65015         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
65016         now that autoconf requires that.
65017
65018         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
65019         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
65020         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
65021
65022 2000-06-03  Jim Meyering  <meyering@lucent.com>
65023
65024         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
65025
65026 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
65027
65028         * m4/glibc21.m4: New file.
65029         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
65030
65031 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
65032
65033         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
65034         newer, don't install charset.alias.
65035         * lib/config.charset: Change the Linux/glibc rules so they become empty
65036         on glibc-2.1 or newer.
65037
65038 2000-06-02  Jim Meyering  <meyering@lucent.com>
65039
65040         * lib/mountlist.c: Back out last change.  Instead, do this...
65041         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
65042         me_dummy member using the same `ignore'-testing code.
65043         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
65044         fs_type strings.
65045         From Mark D. Roth.
65046
65047 2000-05-29  Jim Meyering  <meyering@lucent.com>
65048
65049         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
65050         mounts with the `ignore' attribute.  Based on a patch from
65051         Mark D. Roth.
65052
65053 2000-05-28  Jim Meyering  <meyering@lucent.com>
65054
65055         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
65056         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65057         * m4/stat.m4: Likewise.
65058         * m4/lstat.m4: Likewise.
65059         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
65060
65061         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
65062         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
65063
65064 2000-05-26  Jim Meyering  <meyering@lucent.com>
65065
65066         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
65067
65068 2000-05-24  Jim Meyering  <meyering@lucent.com>
65069
65070         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
65071         autoconf requires that.
65072         * m4/lib-check.m4: Likewise.
65073         * m4/jm-macros.m4: Likewise.
65074         * m4/strftime.m4: Likewise.
65075
65076         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
65077         AC_CHECK_DECLS, now that autoconf requires that.
65078
65079 2000-05-22  Jim Meyering  <meyering@lucent.com>
65080
65081         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65082         * m4/lstat.m4: Likewise.
65083
65084 2000-05-22  Jim Meyering  <meyering@lucent.com>
65085
65086         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
65087
65088 2000-05-20  Jim Meyering  <meyering@lucent.com>
65089
65090         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
65091         (jm_PREREQ): Use it.
65092
65093 2000-05-18  Jim Meyering  <meyering@lucent.com>
65094
65095         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
65096         back, too, since it may have been modified by allocate_entry.
65097         (hash_delete): Rewrite to use neither the assignment operator
65098         nor the comma operator in an if-expression.
65099
65100 2000-05-15  Paul Eggert  <eggert@twinsun.com>
65101
65102         * lib/closeout.c:
65103         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
65104         Remove; no longer needed.
65105         "quotearg.h": Add include.
65106         (file_name): Do not bother to explicitly initialize to NULL; it's less
65107         efficient on some hosts.
65108         (close_stdout_status): Remove test as to whether stdout was already
65109         closed; it breaks for the case "echo x | sort >&-".
65110         Quote file name colons.
65111         Do not assume that _("write error") lacks format strings.
65112
65113 2000-05-15  Jim Meyering  <meyering@lucent.com>
65114
65115         * lib/version-etc.c (version_etc_copyright): Update the copyright
65116         string used in all --version output.
65117
65118 2000-05-14  Jim Meyering  <meyering@lucent.com>
65119
65120         * lib/closeout.c (close_stdout_set_file_name): New function.
65121         (close_stdout_status): Use new file-scoped global.
65122         Return right away if fstat says the stdout file descriptor is invalid.
65123         * lib/closeout.h (close_stdout_set_file_name): Declare.
65124
65125 2000-05-10  Jim Meyering  <meyering@lucent.com>
65126
65127         * lib/closeout.c [default_exit_status]: New file-scoped variable.
65128         (close_stdout_set_status): New function.
65129         * lib/closeout.h (close_stdout_set_status): Declare.
65130
65131 2000-05-09  Jim Meyering  <meyering@lucent.com>
65132
65133         * m4/gettext.m4: Rename this...
65134         * m4/libintl.m4: ...to this.
65135
65136 2000-05-08  Jim Meyering  <meyering@lucent.com>
65137
65138         * lib/long-options.c: Don't include closeout.h.
65139         (parse_long_options): Don't call close_stdout for --version.
65140
65141 2000-05-06  Paul Eggert  <eggert@twinsun.com>
65142
65143         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
65144         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
65145         2.1.3 bug.  This avoids a clash when files like regex.c define
65146         _GNU_SOURCE.
65147
65148 2000-05-06  Jim Meyering  <meyering@lucent.com>
65149
65150         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
65151         (AC_REPLACE_FUNCS): Add strnlen.
65152
65153         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
65154         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
65155
65156         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
65157         AC_SEARCH_LIBS call for nanosleep.
65158         (LIB_NANOSLEEP): Set and AC_SUBST.
65159
65160 2000-05-06  Jim Meyering  <meyering@lucent.com>
65161
65162         * lib/strnlen.c: Undefine __strnlen and strnlen.
65163         [!weak_alias]: Define __strnlen to strnlen.
65164
65165         * lib/atexit.c: New file, from libiberty.
65166
65167 2000-05-06  Jim Meyering  <meyering@lucent.com>
65168
65169         * lib/closeout.c (close_stdout_status): Also check for errors on the
65170         stderr stream.
65171
65172 2000-05-05  Jim Meyering  <meyering@lucent.com>
65173
65174         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
65175         AC_SEARCH_LIBS call for clock_gettime.
65176         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
65177
65178         * m4/search-libs.m4: Update from autoconf.
65179
65180         su doesn't work on Solaris 2.6.
65181         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
65182         <shadow.h>.  Reported by Dragos Harabor.
65183
65184 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
65185
65186         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
65187         memcpy instead of xmalloc, xrealloc, path_concat.
65188         (locale_charset): Treat empty environment variables as absent.
65189         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
65190
65191 2000-05-04  Jim Meyering  <meyering@lucent.com>
65192
65193         * lib/getopt.c: Update from glibc.
65194         * lib/obstack.c: Likewise.
65195         * lib/obstack.h: Likewise.
65196         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
65197         file
65198
65199         * lib/regex.h: Likewise.
65200         * lib/strndup.c: Likewise.
65201         * lib/strnlen.c: New file, from glibc.
65202
65203 2000-05-03  Jim Meyering  <meyering@lucent.com>
65204
65205         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
65206
65207 2000-05-02  Paul Eggert  <eggert@twinsun.com>
65208
65209         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
65210         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
65211         compile-time test, rather than inspecting host and OS, to
65212         decide whether to define _LARGEFILE_SOURCE.
65213
65214 2000-05-01  Jim Meyering  <meyering@lucent.com>
65215
65216         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
65217
65218         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
65219         Based on a patch from Bruno Haible.
65220
65221 2000-05-01  Jim Meyering  <meyering@lucent.com>
65222
65223         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
65224
65225 2000-04-29  Jim Meyering  <meyering@lucent.com>
65226
65227         * lib/path-concat.c: Declare strdup only if it's not defined.
65228         * lib/canon-host.c: Likewise.
65229
65230 2000-04-28  Jim Meyering  <meyering@lucent.com>
65231
65232         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
65233         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
65234         is included first, then limits.h is included by locale.h by libintl.h.
65235         From John David Anglin.
65236
65237 2000-04-25  Jim Meyering  <meyering@lucent.com>
65238
65239         * lib/makepath.c (S_IRWXUGO): Define.
65240         (make_path): Always perform explicit chmod if MODE specifies any
65241         of the `special' permission bits.  Prompted by a bug report against
65242         install from Mate Wierdl and Joost van Baal.
65243
65244 2000-04-18  Jim Meyering  <meyering@lucent.com>
65245
65246         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
65247         (jm_PREREQ): Use it.
65248
65249 2000-04-18  Jim Meyering  <meyering@lucent.com>
65250
65251         * lib/README: New file.
65252
65253         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
65254         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
65255
65256 2000-04-17  Jim Meyering  <meyering@lucent.com>
65257
65258         Get it right :-)
65259         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
65260         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
65261         Suggestion from Akim Demaille.
65262
65263 2000-04-17  Jim Meyering  <meyering@lucent.com>
65264
65265         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
65266         the definition of it to rpl_strftime also defined-away the system's
65267         declaration.
65268
65269 2000-04-15  Jim Meyering  <meyering@lucent.com>
65270
65271         Use `C' to denote so-called `contiguous' files, the same way
65272         that tar does.
65273         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
65274         (ftypelet): Use S_ISCTG.
65275         From Michael Deutschmann.
65276
65277 2000-04-14  Jim Meyering  <meyering@lucent.com>
65278
65279         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
65280         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
65281         clobbered.
65282
65283 2000-04-14  Jim Meyering  <meyering@lucent.com>
65284
65285         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
65286
65287 2000-04-13  Jim Meyering  <meyering@lucent.com>
65288
65289         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
65290         AH_VERBATIM to insert required #ifndef into config.h.in.
65291         Suggestion from Akim Demaille.
65292
65293 2000-04-12  Jim Meyering  <meyering@lucent.com>
65294
65295         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
65296         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
65297         Christian Krackowizer.
65298
65299         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
65300         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
65301         (AC_SYS_LARGEFILE): Require.
65302         (AM_C_PROTOTYPES): Require.
65303
65304 2000-04-08  Jim Meyering  <meyering@lucent.com>
65305
65306         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
65307         names don't conflict.  Reported by Eli Zaretskii.
65308
65309 2000-04-07  Jim Meyering  <meyering@lucent.com>
65310
65311         * lib/putenv.c: Move inclusion of errno.h so it follows that of
65312         sys/types.h, to work around system header problems on AIX 3.2.5.
65313         From Bruno Haible.
65314
65315 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
65316
65317         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
65318         bug.  Deal with the different error behavior of Irix iconv.
65319
65320 2000-04-05  Paul Eggert  <eggert@twinsun.com>
65321
65322         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
65323         IRIX if the installer said otherwise.
65324
65325 2000-04-05  Jim Meyering  <meyering@lucent.com>
65326
65327         Portability tweaks required for ultrix4.3.
65328         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
65329         (jm_CHECK_DECLS): Add getutent to the list of functions.
65330         (_jm_DECL_HEADERS): Add utmpx.h.
65331         From John David Anglin.
65332
65333         * m4/strftime.m4: Back out the 2000-04-02 change.
65334         Instead of that change, simply undefine putenv in the test program.
65335
65336 2000-04-05  Jim Meyering  <meyering@lucent.com>
65337
65338         Portability tweaks required for ultrix4.3.
65339         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
65340         getutent.
65341         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
65342         * lib/canon-host.c: Declare strdup.
65343         * lib/path-concat.c: Likewise.
65344         From John David Anglin.
65345
65346 2000-04-04  Jim Meyering  <meyering@lucent.com>
65347
65348         Be more DOS 8.3-friendly.
65349         * lib/ref-add.sin: Renamed from ref-add.sed.in.
65350         * lib/ref-del.sin: Renamed from ref-del.sed.in.
65351         * lib/Makefile.am: Reflect renaming.
65352         Reported by Eli Zaretskii.
65353
65354         Use a temporary file name that won't clash with `charset.alias'
65355         in the DOS 8.3 name space.
65356         * lib/Makefile.am (charset_tmp): Define.
65357         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
65358         (uninstall-local): Likewise.
65359         Reported by Eli Zaretskii.
65360
65361 2000-04-03  Jim Meyering  <meyering@lucent.com>
65362
65363         * m4/gettext.m4: Fix typo in comment.
65364
65365         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
65366         textutils/configure.in).  Suggestion from Paul Eggert.
65367         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
65368
65369 2000-04-02  Paul Eggert  <eggert@twinsun.com>
65370
65371         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
65372         variable in the shell rather than using putenv, which isn't
65373         portable.  This avoids the configure-time inter-test dependency
65374         on the potentially-renamed putenv function.
65375
65376 2000-03-30  Paul Eggert  <eggert@twinsun.com>
65377
65378         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
65379         before checking struct stat.st_blksize, so that
65380         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
65381
65382 2000-03-29  Paul Eggert  <eggert@twinsun.com>
65383
65384         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
65385         since strftime.c uses HAVE_STRFTIME to decide whether to use
65386         the underlying strftime.
65387
65388 2000-03-29  Paul Eggert  <eggert@twinsun.com>
65389
65390         * lib/time/strftime.c (my_strftime): Make sure we call the system
65391         strftime, not ourselves, when invoking the underlying strftime.
65392
65393 2000-03-24  Jim Meyering  <meyering@lucent.com>
65394
65395         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
65396         (charset_alias): Define.
65397         (install-exec-local): Factor out common code.
65398         (uninstall-local): Split lines longer than 80.
65399         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
65400         (SUFFIXES): Define.
65401         (.sed.in.sed): New rule.  Don't redirect directly to $@.
65402         (CLEANFILES): Add ref-add.sed and ref-del.sed.
65403
65404 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
65405
65406         * lib/config.charset: Output a line containing "Packages using this
65407         file".
65408         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
65409         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
65410         ref-del.sed): New rules.
65411
65412 2000-03-17  Jim Meyering  <meyering@lucent.com>
65413
65414         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
65415         Otherwise, include <strings.h>
65416
65417 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
65418
65419         * lib/unicodeio.c (utf8_wctomb): New function.
65420         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
65421         format instead of in UCS-4 with platform dependent endianness.
65422
65423 2000-03-10  Jim Meyering  <meyering@lucent.com>
65424
65425         * m4/lib-check.m4: Look for getspnam in -lgen, too.
65426         From Marco Franzen.
65427
65428 2000-03-07  Paul Eggert  <eggert@twinsun.com>
65429
65430         * lib/savedir.c (savedir): Work even if directory size is
65431         negative; this can happen with some screwy NFS configurations.
65432
65433 2000-03-06  Jim Meyering  <meyering@lucent.com>
65434
65435         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
65436         if it's NULL (because we ran out of memory).  From Bruno Haible.
65437
65438 2000-03-05  Jim Meyering  <meyering@lucent.com>
65439
65440         * lib/localcharset.c ("path-concat.h"): Include.
65441         (get_charset_aliases): Use path_concat instead of ANSI string
65442         concatenation.
65443
65444         * lib/unicodeio.h (PARAMS): Define.
65445         Use it to guard prototype.
65446
65447 2000-03-04  Jim Meyering  <meyering@lucent.com>
65448
65449         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
65450         for lib/localcharset.c.
65451
65452 2000-03-04  Jim Meyering  <meyering@lucent.com>
65453
65454         * lib/Makefile.am (install-exec-local): Create $(libdir) before
65455         installing into it.
65456         (uninstall-local): Uncomment this rule so `make distcheck' works
65457         once again.
65458
65459         * lib/unicodeio.c (<errno.h>): Include it.
65460         (errno): Declare if not defined.
65461
65462         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
65463
65464         * lib/config.charset: New version, incorporating remarks from a linux
65465         i18n mailing list.  From Bruno Haible.
65466
65467 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
65468
65469         * m4/codeset.m4: New file.
65470         * m4/iconv.m4: New file.
65471         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
65472
65473 2000-03-03  Jim Meyering  <meyering@lucent.com>
65474
65475         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
65476
65477 2000-03-02  Jim Meyering  <meyering@lucent.com>
65478
65479         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
65480         the messages come out on separate lines.
65481
65482         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
65483         rather than jm_CHECK_DECLARATIONS.
65484         * m4/decl.m4: Remove now-unused file.
65485
65486         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
65487         geteuid.
65488
65489 2000-03-02  Jim Meyering  <meyering@lucent.com>
65490
65491         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
65492
65493 2000-03-01  Jim Meyering  <meyering@lucent.com>
65494
65495         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
65496         * lib/unicodeio.c: Likewise.
65497
65498 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
65499
65500         * lib/config.charset: New file.
65501         * lib/localcharset.c: New file.
65502         * lib/unicodeio.h, lib/unicodeio.c: New files.
65503         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
65504         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
65505         (noinst_HEADERS): Add unicodeio.h.
65506         (all-local, install-exec-local, charset.alias): New targets.
65507
65508 2000-02-28  Paul Eggert  <eggert@twinsun.com>
65509
65510         * lib/quotearg.c (ALERT_CHAR): New macro.
65511         (quotearg_buffer_restyled): Use it.
65512
65513 2000-02-27  Jim Meyering  <meyering@lucent.com>
65514
65515         * m4/check-decl.m4: Add getenv to the list.
65516
65517 2000-02-27  Jim Meyering  <meyering@lucent.com>
65518
65519         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
65520         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
65521
65522         * lib/backupfile.c: Guard inclusion of stdlib.h with
65523         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
65524         Declare malloc if needed.
65525
65526         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
65527         `#ifndef HAVE_DECL..'
65528         now that autoconf always defines the HAVE_DECL_ symbols.
65529         * lib/human.c: Likewise.
65530         * lib/same.c: Likewise.
65531         * lib/strtoumax.c: Likewise.
65532
65533         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
65534         declaration check was not run.
65535         * lib/hash.c: Likewise.
65536         * lib/human.c: Likewise.
65537         * lib/same.c: Likewise.
65538         * lib/strtoumax.c: Likewise.
65539
65540         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
65541         `.', then first look up the entire `.'-containing string as a login
65542         name.
65543
65544 2000-02-23  Jim Meyering  <meyering@lucent.com>
65545
65546         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
65547         in place of my hack.
65548
65549 2000-02-18  Paul Eggert  <eggert@twinsun.com>
65550
65551         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
65552         (textint): New typedef.
65553         (parser_control): Member year changed from int to textint.
65554         All uses changed.
65555         (YYSTYPE): Removed; replaced by %union with int and textint members.
65556         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
65557         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
65558         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
65559         (tSNUMBER, tUNUMBER): Now of type <textintval>.
65560         (date, number, to_year): Use width of number in digits, not its value,
65561         to determine whether it's a 2-digit year, or a 2-digit time.
65562         (yylex): Store number of digits of numeric tokens.
65563         Reported by John Kendall.
65564
65565         (parser_control): Changed from struct parser_control to typedef (for
65566         consistency).  All uses changed.
65567
65568         (tID): Removed; not used.
65569         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
65570
65571 2000-02-14  Paul Eggert  <eggert@twinsun.com>
65572
65573         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
65574         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
65575
65576 2000-02-12  Jim Meyering  <meyering@lucent.com>
65577
65578         * lib/userspec.c (ISDIGIT): Define it.
65579         (isdigit): Remove definition.
65580         (is_number): Use ISDIGIT, not isdigit.
65581         <libintl.h>: Include.
65582         (_ and N_): Define.
65583         (parse_user_spec): Mark translatable strings.
65584
65585 2000-02-10  Jim Meyering  <meyering@lucent.com>
65586
65587         With these changes, nanosleep.[ch] are finally enough like the other
65588         lib/* replacement files to compile on a few more losing systems.
65589
65590         * lib/nanosleep.h: Don't include config.h.
65591         Remove prototype from declaration of nanosleep.
65592         (PARAMS): Remove now-unneeded definition.
65593         * lib/nanosleep.c: #undef nanosleep.
65594         (rpl_nanosleep): Rename from nanosleep.
65595
65596 2000-02-10  Jim Meyering  <meyering@lucent.com>
65597
65598         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
65599         gnu_nanosleep to rpl_nanosleep.
65600
65601 2000-02-09  Jim Meyering  <meyering@lucent.com>
65602
65603         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
65604         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
65605
65606 2000-02-08  Akim Demaille  <akim@epita.fr>
65607
65608         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
65609         `[' and `]' and remove uses of `changequote'.
65610         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
65611         (AC_SYS_LARGEFILE): Likewise.
65612         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
65613         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
65614         of changequote.
65615         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
65616         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
65617         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
65618         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
65619
65620 2000-02-05  Jim Meyering  <meyering@lucent.com>
65621
65622         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
65623         Remove explicit use of AC_HEADER_TIME.  It is required by
65624         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
65625         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
65626         in autoconf whereby the expansion of the latter ended up preceding
65627         the expansion of its prerequisite, AC_HEADER_TIME.
65628         Reported by Volker Borchert.
65629
65630 2000-02-03  Jim Meyering  <meyering@lucent.com>
65631
65632         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
65633
65634 2000-02-03  Jim Meyering  <meyering@lucent.com>
65635
65636         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
65637         rather than with `#if HAVE_UTMPNAME'.
65638
65639 2000-02-02  Jim Meyering  <meyering@lucent.com>
65640
65641         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
65642         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
65643         Reported by Eli Zaretskii.
65644
65645 2000-02-01  Jim Meyering  <meyering@lucent.com>
65646
65647         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
65648
65649 2000-01-31  Jim Meyering  <meyering@lucent.com>
65650
65651         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
65652         functions.  Add the time.h and sys/time.h headers along with the
65653         AC_REQUIRE'ment of AC_HEADER_TIME.
65654
65655 2000-01-31  Jim Meyering  <meyering@lucent.com>
65656
65657         * lib/nanosleep.h (nanosleep): Guard declaration with
65658         `#if ! HAVE_DECL_NANOSLEEP'.
65659         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
65660         the declaration in that vendor's sys/timers.h.
65661         Reported by Christian Krackowizer.
65662
65663         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
65664         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
65665         (ISPRINT): Likewise.
65666         Reported by Tom Tromey.
65667
65668 2000-01-30  Jim Meyering  <meyering@lucent.com>
65669
65670         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
65671
65672         * m4/prereq.m4 (utmp_includes): Define.
65673         Check for ut_user and ut_name members in both struct utmpx
65674         and struct utmp.
65675
65676 2000-01-30  Jim Meyering  <meyering@lucent.com>
65677
65678         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
65679         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
65680         header files where only utmpx.ut_user is declared.
65681
65682         * lib/readutmp.h (UT_USER): Define.
65683
65684 2000-01-29  Jim Meyering  <meyering@lucent.com>
65685
65686         * m4/lib-check.m4: New file containing library-related checks from
65687         fileutils and sh-utils (textutils had none).
65688
65689 2000-01-28  Jim Meyering  <meyering@lucent.com>
65690
65691         * m4/perl.m4: Change format of warning message to look more like that
65692         from the missing script.  Suggestion from François Pinard.
65693
65694 2000-01-25  Jim Meyering  <meyering@lucent.com>
65695
65696         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
65697         well as time.h in the compile check.
65698         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
65699         Fix typo in cross-compiling case: s/yes/no/.
65700
65701 2000-01-23  Jim Meyering  <meyering@lucent.com>
65702
65703         * m4/jm-macros.m4: Move df-related tests here from
65704         fileutils/configure.in
65705
65706         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
65707         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
65708
65709         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
65710         s/space/ac_fsusage_space/.
65711         (jm_FILE_SYSTEM_USAGE): Take two parameters.
65712
65713         * m4/ftruncate.m4: New file (derived from part of
65714         fileutils/configure.in).
65715         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
65716         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
65717
65718         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
65719         AC_SUBST these here, rather than just in sh-util/configure.in, so
65720         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
65721         all the same.
65722         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
65723         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
65724         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
65725         (AC_SUBST(POW_LIBM)): Likewise.
65726         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
65727
65728 2000-01-23  Jim Meyering  <meyering@lucent.com>
65729
65730         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
65731         obstack.c.
65732
65733 2000-01-22  Jim Meyering  <meyering@lucent.com>
65734
65735         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
65736
65737         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
65738
65739         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
65740         configure.in
65741         (AC_CHECK_HEADERS): Likewise for sh-utils.
65742         (AC_CHECK_HEADERS): Likewise for textutils.
65743         Merge the three lists of headers.
65744
65745         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
65746         from fileutils' configure.in.
65747
65748         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
65749         code. Moved tests into their own function (_jm_DECL_HEADERS) in
65750         check-decl.m4.
65751
65752         * m4/check-decl.m4: Use #if rather than #ifdef.
65753         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
65754         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
65755         (_jm_DECL_HEADERS): Define new function.
65756         (jm_CHECK_DECLARATIONS): Require it.
65757
65758 2000-01-22  Jim Meyering  <meyering@lucent.com>
65759
65760         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
65761         [! HAVE_DECL_STRTOULL]: Declare strtoull.
65762         Required for some AIX systems.  Reported by Christian Krackowizer.
65763         [TESTING] (main): New function.
65764
65765         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
65766         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
65767         letters.
65768
65769         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
65770         iswprint.
65771
65772         * lib/strverscmp.c (ISDIGIT): Define.
65773         (strverscmp): Use ISDIGIT, not isdigit.
65774
65775 2000-01-19  Jim Meyering  <meyering@lucent.com>
65776
65777         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
65778         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
65779         defines `struct timespec' in <sys/time.h>
65780
65781         * m4/c-bs-a.m4: Remove uses of changequote altogether.
65782         Thanks to Akim for explaining.
65783
65784 2000-01-17  Paul Eggert  <eggert@twinsun.com>
65785
65786         * lib/nanosleep.c (nanosleep):
65787         Don't use SA_INTERRUPT to decide whether to call sigaction, as
65788         POSIX.1 doesn't require SA_INTERRUPT and some systems
65789         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
65790         it's been part of POSIX.1 since day 1 (in 1988).
65791
65792 2000-01-17  Jim Meyering  <meyering@lucent.com>
65793
65794         * lib/interlock: Remove unused file.  Reported by François Pinard.
65795
65796 2000-01-16  Paul Eggert  <eggert@twinsun.com>
65797
65798         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
65799         alert, backslash, formfeed, and vertical tab unnecessarily in
65800         shell quoting style.
65801
65802 2000-01-16  Jim Meyering  <meyering@lucent.com>
65803
65804         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
65805         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
65806         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
65807         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
65808
65809 2000-01-16  Jim Meyering  <meyering@lucent.com>
65810
65811         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
65812         because the latter didn't work.
65813
65814 2000-01-15  Jim Meyering  <meyering@lucent.com>
65815
65816         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
65817         (AC_REPLACE_FUNCS): Add memcpy and memset.
65818         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
65819         Add strpbrk.
65820         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
65821
65822 2000-01-12  Jim Meyering  <meyering@lucent.com>
65823
65824         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
65825         (jm_PREREQ): Use it.
65826         (jm_PREREQ_READUTMP): New macro.
65827         (jm_PREREQ): Use it.
65828
65829 2000-01-11  Paul Eggert  <eggert@twinsun.com>
65830
65831         Quote multibyte characters correctly.
65832         * m4/c-bs-a.m4: New file.
65833         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
65834         (jm_PREREQ): Use it.
65835
65836 2000-01-11  Paul Eggert  <eggert@twinsun.com>
65837
65838         * m4/uintmax_t.m4: Port to autoconf 2.13.
65839
65840 2000-01-08  Jim Meyering  <meyering@ascend.com>
65841
65842         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
65843         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
65844
65845 2000-01-04  Jim Meyering  <meyering@ascend.com>
65846
65847         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
65848         jm_STRUCT_DIRENT_D_TYPE.
65849         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
65850         jm_STRUCT_DIRENT_D_INO.
65851         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
65852         jm_STRUCT_UTIMBUF.
65853         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
65854         renamings.
65855         * m4/utime.m4: Likewise.
65856
65857         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
65858         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
65859
65860 2000-01-03  Paul Eggert  <eggert@twinsun.com>
65861
65862         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
65863         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
65864
65865 2000-01-02  Jim Meyering  <meyering@ascend.com>
65866
65867         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
65868         remember if this is necessary.
65869
65870 1999-12-26  Jim Meyering  <meyering@ascend.com>
65871
65872         * m4/jm-macros.m4: Use it here.
65873         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
65874
65875 1999-12-23  Jim Meyering  <meyering@ascend.com>
65876
65877         * m4/jm-macros.m4: Check for clock_gettime (moved from
65878         fileutils/configure.in)
65879         Check for gettimeofday.
65880
65881 1999-12-20  Jim Meyering  <meyering@ascend.com>
65882
65883         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
65884         autoconf-2.14a-1999-12-20.
65885
65886 1999-12-19  Jim Meyering  <meyering@ascend.com>
65887
65888         * m4/lstat-slash.m4: New file.
65889         * m4/jm-macros.m4: Use the new macro:
65890         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65891
65892 1999-12-07  Jim Meyering  <meyering@ascend.com>
65893
65894         * m4/perl.m4: Require that File::Compare be available, too.
65895         Too many systems seem to lack it.
65896
65897         * m4/strftime.m4: Add checks for most of the cpp macros tested in
65898         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
65899
65900 1999-11-18  Paul Eggert  <eggert@twinsun.com>
65901
65902         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
65903         problem with the QNX 4.25 shell, which doesn't propagate exit
65904         status of failed commands inside shell assignments.
65905
65906 1999-11-17  Jim Meyering  <meyering@ascend.com>
65907
65908         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
65909
65910 1999-11-07  Jim Meyering  <meyering@ascend.com>
65911
65912         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
65913
65914 1999-11-06  Jim Meyering  <meyering@ascend.com>
65915
65916         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
65917         * m4/jm-macros.m4 (jm_MACROS): Use it here.
65918
65919 1999-11-05  Jim Meyering  <meyering@ascend.com>
65920
65921         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
65922         configure.in of textutils, fileutils, and sh-utils into this one
65923         (shared between those packages) file.
65924         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
65925         AC_STRUCT_ST_BLKSIZE.
65926
65927 1999-11-03  Jim Meyering  <meyering@ascend.com>
65928
65929         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
65930         of AC_CHECK_TYPE checks includes unistd.h.
65931         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
65932         Suggestion from Akim Demaille.
65933
65934 1999-10-30  Jim Meyering  <meyering@ascend.com>
65935
65936         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
65937         m4-quoted string.
65938         * m4/ls-mntd-fs.m4: Likewise.
65939         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
65940         * m4/jm-winsz1.m4: Likewise.
65941
65942         * m4/const.m4: Remove file, since the fix made it into the experimental
65943         version of autoconf.
65944         * m4/mktime.m4: Likewise.
65945
65946         * m4/check-type.m4: Remove file, now that the latest version of
65947         AC_CHECK_TYPE takes a third arg to specify additional #includes.
65948
65949         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
65950         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
65951         AC_CHECK_TYPE.
65952
65953 1999-10-04  Jim Meyering  <meyering@ascend.com>
65954
65955         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
65956
65957 1999-09-22  Paul Eggert  <eggert@twinsun.com>
65958
65959         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
65960         2.95.1 bug with HP-UX 10.20.
65961
65962 1999-09-17  Jim Meyering  <meyering@ascend.com>
65963
65964         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
65965         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
65966         due to missing strdup (against sh-utils-2.0).
65967
65968 1999-08-29  Jim Meyering  <meyering@ascend.com>
65969
65970         * m4/jm-macros.m4: Require jm_BISON.
65971         * m4/bison.m4: New file.
65972
65973 1999-08-17  Paul Eggert  <eggert@twinsun.com>
65974
65975         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
65976         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
65977
65978 1999-08-05  Jim Meyering  <meyering@ascend.com>
65979
65980         * m4/getline.m4: Rename test file from conftestdata to conftest.data
65981         to avoid conflicts with `conftest' on 8+3 filesystems.
65982         Suggestion from Eli Zaretskii.
65983
65984 1999-08-04  Jim Meyering  <meyering@ascend.com>
65985
65986         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
65987         fileutils and sh-utils (textutils's getline test was inadequate).
65988         (AM_FUNC_GETLINE): Run this test.
65989         (AC_CHECK_FUNCS): Check for getdelim.
65990         Reported by Bob Proulx.
65991
65992 1999-08-02  Jim Meyering  <meyering@ascend.com>
65993
65994         * m4/jm-macros.m4: Add a comment.
65995
65996 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65997
65998         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
65999         <inttypes.h> defines strtoumax as a macro (and not as a
66000         function).
66001
66002 1999-08-01  Paul Eggert  <eggert@twinsun.com>
66003
66004         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
66005         that we can shift, multiply and divide unsigned long long
66006         values; Ultrix cc can't do it.
66007
66008 1999-08-01  Paul Eggert  <eggert@twinsun.com>
66009
66010         * m4/mktime.m4: New file, which is a preview of what should appear
66011         in the next public autoconf release.
66012
66013 1999-08-01  Paul Eggert  <eggert@twinsun.com>
66014
66015         * m4/lfs.m4: Remove this file.
66016         * m4/largefile.m4: New file.  It contains the old contents of
66017         lfs.m4, except that all names with prefix AC_LFS have been
66018         changed to use the prefix AC_SYS_LARGEFILE instead, to be
66019         compatible with future autoconf versions.  Also, some minor m4
66020         quoting problems have been fixed.
66021
66022 1999-08-01  Paul Eggert  <eggert@twinsun.com>
66023
66024         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
66025         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
66026         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
66027         and simplify the shell code.
66028
66029 1999-08-01  Jim Meyering  <meyering@ascend.com>
66030
66031         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
66032         m4.
66033
66034 1999-07-20  Jim Meyering  <meyering@ascend.com>
66035
66036         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
66037
66038 1999-07-15  Jim Meyering  <meyering@ascend.com>
66039
66040         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
66041
66042 1999-05-22  Jim Meyering  <meyering@ascend.com>
66043
66044         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
66045
66046 1999-05-20  Jim Meyering  <meyering@ascend.com>
66047
66048         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
66049         Add a colon after each `then' in case $4 is empty.
66050
66051 1999-05-16  Jim Meyering  <meyering@ascend.com>
66052
66053         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
66054
66055 1999-05-10  Jim Meyering  <meyering@ascend.com>
66056
66057         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
66058
66059         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
66060         AC_FUNC_MKTIME.
66061
66062 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
66063
66064         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
66065
66066 1999-05-04  Paul Eggert  <eggert@twinsun.com>
66067
66068         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
66069         not CPPFLAGS, so that linking works correctly in IRIX.
66070
66071 1999-04-30  Paul Eggert  <eggert@twinsun.com>
66072
66073         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
66074
66075 1999-04-20  Paul Eggert  <eggert@twinsun.com>
66076
66077         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
66078         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
66079         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
66080         jm_AC_TYPE_UNSIGNED_LONG_LONG.
66081         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
66082
66083         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
66084
66085 1999-04-20  Jim Meyering  <meyering@ascend.com>
66086
66087         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
66088         AC_REPLACE xstroull if necessary.  From Paul Eggert.
66089         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
66090
66091 1999-04-18  Jim Meyering  <meyering@ascend.com>
66092
66093         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
66094         * m4/jm-macros.m4: Use it.
66095
66096 1999-04-06  Jim Meyering  <meyering@ascend.com>
66097
66098         * m4/strftime.m4: Remove test for %f.
66099
66100 1999-03-29  Jim Meyering  <meyering@ascend.com>
66101
66102         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
66103         superset of the AC_TYPE_* checks in the textutils, fileutils,
66104         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
66105         AC_TYPE_PID_T.
66106
66107 1999-03-28  Jim Meyering  <meyering@ascend.com>
66108
66109         * m4/jm-macros.m4: Define GNU_PACKAGE here.
66110         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
66111         replaced e.g., in the *.sh files of the sh-utils.
66112
66113 1999-03-20  Jim Meyering  <meyering@ascend.com>
66114
66115         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
66116         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
66117         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
66118
66119 1999-03-19  Jim Meyering  <meyering@ascend.com>
66120
66121         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
66122
66123 1999-03-12  Jim Meyering  <meyering@ascend.com>
66124
66125         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
66126
66127 1999-03-07  Jim Meyering  <meyering@ascend.com>
66128
66129         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
66130         declared.
66131
66132 1999-02-17  Jim Meyering  <meyering@ascend.com>
66133
66134         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
66135         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
66136
66137 1999-02-07  Jim Meyering  <meyering@ascend.com>
66138
66139         * m4/group-member.m4: New file -- extracted from sh-utils'
66140         configure.in.
66141
66142         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
66143         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
66144
66145 1999-02-06  Jim Meyering  <meyering@ascend.com>
66146
66147         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
66148         * m4/fnmatch.m4: Likewise.
66149         * m4/getgroups.m4: Likewise.
66150         * m4/lstat.m4: Likewise.
66151         * m4/malloc.m4: Likewise.
66152         * m4/putenv.m4: Likewise.
66153         * m4/realloc.m4: Likewise.
66154         * m4/regex.m4: Likewise.
66155         * m4/stat.m4: Likewise.
66156         * m4/strftime.m4: Likewise.
66157         Suggestion from Alain Magloire.
66158
66159         * m4/chown.m4: Use `.$ac_objext', not `.o'.
66160         * m4/fnmatch.m4: Likewise.
66161         * m4/getgroups.m4: Likewise.
66162         * m4/getline.m4: Likewise.
66163         * m4/lstat.m4: Likewise.
66164         * m4/malloc.m4: Likewise.
66165         * m4/memcmp.m4: Likewise.
66166         * m4/putenv.m4: Likewise.
66167         * m4/realloc.m4: Likewise.
66168         * m4/regex.m4: Likewise.
66169         * m4/stat.m4: Likewise.
66170         * m4/strftime.m4: Likewise.
66171         Suggestion from Alain Magloire.
66172
66173         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
66174         an argument.
66175
66176         * m4/regex.m4: Add a run-time Test for proper operation of
66177         re_compile_pattern.
66178
66179 1999-01-31  Jim Meyering  <meyering@ascend.com>
66180
66181         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
66182
66183 1999-01-30  Jim Meyering  <meyering@ascend.com>
66184
66185         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
66186
66187         * m4/jm-mktime.m4: Make this a wrapper around the official
66188         AM_FUNC_MKTIME rather than my private copy, now that the official one
66189         is up to date.
66190         * m4/mktime.m4: Remove file.
66191
66192         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
66193         * m4/uptime.m4: Likewise.
66194         * m4/uintmax_t.m4: Likewise.
66195
66196 1999-01-28  Jim Meyering  <meyering@ascend.com>
66197
66198         * m4/jm-macros.m4: Use jm_AFS.
66199         * m4/afs.m4: New file (from fileutils' configure.in).
66200
66201         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
66202         * m4/chown.m4: Likewise.
66203         * m4/d-ino.m4: Likewise.
66204         * m4/d-type.m4: Likewise.
66205         * m4/fnmatch.m4: Likewise.
66206         * m4/getgroups.m4: Likewise.
66207         * m4/gettext.m4: Likewise.
66208         * m4/jm-mktime.m4: Likewise.
66209         * m4/jm-winsz2.m4: Likewise.
66210         * m4/lcmessage.m4: Likewise.
66211         * m4/ls-mntd-fs.m4: Likewise.
66212         * m4/malloc.m4: Likewise.
66213         * m4/memcmp.m4: Likewise.
66214         * m4/putenv.m4: Likewise.
66215         * m4/realloc.m4: Likewise.
66216         * m4/st_mtim.m4: Likewise.
66217         * m4/strftime.m4: Likewise.
66218
66219 1999-01-16  Jim Meyering  <meyering@ascend.com>
66220
66221         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
66222         (ARGMATCH_DIE_DECL): Define.
66223
66224 1999-01-12  Jim Meyering  <meyering@ascend.com>
66225
66226         * m4/Makefile.am.in: Rewrite to avoid using fmt.
66227         Reported by Lars Hecking.
66228
66229 1999-01-10  Jim Meyering  <meyering@ascend.com>
66230
66231         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
66232         gross kludge.
66233         * m4/inttypes_h.m4: Likewise.
66234         * m4/lstat.m4: Likewise.
66235         * m4/malloc.m4: Likewise.
66236         * m4/readdir.m4: Likewise.
66237         * m4/realloc.m4: Likewise.
66238         * m4/st_dm_mode.m4: Likewise.
66239         * m4/stat.m4: Likewise.
66240         * m4/utimbuf.m4: Likewise.
66241         * m4/utimes.m4: Likewise.
66242
66243         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
66244         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
66245         comments in config.h.in are meaningful.
66246
66247         * m4/jm-macros.m4: Require autoconf-2.13 here.
66248
66249         * m4/regex.m4: By default, don't use the included regex.c on systems
66250         with glibc 2.  Suggestion from Uli Drepper.
66251
66252 1999-01-02  Jim Meyering  <meyering@ascend.com>
66253
66254         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
66255
66256 1998-12-18  Jim Meyering  <meyering@ascend.com>
66257
66258         * m4/Makefile.am.in (Makefile.am): Simplify rule.
66259         Based on a suggestion from Lars Hecking.
66260
66261 1998-11-16  Paul Eggert  <eggert@twinsun.com>
66262
66263         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
66264
66265 1998-11-16  Jim Meyering  <meyering@ascend.com>
66266
66267         * m4/lfs.m4: Double-quote the `uname...` expression.
66268
66269 1998-11-14  Jim Meyering  <meyering@ascend.com>
66270
66271         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
66272         * m4/stat.m4: Likewise.
66273
66274 1998-11-03  Jim Meyering  <meyering@ascend.com>
66275
66276         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
66277         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
66278
66279 1998-10-18  Jim Meyering  <meyering@ascend.com>
66280
66281         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
66282
66283 1998-10-17  Jim Meyering  <meyering@ascend.com>
66284
66285         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
66286         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
66287         calls for those previously hard-coded headers.  Instead, take a new
66288         parameter.
66289         (jm_CHECK_DECLARATIONS): Reflect interface change.
66290         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
66291         (jm_CHECK_DECL_LOCALTIME_R): New macro.
66292
66293         * m4/mktime.m4: Test for spring-forward gap before long-running test.
66294
66295 1998-10-14  Jim Meyering  <meyering@ascend.com>
66296
66297         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
66298         instead of "TZ=America/Vancouver".  From Paul Eggert.
66299
66300 1998-10-11  Jim Meyering  <meyering@ascend.com>
66301
66302         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
66303         This adds a test for a recently added compatibility fix for mktime.c.
66304         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
66305
66306 1998-09-27  Jim Meyering  <meyering@ascend.com>
66307
66308         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
66309
66310         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
66311         ../configure.in, including a change from Gordon Matzigkeit to allow
66312         cross-compiling for the Hurd.
66313
66314         * m4/glibc.m4: New file/macro to test for the GNU C Library
66315         versions 1 and 2.  From Gordon Matzigkeit.
66316         Indent.
66317
66318 1998-09-21  Jim Meyering  <meyering@ascend.com>
66319
66320         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
66321
66322 1998-08-18  Paul Eggert  <eggert@twinsun.com>
66323
66324         Port nanosecond-resolution times to UnixWare 2.1.2 and
66325         pedantic Solaris 2.6.
66326
66327         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
66328         AC_STRUCT_ST_MTIM.
66329         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
66330         Generate name of ns member, instead of just 1 or undef.
66331         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
66332
66333 1998-08-15  Jim Meyering  <meyering@ascend.com>
66334
66335         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
66336         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
66337         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
66338         instead of jm_TYPE_SSIZE_T.
66339
66340 1998-08-12  Jim Meyering  <meyering@ascend.com>
66341
66342         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
66343
66344 1998-08-02  Jim Meyering  <meyering@ascend.com>
66345
66346         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
66347         in acconfig.h manually.
66348
66349 1998-07-31  Paul Eggert  <eggert@twinsun.com>
66350
66351         * m4/st_mtim.m4: New file.
66352
66353 1998-07-28  Jim Meyering  <meyering@ascend.com>
66354
66355         * m4/utimes.m4: Undef stat.
66356
66357 1998-07-25  Jim Meyering  <meyering@ascend.com>
66358
66359         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
66360         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
66361
66362 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
66363
66364         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
66365         uid and gid actually remain unchanged.
66366
66367 1998-07-07  Jim Meyering  <meyering@ascend.com>
66368
66369         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
66370
66371 1998-07-04  Jim Meyering  <meyering@ascend.com>
66372
66373         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
66374         to prove that this macro can be used in packages without regex.c.
66375
66376 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
66377
66378         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
66379         is to be used.
66380
66381 1998-07-03  Jim Meyering  <meyering@ascend.com>
66382
66383         * m4/gettext.m4: Add -lintl if it's found to be necessary.
66384
66385         * m4/gettext.m4: New file -- from gettext-0.10.35.
66386         * m4/lcmessage.m4: Likewise.
66387         * m4/progtest.m4: Likewise.
66388
66389         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
66390         * m4/jm-macros.m4: Require the new macro.
66391
66392 1998-06-29  Jim Meyering  <meyering@ascend.com>
66393
66394         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
66395         for the definition of NGROUPS (used in a system header included
66396         by sys/mount.h).
66397
66398 1998-06-28  Jim Meyering  <meyering@ascend.com>
66399
66400         * m4/ls-mntd-fs.m4: New file.
66401         * m4/fstypename.m4: New file.
66402
66403         * m4/jm-macros.m4: Require the new macro.
66404         * m4/jm-glibc-io.m4: New file.
66405
66406 1998-05-19  Jim Meyering  <meyering@ascend.com>
66407
66408         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
66409         * m4/lchown.m4: New file.
66410
66411         * m4/Makefile.am.in: New file.
66412         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
66413
66414 1998-05-14  Jim Meyering  <meyering@ascend.com>
66415
66416         * m4/Makefile.am (EXTRA_DIST): Add them.
66417         * m4/jm-macros.m4: New file.
66418         * m4/utimbuf.m4: New file.
66419
66420 1998-05-12  Jim Meyering  <meyering@ascend.com>
66421
66422         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
66423
66424 1998-05-11  Jim Meyering  <meyering@ascend.com>
66425
66426         * m4/isc-posix.m4: New file.
66427
66428 1998-05-10  Jim Meyering  <meyering@ascend.com>
66429
66430         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
66431
66432 1998-05-09  Jim Meyering  <meyering@ascend.com>
66433
66434         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
66435         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
66436         with automake.
66437
66438         * m4/ssize_t.m4: New file.
66439         * m4/mktime.m4: Remove file -- the new automake has this now.
66440
66441 1998-04-26  Jim Meyering  <meyering@ascend.com>
66442
66443         * m4/assert.m4: New file.
66444         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
66445
66446 1998-04-05  Jim Meyering  <meyering@ascend.com>
66447
66448         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
66449         (jm_PREREQ): Use it here.
66450
66451 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
66452
66453         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
66454         in acconfig.h.
66455
66456 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
66457
66458         * m4/prereq.m4: New file.
66459         * m4/error.m4: New file.
66460         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
66461
66462 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
66463
66464         * m4/getline.m4: Don't set am_cv_func_working_getline before the
66465         cache-check for the same variable -- that defeated the purpose of
66466         the test; the test program was never run.  This was a problem only
66467         on systems with losing getline functions -- HP-UX 10.20 is one.
66468         Reported by Bjorn Helgaas.
66469
66470 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
66471
66472         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
66473
66474 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
66475
66476         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
66477
66478         * m4/const.m4: New file.  Use an initializer in this declaration
66479         typedef int charset[2]; const charset x;
66480         Reported by Bob Glickstein.
66481
66482 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
66483
66484         * m4/chown.m4: Fix reversed types on -1 args to chown.
66485         From Kaveh Ghazi.
66486
66487 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
66488
66489         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
66490         Add lseek and memchr.
66491
66492         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
66493         T.E.Dickey <dickey@clark.net> said that some older preprocessors
66494         have a 20-character limit on names.
66495
66496 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
66497
66498         * m4/inttypes_h.m4: New file.
66499         * m4/uintmax_t.m4: New file.
66500         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
66501
66502
66503         -----
66504
66505         Local Variables:
66506         coding: utf-8
66507         End:
66508
66509         Copyright (C) 1997-2010 Free Software Foundation, Inc.
66510
66511         Copying and distribution of this file, with or without
66512         modification, are permitted provided the copyright notice
66513         and this notice are preserved.