Merge commit 'stable/20110609'
[gnulib.git] / ChangeLog
1 2011-06-09  Bruno Haible  <bruno@clisp.org>
2
3         thread: Fix confusion between NULL and 0.
4         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
5         Reported by Paul Eggert.
6
7 2011-06-09  Bruno Haible  <bruno@clisp.org>
8
9         acl tests: Fix compilation error on HP-UX 11.
10         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
11
12 2011-06-09  Bruno Haible  <bruno@clisp.org>
13
14         rmdir: Avoid test failure on HP-UX 10.20.
15         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
16         EEXIST.
17
18 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
19
20         tests: fix usage message in 'mktempd_'
21         * tests/init.sh (mktempd_): In the usage message, use literal
22         'mktempd_', not '$ME' (which is even undefined), as the name of
23         the subroutine.
24
25 2011-06-06  Eric Blake  <eblake@redhat.com>
26
27         canonicalize-lgpl: use common idiom
28         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
29         over newer POSIX -Rf.
30         Reported by Bruno Haible.
31
32         canonicalize-lgpl: work around AIX realpath bug
33         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
34         * doc/posix-functions/realpath.texi (realpath): Document it.
35         Reported by Bruno Haible.
36
37 2011-06-06  Bruno Haible  <bruno@clisp.org>
38
39         careadlinkat: Avoid mismatch between ssize_t and int.
40         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
41         * lib/careadlinkat.c (careadlinkatcwd): Define always.
42
43 2011-06-05  Bruno Haible  <bruno@clisp.org>
44
45         ansi-c++-opt: Interoperability with libtool.
46         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
47         set the variable to "no", not to ":".
48         * NEWS: Mention the change.
49
50 2011-06-05  Bruno Haible  <bruno@clisp.org>
51
52         acl: Fix test failure on AIX 7.
53         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
54         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
55
56 2011-06-05  Bruno Haible  <bruno@clisp.org>
57
58         pipe-filter-ii: Fix test failure on AIX and IRIX.
59         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
60         with EAGAIN, retry with a smaller buffer size.
61
62 2011-06-05  Bruno Haible  <bruno@clisp.org>
63
64         localename: Fix link dependencies.
65         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
66         * modules/localename-tests (Makefile.am): Link test-localename with
67         $(LIBTHREAD).
68
69 2011-06-05  Bruno Haible  <bruno@clisp.org>
70
71         unsetenv: Avoid gcc warning.
72         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
73
74 2011-06-05  Bruno Haible  <bruno@clisp.org>
75
76         setenv: Avoid gcc warning.
77         * lib/setenv.c (setenv): Provide declaration if system lacks it.
78
79 2011-06-05  Bruno Haible  <bruno@clisp.org>
80
81         sys_select: Ensure memset is declared also on AIX 7.
82         * lib/sys_select.in.h: Include <string.h> also on AIX.
83         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
84         self-contained also on AIX 7.1.
85
86 2011-06-04  Bruno Haible  <bruno@clisp.org>
87
88         setlocale: Enable replacement on Cygwin 1.5.
89         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
90         Cygwin 1.5.x.
91         * doc/posix-functions/setlocale.texi: Mention that the problem with the
92         LC_CTYPE category also exists on Cygwin 1.5.x.
93
94 2011-06-03  Bruno Haible  <bruno@clisp.org>
95
96         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
97         * lib/localename.h: Update copyright header.
98         * lib/localename.c: Likewise.
99         * lib/relocatable.h: Likewise.
100         * lib/relocatable.c: Likewise.
101
102 2011-06-02  Bruno Haible  <bruno@clisp.org>
103
104         doc: Fix a module name.
105         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
106
107 2011-06-02  Bruno Haible  <bruno@clisp.org>
108
109         pipe2: Remove dependency on 'nonblocking' module.
110         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
111         O_NONBLOCK is defined by gnulib.
112         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
113         is zero.
114         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
115         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
116         defined by gnulib.
117         (get_nonblocking_flag): New function.
118         (main): Test O_NONBLOCK flag only if it is nonzero.
119         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
120
121 2011-05-31  Bruno Haible  <bruno@clisp.org>
122
123         Fix link errors in tests: openat-die uses gettext-h.
124         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
125         against $(LIBINTL).
126         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
127         against $(LIBINTL).
128         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
129         $(LIBINTL).
130         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
131         against $(LIBINTL).
132         * modules/linkat-tests (Makefile.am): Link test-linkat against
133         $(LIBINTL).
134         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
135         $(LIBINTL).
136         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
137         against $(LIBINTL).
138         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
139         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
140         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
141         $(LIBINTL).
142         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
143         $(LIBINTL).
144         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
145         $(LIBINTL).
146         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
147
148 2011-05-31  Bruno Haible  <bruno@clisp.org>
149
150         Fix link errors in tests: wait-process uses gettext-h.
151         * modules/nonblocking-pipe-tests (Makefile.am): Set
152         test_nonblocking_pipe_main_LDADD.
153         * modules/nonblocking-socket-tests (Makefile.am): Link
154         test-nonblocking-socket-main against $(LIBINTL).
155         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
156
157 2011-05-29  Bruno Haible  <bruno@clisp.org>
158
159         wctype-h: Avoid namespace pollution on Solaris 2.6.
160         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
161         identifiers.
162         * doc/posix-headers/wctype.texi: Mention the problem.
163         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
164
165 2011-05-28  Jim Meyering  <meyering@redhat.com>
166
167         parse-datetime.y: accommodate -Wstrict-overflow
168         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
169         placate -Wstrict-overflow.
170
171         trim: avoid a warning from -O2 -Wstrict-overflow
172         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
173
174 2011-05-28  Bruno Haible  <bruno@clisp.org>
175
176         getloadavg: Remove an unreliable safety check.
177         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
178         getloadavg.c is in place.
179         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
180         Reported by Sam Steingold <sds@gnu.org>.
181
182 2011-05-26  Simon Josefsson  <simon@josefsson.org>
183
184         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
185
186 2011-05-26  Bruno Haible  <bruno@clisp.org>
187
188         mbsrchr: Avoid collision with system function on Interix.
189         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
190         Reported by Markus Duft <mduft@gentoo.org>.
191
192 2011-05-25  Eric Blake  <eblake@redhat.com>
193
194         getcwd: work around mingw bug
195         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
196         * doc/posix-functions/getcwd.texi (getcwd): Document it.
197         Reported by Matthias Bolte.
198
199 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
200
201         test-intprops: disable -Wtype-limits diagnostics
202         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
203         diagnostics.  Otherwise, the integer overflow macros generate many
204         diagnostics.  Reported by Jim Meyering in
205         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
206
207 2011-05-24  Eric Blake  <eblake@redhat.com>
208
209         docs: document recently fixed glibc printf bug
210         * doc/posix-functions/fprintf.texi (fprintf): Document it.
211         * doc/posix-functions/printf.texi (printf): Likewise.
212         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
213         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
214
215 2011-05-24  Eric Blake  <eblake@redhat.com>
216
217         tests: fix logic bug in init.sh
218         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
219         shell.
220
221 2011-05-24  Jim Meyering  <meyering@redhat.com>
222
223         utimensat: do not reference an out-of-scope buffer
224         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
225         declared in an inner scope, yet "times" would be dereferenced outside
226         the scope in which "ts" was valid.
227         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
228         of ts[2] "out/up", so that the use of aliased "times" (via
229         "times = ts;") does not end up referencing an out-of-scope "ts"
230
231         opendir-safer.c: don't clobber errno; don't close negative FD
232         * lib/opendir-safer.c (opendir_safer):
233         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
234         file descriptor, and more importantly, don't clobber the
235         offending errno value with EINVAL.  Before, upon failure
236         of dup_safer, we would pass the negative file descriptor to
237         fdopendir, which would clobber errno.
238
239 2011-05-23  Bruno Haible  <bruno@clisp.org>
240
241         idcache: Fix module description.
242         * modules/idcache (Include): Set to "idcache.h".
243
244 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
245
246         gnulib-tool: fix portability problem with MacOS sed
247         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
248         before the "}".  Problem reported by Leo in
249         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
250         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
251         sed_extract_condition1, sed_extract_condition2.
252
253 2011-05-23  Bruno Haible  <bruno@clisp.org>
254
255         getugroups: Fix module description.
256         * modules/getugroups (Include): Set to "getugroups.h".
257
258 2011-05-23  Bruno Haible  <bruno@clisp.org>
259             Eric Blake  <eblake@redhat.com>
260
261         linkat, renameat: Update dependencies.
262         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
263         * modules/linkat (Depends-on): Likewise. Remove also readlink,
264         symlinkat.
265
266 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
267
268         verify: fix bug when gnulib <assert.h> is also included
269         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
270         is defined, not if _GL_STATIC_ASSERT_H is not defined.
271         Perhaps there's a better way, but this fixes the immediate problem.
272         Problem reported by Bruno Haible in
273         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
274
275 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
276
277         clock-time: change to LGPLv2+.
278         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
279         BSD-like but we have no mark for that; this is good enough for now.
280
281 2011-05-21  Bruno Haible  <bruno@clisp.org>
282
283         relocatable-prog-wrapper: Fix possible link error.
284         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
285         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
286         (gl_FUNC_SETENV): ... to here.
287         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
288         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
289
290 2011-05-20  Jim Meyering  <meyering@redhat.com>
291
292         maint: replace misused "a" with "an"
293         * doc/intprops.texi: "a integer"
294         * doc/regex.texi: "a explanation"
295         * lib/alignof.h: "a object"
296         * lib/argmatch.h: "a explanation"
297         * lib/argp-help.c: "a option" and "a OPTION_DOC"
298         * lib/stdint.in.h: "a integer"
299         * lib/userspec.c: "a owner"
300         * doc/gnulib.texi: Fix "a idea", and reword.
301
302 2011-05-19  Jim Meyering  <meyering@redhat.com>
303
304         maint: correct misuse of "a" and "an"
305         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
306         * lib/argp-help.c: "an docum...": s/an/a/
307         * lib/argp-parse.c: "An vector": s/An/A/
308         * lib/execute.c: "an native": s/an/a/
309         * lib/spawn-pipe.c: Likewise.
310         * lib/gc.h: "an Gc_rc": s/an/a/
311         * lib/unigbrk.in.h: "an grapheme": s/an/a/
312         * lib/fts.c: "an stat.st_dev": s/an/a/
313
314 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
315
316         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
317         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
318         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
319         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
320         (_GL_REMAINDER_OVERFLOW): Use it.
321
322         intprops: work around C compiler bugs
323         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
324         bug in Sun C 5.11 2010/08/13 and other compilers; see
325         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
326
327         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
328         * doc/intprops.texi (Integer Type Determination): Fix
329         documentation for TYPE_IS_INTEGER: it returns an constant
330         expression, not an integer constant expression.  Fix doc for
331         TYPE_SIGNED: it returns an integer constant expression only if its
332         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
333         hardly worth documented that way....)
334
335 2011-05-18  Eric Blake  <eblake@redhat.com>
336
337         fnmatch: avoid compiler warning
338         * lib/fnmatch_loop.c (FCT): Use correct type.
339         Reported by Matthias Bolte.
340
341 2011-05-13  Jim Meyering  <meyering@redhat.com>
342
343         maint.mk: three new prohibit_<HDR>_without_use rules
344         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
345         (sc_prohibit_stdio-safer_without_use): Likewise.
346         (sc_prohibit_xfreopen_without_use): Likewise.
347
348 2011-05-17  Jim Meyering  <meyering@redhat.com>
349
350         announce-gen: fail if the NEWS delta is empty
351         If there's nothing noteworthy in NEWS, then either you forgot
352         or you shouldn't be releasing.
353         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
354
355 2011-05-17  Pádraig Brady <P@draigBrady.com>
356
357         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
358         reserved symbols starting with double underscore from the check.
359
360 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
361
362         intprops: add doc
363         * doc/intprops.texi: New file, documenting intprops.
364         * doc/gnulib.texi (Particular Modules): Include it.
365
366         verify: add doc to gnulib manual and fix example
367         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
368         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
369         (Compile-time Assertions): Fix example so it can't overflow.
370
371 2011-05-17  Jim Meyering  <meyering@redhat.com>
372
373         warnings.m4: don't usurp save_CPPFLAGS variable name
374         * m4/warnings.m4: Prefix local temporary variable name with gl_.
375
376         doc: fix typo
377         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
378
379 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
380             Bruno Haible  <bruno@clisp.org>
381
382         doc: Tweak recent change.
383         * README (Portability guidelines): Tweak new text.
384         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
385         Interix 6.1.
386
387 2011-05-16  Eric Blake  <eblake@redhat.com>
388
389         inttypes: avoid autoconf warning
390         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
391         * m4/stdint.m4 (gl_STDINT_H): Likewise.
392
393 2011-05-16  Sam Steingold <sds@gnu.org>
394         and Eric Blake  <eblake@redhat.com>
395
396         vc-list-files: accept multiple directory operands
397         * build-aux/vc-list-files: Iterate over all remaining operands.
398
399 2011-05-16  Bruno Haible  <bruno@clisp.org>
400
401         Fix confusion regarding deprecated modules.
402         * modules/calloc (Status, Notice): Mark module as deprecated, not
403         obsolete.
404         * modules/fnmatch-posix (Status, Notice): Likewise.
405         * modules/getdate (Status, Notice): Likewise.
406         * modules/getopt (Status, Notice): Likewise.
407         * modules/malloc (Status, Notice): Likewise.
408         * modules/pipe (Status, Notice): Likewise.
409         * modules/realloc (Status, Notice): Likewise.
410         * modules/rename-dest-slash (Status, Notice): Likewise.
411         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
412         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
413         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
414         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
415         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
416
417 2011-05-16  Bruno Haible  <bruno@clisp.org>
418
419         doc: List the target platforms.
420         * doc/gnulib-intro.texi (Target Platforms): New section.
421         * doc/gnulib.texi (Introduction): Update menu.
422         * README (Portability guidelines): Refer to the new section. Update
423         statement about oldest supported environment. Remove rationale why
424         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
425         unportable C89 function.
426         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
427         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
428
429 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
430
431         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
432
433 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
434
435         intprops-tests: new module
436         * modules/intprops-tests, tests/test-intprops.c: New files.
437
438         intprops: add safe, portable integer overflow checking
439         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
440         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
441         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
442         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
443         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
444         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
445         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
446         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
447         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
448         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
449         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
450
451 2011-05-12  James Youngman  <jay@gnu.org>
452
453         Add a test for glibc's Bugzilla bug #12378.
454         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
455         doesn't allow the literal matching of a lone "[" (which is
456         required by POSIX).
457         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
458
459 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
460
461         Sync glibc change fixing Bugzilla bug #12378.
462         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
463         beginning and fall back to matching as normal character if the
464         string ends before the matching ']' is found.  This is what POSIX
465         requires.
466
467 2011-05-13  Eric Blake  <eblake@redhat.com>
468
469         getcwd-lgpl: relax test for FreeBSD
470         * doc/posix-functions/getcwd.texi (getcwd): Document portability
471         issue.
472         * tests/test-getcwd-lgpl.c (main): Relax test.
473         Reported by Matthias Bolte.
474
475 2011-05-11  Eric Blake  <eblake@redhat.com>
476
477         test-fflush: silence compiler warning
478         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
479
480 2011-05-11  Bruno Haible  <bruno@clisp.org>
481
482         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
483         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
484         * modules/canonicalize (Depends-on): Add 'nocrash'.
485         * modules/canonicalize-lgpl (Depends-on): Likewise.
486         * doc/posix-functions/realpath.texi: Update platforms list.
487         Reported by Ryan Schmidt <ryandesign@macports.org>.
488
489 2011-05-11  Bruno Haible  <bruno@clisp.org>
490
491         group-member: Declare function in <unistd.h>.
492         * lib/unistd.in.h (group_member): New declaration.
493         * lib/group-member.h: Remove file.
494         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
495         * tests/test-unistd-c++.cc: Check signature of group_member.
496         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
497         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
498         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
499         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
500         HAVE_GROUP_MEMBER.
501         * modules/group-member (Files): Remove lib/group-member.h.
502         (Depends-on): Add unistd. Specify conditions.
503         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
504         (Include): Change to <unistd.h>.
505         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
506         HAVE_GROUP_MEMBER.
507         * NEWS: Mention the change.
508         * lib/euidaccess.c: Don't include group-member.h.
509
510 2011-05-11  Bruno Haible  <bruno@clisp.org>
511
512         group-member: Document module.
513         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
514         module.
515
516 2011-05-11  Bruno Haible  <bruno@clisp.org>
517
518         fclose: Fix mistake earlier today.
519         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
520
521 2011-05-11  Eric Blake  <eblake@redhat.com>
522
523         fclose: preserve fflush errors
524         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
525         Reported by Jim Meyering.
526
527         bootstrap: support a prereq of 'rpcgen -' on RHEL5
528         * build-aux/bootstrap (check_versions): When no specific version
529         is required, merely check that the app produces an exit status
530         that indicates its existence.
531
532         maint.mk: drop redundant check
533         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
534         the same but better.
535
536 2011-05-11  Bruno Haible  <bruno@clisp.org>
537
538         fclose: Fix possible link error.
539         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
540         unregister_shadow_fd. Improve comments.
541         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
542         Eric Blake.
543
544 2011-05-11  Jim Meyering  <meyering@redhat.com>
545
546         maint.mk: improve "can not" detection and generalize rule name
547         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
548         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
549         Use the same technique as in sc_prohibit_doubled_word, so that
550         we recognize "can not" also when the words are separated by a newline.
551         Suggested by Eric Blake.
552         (perl_filename_lineno_text_): Define.  Factored out of...
553         (prohibit_doubled_word_): ...here.  Use the new definition.
554         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
555         (prohibit_undesirable_word_seq_RE_): New overridable variable.
556         (ignore_undesirable_word_sequence_RE_): New overridable variable.
557
558 2011-05-10  Eric Blake  <eblake@redhat.com>
559
560         fclose: avoid double close race when possible
561         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
562         all but WINDOWS_SOCKETS.
563
564 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
565
566         openat: correct new comment
567         * lib/openat-proc.c (openat_proc_name): Correct the comment.
568
569 2011-05-10  Jim Meyering  <meyering@redhat.com>
570
571         openat: add comments
572         * lib/openat-proc.c (openat_proc_name): Add comments,
573         mostly from Eric Blake.
574
575 2011-05-09  Eric Blake  <eblake@redhat.com>
576
577         openat: reduce syscalls in first probe of /proc
578         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
579         be a directory.  Simplify the probe for .. bugs.
580         * modules/openat (Depends-on): Drop same-inode.
581         Reported by Bastien ROUCARIES.
582
583 2011-05-09  Jim Meyering  <meyering@redhat.com>
584
585         maint.mk: change semantics/name of tight_scope variables
586         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
587         Rename variables to align with semantics that make them more useful.
588
589         maint.mk: tweak new rule's name not to impinge
590         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
591         (sc_tight_scope): Use new rule name rather than $@-0.
592
593         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
594         * top/maint.mk (sc_tight_scope): New rule.
595         (sc_tight_scope-0): New rule, ifdef'd out.
596         (_gl_TS_dir): Default.
597         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
598         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
599
600 2011-05-09  Simon Josefsson  <simon@josefsson.org>
601
602         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
603         Haible <bruno@clisp.org>.
604
605 2011-05-08  Bruno Haible  <bruno@clisp.org>
606
607         Comments.
608         * m4/isnanf.m4: Add comment.
609         * m4/isnanl.m4: Likewise.
610
611 2011-05-08  Bruno Haible  <bruno@clisp.org>
612
613         glob: Remove obsolete macro.
614         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
615
616 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
617
618         intprops: Sun C 5.11 supports __typeof__
619         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
620         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
621         which is new.
622         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
623
624         intprops: switch to usual gnulib indenting and naming
625         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
626         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
627
628         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
629
630 2011-05-08  Jim Meyering  <meyering@redhat.com>
631
632         maint.mk: suppress "Entering/Leaving directory" diag in announcement
633         * top/maint.mk (release-prep): Use make's --no-print-directory
634         option when generating the announcement.  This eliminates the
635         pesky "make[2]: Entering/Leaving directory" diagnostics in the
636         generated announcement template.
637
638 2011-05-08  Bruno Haible  <bruno@clisp.org>
639
640         tzset: Fix gettimeofday wrapper on Solaris 2.6.
641         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
642         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
643
644 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
645
646         ignore-value, verify: Omit include files from lib_SOURCES.
647         * modules/ignore-value, modules/verify (Makefile.am):
648         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
649         that leads Automake to duplicate use of am__objects_... variables
650         in Makefile.in.  See
651         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
652
653 2011-05-07  Bruno Haible  <bruno@clisp.org>
654
655         fclose: Simplify autoconf macro.
656         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
657         defined.
658
659 2011-05-07  Bruno Haible  <bruno@clisp.org>
660
661         canonicalize-lgpl: Fix autoconf macro ordering bug.
662         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
663         gl_STDLIB_H_DEFAULTS.
664
665 2011-05-06  Eric Blake  <eblake@redhat.com>
666
667         maintainer-makefile: make sc_po_check easier to tune
668         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
669         to probe for strings, such as an alternate location for gnulib.
670
671         fclose: guarantee behavior on seekable stdin
672         * modules/fclose (Depends-on): Add fflush.
673         * doc/posix-functions/fclose.texi (fclose): Document this.
674         * tests/test-fclose.c (main): Make test for this unconditional.
675
676 2011-05-06  Bruno Haible  <bruno@clisp.org>
677
678         fflush, fpurge: Relicense under LGPLv2+.
679         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
680         * modules/fpurge (License): Likewise.
681         With permission from Eric Blake and Jim Meyering.
682         Suggested by Eric Blake.
683
684 2011-05-06  Karl Berry  <karl@gnu.org>
685
686         * MODULES.html.sh (func_all_modules): remove exit.
687
688 2011-05-06  Jim Meyering  <meyering@redhat.com>
689
690         maint.mk: use info-gnu@ as the default only for a stable release
691         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
692         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
693         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
694         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
695
696 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
697
698         assert-h: new module, which supports C1X-style static_assert
699         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
700         * lib/verify.h: Revamp so that this can be copied into assert.h,
701         while retaining the ability to use it standalone as before.
702         Rename private identifiers so as not to encroach on the
703         standard C namespace, since this is now used by assert.h.
704         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
705         the old verify_true.
706         (_GL_VERIFY_TRUE): New macro, with much of the contents of
707         the old verify_true.  Use _GL_VERIFY_TYPE.
708         (_GL_VERIFY): New macro, with much of the contents of the old verify.
709         (static_assert): New macro, if _GL_STATIC_ASSERT_H
710         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
711         defined when this file is copied into the replacement assert.h.
712         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
713         and _Static_assert is not built in.
714         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
715         defined, and use the new macros mentioned above.
716         * doc/posix-headers/assert.texi: Document this.
717
718 2011-05-05  Bruno Haible  <bruno@clisp.org>
719
720         fclose, fflush: Respect rules for use of AC_LIBOBJ.
721         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
722         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
723         gl_REPLACE_FCLOSE here.
724         * modules/fflush (Depends-on): Remove fclose.
725         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
726         combination with module 'fclose'.
727
728 2011-05-05  Bruno Haible  <bruno@clisp.org>
729
730         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
731         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
732         gl_FUNC_FFLUSH.
733         (gl_FUNC_FFLUSH): Use it.
734         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
735         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
736         gl_REPLACE_FSEEKO here.
737
738 2011-05-05  Bruno Haible  <bruno@clisp.org>
739
740         tzset: Relicense under LGPL.
741         * modules/tzset (License): Change to LGPL.
742         No agreement needed; it's a no-op.
743
744         strtoimax, strtoumax: Relicense under LGPL.
745         * modules/strtoimax (License): Change to LGPL.
746         * modules/strtoumax (License): Likewise.
747         With permission from Jim Meyering, Paul Eggert:
748         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
749         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
750
751         getgroups: Relicense under LGPL.
752         * modules/getgroups (License): Change to LGPL.
753         With permission from Jim Meyering, Paul Eggert, Eric Blake:
754         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
755         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
756         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
757
758         nanosleep: Relicense under LGPL.
759         * modules/nanosleep (License): Change to LGPL.
760         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
761         Haible:
762         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
763         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
764         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
765         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
766
767         futimens: Relicense under LGPL.
768         * modules/futimens (License): Change to LGPL.
769         With permission from Eric Blake:
770         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
771
772         fflush: Relicense under LGPL.
773         * modules/fflush (License): Change to LGPL.
774         With permission from Eric Blake, Bruno Haible, Jim Meyering:
775         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
776         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
777         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
778
779         tmpfile: Relicense under LGPL.
780         * modules/tmpfile (License): Change to LGPL.
781         With permission from Ben Pfaff:
782         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
783
784         isfinite: Relicense under LGPL.
785         * modules/isfinite (License): Change to LGPL.
786         With permission from Ben Pfaff, Bruno Haible:
787         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
788         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
789
790         acosl..tanl: Relicense under LGPL.
791         * modules/acosl (License): Change to LGPL.
792         * modules/asinl (License): Likewise.
793         * modules/atanl (License): Likewise.
794         * modules/cosl (License): Likewise.
795         * modules/expl (License): Likewise.
796         * modules/logl (License): Likewise.
797         * modules/sinl (License): Likewise.
798         * modules/sqrtl (License): Likewise.
799         * modules/tanl (License): Likewise.
800         Source code originally from glibc and Paolo Bonzini. Agreements:
801         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
802         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
803
804 2011-05-05  Bruno Haible  <bruno@clisp.org>
805
806         signal: Define sighandler_t.
807         * lib/signal.in.h (sighandler_t): New type.
808         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
809         whether sighandler_t is defined.
810         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
811         * modules/signal (Depends-on): Add extensions.
812         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
813         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
814         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
815
816 2011-05-05  Eric Blake  <eblake@redhat.com>
817
818         maint: remove useless REPLACE_*_H macros
819         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
820         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
821         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
822         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
823         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
824         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
825         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
826         * m4/btowc.m4: Update callers.
827         * m4/dirfd.m4: Likewise.
828         * m4/duplocale.m4: Likewise.
829         * m4/fchdir.m4: Likewise.
830         * m4/fdopendir.m4: Likewise.
831         * m4/inet_ntop.m4: Likewise.
832         * m4/inet_pton.m4: Likewise.
833         * m4/ioctl.m4: Likewise.
834         * m4/mbrlen.m4: Likewise.
835         * m4/mbrtowc.m4: Likewise.
836         * m4/mbsinit.m4: Likewise.
837         * m4/mbsnrtowcs.m4: Likewise.
838         * m4/mbsrtowcs.m4: Likewise.
839         * m4/poll.m4: Likewise.
840         * m4/setlocale.m4: Likewise.
841         * m4/wcrtomb.m4: Likewise.
842         * m4/wcsnrtombs.m4: Likewise.
843         * m4/wcsrtombs.m4: Likewise.
844         * m4/wctob.m4: Likewise.
845         * m4/wcwidth.m4: Likewise.
846         * modules/posix_spawn: Likewise.
847         * modules/posix_spawn_file_actions_addclose: Likewise.
848         * modules/posix_spawn_file_actions_adddup2: Likewise.
849         * modules/posix_spawn_file_actions_addopen: Likewise.
850         * modules/posix_spawn_file_actions_destroy: Likewise.
851         * modules/posix_spawn_file_actions_init: Likewise.
852         * modules/posix_spawnattr_destroy: Likewise.
853         * modules/posix_spawnattr_getflags: Likewise.
854         * modules/posix_spawnattr_getpgroup: Likewise.
855         * modules/posix_spawnattr_getschedparam: Likewise.
856         * modules/posix_spawnattr_getschedpolicy: Likewise.
857         * modules/posix_spawnattr_getsigdefault: Likewise.
858         * modules/posix_spawnattr_getsigmask: Likewise.
859         * modules/posix_spawnattr_init: Likewise.
860         * modules/posix_spawnattr_setflags: Likewise.
861         * modules/posix_spawnattr_setpgroup: Likewise.
862         * modules/posix_spawnattr_setschedparam: Likewise.
863         * modules/posix_spawnattr_setschedpolicy: Likewise.
864         * modules/posix_spawnattr_setsigdefault: Likewise.
865         * modules/posix_spawnattr_setsigmask: Likewise.
866         * modules/posix_spawnp: Likewise.
867
868 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
869
870         Add option to do-release-commit-and-tag to specify branch.
871         * build-aux/do-release-commit-and-tag: Add --branch.
872
873 2011-05-03  Bruno Haible  <bruno@clisp.org>
874
875         Avoid unnecessary compilation units, through conditional dependencies.
876         * modules/accept (Depends-on): Add conditions to the dependencies.
877         * modules/acosl (Depends-on): Likewise.
878         * modules/argz (Depends-on): Likewise.
879         * modules/asinl (Depends-on): Likewise.
880         * modules/atanl (Depends-on): Likewise.
881         * modules/atoll (Depends-on): Likewise.
882         * modules/bind (Depends-on): Likewise.
883         * modules/btowc (Depends-on): Likewise.
884         * modules/canonicalize-lgpl (Depends-on): Likewise.
885         * modules/ceil (Depends-on): Likewise.
886         * modules/ceilf (Depends-on): Likewise.
887         * modules/ceill (Depends-on): Likewise.
888         * modules/chdir-long (Depends-on): Likewise.
889         * modules/chown (Depends-on): Likewise.
890         * modules/close (Depends-on): Likewise.
891         * modules/connect (Depends-on): Likewise.
892         * modules/cosl (Depends-on): Likewise.
893         * modules/dirfd (Depends-on): Likewise.
894         * modules/dprintf (Depends-on): Likewise.
895         * modules/dprintf-posix (Depends-on): Likewise.
896         * modules/error (Depends-on): Likewise.
897         * modules/euidaccess (Depends-on): Likewise.
898         * modules/expl (Depends-on): Likewise.
899         * modules/faccessat (Depends-on): Likewise.
900         * modules/fchdir (Depends-on): Likewise.
901         * modules/fclose (Depends-on): Likewise.
902         * modules/fcntl (Depends-on): Likewise.
903         * modules/fdopendir (Depends-on): Likewise.
904         * modules/fflush (Depends-on): Likewise.
905         * modules/floor (Depends-on): Likewise.
906         * modules/floorf (Depends-on): Likewise.
907         * modules/floorl (Depends-on): Likewise.
908         * modules/fnmatch (Depends-on): Likewise.
909         * modules/fopen (Depends-on): Likewise.
910         * modules/fprintf-posix (Depends-on): Likewise.
911         * modules/frexp (Depends-on): Likewise.
912         * modules/frexp-nolibm (Depends-on): Likewise.
913         * modules/frexpl (Depends-on): Likewise.
914         * modules/frexpl-nolibm (Depends-on): Likewise.
915         * modules/fseek (Depends-on): Likewise.
916         * modules/fsusage (Depends-on): Likewise.
917         * modules/ftell (Depends-on): Likewise.
918         * modules/ftello (Depends-on): Likewise.
919         * modules/futimens (Depends-on): Likewise.
920         * modules/getcwd (Depends-on): Likewise.
921         * modules/getcwd-lgpl (Depends-on): Likewise.
922         * modules/getdelim (Depends-on): Likewise.
923         * modules/getdomainname (Depends-on): Likewise.
924         * modules/getgroups (Depends-on): Likewise.
925         * modules/gethostname (Depends-on): Likewise.
926         * modules/getline (Depends-on): Likewise.
927         * modules/getlogin_r (Depends-on): Likewise.
928         * modules/getopt-posix (Depends-on): Likewise.
929         * modules/getpeername (Depends-on): Likewise.
930         * modules/getsockname (Depends-on): Likewise.
931         * modules/getsockopt (Depends-on): Likewise.
932         * modules/getsubopt (Depends-on): Likewise.
933         * modules/getusershell (Depends-on): Likewise.
934         * modules/glob (Depends-on): Likewise.
935         * modules/grantpt (Depends-on): Likewise.
936         * modules/iconv_open (Depends-on): Likewise.
937         * modules/iconv_open-utf (Depends-on): Likewise.
938         * modules/inet_ntop (Depends-on): Likewise.
939         * modules/inet_pton (Depends-on): Likewise.
940         * modules/ioctl (Depends-on): Likewise.
941         * modules/isapipe (Depends-on): Likewise.
942         * modules/isfinite (Depends-on): Likewise.
943         * modules/isinf (Depends-on): Likewise.
944         * modules/lchown (Depends-on): Likewise.
945         * modules/ldexpl (Depends-on): Likewise.
946         * modules/link (Depends-on): Likewise.
947         * modules/linkat (Depends-on): Likewise.
948         * modules/listen (Depends-on): Likewise.
949         * modules/logl (Depends-on): Likewise.
950         * modules/lstat (Depends-on): Likewise.
951         * modules/mbrlen (Depends-on): Likewise.
952         * modules/mbrtowc (Depends-on): Likewise.
953         * modules/mbsinit (Depends-on): Likewise.
954         * modules/mbsnrtowcs (Depends-on): Likewise.
955         * modules/mbsrtowcs (Depends-on): Likewise.
956         * modules/mbtowc (Depends-on): Likewise.
957         * modules/memcmp (Depends-on): Likewise.
958         * modules/mkdir (Depends-on): Likewise.
959         * modules/mkdtemp (Depends-on): Likewise.
960         * modules/mkfifo (Depends-on): Likewise.
961         * modules/mkfifoat (Depends-on): Likewise.
962         * modules/mknod (Depends-on): Likewise.
963         * modules/mkostemp (Depends-on): Likewise.
964         * modules/mkostemps (Depends-on): Likewise.
965         * modules/mkstemp (Depends-on): Likewise.
966         * modules/mkstemps (Depends-on): Likewise.
967         * modules/mktime (Depends-on): Likewise.
968         * modules/nanosleep (Depends-on): Likewise.
969         * modules/open (Depends-on): Likewise.
970         * modules/openat (Depends-on): Likewise.
971         * modules/perror (Depends-on): Likewise.
972         * modules/poll (Depends-on): Likewise.
973         * modules/popen (Depends-on): Likewise.
974         * modules/posix_spawn (Depends-on): Likewise.
975         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
976         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
977         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
978         * modules/posix_spawnp (Depends-on): Likewise.
979         * modules/pread (Depends-on): Likewise.
980         * modules/printf-posix (Depends-on): Likewise.
981         * modules/ptsname (Depends-on): Likewise.
982         * modules/putenv (Depends-on): Likewise.
983         * modules/pwrite (Depends-on): Likewise.
984         * modules/readline (Depends-on): Likewise.
985         * modules/readlink (Depends-on): Likewise.
986         * modules/readlinkat (Depends-on): Likewise.
987         * modules/recv (Depends-on): Likewise.
988         * modules/recvfrom (Depends-on): Likewise.
989         * modules/regex (Depends-on): Likewise.
990         * modules/remove (Depends-on): Likewise.
991         * modules/rename (Depends-on): Likewise.
992         * modules/renameat (Depends-on): Likewise.
993         * modules/rmdir (Depends-on): Likewise.
994         * modules/round (Depends-on): Likewise.
995         * modules/roundf (Depends-on): Likewise.
996         * modules/roundl (Depends-on): Likewise.
997         * modules/rpmatch (Depends-on): Likewise.
998         * modules/select (Depends-on): Likewise.
999         * modules/send (Depends-on): Likewise.
1000         * modules/sendto (Depends-on): Likewise.
1001         * modules/setenv (Depends-on): Likewise.
1002         * modules/setlocale (Depends-on): Likewise.
1003         * modules/setsockopt (Depends-on): Likewise.
1004         * modules/shutdown (Depends-on): Likewise.
1005         * modules/sigaction (Depends-on): Likewise.
1006         * modules/signbit (Depends-on): Likewise.
1007         * modules/sigprocmask (Depends-on): Likewise.
1008         * modules/sinl (Depends-on): Likewise.
1009         * modules/sleep (Depends-on): Likewise.
1010         * modules/snprintf (Depends-on): Likewise.
1011         * modules/snprintf-posix (Depends-on): Likewise.
1012         * modules/socket (Depends-on): Likewise.
1013         * modules/sprintf-posix (Depends-on): Likewise.
1014         * modules/sqrtl (Depends-on): Likewise.
1015         * modules/stat (Depends-on): Likewise.
1016         * modules/strchrnul (Depends-on): Likewise.
1017         * modules/strdup-posix (Depends-on): Likewise.
1018         * modules/strerror (Depends-on): Likewise.
1019         * modules/strerror_r-posix (Depends-on): Likewise.
1020         * modules/strndup (Depends-on): Likewise.
1021         * modules/strnlen (Depends-on): Likewise.
1022         * modules/strptime (Depends-on): Likewise.
1023         * modules/strsep (Depends-on): Likewise.
1024         * modules/strsignal (Depends-on): Likewise.
1025         * modules/strstr-simple (Depends-on): Likewise.
1026         * modules/strtod (Depends-on): Likewise.
1027         * modules/strtoimax (Depends-on): Likewise.
1028         * modules/strtok_r (Depends-on): Likewise.
1029         * modules/strtoumax (Depends-on): Likewise.
1030         * modules/symlink (Depends-on): Likewise.
1031         * modules/symlinkat (Depends-on): Likewise.
1032         * modules/tanl (Depends-on): Likewise.
1033         * modules/tcgetsid (Depends-on): Likewise.
1034         * modules/tmpfile (Depends-on): Likewise.
1035         * modules/trunc (Depends-on): Likewise.
1036         * modules/truncf (Depends-on): Likewise.
1037         * modules/truncl (Depends-on): Likewise.
1038         * modules/uname (Depends-on): Likewise.
1039         * modules/unlink (Depends-on): Likewise.
1040         * modules/unlockpt (Depends-on): Likewise.
1041         * modules/unsetenv (Depends-on): Likewise.
1042         * modules/usleep (Depends-on): Likewise.
1043         * modules/utimensat (Depends-on): Likewise.
1044         * modules/vasprintf (Depends-on): Likewise.
1045         * modules/vdprintf (Depends-on): Likewise.
1046         * modules/vdprintf-posix (Depends-on): Likewise.
1047         * modules/vfprintf-posix (Depends-on): Likewise.
1048         * modules/vprintf-posix (Depends-on): Likewise.
1049         * modules/vsnprintf (Depends-on): Likewise.
1050         * modules/vsnprintf-posix (Depends-on): Likewise.
1051         * modules/vsprintf-posix (Depends-on): Likewise.
1052         * modules/wcrtomb (Depends-on): Likewise.
1053         * modules/wcscasecmp (Depends-on): Likewise.
1054         * modules/wcscspn (Depends-on): Likewise.
1055         * modules/wcsdup (Depends-on): Likewise.
1056         * modules/wcsncasecmp (Depends-on): Likewise.
1057         * modules/wcsnrtombs (Depends-on): Likewise.
1058         * modules/wcspbrk (Depends-on): Likewise.
1059         * modules/wcsrtombs (Depends-on): Likewise.
1060         * modules/wcsspn (Depends-on): Likewise.
1061         * modules/wcsstr (Depends-on): Likewise.
1062         * modules/wcstok (Depends-on): Likewise.
1063         * modules/wcswidth (Depends-on): Likewise.
1064         * modules/wctob (Depends-on): Likewise.
1065         * modules/wctomb (Depends-on): Likewise.
1066         * modules/wctype (Depends-on): Likewise.
1067         * modules/wcwidth (Depends-on): Likewise.
1068         * modules/write (Depends-on): Likewise.
1069
1070 2011-05-03  Bruno Haible  <bruno@clisp.org>
1071
1072         Support for conditional dependencies.
1073         * doc/gnulib.texi (Module description): Document the syntax of
1074         conditional dependencies.
1075         * gnulib-tool: New option --conditional-dependencies.
1076         (func_usage): Document it.
1077         (cond_dependencies): New variable.
1078         (func_get_automake_snippet_conditional,
1079         func_get_automake_snippet_unconditional): New functions, extracted from
1080         func_get_automake_snippet.
1081         (func_get_automake_snippet): Use them.
1082         (sed_first_32_chars): New variable.
1083         (func_module_shellfunc_name): New function.
1084         (func_module_shellvar_name): New function.
1085         (func_module_conditional_name): New function.
1086         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
1087         func_cond_module_condition): New functions.
1088         (func_modules_transitive_closure): Add support for conditional
1089         dependencies.
1090         (func_emit_lib_Makefile_am): For a conditional module, enclose the
1091         conditional automake snippet in an automake conditional.
1092         (func_emit_autoconf_snippets): Emit shell functions that contain the
1093         code for conditional modules.
1094         (func_import, func_create_testdir): Update specification.
1095
1096 2011-05-03  Eric Blake  <eblake@redhat.com>
1097
1098         test-getaddrinfo: report error information
1099         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
1100
1101 2011-05-03  Jim Meyering  <meyering@redhat.com>
1102
1103         bootstrap: avoid build failure when $GZIP is set
1104         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
1105         program name.  If defined at all, it is supposed to list gzip options.
1106         Reported by Alan Curry in http://debbugs.gnu.org/8609
1107
1108 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
1109
1110         readme-release: new module with release instructions
1111         * modules/readme-release: New module.
1112         * top/README-release: New file, from coreutils, grep, diffutils.
1113         * MODULES.html.sh (Support for maintaining and releasing): Add it.
1114
1115 2011-05-02  Eric Blake  <eblake@redhat.com>
1116
1117         fflush: also replace fclose when fixing fflush
1118         * modules/fflush (Depends-on): Add fclose.
1119         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
1120         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
1121         memstreams with no backing fd.
1122         * doc/posix-functions/fclose.texi (fclose): Document the use of
1123         fflush module to fix the bug.
1124         * tests/test-fclose.c (main): Relax test when fclose is used in
1125         isolation.
1126
1127         fclose: add some tests
1128         * modules/fclose-tests: New test module.
1129         * tests/test-fclose.c: New file.
1130         * doc/posix-functions/fclose.texi (fclose): Document the bug.
1131
1132         fclose: reduced dependencies
1133         * modules/fclose (Depends-on): Switch from fflush/fseeko to
1134         simpler lseek.
1135         * lib/fclose.c (rpl_fclose): Likewise.
1136         Reported by Simon Josefsson.
1137
1138         exit: drop remaining clients
1139         * modules/argmatch (Depends-on): Replace exit with stdlib.
1140         * modules/copy-file (Depends-on): Likewise.
1141         * modules/execute (Depends-on): Likewise.
1142         * modules/exitfail (Depends-on): Likewise.
1143         * modules/obstack (Depends-on): Likewise.
1144         * modules/pagealign_alloc (Depends-on): Likewise.
1145         * modules/pipe-filter-gi (Depends-on): Likewise.
1146         * modules/pipe-filter-ii (Depends-on): Likewise.
1147         * modules/savewd (Depends-on): Likewise.
1148         * modules/spawn-pipe (Depends-on): Likewise.
1149         * modules/wait-process (Depends-on): Likewise.
1150         * modules/xsetenv (Depends-on): Likewise.
1151         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
1152         * modules/git-merge-changelog (Depends-on): Likewise.
1153         * modules/long-options (Depends-on): Likewise.
1154         * modules/pt_chown (Depends-on): Likewise.
1155         * modules/sysexits (Depends-on): Likewise.
1156
1157         freading: relax license from LGPLv3+ to LGPLv2+
1158         * modules/freading (License): Relax LGPL version.
1159
1160 2011-05-02  Bruno Haible  <bruno@clisp.org>
1161
1162         fchdir: Remove unused dependencies.
1163         * modules/fchdir (Depends-on): Remove include_next.
1164
1165 2011-05-02  Bruno Haible  <bruno@clisp.org>
1166
1167         gnulib-tool: Refactor.
1168         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
1169         from func_emit_autoconf_snippets.
1170         (func_emit_autoconf_snippets): Use it.
1171
1172 2011-05-02  Simon Josefsson  <simon@josefsson.org>
1173
1174         * NEWS: Document removal of 'exit'.
1175         * modules/exit: Remove file.
1176
1177 2011-05-01  Bruno Haible  <bruno@clisp.org>
1178
1179         Update DEPENDENCIES.
1180         * DEPENDENCIES (gettext): Recommend the newest release.
1181         Reported by Simon Josefsson.
1182
1183 2011-05-01  Bruno Haible  <bruno@clisp.org>
1184
1185         gnulib-tool: Reduce code duplication.
1186         * gnulib-tool (func_emit_autoconf_snippets): New function.
1187         (func_import, func_create_testdir): Use it.
1188
1189 2011-04-30  Eric Blake  <eblake@redhat.com>
1190
1191         fclose: don't fail on non-seekable input stream
1192         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
1193         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
1194         since fflush is allowed to fail in that case.
1195
1196 2011-04-30  Bruno Haible  <bruno@clisp.org>
1197
1198         dup3: cleanup
1199         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
1200
1201 2011-04-30  Bruno Haible  <bruno@clisp.org>
1202
1203         netdb: Make it work in C++ mode.
1204         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
1205         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
1206         module.
1207         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
1208         gl_MODULE_INDICATOR_FOR_TESTS.
1209         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
1210         * modules/netdb-c++-tests: New file.
1211         * tests/test-netdb-c++.cc: New file.
1212
1213 2011-04-30  Bruno Haible  <bruno@clisp.org>
1214
1215         New modules 'vfscanf', 'vscanf'.
1216         * modules/vfscanf: New file.
1217         * modules/vscanf: New file.
1218         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
1219         here.
1220         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
1221         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
1222
1223 2011-04-30  Bruno Haible  <bruno@clisp.org>
1224
1225         passfd: Add comments.
1226         * lib/passfd.c: Add comments about platforms.
1227
1228 2011-04-30  Bruno Haible  <bruno@clisp.org>
1229
1230         sys_uio: Make <sys/uio.h> self-contained.
1231         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
1232         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
1233
1234 2011-04-30  Bruno Haible  <bruno@clisp.org>
1235
1236         sys_socket: Ensure 'struct iovec' definition.
1237         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
1238         <sys/socket.h>.
1239         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
1240
1241 2011-04-30  Bruno Haible  <bruno@clisp.org>
1242
1243         sys_uio: Protect definition of 'struct iovec'.
1244         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
1245         it as a C struct.
1246
1247 2011-04-30  Bruno Haible  <bruno@clisp.org>
1248
1249         manywarnings: fix indentation
1250         * m4/manywarnings.m4: Indent by 2 spaces consistently.
1251
1252 2011-04-30  Pádraig Brady <P@draigBrady.com>
1253
1254         manywarnings: add -Wno-missing-field-initializers if needed.
1255         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
1256         option if it's needed to allow initialization with { 0, }
1257
1258 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
1259
1260         announce-gen: cosmetic improvement
1261         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
1262
1263 2011-04-29  Jim Meyering  <meyering@redhat.com>
1264
1265         vc-list-files: indent with spaces, not TABs
1266         * build-aux/vc-list-files: Convert leading TABs to spaces,
1267         to match the style of most other files in gnulib.
1268
1269         announce-gen: indent with spaces, not TABs
1270         * build-aux/announce-gen: Convert all TABs to spaces, to match
1271         the style of most other files in gnulib.
1272
1273 2011-04-29  Eric Blake  <eblake@redhat.com>
1274
1275         quotearg: avoid uninitialized variable use
1276         * lib/quotearg.c (quoting_options_from_style): Initialize
1277         remaining fields, and ensure that custom styles are only used via
1278         quoting_options rather than quoting_style.
1279
1280 2011-04-29  Jim Meyering  <meyering@redhat.com>
1281
1282         maint.mk: remove unused VC-tag variable
1283         * top/maint.mk (VC-tag): Remove unused variable.
1284
1285 2011-04-29  Bruno Haible  <bruno@clisp.org>
1286
1287         netdb: fix gai_strerror replacements
1288         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
1289         * modules/netdb: Substitute it.
1290
1291 2011-04-29  Jim Meyering  <meyering@redhat.com>
1292
1293         test-getcwd.c: avoid new set-but-not-used warning
1294         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
1295         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
1296         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
1297         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
1298
1299         test-hash.c: avoid a new shadowing warning
1300         * tests/test-hash.c (main): Don't shadow "dup".
1301
1302 2011-04-28  Eric Blake  <eblake@redhat.com>
1303
1304         getaddrinfo: fix gai_strerror signature
1305         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
1306         and work around mingw with UNICODE defined.
1307         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
1308         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
1309         * modules/netdb (Makefile.am): Substitute it.
1310         * lib/netdb.in.h (gai_strerror): Declare replacement.
1311         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
1312         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
1313         the fix.
1314
1315         getsockopt: avoid compiler warning
1316         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
1317         Reported by Matthias Bolte.
1318
1319         tests: drop unused link dependency
1320         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
1321         * modules/dirent-safer-tests (Makefile.am): Likewise.
1322         * modules/fdopendir-tests (Makefile.am): Likewise.
1323         * modules/mkfifoat-tests (Makefile.am): Likewise.
1324         * modules/openat-safer-tests (Makefile.am): Likewise.
1325         * modules/openat-tests (Makefile.am): Likewise.
1326         * modules/readlinkat-tests (Makefile.am): Likewise.
1327         * modules/symlinkat-tests (Makefile.am): Likewise.
1328         * modules/linkat-tests (Makefile.am): Likewise.
1329         (Depends-on): Switch to filenamecat-lgpl.
1330         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
1331         LIBINTL.
1332         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
1333         * tests/test-linkat.c (main): Don't require xalloc.
1334
1335         hash, mgetgroups: drop xalloc dependency
1336         * lib/hash.c (includes): Adjust includes.
1337         * lib/mgetgroups.c (includes): Likewise.
1338         (xgetgroups): Move...
1339         * lib/xgetgroups.c: ...to new file.
1340         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
1341         * modules/xgetgroups: New file, split from...
1342         * modules/mgetgroups: ...here.
1343         (Depends-on): Add xalloc-oversized.
1344         * modules/hash (Depends-on): Likewise.
1345         * modules/hash-tests (Depends-on): Drop xalloc.
1346         (test_hash_LDADD): Drop unused library.
1347         * tests/test-hash.c (main): Break xalloc dependency.
1348         (includes): Drop unused include.
1349
1350         xalloc-oversized: new module
1351         * modules/xalloc-oversized: New module.
1352         * modules/xalloc (Depends-on): Add it.
1353         * lib/xalloc.h (xalloc_oversized): Move...
1354         * lib/xalloc-oversized.h: ...into new file.
1355
1356         utimecmp: drop dependency on xmalloc
1357         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
1358         due to memory pressure.
1359         * modules/utimecmp (Depends-on): Drop xalloc.
1360
1361 2011-04-27  Eric Blake  <eblake@redhat.com>
1362
1363         getcwd: fix mingw bugs
1364         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
1365         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
1366         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
1367
1368 2011-04-27  Bruno Haible  <bruno@clisp.org>
1369
1370         mkstemps: Ensure declaration on MacOS X 10.5.
1371         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
1372         * doc/glibc-functions/mkstemps.texi: Document header file problem on
1373         MacOS X.
1374
1375 2011-04-27  Bruno Haible  <bruno@clisp.org>
1376
1377         mkstemp: More documentation.
1378         * doc/posix-functions/mkstemp.texi: Document header file problem on
1379         MacOS X.
1380
1381 2011-04-27  Bruno Haible  <bruno@clisp.org>
1382
1383         mkstemp: Tweak configure message when cross-compiling.
1384         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
1385         result as a guess.
1386
1387 2011-04-27  Bruno Haible  <bruno@clisp.org>
1388
1389         clean-temp: Clarify what it does.
1390         * lib/clean-temp.h: Add more comments.
1391         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
1392         module.
1393         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
1394         * doc/glibc-functions/mkstemps.texi: Likewise.
1395         * doc/glibc-functions/mkostemps.texi: Likewise.
1396
1397 2011-04-27  Eric Blake  <eblake@redhat.com>
1398
1399         fchdir: avoid extra chdir and fix test
1400         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
1401         getcwd-lgpl.
1402         * lib/fchdir.c (get_name): Any absolute name will do; it does not
1403         have to be canonical.
1404         (canonicalize_file_name): Drop unused macro.
1405         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
1406
1407         filenamecat-lgpl: fix licence
1408         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
1409         when it was first created.
1410
1411         linkat, renameat: add missing dependency
1412         * modules/linkat (Depends-on): Require getcwd-lgpl.
1413         * modules/renameat (Depends-on): Likewise.
1414
1415         tests: reduce dependencies
1416         * tests/test-linkat.c (main): Use lighter-weight getcwd.
1417         * tests/test-renameat.c (main): Likewise.
1418         * modules/linkat-tests (Depends-on): Relax dependency.
1419         * modules/renameat-tests (Depends-on): Likewise.
1420         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
1421         dependency explicit.
1422
1423         save-cwd: reduce default dependency
1424         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
1425         * lib/save-cwd.c: Update comments.
1426         * NEWS: Document the semantic change.
1427
1428         getcwd: enhance tests
1429         * tests/test-getcwd-lgpl.c: New file, taken from...
1430         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
1431         repeat long path stress tests from m4 probe.
1432         * modules/getcwd-lgpl-tests: New module.
1433         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
1434         * m4/getcwd-abort-bug.m4: Update comment.
1435         * m4/getcwd-path-max.m4: Likewise.
1436
1437         getcwd-lgpl: new module
1438         * modules/getcwd-lgpl: New module.
1439         * lib/getcwd-lgpl.c: New file.
1440         * doc/posix-functions/getcwd.texi (getcwd): Document it.
1441         * MODULES.html.sh (lacking POSIX:2008): Likewise.
1442         * modules/getcwd (configure.ac): Set C witness.
1443         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
1444
1445         getcwd: tweak comments
1446         * m4/getcwd-abort-bug.m4: Fix comments.
1447         * m4/getcwd-path-max.m4: Likewise.
1448         * m4/getcwd.m4: Likewise.
1449
1450 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
1451         and Eric Blake  <eblake@redhat.com>
1452
1453         mkstemp: replace if system version uses wrong permissions
1454         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
1455         read/write mode bits set in file created by mkstemp.
1456         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
1457
1458 2011-04-27  Eric Blake  <eblake@redhat.com>
1459
1460         passfd: avoid compiler warning
1461         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
1462         Reported by Laine Stump.
1463
1464 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
1465
1466         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
1467         required by the NetBSD (and perhaps other 4.4BSD derived) join.
1468
1469 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
1470         and Eric Blake  <eblake@redhat.com>
1471
1472         mkstemp: mention clean-temp module
1473         * lib/mkstemp.c: Add comment.
1474         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
1475
1476 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
1477
1478         inttypes: also provide default values for 32-bit tests
1479         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
1480         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
1481
1482 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
1483
1484         strtoumax: remove dependency on strtoimax
1485         This is like the strtoull change of yesterday.
1486         * modules/strtoumax (Files): Add lib/strtoimax.c.
1487         (Depends-on): Remove strtoimax and add verify.
1488
1489         inttypes-incomplete: new module
1490         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
1491         all but the PRI* and SCN* parts of gl_INTTYPES_H.
1492         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
1493         of gl_INTTYPES_H.
1494         (gl_INTTYPES_H): Rewrite in terms of these new macros.
1495         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
1496         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
1497         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
1498         * modules/strtoumax, modules/xstrtol (Depends-on):
1499         Depend on inttypes-incomplete, not inttypes.
1500         * modules/inttypes-incomplete: New module, containing the contents
1501         of the old modules/inttypes module, except that the Files: section
1502         omits m4/inttypes-pri.m4, and the configure.ac section invokes
1503         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
1504         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
1505         (Depends-on): Depend only on inttypes-incomplete.
1506         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
1507
1508         inttypes: omit now-redundant strtoimax and strtoumax work
1509         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
1510         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
1511
1512         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
1513         This supports apps that need pointers to strtoimax and strtoumax,
1514         and ports to HP-UX 11.00 64.bit, which has macros that expand to
1515         nonexistent functions.  See
1516         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
1517         et seq.
1518         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
1519         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
1520         a macro.
1521         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
1522
1523 2011-04-25  Simon Josefsson  <simon@josefsson.org>
1524
1525         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
1526
1527 2011-04-25  Bruno Haible  <bruno@clisp.org>
1528
1529         strtol, strtoul: Mark modules as obsolete.
1530         * modules/strtol (Status, Notice): New sections.
1531         * modules/strtoul (Status, Notice): New sections.
1532
1533 2011-04-25  Bruno Haible  <bruno@clisp.org>
1534
1535         strtod: Remove check for strtod, unless supporting old platforms.
1536         * modules/strtod-obsolete: New file.
1537         * m4/strtod-obsolete.m4: New file.
1538         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
1539         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
1540         * modules/strtod (Depends-on): Add strtod-obsolete.
1541         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
1542
1543 2011-04-25  Bruno Haible  <bruno@clisp.org>
1544
1545         strcase: Make module obsolete.
1546         * modules/strcase (Status, Notice): New sections.
1547
1548 2011-04-25  Bruno Haible  <bruno@clisp.org>
1549
1550         dup2: Remove check for dup2, unless supporting old obsolete platforms.
1551         * modules/dup2-obsolete: New file.
1552         * m4/dup2-obsolete.m4: New file.
1553         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
1554         gl_FUNC_DUP2_OBSOLETE is not also defined.
1555         * modules/dup2 (Depends-on): Add dup2-obsolete.
1556         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
1557
1558 2011-04-25  Bruno Haible  <bruno@clisp.org>
1559
1560         strnlen: Avoid memchr related link error on old obsolete platforms.
1561         * modules/memchr-obsolete: New file.
1562         * m4/memchr-obsolete.m4: New file.
1563         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
1564         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
1565         * modules/memchr (Depends-on): Add memchr-obsolete.
1566         * modules/strnlen (Depends-on): Likewise.
1567         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
1568
1569 2011-04-25  Jim Meyering  <meyering@redhat.com>
1570
1571         maint.mk: makefile_at_at_check extend and clean up
1572         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
1573         in addition to */Makefile.am.
1574         Exempt legitimate uses of @VAR@ notation, e.g.,
1575         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
1576         Remove obsolete coreutils-specific comment.
1577         Prompted by discussion here:
1578         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
1579
1580 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
1581
1582         strtoul: remove dependency on strtol
1583         This is so that 'configure' need not check for strtol merely because
1584         the application needs strtoul.
1585         * modules/strtoul (Files): Add lib/strtol.c.
1586         (Depends-on): Remove strtol.
1587
1588         strtoull: remove dependency on strtoul
1589         This is like the strtoll change.
1590         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
1591         (Depends-on): Remove strtoul.
1592
1593         strtoll: remove dependency on strtol
1594         This is so that 'configure' need not check for strtol merely because
1595         the application needs strtoll.
1596         * modules/strtoll (Files): Add lib/strtol.c.
1597         (Depends-on): Remove strtol.
1598
1599 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1600
1601         inttypes: Move some configure check to module 'imaxdiv'.
1602         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
1603         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
1604         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
1605
1606 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1607
1608         inttypes: Move some configure check to module 'imaxabs'.
1609         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
1610         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
1611         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
1612
1613 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1614
1615         inttypes: Remove configure tests that are not needed since 2009-12-31.
1616         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
1617         gl_cv_header_working_inttypes_h.
1618
1619 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1620
1621         * modules/strnlen (Depends-on): Remove memchr.
1622         The strnlen implementation doesn't need the memchr module's fixes; see
1623         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
1624
1625         strtol: remove dependency on wchar
1626         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
1627         * modules/strtol (Depends-on): Remove wchar.
1628
1629 2011-04-21  Eric Blake  <eblake@redhat.com>
1630
1631         passfd: fix test regression on Linux
1632         * modules/passfd-tests (configure.ac): Correct socketpair check.
1633
1634         passfd: speed up configure and drop unused code
1635         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
1636         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
1637         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
1638         Instead of probing at configure for unix_scm_rights_bsd44_way,
1639         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
1640         check to a struct member probe.
1641         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
1642         (sendfd, recvfd): Update preprocessor checks.
1643         * modules/passfd (Files): Reflect rename, and drop unused file.
1644         (Depends-on): Drop unused dependency.
1645
1646         passfd: allow compilation on mingw
1647         * modules/sys_socket (Depends-on): Add sys_uio.
1648         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
1649         iovec and a minimal struct msghdr.
1650         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
1651         * tests/test-sys_socket.c (main): Enhance test.
1652         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
1653         guaranteed to provide what we need.
1654         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
1655         * modules/passfd-tests (Depends-on): Add sys_wait.
1656         * tests/test-passfd.c (main): Skip test on mingw, for now.
1657         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
1658         partial 'struct msghdr' implementation.
1659
1660         sys_uio: new module
1661         * modules/sys_uio: New module.
1662         * modules/sys_uio-tests: Likewise.
1663         * lib/sys_uio.in.h: New file.
1664         * m4/sys_uio_h.m4: Likewise.
1665         * tests/test-sys_uio.c: Likewise.
1666         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
1667         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
1668
1669 2011-04-20  Jim Meyering  <meyering@redhat.com>
1670
1671         useless-if-before-free: avoid false-positive
1672         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
1673         disjunct so that it too requires a terminating ";".  Without that,
1674         this script would identify as useless one statement from gcc that
1675         was not:
1676           if (aligned_ptr)
1677             free (((void **) aligned_ptr) [-1]);
1678
1679 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
1680
1681         doc: update users.txt.
1682         * users.txt: Add barcode.
1683
1684 2011-04-19  Bruno Haible  <bruno@clisp.org>
1685
1686         ioctl: Remove link dependency on native Windows.
1687         * lib/fd-hook.h: Renamed from lib/close-hook.h.
1688         (gl_close_fn, gl_ioctl_fn): New types.
1689         (struct fd_hook): Renamed from struct close_hook. Change type of
1690         private_close_fn field. Add private_ioctl_fn field.
1691         (close_hook_fn): Add parameter for primary close method.
1692         (execute_close_hooks, execute_all_close_hooks): Likewise.
1693         (ioctl_hook_fn): New type.
1694         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
1695         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
1696         argument.
1697         (unregister_fd_hook): Renamed from unregister_close_hook.
1698         * lib/fd-hook.c: Renamed from lib/close-hook.c.
1699         Don't include <unistd.h>.
1700         (close): Remove undef.
1701         (anchor): Update.
1702         (execute_close_hooks): Add argument for primary close method.
1703         (execute_all_close_hooks): Likewise.
1704         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
1705         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
1706         argument. Allow each argument to be NULL.
1707         (unregister_fd_hook): Renamed from unregister_close_hook.
1708         * lib/close.c (rpl_close): Pass 'close' function pointer to
1709         execute_all_close_hooks.
1710         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
1711         (primary_ioctl): New function.
1712         (ioctl): Don't call ioctlsocket here. Instead, call
1713         execute_all_ioctl_hooks.
1714         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
1715         close method.
1716         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
1717         (fd_sockets_hook): Renamed from close_sockets_hook.
1718         (gl_sockets_startup, gl_sockets_cleanup): Update.
1719         * modules/fd-hook: Renamed from modules/close-hook. Update.
1720         * modules/close (Depends-on): Add fd-hook, remove close-hook.
1721         * modules/sockets (Depends-on): Likewise.
1722         * modules/ioctl (Depends-on): Add fd-hook.
1723         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
1724         GNULIB_SOCKET.
1725
1726 2011-04-19  Bruno Haible  <bruno@clisp.org>
1727
1728         Move the support of O_NONBLOCK in open() to the 'open' module.
1729         * modules/nonblocking (Depends-on): Remove 'open'.
1730         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
1731         gl_cv_have_open_O_NONBLOCK.
1732         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
1733         O_NONBLOCK support.
1734         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
1735
1736 2011-04-17  Bruno Haible  <bruno@clisp.org>
1737
1738         pipe2: Simplify code.
1739         * lib/pipe2.c (pipe2): Reduce code duplication.
1740
1741 2011-04-17  Bruno Haible  <bruno@clisp.org>
1742
1743         nonblocking: Add comment.
1744         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
1745
1746 2011-04-17  Bruno Haible  <bruno@clisp.org>
1747
1748         nonblocking: Add tests for sockets.
1749         * tests/test-nonblocking-socket.sh: New file.
1750         * tests/test-nonblocking-socket-main.c: New file.
1751         * tests/test-nonblocking-socket-child.c: New file.
1752         * tests/test-nonblocking-socket.h: New file.
1753         * tests/socket-server.h: New file.
1754         * tests/socket-client.h: New file.
1755         * modules/nonblocking-socket-tests: New file.
1756         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
1757
1758 2011-04-17  Bruno Haible  <bruno@clisp.org>
1759
1760         nonblocking: Add tests for pipes.
1761         * tests/test-nonblocking-pipe.sh: New file.
1762         * tests/test-nonblocking-pipe-main.c: New file.
1763         * tests/test-nonblocking-pipe-child.c: New file.
1764         * tests/test-nonblocking-pipe.h: New file.
1765         * tests/test-nonblocking-writer.h: New file.
1766         * tests/test-nonblocking-reader.h: New file.
1767         * tests/test-nonblocking-misc.h: New file.
1768         * modules/nonblocking-pipe-tests: New file.
1769         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
1770
1771 2011-04-16  Bruno Haible  <bruno@clisp.org>
1772
1773         gettext: Clarify the needed programmer actions.
1774         * modules/gettext (Notice): New field.
1775         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
1776
1777 2011-04-16  Bruno Haible  <bruno@clisp.org>
1778
1779         strchrnul: Tweak last commit.
1780         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
1781         bug.
1782         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
1783         as in _GL_FUNCDECL_SYS.
1784         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
1785         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
1786
1787 2011-04-15  Eric Blake  <eblake@redhat.com>
1788
1789         strchrnul: work around cygwin bug
1790         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
1791         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
1792         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
1793         * modules/string (Makefile.am): Substitute it.
1794         * lib/string.in.h (strchrnul): Use it.
1795
1796 2011-04-15  Bruno Haible  <bruno@clisp.org>
1797
1798         Don't require lib/stdio-write.c when only module 'stdio' is used.
1799         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
1800         invocation.
1801         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
1802
1803 2011-04-14  Bruno Haible  <bruno@clisp.org>
1804
1805         Support non-blocking pipe I/O in read() on native Windows.
1806         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
1807         (read): New declaration.
1808         * lib/read.c: New file.
1809         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
1810         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
1811         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
1812         vscanf): New declarations.
1813         * lib/stdio-read.c: New file.
1814         * m4/read.m4: New file.
1815         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
1816         REPLACE_READ.
1817         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
1818         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1819         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
1820         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
1821         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
1822         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1823         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
1824         * modules/read: New file.
1825         * modules/nonblocking (Files): Add lib/stdio-read.c.
1826         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
1827         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
1828         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1829         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
1830         * modules/pread (Depends-on): Add read.
1831         * modules/safe-read (Depends-on): Likewise.
1832         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
1833         gets, scanf, vfscanf, vscanf): Verify signatures.
1834         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
1835         problem with non-blocking pipes.
1836         * doc/posix-functions/fgetc.texi: Likewise.
1837         * doc/posix-functions/fgets.texi: Likewise.
1838         * doc/posix-functions/fread.texi: Likewise.
1839         * doc/posix-functions/fscanf.texi: Likewise.
1840         * doc/posix-functions/getc.texi: Likewise.
1841         * doc/posix-functions/getchar.texi: Likewise.
1842         * doc/posix-functions/gets.texi: Likewise.
1843         * doc/posix-functions/scanf.texi: Likewise.
1844         * doc/posix-functions/vfscanf.texi: Likewise.
1845         * doc/posix-functions/vscanf.texi: Likewise.
1846
1847 2011-04-14  Bruno Haible  <bruno@clisp.org>
1848
1849         Support non-blocking pipe I/O in write() on native Windows.
1850         * lib/write.c (rpl_write): Split a write request that failed merely
1851         because the byte count was larger than the pipe buffer's size.
1852         * doc/posix-functions/write.texi: Mention the problem with large byte
1853         counts.
1854
1855 2011-04-14  Bruno Haible  <bruno@clisp.org>
1856
1857         wchar: Ensure that wchar_t gets defined on uClibc.
1858         * lib/wchar.in.h: On uClibc, include <stddef.h>.
1859         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
1860
1861 2011-04-13  Bruno Haible  <bruno@clisp.org>
1862
1863         safe-write, full-read: Avoid unnecessary compilation units.
1864         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
1865         (Depends-on): Remove safe-read. Add ssize_t.
1866         * modules/full-read (Files): Add lib/full-write.c.
1867         (Depends-on): Add full-write.
1868
1869 2011-04-13  Bruno Haible  <bruno@clisp.org>
1870
1871         Support non-blocking pipe I/O and SIGPIPE in pwrite().
1872         * modules/pwrite (Depends-on): Add 'write'.
1873
1874 2011-04-13  Bruno Haible  <bruno@clisp.org>
1875
1876         Support non-blocking pipe I/O in write() on native Windows.
1877         * lib/unistd.in.h (write): Enable replacement also if
1878         GNULIB_UNISTD_H_NONBLOCKING is 1.
1879         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
1880         (rpl_write): When failing to write on a non-blocking pipe, change
1881         errno from ENOSPC to EAGAIN.
1882         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
1883         putchar, puts, vfprintf, vprintf): Enable replacement also if
1884         GNULIB_STDIO_H_NONBLOCKING is 1.
1885         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
1886         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
1887         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
1888         CALL_WITH_SIGPIPE_EMULATION.
1889         (CALL_WITH_SIGPIPE_EMULATION): Use them.
1890         * m4/nonblocking.m4: New file.
1891         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
1892         for non-blocking I/O support.
1893         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1894         GNULIB_UNISTD_H_NONBLOCKING.
1895         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
1896         required for non-blocking I/O support.
1897         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
1898         * modules/nonblocking (Files): Add m4/nonblocking.m4,
1899         lib/stdio-write.c, m4/asm-underscore.m4.
1900         (Depends-on): Add stdio, unistd.
1901         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
1902         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
1903         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
1904         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
1905         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
1906         problem with non-blocking pipes.
1907         * doc/posix-functions/fputc.texi: Likewise.
1908         * doc/posix-functions/fputs.texi: Likewise.
1909         * doc/posix-functions/fwrite.texi: Likewise.
1910         * doc/posix-functions/printf.texi: Likewise.
1911         * doc/posix-functions/putc.texi: Likewise.
1912         * doc/posix-functions/putchar.texi: Likewise.
1913         * doc/posix-functions/puts.texi: Likewise.
1914         * doc/posix-functions/vfprintf.texi: Likewise.
1915         * doc/posix-functions/vprintf.texi: Likewise.
1916         * doc/posix-functions/write.texi: Likewise.
1917
1918 2011-04-10  Jim Meyering  <meyering@redhat.com>
1919
1920         maint.mk: prohibit doubled words
1921         Detect them also when they're separated by a newline.
1922         There are 3 ways to customize it:
1923           - disable the test on a per file basis, as usual with rules using
1924             $(VC_LIST_EXCEPT)
1925           - replace the default doubled-word-selecting regexp (affects all files)
1926           - ignore a particular file-vs-doubled-word match
1927         I nearly used that last one to ignore the "is is" match in
1928         coreutils' NEWS file, since the text was "ls -is is ..."
1929         To do that, I would have added this line to cfg.mk:
1930           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
1931         but it would have ignored any "is is" match in NEWS.
1932         Low probability, but still...
1933         Instead, I changed the text, slightly:
1934           -  ls -is is now consistent with ls -lis in ignoring values returned
1935           +  "ls -is" is now consistent with ls -lis in ignoring values returned
1936         * top/maint.mk (prohibit_double_word_RE_): Provide default.
1937         (prohibit_doubled_word_): Define.
1938         (sc_prohibit_doubled_word): New rule.
1939         (sc_prohibit_the_the): Remove.  Subsumed by the above.
1940
1941 2011-04-10  Jim Meyering  <meyering@redhat.com>
1942
1943         maint: fix doubled-word typo in comment
1944         * m4/gethostname.m4: s/is is/it is/
1945         * m4/getdomainname.m4: Likewise.
1946
1947 2011-04-10  Jim Meyering  <meyering@redhat.com>
1948
1949         maint: remove doubled word: s/it it/it/
1950         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
1951
1952 2011-04-10  Jim Meyering  <meyering@redhat.com>
1953
1954         maint.mk: remove useless semicolon and backslash
1955         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
1956         semicolon and backslash.
1957
1958 2011-04-10  Bruno Haible  <bruno@clisp.org>
1959
1960         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
1961         * modules/stdint-tests (Depends-on): Add wchar.
1962
1963 2011-04-10  Jim Meyering  <meyering@redhat.com>
1964
1965         maint: remove doubled words in comments, e.g., s/a a/a/
1966         * lib/strptime.c (day_of_the_week): s/the the/the/
1967         * tests/test-chown.h (test_chown): s/a a/a/
1968
1969         test-chown.h: correct a cast
1970         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
1971         when the destination is a stat.st_gid.
1972
1973 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
1974
1975         getaddrinfo: Fix test for sa_len member.
1976         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
1977         include <sys/types.h> before <sys/socket.h>.
1978
1979 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
1980
1981         maint: change "can not" to "cannot"
1982         * doc/posix-functions/iconv.texi (iconv): This one crossed line
1983         boundaries.
1984
1985 2011-04-09  Jim Meyering  <meyering@redhat.com>
1986
1987         maint: change "a a" to "a"
1988         * tests/test-lchown.h (test_lchown): s/a a/a/
1989
1990         maint.mk: prohibit \<the the\>
1991         * top/maint.mk (sc_prohibit_the_the): New rule.
1992
1993         maint: fix "the the" in comment
1994         * lib/count-one-bits.h: s/the the/the/
1995
1996         maint: change "can not" to "cannot"
1997         But do not change the occurrences in maintain.texi or in
1998         build-aux/po/Makefile.in.in, which I presume comes from gettext.
1999         * doc/gnulib-tool.texi: s/can not/cannot/
2000         * doc/posix-functions/accept.texi (accept): Likewise.
2001         * doc/posix-functions/socket.texi (socket): Likewise.
2002         * lib/mbrtowc.c: Likewise.
2003
2004         maint.mk: prohibit use of "can not"
2005         * top/maint.mk (sc_prohibit_can_not): New rule.
2006         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
2007
2008 2011-04-09  Bruno Haible  <bruno@clisp.org>
2009
2010         careadlinkat: Guard against misuse of careadlinkatcwd.
2011         * lib/careadlinkat.c: Include <stdlib.h>.
2012         (careadlinkatcwd): Check that the fd argument is as expected.
2013
2014 2011-04-09  Bruno Haible  <bruno@clisp.org>
2015
2016         careadlinkat: Use common coding style.
2017         * lib/careadlinkat.c: Move gnulib includes after system includes.
2018
2019 2011-04-09  Bruno Haible  <bruno@clisp.org>
2020
2021         careadlinkat: Clarify specification.
2022         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
2023         (careadlinkatcwd): Add comment.
2024         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
2025
2026 2011-04-09  Bruno Haible  <bruno@clisp.org>
2027
2028         areadlinkat: Avoid link error on many platforms.
2029         * modules/areadlinkat (Depends-on): Add areadlink.
2030
2031 2011-04-09  Bruno Haible  <bruno@clisp.org>
2032
2033         allocator, careadlinkat: Fix double-inclusion guard.
2034         * lib/allocator.h: Fix double-inclusion guard.
2035         * lib/careadlinkat.h: Likewise.
2036
2037 2011-04-09  Bruno Haible  <bruno@clisp.org>
2038
2039         relocatable-prog-wrapper: Update after module 'areadlink' changed.
2040         * lib/relocwrapper.c: Update dependencies hierarchy.
2041         * build-aux/install-reloc: Update list of files to be compiled.
2042         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
2043         lib/allocator.[hc].
2044
2045 2011-04-08  Eric Blake  <eblake@redhat.com>
2046
2047         strftime: silence gnulib-tool warning
2048         * modules/strftime-tests (Depends-on): Drop automatic dependency.
2049
2050 2011-04-08  Bruno Haible  <bruno@clisp.org>
2051
2052         verify: Fix syntax error with GCC 4.6 in C++ mode.
2053         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
2054         (HAVE_STATIC_ASSERT): New macro.
2055         (verify_true, verify): Use 'static_assert' if it is supported and
2056         '_Static_assert' is not supported.
2057
2058 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
2059
2060         allocator: New module.
2061         * modules/allocator, lib/allocator.c: New files.
2062         * lib/allocator.h (stdlib_allocator): New decl.
2063         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
2064         Remove.  Do not include <stdlib.h>.
2065         (careadlinkat): Use stdlib_allocator instead of rolling our own.
2066         * modules/careadlinkat (Files): Remove lib/allocator.h.
2067         (Depends-on): Add allocator.
2068
2069         stdlib: let modules use system malloc, realloc
2070         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
2071         if !_GL_USE_STDLIB_ALLOC.
2072         (malloc, realloc): Limit this change to a smaller scope.
2073
2074         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
2075         (malloc, realloc): Don't #undef; no longer needed.
2076         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2077         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2078         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
2079         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2080         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2081         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2082         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2083         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
2084
2085         careadlinkat: rename members to avoid problem
2086         * lib/allocator.h (struct allocator): Rename members from
2087         malloc/realloc to allocate/reallocate, to avoid problems if malloc
2088         and realloc are #define'd.  Reported by Eric Blake in
2089         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
2090         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
2091
2092 2011-04-08  Eric Blake  <eblake@redhat.com>
2093
2094         nonblocking: reduce dependency
2095         * tests/test-nonblocking.c: Only test sockets when in use.
2096         * modules/nonblocking-tests (Depends-on): Drop socket.
2097         (Makefile.am): Link even if sockets are not present.
2098         * modules/pipe2-tests (Makefile.am): Likewise.
2099         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
2100
2101         pipe2: fix O_NONBLOCK support on mingw
2102         * modules/pipe2 (Depends-on): Add nonblocking.
2103         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
2104         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
2105         * tests/test-nonblocking.c (main): Likewise.
2106         * modules/pipe2-tests (Makefile.am): Avoid link failure.
2107
2108         fcntl-h: fix O_ACCMODE on cygwin
2109         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
2110         * lib/fcntl.in.h (O_ACCMODE): Fix it.
2111
2112         pipe-filter: drop O_NONBLOCK workarounds
2113         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
2114         * modules/pipe-filter-ii (Depends-on): Likewise.
2115         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
2116
2117         nonblocking: provide O_NONBLOCK for mingw
2118         * modules/nonblocking (Depends-on): Add open.
2119         (configure.ac): Set new witness macro.
2120         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
2121         * modules/fcntl-h (Makefile.am): Substitute it.
2122         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
2123         nonblocking module is in use.
2124         * lib/nonblocking.c: Adjust portability test.
2125         * lib/open.c (open): Don't let native open see gnulib flag.
2126         * tests/test-fcntl-h.c (main): Enhance test.
2127         * tests/test-open.h (test_open): Likewise.
2128         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
2129
2130         careadlinkat: fix compilation error on mingw
2131         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
2132         within struct allocator.
2133
2134 2011-04-06  Eric Blake  <eblake@redhat.com>
2135
2136         binary-io: relicense under LGPLv2+
2137         * modules/binary-io (License): Relax to LGPLv2+.
2138         Requested for libvirt, and required by pipe2.
2139
2140 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
2141
2142         verify: use _Static_assert if available
2143         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
2144         (verify_true, verify): Use it if available.  This generates better
2145         diagnostics with GCC 4.6.0 and later.
2146
2147 2011-04-05  Bruno Haible  <bruno@clisp.org>
2148
2149         Remove leftover generated .h files after config.status changed.
2150
2151         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
2152         GL_GENERATE_ALLOCA_H.
2153         * modules/alloca-opt (Makefile.am): Remove alloca.h if
2154         GL_GENERATE_ALLOCA_H evaluates to false.
2155
2156         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
2157         GL_GENERATE_ARGZ_H.
2158         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
2159         evaluates to false.
2160
2161         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
2162         GL_GENERATE_BYTESWAP_H.
2163         * modules/byteswap (Makefile.am): Remove byteswap.h if
2164         GL_GENERATE_BYTESWAP_H evaluates to false.
2165
2166         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
2167         GL_GENERATE_ERRNO_H.
2168         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
2169         evaluates to false.
2170
2171         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
2172         GL_GENERATE_FLOAT_H.
2173         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
2174         evaluates to false.
2175
2176         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
2177         GL_GENERATE_FNMATCH_H.
2178         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
2179         GL_GENERATE_FNMATCH_H evaluates to false.
2180
2181         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
2182         GL_GENERATE_GLOB_H.
2183         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
2184         evaluates to false.
2185
2186         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
2187         automake conditional GL_GENERATE_ICONV_H.
2188         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
2189         evaluates to false.
2190
2191         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
2192         GL_GENERATE_NETINET_IN_H.
2193         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
2194         GL_GENERATE_NETINET_IN_H evaluates to false.
2195
2196         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
2197         conditional GL_GENERATE_PTHREAD_H.
2198         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
2199         * modules/pthread (Makefile.am): Remove pthread.h if
2200         GL_GENERATE_PTHREAD_H evaluates to false.
2201
2202         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
2203         GL_GENERATE_SCHED_H.
2204         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
2205         evaluates to false.
2206
2207         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
2208         conditional GL_GENERATE_SELINUX_CONTEXT_H.
2209         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
2210         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
2211
2212         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
2213         GL_GENERATE_STDARG_H.
2214         * modules/stdarg (Makefile.am): Remove stdarg.h if
2215         GL_GENERATE_STDARG_H evaluates to false.
2216
2217         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
2218         GL_GENERATE_STDBOOL_H.
2219         * modules/stdbool (Makefile.am): Remove stdbool.h if
2220         GL_GENERATE_STDBOOL_H evaluates to false.
2221
2222         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
2223         conditional GL_GENERATE_STDDEF_H.
2224         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
2225         * modules/stddef (Makefile.am): Remove stddef.h if
2226         GL_GENERATE_STDDEF_H evaluates to false.
2227
2228         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
2229         GL_GENERATE_STDINT_H.
2230         * modules/stdint (Makefile.am): Remove stdint.h if
2231         GL_GENERATE_STDINT_H evaluates to false.
2232
2233         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
2234         GL_GENERATE_SYSEXITS_H.
2235         * modules/sysexits (Makefile.am): Remove sysexits.h if
2236         GL_GENERATE_SYSEXITS_H evaluates to false.
2237
2238         Reported by Karl Berry and Ralf Wildenhues.
2239
2240 2011-04-05  Bruno Haible  <bruno@clisp.org>
2241
2242         Ensure to rebuild generated .h files when config.status has changed.
2243         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
2244         config.status.
2245         * modules/ctype (Makefile.am): Likewise.
2246         * modules/dirent (Makefile.am): Likewise.
2247         * modules/errno (Makefile.am): Likewise.
2248         * modules/fcntl-h (Makefile.am): Likewise.
2249         * modules/float (Makefile.am): Likewise.
2250         * modules/getopt-posix (Makefile.am): Likewise.
2251         * modules/glob (Makefile.am): Likewise.
2252         * modules/iconv-h (Makefile.am): Likewise.
2253         * modules/inttypes (Makefile.am): Likewise.
2254         * modules/langinfo (Makefile.am): Likewise.
2255         * modules/locale (Makefile.am): Likewise.
2256         * modules/math (Makefile.am): Likewise.
2257         * modules/netdb (Makefile.am): Likewise.
2258         * modules/netinet_in (Makefile.am): Likewise.
2259         * modules/poll-h (Makefile.am): Likewise.
2260         * modules/pthread (Makefile.am): Likewise.
2261         * modules/pty (Makefile.am): Likewise.
2262         * modules/sched (Makefile.am): Likewise.
2263         * modules/search (Makefile.am): Likewise.
2264         * modules/selinux-h (Makefile.am): Likewise.
2265         * modules/signal (Makefile.am): Likewise.
2266         * modules/spawn (Makefile.am): Likewise.
2267         * modules/stdarg (Makefile.am): Likewise.
2268         * modules/stdbool (Makefile.am): Likewise.
2269         * modules/stddef (Makefile.am): Likewise.
2270         * modules/stdint (Makefile.am): Likewise.
2271         * modules/stdio (Makefile.am): Likewise.
2272         * modules/stdlib (Makefile.am): Likewise.
2273         * modules/string (Makefile.am): Likewise.
2274         * modules/strings (Makefile.am): Likewise.
2275         * modules/sys_file (Makefile.am): Likewise.
2276         * modules/sys_ioctl (Makefile.am): Likewise.
2277         * modules/sys_select (Makefile.am): Likewise.
2278         * modules/sys_socket (Makefile.am): Likewise.
2279         * modules/sys_stat (Makefile.am): Likewise.
2280         * modules/sys_time (Makefile.am): Likewise.
2281         * modules/sys_times (Makefile.am): Likewise.
2282         * modules/sys_utsname (Makefile.am): Likewise.
2283         * modules/sys_wait (Makefile.am): Likewise.
2284         * modules/sysexits (Makefile.am): Likewise.
2285         * modules/termios (Makefile.am): Likewise.
2286         * modules/time (Makefile.am): Likewise.
2287         * modules/unistd (Makefile.am): Likewise.
2288         * modules/wchar (Makefile.am): Likewise.
2289         * modules/wctype-h (Makefile.am): Likewise.
2290         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
2291
2292 2011-04-05  Bruno Haible  <bruno@clisp.org>
2293
2294         pipe2: Relicense under LGPLv2+.
2295         * modules/pipe2 (License): Change to LGPLv2+.
2296         Requested by Eric Blake, for libvirt.
2297
2298 2011-04-05  Bruce Korb  <bkorb@gnu.org>
2299
2300         bootstrap: compute gnulib_extra_files after updating build_aux
2301         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
2302         change build_aux or also supply gnulib_extra_files.  Handle correctly.
2303
2304 2011-04-05  Eric Blake  <eblake@redhat.com>
2305
2306         bootstrap: preserve git whitelist item sorting
2307         * build-aux/bootstrap (sort_patterns): New function.
2308         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
2309
2310 2011-04-05  Simon Josefsson  <simon@josefsson.org>
2311
2312         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
2313         sc_space_tab check.
2314
2315 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
2316
2317         areadlink, areadlinkat: rewrite in terms of careadlinkat
2318         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
2319         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
2320         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
2321         (malloc, realloc): Remove #undefs.
2322         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
2323         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
2324         readlink, ssize_t, stdint, unistd.
2325         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
2326         areadlink, stdint.
2327
2328         careadlinkat: new module
2329         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
2330         * modules/careadlinkat: New files, written by me with
2331         a review and feedback from Ben Pfaff in
2332         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
2333
2334 2011-04-01  Bruno Haible  <bruno@clisp.org>
2335
2336         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
2337         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
2338         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
2339         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
2340         Reported by Bruce Korb <bruce.korb@gmail.com>.
2341
2342 2011-04-01  Bruno Haible  <bruno@clisp.org>
2343
2344         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
2345         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
2346         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
2347         * modules/wcpcpy (Depends-on): Add extensions.
2348         * modules/wcpncpy (Depends-on): Likewise.
2349         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
2350         systems.
2351         * doc/posix-functions/wcpncpy.texi: Likewise.
2352         * doc/posix-functions/wcwidth.texi: Likewise.
2353
2354 2011-03-31  Eric Blake  <eblake@redhat.com>
2355
2356         nonblocking: fix mingw test failures
2357         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
2358         non-blocking flag on regular file.
2359         (get_nonblocking_flag): Set errno on invalid fd.
2360         * tests/test-nonblocking.c (main): Avoid test failure on
2361         directories if fchdir is not active.
2362         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
2363
2364 2011-03-31  Bruno Haible  <bruno@clisp.org>
2365
2366         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
2367         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
2368         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
2369         Reported by Simon Josefsson <simon@josefsson.org>.
2370
2371 2011-03-31  Bruno Haible  <bruno@clisp.org>
2372         and Eric Blake  <eblake@redhat.com>
2373
2374         nonblocking: new module
2375         * modules/nonblocking: New module.
2376         * modules/nonblocking-tests: Likewise.
2377         * lib/nonblocking.h: New file.
2378         * lib/nonblocking.c: Likewise.
2379         * tests/test-nonblocking.c: New test.
2380         * lib/ioctl.c (ioctl) [mingw]: Update comment.
2381
2382 2011-03-30  Bruno Haible  <bruno@clisp.org>
2383
2384         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
2385         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
2386         instead of 'printf' format for GCC >= 4.4.
2387         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
2388         (fprintf, printf, vfprintf, vprintf): Declare with
2389         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
2390         the system's vfprintf() function.
2391         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
2392
2393 2011-03-30  Eric Blake  <eblake@redhat.com>
2394
2395         passfd: fix scoping bug
2396         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
2397         before sendmsg/recvmsg.
2398
2399         passfd: standardize coding conventions
2400         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
2401         can be learned at compile time.
2402         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
2403         ifdefs.
2404         (sendfd, recvfd): Follow gnulib code conventions.
2405
2406         passfd: fix incorrect sendmsg arguments
2407         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
2408         incorrect msg_controllen value.
2409         * modules/passfd-tests (Depends-on): Check for alarm.
2410         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
2411         Reported by Bastien ROUCARIES.
2412
2413 2011-03-30  Bruno Haible  <bruno@clisp.org>
2414
2415         c-strcasestr: Relicense under LGPLv2+.
2416         * modules/c-strcasestr (License): Change to LGPLv2+.
2417         Requested by Eric Blake, for libvirt.
2418
2419 2011-03-30  Simon Josefsson  <simon@josefsson.org>
2420
2421         * users.txt: Add libidn2.  Fix libtasn1 link.
2422
2423 2011-03-30  Jim Meyering  <meyering@redhat.com>
2424
2425         tests: readlink* ("",... fails with EINVAL on newer kernels
2426         readlink and readlinkat have typically failed with ENOENT for
2427         the invalid, empty file name,  "".  However, with the advent
2428         of linux-2.6.39, they fail with EINVAL.
2429         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
2430         when operating on the empty file name.
2431         * tests/test-readlink.h (test_readlink): Likewise.
2432
2433 2011-03-29  Bruno Haible  <bruno@clisp.org>
2434
2435         Relicense some modules under LGPLv2+, for libidn2.
2436         * modules/array-mergesort (License): Change to LGPLv2+.
2437         * modules/c-strcaseeq (License): Likewise.
2438         * modules/striconveh (License): Likewise.
2439         * modules/striconveha (License): Likewise.
2440         * modules/uniconv/base (License): Likewise.
2441         * modules/uniconv/u8-conv-from-enc (License): Likewise.
2442         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
2443         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
2444         * modules/unictype/base (License): Likewise.
2445         * modules/unictype/bidiclass-of (License): Likewise.
2446         * modules/unictype/category-M (License): Likewise.
2447         * modules/unictype/category-none (License): Likewise.
2448         * modules/unictype/category-of (License): Likewise.
2449         * modules/unictype/category-test (License): Likewise.
2450         * modules/unictype/category-test-withtable (License): Likewise.
2451         * modules/unictype/combining-class (License): Likewise.
2452         * modules/unictype/joiningtype-of (License): Likewise.
2453         * modules/unictype/scripts (License): Likewise.
2454         * modules/uninorm/base (License): Likewise.
2455         * modules/uninorm/canonical-decomposition (License): Likewise.
2456         * modules/uninorm/composition (License): Likewise.
2457         * modules/uninorm/decompose-internal (License): Likewise.
2458         * modules/uninorm/decomposition-table (License): Likewise.
2459         * modules/uninorm/nfc (License): Likewise.
2460         * modules/uninorm/nfd (License): Likewise.
2461         * modules/uninorm/u32-normalize (License): Likewise.
2462         * modules/unistr/base (License): Likewise.
2463         * modules/unistr/u32-cpy (License): Likewise.
2464         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
2465         * modules/unistr/u32-to-u8 (License): Likewise.
2466         * modules/unistr/u32-uctomb (License): Likewise.
2467         * modules/unistr/u8-check (License): Likewise.
2468         * modules/unistr/u8-mblen (License): Likewise.
2469         * modules/unistr/u8-mbtouc (License): Likewise.
2470         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
2471         * modules/unistr/u8-mbtoucr (License): Likewise.
2472         * modules/unistr/u8-prev (License): Likewise.
2473         * modules/unistr/u8-strlen (License): Likewise.
2474         * modules/unistr/u8-to-u32 (License): Likewise.
2475         * modules/unistr/u8-uctomb (License): Likewise.
2476         * modules/unitypes (License): Likewise.
2477         Requested by Simon Josefsson.
2478
2479 2011-03-29  Simon Josefsson  <simon@josefsson.org>
2480
2481         lib-symbol-visibility: Add a notice.
2482         * modules/lib-symbol-visibility (Notice): New field.
2483
2484 2011-03-29  Bruno Haible  <bruno@clisp.org>
2485
2486         getaddrinfo: Doc fix.
2487         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
2488         section "fixed in Gnulib".
2489
2490 2011-03-28  Simon Josefsson  <simon@josefsson.org>
2491
2492         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
2493         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
2494
2495 2011-03-26  Bruno Haible  <bruno@clisp.org>
2496
2497         unictype/property-byname: Reduce the number of load-time relocations.
2498         * lib/unictype/pr_byname.c: Include <stdlib.h>.
2499         (UC_PROPERTY_INDEX_*): New enumeration values.
2500         (uc_property_byname): Convert an index from the lookup table to an
2501         uc_property_t.
2502         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
2503         values.
2504
2505 2011-03-26  Bruno Haible  <bruno@clisp.org>
2506
2507         unictype/property-byname: Allow omitted word separators and aliases.
2508         * lib/unictype/pr_byname.gperf: Add property names without word
2509         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
2510         for 'space'.
2511
2512 2011-03-26  Bruno Haible  <bruno@clisp.org>
2513
2514         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
2515         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
2516         also hyphens to space.
2517         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
2518         without spaces.
2519         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
2520
2521 2011-03-26  Bruno Haible  <bruno@clisp.org>
2522
2523         unictype/joiningtype-byname: Recognize long names as well.
2524         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
2525         a long name.
2526         * lib/unictype/joiningtype_byname.c: Include <string.h>,
2527         unictype/joiningtype_byname.h.
2528         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
2529         * lib/unictype/joiningtype_byname.gperf: New file.
2530         * modules/unictype/joiningtype-byname (Files): Add
2531         lib/unictype/joiningtype_byname.gperf.
2532         (Depends-on): Add gperf.
2533         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
2534         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
2535         long names.
2536
2537         Tests for module 'unictype/joiningtype-longname'.
2538         * modules/unictype/joiningtype-longname-tests: New file.
2539         * tests/unictype/test-joiningtype_longname.c: New file.
2540
2541         New module 'unictype/joiningtype-longname'.
2542         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
2543         * lib/unictype/joiningtype_longname.c: New file.
2544         * modules/unictype/joiningtype-longname: New file.
2545         * modules/unictype/joiningtype-all (Depends-on): Add
2546         unictype/joiningtype-longname.
2547
2548 2011-03-26  Bruno Haible  <bruno@clisp.org>
2549
2550         unictype/bidiclass-byname: Recognize long names as well.
2551         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
2552         name.
2553         * lib/unictype/bidi_byname.c: Include <string.h>,
2554         unictype/bidi_byname.h.
2555         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
2556         * lib/unictype/bidi_byname.gperf: New file.
2557         * modules/unictype/bidiclass-byname (Files): Add
2558         lib/unictype/bidi_byname.gperf.
2559         (Depends-on): Add gperf.
2560         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
2561         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
2562         long names.
2563
2564         Tests for module 'unictype/bidiclass-longname'.
2565         * modules/unictype/bidiclass-longname-tests: New file.
2566         * tests/unictype/test-bidi_longname.c: New file.
2567
2568         New module 'unictype/bidiclass-longname'.
2569         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
2570         * lib/unictype/bidi_longname.c: New file.
2571         * modules/unictype/bidiclass-longname: New file.
2572         * modules/unictype/bidiclass-all (Depends-on): Add
2573         unictype/bidiclass-longname.
2574
2575 2011-03-26  Bruno Haible  <bruno@clisp.org>
2576
2577         unictype/bidi*: Rename modules.
2578         * modules/unictype/bidiclass-all: Renamed from
2579         modules/unictype/bidicategory-all.
2580         * modules/unictype/bidiclass-name: Renamed from
2581         modules/unictype/bidiclass-name.
2582         (Description): Update.
2583         * modules/unictype/bidiclass-name-tests: Renamed from
2584         modules/unictype/bidicategory-name-tests.
2585         * modules/unictype/bidiclass-byname: Renamed from
2586         modules/unictype/bidicategory-byname.
2587         (Description): Update.
2588         * modules/unictype/bidiclass-byname-tests: Renamed from
2589         modules/unictype/bidicategory-byname-tests.
2590         * modules/unictype/bidiclass-of: Renamed from
2591         modules/unictype/bidicategory-of.
2592         (Description): Update.
2593         * modules/unictype/bidiclass-of-tests: Renamed from
2594         modules/unictype/bidicategory-of-tests.
2595         * modules/unictype/bidiclass-test: Renamed from
2596         modules/unictype/bidicategory-test.
2597         (Description): Update.
2598         * modules/unictype/bidiclass-test-tests: Renamed from
2599         modules/unictype/bidicategory-test-tests.
2600         * modules/unictype/bidicategory-all: New file, a simple redirection.
2601         * modules/unictype/bidicategory-name: Likewise.
2602         * modules/unictype/bidicategory-byname: Likewise.
2603         * modules/unictype/bidicategory-of: Likewise.
2604         * modules/unictype/bidicategory-test: Likewise.
2605         * modules/unictype/property-bidi-* (Dependencies): Update.
2606         * lib/unictype/bidi_*.c: Update comment.
2607
2608 2011-03-26  Bruno Haible  <bruno@clisp.org>
2609
2610         unictype/bidi*: Rename functions, part 2.
2611         * modules/unictype/bidicategory-name (configure.ac): Update required
2612         libunistring version.
2613         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
2614
2615 2011-03-25  Bruno Haible  <bruno@clisp.org>
2616
2617         New module 'unictype/combining-class-all'.
2618         * modules/unictype/combining-class-all: New file.
2619
2620         Tests for module 'unictype/combining-class-byname'.
2621         * modules/unictype/combining-class-byname-tests: New file.
2622         * tests/unictype/test-combiningclass_byname.c: New file.
2623
2624         New module 'unictype/combining-class-byname'.
2625         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
2626         * lib/unictype/combiningclass_byname.c: New file.
2627         * lib/unictype/combiningclass_byname.gperf: New file.
2628         * modules/unictype/combining-class-byname: New file.
2629
2630         Tests for module 'unictype/combining-class-longname'.
2631         * modules/unictype/combining-class-longname-tests: New file.
2632         * tests/unictype/test-combiningclass_longname.c: New file.
2633
2634         New module 'unictype/combining-class-longname'.
2635         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
2636         * lib/unictype/combiningclass_longname.c: New file.
2637         * modules/unictype/combining-class-longname: New file.
2638
2639         Tests for module 'unictype/combining-class-name'.
2640         * modules/unictype/combining-class-name-tests: New file.
2641         * tests/unictype/test-combiningclass_name.c: New file.
2642
2643         New module 'unictype/combining-class-name'.
2644         * lib/unictype.in.h (uc_combining_class_name): New declaration.
2645         * lib/unictype/combiningclass_name.c: New file.
2646         * modules/unictype/combining-class-name: New file.
2647
2648 2011-03-25  Bruno Haible  <bruno@clisp.org>
2649
2650         unictype/combining-class: Rename source files.
2651         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
2652         of unictype/combining.h.
2653         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
2654         Update.
2655         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
2656         * modules/unictype/combining-class (Description): Fix.
2657         (Files, Makefile.am): Update.
2658         * tests/unictype/test-combiningclass.c: Renamed from
2659         tests/unictype/test-combining.c.
2660         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
2661
2662 2011-03-25  Bruno Haible  <bruno@clisp.org>
2663
2664         unictype: Update list of canonical combining classes.
2665         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
2666
2667 2011-03-25  Bruno Haible  <bruno@clisp.org>
2668
2669         unictype/category-byname: Recognize long names as well.
2670         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
2671         a long name.
2672         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
2673         unictype/categ_byname.h.
2674         (UC_CATEGORY_INDEX_*): New enumeration values.
2675         (uc_general_category_byname): Use uc_general_category_lookup and
2676         convert from index to value.
2677         * lib/unictype/categ_byname.gperf: New file.
2678         * modules/unictype/category-byname (Files): Add
2679         lib/unictype/categ_byname.gperf.
2680         (Depends-on): Add gperf.
2681         (Makefile.am): Add rule for generating unictype/categ_byname.h.
2682         * tests/unictype/test-categ_byname.c (main): Test the recognition of
2683         long names.
2684
2685         Tests for module 'unictype/category-longname'.
2686         * modules/unictype/category-longname-tests: New file.
2687         * tests/unictype/test-categ_longname.c: New file.
2688
2689         New module 'unictype/category-longname'.
2690         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
2691         * lib/unictype/categ_longname.c: New file.
2692         * modules/unictype/category-longname: New file.
2693         * modules/unictype/category-all (Depends-on): Add it.
2694
2695 2011-03-25  Bruno Haible  <bruno@clisp.org>
2696
2697         Tests for module 'unictype/category-LC'.
2698         * modules/unictype/category-LC-tests: New file.
2699         * tests/unictype/test-categ_LC.c: New file, automatically generated.
2700
2701         New module 'unictype/category-LC'.
2702         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
2703         (UC_CATEGORY_LC): New declaration.
2704         (UC_CASED_LETTER): New macro.
2705         * lib/gen-uni-tables.c (is_category_LC): New function.
2706         (output_categories): Also handle category LC.
2707         (UC_CATEGORY_MASK_LC): New enumeration value.
2708         (general_category_byname): Also handle category LC.
2709         * lib/unictype/categ_LC.c: New file.
2710         * lib/unictype/categ_LC.h: New file, automatically generated.
2711         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
2712         category LC.
2713         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
2714         * modules/unictype/category-LC: New file.
2715         * modules/unictype/category-byname (Depends-on): Add
2716         unictype/category-LC.
2717         * modules/unictype/category-all (Depends-on): Likewise.
2718
2719 2011-03-25  Eric Blake  <eblake@redhat.com>
2720
2721         xmalloc: revert yesterday's regression
2722         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
2723         realloc's underlying behavior (allowing allocation of zero-size
2724         objects, especially if malloc-gnu is also in use).
2725
2726 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
2727
2728         maint.mk: add missing version to VC-tag
2729         * top/maint.mk: git tag was missing actual tag name; add it.
2730
2731         valgrind: do leak checking, and exit with code 1 on error (not 0)
2732         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
2733         to VALGRIND.
2734
2735 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
2736
2737         posix-modules: say what it does.
2738         * posix-modules: Add a line to the --help output saying what it does.
2739
2740 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
2741
2742         xmalloc: Do not leak if underlying realloc is C99 compatible.
2743         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
2744         This avoids a leak on C99-based systems.  See
2745         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
2746
2747 2011-03-24  Eric Blake  <eblake@redhat.com>
2748
2749         realloc: document portability problem
2750         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
2751         passing 0 size to realloc.
2752
2753 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
2754
2755         doc: update users.txt
2756         * users.txt: Add cvsps, tmpwatch
2757
2758 2011-03-23  Matt Rice  <ratmice@gmail.com>
2759
2760         doc: update users.txt
2761         * users.txt: Add gdb.
2762
2763 2011-03-23  Jim Meyering  <meyering@redhat.com>
2764
2765         doc: update users.txt
2766         Looking through matches up to the following URL (there are still
2767         several more pages), I found several projects that use gnulib:
2768         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
2769         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
2770         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
2771
2772 2011-03-22  Bruno Haible  <bruno@clisp.org>
2773
2774         unictype/bidi*: Rename functions.
2775         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
2776         uc_bidi_class, uc_is_bidi_class): New declarations.
2777         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
2778         uc_bidi_category_byname.
2779         (uc_bidi_category_byname): New function.
2780         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
2781         u_bidi_category_name.
2782         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
2783         (uc_bidi_category_name): New function.
2784         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
2785         uc_bidi_category.
2786         (uc_bidi_category): New function.
2787         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
2788         uc_is_bidi_category. Invoke uc_bidi_class.
2789         (uc_is_bidi_category): New function.
2790         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
2791         instead of uc_bidi_category_byname.
2792         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
2793         instead of uc_bidi_category_name.
2794         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
2795         uc_bidi_category.
2796         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
2797         instead of uc_is_bidi_category.
2798
2799 2011-03-21  Bruno Haible  <bruno@clisp.org>
2800
2801         New module 'unictype/joininggroup-all'.
2802         * modules/unictype/joininggroup-all: New file.
2803
2804         Tests for module 'unictype/joininggroup-of'.
2805         * modules/unictype/joininggroup-of-tests: New file.
2806         * tests/unictype/test-joininggroup_of.c: New file.
2807         * tests/unictype/test-joininggroup_of.h: New file, automatically
2808         generated by gen-uni-tables.
2809
2810         New module 'unictype/joininggroup-of'.
2811         * modules/unictype/joininggroup-of: New file.
2812         * lib/unictype/joininggroup_of.c: New file.
2813         * lib/unictype/joininggroup_of.h: New file, automatically generated by
2814         gen-uni-tables.
2815
2816         Tests for module 'unictype/joininggroup-byname'.
2817         * modules/unictype/joininggroup-byname-tests: New file.
2818         * tests/unictype/test-joininggroup_byname.c: New file.
2819
2820         New module 'unictype/joininggroup-byname'.
2821         * modules/unictype/joininggroup-byname: New file.
2822         * lib/unictype/joininggroup_byname.c: New file.
2823         * lib/unictype/joininggroup_byname.gperf: New file.
2824
2825         Tests for module 'unictype/joininggroup-name'.
2826         * modules/unictype/joininggroup-name-tests: New file.
2827         * tests/unictype/test-joininggroup_name.c: New file.
2828
2829         New module 'unictype/joininggroup-name'.
2830         * modules/unictype/joininggroup-name: New file.
2831         * lib/unictype/joininggroup_name.c: New file.
2832         * lib/unictype/joininggroup_name.h: New file.
2833
2834         New module 'unictype/joiningtype-all'.
2835         * modules/unictype/joiningtype-all: New file.
2836
2837         Tests for module 'unictype/joiningtype-of'.
2838         * modules/unictype/joiningtype-of-tests: New file.
2839         * tests/unictype/test-joiningtype_of.c: New file.
2840         * tests/unictype/test-joiningtype_of.h: New file, automatically
2841         generated by gen-uni-tables.
2842
2843         New module 'unictype/joiningtype-of'.
2844         * modules/unictype/joiningtype-of: New file.
2845         * lib/unictype/joiningtype_of.c: New file.
2846         * lib/unictype/joiningtype_of.h: New file, automatically generated by
2847         gen-uni-tables.
2848
2849         Tests for module 'unictype/joiningtype-byname'.
2850         * modules/unictype/joiningtype-byname-tests: New file.
2851         * tests/unictype/test-joiningtype_byname.c: New file.
2852
2853         New module 'unictype/joiningtype-byname'.
2854         * modules/unictype/joiningtype-byname: New file.
2855         * lib/unictype/joiningtype_byname.c: New file.
2856
2857         Tests for module 'unictype/joiningtype-name'.
2858         * modules/unictype/joiningtype-name-tests: New file.
2859         * tests/unictype/test-joiningtype_name.c: New file.
2860
2861         New module 'unictype/joiningtype-name'.
2862         * modules/unictype/joiningtype-name: New file.
2863         * lib/unictype/joiningtype_name.c: New file.
2864
2865         unictype: Add support for Arabic shaping properties.
2866         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
2867         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
2868         declarations.
2869         (UC_JOINING_GROUP_*): New enumeration values.
2870         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
2871         declarations.
2872         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
2873         (unicode_joining_type): New variable.
2874         (UC_JOINING_GROUP_*): New enumeration values.
2875         (unicode_joining_group): New variable.
2876         (fill_arabicshaping, joining_type_as_c_identifier,
2877         output_joining_type_test, output_joining_type,
2878         joining_group_as_c_identifier, output_joining_group_test,
2879         output_joining_group): New functions.
2880         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
2881         fill_arabicshaping and output_joining_type_test, output_joining_type,
2882         output_joining_group_test, output_joining_group.
2883         Reported by Simon Josefsson.
2884
2885 2011-03-21  Jim Meyering  <meyering@redhat.com>
2886
2887         strftime: fix a bug in yesterday's change
2888         * lib/strftime.c (add): Accommodate width's initial value of -1.
2889         Otherwise, nstrftime would copy uninitialized data into
2890         the result buffer.
2891
2892 2011-03-21  Jim Meyering  <meyering@redhat.com>
2893
2894         tests: add strftime-tests module
2895         * tests/test-strftime.c: New file.
2896         * modules/strftime-tests: New module.
2897
2898 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2899
2900         strftime: don't assume a byte count fits in 'int'
2901         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
2902         found this problem by static analysis, using gcc -Wstrict-overflow
2903         (GCC 4.5.2, x86-64).  This reported an optimization that depended
2904         on an integer overflow having undefined behavior, but it turns out
2905         that the argument is a size, which might not fit in 'int' anyway,
2906
2907 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2908
2909         stdio: don't require ignore_value around fwrite
2910
2911         This patch works around libc bug 11959
2912         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
2913         Without this patch, applications must often write
2914         ignore_value (fwrite (...)) even though the ignore_value is
2915         not helpful here.  It's common to write many objects, using
2916         fwrite/printf/etc., and then use ferror to detect output error.
2917
2918         I considered making this patch optional, but decided against it,
2919         because libc is obviously being inconsistent here: there is no
2920         reason libc should insist that user code must inspect fwrite
2921         return's value without also insisting that it inspect printf's,
2922         putchar's, etc.  If user code wants to have a strict style where
2923         all these functions' values are checked (so that ferror need not
2924         be checked), we could add support for that style in a new gnulib
2925         module, but in the meantime it's better to be consistent and to
2926         support common usage.
2927
2928         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
2929         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
2930         that we are compiling in checking mode, and if not C++, and
2931         if not already wrapping fwrite for some other reason.
2932         (fwrite): #define to rpl_fwrite if the latter is defined.
2933
2934 2011-03-20  Bruno Haible  <bruno@clisp.org>
2935
2936         verror: Fix compilation error introduced on 2011-02-13.
2937         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
2938         instead of __attribute__.
2939         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2940
2941 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2942             Bruno Haible  <bruno@clisp.org>
2943
2944         socklen: do not depend on sys_socket
2945         While trying to modify Emacs to use gnulib's socklen module,
2946         I discovered a circular dependency: socklen depends on sys_socket
2947         and vice versa.  Emacs can use socklen, but it does not need
2948         sys_socket because it has its own substitute for sys/socket.h.
2949         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
2950         gl_TYPE_SOCKLEN_T.
2951         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
2952         gl_PREREQ_SYS_H_SOCKET.
2953         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
2954         gl_PREREQ_SYS_H_SOCKET.
2955         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
2956         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
2957         * modules/socklen (Depends-on): Do not depend on sys_socket.
2958         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
2959
2960 2011-03-20  Jim Meyering  <meyering@redhat.com>
2961
2962         maint.mk: sort file names *after* new transformation
2963         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
2964         prefix would have led to an unwarranted failure in GNU parted.
2965         Sort after that transformation.
2966
2967 2011-03-19  Jim Meyering  <meyering@redhat.com>
2968
2969         maint.mk: fix po-file syntax-check rule
2970         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
2971         Patch by Bruno Haible.
2972
2973 2011-03-19  Bruno Haible  <bruno@clisp.org>
2974
2975         socklen: Update comment.
2976         * m4/socklen.m4: Update comment about platforms.
2977
2978 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
2979             Bruno Haible  <bruno@clisp.org>
2980
2981         inet_ntop, inet_pton: Simplify.
2982         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
2983         documented to provide socklen_t and we already depend on sys_socket.
2984         * modules/inet_pton (Depends-on): Likewise.
2985         * lib/arpa_inet.in.h: Adjust comment.
2986
2987 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
2988             Bruno Haible  <bruno@clisp.org>
2989
2990         netdb: Simplify.
2991         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
2992         documented to provide socklen_t and we already depend on sys_socket.
2993         * lib/netdb.in.h: Adjust comment.
2994
2995 2011-03-19  Bruno Haible  <bruno@clisp.org>
2996
2997         sys_socket, netdb: Document problem with socklen_t.
2998         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
2999         platforms.
3000         * doc/posix-headers/netdb.texi: Likewise.
3001
3002 2011-03-18  Eric Blake  <eblake@redhat.com>
3003
3004         maint.mk: let po check work in VPATH build
3005         * top/maint.mk (po_file): Allow cfg.mk override.
3006         (sc_po_check): Allow VPATH use.
3007         Reported by Jiri Denemark.
3008
3009 2011-03-16  Jim Meyering  <meyering@redhat.com>
3010
3011         maint.mk: allow fine-grained syntax-check exclusion via Make variables
3012         Before, you would have had to create one .x-sc_ file per rule in order
3013         to exempt offending files.  Now, you may instead use a Make variable --
3014         usually defined in cfg.mk -- whose name identifies the affected rule.
3015         * top/maint.mk (_sc_excl): Define.
3016         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
3017         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
3018
3019 2011-03-13  Bruno Haible  <bruno@clisp.org>
3020
3021         ignore-value tests: Avoid warnings.
3022         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
3023         empty for gcc < 3.4.
3024
3025 2011-03-13  Bruno Haible  <bruno@clisp.org>
3026
3027         passfd: Fix link error on Solaris.
3028         * modules/passfd (Description): Correct.
3029         (Depends-on): Add socketlib.
3030         (Link): New section.
3031         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
3032
3033 2011-03-13  Bruno Haible  <bruno@clisp.org>
3034
3035         passfd: Fix link error on AIX 5.2.
3036         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
3037
3038 2011-03-13  Bruno Haible  <bruno@clisp.org>
3039
3040         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
3041         * lib/sys_socket.in.h: Include <stddef.h>.
3042         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
3043         CMSG_FIRSTHDR. Remove unused variable.
3044
3045 2011-03-13  Bruno Haible  <bruno@clisp.org>
3046
3047         passfd: Fix compilation error on OpenBSD.
3048         * lib/passfd.c: Include <sys/uio.h>.
3049
3050 2011-03-13  Bruno Haible  <bruno@clisp.org>
3051
3052         passfd test: Fix warnings.
3053         * tests/test-passfd.c: Include <sys/wait.h>.
3054         (main): Fix typo.
3055
3056 2011-03-13  Bruno Haible  <bruno@clisp.org>
3057
3058         passfd module, part 4, tweaks.
3059         * tests/test-passfd.c: Reorder includes.
3060         (main): Fix perror and printf calls.
3061
3062 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3063
3064         passfd module, part 4.
3065         * modules/passfd-tests: New file.
3066         * tests/test-passfd.c: New file.
3067
3068 2011-03-13  Jim Meyering  <meyering@redhat.com>
3069
3070         Makefile: rely on GNU make; derive syntax-check rule names
3071         Rather than requiring that each sc_ rule be listed as a dependent
3072         of "check", use features of GNU make to derive the list.
3073         * Makefile (syntax-check-rules): Define.
3074         (check): Depend on the new variable, not the hard-coded list.
3075
3076 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
3077             Bruno Haible  <bruno@clisp.org>
3078
3079         passfd module, part 3.
3080         * lib/passfd.h (recvfd): Add a flags argument.
3081         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
3082         (recvfd): Add a flags argument.
3083         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
3084         exists.
3085         * modules/passfd (Depends-on): Add cloexec.
3086         Suggested by Eric Blake.
3087
3088 2011-03-13  Bruno Haible  <bruno@clisp.org>
3089
3090         passfd module, part 2, tweaks.
3091         * modules/passfd (Files): Reorder.
3092         (Depends-on): Remove errno.
3093         (Include): Remove <sys/socket.h>, <sys/un.h>.
3094         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
3095         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
3096         specification header. Include <sys/socket.h> always. Don't include
3097         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
3098         (sendfd): Clarify that it sets errno when it fails.
3099         (recvfd): Fix specification.
3100
3101 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3102
3103         passfd module, part 2.
3104         * modules/passfd: New file.
3105         * lib/passfd.h: New file.
3106         * lib/passfd.c: New file.
3107
3108 2011-03-12  Bruno Haible  <bruno@clisp.org>
3109
3110         wcswidth, mbswidth: Avoid integer overflow.
3111         * lib/wcswidth.c: Include <limits.h>.
3112         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
3113         * lib/mbswidth.c: Include <limits.h>.
3114         (mbsnwidth): Avoid 'int' overflow.
3115         Reported by Jim Meyering.
3116
3117 2011-03-12  Bruno Haible  <bruno@clisp.org>
3118
3119         futimens, utimensat: Avoid endless recursion on Solaris 10.
3120         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
3121         Solaris.
3122         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
3123         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
3124
3125 2011-03-11  Jim Meyering  <meyering@redhat.com>
3126
3127         maint.mk: relax a regexp to accommodate other formatting styles
3128         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
3129         between "ngettext" and the following "(".
3130
3131 2011-03-11  Pádraig Brady <P@draigBrady.com>
3132
3133         maint.mk: suppress a false positive warning
3134         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
3135         diagnostics are marked with ngettext.
3136
3137 2011-03-10  Eric Blake  <eblake@redhat.com>
3138
3139         wchar: add explicit dependencies, for Tru64
3140         * modules/mbmemcasecoll (Depends-on): Add wchar.
3141         * modules/mbtowc (Depends-on): Likewise.
3142         * modules/vasnprintf (Depends-on): Likewise.
3143         * modules/unistdio/u-printf-args (Depends-on): Likewise.
3144         * modules/wctomb (Depends-on): Likewise.
3145         Reported by Peter O'Gorman.
3146
3147 2011-03-08  Bruno Haible  <bruno@clisp.org>
3148
3149         passfd module, part 1, tweaks.
3150         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
3151         Improve indentation. Improve AC_MSG_CHECKING messages.
3152         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
3153         gl_SOCKET_FAMILIES.
3154
3155 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3156
3157         passfd module, part 1.
3158         * m4/afunix.m4: New file.
3159         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
3160         sockets.
3161
3162 2011-03-08  Bruno Haible  <bruno@clisp.org>
3163
3164         regex-quote: New API.
3165         * lib/regex-quote.h: Include <stdbool.h>.
3166         (struct regex_quote_spec): New type.
3167         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
3168         New declarations.
3169         (regex_quote_length, regex_quote_copy, regex_quote): Take a
3170         'const struct regex_quote_spec *' argument.
3171         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
3172         (pcre_special): New constant.
3173         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
3174         New functions.
3175         (regex_quote_length, regex_quote_copy, regex_quote): Take a
3176         'const struct regex_quote_spec *' argument.
3177         * modules/regex-quote (Depends-on): Add stdbool.
3178         * tests/test-regex-quote.c (check): Update for new API. Add test for
3179         anchored results.
3180         * NEWS: Mention the API change.
3181         Reported by Reuben Thomas and Eric Blake.
3182
3183 2011-03-06  Bruno Haible  <bruno@clisp.org>
3184
3185         regex-quote: Fix creation of POSIX extended regular expressions.
3186         * lib/regex-quote.c (ere_special): Add grouping and alternation
3187         operators.
3188
3189 2011-03-05  Bruno Haible  <bruno@clisp.org>
3190
3191         doc: Improve doc regarding autopoint vs. gnulib.
3192         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
3193         disable autopoint while running autoreconf.
3194         Suggested by Ralf Wildenhues.
3195
3196 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3197
3198         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
3199         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
3200
3201 2011-03-03  Bruce Korb  <bkorb@gnu.org>
3202
3203         parse-duration: remove xalloc.h dependency
3204         * lib/parse-duration.c (parse_period): handle NULL return from
3205         strdup instead of calling xstrdup().
3206         * modules/parse-duration: remove "xalloc" dependency
3207
3208 2011-03-03  Matthew Booth  <mbooth@redhat.com>
3209
3210         bootstrap: honor m4_base when running aclocal
3211         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
3212
3213 2011-03-02  Jim Meyering  <meyering@redhat.com>
3214
3215         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
3216         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
3217         on request from Matt Booth.
3218
3219 2011-03-01  Eric Blake  <eblake@redhat.com>
3220
3221         test-link: work on Hurd
3222         * tests/test-link.h (test_link): Hurd rejects linking directories
3223         with EISDIR instead of the POSIX-mandated EPERM.
3224
3225 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
3226
3227         stdio: simplify by moving files to printf-posix, sigpipe
3228         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
3229         since this symbol is needed only if printf is replaced.
3230         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
3231         Require gl_ASM_SYMBOL_PREFIX.
3232         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
3233         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
3234         (Depends-on): Add 'raise'.
3235         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
3236         * modules/stdio (Files): Remove lib/stdio-write.c,
3237         m4/asm-underscore.m4.
3238         (Depends-on): Remove 'raise'.
3239
3240         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
3241         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
3242         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
3243         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
3244
3245 2011-02-28  Bruno Haible  <bruno@clisp.org>
3246
3247         localcharset: Assume ANSI C behaviour of free().
3248         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
3249         calling free().
3250         Suggested by Simon Josefsson <simon@josefsson.org>.
3251
3252 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
3253             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
3254             Bruno Haible  <bruno@clisp.org>  (tiny change)
3255
3256         On Cygwin, use /proc file system instead of win32 API.
3257         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
3258         Win32 file names.
3259         (DllMain): Simplify by removing Cygwin specific code.
3260         (find_shared_library_fullname): Use Linux specific implementation also
3261         for Cygwin.
3262         (get_shared_library_fullname): Update accordingly.
3263         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
3264         Win32 file names.
3265         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
3266         Cygwin specific code.
3267
3268 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
3269             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
3270
3271         Fix OpenMP flag detection for various Fortran compilers.
3272         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
3273         OpenMP-conditional compilation construct, to force compile
3274         failure with missing OpenMP flag.
3275         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
3276
3277 2011-02-25  Eric Blake  <eblake@redhat.com>
3278
3279         strstr: expand test coverage
3280         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
3281         compilation.
3282         * tests/test-memmem.c (main): Duplicate tests.
3283         * tests/test-strcasestr.c (main): Likewise.
3284         * tests/test-c-strcasestr.c (main): Likewise.
3285
3286 2011-02-25  Jim Meyering  <meyering@redhat.com>
3287
3288         maint.mk: detect missing-NL-at-EOF, too
3289         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
3290         it also detects when a file lacks a newline at EOF.
3291         (require_exactly_one_NL_at_EOF_): Renamed from
3292         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
3293         since people may well have .x-sc_... file names tied to the
3294         existing name.  Suggested by Eric Blake.
3295
3296 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
3297
3298         dirname: move m4/dos.m4 functionality into lib/dosname.h
3299
3300         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
3301         extracts symbols from it, puts them into config.h; but it's much
3302         easier to use the symbols directly.  filename.h already does this,
3303         but it disagrees with dos.m4 in some respects.  This patch
3304         introduces a different include file dosname.h that packages up
3305         dos.m4, and then later we can work on merging filename.h and
3306         dosname.h.  Applications that need only the easy-to-configure
3307         symbols should consider including dosname.h rather than dirname.h.
3308         * NEWS: Mention incompatible changes.
3309         * m4/dos.m4: Remove.
3310         * lib/dosname.h, modules/dosname: New files.
3311         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
3312         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
3313         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
3314         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
3315         Include dosname.h, not dirname.h.
3316         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
3317         Include dosname.h, for definitions of symbols like ISSLASH
3318         that used to be in config.h.
3319         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
3320         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3321         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3322         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3323         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
3324         * modules/rmdir (Files): Likewise.
3325         * modules/stat (Files): Likewise.
3326         * modules/unlink (Files): Likewise.
3327         * modules/dirname-lgpl (Depends-on): Add dosname.
3328         * modules/lstat (Depends-on): Likewise.
3329         * modules/openat (Depends-on): Likewise.
3330         * modules/rmdir (Depends-on): Likewise.
3331         * modules/savewd (Depends-on): Likewise.
3332         * modules/stat (Depends-on): Likewise.
3333         * modules/unlink (Depends-on): Likewise.
3334         * modules/openat (Depends-on): Remove dirname-lgpl.
3335         * modules/savewd (Depends-on): Likewise.
3336         * tests/test-dirname.c: Do not use removed symbols like
3337         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
3338         the remaining symbols, e.g., ISSLASH ('\\').
3339
3340 2011-02-25  Eric Blake  <eblake@redhat.com>
3341
3342         strstr: revert patches that introduced bug and pessimization
3343         * lib/str-two-way.h: Add another reference.
3344         (two_way_short_needle, two_way_long_needle): Revert changes from
3345         2011-02-24; they pessimize search speed.
3346         (critical_factorization): Partially revert changes from
3347         2010-06-22; they violate the requirement that the left half of the
3348         needle be smaller than the period of the needle.
3349
3350 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3351
3352         filenamecat: remove unnecessary dependency on dirname-lgpl
3353         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
3354         is no direct dependency, just an indirect one via filenamecat-lgpl.
3355
3356         remove: remove unnecessary use of m4/dos.m4
3357         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
3358         * modules/remove (FILES): Remove m4/dos.m4.
3359
3360         * lib/openat-proc.c: Don't include dirname.h; not needed.
3361
3362         backupfile: remove unnecessary use of m4/dos.m4
3363         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
3364         of its symbols are used by the backupfile code.  backupfile.c does
3365         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
3366         for the rare case of programs that want all their backup file
3367         names to live within 8+3 limits, and dos.m4 doesn't address that.
3368         * modules/backupfile (Files): Remove m4/dos.m4.
3369
3370 2011-02-24  Jim Meyering  <meyering@redhat.com>
3371
3372         strstr: fix a bug whereby strstr would mistakenly return NULL
3373         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
3374         in period calculation.
3375         (two_way_long_needle): Likewise.
3376         The original problem was reported by Mike Stump in
3377         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
3378         Ralf Wildenhues provided the short needle and haystack.
3379         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
3380         Add a more involved test to trigger the bug in two_way_long_needle.
3381
3382 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
3383
3384         gnulib-tool: remove use of bold display in help screen
3385         * gnulib-tool (func_usage): Do not use bold display anymore in the
3386         help screen.  That was just meant to be a temporary emphasis for a
3387         backward-incompatible change.
3388
3389 2011-02-23  Bruno Haible  <bruno@clisp.org>
3390
3391         Fix misindentation of preprocessor directives.
3392         * lib/argp-namefrob.h: Reindent preprocessor directives.
3393         * lib/getopt_int.h (struct _getopt_data): Likewise.
3394         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
3395         * lib/vasnprintf.c (decode_long_double): Likewise.
3396         * tests/test-argmatch.c: Insert blank lines, for clarity.
3397         * tests/test-exclude.c: Likewise.
3398
3399 2011-02-22  Bruno Haible  <bruno@clisp.org>
3400
3401         ioctl: Fix for MacOS X in 64-bit mode.
3402         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
3403         value.
3404         Suggested by Eric Blake.
3405         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
3406
3407 2011-02-22  Jim Meyering  <meyering@redhat.com>
3408
3409         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
3410         * Makefile (sc_cpp_indent_check): Don't limit the check to files
3411         in lib/.
3412
3413 2011-02-22  Eric Blake  <eblake@redhat.com>
3414
3415         maint: avoid any CDPATH issue
3416         * Makefile (sc_cpp_indent_check): Anchor cd argument.
3417
3418         maint: adjust cpp indentation for my modules, as well
3419         * Makefile (sc_cpp_indent_check): Add my name.
3420         * lib/fbufmode.c: Filter through cppi.
3421         * lib/fpurge.c: Likewise.
3422         * lib/freadable.c: Likewise.
3423         * lib/freading.c: Likewise.
3424         * lib/fwritable.c: Likewise.
3425         * lib/fwriting.c: Likewise.
3426         * lib/sigaction.c: Likewise.
3427
3428 2011-02-22  Jim Meyering  <meyering@redhat.com>
3429
3430         maint: adjust cpp indentation to reflect nesting depth
3431         I.e., in a block of code that begins with an unnested "#if",
3432         put one space between the "#" in column 1 and following token.
3433         For example,
3434         -#include <sys/vfs.h>
3435         +# include <sys/vfs.h>
3436         Do this only in .c files that are part of a module I maintain.
3437         * lib/linkat.c: Filter through cppi.
3438         * lib/nanosleep.c: Likewise.
3439         * lib/openat.c: Likewise.
3440         * lib/openat-die.c: Likewise.
3441         * lib/dup3.c: Likewise.
3442         * lib/fchownat.c: Likewise.
3443         * lib/flock.c: Likewise.
3444         * lib/fsync.c: Likewise.
3445         * lib/fts.c: Likewise.
3446         * lib/getpass.c: Likewise.
3447         * lib/gettimeofday.c: Likewise.
3448         * lib/userspec.c: Likewise.
3449         * Makefile (sc_cpp_indent_check): New rule, to check this.
3450
3451 2011-02-22  Bruno Haible  <bruno@clisp.org>
3452
3453         New module 'wctomb'.
3454         * lib/stdlib.in.h (wctomb): New declaration.
3455         * lib/wctomb.c: New file.
3456         * lib/wctomb-impl.h: New file.
3457         * m4/wctomb.m4: New file.
3458         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
3459         REPLACE_WCTOMB.
3460         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
3461         REPLACE_WCTOMB.
3462         * modules/wctomb: New file.
3463         * tests/test-stdlib-c++.cc: Test signature of wctomb.
3464         * doc/posix-functions/wctomb.texi: Mention the new module.
3465         * modules/wctob (Depends-on): Add wctomb.
3466
3467 2011-02-22  Bruno Haible  <bruno@clisp.org>
3468
3469         New module 'mbtowc'.
3470         * lib/stdlib.in.h (mbtowc): New declaration.
3471         * lib/mbtowc.c: New file.
3472         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
3473         * m4/mbtowc.m4: New file.
3474         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
3475         REPLACE_MBTOWC.
3476         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
3477         REPLACE_MBTOWC.
3478         * modules/mbtowc: New file.
3479         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
3480         * doc/posix-functions/mbtowc.texi: Mention the new module.
3481         * modules/btowc (Depends-on): Add mbtowc.
3482
3483 2011-02-22  Bruno Haible  <bruno@clisp.org>
3484
3485         wcrtomb: Add more tests for native Windows platforms.
3486         * tests/test-wcrtomb-w32-1.sh: New file.
3487         * tests/test-wcrtomb-w32-2.sh: New file.
3488         * tests/test-wcrtomb-w32-3.sh: New file.
3489         * tests/test-wcrtomb-w32-4.sh: New file.
3490         * tests/test-wcrtomb-w32-5.sh: New file.
3491         * tests/test-wcrtomb-w32.c: New file.
3492         * modules/wcrtomb-tests (Files): Add them.
3493         (Makefile.am): Arrange to run these tests.
3494         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
3495         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
3496
3497 2011-02-20  Bruno Haible  <bruno@clisp.org>
3498
3499         wcrtomb: Enhance test.
3500         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
3501
3502 2011-02-20  Bruno Haible  <bruno@clisp.org>
3503
3504         mbrtowc: Tiny optimization.
3505         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
3506
3507 2011-02-20  Jim Meyering  <meyering@redhat.com>
3508
3509         test-exclude.c: remove unmatched #endif
3510         * tests/test-exclude.c: Remove stray #endif, left over from
3511         the change of a week ago.
3512
3513 2011-02-19  Jim Meyering  <meyering@redhat.com>
3514
3515         git-version-gen: skip "-dirty" check when appropriate
3516         * build-aux/git-version-gen: Don't run any git commands when the
3517         version string comes from .tarball-version.  Prior to this, we
3518         would run git update-index --refresh even from a just-unpacked
3519         tarball directory, and that could affect a .git/ directory in a
3520         parent of the build directory.  Reported by Mike Frysinger.
3521
3522 2011-02-19  Bruno Haible  <bruno@clisp.org>
3523
3524         unictype/property-byname: Reduce the size of the 'data' segment.
3525         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
3526
3527 2011-02-19  Bruno Haible  <bruno@clisp.org>
3528
3529         unictype/scripts: Reduce the size of the 'data' segment.
3530         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
3531         '%pic'.
3532         * lib/unictype/scripts_byname.gperf: Regenerated.
3533
3534 2011-02-19  Bruno Haible  <bruno@clisp.org>
3535
3536         stdint: Update documentation.
3537         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
3538
3539 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
3540
3541         stdint: omit redundant check for wchar.h
3542         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
3543         always tests whether wchar.h exists, so remove the now-redundant test.
3544
3545 2011-02-18  Bruno Haible  <bruno@clisp.org>
3546
3547         stdint: Cut dependency to module 'wchar'.
3548         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
3549         include the necessary prerequisites.
3550         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
3551         * modules/stdint (Depends-on): Remove wchar.
3552         (Makefile.am): Substitute HAVE_WCHAR_H.
3553         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
3554
3555 2011-02-18  Eric Blake  <eblake@redhat.com>
3556
3557         longlong: skip, rather than fail, on cross-compilation
3558         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
3559         when cross-compiling; regression from 2011-02-16.
3560
3561 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
3562
3563         * NEWS: Mention 2011-02-08 change to stdlib.
3564
3565 2011-02-17  Bruno Haible  <bruno@clisp.org>
3566
3567         getloadavg: Add comments about platforms.
3568         * m4/getloadavg.m4: Add comment.
3569         * lib/getloadavg.c: Likewise.
3570
3571 2011-02-17  Bruno Haible  <bruno@clisp.org>
3572
3573         getloadavg: Fix link error on Solaris 2.6.
3574         * modules/getloadavg (Link): New section.
3575         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
3576         linking test-getloadavg.
3577         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
3578         getloadavg.
3579
3580 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
3581
3582         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
3583         It was 'int', but this doesn't match the IRIX 6.5 manual.
3584         Suggested by Bruno Haible in
3585         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
3586
3587 2011-02-17  Bruno Haible  <bruno@clisp.org>
3588
3589         havelib: Fix comments.
3590         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
3591         change.
3592
3593 2011-02-17  Bruno Haible  <bruno@clisp.org>
3594
3595         havelib: Update config.rpath.
3596         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
3597
3598 2011-02-17  Bruno Haible  <bruno@clisp.org>
3599
3600         getloadavg test: Add some plausibility checks.
3601         * tests/test-getloadavg.c (check_avg): Print a warning when the value
3602         is improbable.
3603
3604 2011-02-16  Eric Blake  <eblake@redhat.com>
3605
3606         maintainer-makefile: make syntax-check a no-op from tarballs
3607         * top/maint.mk (no-vc-detected): New rule.
3608         (local-checks-available): Use it to avoid hanging if someone tries
3609         'make syntax-check' from a tarball.  Also append to any non-syntax
3610         checks already defined in cfg.mk.
3611
3612 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
3613
3614         longlong: tune, particularly for common case of c99
3615
3616         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
3617         or running anything if c99, or if unsigned long long int does not
3618         work.  In either case, we know the answer without further tests.
3619         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
3620         it at most once, and use its results for both long long int and
3621         unsigned long long int.  This is more likely to be efficient in
3622         the common case where the program wants to check for both long
3623         long int and unsigned long long int.
3624         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
3625         since the answer is already known.
3626
3627 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
3628
3629         getloadavg: set errno
3630         * lib/getloadavg.c: Set errno when returning -1.  If no other
3631         error number looks appropriate, set it to ENOSYS if the getloadavg
3632         looks like it can't possibly ever work, ENOTSUP otherwise.
3633         Suggested by Bruno Haible in
3634         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
3635
3636         getloadavg: trim unused parts and speed up 'configure'
3637         * NEWS: Document this.
3638         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
3639         always compiled if getloadavg is absent.
3640         Move test code to ...
3641         * tests/test-getloadavg.c: New file, containing previous
3642         contents of test from lib/getloadavg.c.  It also contains
3643         suggestions by Bruno Haible in
3644         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
3645         * modules/getloadavg-tests: New file.
3646         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
3647         Do tests in the same order as they're needed for getloadavg.c.
3648         Omit setgid-related tests that generate symbols KMEM_GROUP,
3649         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
3650         Do only the tests that are needed to see whether the system has
3651         getloadavg, moving the other tests into ...
3652         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
3653         NLIST_NAME_UNION; nobody should be using it.  Do not define
3654         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
3655         relevant, as the user of this module shouldn't care how getloadavg
3656         is implemented.
3657
3658         getloadavg: omit unused var
3659         * lib/getloadavg.c (getloadavg): Omit unused local variable.
3660
3661 2011-02-15  Jim Meyering  <meyering@redhat.com>
3662
3663         doc: update users.txt
3664         * users.txt: Update iwhd's URL.
3665
3666 2011-02-13  Bruno Haible  <bruno@clisp.org>
3667
3668         Consistent macro naming for macros that use GCC __attribute__.
3669         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
3670         _ATTRIBUTE_NONNULL_.
3671         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
3672         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
3673         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
3674         ATTRIBUTE_DEPRECATED.
3675         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
3676         ATTRIBUTE_NORETURN.
3677         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3678         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3679         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3680         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3681         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
3682         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
3683         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
3684         ATTRIBUTE_SENTINEL.
3685         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
3686         ATTRIBUTE_RETURN_CHECK.
3687         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
3688         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
3689         ATTRIBUTE_NORETURN.
3690         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
3691         Reported by Paul Eggert.
3692
3693 2011-02-13  Bruno Haible  <bruno@clisp.org>
3694
3695         Don't interfere with a program's definition of __attribute__.
3696         * lib/argp.h (__attribute__): Remove definition.
3697         (_GL_ATTRIBUTE_FORMAT): New macro.
3698         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
3699         * lib/argp-fmtstream.h (__attribute__): Remove definition.
3700         (_GL_ATTRIBUTE_FORMAT): New macro.
3701         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
3702         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
3703         GCC 3 or newer.
3704         * lib/error.h (__attribute__): Remove definition.
3705         (_GL_ATTRIBUTE_FORMAT): New macro.
3706         (error, error_at_line): Use it.
3707         * lib/hash.h (__attribute__): Remove definition.
3708         (ATTRIBUTE_WUR): Update definition. Define always.
3709         * lib/openat.h (__attribute__): Remove definition.
3710         (ATTRIBUTE_NORETURN): Update definition. Define always.
3711         * lib/sigpipe-die.h (__attribute__): Remove definition.
3712         (ATTRIBUTE_NORETURN): Update definition. Define always.
3713         * lib/vasnprintf.h (__attribute__): Remove definition.
3714         (_GL_ATTRIBUTE_FORMAT): New macro.
3715         (asnprintf, vasnprintf): Use it.
3716         * lib/xalloc.h (__attribute__): Remove definition.
3717         (ATTRIBUTE_NORETURN): Update definition. Define always.
3718         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
3719         * lib/xmemdup0.h (__attribute__): Remove definition.
3720         (ATTRIBUTE_NORETURN): Update definition. Define always.
3721         * lib/xprintf.h (__attribute__): Remove definition.
3722         (_GL_ATTRIBUTE_FORMAT): New macro.
3723         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
3724         * lib/xstrtol.h (__attribute__): Remove definition.
3725         (ATTRIBUTE_NORETURN): Update definition. Define always.
3726         * lib/xvasprintf.h (__attribute__): Remove definition.
3727         (_GL_ATTRIBUTE_FORMAT): New macro.
3728         (xasprintf, xvasprintf): Use it.
3729         * tests/test-argmatch.c (__attribute__): Remove definition.
3730         (ATTRIBUTE_NORETURN): Update definition. Define always.
3731         * tests/test-exclude.c (__attribute__): Remove definition.
3732         (ATTRIBUTE_NORETURN): Update definition. Define always.
3733         Reported by Paul Eggert.
3734
3735 2011-02-13  Bruno Haible  <bruno@clisp.org>
3736
3737         mbrtowc: Add more tests for native Windows platforms.
3738         * tests/test-mbrtowc-w32-1.sh: New file.
3739         * tests/test-mbrtowc-w32-2.sh: New file.
3740         * tests/test-mbrtowc-w32-3.sh: New file.
3741         * tests/test-mbrtowc-w32-4.sh: New file.
3742         * tests/test-mbrtowc-w32-5.sh: New file.
3743         * tests/test-mbrtowc-w32.c: New file.
3744         * modules/mbrtowc-tests (Files): Add them.
3745         (Makefile.am): Arrange to run these tests.
3746         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
3747         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
3748
3749 2011-02-13  Bruno Haible  <bruno@clisp.org>
3750
3751         mbrtowc: Work around native Windows bug.
3752         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
3753         guess when no suitable locale for testing was found.
3754         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
3755
3756 2011-02-13  Bruno Haible  <bruno@clisp.org>
3757
3758         mbsinit: Work around mingw bug.
3759         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
3760         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
3761         Windows.
3762         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
3763
3764 2011-02-13  Bruno Haible  <bruno@clisp.org>
3765
3766         mbsinit: Don't crash for a NULL argument.
3767         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
3768         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
3769
3770 2011-02-13  Bruno Haible  <bruno@clisp.org>
3771
3772         Don't interfere with a program's definition of __attribute__.
3773         * lib/stdio.in.h (__attribute__): Remove definition.
3774         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
3775         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
3776         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
3777         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
3778         * lib/string.in.h (__attribute__): Remove definition.
3779         Reported by Paul Eggert.
3780
3781 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3782
3783         stdlib: don't get in the way of non-GCC __attribute__
3784         See thread starting at
3785         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
3786         Revert previous stdlib change, installing the following instead:
3787         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
3788         to get in the way of a non-GCC compiler that supports __attribute__.
3789         (_GL_ATTRIBUTE_RETURN): New macro.
3790         (_Exit): Use it instead of __attribute__.
3791
3792 2011-02-12  Bruno Haible  <bruno@clisp.org>
3793
3794         quotearg test: Avoid test failure on mingw.
3795         * tests/test-quotearg.sh: Convert the locale identifier from native
3796         Windows syntax to Unix syntax.
3797
3798 2011-02-12  Bruno Haible  <bruno@clisp.org>
3799
3800         setlocale: Prefer gnulib's override over libintl's override.
3801         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
3802         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
3803         GNULIB_defined_setlocale is set.
3804
3805 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3806
3807         stdlib: support non-GCC __attribute__
3808
3809         Fix a serious and tricky problem encountered when attempting to
3810         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
3811         5.5, but it crashed due to memory corruption on Solaris 10 with
3812         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
3813         bits that are otherwise zero.  This tagging is optional inside
3814         Emacs but is preferred and is used when __attribute__ ((__aligned
3815         (8))) works, as it does with both recent-enough GCC and with Sun C
3816         5.11.  However, Sun C 5.11 is not GCC and does not #define
3817         __GNUC__ and __GNUC_MINOR__.
3818
3819         When I added the getloadavg module to Emacs, it brought in
3820         stdlib.in.h, which contained this fragment:
3821
3822            #ifndef __attribute__
3823            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
3824            #  define __attribute__(Spec)   /* empty */
3825            # endif
3826            #endif
3827
3828         When files that include <stdlib.h> were compiled with Sun C 5.11,
3829         the above code disabled __attribute__ ((__aligned (8))), which
3830         caused variables to not be properly aligned, which eventually led
3831         to the pointer corruption mentioned above.  (This was a bit hard
3832         to diagnose, unfortunately.)
3833
3834         Several "#define __attribute__(X) /* empty */" code snippets need
3835         to be eradicated from Gnulib to work with non-GCC compilers that
3836         support __attribute__.  The Autoconf way to do this is to test for
3837         each kind of attribute that we want support for, and selectively
3838         enable that in source code.
3839
3840         Fix this problem just for stdlib.h, by adding a test for the
3841         __noreturn__ attribute, and change stdlib.in.h to use that test
3842         when needed.  This technique can be easily generalized to the
3843         other *.in.h files and attributes, and a similar technique can be
3844         used for *.h and *.c files.  This patch is enough to solve the
3845         problem for Emacs + getloadavg, and I thought I'd publish it for
3846         feedback before undertaking further, similar fixes in other
3847         modules.
3848
3849         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
3850         because it's not needed for stdlib.h.  It merely substitutes the
3851         value directly into stdlib.h.  We may well need to #define it, or
3852         similar symbols, for other modules, but it's nice to also have an
3853         option to not #define it for applications like Emacs that do not
3854         need it.
3855
3856         * lib/stdlib.in.h (__attribute__): Do not #define.
3857         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
3858         be defined only if the _Exit module is also used.
3859         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
3860         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
3861         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
3862         platforms.
3863         * modules/_Exit (Files): Add m4/attribute.m4.
3864         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
3865         * m4/attribute.m4: New file.
3866
3867 2011-02-12  Bruno Haible  <bruno@clisp.org>
3868
3869         wcsrtombs: Work around bug on native Windows.
3870         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
3871         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
3872         instead of len.
3873         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
3874
3875 2011-02-12  Bruno Haible  <bruno@clisp.org>
3876
3877         mbsrtowcs: Work around bug on native Windows.
3878         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
3879         against mingw bug.
3880         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
3881
3882 2011-02-12  Bruno Haible  <bruno@clisp.org>
3883
3884         Avoid setlocale bugs in tests.
3885         * modules/btowc (Dependencies): Add setlocale.
3886         * modules/c-strcase (Dependencies): Likewise.
3887         * modules/mbmemcasecmp (Dependencies): Likewise.
3888         * modules/mbmemcasecoll (Dependencies): Likewise.
3889         * modules/mbrtowc (Dependencies): Likewise.
3890         * modules/mbscasecmp (Dependencies): Likewise.
3891         * modules/mbscasestr (Dependencies): Likewise.
3892         * modules/mbschr (Dependencies): Likewise.
3893         * modules/mbscspn (Dependencies): Likewise.
3894         * modules/mbsinit (Dependencies): Likewise.
3895         * modules/mbsncasecmp (Dependencies): Likewise.
3896         * modules/mbsnrtowcs (Dependencies): Likewise.
3897         * modules/mbspbrk (Dependencies): Likewise.
3898         * modules/mbspcasecmp (Dependencies): Likewise.
3899         * modules/mbsrchr (Dependencies): Likewise.
3900         * modules/mbsrtowcs (Dependencies): Likewise.
3901         * modules/mbsspn (Dependencies): Likewise.
3902         * modules/mbsstr (Dependencies): Likewise.
3903         * modules/nl_langinfo (Dependencies): Likewise.
3904         * modules/quotearg (Dependencies): Likewise.
3905         * modules/unicase/locale-language (Dependencies): Likewise.
3906         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
3907         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
3908         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
3909         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
3910         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
3911         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
3912         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
3913         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
3914         * modules/vasnprintf-posix (Dependencies): Likewise.
3915         * modules/wcrtomb (Dependencies): Likewise.
3916         * modules/wcsnrtombs (Dependencies): Likewise.
3917         * modules/wcsrtombs (Dependencies): Likewise.
3918
3919 2011-02-12  Bruno Haible  <bruno@clisp.org>
3920
3921         setlocale: Workaround native Windows bug.
3922         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
3923         succeeds but sets LC_CTYPE to "C", report a failure.
3924         * tests/test-setlocale2.sh: New file.
3925         * tests/test-setlocale2.c: New file.
3926         * modules/setlocale-tests (Files): Add the new files.
3927         (Makefile.am): Enable test-setlocale2.sh test.
3928         * doc/posix-functions/setlocale.texi: Mention workaround.
3929
3930 2011-02-11  Bruno Haible  <bruno@clisp.org>
3931
3932         Tests for module 'setlocale'.
3933         * modules/setlocale-tests: New file.
3934         * tests/test-setlocale1.sh: New file.
3935         * tests/test-setlocale1.c: New file.
3936
3937         New module 'setlocale'.
3938         * lib/locale.in.h (setlocale): New declaration.
3939         * lib/setlocale.c: New file, based on
3940         gettext/gettext-runtime/intl/setlocale.c.
3941         * m4/setlocale.m4: New file.
3942         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
3943         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
3944         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
3945         REPLACE_SETLOCALE.
3946         * modules/setlocale: New file.
3947         * tests/test-locale-c++.cc: Test the declaration of setlocale.
3948         * doc/posix-functions/setlocale.texi: Mention the new module.
3949
3950 2011-02-11  Bruno Haible  <bruno@clisp.org>
3951
3952         Prepare for locale dependent tests on mingw.
3953         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
3954         because it has the wrong locale encoding.
3955         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
3956         French_France.1252 instead of "fr".
3957         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
3958         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
3959         because it has the wrong locale encoding.
3960         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
3961         native Windows, try Turkish_Turkey.65001.
3962         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
3963         Chinese_China.54936.
3964
3965         Prepare for locale dependent tests on mingw.
3966         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
3967         differently.
3968         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
3969         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
3970         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3971         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3972
3973 2011-02-11  Eric Blake  <eblake@redhat.com>
3974
3975         strptime: avoid compiler warnings
3976         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
3977         compiler warnings about dead code.
3978         Reported by Daniel P. Berrange.
3979
3980 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
3981
3982         doc: update users.txt
3983         * users.txt: Add rcs.
3984
3985 2011-02-10  John W. Eaton  <jwe@gnu.org>
3986
3987         doc: update users.txt
3988         * users.txt: Add octave.
3989
3990 2011-02-10  Jim Meyering  <meyering@redhat.com>
3991
3992         doc: update users.txt
3993         * users.txt: Add iwhd.
3994
3995 2011-02-09  Bruno Haible  <bruno@clisp.org>
3996
3997         gnulib-tool: Make copyright notice adjustment more robust.
3998         * gnulib-tool (func_import): In sed_transform_main_lib_file,
3999         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
4000         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
4001         License".
4002         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
4003
4004 2011-02-06  Bruno Haible  <bruno@clisp.org>
4005
4006         New module 'towctrans'.
4007         * modules/towctrans: New file.
4008         * lib/wctype.in.h (towctrans): New declaration.
4009         * lib/towctrans.c: New file.
4010         * lib/towctrans-impl.h: New file.
4011         * m4/towctrans.m4: New file.
4012         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
4013         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
4014         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
4015         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
4016         * doc/posix-functions/towctrans.texi: Mention the new module.
4017
4018 2011-02-06  Bruno Haible  <bruno@clisp.org>
4019
4020         New module 'wctrans'.
4021         * modules/wctrans: New file.
4022         * lib/wctype.in.h (wctrans): New declaration.
4023         * lib/wctrans.c: New file.
4024         * lib/wctrans-impl.h: New file.
4025         * m4/wctrans.m4: New file.
4026         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
4027         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
4028         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
4029         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
4030         * doc/posix-functions/wctrans.texi: Mention the new module.
4031
4032 2011-02-06  Bruno Haible  <bruno@clisp.org>
4033
4034         New module 'iswctype'.
4035         * modules/iswctype: New file.
4036         * lib/wctype.in.h (iswctype): New declaration.
4037         * lib/iswctype.c: New file.
4038         * lib/iswctype-impl.h: New file.
4039         * m4/iswctype.m4: New file.
4040         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
4041         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
4042         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
4043         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
4044         * doc/posix-functions/iswctype.texi: Mention the new module and the
4045         HP-UX 11.00 problem.
4046
4047 2011-02-06  Bruno Haible  <bruno@clisp.org>
4048
4049         New module 'wctype'.
4050         * modules/wctype: Change to represent the wctype() substitute.
4051         * lib/wctype.in.h (wctype): New declaration.
4052         * lib/wctype.c: New file.
4053         * lib/wctype-impl.h: New file.
4054         * m4/wctype.m4: New file.
4055         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
4056         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
4057         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
4058         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
4059         * doc/posix-functions/wctype.texi: Mention the new module and the
4060         HP-UX 11.00 problem.
4061
4062 2011-02-06  Bruno Haible  <bruno@clisp.org>
4063
4064         wctype-h: Ensure wctype_t and wctrans_t are defined.
4065         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
4066         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
4067         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
4068         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
4069         HAVE_WCTRANS_T.
4070         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
4071
4072 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
4073
4074         flock: fix license typo
4075
4076         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
4077         omitted.
4078
4079 2011-02-08  Bruno Haible  <bruno@clisp.org>
4080
4081         Split large sed scripts, for HP-UX sed.
4082         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
4083         to avoid HP-UX limit of 99 commands, in the near future.
4084         * modules/stdlib (Makefile.am): Likewise.
4085         * modules/unistd (Makefile.am): Likewise.
4086         * modules/wchar (Makefile.am): Likewise.
4087         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
4088         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
4089         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
4090
4091 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
4092             Bruno Haible  <bruno@clisp.org>
4093
4094         stdlib: improve random_r modularization
4095         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
4096         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
4097         you also need the random_r module to get this material right.
4098         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
4099         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
4100         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
4101
4102 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
4103
4104         stdlib: don't depend on stdint
4105         * lib/stdlib.in.h: Don't include <stdint.h> merely because
4106         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
4107         be independent of whether stdint.h is needed.
4108         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
4109         here, instead of ...
4110         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
4111         struct random_data should be using the random_r module, not just
4112         the stdlib module (which wouldn't make sense: what package needs
4113         just struct random_data without also needing random_r?).
4114         * modules/stdlib (Depends-on): Remove stdint.
4115
4116         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
4117         See the thread rooted at
4118         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
4119         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
4120         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
4121         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
4122         __VMS)); previously it was always included (via fcntl--.h).
4123         (getloadavg): Do not use c_strtod.  Instead, approximate it by
4124         hand; this is good enough for load averages.  Also, do not use
4125         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
4126         flags directly if available and don't bother otherwise.  (Packages
4127         that need the extra reliability should use the modules that define
4128         these flags on older platforms that lack them.)
4129         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
4130         fcntl-safer.
4131
4132 2011-02-08  Jim Meyering  <meyering@redhat.com>
4133
4134         di-set.h, ino-map.h: add multiple-inclusion guard
4135         Technically, the guard is required only for ino-map.h, due to its
4136         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
4137         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
4138         * lib/ino-map.h: Likewise.
4139
4140 2011-02-06  Bruno Haible  <bruno@clisp.org>
4141
4142         iswblank: Ensure declaration on glibc systems.
4143         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
4144         * modules/iswblank (Dependencies): Add 'extensions'.
4145         * doc/posix-functions/iswblank.texi: Document the glibc problem.
4146
4147 2011-02-06  Bruno Haible  <bruno@clisp.org>
4148
4149         New module 'iswblank'.
4150         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
4151         * modules/iswblank: New file.
4152         * modules/wctype-h (Files): Remove lib/iswblank.c.
4153         (Makefile.am): Substitute GNULIB_ISWBLANK.
4154         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
4155         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
4156         (gl_WCTYPE_H_DEFAULTS): New macro.
4157         (gl_WCTYPE_H): Require it. Remove iswblank related code.
4158         * modules/iswblank-tests: New file.
4159         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
4160         * tests/test-wctype-h.c (main): Remove iswblank tests.
4161         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
4162         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
4163         of 'wctype-h'.
4164         * NEWS: Mention the change.
4165         * modules/mbchar (Depends-on): Add iswblank.
4166
4167 2011-02-08  Bruno Haible  <bruno@clisp.org>
4168
4169         di-set tests: Refactor.
4170         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
4171         unnecessary includes.
4172         (ASSERT): Remove macro.
4173         (main): Make C90 compliant by avoiding variable declaration after
4174         statement.
4175         * modules/di-set-tests (Files): Add tests/macros.h.
4176
4177 2011-02-08  Bruno Haible  <bruno@clisp.org>
4178
4179         ino-map tests: Refactor.
4180         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
4181         unnecessary includes.
4182         (ASSERT): Remove macro.
4183         (main): Make C90 compliant by avoiding variable declaration after
4184         statement.
4185         * modules/ino-map-tests (Files): Add tests/macros.h.
4186
4187 2011-02-08  Jim Meyering  <meyering@redhat.com>
4188
4189         di-set: add "const" to a cast
4190         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
4191         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
4192
4193 2011-02-06  Bruno Haible  <bruno@clisp.org>
4194
4195         Rename module 'wctype' to 'wctype-h'.
4196         * modules/wctype-h: Renamed from modules/wctype.
4197         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
4198         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
4199         (Files, Depends-on, Makefile.am): Update.
4200         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
4201         (Files, Makefile.am): Update.
4202         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
4203         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
4204         * doc/posix-headers/wctype.texi: Update.
4205         * doc/posix-functions/iswalnum.texi: Update.
4206         * doc/posix-functions/iswalpha.texi: Update.
4207         * doc/posix-functions/iswblank.texi: Update.
4208         * doc/posix-functions/iswcntrl.texi: Update.
4209         * doc/posix-functions/iswdigit.texi: Update.
4210         * doc/posix-functions/iswgraph.texi: Update.
4211         * doc/posix-functions/iswlower.texi: Update.
4212         * doc/posix-functions/iswprint.texi: Update.
4213         * doc/posix-functions/iswpunct.texi: Update.
4214         * doc/posix-functions/iswspace.texi: Update.
4215         * doc/posix-functions/iswupper.texi: Update.
4216         * doc/posix-functions/iswxdigit.texi: Update.
4217         * doc/posix-functions/towlower.texi: Update.
4218         * doc/posix-functions/towupper.texi: Update.
4219         * NEWS: Mention the change.
4220         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
4221         * modules/mbchar (Dependencies): Likewise.
4222         * modules/mbswidth (Dependencies): Likewise.
4223         * modules/quotearg (Dependencies): Likewise.
4224         * modules/regex (Dependencies): Likewise.
4225         * modules/wcscasecmp (Dependencies): Likewise.
4226         * modules/wcsncasecmp (Dependencies): Likewise.
4227         * modules/wcwidth (Dependencies): Likewise.
4228
4229 2011-02-06  Bruno Haible  <bruno@clisp.org>
4230
4231         New module 'wcswidth'.
4232         * modules/wcswidth: New file.
4233         * lib/wchar.in.h (wcswidth): New declaration.
4234         * lib/wcswidth.c: New file.
4235         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
4236         * m4/wcswidth.m4: New file.
4237         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
4238         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
4239         REPLACE_WCSWIDTH.
4240         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
4241         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
4242         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
4243         * doc/posix-functions/wcswidth.texi: Mention the new module.
4244
4245 2011-02-06  Bruno Haible  <bruno@clisp.org>
4246
4247         New module 'wcstok'.
4248         * modules/wcstok: New file.
4249         * lib/wchar.in.h (wcstok): New declaration.
4250         * lib/wcstok.c: New file.
4251         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
4252         * m4/wcstok.m4: New file.
4253         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
4254         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
4255         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
4256         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
4257         * doc/posix-functions/wcstok.texi: Mention the new module.
4258
4259 2011-02-06  Bruno Haible  <bruno@clisp.org>
4260
4261         New module 'wcsstr'.
4262         * modules/wcsstr: New file.
4263         * lib/wchar.in.h (wcsstr): New declaration.
4264         * lib/wcsstr.c: New file.
4265         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
4266         * m4/wcsstr.m4: New file.
4267         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
4268         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
4269         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
4270         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
4271         * doc/posix-functions/wcsstr.texi: Mention the new module.
4272
4273 2011-02-06  Bruno Haible  <bruno@clisp.org>
4274
4275         New module 'wcspbrk'.
4276         * modules/wcspbrk: New file.
4277         * lib/wchar.in.h (wcspbrk): New declaration.
4278         * lib/wcspbrk.c: New file.
4279         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
4280         * m4/wcspbrk.m4: New file.
4281         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
4282         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
4283         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
4284         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
4285         * doc/posix-functions/wcspbrk.texi: Mention the new module.
4286
4287 2011-02-06  Bruno Haible  <bruno@clisp.org>
4288
4289         New module 'wcsspn'.
4290         * modules/wcsspn: New file.
4291         * lib/wchar.in.h (wcsspn): New declaration.
4292         * lib/wcsspn.c: New file.
4293         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
4294         * m4/wcsspn.m4: New file.
4295         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
4296         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
4297         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
4298         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
4299         * doc/posix-functions/wcsspn.texi: Mention the new module.
4300
4301 2011-02-06  Bruno Haible  <bruno@clisp.org>
4302
4303         New module 'wcscspn'.
4304         * modules/wcscspn: New file.
4305         * lib/wchar.in.h (wcscspn): New declaration.
4306         * lib/wcscspn.c: New file.
4307         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
4308         * m4/wcscspn.m4: New file.
4309         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
4310         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
4311         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
4312         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
4313         * doc/posix-functions/wcscspn.texi: Mention the new module.
4314
4315 2011-02-06  Bruno Haible  <bruno@clisp.org>
4316
4317         New module 'wcsrchr'.
4318         * modules/wcsrchr: New file.
4319         * lib/wchar.in.h (wcsrchr): New declaration.
4320         * lib/wcsrchr.c: New file.
4321         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
4322         * m4/wcsrchr.m4: New file.
4323         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
4324         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
4325         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
4326         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
4327         * doc/posix-functions/wcsrchr.texi: Mention the new module.
4328
4329 2011-02-06  Bruno Haible  <bruno@clisp.org>
4330
4331         New module 'wcschr'.
4332         * modules/wcschr: New file.
4333         * lib/wchar.in.h (wcschr): New declaration.
4334         * lib/wcschr.c: New file.
4335         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
4336         * m4/wcschr.m4: New file.
4337         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
4338         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
4339         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
4340         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
4341         * doc/posix-functions/wcschr.texi: Mention the new module.
4342
4343 2011-02-06  Bruno Haible  <bruno@clisp.org>
4344
4345         New module 'wcsdup'.
4346         * modules/wcsdup: New file.
4347         * lib/wchar.in.h (wcsdup): New declaration.
4348         * lib/wcsdup.c: New file.
4349         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
4350         * m4/wcsdup.m4: New file.
4351         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
4352         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
4353         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
4354         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
4355         * doc/posix-functions/wcsdup.texi: Mention the new module.
4356
4357 2011-02-06  Bruno Haible  <bruno@clisp.org>
4358
4359         New module 'wcsxfrm'.
4360         * modules/wcsxfrm: New file.
4361         * lib/wchar.in.h (wcsxfrm): New declaration.
4362         * lib/wcsxfrm.c: New file.
4363         * lib/wcsxfrm-impl.h: New file.
4364         * m4/wcsxfrm.m4: New file.
4365         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
4366         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
4367         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
4368         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
4369         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
4370
4371 2011-02-06  Bruno Haible  <bruno@clisp.org>
4372
4373         New module 'wcscoll'.
4374         * modules/wcscoll: New file.
4375         * lib/wchar.in.h (wcscoll): New declaration.
4376         * lib/wcscoll.c: New file.
4377         * lib/wcscoll-impl.h: New file.
4378         * m4/wcscoll.m4: New file.
4379         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
4380         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
4381         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
4382         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
4383         * doc/posix-functions/wcscoll.texi: Mention the new module.
4384
4385 2011-02-06  Bruno Haible  <bruno@clisp.org>
4386
4387         New module 'wcsncasecmp'.
4388         * modules/wcsncasecmp: New file.
4389         * lib/wchar.in.h (wcsncasecmp): New declaration.
4390         * lib/wcsncasecmp.c: New file.
4391         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
4392         * m4/wcsncasecmp.m4: New file.
4393         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
4394         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
4395         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
4396         HAVE_WCSNCASECMP.
4397         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
4398         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
4399
4400 2011-02-06  Bruno Haible  <bruno@clisp.org>
4401
4402         New module 'wcscasecmp'.
4403         * modules/wcscasecmp: New file.
4404         * lib/wchar.in.h (wcscasecmp): New declaration.
4405         * lib/wcscasecmp.c: New file.
4406         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
4407         * m4/wcscasecmp.m4: New file.
4408         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
4409         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
4410         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
4411         HAVE_WCSCASECMP.
4412         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
4413         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
4414
4415 2011-02-05  Bruno Haible  <bruno@clisp.org>
4416
4417         New module 'wcsncmp'.
4418         * modules/wcsncmp: New file.
4419         * lib/wchar.in.h (wcsncmp): New declaration.
4420         * lib/wcsncmp.c: New file.
4421         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
4422         * m4/wcsncmp.m4: New file.
4423         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
4424         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
4425         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
4426         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
4427         * doc/posix-functions/wcsncmp.texi: Mention the new module.
4428
4429 2011-02-05  Bruno Haible  <bruno@clisp.org>
4430
4431         New module 'wcscmp'.
4432         * modules/wcscmp: New file.
4433         * lib/wchar.in.h (wcscmp): New declaration.
4434         * lib/wcscmp.c: New file.
4435         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
4436         * m4/wcscmp.m4: New file.
4437         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
4438         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
4439         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
4440         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
4441         * doc/posix-functions/wcscmp.texi: Mention the new module.
4442
4443 2011-02-05  Bruno Haible  <bruno@clisp.org>
4444
4445         New module 'wcsncat'.
4446         * modules/wcsncat: New file.
4447         * lib/wchar.in.h (wcsncat): New declaration.
4448         * lib/wcsncat.c: New file.
4449         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
4450         * m4/wcsncat.m4: New file.
4451         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
4452         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
4453         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
4454         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
4455         * doc/posix-functions/wcsncat.texi: Mention the new module.
4456
4457 2011-02-05  Bruno Haible  <bruno@clisp.org>
4458
4459         New module 'wcscat'.
4460         * modules/wcscat: New file.
4461         * lib/wchar.in.h (wcscat): New declaration.
4462         * lib/wcscat.c: New file.
4463         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
4464         * m4/wcscat.m4: New file.
4465         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
4466         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
4467         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
4468         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
4469         * doc/posix-functions/wcscat.texi: Mention the new module.
4470
4471 2011-02-05  Bruno Haible  <bruno@clisp.org>
4472
4473         New module 'wcpncpy'.
4474         * modules/wcpncpy: New file.
4475         * lib/wchar.in.h (wcpncpy): New declaration.
4476         * lib/wcpncpy.c: New file.
4477         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
4478         * m4/wcpncpy.m4: New file.
4479         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
4480         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
4481         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
4482         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
4483         * doc/posix-functions/wcpncpy.texi: Mention the new module.
4484
4485 2011-02-05  Bruno Haible  <bruno@clisp.org>
4486
4487         New module 'wcsncpy'.
4488         * modules/wcsncpy: New file.
4489         * lib/wchar.in.h (wcsncpy): New declaration.
4490         * lib/wcsncpy.c: New file.
4491         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
4492         * m4/wcsncpy.m4: New file.
4493         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
4494         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
4495         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
4496         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
4497         * doc/posix-functions/wcsncpy.texi: Mention the new module.
4498
4499 2011-02-05  Bruno Haible  <bruno@clisp.org>
4500
4501         New module 'wcpcpy'.
4502         * modules/wcpcpy: New file.
4503         * lib/wchar.in.h (wcpcpy): New declaration.
4504         * lib/wcpcpy.c: New file.
4505         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
4506         * m4/wcpcpy.m4: New file.
4507         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
4508         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
4509         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
4510         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
4511         * doc/posix-functions/wcpcpy.texi: Mention the new module.
4512
4513 2011-02-05  Bruno Haible  <bruno@clisp.org>
4514
4515         New module 'wcscpy'.
4516         * modules/wcscpy: New file.
4517         * lib/wchar.in.h (wcscpy): New declaration.
4518         * lib/wcscpy.c: New file.
4519         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
4520         * m4/wcscpy.m4: New file.
4521         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
4522         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
4523         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
4524         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
4525         * doc/posix-functions/wcscpy.texi: Mention the new module.
4526
4527 2011-02-05  Bruno Haible  <bruno@clisp.org>
4528
4529         New module 'wcsnlen'.
4530         * modules/wcsnlen: New file.
4531         * lib/wchar.in.h (wcsnlen): New declaration.
4532         * lib/wcsnlen.c: New file.
4533         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
4534         * m4/wcsnlen.m4: New file.
4535         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
4536         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
4537         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
4538         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
4539         * doc/posix-functions/wcsnlen.texi: Mention the new module.
4540
4541 2011-02-05  Bruno Haible  <bruno@clisp.org>
4542
4543         New module 'wcslen'.
4544         * modules/wcslen: New file.
4545         * lib/wchar.in.h (wcslen): New declaration.
4546         * lib/wcslen.c: New file.
4547         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
4548         * m4/wcslen.m4: New file.
4549         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
4550         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
4551         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
4552         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
4553         * doc/posix-functions/wcslen.texi: Mention the new module.
4554
4555 2011-02-05  Bruno Haible  <bruno@clisp.org>
4556
4557         New module 'wmemset'.
4558         * modules/wmemset: New file.
4559         * lib/wchar.in.h (wmemset): New declaration.
4560         * lib/wmemset.c: New file.
4561         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
4562         * m4/wmemset.m4: New file.
4563         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
4564         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
4565         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
4566         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
4567         * doc/posix-functions/wmemset.texi: Mention the new module.
4568
4569 2011-02-05  Bruno Haible  <bruno@clisp.org>
4570
4571         New module 'wmemmove'.
4572         * modules/wmemmove: New file.
4573         * lib/wchar.in.h (wmemmove): New declaration.
4574         * lib/wmemmove.c: New file.
4575         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
4576         * m4/wmemmove.m4: New file.
4577         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
4578         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
4579         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
4580         HAVE_WMEMMOVE.
4581         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
4582         * doc/posix-functions/wmemmove.texi: Mention the new module.
4583
4584 2011-02-05  Bruno Haible  <bruno@clisp.org>
4585
4586         New module 'wmemcpy'.
4587         * modules/wmemcpy: New file.
4588         * lib/wchar.in.h (wmemcpy): New declaration.
4589         * lib/wmemcpy.c: New file.
4590         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
4591         * m4/wmemcpy.m4: New file.
4592         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
4593         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
4594         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
4595         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
4596         * doc/posix-functions/wmemcpy.texi: Mention the new module.
4597
4598 2011-02-05  Bruno Haible  <bruno@clisp.org>
4599
4600         New module 'wmemcmp'.
4601         * modules/wmemcmp: New file.
4602         * lib/wchar.in.h (wmemcmp): New declaration.
4603         * lib/wmemcmp.c: New file.
4604         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
4605         * m4/wmemcmp.m4: New file.
4606         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
4607         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
4608         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
4609         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
4610         * doc/posix-functions/wmemcmp.texi: Mention the new module.
4611
4612 2011-02-07  Jim Meyering  <meyering@redhat.com>
4613
4614         di-set, ino-map: new modules, from coreutils
4615         * lib/di-set.c: New file.
4616         * lib/di-set.h: Likewise.
4617         * lib/ino-map.c: Likewise.
4618         * lib/ino-map.h: Likewise.
4619         * modules/di-set: Likewise.
4620         * modules/di-set-tests: Likewise.
4621         * modules/ino-map: Likewise.
4622         * modules/ino-map-tests: Likewise.
4623         * tests/test-di-set.c: Likewise.
4624         * tests/test-ino-map.c: Likewise.
4625
4626 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
4627
4628         getloadavg: merge minor changes from Emacs
4629
4630         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
4631         (getloadavg): Use memset, not bzero.
4632
4633         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
4634         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
4635         clash (bug#86).
4636
4637 2010-11-14  Bruno Haible  <bruno@clisp.org>
4638
4639         Allow multiple gnulib generated replacements to coexist.
4640         * lib/getopt.in.h (struct option): Avoid identical redefinition.
4641         * lib/inttypes.in.h (imaxdiv_t): Likewise.
4642         * lib/langinfo.in.h (nl_item): Likewise.
4643         * lib/math.in.h (_NaN, NAN): Likewise.
4644         * lib/netdb.in.h (struct addrinfo): Likewise.
4645         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
4646         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
4647         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
4648         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
4649         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
4650         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
4651         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
4652         pthread_mutexattr_init, pthread_mutexattr_settype,
4653         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
4654         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
4655         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
4656         pthread_spin_trylock, pthread_spin_unlock): Likewise.
4657         * lib/sched.in.h (struct sched_param): Likewise.
4658         * lib/se-selinux.in.h (security_class_t, security_context_t,
4659         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
4660         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
4661         lsetfilecon, fsetfilecon, security_check_context,
4662         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
4663         Likewise.
4664         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
4665         Likewise.
4666         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
4667         _gl_function_taking_int_returning_void_t, union sigval,
4668         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
4669         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
4670         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
4671         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
4672         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
4673         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
4674         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
4675         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
4676         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
4677         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
4678         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
4679         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
4680         socklen_t, rpl_fd_isset): Likewise.
4681         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
4682         * lib/sys_time.in.h (struct timeval): Likewise.
4683         * lib/sys_times.in.h (struct tms): Likewise.
4684         * lib/sys_utsname.in.h (struct utsname):
4685         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
4686         * lib/unistd.in.h (getpagesize): Likewise.
4687         * lib/wchar.in.h (mbstate_t): Likewise.
4688         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
4689         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
4690         towlower, towupper): Likewise.
4691         Reported by Sam Steingold <sds@gnu.org>.
4692
4693 2011-02-05  Eric Blake  <eblake@redhat.com>
4694
4695         unsetenv: work around Haiku issues
4696         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
4697         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
4698
4699 2010-12-30  Bruce Korb  <bkorb@gnu.org>
4700
4701         libposix: avoid calling error() within libposix
4702         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
4703         is defined.
4704
4705 2011-02-05  Eric Blake  <eblake@redhat.com>
4706
4707         strerror_r-posix: port to cygwin
4708         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
4709         implementation.
4710         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
4711         * tests/test-strerror_r.c (main): Fix test.
4712         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
4713         issue.
4714
4715 2011-02-05  Bruno Haible  <bruno@clisp.org>
4716
4717         New module 'wmemchr'.
4718         * modules/wmemchr: New file.
4719         * lib/wchar.in.h (wmemchr): New declaration.
4720         * lib/wmemchr.c: New file.
4721         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
4722         * m4/wmemchr.m4: New file.
4723         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
4724         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
4725         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
4726         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
4727         * doc/posix-functions/wmemchr.texi: Mention the new module.
4728
4729 2011-02-04  Eric Blake  <eblake@redhat.com>
4730
4731         fdopendir: detect FreeBSD bug
4732         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
4733         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
4734
4735 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
4736
4737         stdbool: do not define HAVE_STDBOOL_H
4738         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
4739         AC_HEADER_STDBOOL.  All uses changed.  Do not define
4740         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
4741         imported from the latest Autoconf git.  It was motivated by Emacs,
4742         which uses gnulib but does not need HAVE_STDBOOL_H.
4743
4744 2011-02-04  Bruno Haible  <bruno@clisp.org>
4745
4746         wcsnrtombs: Prepare for new module wwcsnrtombs.
4747         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
4748         * lib/wcsnrtombs.c: Include it.
4749         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
4750
4751         wcsrtombs: Prepare for new module wwcsrtombs.
4752         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
4753         * lib/wcsrtombs.c: Include it.
4754         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
4755
4756         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
4757         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
4758         * lib/mbsnrtowcs.c: Include it.
4759         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
4760
4761         mbsrtowcs: Prepare for new module mbsrtowwcs.
4762         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
4763         * lib/mbsrtowcs.c: Include it.
4764         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
4765
4766 2011-02-04  Bruno Haible  <bruno@clisp.org>
4767
4768         vasnprintf: Reduce use of malloc for small format strings.
4769         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
4770         (arguments): Add room for the first 7 arguments.
4771         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
4772         (char_directives, u8_directives, u16_directives, u32_directives): Add
4773         room for the first 7 directives.
4774         * lib/printf-parse.c: Include <string.h>.
4775         (PRINTF_PARSE): Change memory handling code so that it uses the first
4776         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
4777         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
4778         Reported by Pádraig Brady <P@draigbrady.com>.
4779
4780 2011-01-31  Eric Blake  <eblake@redhat.com>
4781
4782         dup2: work around Haiku bug
4783         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
4784         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
4785         * doc/posix-functions/dup2.texi (dup2): Document the bug.
4786         * tests/test-dup2.c (main): Enhance test.
4787
4788 2011-01-31  Simon Josefsson  <simon@josefsson.org>
4789
4790         doc: off_t is not available in eglibc 2.11.2 stdio.h.
4791         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
4792         declared by eglibc 2.11.2.
4793         * lib/stdio.in.h: Likewise.
4794
4795 2011-01-31  Eric Blake  <eblake@redhat.com>
4796
4797         ignore-value: add missing test dependency
4798         * tests/test-ignore-value.c: Revert previous change; stdio.h
4799         provides off_t.
4800         * modules/ignore-value-tests (Depends-on): Add missing dependency.
4801
4802 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
4803
4804         mktime: clarify long_int width checking
4805         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
4806         the top level, to make it clearer that the assumption about
4807         long_int width is being checked.  See
4808         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
4809
4810 2011-01-30  Simon Josefsson  <simon@josefsson.org>
4811
4812         ignore-value: Fix self-test.
4813         * tests/test-ignore-value.c: Include sys/types.h for off_t.
4814
4815 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
4816
4817         TYPE_MAXIMUM: avoid theoretically undefined behavior
4818         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
4819         negative number, which the C Standard says has undefined behavior.
4820         In practice this is not a problem, but might as well do it by the book.
4821         Reported by Rich Felker and Eric Blake; see
4822         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
4823         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
4824         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
4825         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
4826         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
4827         * m4/stdint.m4 (gl_STDINT_H): Likewise.
4828         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
4829
4830         mktime: #undef mktime before #defining it
4831         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
4832
4833         mktime: systematically normalize tm_isdst comparisons
4834         * lib/mktime.c (isdst_differ): New function.
4835         (__mktime_internal): Use it systematically for all isdst comparisons.
4836         This completes the fix for libc BZ #6723, and removes the need for
4837         normalizing tm_isdst.  See
4838         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
4839         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
4840
4841         mktime: fix some integer overflow issues and sidestep the rest
4842
4843         This was prompted by a bug report by Benjamin Lindner for MinGW
4844         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
4845         His bug is due to signed integer overflow (0 - INT_MIN), and I
4846         I scanned through mktime.c looking for other integer overflow
4847         problems, fixing all the bugs I found.
4848
4849         Although the C Standard says the resulting code is still not safe
4850         in the presence of integer overflow, in practice it should be good
4851         enough for all real-world two's-complement implementations, except
4852         for debugging environments that deliberately trap on integer
4853         overflow (e.g., gcc -ftrapv).
4854
4855         * lib/mktime.c (WRAPV): New macro.
4856         (SHR): Also check that long_int and time_t shift right in the
4857         usual way, before using the fast-but-unportable method.
4858         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
4859         used.  The code already assumed two's complement, so there's
4860         no need to test for alternatives.  All uses removed.
4861         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
4862         the C standard.  Problem reported by Rich Felker in
4863         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
4864         (twos_complement_arithmetic): Also check long_int and time_t.
4865         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
4866         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
4867         (__mktime_internal): Avoid integer overflow with unary subtraction
4868         in two instances where -1 - X is an adequate replacement for -X,
4869         since the calculations are approximate.
4870
4871 2011-01-29  Eric Blake  <eblake@redhat.com>
4872
4873         mktime: avoid infinite loop
4874         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
4875         type; behavior is still undefined but portable to all known targets.
4876         Reported by Rich Felker.
4877
4878 2011-01-29  Simon Josefsson  <simon@josefsson.org>
4879
4880         rename, unlink, same-inode: Relicense.
4881         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
4882         * modules/unlink (License): Likewise.
4883         * modules/same-inode (License): Likewise.
4884
4885 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4886
4887         mktime: avoid problems on NetBSD 5 / i386
4888         * lib/mktime.c (long_int): New type.  This works around a problem
4889         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
4890         but time_t is 64 bits, and where I expect the existing code is
4891         wrong in some cases.
4892         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
4893         (ydhms_diff): Bring back the compile-time check for wide-enough
4894         year and yday.
4895
4896         mktime: fix misspelling in comment
4897         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
4898         This merges all recent glibc changes of importance.
4899
4900 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4901
4902         move-if-change: cope with concurrent mv of identical file.
4903         * build-aux/move-if-change (CMPPROG): Accept environment
4904         variable as an override for `cmp'.
4905         (usage): Document CMPPROG.
4906         Adjust comparison to drop stdout.  Cope with failure of mv if
4907         the target file exists and is identical to the source, for
4908         parallel builds.
4909         Report from H.J. Lu against binutils in PR binutils/12283.
4910
4911 2011-01-28  Bruce Korb  <bkorb@gnu.org>
4912
4913         * users.txt: Mention sharutils.
4914
4915 2011-01-28  Simon Josefsson  <simon@josefsson.org>
4916
4917         * users.txt: Mention OATH Toolkit.
4918
4919 2011-01-27  Bruno Haible  <bruno@clisp.org>
4920
4921         Prepare for supporting FreeBSD 10.
4922         * build-aux/config.libpath: Remove handling of freebsd1*.
4923
4924 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
4925
4926         Prepare for supporting FreeBSD 10.
4927         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
4928         match FreeBSD 10.0.
4929
4930 2011-01-27  Bruno Haible  <bruno@clisp.org>
4931
4932         vma-iter, get-rusage-as: Add OpenBSD support.
4933         * modules/vma-iter (configure.ac): Test for mquery.
4934         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
4935         * lib/vma-iter.c: Include <sys/mman.h>.
4936         (vma_iterate): Add an implementation based on mquery().
4937         * lib/resource-ext.h (get_rusage_as): Update comments.
4938         * lib/get-rusage-as.c: Likewise.
4939         * lib/get-rusage-data.c: Likewise.
4940
4941 2011-01-26  Karl Berry  <karl@gnu.org>
4942
4943         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
4944         variables to make it easier to override the makeinfo program used.
4945
4946 2011-01-26  Eric Blake  <eblake@redhat.com>
4947
4948         fcntl: work around Haiku F_DUPFD bugs
4949         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
4950         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
4951         cloexec bit on duplication.
4952         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
4953
4954 2011-01-26  Bruno Haible  <bruno@clisp.org>
4955
4956         Enable memory leak tests on AIX.
4957         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
4958         * tests/test-fprintf-posix3.c (main): Likewise.
4959
4960 2011-01-26  Bruno Haible  <bruno@clisp.org>
4961
4962         Tests for module 'get-rusage-data'.
4963         * modules/get-rusage-data-tests: New file.
4964         * tests/test-get-rusage-data.c: New file.
4965
4966         New module 'get-rusage-data'.
4967         * lib/resource-ext.h (get_rusage_data): New declaration.
4968         * lib/get-rusage-data.c: New file.
4969         * modules/get-rusage-data: New file.
4970
4971 2011-01-25  Bruno Haible  <bruno@clisp.org>
4972
4973         get-rusage-as: Allow for easier testing.
4974         * lib/resource-ext.h (get_rusage_as): Add comment.
4975         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
4976         (main): New function for interactive testing.
4977
4978 2011-01-25  Bruno Haible  <bruno@clisp.org>
4979
4980         vma-iter: Treat Haiku like BeOS.
4981         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
4982         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
4983
4984 2011-01-25  Eric Blake  <eblake@redhat.com>
4985
4986         c-stack: fix regression on cygwin when libsigsegv is present
4987         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
4988
4989 2011-01-24  Bruno Haible  <bruno@clisp.org>
4990
4991         vma-iter: Avoid empty intervals.
4992         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
4993         on an empty interval.
4994
4995 2011-01-24  Jim Meyering  <meyering@redhat.com>
4996
4997         u64: remove unnecessary #include
4998         * lib/u64.h: Don't include <stddef.h>.  It was not used.
4999
5000 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
5001
5002         Allow the user to avoid the HAVE_RAW_DECL_* macros.
5003         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
5004
5005 2011-01-23  Bruno Haible  <bruno@clisp.org>
5006
5007         New module 'vma-iter'.
5008         * lib/vma-iter.h: New file.
5009         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
5010         * modules/vma-iter: New file.
5011         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
5012         for get_rusage_as_via_iterator.
5013         (vma_iterate_callback): New function.
5014         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
5015         * modules/get-rusage-as (Depends-on): Add vma-iter.
5016
5017 2011-01-23  Bruno Haible  <bruno@clisp.org>
5018
5019         uninorm: Tweak includes.
5020         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
5021         Reported by Jim Meyering.
5022
5023 2011-01-23  Bruno Haible  <bruno@clisp.org>
5024
5025         get-rusage-as: Improve on NetBSD.
5026         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
5027         /proc, like on FreeBSD.
5028
5029 2011-01-23  Jim Meyering  <meyering@redhat.com>
5030
5031         xreadlink.h: remove unnecessary #include
5032         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
5033
5034         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
5035         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
5036
5037 2011-01-23  Bruno Haible  <bruno@clisp.org>
5038
5039         get-rusage-as: Fix bug.
5040         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
5041         original limit when aborting the first loop.
5042
5043 2011-01-23  Bruno Haible  <bruno@clisp.org>
5044
5045         wctype: Ensure valid C syntax.
5046         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
5047         unconditionally, instead of gl_NEXT_HEADERS conditionally.
5048
5049 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
5050
5051         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
5052         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
5053         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
5054         as they are needed only for configure's test case.
5055         This removes two unnecessary symbols from config.h.
5056
5057         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
5058         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
5059         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
5060         AC_CHECK_HEADERS_ONCE on a header that we also invoke
5061         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
5062         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
5063         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
5064         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
5065         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
5066         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5067         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
5068         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5069         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
5070         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5071         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
5072         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5073         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
5074         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
5075
5076 2011-01-21  Eric Blake  <eblake@redhat.com>
5077
5078         maintainer-makefile: work with older git for submodule check
5079         * top/maint.mk (public-submodule-commit): Rewrite to avoid
5080         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
5081         Reported by Matthias Bolte.
5082
5083         bootstrap: minor portability fixes
5084         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
5085         (usage): Omit leading capital and trailing . on help phrases, per
5086         GNU Coding Standards.
5087         (check_versions, top level): Prefix messages with script name.
5088
5089 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
5090
5091         bootstrap: support --no-git option
5092         * build-aux/bootstrap: Add --no-git option, to be used when
5093         --gnulib-srcdir points to the exact desired checkout.
5094
5095 2011-01-21  Eric Blake  <eblake@redhat.com>
5096
5097         strerror_r-posix: work with glibc 2.13
5098         * lib/strerror_r.c (strerror_r): Fix return type.
5099
5100 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5101             Bruno Haible  <bruno@clisp.org>
5102
5103         uN_strstr: New unit tests.
5104         * modules/unistr/u8-strstr-tests: New file.
5105         * modules/unistr/u16-strstr-tests: New file.
5106         * modules/unistr/u32-strstr-tests: New file.
5107         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
5108         * tests/unistr/test-u8-strstr.c: New file.
5109         * tests/unistr/test-u16-strstr.c: New file.
5110         * tests/unistr/test-u32-strstr.c: New file.
5111
5112 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5113             Bruno Haible  <bruno@clisp.org>
5114
5115         Make uN_strstr functions O(n) worst-case.
5116         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
5117         16-bit and 32-bit unit cases, use the unibyte algorithm from
5118         lib/mbsstr.c.
5119         * lib/unistr/u8-strstr.c: Include <string.h>.
5120         (UNIT_IS_UINT8_T): New macro.
5121         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
5122         (U_STRLEN, U_STRNLEN): New macros.
5123         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
5124         (U_STRLEN, U_STRNLEN): New macros.
5125         * modules/unistr/u8-strstr (Depends-on): Add strstr.
5126         (configure.ac): Update required libunistring version.
5127         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
5128         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
5129         malloca.
5130         (configure.ac): Update required libunistring version.
5131         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
5132         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
5133         malloca.
5134         (configure.ac): Update required libunistring version.
5135
5136 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5137             Bruno Haible  <bruno@clisp.org>
5138
5139         Prepare for faster uN_strstr functions.
5140         * lib/str-kmp.h: Support definable UNITs.
5141         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
5142         needle_len argument.
5143         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
5144         * lib/mbscasestr.c (mbscasestr): Likewise.
5145
5146 2011-01-21  Pádraig Brady <P@draigBrady.com>
5147
5148         malloca-tests: make faster by unsetting MALLOC_PERTURB_
5149         * tests/test-malloca.c (main): Unset the environment variable
5150         to greatly speed up the test.
5151         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
5152         * modules/malloca-tests: Depend on unsetenv.
5153
5154 2011-01-21  Pádraig Brady <P@draigBrady.com>
5155
5156         ignore-value: remove stdint dependency
5157         * lib/ignore-value.h: Remove <stdint.h>
5158         * modules/ignore-value: Remove stdint dependency.
5159
5160 2011-01-21  Jim Meyering  <meyering@redhat.com>
5161
5162         maint.mk: adjust variable name to be consistent with other gl_ vars
5163         * top/maint.mk (gl_public_submodule_commit): Rename the variable
5164         to be lower case.
5165
5166 2011-01-20  Jim Meyering  <meyering@redhat.com>
5167
5168         maint.mk: make "check" depend on public-submodule-commit by default
5169         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
5170
5171 2011-01-20  Bruno Haible  <bruno@clisp.org>
5172
5173         mbfile, mbiter: Complete change from 2008-12-21.
5174         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
5175         * m4/mbiter.m4 (gl_MBITER): Likewise.
5176
5177 2011-01-20  Jim Meyering  <meyering@redhat.com>
5178
5179         init.sh: insert space between each function name and "()"
5180         * tests/init.sh: Make it a little easier to see that a function's
5181         name is "warn_", and not "warn" when looking at the first part of
5182         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
5183
5184 2011-01-20  Jim Meyering  <meyering@redhat.com>
5185
5186         mountlist: clean up code formatting
5187         * lib/mountlist.c (read_file_system_list): Split a long line,
5188         correct bracing style, use NULL in place of "(struct statfs *)0",
5189         don't parenthesize return value, add spaces around "=" and after
5190         ";-in-for-stmt".
5191
5192 2011-01-14  Markus Duft <mduft@gentoo.org>
5193
5194         mountlist: add support for Interix
5195         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
5196         Apply statvfs to all entries of /dev/fs.
5197         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
5198         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
5199
5200 2011-01-20  Jim Meyering  <meyering@redhat.com>
5201
5202         maint.mk: improve the public-submodule-commit rule
5203         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
5204         to suppress printing of its commands... unless V=1.
5205         Add git submodule's --quiet option to suppress printing of e.g.,
5206         "Entering gnulib" output.
5207         "cd" into $(srcdir) before running git submodule.
5208
5209 2011-01-20  Bruno Haible  <bruno@clisp.org>
5210
5211         include_next: Fix bug introduced on 2011-01-18.
5212         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
5213         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
5214         ac_cv_header_... variable if the second argument is not 'check'.
5215         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
5216         gl_NEXT_HEADERS_INTERNAL.
5217
5218 2011-01-20  Bruno Haible  <bruno@clisp.org>
5219
5220         Allow the user to avoid the GNULIB_TEST_* macros.
5221         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
5222         Suggested by Paul Eggert.
5223
5224 2011-01-14  Jim Meyering  <meyering@redhat.com>
5225
5226         bootstrap: avoid failure when there is no .gitmodules file
5227         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
5228         has been assigned to, even when its value is the empty string.
5229         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
5230         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
5231         Reported by John W. Eaton <jwe@gnu.org>.
5232
5233 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
5234
5235         assume <ctype.h>, ..., <time.h> exist
5236         For years gnulib has been assuming the existence of the headers
5237         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
5238         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
5239         them, since they don't appear to be needed.
5240         * README (Portability guidelines): Document this.
5241         * lib/flock.c: Assume <fcntl.h> exists.
5242         * lib/regex_internal.h: Assume <locale.h> exists.
5243         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
5244         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
5245         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
5246         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
5247         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
5248         * m4/regex.m4 (gl_REGEX): Likewise.
5249         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
5250         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
5251         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
5252         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
5253         * tests/test-argp.c: Likewise.
5254         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
5255
5256         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
5257         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
5258         AA_APPLE_UNIVERSAL_BUILD.  See
5259         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
5260         * NEWS: Document this.
5261
5262 2011-01-19  Eric Blake  <eblake@redhat.com>
5263
5264         c-stack: assume stack overflow if SA_SIGINFO unsupported
5265         * lib/c-stack.c (SIGACTION_WORKS): Rename...
5266         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
5267         sigaction will work.
5268         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
5269         behavior match Linux.
5270         * tests/test-c-stack.c (main): Prefer NULL for pointers.
5271
5272         stdbool-tests: accomodate Haiku
5273         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
5274
5275         binary-io: fix O_TEXT on Haiku
5276         * modules/binary-io (Depends-on): Add fcntl-h.
5277         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
5278         than blindly undefining O_TEXT.
5279         Reported by Scott McCreary.
5280
5281 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
5282
5283         include_next: do not check for standard headers like stddef.h
5284
5285         I found this problem when modifying Emacs to use gnulib.
5286         I noticed that it added HAVE_STDDEF_H to config.h, even though
5287         gnulib always assumes <stddef.h> exists as per README and this
5288         symbol is unnecessary.
5289         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
5290         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
5291         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
5292         faster for headers like stddef.h that are known to exist.
5293         (gl_CHECK_NEXT_HEADERS): Use it.
5294         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
5295         rather than gl_CHECK_NEXT_HEADERS.
5296         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
5297         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
5298
5299 2011-01-18  Eric Blake  <eblake@redhat.com>
5300
5301         ansi-c++-opt: skip C++ dependency style if C++ is unused
5302         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
5303         tests when we know C++ compilation is not desired.
5304         Reported by Scott McCreary.
5305
5306 2011-01-18  Bruno Haible  <bruno@clisp.org>
5307
5308         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
5309         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
5310         (main): Perform test also when getrlimit and setrlimit don't exist or
5311         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
5312         limiting the address space size using setrlimit, compare the address
5313         space size before and after the the test.
5314         * tests/test-dprintf-posix2.c: Likewise.
5315         * tests/test-fprintf-posix3.sh: Update skip messages.
5316         * tests/test-dprintf-posix2.sh: Likewise.
5317         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
5318         * modules/dprintf-posix-tests (Depends-on): Likewise.
5319         Reported by Bruce Korb <bkorb@gnu.org> and
5320         Gary V. Vaughan <gary@gnu.org>.
5321
5322 2011-01-18  Bruno Haible  <bruno@clisp.org>
5323
5324         get-rusage-as: Improvement for Cygwin.
5325         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
5326         areas that are merely reserved.
5327
5328 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
5329
5330         strftime: remove dependencies on multibyte modules
5331
5332         strftime depended on mbrlen, mbsinit, and wchar, but these modules
5333         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
5334         only if __osf__ is defined, and I suspect OSF doesn't need these
5335         other modules.  If my guess is wrong, we'll need to come up with a
5336         variant of strftime that doesn't need the multibyte modules.
5337
5338         I discovered this problem when attempting modify Emacs to use the
5339         strftime module.  With the previous gnulib, this caused Emacs to
5340         need 31 new files, ranging from lib/config.charset to
5341         m4/wint_t.m4.  This was overkill and I expect would be offputting
5342         to the Emacs maintainers.  After this change, only 6 new files are
5343         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
5344         stdbool.m4, and tm_gmtoff.m4.
5345
5346         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
5347         Suggested by Bruno Haible in
5348         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
5349         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
5350         and do not check for wchar.h.
5351         * modules/strftime (Files): Remove m4/mbstate_t.m4.
5352         (Depends-on): Remove mbrlen, mbsinit, wchar.
5353
5354 2011-01-18  Bruno Haible  <bruno@clisp.org>
5355
5356         Tests for module 'get-rusage-as'.
5357         * modules/get-rusage-as-tests: New file.
5358         * tests/test-get-rusage-as.c: New file.
5359
5360         New module 'get-rusage-as'.
5361         * modules/get-rusage-as: New file.
5362         * lib/resource-ext.h: New file.
5363         * lib/get-rusage-as.c: New file.
5364
5365 2011-01-17  Eric Blake  <eblake@redhat.com>
5366
5367         sigaction: relax license from LGPLv3+ to LGPLv2+
5368         * modules/sigaction (License): Relax to LGPLv2+.
5369
5370 2011-01-14  Bruno Haible  <bruno@clisp.org>
5371
5372         filemode: Make function declarations usable in C++ mode.
5373         * lib/filemode.h: Enclose function declarations in extern "C" block.
5374         Reported by John W. Eaton <jwe@gnu.org>.
5375
5376 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
5377
5378         save-cwd: no longer include "xgetcwd.h"
5379         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
5380         This avoids a compilation failure in projects that use save-cwd
5381         without also using the xgetcwd module.
5382
5383 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
5384
5385         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
5386         This is so that a program like Emacs, which needs only dtoastr,
5387         does not have to bother with distributing and compiling ftoastr
5388         and ldtoastr.
5389         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
5390         * modules/dtoastr, modules/ldtoastr: New files.
5391         * modules/ftoastr: Now works just for 'float'.
5392         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
5393         (Makefile.am): Remove ftoastr.h (not needed and no effect),
5394         dtoastr.c, ldtoastr.c.
5395
5396 2011-01-11  Jim Meyering  <meyering@redhat.com>
5397
5398         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
5399         There is no need to work around the lack of the fchdir function,
5400         since gnulib can now provide a replacement when required.
5401         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
5402         * modules/save-cwd (Depends-on): Add fchdir.
5403
5404 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
5405
5406         openat, save-cwd: avoid xmalloc
5407
5408         This removes a direct (but undocumented) dependency of openat on
5409         xalloc, along with an indirect dependency via save-cwd.  It also
5410         removes a dependency of save-cwd on xgetcwd, and thereby
5411         indirectly on xalloc.  This change causes the openat substitute
5412         to fall back on save_cwd when memory is tight, and for save_cwd to
5413         fail instead of dying when memory is tight, but that's good enough.
5414         Problem and initial idea for fix reported by Bastien Roucaries in
5415         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
5416
5417         * lib/openat-proc.c: Include stdlib.h (for malloc), not
5418         xalloc.h (for xmalloc).
5419         (openat_proc_name): Use malloc, not xmalloc.
5420         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
5421         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
5422
5423         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
5424         This avoids heap allocation for file names whose lengths are in
5425         the range 512..1023, with the upper bound increasing to at most
5426         4031 depending on the platform's PATH_MAX.  (We do not want
5427         pathmax.h here as it might supply a non-constant PATH_MAX.)
5428         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
5429         Perhaps they should be moved to malloca.h?
5430         (OPENAT_BUFFER_SIZE): Use them.
5431
5432 2011-01-10  Bruno Haible  <bruno@clisp.org>
5433
5434         doc: Update users.txt.
5435         * users.txt: Add recutils.
5436
5437 2011-01-09  Karl Berry  <karl@gnu.org>
5438
5439         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
5440
5441         * doc/configmake.texi: New file.
5442         * doc/gnulib.texi: Include it.
5443         * modules/configmake: Move documentation from here.
5444
5445 2011-01-09  Bruno Haible  <bruno@clisp.org>
5446
5447         Update to Unicode 6.0.0.
5448         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
5449         (get_lbp): Update for Unicode 6.0.0.
5450         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
5451         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
5452         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
5453         U+11001, U+11038..U+11046. Remove U+06DE.
5454         (uc_width): Fix bounds of planes.
5455         * tests/uniwidth/test-uc_width2.sh: Same updates as in
5456         lib/uniwidth/width.c.
5457         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
5458         trailing whitespace removed.
5459         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
5460         without comments, but with the original copyright notice.
5461         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
5462         * lib/unicase/ignorable.h: Likewise.
5463         * lib/unicase/tocasefold.h: Likewise.
5464         * lib/unicase/tolower.h: Likewise.
5465         * lib/unicase/totitle.h: Likewise.
5466         * lib/unicase/toupper.h: Likewise.
5467         * lib/unictype/bidi_of.h: Likewise.
5468         * lib/unictype/blocks.h: Likewise.
5469         * lib/unictype/categ_C.h: Likewise.
5470         * lib/unictype/categ_Cn.h: Likewise.
5471         * lib/unictype/categ_L.h: Likewise.
5472         * lib/unictype/categ_Ll.h: Likewise.
5473         * lib/unictype/categ_Lm.h: Likewise.
5474         * lib/unictype/categ_Lo.h: Likewise.
5475         * lib/unictype/categ_Lu.h: Likewise.
5476         * lib/unictype/categ_M.h: Likewise.
5477         * lib/unictype/categ_Mc.h: Likewise.
5478         * lib/unictype/categ_Me.h: Likewise.
5479         * lib/unictype/categ_Mn.h: Likewise.
5480         * lib/unictype/categ_N.h: Likewise.
5481         * lib/unictype/categ_Nd.h: Likewise.
5482         * lib/unictype/categ_No.h: Likewise.
5483         * lib/unictype/categ_P.h: Likewise.
5484         * lib/unictype/categ_Po.h: Likewise.
5485         * lib/unictype/categ_S.h: Likewise.
5486         * lib/unictype/categ_Sc.h: Likewise.
5487         * lib/unictype/categ_Sk.h: Likewise.
5488         * lib/unictype/categ_Sm.h: Likewise.
5489         * lib/unictype/categ_So.h: Likewise.
5490         * lib/unictype/categ_of.h: Likewise.
5491         * lib/unictype/combining.h: Likewise.
5492         * lib/unictype/ctype_alnum.h: Likewise.
5493         * lib/unictype/ctype_alpha.h: Likewise.
5494         * lib/unictype/ctype_graph.h: Likewise.
5495         * lib/unictype/ctype_lower.h: Likewise.
5496         * lib/unictype/ctype_print.h: Likewise.
5497         * lib/unictype/ctype_punct.h: Likewise.
5498         * lib/unictype/ctype_upper.h: Likewise.
5499         * lib/unictype/decdigit.h: Likewise.
5500         * lib/unictype/digit.h: Likewise.
5501         * lib/unictype/numeric.h: Likewise.
5502         * lib/unictype/pr_alphabetic.h: Likewise.
5503         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
5504         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
5505         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
5506         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
5507         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
5508         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
5509         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
5510         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
5511         * lib/unictype/pr_case_ignorable.h: Likewise.
5512         * lib/unictype/pr_cased.h: Likewise.
5513         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
5514         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
5515         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
5516         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
5517         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
5518         * lib/unictype/pr_combining.h: Likewise.
5519         * lib/unictype/pr_composite.h: Likewise.
5520         * lib/unictype/pr_currency_symbol.h: Likewise.
5521         * lib/unictype/pr_decimal_digit.h: Likewise.
5522         * lib/unictype/pr_deprecated.h: Likewise.
5523         * lib/unictype/pr_format_control.h: Likewise.
5524         * lib/unictype/pr_grapheme_base.h: Likewise.
5525         * lib/unictype/pr_grapheme_extend.h: Likewise.
5526         * lib/unictype/pr_grapheme_link.h: Likewise.
5527         * lib/unictype/pr_id_continue.h: Likewise.
5528         * lib/unictype/pr_id_start.h: Likewise.
5529         * lib/unictype/pr_ideographic.h: Likewise.
5530         * lib/unictype/pr_lowercase.h: Likewise.
5531         * lib/unictype/pr_math.h: Likewise.
5532         * lib/unictype/pr_numeric.h: Likewise.
5533         * lib/unictype/pr_other_alphabetic.h: Likewise.
5534         * lib/unictype/pr_other_id_continue.h: Likewise.
5535         * lib/unictype/pr_other_math.h: Likewise.
5536         * lib/unictype/pr_punctuation.h: Likewise.
5537         * lib/unictype/pr_sentence_terminal.h: Likewise.
5538         * lib/unictype/pr_terminal_punctuation.h: Likewise.
5539         * lib/unictype/pr_unassigned_code_value.h: Likewise.
5540         * lib/unictype/pr_unified_ideograph.h: Likewise.
5541         * lib/unictype/pr_uppercase.h: Likewise.
5542         * lib/unictype/pr_xid_continue.h: Likewise.
5543         * lib/unictype/pr_xid_start.h: Likewise.
5544         * lib/unictype/scripts.h: Likewise.
5545         * lib/unictype/scripts_byname.gperf: Likewise.
5546         * lib/unictype/sy_java_ident.h: Likewise.
5547         * lib/unigbrk/gbrkprop.h: Likewise.
5548         * lib/unilbrk/lbrkprop1.h: Likewise.
5549         * lib/unilbrk/lbrkprop2.h: Likewise.
5550         * lib/uninorm/decomposition-table2.h: Likewise.
5551         * lib/uniwbrk/wbrkprop.h: Likewise.
5552         * tests/unicase/test-cased.c: Likewise.
5553         * tests/unicase/test-ignorable.c: Likewise.
5554         * tests/unicase/test-uc_tolower.c: Likewise.
5555         * tests/unicase/test-uc_totitle.c: Likewise.
5556         * tests/unicase/test-uc_toupper.c: Likewise.
5557         * tests/unictype/test-categ_C.c: Likewise.
5558         * tests/unictype/test-categ_Cn.c: Likewise.
5559         * tests/unictype/test-categ_L.c: Likewise.
5560         * tests/unictype/test-categ_Ll.c: Likewise.
5561         * tests/unictype/test-categ_Lm.c: Likewise.
5562         * tests/unictype/test-categ_Lo.c: Likewise.
5563         * tests/unictype/test-categ_Lu.c: Likewise.
5564         * tests/unictype/test-categ_M.c: Likewise.
5565         * tests/unictype/test-categ_Mc.c: Likewise.
5566         * tests/unictype/test-categ_Me.c: Likewise.
5567         * tests/unictype/test-categ_Mn.c: Likewise.
5568         * tests/unictype/test-categ_N.c: Likewise.
5569         * tests/unictype/test-categ_Nd.c: Likewise.
5570         * tests/unictype/test-categ_No.c: Likewise.
5571         * tests/unictype/test-categ_P.c: Likewise.
5572         * tests/unictype/test-categ_Po.c: Likewise.
5573         * tests/unictype/test-categ_S.c: Likewise.
5574         * tests/unictype/test-categ_Sc.c: Likewise.
5575         * tests/unictype/test-categ_Sk.c: Likewise.
5576         * tests/unictype/test-categ_Sm.c: Likewise.
5577         * tests/unictype/test-categ_So.c: Likewise.
5578         * tests/unictype/test-ctype_alnum.c: Likewise.
5579         * tests/unictype/test-ctype_alpha.c: Likewise.
5580         * tests/unictype/test-ctype_graph.c: Likewise.
5581         * tests/unictype/test-ctype_lower.c: Likewise.
5582         * tests/unictype/test-ctype_print.c: Likewise.
5583         * tests/unictype/test-ctype_punct.c: Likewise.
5584         * tests/unictype/test-ctype_upper.c: Likewise.
5585         * tests/unictype/test-decdigit.h: Likewise.
5586         * tests/unictype/test-digit.h: Likewise.
5587         * tests/unictype/test-numeric.h: Likewise.
5588         * tests/unictype/test-pr_alphabetic.c: Likewise.
5589         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
5590         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
5591         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
5592         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
5593         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
5594         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
5595         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
5596         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
5597         * tests/unictype/test-pr_case_ignorable.c: Likewise.
5598         * tests/unictype/test-pr_cased.c: Likewise.
5599         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
5600         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
5601         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
5602         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
5603         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
5604         * tests/unictype/test-pr_combining.c: Likewise.
5605         * tests/unictype/test-pr_composite.c: Likewise.
5606         * tests/unictype/test-pr_currency_symbol.c: Likewise.
5607         * tests/unictype/test-pr_decimal_digit.c: Likewise.
5608         * tests/unictype/test-pr_deprecated.c: Likewise.
5609         * tests/unictype/test-pr_format_control.c: Likewise.
5610         * tests/unictype/test-pr_grapheme_base.c: Likewise.
5611         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
5612         * tests/unictype/test-pr_grapheme_link.c: Likewise.
5613         * tests/unictype/test-pr_id_continue.c: Likewise.
5614         * tests/unictype/test-pr_id_start.c: Likewise.
5615         * tests/unictype/test-pr_ideographic.c: Likewise.
5616         * tests/unictype/test-pr_lowercase.c: Likewise.
5617         * tests/unictype/test-pr_math.c: Likewise.
5618         * tests/unictype/test-pr_numeric.c: Likewise.
5619         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
5620         * tests/unictype/test-pr_other_id_continue.c: Likewise.
5621         * tests/unictype/test-pr_other_math.c: Likewise.
5622         * tests/unictype/test-pr_punctuation.c: Likewise.
5623         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
5624         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
5625         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
5626         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
5627         * tests/unictype/test-pr_uppercase.c: Likewise.
5628         * tests/unictype/test-pr_xid_continue.c: Likewise.
5629         * tests/unictype/test-pr_xid_start.c: Likewise.
5630         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
5631         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
5632         changes.
5633         * lib/unictype/categ_Cc.h: Likewise.
5634         * lib/unictype/categ_Cf.h: Likewise.
5635         * lib/unictype/categ_Co.h: Likewise.
5636         * lib/unictype/categ_Cs.h: Likewise.
5637         * lib/unictype/categ_Lt.h: Likewise.
5638         * lib/unictype/categ_Nl.h: Likewise.
5639         * lib/unictype/categ_Pc.h: Likewise.
5640         * lib/unictype/categ_Pd.h: Likewise.
5641         * lib/unictype/categ_Pe.h: Likewise.
5642         * lib/unictype/categ_Pf.h: Likewise.
5643         * lib/unictype/categ_Pi.h: Likewise.
5644         * lib/unictype/categ_Ps.h: Likewise.
5645         * lib/unictype/categ_Z.h: Likewise.
5646         * lib/unictype/categ_Zl.h: Likewise.
5647         * lib/unictype/categ_Zp.h: Likewise.
5648         * lib/unictype/categ_Zs.h: Likewise.
5649         * lib/unictype/ctype_blank.h: Likewise.
5650         * lib/unictype/ctype_cntrl.h: Likewise.
5651         * lib/unictype/ctype_digit.h: Likewise.
5652         * lib/unictype/ctype_space.h: Likewise.
5653         * lib/unictype/ctype_xdigit.h: Likewise.
5654         * lib/unictype/mirror.h: Likewise.
5655         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
5656         * lib/unictype/pr_bidi_block_separator.h: Likewise.
5657         * lib/unictype/pr_bidi_common_separator.h: Likewise.
5658         * lib/unictype/pr_bidi_control.h: Likewise.
5659         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
5660         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
5661         * lib/unictype/pr_bidi_european_digit.h: Likewise.
5662         * lib/unictype/pr_bidi_pdf.h: Likewise.
5663         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
5664         * lib/unictype/pr_bidi_whitespace.h: Likewise.
5665         * lib/unictype/pr_dash.h: Likewise.
5666         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
5667         * lib/unictype/pr_diacritic.h: Likewise.
5668         * lib/unictype/pr_extender.h: Likewise.
5669         * lib/unictype/pr_hex_digit.h: Likewise.
5670         * lib/unictype/pr_hyphen.h: Likewise.
5671         * lib/unictype/pr_ids_binary_operator.h: Likewise.
5672         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
5673         * lib/unictype/pr_ignorable_control.h: Likewise.
5674         * lib/unictype/pr_iso_control.h: Likewise.
5675         * lib/unictype/pr_join_control.h: Likewise.
5676         * lib/unictype/pr_left_of_pair.h: Likewise.
5677         * lib/unictype/pr_line_separator.h: Likewise.
5678         * lib/unictype/pr_logical_order_exception.h: Likewise.
5679         * lib/unictype/pr_non_break.h: Likewise.
5680         * lib/unictype/pr_not_a_character.h: Likewise.
5681         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
5682         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
5683         * lib/unictype/pr_other_id_start.h: Likewise.
5684         * lib/unictype/pr_other_lowercase.h: Likewise.
5685         * lib/unictype/pr_other_uppercase.h: Likewise.
5686         * lib/unictype/pr_paired_punctuation.h: Likewise.
5687         * lib/unictype/pr_paragraph_separator.h: Likewise.
5688         * lib/unictype/pr_pattern_syntax.h: Likewise.
5689         * lib/unictype/pr_pattern_white_space.h: Likewise.
5690         * lib/unictype/pr_private_use.h: Likewise.
5691         * lib/unictype/pr_quotation_mark.h: Likewise.
5692         * lib/unictype/pr_radical.h: Likewise.
5693         * lib/unictype/pr_soft_dotted.h: Likewise.
5694         * lib/unictype/pr_space.h: Likewise.
5695         * lib/unictype/pr_titlecase.h: Likewise.
5696         * lib/unictype/pr_variation_selector.h: Likewise.
5697         * lib/unictype/pr_white_space.h: Likewise.
5698         * lib/unictype/pr_zero_width.h: Likewise.
5699         * lib/unictype/sy_c_ident.h: Likewise.
5700         * lib/unictype/sy_c_whitespace.h: Likewise.
5701         * lib/unictype/sy_java_whitespace.h: Likewise.
5702         * lib/uninorm/composition-table.gperf: Likewise.
5703         * lib/uninorm/decomposition-table1.h: Likewise.
5704         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
5705         LB8.
5706         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
5707         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
5708         * modules/unictype/*: Bump version number of expected libunistring
5709         version.
5710
5711 2011-01-09  Bruno Haible  <bruno@clisp.org>
5712
5713         Update to Unicode 5.2.0.
5714         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
5715         trailing whitespace removed.
5716
5717 2011-01-09  Bruno Haible  <bruno@clisp.org>
5718
5719         New Unicode character properties, from Unicode 5.2.0.
5720         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
5721         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
5722         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
5723         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
5724         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
5725         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
5726         uc_is_property_cased, uc_is_property_case_ignorable,
5727         uc_is_property_changes_when_lowercased,
5728         uc_is_property_changes_when_uppercased,
5729         uc_is_property_changes_when_titlecased,
5730         uc_is_property_changes_when_casefolded,
5731         uc_is_property_changes_when_casemapped): New declarations.
5732         * lib/unictype/pr_byname.gperf: Add the new properties.
5733         * modules/unictype/property-byname (Depends-on): Depend on the new
5734         properties modules.
5735         * modules/unictype/property-all (Depends-on): Likewise.
5736         * MODULES.html.sh (Unicode string functions): Add
5737         unictype/property-case-ignorable, unictype/property-cased,
5738         unictype/property-changes-when-casefolded,
5739         unictype/property-changes-when-casemapped,
5740         unictype/property-changes-when-lowercased,
5741         unictype/property-changes-when-titlecased,
5742         unictype/property-changes-when-uppercased.
5743
5744         New module 'unictype/property-changes-when-casemapped'.
5745         * modules/unictype/property-changes-when-casemapped: New file.
5746         * lib/unictype/pr_changes_when_casemapped.c: New file.
5747         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
5748         generated by gen-uni-tables.
5749         * modules/unictype/property-changes-when-casemapped-tests: New file.
5750         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
5751         automatically generated by gen-uni-tables.
5752
5753         New module 'unictype/property-changes-when-casefolded'.
5754         * modules/unictype/property-changes-when-casefolded: New file.
5755         * lib/unictype/pr_changes_when_casefolded.c: New file.
5756         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
5757         generated by gen-uni-tables.
5758         * modules/unictype/property-changes-when-casefolded-tests: New file.
5759         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
5760         automatically generated by gen-uni-tables.
5761
5762         New module 'unictype/property-changes-when-titlecased'.
5763         * modules/unictype/property-changes-when-titlecased: New file.
5764         * lib/unictype/pr_changes_when_titlecased.c: New file.
5765         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
5766         generated by gen-uni-tables.
5767         * modules/unictype/property-changes-when-titlecased-tests: New file.
5768         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
5769         automatically generated by gen-uni-tables.
5770
5771         New module 'unictype/property-changes-when-uppercased'.
5772         * modules/unictype/property-changes-when-uppercased: New file.
5773         * lib/unictype/pr_changes_when_uppercased.c: New file.
5774         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
5775         generated by gen-uni-tables.
5776         * modules/unictype/property-changes-when-uppercased-tests: New file.
5777         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
5778         automatically generated by gen-uni-tables.
5779
5780         New module 'unictype/property-changes-when-lowercased'.
5781         * modules/unictype/property-changes-when-lowercased: New file.
5782         * lib/unictype/pr_changes_when_lowercased.c: New file.
5783         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
5784         generated by gen-uni-tables.
5785         * modules/unictype/property-changes-when-lowercased-tests: New file.
5786         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
5787         automatically generated by gen-uni-tables.
5788
5789         New module 'unictype/property-case-ignorable'.
5790         * modules/unictype/property-case-ignorable: New file.
5791         * lib/unictype/pr_case_ignorable.c: New file.
5792         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
5793         by gen-uni-tables.
5794         * modules/unictype/property-case-ignorable-tests: New file.
5795         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
5796         generated by gen-uni-tables.
5797
5798         New module 'unictype/property-cased'.
5799         * modules/unictype/property-cased: New file.
5800         * lib/unictype/pr_cased.c: New file.
5801         * lib/unictype/pr_cased.h: New file, automatically generated by
5802         gen-uni-tables.
5803         * modules/unictype/property-cased-tests: New file.
5804         * tests/unictype/test-pr_cased.c: New file, automatically generated by
5805         gen-uni-tables.
5806
5807 2011-01-09  Bruno Haible  <bruno@clisp.org>
5808
5809         Update to Unicode 5.2.0.
5810         * lib/gen-uni-tables.c (output_predicate, output_category,
5811         output_combclass, output_bidi_category, output_decimal_digit_test,
5812         output_decimal_digit, output_digit_test, output_digit,
5813         output_numeric_test, output_numeric, output_mirror, output_scripts,
5814         output_scripts_byname, output_blocks, output_ident_category): Fix
5815         comment header.
5816         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
5817         get_wbp.
5818         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
5819         items.
5820         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
5821         Changes_When_Lowercased, Changes_When_Uppercased,
5822         Changes_When_Titlecased, Changes_When_Casefolded,
5823         Changes_When_Casemapped.
5824         (is_property_alphabetic, is_property_default_ignorable_code_point):
5825         Update for Unicode 5.2.0.
5826         (is_property_cased, is_property_case_ignorable,
5827         is_property_changes_when_lowercased,
5828         is_property_changes_when_uppercased,
5829         is_property_changes_when_titlecased,
5830         is_property_changes_when_casefolded,
5831         is_property_changes_when_casemapped): New functions.
5832         (output_properties): Output also the properties cased, case_ignorable,
5833         changes_when_lowercased, changes_when_uppercased,
5834         changes_when_titlecased, changes_when_casefolded,
5835         changes_when_casemapped.
5836         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
5837         Unicode TR#11 revision 17 -> 19.
5838         (LBP_CP): New enumeration value.
5839         (LBP_*): Adjust values accordingly.
5840         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
5841         TR#14 revision 22 -> 24.
5842         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
5843         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
5844         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
5845         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
5846         is_WBP_MIDLETTER.
5847         (output_composition_tables): Allow for 24 bits instead of 16 bits in
5848         the code1 and code2 of each composition rule.
5849         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
5850         * lib/unicase/ignorable.h: Likewise.
5851         * lib/unicase/tocasefold.h: Likewise.
5852         * lib/unicase/tolower.h: Likewise.
5853         * lib/unicase/totitle.h: Likewise.
5854         * lib/unicase/toupper.h: Likewise.
5855         * lib/unictype/bidi_of.h: Likewise.
5856         * lib/unictype/blocks.h: Likewise.
5857         * lib/unictype/categ_C.h: Likewise.
5858         * lib/unictype/categ_Cf.h: Likewise.
5859         * lib/unictype/categ_Cn.h: Likewise.
5860         * lib/unictype/categ_L.h: Likewise.
5861         * lib/unictype/categ_Ll.h: Likewise.
5862         * lib/unictype/categ_Lm.h: Likewise.
5863         * lib/unictype/categ_Lo.h: Likewise.
5864         * lib/unictype/categ_Lu.h: Likewise.
5865         * lib/unictype/categ_M.h: Likewise.
5866         * lib/unictype/categ_Mc.h: Likewise.
5867         * lib/unictype/categ_Mn.h: Likewise.
5868         * lib/unictype/categ_N.h: Likewise.
5869         * lib/unictype/categ_Nd.h: Likewise.
5870         * lib/unictype/categ_Nl.h: Likewise.
5871         * lib/unictype/categ_No.h: Likewise.
5872         * lib/unictype/categ_P.h: Likewise.
5873         * lib/unictype/categ_Pd.h: Likewise.
5874         * lib/unictype/categ_Po.h: Likewise.
5875         * lib/unictype/categ_S.h: Likewise.
5876         * lib/unictype/categ_Sc.h: Likewise.
5877         * lib/unictype/categ_So.h: Likewise.
5878         * lib/unictype/categ_of.h: Likewise.
5879         * lib/unictype/combining.h: Likewise.
5880         * lib/unictype/ctype_alnum.h: Likewise.
5881         * lib/unictype/ctype_alpha.h: Likewise.
5882         * lib/unictype/ctype_graph.h: Likewise.
5883         * lib/unictype/ctype_lower.h: Likewise.
5884         * lib/unictype/ctype_print.h: Likewise.
5885         * lib/unictype/ctype_punct.h: Likewise.
5886         * lib/unictype/ctype_upper.h: Likewise.
5887         * lib/unictype/decdigit.h: Likewise.
5888         * lib/unictype/digit.h: Likewise.
5889         * lib/unictype/numeric.h: Likewise.
5890         * lib/unictype/pr_alphabetic.h: Likewise.
5891         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
5892         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
5893         * lib/unictype/pr_bidi_european_digit.h: Likewise.
5894         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
5895         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
5896         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
5897         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
5898         * lib/unictype/pr_combining.h: Likewise.
5899         * lib/unictype/pr_composite.h: Likewise.
5900         * lib/unictype/pr_currency_symbol.h: Likewise.
5901         * lib/unictype/pr_dash.h: Likewise.
5902         * lib/unictype/pr_decimal_digit.h: Likewise.
5903         * lib/unictype/pr_deprecated.h: Likewise.
5904         * lib/unictype/pr_diacritic.h: Likewise.
5905         * lib/unictype/pr_extender.h: Likewise.
5906         * lib/unictype/pr_grapheme_base.h: Likewise.
5907         * lib/unictype/pr_grapheme_extend.h: Likewise.
5908         * lib/unictype/pr_grapheme_link.h: Likewise.
5909         * lib/unictype/pr_id_continue.h: Likewise.
5910         * lib/unictype/pr_id_start.h: Likewise.
5911         * lib/unictype/pr_ideographic.h: Likewise.
5912         * lib/unictype/pr_ignorable_control.h: Likewise.
5913         * lib/unictype/pr_logical_order_exception.h: Likewise.
5914         * lib/unictype/pr_lowercase.h: Likewise.
5915         * lib/unictype/pr_numeric.h: Likewise.
5916         * lib/unictype/pr_other_alphabetic.h: Likewise.
5917         * lib/unictype/pr_punctuation.h: Likewise.
5918         * lib/unictype/pr_sentence_terminal.h: Likewise.
5919         * lib/unictype/pr_terminal_punctuation.h: Likewise.
5920         * lib/unictype/pr_unassigned_code_value.h: Likewise.
5921         * lib/unictype/pr_unified_ideograph.h: Likewise.
5922         * lib/unictype/pr_uppercase.h: Likewise.
5923         * lib/unictype/pr_xid_continue.h: Likewise.
5924         * lib/unictype/pr_xid_start.h: Likewise.
5925         * lib/unictype/pr_zero_width.h: Likewise.
5926         * lib/unictype/scripts.h: Likewise.
5927         * lib/unictype/scripts_byname.gperf: Likewise.
5928         * lib/unictype/sy_java_ident.h: Likewise.
5929         * lib/unigbrk/gbrkprop.h: Likewise.
5930         * lib/unilbrk/lbrkprop1.h: Likewise.
5931         * lib/unilbrk/lbrkprop2.h: Likewise.
5932         * lib/unilbrk/lbrktables.h: Likewise.
5933         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
5934         LBP_CP. Implement rule LB30.
5935         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
5936         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
5937         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
5938         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
5939         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
5940         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
5941         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
5942         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
5943         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
5944         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
5945         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
5946         bits instead of 16 bits in the code1 and code2 of each composition
5947         rule.
5948         (uc_composition): Update for Unicode 5.2.0.
5949         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
5950         * lib/uninorm/decomposition-table2.h: Likewise.
5951         * lib/uniwbrk/wbrkprop.h: Likewise.
5952         * tests/unicase/test-cased.c: Likewise.
5953         * tests/unicase/test-ignorable.c: Likewise.
5954         * tests/unicase/test-uc_tolower.c: Likewise.
5955         * tests/unicase/test-uc_totitle.c: Likewise.
5956         * tests/unicase/test-uc_toupper.c: Likewise.
5957         * tests/unictype/test-categ_C.c: Likewise.
5958         * tests/unictype/test-categ_Cf.c: Likewise.
5959         * tests/unictype/test-categ_Cn.c: Likewise.
5960         * tests/unictype/test-categ_L.c: Likewise.
5961         * tests/unictype/test-categ_Ll.c: Likewise.
5962         * tests/unictype/test-categ_Lm.c: Likewise.
5963         * tests/unictype/test-categ_Lo.c: Likewise.
5964         * tests/unictype/test-categ_Lu.c: Likewise.
5965         * tests/unictype/test-categ_M.c: Likewise.
5966         * tests/unictype/test-categ_Mc.c: Likewise.
5967         * tests/unictype/test-categ_Mn.c: Likewise.
5968         * tests/unictype/test-categ_N.c: Likewise.
5969         * tests/unictype/test-categ_Nd.c: Likewise.
5970         * tests/unictype/test-categ_Nl.c: Likewise.
5971         * tests/unictype/test-categ_No.c: Likewise.
5972         * tests/unictype/test-categ_P.c: Likewise.
5973         * tests/unictype/test-categ_Pd.c: Likewise.
5974         * tests/unictype/test-categ_Po.c: Likewise.
5975         * tests/unictype/test-categ_S.c: Likewise.
5976         * tests/unictype/test-categ_Sc.c: Likewise.
5977         * tests/unictype/test-categ_So.c: Likewise.
5978         * tests/unictype/test-ctype_alnum.c: Likewise.
5979         * tests/unictype/test-ctype_alpha.c: Likewise.
5980         * tests/unictype/test-ctype_graph.c: Likewise.
5981         * tests/unictype/test-ctype_lower.c: Likewise.
5982         * tests/unictype/test-ctype_print.c: Likewise.
5983         * tests/unictype/test-ctype_punct.c: Likewise.
5984         * tests/unictype/test-ctype_upper.c: Likewise.
5985         * tests/unictype/test-decdigit.h: Likewise.
5986         * tests/unictype/test-digit.h: Likewise.
5987         * tests/unictype/test-numeric.h: Likewise.
5988         * tests/unictype/test-pr_alphabetic.c: Likewise.
5989         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
5990         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
5991         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
5992         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
5993         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
5994         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
5995         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
5996         * tests/unictype/test-pr_combining.c: Likewise.
5997         * tests/unictype/test-pr_composite.c: Likewise.
5998         * tests/unictype/test-pr_currency_symbol.c: Likewise.
5999         * tests/unictype/test-pr_dash.c: Likewise.
6000         * tests/unictype/test-pr_decimal_digit.c: Likewise.
6001         * tests/unictype/test-pr_deprecated.c: Likewise.
6002         * tests/unictype/test-pr_diacritic.c: Likewise.
6003         * tests/unictype/test-pr_extender.c: Likewise.
6004         * tests/unictype/test-pr_grapheme_base.c: Likewise.
6005         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
6006         * tests/unictype/test-pr_grapheme_link.c: Likewise.
6007         * tests/unictype/test-pr_id_continue.c: Likewise.
6008         * tests/unictype/test-pr_id_start.c: Likewise.
6009         * tests/unictype/test-pr_ideographic.c: Likewise.
6010         * tests/unictype/test-pr_ignorable_control.c: Likewise.
6011         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
6012         * tests/unictype/test-pr_lowercase.c: Likewise.
6013         * tests/unictype/test-pr_numeric.c: Likewise.
6014         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
6015         * tests/unictype/test-pr_punctuation.c: Likewise.
6016         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
6017         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
6018         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
6019         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
6020         * tests/unictype/test-pr_uppercase.c: Likewise.
6021         * tests/unictype/test-pr_xid_continue.c: Likewise.
6022         * tests/unictype/test-pr_xid_start.c: Likewise.
6023         * tests/unictype/test-pr_zero_width.c: Likewise.
6024         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
6025         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
6026         changed behaviour: line breaking is now disallowed between a letter
6027         or '=' and '('.
6028         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
6029         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
6030         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
6031         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
6032         * tests/uniwidth/test-uc_width2.sh: Same updates as in
6033         lib/uniwidth/width.c.
6034         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
6035         without comments, but with the original copyright notice.
6036         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
6037         changes.
6038         * lib/unictype/categ_Cc.h: Likewise.
6039         * lib/unictype/categ_Co.h: Likewise.
6040         * lib/unictype/categ_Cs.h: Likewise.
6041         * lib/unictype/categ_Lt.h: Likewise.
6042         * lib/unictype/categ_Me.h: Likewise.
6043         * lib/unictype/categ_Pc.h: Likewise.
6044         * lib/unictype/categ_Pe.h: Likewise.
6045         * lib/unictype/categ_Pf.h: Likewise.
6046         * lib/unictype/categ_Pi.h: Likewise.
6047         * lib/unictype/categ_Ps.h: Likewise.
6048         * lib/unictype/categ_Sk.h: Likewise.
6049         * lib/unictype/categ_Sm.h: Likewise.
6050         * lib/unictype/categ_Z.h: Likewise.
6051         * lib/unictype/categ_Zl.h: Likewise.
6052         * lib/unictype/categ_Zp.h: Likewise.
6053         * lib/unictype/categ_Zs.h: Likewise.
6054         * lib/unictype/ctype_blank.h: Likewise.
6055         * lib/unictype/ctype_cntrl.h: Likewise.
6056         * lib/unictype/ctype_digit.h: Likewise.
6057         * lib/unictype/ctype_space.h: Likewise.
6058         * lib/unictype/ctype_xdigit.h: Likewise.
6059         * lib/unictype/mirror.h: Likewise.
6060         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
6061         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
6062         * lib/unictype/pr_bidi_block_separator.h: Likewise.
6063         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
6064         * lib/unictype/pr_bidi_common_separator.h: Likewise.
6065         * lib/unictype/pr_bidi_control.h: Likewise.
6066         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
6067         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
6068         * lib/unictype/pr_bidi_pdf.h: Likewise.
6069         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
6070         * lib/unictype/pr_bidi_whitespace.h: Likewise.
6071         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
6072         * lib/unictype/pr_format_control.h: Likewise.
6073         * lib/unictype/pr_hex_digit.h: Likewise.
6074         * lib/unictype/pr_hyphen.h: Likewise.
6075         * lib/unictype/pr_ids_binary_operator.h: Likewise.
6076         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
6077         * lib/unictype/pr_iso_control.h: Likewise.
6078         * lib/unictype/pr_join_control.h: Likewise.
6079         * lib/unictype/pr_left_of_pair.h: Likewise.
6080         * lib/unictype/pr_line_separator.h: Likewise.
6081         * lib/unictype/pr_math.h: Likewise.
6082         * lib/unictype/pr_non_break.h: Likewise.
6083         * lib/unictype/pr_not_a_character.h: Likewise.
6084         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
6085         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
6086         * lib/unictype/pr_other_id_continue.h: Likewise.
6087         * lib/unictype/pr_other_id_start.h: Likewise.
6088         * lib/unictype/pr_other_lowercase.h: Likewise.
6089         * lib/unictype/pr_other_math.h: Likewise.
6090         * lib/unictype/pr_other_uppercase.h: Likewise.
6091         * lib/unictype/pr_paired_punctuation.h: Likewise.
6092         * lib/unictype/pr_paragraph_separator.h: Likewise.
6093         * lib/unictype/pr_pattern_syntax.h: Likewise.
6094         * lib/unictype/pr_pattern_white_space.h: Likewise.
6095         * lib/unictype/pr_private_use.h: Likewise.
6096         * lib/unictype/pr_quotation_mark.h: Likewise.
6097         * lib/unictype/pr_radical.h: Likewise.
6098         * lib/unictype/pr_soft_dotted.h: Likewise.
6099         * lib/unictype/pr_space.h: Likewise.
6100         * lib/unictype/pr_titlecase.h: Likewise.
6101         * lib/unictype/pr_variation_selector.h: Likewise.
6102         * lib/unictype/pr_white_space.h: Likewise.
6103         * lib/unictype/sy_c_ident.h: Likewise.
6104         * lib/unictype/sy_c_whitespace.h: Likewise.
6105         * lib/unictype/sy_java_whitespace.h: Likewise.
6106         * modules/uni*/*: Bump version number of expected libunistring version.
6107         Reported by Simon Josefsson.
6108
6109 2011-01-09  Karl Heuer  <kwzh@gnu.org>
6110
6111         useless-if-before-free: fix typo in --help and make the internal,
6112         automatic version date update process work once again.
6113         --help output contained a NUL character instead of the
6114         backslash-zero that was intended.  Also, the "must lie within
6115         the first 8 lines" line is on line 9, and hence not getting
6116         automatically updated.
6117         * build-aux/useless-if-before-free: Fix the former by adding a
6118         backslash, and the latter by condensing the three lines of what-it-does
6119         to a single line, leaving one line of slack for the future.
6120
6121 2011-01-09  Bruno Haible  <bruno@clisp.org>
6122
6123         uniwidth/width: Fix width of U+1D173..U+1D17A.
6124         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
6125         symbolic_width, output_width_property_test): New functions.
6126         (main): Invoke output_nonspacing_property, output_width_property_test.
6127         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
6128         U+1D173..U+1D17A.
6129         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
6130         1.
6131         * modules/uniwidth/*: Bump version number of expected libunistring
6132         version.
6133         * modules/unilbrk/*: Likewise.
6134
6135 2011-01-08  Bruno Haible  <bruno@clisp.org>
6136
6137         uninorm tests: Preserve copyright of Unicode data file.
6138         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
6139         Mention modifications.
6140
6141 2011-01-08  Bruno Haible  <bruno@clisp.org>
6142
6143         gen-uni-tables: Prepare for Unicode 5.2.0.
6144         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
6145         (debug_output_lbp, output_lbp): Update.
6146
6147 2011-01-08  Bruno Haible  <bruno@clisp.org>
6148
6149         unilbrk: Clarify gen-uni-tables.c code.
6150         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
6151         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
6152         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
6153
6154 2011-01-07  Bruno Haible  <bruno@clisp.org>
6155
6156         strtod: Restore errno when successfully parsing Infinity or NaN.
6157         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
6158         restore the original errno.
6159
6160 2011-01-07  Bruno Haible  <bruno@clisp.org>
6161
6162         remove test: Avoid failure on HP-UX 11.
6163         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
6164
6165 2011-01-07  Bruno Haible  <bruno@clisp.org>
6166
6167         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
6168         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
6169         error code.
6170
6171 2011-01-07  Pádraig Brady <P@draigBrady.com>
6172
6173         ignore-value: fixup comments, and add Eric Blake
6174         as an author since he rewrote the macros.
6175         * lib/ignore-value.h (ignore_value):  State that
6176         we now support aggregates.  Also specify exactly
6177         when the GCC warn_unused_result feature was added.
6178
6179 2011-01-06  Eric Blake  <eblake@redhat.com>
6180
6181         ignore-value: support aggregate types
6182         * lib/ignore-value.h (ignore_value): Provide separate gcc
6183         definition.
6184         * modules/ignore-value-tests: New test module.
6185         * tests/test-ignore-value.c: New test.
6186
6187         maint.mk: improve sc_prohibit_strcmp regex
6188         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
6189         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
6190         definition of STRNEQ.
6191
6192         signal: work around Haiku issue with SIGBUS
6193         * lib/siglist.h: Add comment.
6194         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
6195         strsignal's favoring of SIGSEGV.
6196         * tests/test-signal.c (main): Avoid test failure.
6197         * doc/posix-headers/signal.texi (signal.h): Document the issue.
6198         Reported by Scott McCreary.
6199
6200         maint.mk: add pre-release check to ensure submodule commits are public
6201         * top/maint.mk (public-submodule-commit): New rule.
6202         (submodule-checks): New variable.
6203         (alpha beta stable): Depend on the variable.
6204
6205 2011-01-05  Pádraig Brady <P@draigBrady.com>
6206         and Jim Meyering  <meyering@redhat.com>
6207
6208         ignore-value: make ignore_value more generic; deprecate ignore_ptr
6209         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
6210         (ATTRIBUTE_DEPRECATED): Define.
6211         (_ignore_case): New function.
6212         (ignore_value): New macro, to replace the old function.
6213         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
6214         * modules/ignore-value (Depends-on): Add stdint.
6215
6216 2011-01-04  Eric Blake  <eblake@redhat.com>
6217
6218         doc: regenerate INSTALL
6219         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
6220         @firstparagraphindent support, now that autoconf dropped it.
6221         (INSTALL_PRELUDE): Reinstate old macro.
6222         * doc/install.texi: Resync from autoconf.
6223         * doc/INSTALL: Reflect recent autoconf update.
6224         * doc/INSTALL.ISO: Likewise.
6225         * doc/INSTALL.UTF-8: Likewise.
6226         Reported by Karl Berry.
6227
6228 2011-01-04  Bruce Korb  <address@hidden>
6229
6230         git-version-gen: avoid a sub-shell
6231         * build-aux/git-version-gen: Redirect stderr in `...` via
6232         "exec 2>...", rather than via an added sub-shell.
6233
6234 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
6235
6236         git-version-gen: use (...) rather than sh -c '...'
6237         * build-aux/git-version-gen: Rather than hard-coding a shell's name
6238         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
6239
6240 2011-01-03  Jim Meyering  <meyering@redhat.com>
6241
6242         git-version-gen: convert leading TABs to spaces
6243         * build-aux/git-version-gen: Expand leading TABs.
6244
6245         git-version-gen: handle failed "git rev-list"
6246         * build-aux/git-version-gen: Rather than leaking a "fatal" error
6247         from git and proceeding as if it had succeeded but printed no SHA1
6248         checksums, suppress the diagnostic and handle the failure.
6249         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
6250
6251         git-version-gen: include command name in one more diagnostic
6252         * build-aux/git-version-gen: When the required .tarball-version file
6253         was missing or unreadable, you might see the diagnostic from "cat",
6254         but no trace of the name of the invoking script.  Now, you still see
6255         the diagnostic from cat, but also get one from "git-version-gen: ".
6256         Inspired by a patch from Bruce Korb.
6257
6258         update-copyright: adjust test to match changed code
6259         * tests/test-update-copyright.sh: Change test's expected output
6260         to match new actual output.
6261
6262 2011-01-02  Bruno Haible  <bruno@clisp.org>
6263
6264         getlogin_r: Avoid test failure on HP-UX 11.
6265         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
6266         ERANGE when the second argument is zero.
6267         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
6268         portability problem.
6269
6270 2011-01-02  Bruce Korb  <bkorb@gnu.org>
6271
6272         * build-aux/update-copyright: doc Simon's changes
6273
6274 2011-01-02  Simon Josefsson  <simon@josefsson.org>
6275
6276         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
6277         environment variable.
6278
6279 2011-01-02  Bruno Haible  <bruno@clisp.org>
6280
6281         unigbrk: Avoid gcc warnings.
6282         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
6283         unused variable.
6284         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
6285         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
6286         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
6287         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
6288         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
6289         Change type of first argument to 'const char *'.
6290         (main): Remove unused variable.
6291         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
6292         type of first argument to 'const char *'.
6293         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
6294         Likewise.
6295         (main): Change type of variable 's'.
6296         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
6297         to 'int'.
6298
6299 2011-01-02  Bruno Haible  <bruno@clisp.org>
6300
6301         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
6302         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
6303         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
6304         bug.
6305         * lib/pwrite.c: Undo 2010-12-31 patch.
6306         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
6307
6308 2011-01-02  Bruno Haible  <bruno@clisp.org>
6309
6310         pread: Fix test whether it works.
6311         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
6312
6313 2011-01-02  Bruno Haible  <bruno@clisp.org>
6314
6315         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
6316         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
6317         ends in "6". Don't require a specific month name. Try also the locale
6318         names found on HP-UX 11 and Solaris 7.
6319
6320 2011-01-02  Bruno Haible  <bruno@clisp.org>
6321
6322         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
6323         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
6324         C linkage.
6325         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
6326
6327 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
6328
6329         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
6330         for consistency, since the "cluster" term is not used elsewhere.
6331         * lib/unigbrk.in.h: Update name.
6332         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
6333         * lib/unigbrk/u16-grapheme-next.c: Update name.
6334         * lib/unigbrk/u16-grapheme-prev.c: Update name.
6335         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
6336         * lib/unigbrk/u32-grapheme-next.c: Update name.
6337         * lib/unigbrk/u32-grapheme-prev.c: Update name.
6338         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
6339         * lib/unigbrk/u8-grapheme-next.c: Update name.
6340         * lib/unigbrk/u8-grapheme-prev.c: Update name.
6341         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
6342         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
6343         Suggested by Bruno Haible.
6344
6345 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
6346
6347         Remove module 'u8-grapheme-len' as too redundant with
6348         'u8-grapheme-next'.
6349         * modules/unigbrk/u8-grapheme-len: Delete file.
6350         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
6351         * lib/unigbrk.in.h: Remove prototype for deleted function.
6352         * lib/unigbrk/u8-grapheme-len.c: Delete file.
6353         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
6354
6355         Remove module 'u16-grapheme-len' as too redundant with
6356         'u16-grapheme-next'.
6357         * modules/unigbrk/u16-grapheme-len: Delete file.
6358         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
6359         * lib/unigbrk.in.h: Remove prototype for deleted function.
6360         * lib/unigbrk/u16-grapheme-len.c: Delete file.
6361         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
6362
6363         Remove module 'u32-grapheme-len' as too redundant with
6364         'u32-grapheme-next'.
6365         * modules/unigbrk/u32-grapheme-len: Delete file.
6366         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
6367         * lib/unigbrk.in.h: Remove prototype for deleted function.
6368         * lib/unigbrk/u32-grapheme-len.c: Delete file.
6369         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
6370
6371         Suggested by Bruno Haible.
6372
6373 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
6374
6375         * unigbrk.in.h: Fix typo: "ben" => "been".
6376         Reported by Bruno Haible.
6377
6378 2011-01-01  Jim Meyering  <meyering@redhat.com>
6379
6380         maint: update almost all copyright ranges to include 2011
6381         Run the new "make update-copyright" rule.
6382
6383 2011-01-01  Jim Meyering  <meyering@redhat.com>
6384
6385         maint: update-copyright: exempt doc/INSTALL*
6386         * Makefile (update-copyright): Also exclude doc/INSTALL*,
6387         since they are generated.  Suggested by Bruno Haible.
6388
6389 2011-01-01  Jim Meyering  <meyering@redhat.com>
6390
6391         maint: refine the update-copyright rule
6392         * Makefile (update-copyright): Also exclude any file that includes
6393         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
6394         code that merely generates the comment.
6395
6396 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
6397
6398         New module 'u8-grapheme-len'.
6399         * modules/unigbrk/u8-grapheme-len: New file.
6400         * modules/unigbrk/u8-grapheme-len-tests: New file.
6401         * lib/unigbrk.in.h: Add prototype for new function.
6402         * lib/unigbrk/u8-grapheme-len.c: New file.
6403         * tests/unigbrk/test-u8-grapheme-len.c: New file.
6404
6405         New module 'u16-grapheme-len'.
6406         * modules/unigbrk/u16-grapheme-len: New file.
6407         * modules/unigbrk/u16-grapheme-len-tests: New file.
6408         * lib/unigbrk.in.h: Add prototype for new function.
6409         * lib/unigbrk/u16-grapheme-len.c: New file.
6410         * tests/unigbrk/test-u16-grapheme-len.c: New file.
6411
6412         New module 'u32-grapheme-len'.
6413         * modules/unigbrk/u32-grapheme-len: New file.
6414         * modules/unigbrk/u32-grapheme-len-tests: New file.
6415         * lib/unigbrk.in.h: Add prototype for new function.
6416         * lib/unigbrk/u32-grapheme-len.c: New file.
6417         * tests/unigbrk/test-u32-grapheme-len.c: New file.
6418
6419         New module 'u8-grapheme-next'.
6420         * modules/unigbrk/u8-grapheme-next: New file.
6421         * modules/unigbrk/u8-grapheme-next-tests: New file.
6422         * lib/unigbrk.in.h: Add prototype for new function.
6423         * lib/unigbrk/u8-grapheme-next.c: New file.
6424         * tests/unigbrk/test-u8-grapheme-next.c: New file.
6425
6426         New module 'u16-grapheme-next'.
6427         * modules/unigbrk/u16-grapheme-next: New file.
6428         * modules/unigbrk/u16-grapheme-next-tests: New file.
6429         * lib/unigbrk.in.h: Add prototype for new function.
6430         * lib/unigbrk/u16-grapheme-next.c: New file.
6431         * tests/unigbrk/test-u16-grapheme-next.c: New file.
6432
6433         New module 'u32-grapheme-next'.
6434         * modules/unigbrk/u32-grapheme-next: New file.
6435         * modules/unigbrk/u32-grapheme-next-tests: New file.
6436         * lib/unigbrk.in.h: Add prototype for new function.
6437         * lib/unigbrk/u32-grapheme-next.c: New file.
6438         * tests/unigbrk/test-u32-grapheme-next.c: New file.
6439
6440         New module 'u8-grapheme-prev'.
6441         * modules/unigbrk/u8-grapheme-prev: New file.
6442         * modules/unigbrk/u8-grapheme-prev-tests: New file.
6443         * lib/unigbrk.in.h: Add prototype for new function.
6444         * lib/unigbrk/u8-grapheme-prev.c: New file.
6445         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
6446
6447         New module 'u16-grapheme-prev'.
6448         * modules/unigbrk/u16-grapheme-prev: New file.
6449         * modules/unigbrk/u16-grapheme-prev-tests: New file.
6450         * lib/unigbrk.in.h: Add prototype for new function.
6451         * lib/unigbrk/u16-grapheme-prev.c: New file.
6452         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
6453
6454         New module 'u32-grapheme-prev'.
6455         * modules/unigbrk/u32-grapheme-prev: New file.
6456         * modules/unigbrk/u32-grapheme-prev-tests: New file.
6457         * lib/unigbrk.in.h: Add prototype for new function.
6458         * lib/unigbrk/u32-grapheme-prev.c: New file.
6459         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
6460
6461         New module 'u8-grapheme-breaks'.
6462         * modules/unigbrk/u8-grapheme-breaks: New file.
6463         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
6464         * lib/unigbrk.in.h: Add prototype for new function.
6465         * lib/unigbrk/u8-grapheme-breaks.c: New file.
6466         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
6467
6468         New module 'u16-grapheme-breaks'.
6469         * modules/unigbrk/u16-grapheme-breaks: New file.
6470         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
6471         * lib/unigbrk.in.h: Add prototype for new function.
6472         * lib/unigbrk/u16-grapheme-breaks.c: New file.
6473         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
6474
6475         New module 'u32-grapheme-breaks'.
6476         * modules/unigbrk/u32-grapheme-breaks: New file.
6477         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
6478         * lib/unigbrk.in.h: Add prototype for new function.
6479         * lib/unigbrk/u32-grapheme-breaks.c: New file.
6480         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
6481
6482         New module 'ulc-grapheme-breaks'.
6483         * modules/unigbrk/ulc-grapheme-breaks: New file.
6484         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
6485         * m4/locale-ar.m4: New file.
6486         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
6487         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
6488         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
6489
6490 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
6491
6492         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
6493         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
6494         modified how this file was generated before I initially submitted
6495         the module, but failed to regenerate it.  This meant that several
6496         of the level2 entries were wrong.
6497         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
6498         Remove the division-by-2 that is folded into the table now that
6499         gbrkprop.h has been regenerated properly.  Now -1 entries are
6500         handled correctly.
6501
6502         New module 'unigbrk/uc-gbrk-prop-tests'.
6503         * modules/unigbrk/uc-gbrk-prop-tests: New file.
6504         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
6505         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
6506         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
6507
6508 2011-01-01  Bruno Haible  <bruno@clisp.org>
6509
6510         Avoid use of hexadecimal escapes.
6511         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
6512         instead of hexadecimal escapes.
6513
6514 2011-01-01  Jim Meyering  <meyering@redhat.com>
6515
6516         maint: new rule to update copyright year ranges
6517         * Makefile (update-copyright): New rule.
6518
6519         maint: indent with TABs in Makefile
6520         * Makefile: Expand leading sequences of spaces to TABs
6521
6522         version-etc: update the copyright year it reports
6523         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
6524
6525 2010-12-31  Bruno Haible  <bruno@clisp.org>
6526
6527         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
6528         * lib/isfinite.c (zerof, zerod, zerol): New variables.
6529         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
6530         zero.
6531
6532 2010-12-31  Bruno Haible  <bruno@clisp.org>
6533
6534         pwrite: Work around HP-UX 11.11 bug.
6535         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
6536         works and set REPLACE_PWRITE if not.
6537         * lib/pwrite.c (pwrite): Add an implementation that uses the system
6538         function.
6539         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
6540
6541 2010-12-31  Bruno Haible  <bruno@clisp.org>
6542
6543         pread: Work around HP-UX 11 bugs.
6544         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
6545         and set REPLACE_PREAD if not.
6546         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
6547
6548 2010-12-31  Eric Blake  <eblake@redhat.com>
6549
6550         nl_langinfo: fix YESEXPR on Irix 6.5
6551         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
6552         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
6553         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
6554         it.
6555
6556 2010-12-31  Bruno Haible  <bruno@clisp.org>
6557
6558         iconv: Document HP-UX 11 bug.
6559         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
6560
6561 2010-12-31  Bruno Haible  <bruno@clisp.org>
6562
6563         ldexpl: Fix link error on HP-UX 11.
6564         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
6565         LDEXPL_LIBM, using $ISNANL_LIBM.
6566
6567 2010-12-31  Eric Blake  <eblake@redhat.com>
6568
6569         ftello: avoid compilation failure with SunStudio c89
6570         * lib/ftello.c (ftello): Use lseek, not llseek.
6571
6572         tests: avoid failing coreutils tests on cygwin
6573         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
6574         (create_exe_shims_): Return 0 when skipping.
6575
6576 2010-12-31  Bruno Haible  <bruno@clisp.org>
6577
6578         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
6579         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
6580
6581 2010-12-31  Bruno Haible  <bruno@clisp.org>
6582
6583         waitpid: Fix link error in C++ mode.
6584         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
6585
6586 2010-12-31  Bruno Haible  <bruno@clisp.org>
6587
6588         isnan: Use GCC built-ins when possible.
6589         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
6590         __builtin_isnan.
6591         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
6592         (isnan): Define using GCC built-ins for GCC >= 4.0.
6593
6594 2010-12-31  Bruno Haible  <bruno@clisp.org>
6595
6596         isnand: Fix mistake.
6597         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
6598         __builtin_isnand.
6599
6600 2010-12-31  Bruno Haible  <bruno@clisp.org>
6601
6602         open: Avoid C++ error on HP-UX 11.
6603         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
6604
6605 2010-12-31  Bruno Haible  <bruno@clisp.org>
6606
6607         time_r: Add missing declarations on HP-UX 11.
6608         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
6609         instead of HAVE_LOCALTIME_R.
6610         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
6611         HAVE_LOCALTIME_R always.
6612         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
6613         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
6614         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
6615         HAVE_LOCALTIME_R.
6616         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
6617         * doc/posix-functions/localtime_r.texi: Likewise.
6618
6619 2010-12-29  Eric Blake  <eblake@redhat.com>
6620
6621         mountlist: tweak previous commit
6622         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
6623         Reported by Paul Eggert.
6624
6625         mountlist: fix local drive detection on cygwin
6626         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
6627         that works for cygwin.
6628
6629 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
6630
6631         ftoastr, snprintf: ftoastr + snprintf module
6632         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
6633         since the snprintf module now should be good enough here.
6634         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
6635         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
6636         and gl_MODULE_INDICATOR([snprintf]), but the former enables
6637         GNULIB_SNPRINTF only for the test directory, and the latter
6638         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
6639         seems to suffice by itself.
6640
6641 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
6642
6643         alloca: one step towards thread-safety
6644         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
6645         need for a static variable.  All callers changed.  This does not
6646         make the alloca replacement thread-safe, but it's one step.
6647
6648         tests: minor indenting change
6649         * tests/init.sh: Sync from coreutils housekeeping patch
6650         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
6651         to keep lines within 80 columns.
6652
6653 2010-12-28  Jim Meyering  <meyering@redhat.com>
6654
6655         regex: don't infloop on persistent failing calloc
6656         * lib/regexec.c (build_trtable): Return failure indication upon
6657         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
6658         In glibc, this was fixed for version 2.13:
6659         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
6660
6661 2010-12-28  Bruno Haible  <bruno@clisp.org>
6662             Paul Eggert <eggert@cs.ucla.edu>
6663
6664         linkat: Make implementation robust against system behaviour variations.
6665         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
6666         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
6667         way, and to -2 if it needs a generic runtime test.
6668         * lib/linkat.c (solaris_optimized_link_immediate,
6669         solaris_optimized_link_follow): New functions.
6670         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
6671         (check_same_link): Use it.
6672
6673 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
6674
6675         New module 'unigbrk/base'.
6676         * modules/unigbrk/base: New file.
6677         * lib/unigbrk.in.h: New file.
6678
6679         New module 'unigbrk/uc-gbrk-prop'.
6680         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
6681         * modules/unigbrk/uc-gbrk-prop: New file.
6682         * lib/unigbrk/gbrkprop.h: New file.
6683         * lib/unigbrk/uc-gbrk-prop.c: New file.
6684
6685         New module 'unigbrk/uc-is-grapheme-break'.
6686         * modules/unigbrk/uc-is-grapheme-break: New file.
6687         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
6688         * lib/unigbrk/uc-is-grapheme-break.c: New file.
6689         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
6690         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
6691         * tests/unigbrk/GraphemeBreakTest.txt: New file.
6692
6693         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
6694
6695 2010-12-27  Bruno Haible  <bruno@clisp.org>
6696
6697         linkat test: Avoid failure on Solaris 11 2010-11.
6698         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
6699
6700 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
6701
6702         utimens: work around glibc rounding bug on more platforms
6703         * lib/utimens.c (fdutimens): Work around rounding bug even if
6704         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
6705         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
6706
6707 2010-12-27  Bruno Haible  <bruno@clisp.org>
6708
6709         select tests: Improve comments.
6710         * tests/test-select.c (do_select): Add comments.
6711
6712 2010-12-27  Bruno Haible  <bruno@clisp.org>
6713
6714         select tests: Safer way of handling timeout.
6715         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
6716         at every invocation.
6717
6718 2010-12-27  Bruno Haible  <bruno@clisp.org>
6719
6720         select tests: Use 'bool' where appropriate.
6721         * tests/test-select.c (connect_to_socket): Change argument type to
6722         'bool'.
6723
6724 2010-12-27  Bruno Haible  <bruno@clisp.org>
6725
6726         select tests: Use existing modules.
6727         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
6728         (configure.ac): Don't test for unistd.h.
6729         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
6730         declared in <unistd.h>.
6731
6732 2010-12-27  Bruno Haible  <bruno@clisp.org>
6733
6734         mbrtowc: Work around a Solaris 7 bug.
6735         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
6736         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
6737         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
6738         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
6739         MBRTOWC_NULL_ARG1_BUG.
6740         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
6741         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
6742         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
6743         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
6744
6745 2010-12-27  Jim Meyering  <meyering@redhat.com>
6746
6747         read-file.c: tweak syntax
6748         * lib/read-file.c (fread_file): Remove space after "*" in function
6749         definitions.
6750
6751 2010-12-27  Bruno Haible  <bruno@clisp.org>
6752
6753         times test: Avoid gcc warnings on OSF/1.
6754         * tests/test-times.c (main): Cast printf arguments from clock_t to
6755         'long int'.
6756
6757 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
6758
6759         utimens: work around glibc rounding bug on older Linux kernels
6760         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
6761         on Linux with a glibc whose utimes might not work, then work
6762         around a longstanding glibc bug involving rounding rather than
6763         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
6764         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
6765
6766 2010-12-26  Bruno Haible  <bruno@clisp.org>
6767
6768         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
6769         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
6770         _GL_CXXALIAS_SYS.
6771         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6772
6773 2010-12-26  Bruno Haible  <bruno@clisp.org>
6774
6775         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
6776         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
6777         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
6778         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
6779         looking for the declaration.
6780         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
6781         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
6782         problem.
6783         * doc/posix-functions/inet_pton.texi: Likewise.
6784
6785 2010-12-26  Bruno Haible  <bruno@clisp.org>
6786
6787         arpa_inet: Use the common idioms with C++ support.
6788         * lib/arpa_inet.in.h: Include c++defs.h.
6789         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
6790         support.
6791         * modules/arpa_inet (Depends-on): Add c++defs.
6792         (Makefile.am): Substitute the contents of c++defs.h.
6793         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
6794         * modules/arpa_inet-c++-tests: New file.
6795         * tests/test-arpa_inet-c++.cc: New file.
6796
6797 2010-12-25  Bruno Haible  <bruno@clisp.org>
6798
6799         Fix more C++ link errors on Solaris 8.
6800         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
6801         $(LIB_EACCESS).
6802         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
6803         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
6804         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
6805         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
6806         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
6807
6808 2010-12-25  Bruno Haible  <bruno@clisp.org>
6809
6810         printf-posix: Fix link error when a non-GCC compiler is used.
6811         * lib/stdio.in.h (printf): When not using GCC, override printf
6812         correctly.
6813         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6814
6815 2010-12-25  Bruno Haible  <bruno@clisp.org>
6816
6817         strerror_r-posix: Update doc.
6818         * doc/posix-functions/strerror_r.texi: Update doc about the return
6819         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
6820
6821 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6822
6823         utimens: simplify the logic of the previous change
6824         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
6825         This should not affect whether the test succeeds or fails.
6826
6827         utimens: configure better on hosts with NFS clock skew
6828         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
6829         uses the clock of the local host.  It might use the clock of the
6830         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
6831         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
6832
6833 2010-12-25  Bruno Haible  <bruno@clisp.org>
6834
6835         ptsname test: Avoid failure on Solaris.
6836         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
6837         open a pseudo-terminal; don't use BSD-style ptys.
6838         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
6839
6840 2010-12-25  Bruno Haible  <bruno@clisp.org>
6841
6842         ptsname: Avoid ERANGE failure on some systems.
6843         * lib/ptsname.c (buffer): Increase size.
6844
6845 2010-12-25  Bruno Haible  <bruno@clisp.org>
6846
6847         rename, renameat: Avoid test failures at NFS mounted locations.
6848         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
6849         so that subsequent mkdir calls succeed.
6850
6851 2010-12-25  Bruno Haible  <bruno@clisp.org>
6852
6853         iswblank: Fix C++ link error on Solaris 8.
6854         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
6855         _GL_FUNCDECL_SYS.
6856
6857 2010-12-25  Bruno Haible  <bruno@clisp.org>
6858
6859         unistd: Fix C++ link error on Solaris 8.
6860         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
6861
6862 2010-12-25  Bruno Haible  <bruno@clisp.org>
6863
6864         readlink doc: Mention an old glibc bug.
6865         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
6866
6867 2010-12-25  Bruno Haible  <bruno@clisp.org>
6868
6869         fcntl-h: Fix for use of C++ on glibc systems.
6870         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
6871         also on glibc systems in C++ mode.
6872         Reported by Gary V. Vaughan <gary@gnu.org>.
6873
6874 2010-12-25  Bruno Haible  <bruno@clisp.org>
6875
6876         roundl-ieee: Make it work on OSF/1 5.1 with cc.
6877         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
6878
6879 2010-12-25  Bruno Haible  <bruno@clisp.org>
6880
6881         truncl-ieee: Make it work on OSF/1 5.1 with cc.
6882         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
6883         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
6884         test whether truncl works according to ISO C 99 with IEC 60559.
6885         * m4/truncl-ieee.m4: New file.
6886         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
6887         m4/signbit.m4.
6888         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
6889
6890 2010-12-25  Bruno Haible  <bruno@clisp.org>
6891
6892         ceill-ieee: Make it work on OSF/1 5.1 with cc.
6893         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
6894         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
6895         test whether ceill works according to ISO C 99 with IEC 60559.
6896         * m4/ceill-ieee.m4: New file.
6897         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
6898         m4/signbit.m4.
6899         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
6900
6901 2010-12-25  Bruno Haible  <bruno@clisp.org>
6902
6903         Ensure all prerequisites of <wchar.h> are included.
6904         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
6905         before <wchar.h>.
6906         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
6907         gl_MBRLEN_NUL_RETVAL): Likewise.
6908         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
6909         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
6910         AC_FUNC_MBRTOWC): Likewise.
6911         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
6912         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
6913         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6914         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
6915         Likewise.
6916         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6917         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
6918         (gl_WCHAR_H): Improve comments.
6919         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
6920
6921 2010-12-25  Bruno Haible  <bruno@clisp.org>
6922
6923         strtok_r: Fix C syntax error in autoconf macro.
6924         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
6925         characters in test program.
6926
6927 2010-12-24  Bruno Haible  <bruno@clisp.org>
6928
6929         ceil, trunc, round: Fix gcc warnings.
6930         * lib/ceil.c (MIN): Undefine before redefining.
6931         * lib/trunc.c (MIN): Likewise.
6932         * lib/round.c (MIN): Likewise.
6933         Include <math.h> first.
6934
6935 2010-12-24  Bruno Haible  <bruno@clisp.org>
6936
6937         select tests: Avoid failures on OSF/1 5.1.
6938         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
6939         failure of closing the last socket; it may fail with ECONNRESET.
6940
6941 2010-12-24  Eric Blake  <eblake@redhat.com>
6942
6943         stdint: avoid HP-UX 10.20 preprocessor bug
6944         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
6945         than #if.
6946         * tests/test-floor2.c (main): Likewise.
6947         Reported by Peter O'Gorman.
6948
6949         pipe: make obsoletion transition easier
6950         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
6951         * modules/pipe (Files): Include revived file.
6952         (Include): Drop reference, to mirror getdate's behavior.
6953
6954 2010-12-24  Bruno Haible  <bruno@clisp.org>
6955
6956         sys_socket: Hide mismatch of declarations on NonStop Kernel.
6957         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
6958         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
6959         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6960
6961 2010-12-24  Bruno Haible  <bruno@clisp.org>
6962
6963         gethostname: Ensure declaration on NonStop Kernel.
6964         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
6965         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6966
6967 2010-12-24  Bruno Haible  <bruno@clisp.org>
6968
6969         sys_select: Ensure all necessary types on NonStop Kernel.
6970         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
6971         include <sys/time.h>.
6972         * doc/posix-headers/sys_select.texi: Mention that it's missing on
6973         NonStop Kernel.
6974         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6975
6976 2010-12-24  Bruno Haible  <bruno@clisp.org>
6977
6978         sys_select: Remove unneeded include.
6979         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
6980         have <sys/select.h>.
6981
6982 2010-12-24  Bruno Haible  <bruno@clisp.org>
6983
6984         gethostname: Provide a fallback for HOST_NAME_MAX.
6985         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
6986         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
6987         instead.
6988         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6989
6990 2010-12-24  Bruno Haible  <bruno@clisp.org>
6991
6992         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
6993         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
6994         (SA_RESTART): Likewise.
6995         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6996
6997 2010-12-24  Bruno Haible  <bruno@clisp.org>
6998
6999         signal: Define NSIG.
7000         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
7001         * tests/test-signal.c (nsig): New variable.
7002         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7003
7004 2010-12-24  Bruno Haible  <bruno@clisp.org>
7005
7006         rename, renameat: Avoid test failures on OSF/1 5.1.
7007         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
7008         alternative error codes.
7009         * tests/test-renameat.c (main): Likewise.
7010
7011 2010-12-24  Bruno Haible  <bruno@clisp.org>
7012
7013         *printf: Detect large precisions bug on Solaris 10/SPARC.
7014         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
7015         by Paul Eggert.
7016         * tests/test-snprintf-posix.h (test_function): Add this test code here
7017         too.
7018         * tests/test-sprintf-posix.h (test_function): Likewise.
7019         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7020         * tests/test-vasprintf-posix.c (test_function): Likewise.
7021         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
7022         around by gnulib.
7023         * doc/posix-functions/printf.texi: Likewise.
7024         * doc/posix-functions/snprintf.texi: Likewise.
7025         * doc/posix-functions/sprintf.texi: Likewise.
7026         * doc/posix-functions/vfprintf.texi: Likewise.
7027         * doc/posix-functions/vprintf.texi: Likewise.
7028         * doc/posix-functions/vsnprintf.texi: Likewise.
7029         * doc/posix-functions/vsprintf.texi: Likewise.
7030         * doc/posix-functions/dprintf.texi: Undo last commit.
7031         * doc/posix-functions/vdprintf.texi: Likewise.
7032
7033 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
7034
7035         tests: port test-fdutimensat.c to Solaris 8
7036         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
7037         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
7038         On Solaris 8, it fails with errno == ENOSYS, because there is no
7039         futimens (so it can't use the fd), and there is no lutimens (so it
7040         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
7041
7042         vsnprintf: make more consistent with snprintf; doc fixes
7043
7044         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
7045         the byte count return problem was promoted from the snprintf-posix
7046         to the snprintf module.
7047         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
7048         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
7049         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
7050         * tests/test-snprintf.c (main): Check the byte count returned.
7051         * tests/test-vsnprintf.c (main): Likewise.
7052
7053 2010-12-23  Eric Blake  <eblake@redhat.com>
7054
7055         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
7056         * modules/sigpipe (License): Relax license.
7057
7058 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
7059
7060         doc: document Solaris printf bug with large float precisions
7061         * doc/posix-functions/dprintf.texi (dprintf):
7062         * doc/posix-functions/fprintf.texi (fprintf):
7063         * doc/posix-functions/printf.texi (printf):
7064         * doc/posix-functions/snprintf.texi (snprintf):
7065         * doc/posix-functions/sprintf.texi (sprintf):
7066         * doc/posix-functions/vdprintf.texi (vdprintf):
7067         * doc/posix-functions/vfprintf.texi (vfprintf):
7068         * doc/posix-functions/vprintf.texi (vprintf):
7069         * doc/posix-functions/vsnprintf.texi (vsnprintf):
7070         * doc/posix-functions/vsprintf.texi (vsprintf):
7071         Mention that these functions mishandle large floating point
7072         precisions on Solaris 10.  The same bug is also present in Solaris
7073         8, and I assume earlier.  This causes "cd gnulib-tests; make
7074         check" to fail on Solaris 8 (and I assume, later) when building
7075         the latest coreutils, in test-vasprintf-posix's call to
7076         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
7077         the wide flavors (e.g., wprintf) so this patch just updates the
7078         documentation for the narrow ones.
7079
7080         test-posixtm.c: add two tests
7081         * tests/test-posixtm.c: Add two tests, to highlight the
7082         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
7083         around this bug; this is merely to document it.
7084
7085 2010-12-22  Bruno Haible  <bruno@clisp.org>
7086
7087         getlogin_r: Work around portability problem on OSF/1.
7088         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
7089         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
7090         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
7091         test for a truncated result.
7092         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
7093         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
7094         * modules/getlogin_r (Depends-on): Add memchr.
7095         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
7096
7097 2010-12-22  Bruno Haible  <bruno@clisp.org>
7098
7099         ptsname: Avoid test failure on OSF/1 5.1.
7100         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
7101         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
7102         (same_slave): New function.
7103         (main): Use it to compare ptsname's result with the expected file name.
7104
7105 2010-12-22  Bruno Haible  <bruno@clisp.org>
7106
7107         Port extended stdio modules to HP NonStop Kernel.
7108         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
7109         macros.
7110         * lib/fbufmode.c: Update comments.
7111         * lib/fflush.c: Likewise.
7112         * lib/fpurge.c: Likewise.
7113         * lib/freadable.c: Likewise.
7114         * lib/freadahead.c: Likewise.
7115         * lib/freading.c: Likewise.
7116         * lib/freadptr.c: Likewise.
7117         * lib/freadseek.c: Likewise.
7118         * lib/fseeko.c: Likewise.
7119         * lib/fseterr.c: Likewise.
7120         * lib/fwritable.c: Likewise.
7121         * lib/fwriting.c: Likewise.
7122         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7123
7124 2010-12-22  Bruno Haible  <bruno@clisp.org>
7125
7126         ttyname_r: Work around bug on OSF/1 5.1.
7127         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
7128         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
7129         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
7130         present.
7131         * lib/ttyname_r.c (ttyname_r): Update comments.
7132
7133 2010-12-22  Bruno Haible  <bruno@clisp.org>
7134
7135         round: Implement result sign according to IEEE 754.
7136         * lib/round.c (MIN, MINUS_ZERO): New macros.
7137         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
7138         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
7139         * tests/test-round-ieee.c (main): Likewise.
7140         * tests/test-roundl-ieee.c (main): Likewise.
7141
7142         trunc: Implement result sign according to IEEE 754.
7143         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
7144         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
7145         * tests/test-trunc2.c: Include minus-zero.h.
7146         (MINUS_ZERO): New macro.
7147         (trunc_reference): Keep in sync with lib/trunc.c.
7148         * tests/test-truncf2.c: Include minus-zero.h.
7149         (MINUS_ZERO): New macro.
7150         (truncf_reference): Keep in sync with lib/trunc.c.
7151         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
7152         * tests/test-trunc-ieee.c (main): Likewise.
7153         * tests/test-truncl-ieee.c (main): Likewise.
7154
7155         ceil: Implement result sign according to IEEE 754.
7156         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
7157         (FUNC): Return -0.0 for -1 < x < 0.
7158         * tests/test-ceil2.c: Include minus-zero.h.
7159         (MINUS_ZERO): New macro.
7160         (ceil_reference): Keep in sync with lib/ceil.c.
7161         * tests/test-ceilf2.c: Include minus-zero.h.
7162         (MINUS_ZERO): New macro.
7163         (ceilf_reference): Keep in sync with lib/ceil.c.
7164         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
7165         * tests/test-ceil-ieee.c (main): Likewise.
7166         * tests/test-ceill-ieee.c (main): Likewise.
7167
7168         floor: Implement result sign according to IEEE 754.
7169         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
7170         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
7171         * tests/test-floorf2.c (floorf_reference): Likewise.
7172         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
7173         * tests/test-floor-ieee.c (main): Likewise.
7174         * tests/test-floorl-ieee.c (main): Likewise.
7175
7176 2010-12-22  Bruno Haible  <bruno@clisp.org>
7177
7178         getaddrinfo: Update doc.
7179         * doc/posix-functions/gai_strerror.texi: Return type is also different
7180         on AIX and HP-UX.
7181
7182 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
7183
7184         getaddrinfo, inet_ntop: Update doc for Solaris.
7185         * doc/posix-functions/gai_strerror.texi: Return type is also an
7186         issue on Solaris 9 and earlier.
7187         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
7188         on Solaris 10 and earlier.
7189
7190 2010-12-21  Bruno Haible  <bruno@clisp.org>
7191
7192         New module 'roundl-ieee'.
7193         * modules/roundl-ieee: New file.
7194         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
7195         test whether roundl works according to ISO C 99 with IEC 60559.
7196         * m4/roundl-ieee.m4: New file.
7197         * modules/roundl-ieee-tests: New file.
7198         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
7199         * tests/test-roundl.c (main): Remove signbit tests.
7200         * modules/roundl-tests (Depends-on): Remove signbit.
7201         * doc/posix-functions/roundl.texi: Mention the new module.
7202
7203 2010-12-21  Bruno Haible  <bruno@clisp.org>
7204
7205         New module 'truncl-ieee'.
7206         * modules/truncl-ieee: New file.
7207         * modules/truncl-ieee-tests: New file.
7208         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
7209         * tests/test-truncl.c (main): Remove signbit tests.
7210         * modules/truncl-tests (Depends-on): Remove signbit.
7211         * doc/posix-functions/truncl.texi: Mention the new module.
7212
7213 2010-12-21  Bruno Haible  <bruno@clisp.org>
7214
7215         New module 'ceill-ieee'.
7216         * modules/ceill-ieee: New file.
7217         * modules/ceill-ieee-tests: New file.
7218         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
7219         * tests/test-ceill.c (main): Remove signbit tests.
7220         * modules/ceill-tests (Depends-on): Remove signbit.
7221         * doc/posix-functions/ceill.texi: Mention the new module.
7222
7223 2010-12-21  Bruno Haible  <bruno@clisp.org>
7224
7225         New module 'floorl-ieee'.
7226         * modules/floorl-ieee: New file.
7227         * modules/floorl-ieee-tests: New file.
7228         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
7229         * tests/test-floorl.c (main): Remove signbit tests.
7230         * modules/floorl-tests (Depends-on): Remove signbit.
7231         * doc/posix-functions/floorl.texi: Mention the new module.
7232
7233 2010-12-21  Bruno Haible  <bruno@clisp.org>
7234
7235         New module 'round-ieee'.
7236         * modules/round-ieee: New file.
7237         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
7238         whether round works according to ISO C 99 with IEC 60559.
7239         * m4/round-ieee.m4: New file.
7240         * modules/round-ieee-tests: New file.
7241         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
7242         * tests/test-round1.c (main): Remove signbit tests.
7243         * modules/round-tests (Depends-on): Remove 'signbit'.
7244         * doc/posix-functions/round.texi: Mention the new module.
7245
7246 2010-12-21  Bruno Haible  <bruno@clisp.org>
7247
7248         New module 'trunc-ieee'.
7249         * modules/trunc-ieee: New file.
7250         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
7251         whether trunc works according to ISO C 99 with IEC 60559.
7252         * m4/trunc-ieee.m4: New file.
7253         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
7254         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
7255         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
7256         * modules/trunc-ieee-tests: New file.
7257         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
7258         * tests/test-trunc1.c (main): Remove signbit tests.
7259         * modules/trunc-tests (Depends-on): Remove 'signbit'.
7260         * doc/posix-functions/trunc.texi: Mention the new module.
7261
7262 2010-12-21  Bruno Haible  <bruno@clisp.org>
7263
7264         New module 'ceil-ieee'.
7265         * modules/ceil-ieee: New file.
7266         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
7267         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
7268         ISO C 99 with IEC 60559.
7269         * m4/ceil-ieee.m4: New file.
7270         * modules/ceil (Files): Add lib/ceil.c.
7271         (Depends-on): Add 'float'.
7272         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
7273         * lib/math.in.h (ceil): New declaration.
7274         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
7275         REPLACE_CEIL.
7276         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
7277         * modules/ceil-ieee-tests: New file.
7278         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
7279         * tests/test-math-c++.cc: Check the signature of 'ceil'.
7280         * doc/posix-functions/ceil.texi: Mention the new module.
7281
7282 2010-12-21  Bruno Haible  <bruno@clisp.org>
7283
7284         New module 'floor-ieee'.
7285         * modules/floor-ieee: New file.
7286         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
7287         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
7288         ISO C 99 with IEC 60559.
7289         * m4/floor-ieee.m4: New file.
7290         * modules/floor (Files): Add lib/floor.c.
7291         (Depends-on): Add 'float'.
7292         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
7293         * lib/math.in.h (floor): New declaration.
7294         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
7295         REPLACE_FLOOR.
7296         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
7297         * modules/floor-ieee-tests: New file.
7298         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
7299         * tests/test-math-c++.cc: Check the signature of 'floor'.
7300         * doc/posix-functions/floor.texi: Mention the new module.
7301
7302 2010-12-21  Bruno Haible  <bruno@clisp.org>
7303
7304         New module 'roundf-ieee'.
7305         * modules/roundf-ieee: New file.
7306         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
7307         test whether roundf works according to ISO C 99 with IEC 60559.
7308         * m4/roundf-ieee.m4: New file.
7309         * modules/roundf-ieee-tests: New file.
7310         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
7311         * tests/test-roundf1.c (main): Remove signbit tests.
7312         * modules/roundf-tests (Depends-on): Remove 'signbit'.
7313         * doc/posix-functions/roundf.texi: Mention the new module.
7314
7315 2010-12-21  Bruno Haible  <bruno@clisp.org>
7316
7317         New module 'truncf-ieee'.
7318         * modules/truncf-ieee: New file.
7319         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
7320         test whether truncf works according to ISO C 99 with IEC 60559.
7321         * m4/truncf-ieee.m4: New file.
7322         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
7323         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
7324         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
7325         * modules/truncf-ieee-tests: New file.
7326         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
7327         * tests/test-truncf1.c (main): Remove signbit tests.
7328         * modules/truncf-tests (Depends-on): Remove 'signbit'.
7329         * doc/posix-functions/truncf.texi: Mention the new module.
7330
7331 2010-12-21  Bruno Haible  <bruno@clisp.org>
7332
7333         New module 'ceilf-ieee'.
7334         * modules/ceilf-ieee: New file.
7335         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
7336         test whether ceilf works according to ISO C 99 with IEC 60559.
7337         * m4/ceilf-ieee.m4: New file.
7338         * modules/ceilf-ieee-tests: New file.
7339         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
7340         * tests/test-ceilf1.c (main): Remove signbit tests.
7341         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
7342         * doc/posix-functions/ceilf.texi: Mention the new module.
7343
7344 2010-12-21  Bruno Haible  <bruno@clisp.org>
7345
7346         New module 'floorf-ieee'.
7347         * modules/floorf-ieee: New file.
7348         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
7349         test whether floorf works according to ISO C 99 with IEC 60559.
7350         * m4/floorf-ieee.m4: New file.
7351         * modules/floorf-ieee-tests: New file.
7352         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
7353         * tests/test-floorf1.c (main): Remove signbit tests.
7354         * modules/floorf-tests (Depends-on): Remove 'signbit'.
7355         * doc/posix-functions/floorf.texi: Mention the new module.
7356
7357 2010-12-21  Bruno Haible  <bruno@clisp.org>
7358
7359         Support for minus zero in autoconf macros.
7360         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
7361         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
7362         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
7363         * tests/minus-zero.h: Update comments.
7364
7365 2010-12-21  Bruno Haible  <bruno@clisp.org>
7366
7367         Tests for module 'ceil'.
7368         * modules/ceil-tests: New file.
7369         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
7370         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
7371
7372 2010-12-21  Bruno Haible  <bruno@clisp.org>
7373
7374         Tests for module 'floor'.
7375         * modules/floor-tests: New file.
7376         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
7377         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
7378
7379 2010-12-21  Bruno Haible  <bruno@clisp.org>
7380
7381         math: Fix indentation.
7382         * lib/math.in.h (floorf): Fix indentation.
7383
7384 2010-12-21  Bruno Haible  <bruno@clisp.org>
7385
7386         Fix cross-compilation guesses on Solaris.
7387         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
7388         not match "solaris2.10".
7389         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
7390         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
7391         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
7392
7393 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
7394
7395         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
7396         This fixes a problem observed with the latest coreutils snapshot
7397         that caused a test to fail on Solaris 8.  src/csplit.c's call
7398         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
7399         earlier, instead of returning the number of bytes that would have
7400         been generated; this causes csplit to incorrectly report memory
7401         exhaustion.
7402         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
7403         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
7404         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
7405         comments to match.
7406         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
7407         Fix typo in matching older versions of Solaris: "solaris2.10"
7408         is matched by the shell pattern "solaris2.[0-9]*".  This matters
7409         only for guessing while cross-compiling.
7410         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
7411
7412 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
7413
7414         ftoastr: fix comment again
7415         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
7416         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
7417         Also, simplify example a bit by using flags = 0.
7418
7419 2010-12-20  Bruno Haible  <bruno@clisp.org>
7420
7421         round*, trunc*: Update documentation regarding glibc.
7422         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
7423         * doc/posix-functions/round.texi: Likewise.
7424         * doc/posix-functions/roundl.texi: Likewise.
7425         * doc/posix-functions/truncf.texi: Likewise.
7426         * doc/posix-functions/trunc.texi: Likewise.
7427         * doc/posix-functions/truncl.texi: Likewise.
7428
7429 2010-12-20  Bruno Haible  <bruno@clisp.org>
7430
7431         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
7432         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
7433         * doc/posix-functions/round.texi: Likewise.
7434         * doc/posix-functions/roundl.texi: Likewise.
7435
7436 2010-12-20  Bruno Haible  <bruno@clisp.org>
7437
7438         ttyname_r: Add missing declaration on HP-UX 11.
7439         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
7440         HAVE_TTYNAME_R.
7441         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
7442         declared. Set HAVE_TTYNAME_R always.
7443         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7444         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
7445         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
7446         HAVE_TTYNAME_R.
7447         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
7448
7449 2010-12-20  Bruno Haible  <bruno@clisp.org>
7450
7451         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
7452         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
7453         * doc/posix-functions/getlogin_r.texi: Likewise.
7454         * tests/test-getlogin.c: Include <errno.h>.
7455         (main): Avoid test failure on HP-UX 11.11.
7456         * tests/test-getlogin_r.c (main): Likewise.
7457
7458 2010-12-20  Bruno Haible  <bruno@clisp.org>
7459
7460         getlogin_r: Add missing declaration on HP-UX 11.
7461         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
7462         declared also when it exists as a function.
7463         * doc/posix-functions/getlogin_r.texi: Document this workaround.
7464
7465 2010-12-20  Bruno Haible  <bruno@clisp.org>
7466
7467         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
7468         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
7469         through wcrtomb.
7470
7471 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
7472
7473         ftoastr: fix comment
7474         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
7475         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
7476
7477 2010-12-19  Bruno Haible  <bruno@clisp.org>
7478
7479         isnan: Ensure it is a macro.
7480         * lib/math.in.h (isnan): Define as a macro if not already a macro.
7481         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
7482         Solaris.
7483
7484 2010-12-19  Bruno Haible  <bruno@clisp.org>
7485
7486         ldexpl test: Fix link error on OSF/1 5.1.
7487         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
7488
7489 2010-12-19  Bruno Haible  <bruno@clisp.org>
7490
7491         wctype: Make it work in C++ mode on OSF/1 5.1.
7492         * lib/wctype.in.h (iswblank): Declare but not define here.
7493         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
7494         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
7495         * modules/wctype (Files): Add lib/iswblank.c.
7496
7497 2010-12-19  Bruno Haible  <bruno@clisp.org>
7498
7499         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
7500         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
7501         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
7502
7503 2010-12-19  Bruno Haible  <bruno@clisp.org>
7504
7505         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
7506         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
7507         _POSIX_PII_SOCKET.
7508         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
7509         * doc/posix-functions/recvfrom.texi: Likewise.
7510         * doc/posix-functions/send.texi: Likewise.
7511         * doc/posix-functions/sendto.texi: Likewise.
7512
7513 2010-12-19  Bruno Haible  <bruno@clisp.org>
7514
7515         tcgetsid: Add missing declaration on OSF/1 5.1.
7516         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
7517         HAVE_TCGETSID.
7518         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
7519         Don't set HAVE_TCGETSID.
7520         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
7521         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
7522         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
7523         HAVE_TCGETSID.
7524         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
7525
7526 2010-12-19  Bruno Haible  <bruno@clisp.org>
7527
7528         stdio: Fix problem with popen() declaration on OSF/1 5.1.
7529         * lib/stdio.in.h: During the include_next statement, let recursive
7530         includes of this file include only the system header file.
7531
7532 2010-12-19  Bruno Haible  <bruno@clisp.org>
7533
7534         iconv_open: Fix regression from 2010-12-04.
7535         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
7536         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
7537
7538 2010-12-19  Bruno Haible  <bruno@clisp.org>
7539
7540         stdbool test: Avoid a gcc warning.
7541         * tests/test-stdbool.c (main): Fail if e1 is false.
7542         Reported by Jim Meyering.
7543
7544 2010-12-19  Jim Meyering  <meyering@redhat.com>
7545
7546         setenv: restore to working order
7547         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
7548         mistakenly removed.
7549         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
7550         HAVE_SETENV.
7551         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
7552         HAVE_SETENV.
7553
7554 2010-12-19  Bruno Haible  <bruno@clisp.org>
7555
7556         Document some different function declarations on OSF/1 5.1.
7557         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
7558         * doc/posix-functions/inet_ntop.texi: Likewise.
7559         * doc/posix-functions/gethostname.texi: Likewise.
7560         * lib/unistd.in.h (gethostname): Update comment.
7561
7562 2010-12-19  Bruno Haible  <bruno@clisp.org>
7563
7564         doc: Mention vasprintf-posix module.
7565         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
7566         the 'vasprintf-posix' module.
7567         * doc/glibc-functions/vasprintf.texi: Likewise.
7568
7569 2010-12-19  Bruno Haible  <bruno@clisp.org>
7570
7571         unsetenv: Add missing declaration on OSF/1 5.1.
7572         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
7573         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
7574         Don't set HAVE_UNSETENV. In the test program, set _BSD.
7575         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
7576         not HAVE_UNSETENV.
7577         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
7578         HAVE_UNSETENV.
7579         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
7580
7581 2010-12-19  Bruno Haible  <bruno@clisp.org>
7582
7583         setenv: Add missing declaration on OSF/1 5.1.
7584         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
7585         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
7586         declared. Don't set HAVE_SETENV.
7587         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
7588         not HAVE_SETENV.
7589         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
7590         HAVE_SETENV.
7591         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
7592
7593 2010-12-19  Bruno Haible  <bruno@clisp.org>
7594
7595         nl_langinfo tests: Avoid gcc warning.
7596         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
7597
7598 2010-12-19  Bruno Haible  <bruno@clisp.org>
7599
7600         mknod: Avoid error in C++ mode on OSF/1 with GCC.
7601         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
7602         _GL_CXXALIAS_SYS.
7603
7604 2010-12-19  Bruno Haible  <bruno@clisp.org>
7605
7606         stdbool: Relax test.
7607         * tests/test-stdbool.c (e): Don't require that casts from a variable's
7608         address to 'bool' work in static initializer, for compilers other than
7609         GCC.
7610
7611 2010-12-19  Bruno Haible  <bruno@clisp.org>
7612
7613         ftello: Add missing declaration on OSF/1 5.1.
7614         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
7615         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
7616         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
7617         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
7618         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
7619
7620 2010-12-19  Bruno Haible  <bruno@clisp.org>
7621
7622         fseeko: Add missing declaration on OSF/1 5.1.
7623         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
7624         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
7625         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
7626         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
7627         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
7628
7629 2010-12-19  Bruno Haible  <bruno@clisp.org>
7630
7631         fchdir: Add missing declaration on OSF/1 5.1.
7632         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
7633         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
7634         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
7635         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
7636         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
7637
7638 2010-12-19  Bruno Haible  <bruno@clisp.org>
7639
7640         relocatable-prog-wrapper: Separate from relocatable-prog.
7641         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
7642         uninstall-relocwrapper rule here.
7643         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
7644         Reported by Ian Beckwith <ianb@erislabs.net>.
7645
7646 2010-12-19  Bruno Haible  <bruno@clisp.org>
7647
7648         unistr/u8-mbsnlen: Add missing dependency.
7649         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
7650         Reported by Ian Beckwith <ianb@erislabs.net>.
7651
7652 2010-12-19  Bruno Haible  <bruno@clisp.org>
7653
7654         iconv: Make it possible again to use this module without 'iconv-h'.
7655         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
7656         if it is not defined.
7657         Reported by Ian Beckwith <ianb@erislabs.net>.
7658
7659 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7660
7661         acl: port to Solaris 8 when copying from tmpfs to ufs
7662         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
7663         error number.  Problem observed on Solaris 8 with latest
7664         coreutils, with "mv A B", where A is on a tmpfs file system and B
7665         is on a ufs file system.  This caused coreutils' mv/part-symlink
7666         test to fail.
7667
7668         tests: set fail=0 at start
7669         * tests/init.sh (setup_): Move fail=0 initialization here ...
7670         (mktempd_): ... from here, so that tests can rely on fail being
7671         set to 0 initially.  This fixes a problem in coreutils; see:
7672         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
7673
7674 2010-12-18  Bruno Haible  <bruno@clisp.org>
7675
7676         memmem-simple: Stylistic changes.
7677         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
7678         Fix preprocessor directive indentation.
7679
7680 2010-12-15  Pádraig Brady <P@draigBrady.com>
7681
7682         memmem, memmem-simple: reorganize and expand empty needle check
7683         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
7684         functional checks to memmem-simple so that one has a fully functional
7685         memmem by using just this module.
7686         Restrict the performance only check to the memmem module.
7687         Also expand the empty needle check to ensure the correct
7688         pointer is returned, not just a non NULL pointer.
7689         * doc/glibc-functions/memmem.texi: Rearrange the portability
7690         documentation to correlate with the rearranged checks.
7691         Clarify exactly how the memmem and memmem-simple modules
7692         relate to each other.
7693
7694 2010-12-15  Pádraig Brady <P@draigBrady.com>
7695             Bruno Haible  <bruno@clisp.org>
7696
7697         Improve cross-compilation guesses for uClibc.
7698         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
7699         that uClibc does not have the glibc bug.
7700         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
7701         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
7702
7703 2010-12-14  Eric Blake  <eblake@redhat.com>
7704
7705         configmake: provide fallbacks for oldest supported autotools
7706         * m4/configmake.m4: New file.
7707         * modules/configmake (Files): Ship it.
7708         (configure.ac): Use it to guarantee fallbacks.
7709
7710 2010-12-13  Pádraig Brady <P@draigBrady.com>
7711
7712         read-file: Improve handling of large files
7713         * lib/read-file.c (fread_file): Minimize realloc()s
7714         for regular files, and better manage sizes around SIZE_MAX.
7715
7716 2010-12-13  Eric Blake  <eblake@redhat.com>
7717
7718         cloexec, fcntl: relax license
7719         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
7720         consent from all contributors.
7721         * modules/fcntl (License): Likewise.
7722
7723 2010-12-10  Bruno Haible  <bruno@clisp.org>
7724
7725         Tests for module 'pipe-posix'.
7726         * modules/pipe-posix-tests: New file.
7727         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
7728
7729 2010-12-10  Bruno Haible  <bruno@clisp.org>
7730
7731         pipe-posix: Make it work in C++ mode.
7732         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
7733         (pipe): Use common idiom, not a macro definition.
7734         * lib/pipe.c: New file.
7735         * m4/pipe.m4: New file.
7736         * modules/pipe-posix (Description): Enhance.
7737         (Files): Add lib/pipe.c, m4/pipe.m4.
7738         (configure.ac): Invoke gl_FUNC_PIPE.
7739         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
7740         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
7741         * tests/test-unistd-c++.cc: Check the signature of pipe.
7742
7743 2010-12-10  Bruno Haible  <bruno@clisp.org>
7744
7745         Rename module 'pipe' to 'spawn-pipe'.
7746         * modules/spawn-pipe: New file, renamed from modules/pipe.
7747         (Files, configure.ac, Makefile.am): Update.
7748         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
7749         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
7750         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
7751         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
7752         "spawn-pipe.h" instead of "pipe.h".
7753         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
7754         to gl_SPAWN_PIPE.
7755         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
7756         (Files, Makefile.am): Update.
7757         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
7758         Update.
7759         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
7760         Include "spawn-pipe.h" instead of "pipe.h".
7761         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
7762         * lib/javacomp.c: Likewise.
7763         * lib/javaversion.c: Likewise.
7764         * lib/pipe-filter-gi.c: Likewise.
7765         * lib/pipe-filter-ii.c: Likewise.
7766         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
7767         * modules/javacomp (Depends-on): Likewise.
7768         * modules/javaversion (Depends-on): Likewise.
7769         * modules/pipe-filter-gi (Depends-on): Likewise.
7770         * modules/pipe-filter-ii (Depends-on): Likewise.
7771         * MODULES.html.sh (Executing programs): Update.
7772         * NEWS: Mention the change.
7773
7774 2010-12-10  Eric Blake  <eblake@redhat.com>
7775
7776         pipe-posix: new module
7777         * modules/pipe-posix: New file.
7778         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
7779         (gl_UNISTD_H): Check for declaration.
7780         * modules/unistd (Makefile.am): Substitute it.
7781         * lib/unistd.in.h (pipe): Provide it for mingw.
7782         * doc/posix-functions/pipe.texi (pipe): Update documentation.
7783         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
7784
7785 2010-12-07  Bruno Haible  <bruno@clisp.org>
7786
7787         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
7788         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
7789         u8_strcmp_gnu.
7790         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
7791
7792 2010-12-06  Bruno Haible  <bruno@clisp.org>
7793
7794         Update internal documentation.
7795         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
7796
7797 2010-12-04  Bruno Haible  <bruno@clisp.org>
7798
7799         Put more information about failed tests into the test return codes.
7800         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
7801         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
7802         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
7803         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
7804         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
7805         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
7806         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7807         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
7808         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
7809         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7810         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
7811         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
7812         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
7813         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7814         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
7815         returns a bit mask.
7816         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
7817         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
7818         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
7819         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
7820         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7821         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
7822         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
7823         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
7824         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
7825         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
7826         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
7827         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
7828         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
7829         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
7830         * m4/link.m4 (gl_FUNC_LINK): Likewise.
7831         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
7832         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
7833         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
7834         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
7835         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
7836         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
7837         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
7838         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
7839         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
7840         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
7841         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
7842         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
7843         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
7844         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
7845         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
7846         gl_PRINTF_PRECISION): Likewise.
7847         * m4/regex.m4 (gl_REGEX): Likewise.
7848         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
7849         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
7850         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
7851         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7852         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
7853         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
7854         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
7855         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
7856         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
7857         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
7858         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
7859         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
7860         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
7861         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
7862         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
7863         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7864         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
7865         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
7866         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
7867         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
7868         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
7869         enumerated value.
7870         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
7871
7872 2010-12-04  Bruno Haible  <bruno@clisp.org>
7873
7874         Update for Solaris 11 2010-11.
7875         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
7876         Express, released in November 2010.
7877
7878 2010-12-04  Bruno Haible  <bruno@clisp.org>
7879
7880         nproc: Relax license.
7881         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
7882         and Paul Eggert.
7883         Requested by Ludovic Courtès <ludo@gnu.org>.
7884
7885 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
7886
7887         utimecmp: fine-grained src to nearby coarse-grained dest
7888
7889         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
7890         and the source is on a file system with higher-resolution time
7891         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
7892         not work, and the time stamps are close together, the algorithm to
7893         determine the exact resolution from the read-back mtime was buggy:
7894         it had a "!=" where it should have had an "==".  This bug has been
7895         in the code ever since it was introduced to gnulib.
7896         Problem reported by Dan Jacobson in
7897         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
7898
7899 2010-11-30  Bruno Haible  <bruno@clisp.org>
7900
7901         strerror_r-posix: Fix autoconf test.
7902         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
7903
7904 2010-11-28  Bruno Haible  <bruno@clisp.org>
7905             Paul Eggert  <eggert@cs.ucla.edu>
7906
7907         Tests for module 'getdomainname'.
7908         * modules/getdomainname-tests: New file.
7909         * tests/test-getdomainname.c: New file, based on
7910         tests/test-gethostname.c.
7911
7912 2010-11-28  Bruno Haible  <bruno@clisp.org>
7913             Paul Eggert  <eggert@cs.ucla.edu>
7914
7915         getdomainname: Use the system function when possible.
7916         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
7917         (getdomainname): Replace if needed. Provide the declaration if it is
7918         missing. Don't use _GL_CXXALIAS_SYS_CAST.
7919         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
7920         (getdomainname): When the system has getdomainname, call the system
7921         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
7922         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
7923         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
7924         found in libnsl. Look for the declaration also in <netdb.h>. Replace
7925         the function if its second argument is of type 'int' or if it is found
7926         in libnsl.
7927         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
7928         <sys/systeminfo.h> and sysinfo().
7929         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
7930         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7931         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
7932         HAVE_GETDOMAINNAME.
7933         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
7934         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
7935         * doc/glibc-functions/getdomainname.texi: Document the problems with
7936         the getdomainname declaration.
7937
7938 2010-11-28  Bruno Haible  <bruno@clisp.org>
7939
7940         sys_socket: Ensure ss_family field on AIX.
7941         * lib/sys_socket.in.h (ss_family): New macro definition.
7942         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
7943         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
7944         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
7945         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
7946         * modules/sys_socket (Makefile.am): Substitute
7947         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
7948         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
7949
7950 2010-11-27  Bruno Haible  <bruno@clisp.org>
7951
7952         readline: Improve configure output.
7953         * m4/readline.m4 (gl_FUNC_READLINE): Make the
7954         "checking for readline..." result understandable.
7955
7956 2010-11-27  Bruno Haible  <bruno@clisp.org>
7957
7958         *printf-posix: Detect a bug on Solaris 10/x86.
7959         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
7960         for floating-point output.
7961         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
7962         directive.
7963         * tests/test-snprintf-posix.h (test_function): Likewise.
7964         * tests/test-sprintf-posix.h (test_function): Likewise.
7965         * tests/test-vasprintf-posix.c (test_function): Likewise.
7966         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
7967         * doc/posix-functions/printf.texi: Likewise.
7968         * doc/posix-functions/snprintf.texi: Likewise.
7969         * doc/posix-functions/sprintf.texi: Likewise.
7970         * doc/posix-functions/vfprintf.texi: Likewise.
7971         * doc/posix-functions/vprintf.texi: Likewise.
7972         * doc/posix-functions/vsnprintf.texi: Likewise.
7973         * doc/posix-functions/vsprintf.texi: Likewise.
7974         * doc/glibc-functions/obstack_printf.texi: Likewise.
7975         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
7976
7977 2010-11-27  Bruno Haible  <bruno@clisp.org>
7978
7979         Fix link error when module libunistring-optional is in use.
7980         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
7981         * modules/striconveha-tests (Makefile.am): Likewise.
7982
7983 2010-11-27  Bruno Haible  <bruno@clisp.org>
7984
7985         regex: Mention link dependencies.
7986         * modules/regex (Link): New section.
7987         * modules/rpmatch (Link): Likewise.
7988         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
7989
7990 2010-11-27  Bruno Haible  <bruno@clisp.org>
7991
7992         ftoastr: Fix compilation error on Solaris.
7993         * lib/ftoastr.c: Include <config.h>.
7994
7995 2010-11-27  Bruno Haible  <bruno@clisp.org>
7996
7997         getloadavg: Update documentation.
7998         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
7999
8000 2010-11-27  Bruno Haible  <bruno@clisp.org>
8001
8002         sys_socket: Fix test whether the functions are declared.
8003         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
8004         not <sys/select.h>.
8005
8006 2010-11-27  Bruno Haible  <bruno@clisp.org>
8007
8008         getpass: Make sure to get system declaration on some platforms.
8009         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
8010         gl_USE_SYSTEM_EXTENSIONS.
8011         * modules/getpass (Depends-on): Add extensions.
8012
8013 2010-11-26  Bruno Haible  <bruno@clisp.org>
8014
8015         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
8016         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
8017         'iconv' module is present.
8018         (ICONV_CONST): New macro.
8019         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
8020         ICONV_CONST.
8021         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
8022         set ICONV_CONST.
8023         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
8024         here.
8025         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
8026         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
8027         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
8028         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
8029         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
8030         present.
8031
8032 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
8033
8034         ftoastr: comment fix
8035         * lib/ftoastr.c: "little" -> "little or no" in comment
8036
8037 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
8038
8039         stdint: port to GCC 4.3 + OSX + Octave
8040         On this platform, stdint.h is buggy and defines int64_t to long
8041         long int.  The replacement defined it to long int, causing
8042         problems with C++ style name mangling.  Instead, trust the system
8043         definition if INT64_MAX is defined, and likewise for the unsigned
8044         variant.   Problem reported by Jarno Rajahalme in
8045         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
8046         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
8047         and don't mess with int64_t and INT64_MAX in this case.
8048         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
8049
8050 2010-11-24  Bruno Haible  <bruno@clisp.org>
8051
8052         doc: Corrections regarding MacOS X 10.4 and 10.5.
8053         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
8054         MacOS X.
8055         Reported by Simon Josefsson.
8056
8057 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
8058
8059         Uninstall ".bin" files installed by relocwrapper.
8060         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
8061         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
8062         unless it is already there.
8063
8064 2010-11-21  Bruno Haible  <bruno@clisp.org>
8065
8066         Update for NetBSD 5.0.
8067         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
8068         NetBSD; the test fails on NetBSD 5.0.
8069         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
8070         about NetBSD.
8071
8072 2010-11-21  Bruno Haible  <bruno@clisp.org>
8073
8074         Update for HP-UX 11.23 and HP-UX 11.31.
8075         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
8076         HP-UX.
8077
8078 2010-11-21  Bruno Haible  <bruno@clisp.org>
8079
8080         Update for MacOS X 10.5.
8081         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
8082         MacOS X; the test fails on MacOS X 10.5.8.
8083         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
8084         about MacOS X.
8085
8086 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
8087
8088         bootstrap: add bootstrap_sync option.
8089         See discussion at
8090         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
8091         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
8092         * build-aux/bootstrap: Accept --bootstrap-sync to update
8093         bootstrap if it is not identical to the local gnulib's
8094         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
8095         enable this by default.  Accept --no-bootstrap-sync to disable
8096         it.
8097
8098 2010-11-20  Bruno Haible  <bruno@clisp.org>
8099
8100         Ensure that <features.h> is included before __GLIBC__ is tested.
8101         * lib/printf-parse.h: Include <features.h>.
8102         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
8103         Reported by Mike Frysinger <vapier@gentoo.org>.
8104
8105         Ensure that <features.h> is included before __GLIBC__ is tested.
8106         * lib/wchar.in.h: Include <features.h>.
8107         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
8108         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
8109         Reported by Mike Frysinger <vapier@gentoo.org>.
8110
8111         Ensure that <features.h> is included before __GLIBC__ is tested.
8112         * lib/arpa_inet.in.h: Include <features.h>.
8113         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
8114         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
8115         Reported by Mike Frysinger <vapier@gentoo.org>.
8116
8117         Ensure that <features.h> is included before __GLIBC__ is tested.
8118         * build-aux/link-warning.h: Include <features.h>.
8119         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
8120         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
8121         Reported by Mike Frysinger <vapier@gentoo.org>.
8122
8123         Ensure that <features.h> is included before __GLIBC__ is tested.
8124         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
8125         Reported by Mike Frysinger <vapier@gentoo.org>.
8126
8127 2010-11-20  Bruno Haible  <bruno@clisp.org>
8128
8129         memmem: Fix autoconf test.
8130         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
8131
8132 2010-11-20  Bruno Haible  <bruno@clisp.org>
8133
8134         Port to uClibc.
8135         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
8136         * lib/fcntl.in.h: Likewise.
8137         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
8138         * lib/mbrtowc.c (mbrtowc): Likewise.
8139         * lib/relocatable.c (find_shared_library_fullname): Likewise.
8140         * lib/strerror_r.c: Likewise.
8141         * lib/unistr/u8-strnlen.c: Likewise.
8142         * lib/vasnprintf.c (decimal_point_char): Likewise.
8143         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
8144         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
8145         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
8146         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
8147         * tests/test-sigaction.c (handler, main): Likewise.
8148         * lib/freading.h: Treat uClibc like a non-glibc platform.
8149         * lib/freading.c: Likewise.
8150         * lib/gettext.h: Likewise.
8151         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
8152         Likewise.
8153         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
8154         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
8155         * lib/propername.c (proper_name_utf8): Likewise.
8156         * lib/spawn.in.h: Likewise.
8157         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
8158         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
8159         mem_cd_iconveh_internal): Likewise.
8160         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
8161         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
8162         strstr, strcasestr): Likewise.
8163         * lib/unicodeio.c (unicode_to_mb): Likewise.
8164         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
8165         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
8166         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
8167         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
8168         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
8169         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
8170         * lib/unistr/u8-stpncpy.c: Likewise.
8171         * lib/vasnprintf.c (VASNPRINTF): Likewise.
8172         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
8173         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8174         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8175         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
8176         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
8177         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
8178         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
8179         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
8180         Likewise.
8181         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
8182         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
8183         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
8184         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8185         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
8186         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8187         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8188         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
8189         * tests/test-getopt.h (OPTIND_MIN): Likewise.
8190         * tests/test-striconveha.c (main): Likewise.
8191         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8192         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
8193         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
8194         * doc/posix-functions/getline.texi: Likewise.
8195         Reported by Mike Frysinger <vapier@gentoo.org>.
8196
8197 2010-11-20  Bruno Haible  <bruno@clisp.org>
8198
8199         nproc: Fix condition.
8200         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
8201         HAVE_PTHREAD_AFFINITY_NP.
8202
8203 2010-11-20  Bruno Haible  <bruno@clisp.org>
8204
8205         Fix a comment.
8206         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
8207
8208 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
8209
8210         ftoastr: don't assume snprintf
8211         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
8212         Implement a subset of snprintf here, by using sprintf safely.
8213         * modules/ftoastr (Depends-on): Remove snprintf.
8214
8215 2010-11-19  Jim Meyering  <meyering@redhat.com>
8216
8217         test-rename.h: fix compilation failure
8218         * tests/test-rename.h (test_rename): Add omitted "}".
8219
8220 2010-11-17  Jim Meyering  <meyering@redhat.com>
8221
8222         maint.mk: add a URL discussing the no-@acronym policy
8223         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
8224
8225 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
8226
8227         ftoastr: depend on snprintf, improve comments
8228         * lib/ftoastr.c: Also mention Loitsch's draft.
8229         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
8230         needed in the current implementation, but it might simplify
8231         speeding up the code later.
8232         * modules/ftoastr: Depend on snprintf; this improves portability.
8233         Suggested by Bruno Haible in the same email.
8234
8235         ftoastr: port to hosts lacking strtof and strtold
8236         Problem reported by Bruno Haible in
8237         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
8238         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
8239         environment and strtold (and presumably strtof) are not available.
8240         * modules/ftoastr (Files): Add m4/c-strtod.m4.
8241         (configure.ac): Require gl_C99_STRTOLD.
8242
8243 2010-11-18  Bruno Haible  <bruno@clisp.org>
8244
8245         c-strtold: Avoid link error on AIX 7.
8246         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
8247         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
8248         (gl_C_STRTOLD): Test whether strtold_l exists.
8249         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8250
8251 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
8252
8253         intprops: new macro INT_BITS_STRLEN_BOUND
8254         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
8255         ftoastr.h.  This exposes an internal of intprops.h that was formerly
8256         not exposed.  Also, it uses a slightly tighter bound than before;
8257         though this makes no practical difference, we might as well be as
8258         tight as we easily can.
8259
8260         ftoastr: new module, for lossless conversion of floats to short strings
8261         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
8262         * modules/ftoastr: New files.
8263
8264 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
8265
8266         bootstrap: port to Solaris sed
8267         * build-aux/bootstrap (get_version): Port to Solaris sed.
8268         See Ralf Wildenhues's note in
8269         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
8270
8271 2010-11-14  Jim Meyering  <meyering@redhat.com>
8272
8273         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
8274         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
8275         and move definition closer to sole use.
8276
8277 2010-11-13  Jim Meyering  <meyering@redhat.com>
8278
8279         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
8280         Now we require at least autoconf-2.59, which means the work-around
8281         is no longer needed.
8282         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
8283         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
8284         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
8285         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
8286         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
8287
8288 2010-11-13  Bruno Haible  <bruno@clisp.org>
8289
8290         rename, renameat: Avoid test failures at NFS mounted locations.
8291         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
8292         functions.
8293         (test_rename): Use assert_nonexistent.
8294         * tests/test-rename.c: Include <dirent.h>.
8295         * tests/test-renameat.c: Likewise.
8296         Reported by Gary V. Vaughan <gary@gnu.org>.
8297
8298         rename, renameat: Document Linux bug with NFS
8299         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
8300         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
8301         * doc/posix-functions/renameat.texi: Likewise.
8302         Suggested by Eric Blake.
8303
8304 2010-11-13  Bruno Haible  <bruno@clisp.org>
8305
8306         rename test: Add comments.
8307         * tests/test-rename.h (test_rename): Add structure and comments.
8308
8309 2010-11-13  Eric Blake  <eblake@redhat.com>
8310
8311         maintainer-makefile: cover a few more files
8312         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
8313         scripts generated within C files, for libvirt.
8314
8315 2010-11-13  Bruno Haible  <bruno@clisp.org>
8316
8317         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
8318         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
8319         character, return the number of bytes that belong together, not always
8320         1.
8321         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
8322         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
8323         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
8324         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
8325         number of bytes of an invalid character.
8326         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
8327         (main): Invoke it.
8328         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
8329         results.
8330         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
8331         malformed byte sequences.
8332         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
8333         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
8334         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
8335         Reported by Ben Pfaff and Paolo Bonzini.
8336
8337 2010-11-13  Bruno Haible  <bruno@clisp.org>
8338
8339         openat: Work around glibc bug with fchownat() and empty file names.
8340         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
8341         (gl_FUNC_FCHOWNAT): Invoke it.
8342         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
8343         * doc/posix-functions/fchownat.texi: Document the glibc bug.
8344         Reported by Gary V. Vaughan <gary@gnu.org>.
8345
8346 2010-11-13  Bruno Haible  <bruno@clisp.org>
8347
8348         openat: Ensure autoconf macro ordering.
8349         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
8350         gl_USE_SYSTEM_EXTENSIONS.
8351         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
8352
8353 2010-11-13  Bruno Haible  <bruno@clisp.org>
8354
8355         Update comments.
8356         * lib/unistr/u8-check.c: Update file name in comments.
8357         * lib/unistr/u8-mblen.c: Likewise.
8358         * lib/unistr/u8-prev.c: Likewise.
8359         * lib/unistr/u8-strmblen.c: Likewise.
8360         * lib/unistr/u8-strmbtouc.c: Likewise.
8361
8362 2010-11-13  Jim Meyering  <meyering@redhat.com>
8363
8364         tests: avoid test failure on Solaris 10 due to lack of PATH export
8365         * tests/test-update-copyright.sh: Don't forget to export PATH.
8366
8367         init.sh: ensure that IFS is defined, just in case...
8368         * tests/init.sh (setup_): Ensure that IFS is defined,
8369         so that saving and restoring it works as expected.  This
8370         appears to be useful at least for an old version of dash
8371         from a long time ago (RH 6).  See here for details:
8372         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
8373
8374         maint.mk: tighten "test a == b" check
8375         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
8376         test to files that contain something like #!/bin/sh.
8377         Without this, coreutils would get two false positives in
8378         the comments of C source files.
8379
8380 2010-11-12  Eric Blake  <eblake@redhat.com>
8381
8382         bootstrap: fix typo in previous attempt
8383         * build-aux/bootstrap (buildreq): Correct the grouping.
8384         Reported by Paul Eggert.
8385
8386         maintainer-makefile: prohibit test x == x
8387         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
8388         Based on a report by Matthias Bolte.
8389
8390         bootstrap: allow FreeBSD gzip
8391         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
8392         which has no '.' and goes to stderr.
8393         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
8394         Reported by Matthias Bolte.
8395
8396         maintainer-makefile: check for i18n setup
8397         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
8398         will likely work.
8399
8400 2010-11-12  Bruno Haible  <bruno@clisp.org>
8401
8402         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
8403         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
8404         * lib/nanosleep.c (nanosleep): Likewise.
8405
8406 2010-11-11  Bruno Haible  <bruno@clisp.org>
8407
8408         fcntl-h: Fix for use of C++ on glibc systems.
8409         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
8410         also on glibc systems in C++ mode.
8411         Reported by Gary V. Vaughan <gary@gnu.org>.
8412
8413 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
8414
8415         mknod: avoid false failure with dash
8416         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
8417
8418 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
8419
8420         unlink: Fix "is it should" typo in diagnostic.
8421         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
8422         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
8423
8424 2010-11-11  Bruno Haible  <bruno@clisp.org>
8425
8426         Tests for module 'strerror_r-posix'.
8427         * modules/strerror_r-posix-tests: New file.
8428         * tests/test-strerror_r.c: New file.
8429         * tests/test-string-c++.cc: Check the signature of strerror_r.
8430
8431         New module 'strerror_r-posix'.
8432         * lib/string.in.h (strerror_r): New declaration.
8433         * lib/strerror_r.c: New file.
8434         * m4/strerror_r.m4: New file.
8435         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
8436         of strerror_r.
8437         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
8438         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
8439         * modules/strerror_r-posix: New file.
8440         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
8441         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
8442         * doc/posix-functions/strerror_r.texi: Mention the new module and the
8443         portability problems.
8444
8445 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
8446
8447         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
8448         line is also considered for output. Quoted function name in shell
8449         command, so temporary files for functions like MyClass::operator()
8450         are removed correctly without errors.
8451
8452 2010-11-09  Bruno Haible  <bruno@clisp.org>
8453
8454         * doc/posix-functions/strerror.texi: List more failing platforms.
8455
8456         * doc/posix-functions/strerror.texi: Add a comment.
8457
8458 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
8459
8460         fdopendir: fix bug on MacOS X when low on file descriptors
8461
8462         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
8463         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
8464         All callers changed.
8465         (fdopendir): Invoke save_cwd at the top level, not after using
8466         multiple dup() calls to use up file descriptors.  Then retry
8467         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
8468         less than the maximum number of open file descriptors, because
8469         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
8470         on Mac OS X 10.6.4 for tar 1.24
8471         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
8472         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
8473         and for tar 1.25
8474         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
8475
8476 2010-11-07  Bruno Haible  <bruno@clisp.org>
8477
8478         vasnprintf: Support I flag on glibc systems.
8479         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
8480         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
8481         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
8482         snprintf function.
8483         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
8484         glibc systems.
8485         * tests/test-vasnprintf-posix3.c: New file.
8486         * modules/vasnprintf-posix-tests (Files): Add it.
8487         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
8488
8489 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
8490
8491         [html] Fix copy/paste bug: Use unique name for compiler warnings.
8492         * MODULES.html.sh: For compiler warnings, use name
8493         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
8494
8495 2010-11-05  Eric Blake  <eblake@redhat.com>
8496
8497         ceil, floor: avoid spurious failure with icc
8498         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
8499         [denormals-as-zero] when optimizing without -mieee-fp option.
8500         * tests/test-floorf2.c (floorf_reference): Likewise.
8501         * tests/test-ceilf1.c (dummy): New function.
8502         (main): Use it to outsmart icc's optimization.
8503         * tests/test-floorf1.c (dummy, main): Likewise.
8504
8505         tests: require working signbit
8506         * modules/ceilf-tests (Depends-on): Add signbit.
8507         * modules/ceill-tests (Depends-on): Likewise.
8508         * modules/floorf-tests (Depends-on): Likewise.
8509         * modules/floorl-tests (Depends-on): Likewise.
8510         * modules/round-tests (Depends-on): Likewise.
8511         * modules/roundf-tests (Depends-on): Likewise.
8512         * modules/roundl-tests (Depends-on): Likewise.
8513         * modules/trunc-tests (Depends-on): Likewise.
8514         * modules/truncf-tests (Depends-on): Likewise.
8515         * modules/truncl-tests (Depends-on): Likewise.
8516
8517         strtod: work around icc bug
8518         * lib/strtod.c (minus_zero): Define to working value.
8519         (strtod): Use it to avoid icc bug.
8520
8521         copysign: enhance tests
8522         * modules/copysign-tests (Files): Add minus-zero.h.
8523         * tests/test-copysign.c (main): Also test zeros.
8524
8525 2010-11-04  Eric Blake  <eblake@redhat.com>
8526
8527         ceil, floor, round, trunc: enhance tests of -0
8528         * tests/test-ceilf1.c (main): Ensure correct sign of result.
8529         * tests/test-ceill.c (main): Likewise.
8530         * tests/test-floorf1.c (main): Likewise.
8531         * tests/test-floorl.c (main): Likewise.
8532         * tests/test-round1.c (main): Likewise.
8533         * tests/test-roundf1.c (main): Likewise.
8534         * tests/test-roundl.c (main): Likewise.
8535         * tests/test-trunc1.c (main): Likewise.
8536         * tests/test-truncf1.c (main): Likewise.
8537         * tests/test-truncl.c (main): Likewise.
8538
8539 2010-11-04  Eric Blake  <eblake@redhat.com>
8540
8541         frexp, tests: work around ICC bug with -zero
8542         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
8543         works with more compilers.
8544         * tests/minus-zero.h: New file.
8545         * modules/ceilf-tests (Files): Include it.
8546         * modules/ceill-tests (Files): Likewise.
8547         * modules/floorf-tests (Files): Likewise.
8548         * modules/floorl-tests (Files): Likewise.
8549         * modules/frexp-nolibm-tests (Files): Likewise.
8550         * modules/frexp-tests (Files): Likewise.
8551         * modules/frexpl-nolibm-tests (Files): Likewise.
8552         * modules/frexpl-tests (Files): Likewise.
8553         * modules/isnan-tests (Files): Likewise.
8554         * modules/isnand-nolibm-tests (Files): Likewise.
8555         * modules/isnand-tests (Files): Likewise.
8556         * modules/isnanf-nolibm-tests (Files): Likewise.
8557         * modules/isnanf-tests (Files): Likewise.
8558         * modules/isnanl-nolibm-tests (Files): Likewise.
8559         * modules/isnanl-tests (Files): Likewise.
8560         * modules/round-tests (Files): Likewise.
8561         * modules/roundf-tests (Files): Likewise.
8562         * modules/roundl-tests (Files): Likewise.
8563         * modules/ldexpl-tests (Files): Likewise.
8564         * modules/signbit-tests (Files): Likewise.
8565         * modules/snprintf-posix-tests (Files): Likewise.
8566         * modules/sprintf-posix-tests (Files): Likewise.
8567         * modules/strtod-tests (Files): Likewise.
8568         * modules/trunc-tests (Files): Likewise.
8569         * modules/truncf-tests (Files): Likewise.
8570         * modules/truncl-tests (Files): Likewise.
8571         * modules/vsnprintf-posix-tests (Files): Likewise.
8572         * modules/vsprintf-posix-tests (Files): Likewise.
8573         * modules/vasnprintf-posix-tests (Files): Likewise.
8574         * modules/vasprintf-posix-tests (Files): Likewise.
8575         * tests/test-ceilf1.c (main): Use it.
8576         * tests/test-ceill.c (main): Likewise.
8577         * tests/test-floorf1.c (main): Likewise.
8578         * tests/test-floorl.c (main): Likewise.
8579         * tests/test-frexp.c (main): Likewise.
8580         * tests/test-frexpl.c (main): Likewise.
8581         * tests/test-isnan.c (main): Likewise.
8582         * tests/test-isnand.h (main): Likewise.
8583         * tests/test-isnanf.h (main): Likewise.
8584         * tests/test-isnanl.h (main): Likewise.
8585         * tests/test-ldexpl.c (main): Likewise.
8586         * tests/test-round.c (main): Likewise.
8587         * tests/test-roundf.c (main): Likewise.
8588         * tests/test-roundl.c (main): Likewise.
8589         * tests/test-signbit.c (test_signbitf, test_signbitd)
8590         (test_signbitl): Likewise.
8591         * tests/test-snprintf-posix.h (test_function): Likewise.
8592         * tests/test-sprintf-posix.h (test_function): Likewise.
8593         * tests/test-strtod.c (main): Likewise.
8594         * tests/test-trunc1.c (main): Likewise.
8595         * tests/test-truncf1.c (main): Likewise.
8596         * tests/test-truncl.c (main): Likewise.
8597
8598         isnanl: work around icc bug
8599         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
8600
8601 2010-11-03  Eric Blake  <eblake@redhat.com>
8602
8603         tests: fix compiler warnings
8604         * tests/test-getopt.h (test_getopt): Fix condition.
8605         * tests/test-getopt_long.h (test_getopt_long): Likewise.
8606         * tests/test-pipe2.c (main): Likewise.
8607         * tests/test-quotearg-simple.c (main): Avoid icc warning.
8608
8609         utimens: fix broken m4 test
8610         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
8611
8612 2010-10-28  Bruno Haible  <bruno@clisp.org>
8613
8614         posix_spawn*, getdtablesize: Relax license.
8615         * modules/posix_spawn (License): Change to LGPLv2+.
8616         * modules/posix_spawnp (License): Likewise.
8617         * modules/posix_spawn-internal (License): Likewise.
8618         * modules/posix_spawnattr_init (License): Likewise.
8619         * modules/posix_spawnattr_getflags (License): Likewise.
8620         * modules/posix_spawnattr_setflags (License): Likewise.
8621         * modules/posix_spawnattr_getpgroup (License): Likewise.
8622         * modules/posix_spawnattr_setpgroup (License): Likewise.
8623         * modules/posix_spawnattr_getschedparam (License): Likewise.
8624         * modules/posix_spawnattr_setschedparam (License): Likewise.
8625         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
8626         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
8627         * modules/posix_spawnattr_getsigdefault (License): Likewise.
8628         * modules/posix_spawnattr_setsigdefault (License): Likewise.
8629         * modules/posix_spawnattr_getsigmask (License): Likewise.
8630         * modules/posix_spawnattr_setsigmask (License): Likewise.
8631         * modules/posix_spawnattr_destroy (License): Likewise.
8632         * modules/posix_spawn_file_actions_init (License): Likewise.
8633         * modules/posix_spawn_file_actions_addclose (License): Likewise.
8634         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
8635         * modules/posix_spawn_file_actions_addopen (License): Likewise.
8636         * modules/posix_spawn_file_actions_destroy (License): Likewise.
8637         * modules/getdtablesize (License): Likewise.
8638         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
8639
8640 2010-10-26  Bruno Haible  <bruno@clisp.org>
8641
8642         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
8643         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
8644         Cygwin and mingw.
8645         Suggested by Eric Blake.
8646
8647 2010-10-26  Bruno Haible  <bruno@clisp.org>
8648
8649         stdio: Work around compilation error due to renameat() on Solaris 10.
8650         * lib/stdio.in.h: Include <unistd.h> on Solaris.
8651         * lib/renameat.c: Don't include <unistd.h> here.
8652         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
8653         Reported by Paul Eggert and Eric Blake.
8654
8655 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
8656
8657         renameat: port to Solaris 10, which declares renameat in unistd.h
8658
8659         * lib/renameat.c: Include unistd.h before stdio.h, because
8660         Solaris 10 declares renameat in unistd.h.  Problem encountered
8661         when building GNU tar 1.24 on Solaris 10.
8662
8663 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
8664
8665         fdopendir: fix C89 compilation
8666         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
8667         compilers.
8668
8669 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
8670
8671         inttostr: simplify by removing unnecessary redundancy
8672         * lib/anytostr.c: Don't include verify.h.
8673         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
8674         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
8675         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
8676         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
8677         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
8678         Likewise.
8679         * modules/inttostr (Depends-on): Remove 'verify'.
8680
8681 2010-10-23  Bruno Haible  <bruno@clisp.org>
8682
8683         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
8684         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
8685         Reported by Eric Blake.
8686
8687 2010-10-23  Bruno Haible  <bruno@clisp.org>
8688
8689         Tests: Fix LOCALE_JA on MirBSD 10.
8690         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
8691         to an UTF-8 locale.
8692         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
8693         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8694         Reported by Eric Blake.
8695
8696 2010-10-21  Bruno Haible  <bruno@clisp.org>
8697
8698         nl_langinfo test: Avoid test failure on NetBSD 5.
8699         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
8700         Reported by Eric Blake.
8701
8702 2010-10-21  Eric Blake  <eblake@redhat.com>
8703
8704         c-stack: work around libsigsegv 2.8 bug
8705         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
8706         overflow on at least PowerPC64.
8707
8708 2010-10-17  Bruno Haible  <bruno@clisp.org>
8709
8710         userspec: Drop redundant file.
8711         * modules/userspec (Files): Remove lib/inttostr.h.
8712
8713 2010-10-17  Bruno Haible  <bruno@clisp.org>
8714
8715         nl_langinfo tests: Silence some warnings.
8716         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
8717         Reported by Jim Meyering.
8718
8719 2010-10-17  Bruno Haible  <bruno@clisp.org>
8720
8721         Make use of GCC's attribute __alloc_size__.
8722         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
8723         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
8724         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
8725         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
8726         __alloc_size__.
8727         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
8728         Suggested by Jim Meyering.
8729
8730 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
8731
8732         bootstrap: anchor .gitignore entries.
8733         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
8734         with...
8735         (insert_vc_ignore): ... this new function, which prepends `/' to
8736         all .gitignore entries before passing them to
8737         insert_sorted_if_absent.
8738
8739 2010-10-16  Bruno Haible  <bruno@clisp.org>
8740
8741         nextafter: Fix configure check.
8742         * modules/nextafter (configure.ac): Correct expected prototype.
8743
8744 2010-10-16  Bruno Haible  <bruno@clisp.org>
8745
8746         termios: Update documentation.
8747         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
8748
8749 2010-10-16  Bruno Haible  <bruno@clisp.org>
8750
8751         tests: Make them compile with TinyCC.
8752         * tests/test-strstr.c (main): Remove parentheses around array
8753         initializer.
8754
8755 2010-10-15  Eric Blake  <eblake@redhat.com>
8756
8757         ignore-value: make header idempotent
8758         * lib/ignore-value.h: Add double-inclusion guards.
8759         Reported by Stefan Berger.
8760
8761 2010-10-15  Jim Meyering  <meyering@redhat.com>
8762
8763         GNUmakefile: handle "stable" target, not "major"
8764         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
8765         lists in maint.mk and announce-gen.  Without this, "make stable"
8766         would fail to ensure that $(VERSION) is up to date.
8767
8768 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
8769
8770         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
8771         & co.
8772
8773 2010-10-14  Bruno Haible  <bruno@clisp.org>
8774
8775         vasnprintf: Don't set errno to 0.
8776         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
8777         block that sets it to 0.
8778         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
8779
8780 2010-10-14  Bruno Haible  <bruno@clisp.org>
8781
8782         socketlib: Fix.
8783         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
8784         gl_PREREQ_SYS_H_WINSOCK2.
8785         Reported by Ian Beckwith <ianb@erislabs.net>.
8786
8787 2010-10-13  Jim Meyering  <meyering@redhat.com>
8788
8789         test-select-stdin.c: avoid warn_unused_result warnings
8790         * tests/test-select-stdin.c: Include "macros.h".
8791         ASSERT that read and fflush succeed.
8792
8793 2010-10-13  Jim Meyering  <meyering@redhat.com>
8794
8795         git-version-gen: do require git-VC'd files in cwd
8796         * build-aux/git-version-gen: Reject a git version string
8797         if there are no commits associated with the current directory.
8798         This avoids an unlikely false-positive (unrelated dir whose parent
8799         repository also contains a tag matching v*), as pointed out
8800         by Giuseppe Scrivano in
8801         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
8802
8803 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
8804
8805         argv-iter: omit nonconforming declaration
8806         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
8807         enum arg_iter_err declaration, which doesn't conform to C99.
8808         Solaris 10 cc warns about this.
8809
8810 2010-10-13  Eric Blake  <eblake@redhat.com>
8811
8812         termios: fix compilation on mingw
8813         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
8814         (gl_TERMIOS_H): Adjust it on mingw.
8815         * modules/termios (Makefile.am): Substitute new key.
8816         * lib/termios.in.h (includes): Make include_next conditional.
8817         * doc/posix-headers/termios.texi (termios.h): Update
8818         documentation.
8819         Reported by Daniel P. Berrange.
8820
8821 2010-10-13  Jim Meyering  <meyering@redhat.com>
8822
8823         git-version-gen: don't require that .git/ be in the current dir
8824         * build-aux/git-version-gen: Adjust this script so that it works
8825         when run from any working directory beneath the top-level .git/-
8826         containing directory.  Inspired by a patch from Giuseppe Scrivano,
8827         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
8828
8829         test-select: avoid warn_unused_result warnings
8830         * tests/test-select.c: Include "macros.h".
8831         ASSERT that each call to read, write, and pipe succeeds.
8832         While not technically required, also check each "close".
8833         * modules/select-tests (Files): Add tests/macros.h.
8834
8835         test-symlinkat: remove declaration of unused local
8836         * tests/test-symlinkat.c (main): Remove unused local, "buf".
8837
8838         test-inttostr: avoid shadowing warnings
8839         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
8840         and use malloc rather than the stack for the same reason as
8841         mentioned in the comment justifying the other allocation.
8842
8843 2010-10-11  Bruno Haible  <bruno@clisp.org>
8844
8845         stdlib: Allow multiple gnulib generated replacements to coexist.
8846         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
8847         Reported by Sam Steingold <sds@gnu.org>.
8848
8849 2010-10-11  Jim Meyering  <meyering@redhat.com>
8850
8851         fix a documentation typo
8852         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
8853
8854 2010-10-11  Eric Blake  <eblake@redhat.com>
8855
8856         futimens: work around Solaris 11 bug
8857         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
8858         * tests/test-futimens.h (test_futimens): Enhance, rather than
8859         weaken test.
8860         * doc/posix-functions/futimens.texi (futimens): Document the bug.
8861
8862 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
8863
8864         Indentation.
8865         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
8866         higher-level operators more to the left.
8867
8868 2010-10-11  Jim Meyering  <meyering@redhat.com>
8869
8870         test-futimens: avoid unwarranted test failure on Solaris 5.11
8871         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
8872         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
8873         because it tries to dereference the NULL name argument.
8874
8875 2010-10-11  Bruno Haible  <bruno@clisp.org>
8876
8877         Indentation.
8878         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
8879         indentation.
8880
8881 2010-10-11  Jim Meyering  <meyering@redhat.com>
8882
8883         spawn.in.h: make indentation consistent with parentheses
8884         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
8885         Make indentation consistent with parentheses.
8886
8887 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
8888
8889         Fix mismatched parens in previous commit
8890         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
8891         parens.
8892
8893 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
8894
8895         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
8896
8897         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
8898         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
8899         * lib/malloca.c: Include "verify.h".
8900         (verify1): Remove, replacing with a verify call.
8901         * lib/relocwrapper.c (verify1): Likewise.
8902         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
8903         Likewise.
8904         * modules/malloca (Depends-on): Add 'verify'.
8905         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
8906         * modules/vasnprintf (Depends-on): Add 'verify'.
8907         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
8908         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
8909         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
8910         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
8911         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
8912         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
8913         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
8914
8915         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
8916
8917         Formerly the style was sometimes 2*X - 1, because the C standard
8918         was wrongly thought to disallow ?: in integral constant expressions.
8919         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
8920         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
8921         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
8922         * lib/stdint.in.h (_verify_intmax_size): Likewise.
8923         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
8924         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
8925         verify that time_t cannot be floating.
8926
8927 2010-10-08  Eric Blake  <eblake@redhat.com>
8928
8929         time: enforce recent POSIX ruling that time_t is integral
8930         * lib/time.in.h (__time_t_must_be_integral): Detect any
8931         problematic systems, allowing the rest of gnulib to assume POSIX.
8932
8933 2010-10-08  Jim Meyering  <meyering@redhat.com>
8934
8935         fdopendir: fix a bug on systems lacking openat and /proc support
8936         OpenBSD 4.7 is one such system.  The most noticeable effect was
8937         failure of any application making nontrivial use of fts: rm, du,
8938         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
8939           ./rm: traversal failed: `a': Bad file descriptor
8940         Debugging that, you see that even though FD 6 was closed just
8941         prior to the opendir call in fd_clone_opendir, its resulting
8942         dir->dd_fd was 8, rather than the expected value of 6:
8943
8944         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
8945         93                close (fd);
8946         (gdb) n
8947         94                dir = fd_clone_opendir (dupfd);
8948         (gdb) n
8949         95                saved_errno = errno;
8950         (gdb) p dir->dd_fd
8951         $11 = 8
8952
8953         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
8954         The problem is that on OpenBSD, fd_clone_opendir has to resort
8955         to using the old-style save/restore CWD mechanism, due to its
8956         lack of openat/proc support, and *that* would steal the FD (6)
8957         that opendir was supposed to use.
8958
8959         The fix is to squirrel away the desired FD so that save_cwd uses a
8960         different one, and then free the dest FD right before calling opendir.
8961         That guarantees opendir will use the required file descriptor.
8962
8963         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
8964
8965 2010-10-08  Bruno Haible  <bruno@clisp.org>
8966
8967         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
8968         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
8969
8970 2010-10-08  Bruno Haible  <bruno@clisp.org>
8971
8972         nanosleep: Make replacement POSIX compliant.
8973         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
8974         is out of range.
8975         Reported by Jim Meyering.
8976
8977 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
8978
8979         bootstrap: add hook for altering gnulib.mk, for Bison
8980         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
8981         the Bison bootstrapping process can rewrite file names and variables
8982         in this file before later parts of 'bootstrap' use the file.
8983         Bison wants to include lib/gnulib.mk from the top-level makefile,
8984         so it needs the file names in this file to be relative to the top
8985         level, not relative to lib; plus it needs variable names to be
8986         rewritten.
8987         (slurp): Use the new function.
8988
8989         bootstrap: reformat for readability
8990         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
8991
8992 2010-10-08  Eric Blake  <eblake@redhat.com>
8993
8994         docs: update cygwin progress
8995         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
8996         1.7.7.
8997         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
8998         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
8999         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
9000         * doc/posix-functions/carg.texi (carg): Likewise.
9001         * doc/posix-functions/cargf.texi (cargf): Likewise.
9002         * doc/posix-functions/casin.texi (casin): Likewise.
9003         * doc/posix-functions/casinf.texi (casinf): Likewise.
9004         * doc/posix-functions/casinh.texi (casinh): Likewise.
9005         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
9006         * doc/posix-functions/catan.texi (catan): Likewise.
9007         * doc/posix-functions/catanf.texi (catanf): Likewise.
9008         * doc/posix-functions/catanh.texi (catanh): Likewise.
9009         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
9010         * doc/posix-functions/ccos.texi (ccos): Likewise.
9011         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
9012         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
9013         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
9014         * doc/posix-functions/cexp.texi (cexp): Likewise.
9015         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
9016         * doc/posix-functions/cimag.texi (cimag): Likewise.
9017         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
9018         * doc/posix-functions/clog.texi (clog): Likewise.
9019         * doc/posix-functions/clogf.texi (clogf): Likewise.
9020         * doc/posix-functions/conj.texi (conj): Likewise.
9021         * doc/posix-functions/conjf.texi (conjf): Likewise.
9022         * doc/posix-functions/cpow.texi (cpow): Likewise.
9023         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
9024         * doc/posix-functions/cproj.texi (cproj): Likewise.
9025         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
9026         * doc/posix-functions/creal.texi (creal): Likewise.
9027         * doc/posix-functions/crealf.texi (crealf): Likewise.
9028         * doc/posix-functions/csin.texi (csin): Likewise.
9029         * doc/posix-functions/csinf.texi (csinf): Likewise.
9030         * doc/posix-functions/csinh.texi (csinh): Likewise.
9031         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
9032         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
9033         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
9034         * doc/posix-functions/ctan.texi (ctan): Likewise.
9035         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
9036         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
9037         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
9038         * doc/posix-headers/complex.texi (complex.h): Likewise.
9039
9040 2010-10-07  Jim Meyering  <meyering@redhat.com>
9041
9042         parse-datetime: avoid compilation failure on OpenBSD 4.7
9043         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
9044         This works around a compilation failure on OpenBSD 4.7:
9045         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
9046
9047 2010-10-07  Eric Blake  <eblake@redhat.com>
9048
9049         docs: update cygwin progress
9050         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
9051         1.7.6.
9052         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
9053         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
9054         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
9055         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
9056         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
9057         Likewise.
9058         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
9059         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
9060         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
9061         Likewise.
9062         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
9063         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
9064         Likewise.
9065         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
9066         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
9067         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
9068         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
9069         Likewise.
9070         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
9071         Likewise.
9072         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
9073
9074         docs: update parse-datetime history
9075         * doc/parse-datetime.texi (Authors of parse_datetime): Better
9076         documentation of this function's history and alternatives.
9077
9078         cygwin: use more robust version check
9079         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
9080         exclude an eventual cygwin 1.9.1.
9081         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9082         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
9083         (gl_FUNC_STRCASESTR): Likewise.
9084         Reported by Bruno Haible.
9085
9086 2010-10-06  Bruno Haible  <bruno@clisp.org>
9087
9088         string, sys_select: Avoid #including large headers unless necessary.
9089         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
9090         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
9091         OSF/1, BeOS, Haiku.
9092         Reported by Jim Meyering.
9093
9094 2010-10-05  Eric Blake  <eblake@redhat.com>
9095
9096         memmem, strstr, strcasestr: fix bug with long periodic needle
9097         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
9098         periodic needle having false positive.
9099         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
9100         and cygwin 1.7.7.
9101         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
9102         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
9103         (gl_FUNC_STRCASESTR): Likewise.
9104         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9105         * tests/test-memmem.c (main): Expose the bug.
9106         * tests/test-strcasestr.c (main): Likewise.
9107         * tests/test-strstr.c (main): Likewise.
9108         * tests/test-c-strcasestr.c (main): Likewise.
9109         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
9110         * doc/posix-functions/strstr.texi (strstr): Likewise.
9111         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
9112         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
9113
9114 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9115
9116         parse-datetime: do some more renaming
9117         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
9118         parse_datetime, not get_date.  Mention the renaming.
9119         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
9120         in comments.
9121         * m4/bison.m4: Likewise.
9122
9123 2010-10-05  Eric Blake  <eblake@redhat.com>
9124
9125         parse-datetime: better name than get_date
9126         * NEWS: Reword the deprecation notice.
9127         * modules/get_date: Rename to modules/parse-datetime.
9128         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
9129         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
9130         * lib/get_date.y: Rename to lib/parse-datetime.y.
9131         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
9132         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
9133         * doc/getdate.texi: Provide fallback wrapper.
9134         * lib/getdate.h: Move guts, and wrap...
9135         * lib/parse-datetime.h: ...new file.
9136         * lib/parse-datetime.y (get_date): Rename...
9137         (parse_datetime): ...to this.
9138         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
9139         (gl_PARSE_DATETIME): ...to this.
9140         * doc/posix-functions/getdate.texi (get_date): Provide fallback
9141         documentation.
9142         * modules/getdate (Files): Provide fallback docs and header.
9143         (Notice, Depends-on): Update references.
9144         * tests/test-parse-datetime.c: Likewise.
9145         * DEPENDENCIES: Likewise.
9146         * MODULES.html.sh (Date and time <time.h>): Likewise.
9147         * doc/parse-datetime.texi (Date input formats)
9148         (Authors of parse_datetime): Likewise.
9149         * modules/parse-datetime (Files, configure.ac, Makefile.am)
9150         (Include): Likewise.
9151         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
9152         * gnulib-tool: Likewise.
9153         * m4/bison.m4 (gl_BISON): Likewise.
9154         Suggested by Bruno Haible.
9155
9156 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9157
9158         more ports to Solaris tr, which needs [] around ranges
9159         * gnulib-tool: Solaris tr needs [] around ranges.
9160         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
9161         * tests/test-pipe-filter-gi1.c (main): Likewise.
9162         * tests/test-pipe-filter-ii1.c (main): Likewise.
9163
9164 2010-10-05  Eric Blake  <eblake@redhat.com>
9165
9166         bootstrap: fix Solaris regression
9167         * build-aux/bootstrap (check_versions): Solaris tr still needs []
9168         around ranges.
9169         Reported by Pádraig Brady.
9170
9171         bootstrap: work with pkg-config
9172         * build-aux/bootstrap (check_versions): Also transliterate - in
9173         prerequisite name.
9174         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
9175         prerequisites that were already found, to avoid confusion.
9176         Reported by Justin Clift.
9177
9178         faccessat: remove unused wrappers
9179         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
9180         presence of these wrappers dragged in -lgen on Solaris.
9181         Reported by Clemens Brogi; fix suggested by Paul Eggert.
9182
9183 2010-10-05  Jim Meyering  <meyering@redhat.com>
9184
9185         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
9186         * Makefile (sc_pragma_columns): New syntax-check rule.
9187
9188 2010-10-04  Bruno Haible  <bruno@clisp.org>
9189
9190         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
9191         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
9192         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
9193         Reported by Bruce Korb and Eric Blake.
9194
9195 2010-10-04  Bruno Haible  <bruno@clisp.org>
9196
9197         threadlib: Make option --with-libpth-prefix work.
9198         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
9199         use $LIBPTH, not just -lpth.
9200
9201 2010-10-04  Bruno Haible  <bruno@clisp.org>
9202
9203         Avoid line length limitation from HP NonStop system header files.
9204         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
9205         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
9206         * lib/ctype.in.h: Likewise.
9207         * lib/dirent.in.h: Likewise.
9208         * lib/errno.in.h: Likewise.
9209         * lib/fcntl.in.h: Likewise.
9210         * lib/float.in.h: Likewise.
9211         * lib/getopt.in.h: Likewise.
9212         * lib/iconv.in.h: Likewise.
9213         * lib/inttypes.in.h: Likewise.
9214         * lib/langinfo.in.h: Likewise.
9215         * lib/locale.in.h: Likewise.
9216         * lib/math.in.h: Likewise.
9217         * lib/netdb.in.h: Likewise.
9218         * lib/netinet_in.in.h: Likewise.
9219         * lib/poll.in.h: Likewise.
9220         * lib/pthread.in.h: Likewise.
9221         * lib/pty.in.h: Likewise.
9222         * lib/sched.in.h: Likewise.
9223         * lib/se-selinux.in.h: Likewise.
9224         * lib/search.in.h: Likewise.
9225         * lib/signal.in.h: Likewise.
9226         * lib/spawn.in.h: Likewise.
9227         * lib/stdarg.in.h: Likewise.
9228         * lib/stddef.in.h: Likewise.
9229         * lib/stdint.in.h: Likewise.
9230         * lib/stdio.in.h: Likewise.
9231         * lib/stdlib.in.h: Likewise.
9232         * lib/string.in.h: Likewise.
9233         * lib/strings.in.h: Likewise.
9234         * lib/sys_file.in.h: Likewise.
9235         * lib/sys_ioctl.in.h: Likewise.
9236         * lib/sys_select.in.h: Likewise.
9237         * lib/sys_socket.in.h: Likewise.
9238         * lib/sys_stat.in.h: Likewise.
9239         * lib/sys_time.in.h: Likewise.
9240         * lib/sys_times.in.h: Likewise.
9241         * lib/sys_utsname.in.h: Likewise.
9242         * lib/sys_wait.in.h: Likewise.
9243         * lib/sysexits.in.h: Likewise.
9244         * lib/termios.in.h: Likewise.
9245         * lib/time.in.h: Likewise.
9246         * lib/unistd.in.h: Likewise.
9247         * lib/wchar.in.h: Likewise.
9248         * lib/wctype.in.h: Likewise.
9249         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
9250         * modules/ctype (Makefile.am): Likewise.
9251         * modules/dirent (Makefile.am): Likewise.
9252         * modules/errno (Makefile.am): Likewise.
9253         * modules/fcntl-h (Makefile.am): Likewise.
9254         * modules/float (Makefile.am): Likewise.
9255         * modules/getopt-posix (Makefile.am): Likewise.
9256         * modules/iconv-h (Makefile.am): Likewise.
9257         * modules/inttypes (Makefile.am): Likewise.
9258         * modules/langinfo (Makefile.am): Likewise.
9259         * modules/locale (Makefile.am): Likewise.
9260         * modules/math (Makefile.am): Likewise.
9261         * modules/netdb (Makefile.am): Likewise.
9262         * modules/netinet_in (Makefile.am): Likewise.
9263         * modules/poll-h (Makefile.am): Likewise.
9264         * modules/pthread (Makefile.am): Likewise.
9265         * modules/pty (Makefile.am): Likewise.
9266         * modules/sched (Makefile.am): Likewise.
9267         * modules/search (Makefile.am): Likewise.
9268         * modules/selinux-h (Makefile.am): Likewise.
9269         * modules/signal (Makefile.am): Likewise.
9270         * modules/spawn (Makefile.am): Likewise.
9271         * modules/stdarg (Makefile.am): Likewise.
9272         * modules/stddef (Makefile.am): Likewise.
9273         * modules/stdint (Makefile.am): Likewise.
9274         * modules/stdio (Makefile.am): Likewise.
9275         * modules/stdlib (Makefile.am): Likewise.
9276         * modules/string (Makefile.am): Likewise.
9277         * modules/strings (Makefile.am): Likewise.
9278         * modules/sys_file (Makefile.am): Likewise.
9279         * modules/sys_ioctl (Makefile.am): Likewise.
9280         * modules/sys_select (Makefile.am): Likewise.
9281         * modules/sys_socket (Makefile.am): Likewise.
9282         * modules/sys_stat (Makefile.am): Likewise.
9283         * modules/sys_time (Makefile.am): Likewise.
9284         * modules/sys_times (Makefile.am): Likewise.
9285         * modules/sys_utsname (Makefile.am): Likewise.
9286         * modules/sys_wait (Makefile.am): Likewise.
9287         * modules/sysexits (Makefile.am): Likewise.
9288         * modules/termios (Makefile.am): Likewise.
9289         * modules/time (Makefile.am): Likewise.
9290         * modules/unistd (Makefile.am): Likewise.
9291         * modules/wchar (Makefile.am): Likewise.
9292         * modules/wctype (Makefile.am): Likewise.
9293
9294 2010-10-04  Bruno Haible  <bruno@clisp.org>
9295
9296         read-file tests: Avoid a test failure on NonStop Kernel.
9297         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
9298         a regular file.
9299         Reported by Joachim Schmitz <schmitz@hp.com>.
9300
9301 2010-10-03  Bruno Haible  <bruno@clisp.org>
9302
9303         gnulib-tool: Fixes for --create-testdir with --libtool.
9304         * gnulib-tool (func_get_automake_snippet): Don't augment
9305         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
9306         an executable.
9307         (func_create_testdir): Handle module 'alloca' like func_import.
9308         Reported by Bruce Korb <bruce.korb@gmail.com>.
9309
9310 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
9311
9312         Avoid some lines longer than 80 characters.
9313         * lib/stdint.in.h: Break long comment lines.
9314         * lib/math.in.h: Likewise.
9315         (_GL_NUM_UINT_WORDS): New macro, for readability.
9316         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
9317         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
9318         * lib/stdlib.in.h: Likewise.
9319         * lib/spawn.in.h: Likewise.
9320         * lib/sys_socket.in.h: Update an URL.
9321         * lib/sys_stat.in.h: Break long line.
9322
9323 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
9324
9325         Improve pmccabe2html.
9326         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
9327         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
9328         when the sources change. Remove the line in the HTML about "Used
9329         ranges" (which implied that there might be other unused ranges),
9330         rename "Resume" to "Summary" (easier to understand for more users).
9331         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
9332         styles, and some unnecessary blank lines.
9333
9334 2010-10-03  Bruno Haible  <bruno@clisp.org>
9335             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
9336
9337         acl: Add support for ACLs on NonStop Kernel.
9338         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
9339         Check whether the function aclsort() exists.
9340         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
9341         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
9342         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
9343         (acl_nontrivial [HAVE_ACLSORT]: New function.
9344         (file_has_acl): Implement for NonStop Kernel.
9345         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
9346         (qset_acl): Implement for NonStop Kernel.
9347         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
9348         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
9349         (main): Implement for NonStop Kernel.
9350         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
9351         Kernel. Handle this flavor.
9352         * tests/test-set-mode-acl.sh: Likewise.
9353         * tests/test-copy-acl.sh: Likewise.
9354         * tests/test-copy-file.sh: Likewise.
9355
9356 2010-10-03  Bruno Haible  <bruno@clisp.org>
9357
9358         Info about ACLs on NonStop Kernel.
9359         * doc/acl-resources.txt: Add info about NonStop Kernel.
9360         References by Joachim Schmitz <schmitz@hp.com>.
9361
9362 2010-10-02  Bruno Haible  <bruno@clisp.org>
9363
9364         Define missing EDQUOT on NonStop Kernel.
9365         * lib/errno.in.h (EDQUOT): Assign a value if missing.
9366         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
9367         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
9368         missing.
9369         * doc/posix-headers/errno.texi: Mention the NSK bug.
9370         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
9371         Reported by Joachim Schmitz <schmitz@hp.com>.
9372
9373 2010-10-02  Bruno Haible  <bruno@clisp.org>
9374
9375         Update doc for POSIX:2008.
9376         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
9377         Update URL of POSIX specification.
9378
9379 2010-10-02  Bruno Haible  <bruno@clisp.org>
9380
9381         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
9382         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
9383         from gnulib, not from Automake.
9384
9385 2010-10-02  Bruno Haible  <bruno@clisp.org>
9386
9387         New module 'system-posix'.
9388         * modules/system-posix: New file.
9389         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
9390         module is present.
9391         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
9392         GNULIB_SYSTEM_POSIX.
9393         * modules/stdlib (Depends-on): Remove sys_wait.
9394         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
9395         * doc/posix-functions/system.texi: Mention the new module.
9396         * doc/posix-headers/stdlib.texi: Likewise.
9397         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
9398         define test_sys_wait_macros to a no-op.
9399         Reported by Sam Steingold <sds@gnu.org>.
9400
9401 2010-09-30  Bruno Haible  <bruno@clisp.org>
9402
9403         More renaming from 'getdate' to 'get_date'.
9404         * doc/get_date.texi: Renamed from doc/getdate.texi.
9405         * modules/get_date (Files): Update.
9406         * MODULES.html.sh (Date and time <time.h>): Update.
9407         * DEPENDENCIES: Update.
9408         * gnulib-tool: Update comment.
9409         * m4/bison.m4 (gl_BISON): Likewise.
9410         * m4/get_date.m4 (gl_GET_DATE): Likewise.
9411
9412 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
9413
9414         bootstrap: support ACLOCAL_FLAGS during aclocal
9415         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
9416         can add additional -I dir for third-party .m4 files.
9417
9418 2010-09-30  Eric Blake  <eblake@redhat.com>
9419
9420         bootstrap: use glibtoolize on MacOS
9421         * build-aux/bootstrap (check_versions): Convert libtool into
9422         libtoolize.
9423         (tool search): Move libtool check earlier, and look for
9424         glibtoolize for MacOS.
9425         (gnulib_tool_options): Auto-add --libtool when appropriate.
9426         Reported by Justin Clift.
9427
9428         poll: fix typo that broke test on MacOS
9429         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
9430         Reported by Justin Clift.
9431
9432         getdate: rename to get_date
9433         Note: getdate.h is not renamed, to minimize client impact.
9434         * modules/getdate: Mark obsolete.  Move old contents...
9435         * modules/get_date: ...to new module name.
9436         * modules/getdate-tests: Move...
9437         * modules/get_date-tests: ...here.
9438         * m4/getdate.m4: Move...
9439         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
9440         * lib/getdate.y: Move...
9441         * lib/get_date.y: ...here.
9442         * tests/test-getdate.c: Move...
9443         * tests/test-get_date.c: ...here.
9444         * doc/posix-functions/getdate.texi (getdate): Update name.
9445         * NEWS: Mention the change.
9446
9447 2010-09-29  Bruno Haible  <bruno@clisp.org>
9448
9449         Separate the module 'waitpid' from the module 'sys_wait'.
9450         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
9451         present.
9452         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
9453         gl_MODULE_INDICATOR_FOR_TESTS.
9454         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
9455         * modules/sys_wait (Depends-on): Remove waitpid.
9456         (Makefile.am): Substitute GNULIB_WAITPID.
9457         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
9458         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
9459         signature only if the 'waitpid' module is present.
9460         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
9461         * NEWS: Mention the change.
9462         * modules/grantpt (Depends-on): Add waitpid.
9463         * modules/wait-process (Depends-on): Likewise.
9464
9465 2010-09-29  Bruno Haible  <bruno@clisp.org>
9466
9467         More tests for module 'sys_wait'.
9468         * modules/sys_wait-c++-tests: New file.
9469         * tests/test-sys_wait-c++.cc: New file.
9470         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
9471         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
9472
9473 2010-09-29  Bruno Haible  <bruno@clisp.org>
9474
9475         New module 'waitpid'.
9476         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
9477         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
9478         Don't include <process.h>.
9479         (waitpid): Declare only, using modern idiom.
9480         * m4/waitpid.m4: New file.
9481         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
9482         * modules/waitpid: New file.
9483         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
9484         (Makefile.am): Update.
9485         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
9486
9487 2010-09-28  Bruno Haible  <bruno@clisp.org>
9488
9489         poll: Assume ANSI C.
9490         * lib/poll.c (poll): Use an ANSI C declaration.
9491
9492 2010-09-28  Bruno Haible  <bruno@clisp.org>
9493
9494         poll-h: Create poll.h on all platforms.
9495         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
9496         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
9497         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
9498         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
9499         (gl_REPLACE_POLL_H): Don't set POLL_H.
9500         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
9501         * modules/poll-h (Depends-on): Add include_next.
9502         (Makefile.am): Create poll.h unconditionally. Substitute also
9503         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
9504
9505 2010-09-28  Bruno Haible  <bruno@clisp.org>
9506
9507         Tests for module 'poll-h'.
9508         * modules/poll-h-c++-tests: New file.
9509         * tests/test-poll-h-c++.cc: New file.
9510
9511         Tests for module 'poll-h'.
9512         * modules/poll-h-tests: New file.
9513         * tests/test-poll-h.c: New file.
9514
9515 2010-09-28  Bruno Haible  <bruno@clisp.org>
9516
9517         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
9518         * modules/poll-h (Depends-on): Add 'extensions'.
9519
9520 2010-09-28  Bruno Haible  <bruno@clisp.org>
9521
9522         New module 'poll-h'.
9523         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
9524         (poll): Use modern idiom.
9525         * modules/poll-h: New file.
9526         * modules/poll (Files): Remove lib/poll.in.h.
9527         (Depends-on): Add poll-h.
9528         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
9529         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
9530         * m4/poll_h.m4: New file.
9531         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
9532         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
9533         and invoke gl_REPLACE_POLL_H.
9534         * lib/poll.c: Use common idiom.
9535         * tests/test-poll.c: Likewise.
9536         * doc/posix-headers/poll.texi: Mention the poll-h module.
9537         Suggested by Eric Blake.
9538
9539 2010-09-26  Bruno Haible  <bruno@clisp.org>
9540
9541         sys_wait: Implement WSTOPSIG.
9542         * lib/sys_wait.in.h (WSTOPSIG): New macro.
9543         Reported by Simon Josefsson.
9544
9545 2010-09-26  Simon Josefsson  <simon@josefsson.org>
9546
9547         stdlib, sys_wait: Avoid compilation error on mingw.
9548         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
9549
9550 2010-09-26  Bruno Haible  <bruno@clisp.org>
9551
9552         stdlib tests: Avoid code duplication.
9553         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
9554         * modules/sys_wait-tests (Files): Likewise.
9555         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
9556         * tests/test-stdlib.c: Include test-sys_wait.h.
9557         (main): Invoke test_sys_wait_macros.
9558         * tests/test-sys_wait.c: Include test-sys_wait.h.
9559         (main): Invoke test_sys_wait_macros.
9560
9561 2010-09-25  Simon Josefsson  <simon@josefsson.org>
9562
9563         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
9564         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
9565         sure Windows sockets are working before calling getaddrinfo.
9566         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
9567         * doc/gnulib.texi (Windows sockets): Fix typo.
9568
9569 2010-09-25  Bruno Haible  <bruno@clisp.org>
9570
9571         Tests for module 'regex-quote'.
9572         * modules/regex-quote-tests: New file.
9573         * tests/test-regex-quote.c: New file.
9574
9575         New module 'regex-quote'.
9576         * lib/regex-quote.h: New file.
9577         * lib/regex-quote.c: New file.
9578         * modules/regex-quote: New file.
9579         Suggested by Reuben Thomas <rrt@sc3d.org>.
9580
9581 2010-09-24  Bruno Haible  <bruno@clisp.org>
9582
9583         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
9584         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
9585
9586 2010-09-23  Bruno Haible  <bruno@clisp.org>
9587
9588         setenv: Relax license.
9589         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
9590         Blake.
9591         Requested by Eric Blake.
9592
9593 2010-09-22  Bruno Haible  <bruno@clisp.org>
9594
9595         termios: Relax license.
9596         * modules/termios (License): Change to LGPLv2+.
9597         Requested by Eric Blake.
9598
9599 2010-09-22  Bruno Haible  <bruno@clisp.org>
9600
9601         threadlib: Allow the package to change the default to 'no'.
9602         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
9603         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
9604         Reported by Paul Eggert.
9605
9606 2010-09-22  Pádraig Brady  <P@draigbrady.com>
9607             Bruno Haible  <bruno@clisp.org>
9608
9609         Fix endless loop in mbmemcasecoll.
9610         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
9611         byte.
9612         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
9613
9614 2010-09-22  Bruno Haible  <bruno@clisp.org>
9615
9616         Tests for module 'memcoll'.
9617         * modules/memcoll-tests: New file.
9618         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
9619
9620         memcoll, xmemcoll: Clarify size vs. length.
9621         * modules/memcoll.c (memcoll0): Clarify specification.
9622         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
9623         passed to collate_error.
9624
9625 2010-09-22  Bruno Haible  <bruno@clisp.org>
9626
9627         Tests for module 'memcasecmp'.
9628         * modules/memcasecmp-tests: New file.
9629         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
9630
9631 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
9632
9633         * lib/pthread.in.h: Add split double-inclusion guard, and include
9634         system <pthread.h> if there is one.  Use @@-style as in other
9635         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
9636         pthread.h doesn't.
9637         (pthread_mutexattr_destroy, pthread_mutexattr_init):
9638         (pthread_mutexattr_settype, pthread_mutex_trylock):
9639         New static inline functions, if there's no system <pthread.h>.
9640         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
9641         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
9642         Approximate with mutexes if the system lacks spinlocks, as in
9643         MacOS.
9644         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
9645         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
9646         @@-style.  Check for spinlocks separately.
9647         (gl_PTHREAD_DEFAULTS): New macro.
9648         * modules/pthread: Redo to use a more typical style for in.h files.
9649
9650 2010-09-21  Eric Blake  <eblake@redhat.com>
9651
9652         net_if: enhance tests
9653         * tests/test-net_if.c (main): Move signature checks earlier.
9654         Print failures to stderr.
9655         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
9656         Document the bug that we do not yet fix.
9657
9658 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
9659
9660         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
9661         about gnulib, not GSS.
9662
9663 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
9664
9665         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
9666         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
9667         for Emacs.
9668         * build-aux/pmccabe2html: Make Makefile.am example code more
9669         cut-and-paste friendly.
9670
9671 2010-09-21  Simon Josefsson  <simon@josefsson.org>
9672
9673         * tests/test-net_if.c: New file.
9674         * modules/net_if-tests: New file.
9675
9676 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
9677
9678         pthread: add pthread_spin_destroy
9679         * lib/pthread.in.h (pthread_spin_destroy): New function.
9680
9681 2010-09-19  Bruno Haible  <bruno@clisp.org>
9682
9683         gnulib-tool: Fix --help output.
9684         * gnulib-tool (func_usage): Fix help message.
9685         Reported by Reuben Thomas <rrt@sc3d.org>.
9686
9687 2010-09-18  Jim Meyering  <meyering@redhat.com>
9688
9689         maint.mk: avoid unexpanded \n in two diagnostics
9690         * top/maint.mk (sc_prohibit_always_true_header_tests):
9691         Don't use a literal \n in a halt=... assignment.  It would not be
9692         expanded, and the two \n bytes would appear in the diagnostic output
9693         rather than the desired newline.  Use halt=$$(printf ... instead.
9694         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
9695
9696 2010-09-18  Bruno Haible  <bruno@clisp.org>
9697
9698         netinet_in: Doc tweak.
9699         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
9700         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9701
9702 2010-09-18  Jim Meyering  <meyering@redhat.com>
9703
9704         init.sh: correct an outdated comment
9705         * tests/init.sh (create_exe_shims_):  s/function/alias/
9706
9707         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
9708         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
9709         a file named "*.exe" is removed between the glob expansion and the
9710         processing of that oddly named file.
9711
9712 2010-09-17  Eric Blake  <eblake@redhat.com>
9713
9714         mirbsd: add some more support
9715         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
9716         in BSD family.
9717         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
9718         devices as OpenBSD.
9719         * m4/host-os.m4 (mirbsd): Add MirBSD.
9720
9721         tests: fix unportable assumption on sys/wait.h
9722         * tests/test-sys_wait.c (main): Relax test.
9723         * tests/test-stdlib.c (main): Likewise.
9724
9725         init.sh: accomodate directory with no .exes
9726         * tests/init.sh: Accomodate directory containing only scripts.
9727
9728         tests: avoid compiler warning
9729         * tests/test-stdlib.c (main): Use the variable.
9730
9731         fdutimens, fdutimensat: update signature, again
9732         * lib/utimens.h (gl_futimens): Delete, and move signature...
9733         (fdutimens): ...here.
9734         (fdutimensat): Rearrange signature.
9735         (lutimensat): Rename variable for clarity.
9736         * lib/fdutimensat.c (fdutimensat): Update signature.
9737         * lib/utimens.c (fdutimens): Likewise.
9738         (gl_futimens): Delete.
9739         (utimens, lutimens): Update callers.
9740         * lib/futimens.c (futimens): Likewise.
9741         * tests/test-fdutimensat.c: Likewise.
9742         * tests/test-utimens.c: Likewise.
9743         * tests/test-futimens.h: Update comment.
9744         * NEWS: Mention this.
9745         Suggested by Paul Eggert.
9746
9747 2010-09-17  Bruno Haible  <bruno@clisp.org>
9748
9749         Take over the maintenance of some older macros from Autoconf.
9750         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
9751         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
9752         GNU Autoconf.
9753         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
9754         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
9755
9756 2010-09-17  Eric Blake  <eblake@redhat.com>
9757
9758         fdutimensat: drop atflag validation
9759         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
9760         with valid fd, to close a race scenario where futimens is
9761         unsupported and FILE was replaced by a symlink.
9762         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
9763         accordingly.
9764         Suggested by Paul Eggert.
9765
9766 2010-09-16  Bruno Haible  <bruno@clisp.org>
9767
9768         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
9769         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
9770
9771 2010-09-16  Bruno Haible  <bruno@clisp.org>
9772
9773         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
9774         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
9775         login_tty exists.
9776         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9777
9778 2010-09-16  Bruno Haible  <bruno@clisp.org>
9779
9780         login_tty: Make the replacement code work on BSD systems.
9781         * lib/login_tty.c: Include <sys/ioctl.h>.
9782         (login_tty): Use ioctl TIOCSCTTY when available.
9783         * modules/login_tty (Depends-on): Add sys_ioctl.
9784         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9785
9786 2010-09-16  Bruno Haible  <bruno@clisp.org>
9787
9788         login_tty: Stricter unit test.
9789         * modules/login_tty-tests (Depends-on): Add tcgetsid.
9790         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
9791         and tcgetsid() after login_tty.
9792         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9793
9794 2010-09-16  Bruno Haible  <bruno@clisp.org>
9795
9796         New module 'tcgetsid'.
9797         * lib/tcgetsid.c: New file.
9798         * m4/tcgetsid.m4: New file.
9799         * modules/tcgetsid: New file.
9800         * modules/termios (Depends-on): Add c++defs, warn-on-use.
9801         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
9802         GNULIB_TCGETSID, HAVE_TCGETSID.
9803         * lib/termios.in.h: Include <sys/types.h>.
9804         (tcgetsid): New declaration.
9805         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
9806         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
9807         * doc/posix-functions/tcgetsid.texi: Mention the new module.
9808         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
9809
9810 2010-09-16  Bruno Haible  <bruno@clisp.org>
9811
9812         Tests for module 'termios'.
9813         * modules/termios-c++-tests: New file.
9814         * modules/termios-tests: New file.
9815         * tests/test-termios-c++.cc: New file.
9816         * tests/test-termios.c: New file.
9817
9818         New module 'termios'.
9819         * modules/termios: New file.
9820         * lib/termios.in.h: New file.
9821         * m4/termios_h.m4: New file.
9822         * doc/posix-headers/termios.texi: Mention the new module.
9823
9824 2010-09-16  Eric Blake  <eblake@redhat.com>
9825
9826         fdutimensat: add an atflag parameter
9827         * lib/fdutimensat.c (fdutimensat): Add new parameter.
9828         * lib/utimens.h (fdutimensat): Update prototype.
9829         * tests/test-fdutimensat.c: Adjust test to match.
9830         * NEWS: Document the change.
9831         Suggested by Paul Eggert.
9832
9833 2010-09-16  Bruno Haible  <bruno@clisp.org>
9834
9835         Fix typos in comments.
9836         * lib/striconveh.h: Fix typo in comment.
9837         * lib/login_tty.c (login_tty): Likewise.
9838
9839 2010-09-15  Bruno Haible  <bruno@clisp.org>
9840
9841         stdlib: clarify MirBSD WEXITSTATUS bug
9842         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
9843         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
9844
9845 2010-09-15  Eric Blake  <eblake@redhat.com>
9846
9847         stdlib: work around MirBSD WEXITSTATUS bug
9848         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
9849         * modules/stdlib (Depends-on): Add sys_wait.
9850         * tests/test-sys_wait.c (main): Enhance test.
9851         * tests/test-stdlib.c (main): Likewise.
9852         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
9853
9854         docs: mention MacOS issue with WEXITSTATUS(constant)
9855         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
9856         issue.
9857         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
9858
9859         strnlen: add tests
9860         * modules/strnlen-tests: New file.
9861         * tests/test-strnlen.c: Likewise.
9862
9863 2010-09-14  Bruno Haible  <bruno@clisp.org>
9864
9865         unistr/base: Avoid link errors when module 'libunistring' is also used.
9866         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
9867         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
9868         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
9869         Declare also when HAVE_LIBUNISTRING is set.
9870         Reported by Pádraig Brady <P@draigbrady.com>.
9871
9872 2010-09-14  Eric Blake  <eblake@redhat.com>
9873
9874         test-rawmemchr: make more robust
9875         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
9876         (Depends-on, configure.ac): Add needed prerequisites to use it.
9877         * modules/memchr-tests (Files, Depends-on, configure.ac):
9878         Likewise, to avoid implicit reliance on memchr module prereqs.
9879         * tests/test-memchr.c (main): Ensure proper masking.
9880         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
9881         reads.
9882
9883         memchr: detect glibc Alpha bug
9884         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
9885         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
9886         Alpha.
9887         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
9888         * tests/test-memchr.c (main): Enhance test.
9889         Reported by Nelson H. F. Beebe.
9890
9891 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
9892
9893         fts, getcwd, glob: audit for dirfd returning -1
9894         * lib/fts.c (opendir): Remove #define; no longer used.
9895         (opendirat): New arg PDIR_FD.  All callers changed.
9896         (fts_build, _opendir2): Use new opendirat to avoid the need for
9897         dirfd, or for checking whether dirfd returns a negative value.
9898         Don't use opendir; always use openat followed by fdopendir.
9899         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
9900         it.
9901         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
9902         returns -1 here.
9903         * modules/fts (Depends-on): Remove dirfd.
9904         * modules/getcwd (Depends-on): Likewise.
9905
9906 2010-09-13  Eric Blake  <eblake@redhat.com>
9907
9908         float: fix broken MirBSD header
9909         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
9910         * doc/posix-headers/float.texi (float.h): Document it.
9911
9912 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
9913
9914         fts: use O_NOFOLLOW to avoid race condition when opening a directory
9915         * lib/fts.c (opendirat): New arg extra_flags.
9916         (__opendir2): Use it to avoid following symlinks when opening
9917         a directory, if symlinks are not supposed to be followed.  See
9918         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
9919
9920         fdopendir: preserve argument fd before returning
9921         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
9922         (fdopendir_with_dup, fd_clone_opendir): New static functions.
9923         (fdopendir): Use them, arranging for FD to be open to the same
9924         directory that it was when it started.  (It might be temporarily
9925         closed while fdopendir is running, so this not thread- or
9926         signal-safe.)  Be careful to do the right thing even when file
9927         descriptors are scarce and dup fails with errno == EMFILE.  See
9928         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
9929
9930 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
9931
9932         regex: Pass the system regex if its only problem is 32-bit regoff_t.
9933         * NEWS: Document change.
9934         * m4/regex.m4: Disable test for regoff_t size.
9935
9936 2010-09-13  Jim Meyering  <meyering@redhat.com>
9937
9938         fts: don't operate on an invalid file descriptor after failed dup
9939         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
9940         negative file descriptor.
9941
9942 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
9943
9944         savedir: add streamsavedir, deprecate fdsavedir
9945         * NEWS: Mention deprecation of fdsavedir.
9946         * lib/savedir.c (streamsavedir): New extern function, whose name
9947         ends in "savedir" to be consistent with the others.  This differs
9948         from savedirstream in that it doesn't close its argument.  The
9949         next version of GNU tar will use this instead of fdsavedir, to
9950         avoid some race conditions and conserve file descriptors.
9951         (savedirstream): Reimplement as a wrapper around streamsavedir.
9952         (fdsavedir): Add a comment deprecating this function.  As far as
9953         I know, only GNU tar used it, and GNU tar doesn't need it any more.
9954         * lib/savedir.h (streamsavedir): New decl.
9955         (fdsavedir): Add a comment deprecating this.
9956
9957 2010-09-10  Bruno Haible  <bruno@clisp.org>
9958
9959         langinfo: Fix last commit.
9960         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
9961         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
9962         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9963
9964 2010-09-10  Bruno Haible  <bruno@clisp.org>
9965
9966         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
9967         * lib/progreloc.c (O_EXEC): Define fallback.
9968
9969 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
9970
9971         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
9972         * NEWS: Document recent changes to fcntl-h.
9973         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
9974         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
9975         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
9976         Similarly for O_SEARCH; this last was already true, but not documented.
9977         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
9978         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
9979         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
9980         Likewise.
9981         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
9982         is zero, not whether it is defined.
9983         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
9984         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
9985         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
9986
9987 2010-09-10  Bruno Haible  <bruno@clisp.org>
9988
9989         langinfo, nl_langinfo: Fix for IRIX 5.3.
9990         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
9991         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
9992         HAVE_LANGINFO_YESEXPR.
9993         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
9994         HAVE_LANGINFO_YESEXPR.
9995         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
9996         HAVE_LANGINFO_T_FMT_AMPM is 0.
9997         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
9998         HAVE_LANGINFO_YESEXPR is 0.
9999         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
10000         NOEXPR.
10001         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
10002         * doc/posix-functions/nl_langinfo.texi: Likewise.
10003         Reported by Eric Blake.
10004
10005 2010-09-10  Bruno Haible  <bruno@clisp.org>
10006
10007         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
10008         * doc/glibc-functions/login_tty.texi: Mention the include file problem
10009         on FreeBSD 8.0 and OpenBSD 4.6.
10010         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
10011         * m4/pty_h.m4 (gl_PTY_H): Likewise.
10012         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
10013         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
10014         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
10015         ac_includes_default.
10016         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10017
10018 2010-09-09  Eric Blake  <eblake@redhat.com>
10019
10020         strsignal: work around NetBSD bug
10021         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
10022         * lib/string.in.h (includes): Likewise.
10023         * doc/posix-functions/strsignal.texi (strsignal): Document the
10024         bug.
10025         Reported by Nelson H. F. Beebe.
10026
10027         gnulib-tool: work with NetBSD /bin/sh
10028         * gnulib-tool (func_cache_var, func_cache_lookup_module)
10029         (func_get_description, func_get_comment, func_get_status)
10030         (func_get_notice, func_get_applicability, func_get_filelist)
10031         (func_get_dependencies, func_get_autoconf_early_snippet)
10032         (func_get_autoconf_snippet, func_get_automake_snippet)
10033         (func_get_include_directive, func_get_link_directive)
10034         (func_get_license, func_get_maintainer, func_import): Avoid
10035         shell syntax errors from parsing syntax extensions.
10036
10037 2010-09-09  Bruno Haible  <bruno@clisp.org>
10038
10039         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
10040         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
10041         a reliable way to determine whether the 'alias' command works.
10042
10043 2010-09-08  Jim Meyering  <meyering@redhat.com>
10044
10045         init.sh: penalize a set-x-impaired shell; don't disqualify it
10046         * tests/init.sh: Too many shells corrupt application stderr when
10047         you set -x, so we can't afford to disqualify them, since at least
10048         on Irix-6.5, that would disqualify all bourne shells.
10049         Instead, use a two-pass approach.
10050         On the first pass, try to find a shell that meets the stricter
10051         condition that set -x does not corrupt stderr.
10052         If no shell meets the stricter condition, retest each candidate
10053         shell, but without that extra condition.  Finally, when
10054         VERBOSE=yes is requested and set -x might cause trouble, simply
10055         issue a warning and refrain from enabling debug output.
10056
10057 2010-09-08  Eric Blake  <eblake@redhat.com>
10058
10059         unsetenv: fix OpenBSD bug
10060         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
10061         * doc/posix-functions/unsetenv.texi (unsetenv): Update
10062         documentation.
10063         Reported by Jim Meyering.
10064
10065         strtod: work around IRIX 6.5 bug
10066         * lib/strtod.c (strtod): Reparse number on shorter string if
10067         exponent parse was invalid.
10068         * tests/test-strtod.c (main): Add check for "0x1p 2".
10069         Reported by Tom G. Christensen.
10070
10071         getopt: optimize previous patch
10072         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
10073         empty variable.  Speed up awk script.
10074         Reported by Paolo Bonzini.
10075
10076 2010-09-08  Jim Meyering  <meyering@redhat.com>
10077
10078         test.sh: disqualify shells for which set -x corrupts stderr
10079         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
10080         and OpenBSD 4.7.  They make it so with "set -x", environment settings
10081         appear in stderr output.  For example, this command:
10082             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
10083         prints "P=1" on those two systems:
10084
10085 2010-09-08  Bruno Haible  <bruno@clisp.org>
10086
10087         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
10088         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
10089         commands, because some shells ignore redirections when there is an
10090         error in the command lookup.
10091         Reported by Eric Blake.
10092
10093 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
10094
10095         * lib/regex.h: Fix a mention of `regex_compile' (should be
10096         `re_compile_pattern').
10097         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
10098         (re_set_registers): Correct name of parameter in comment.
10099
10100         * doc/regex.texi: Add documentation for missing syntax flags.
10101         Remove commented-out documentation of defunct syntax option
10102         RE_NO_EMPTY_ALTS.
10103         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
10104         Add documentation of re_set_registers.
10105         Document trick to re-use a pattern buffer by setting fastmap manually.
10106         Update documentation of struct re_pattern_buffer per public members.
10107         Uncomment documentation of equivalence class operators and
10108         collating symbol operators, since they are now implemented,
10109         Explain leftmost-longest matching in relation to alternatives.
10110         Tidy documentation of substring matching.
10111         Remove POSIX documentation, which is done better in
10112         glibc, and refer the reader there. Keep BSD API documentation, as
10113         that is not readily available elsewhere.
10114
10115 2010-09-07  Eric Blake  <eblake@redhat.com>
10116
10117         getopt: handle POSIXLY_CORRECT set but not exported
10118         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
10119         export state of POSIXLY_CORRECT, due to bash set -o posix.
10120         Reported by Dustin J. Mitchell.
10121
10122 2010-09-05  Bruno Haible  <bruno@clisp.org>
10123
10124         gnulib-tool: Highlight the changed options.
10125         * gnulib-tool (func_usage): Display the --import, --add-import,
10126         --remove-import explanations in bold font.
10127
10128 2010-09-06  Karl Berry  <karl@gnu.org>
10129
10130         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
10131
10132 2010-09-05  Bruno Haible  <bruno@clisp.org>
10133
10134         uniwidth/width: Update comment.
10135         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
10136         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
10137
10138 2010-09-05  Bruno Haible  <bruno@clisp.org>
10139
10140         isinf, isnan: Relax license.
10141         * modules/isinf (License): Change from GPL to LGPL, with consent from
10142         Ben Pfaff.
10143         * modules/isnan (License): Likewise.
10144         Requested by Ludovic Courtès.
10145
10146 2010-09-04  Bruno Haible  <bruno@clisp.org>
10147
10148         gnulib-tool: Help migration from --import to --add-import or --update.
10149         * gnulib-tool: Emit a verbose error message when --import is used
10150         without any module name.
10151
10152 2010-09-04  Bruno Haible  <bruno@clisp.org>
10153
10154         Update doc about gnulib-tool.
10155         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
10156         'gnulib-tool --update' in more detail.
10157         Reported by Eric Blake.
10158
10159 2010-09-04  Bruno Haible  <bruno@clisp.org>
10160
10161         gnulib-tool: Change --import. New options --add/remove-import.
10162         * gnulib-tool: New options --add-import, --remove-import.
10163         (func_usage): Document them.
10164         (have_associative): Define always.
10165         (func_import): In import mode, don't merge the specified settings with
10166         the cached settings. Implement remove-import mode.
10167         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
10168         Explain when to use them versus --import.
10169         (Simple update): Use --add-import instead of --import.
10170         * NEWS: Mention the change.
10171
10172 2010-09-04  Bruno Haible  <bruno@clisp.org>
10173
10174         * doc/gnulib-tool.texi (Initial import): Update paragraph about
10175         separate gnulib.mk.
10176
10177 2010-09-04  Bruno Haible  <bruno@clisp.org>
10178
10179         gnulib-tool: Don't talk about CVS any more.
10180         * gnulib-tool (func_usage, func_import): Write "version control"
10181         instead of CVS.
10182
10183 2010-09-04  Jim Meyering  <meyering@redhat.com>
10184
10185         maint.mk: avoid obscure sc_copyright_check failure in coreutils
10186         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
10187         false positives (whose names may be ill-chosen) when searching
10188         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
10189         would cause a false-positive.
10190
10191         avoid coreutils "make distcheck" failure
10192         Coreutils tests with an absolute build directory name that contains
10193         a space.  Not quoting this directory name caused a failure.
10194         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
10195         * tests/test-vc-list-files-cvs.sh: Likewise.
10196
10197 2010-09-04  Bruno Haible  <bruno@clisp.org>
10198
10199         gnulib-tool: Avoid error when run in a package without Makefile.am.
10200         * gnulib-tool: When collecting the m4dirs in a package that does not
10201         have a Makefile.am, eliminate those directories that contain no
10202         gnulib-cache.m4. Fix expression that counts these directories.
10203
10204 2010-09-04  Bruno Haible  <bruno@clisp.org>
10205
10206         update-copyright test: Improve output when perl is missing or too old.
10207         * tests/test-update-copyright.sh: Move test of Perl version down after
10208         the test whether Perl exists. Provide an explanation relating Perl's
10209         error message to Automake's SKIP: message.
10210
10211 2010-09-04  Bruno Haible  <bruno@clisp.org>
10212
10213         Don't augment PATH in TESTS_ENVIRONMENT.
10214         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
10215         set abs_aux_dir instead of augmenting PATH.
10216         * modules/vc-list-files-tests (Makefile.am): Likewise.
10217         * tests/test-update-copyright.sh: Augment PATH here.
10218         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
10219         path_prepend_.
10220         * tests/test-vc-list-files-git.sh: Likewise.
10221
10222 2010-09-04  Jim Meyering  <meyering@redhat.com>
10223
10224         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
10225         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
10226
10227 2010-09-04  Bruno Haible  <bruno@clisp.org>
10228
10229         strdup: Fix compilation error in C++ mode.
10230         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
10231         the macro.
10232
10233 2010-09-04  Bruno Haible  <bruno@clisp.org>
10234
10235         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
10236         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
10237         macro into a function.
10238         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
10239
10240 2010-09-04  Bruno Haible  <bruno@clisp.org>
10241
10242         Set PATH_SEPARATOR the same way autoconf does.
10243         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
10244         the value of PATH_SEPARATOR the same way autoconf-generated configure
10245         scripts do.
10246         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
10247         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
10248
10249 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10250
10251         Set PATH_SEPARATOR the same way autoconf does.
10252         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
10253         the same way autoconf-generated configure scripts do.
10254         * posix-modules: Likewise.
10255
10256 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
10257
10258         hash: fix safe_hasher const typo
10259         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
10260         const; otherwise, there is a type error later.
10261
10262 2010-09-02  Jim Meyering  <meyering@redhat.com>
10263
10264         test-update-copyright.sh: require perl 5.8.0
10265         * tests/test-update-copyright.sh: Require 5.8.0,
10266         which Tom G. Christensen has confirmed is adequate,
10267         while 5.6.1 is not.
10268
10269 2010-09-02  Eric Blake  <eblake@redhat.com>
10270
10271         tests: init.sh improvements for re-exec'ing with zsh
10272         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
10273         -vx through shell re-exec.
10274         Reported by Tom G. Christensen.
10275
10276         wctype: fix typo in previous commit
10277         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
10278         Reported by Ludovic Courtès.
10279
10280 2010-09-02  Jim Meyering  <meyering@redhat.com>
10281
10282         test-update-copyright.sh: skip test if Perl is too old
10283         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
10284         Reported by Tom G. Christensen.
10285
10286 2010-09-02  Bruno Haible  <bruno@clisp.org>
10287
10288         wctype: Avoid compilation error on IRIX 6.5.30.
10289         * lib/wctype.in.h (iswblank): Declare with a replacement if
10290         REPLACE_ISWBLANK is set.
10291         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
10292         declared. Set REPLACE_ISWBLANK.
10293         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
10294         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
10295         * doc/posix-headers/wctype.texi: Likewise.
10296         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10297
10298 2010-09-01  Bruno Haible  <bruno@clisp.org>
10299
10300         New module 'socketlib'.
10301         * modules/socketlib: New file.
10302         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
10303         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
10304         * modules/sockets (Depends-on): Add socketlib.
10305         Suggested by Sam Steingold <sds@gnu.org>.
10306
10307 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10308
10309         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
10310
10311         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
10312         when one needs search access to a directory but not read access.
10313         On systems where it is available, it works in some cases where
10314         O_RDONLY does not, namely on directories that are searchable but
10315         not readable, and which need only to be searchable.  If O_SEARCH
10316         is not available, fall back to the traditional method of using
10317         O_RDONLY.
10318
10319         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
10320         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
10321         when opening a directory that needs only to be searchable.
10322         * lib/chdir-safer.c (chdir_no_follow): Likewise.
10323         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
10324         * lib/openat-proc.c (openat_proc_name): Likewise.
10325         * lib/openat.c (openat_needs_fchdir): Likewise.
10326         * lib/save-cwd.c (save_cwd): Likewise.
10327         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
10328
10329 2010-08-28  Bruno Haible  <bruno@clisp.org>
10330
10331         New module 'host-cpu-c-abi'.
10332         * modules/host-cpu-c-abi: New file.
10333         * m4/host-cpu-c-abi.m4: New file, based on part of
10334         clisp/src/m4/general.m4.
10335         Requested by Sam Steingold <sds@gnu.org>.
10336
10337 2010-08-31  Eric Blake  <eblake@redhat.com>
10338         and Jim Meyering  <meyering@redhat.com>
10339
10340         hash: factor, and guard against misbehaving hasher function
10341         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
10342         of table->hasher's return value.  Also protect against a hash value
10343         so large that adding it to table->bucket results in a NULL pointer.
10344         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
10345         Use it in place of open-coded check-and-abort.
10346
10347 2010-08-30  Bruno Haible  <bruno@clisp.org>
10348
10349         hash: silence spurious clang warning
10350         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
10351         Reported by Eric Blake.
10352
10353 2010-08-30  Eric Blake  <eblake@redhat.com>
10354
10355         strstr, memmem, strcasestr: avoid leaked shell message
10356         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
10357         FreeBSD.
10358         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10359         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10360
10361         tests: silence clang warning
10362         * tests/test-malloca.c (do_allocation): Avoid dead store.
10363
10364 2010-08-29  Bruno Haible  <bruno@clisp.org>
10365
10366         gettext: Fix recent mistake.
10367         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
10368
10369 2010-08-29  Bruno Haible  <bruno@clisp.org>
10370
10371         selinux-h: Offer a --without-selinux option.
10372         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
10373         --without-selinux was specified, skip all tests and define
10374         HAVE_SELINUX_SELINUX_H to 0.
10375         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
10376         set LIB_SELINUX to empty.
10377         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
10378         gl_LIBSELINUX. If --without-selinux was specified, replace
10379         selinux/context.h.
10380         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
10381
10382 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10383             Bruno Haible  <bruno@clisp.org>
10384
10385         Make the module 'realloc-gnu' work again on AIX and OSF/1.
10386         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
10387         of HAVE_REALLOC.
10388         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
10389         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
10390         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
10391         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
10392
10393 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10394             Bruno Haible  <bruno@clisp.org>
10395
10396         Make the module 'calloc-gnu' work again on AIX and OSF/1.
10397         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
10398         HAVE_CALLOC.
10399         * lib/xmalloc.c: Update accordingly.
10400         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
10401         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
10402         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
10403
10404 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10405             Bruno Haible  <bruno@clisp.org>
10406
10407         Make the module 'malloc-gnu' work again on AIX and OSF/1.
10408         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
10409         HAVE_MALLOC.
10410         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
10411         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
10412         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
10413
10414 2010-08-29  Bruno Haible  <bruno@clisp.org>
10415
10416         Update modules list.
10417         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
10418         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
10419         (String handling <string.h>): Add astrxfrm.
10420         (File system functions): Add readlinkat.
10421
10422 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10423
10424         Tests for module 'realloc-gnu'.
10425         * modules/realloc-gnu-tests: New file.
10426         * tests/test-realloc-gnu.c: New file.
10427
10428         Tests for module 'calloc-gnu'.
10429         * modules/calloc-gnu-tests: New file.
10430         * tests/test-calloc-gnu.c: New file.
10431
10432         Tests for module 'malloc-gnu'.
10433         * modules/malloc-gnu-tests: New file.
10434         * tests/test-malloc-gnu.c: New file.
10435
10436 2010-08-28  Bruno Haible  <bruno@clisp.org>
10437
10438         Rename module 'realloc' -> 'realloc-gnu'.
10439         * modules/realloc-gnu: New file, copied from modules/realloc.
10440         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
10441         obsolete.
10442         * modules/mgetgroups (Depends-on): Update.
10443         * doc/posix-functions/realloc.texi: Update.
10444         * NEWS: Mention the change.
10445
10446         Rename module 'calloc' -> 'calloc-gnu'.
10447         * modules/calloc-gnu: New file, copied from modules/calloc.
10448         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
10449         obsolete.
10450         * doc/posix-functions/calloc.texi: Update.
10451         * NEWS: Mention the change.
10452
10453         Rename module 'malloc' -> 'malloc-gnu'.
10454         * modules/malloc-gnu: New file, copied from modules/malloc.
10455         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
10456         obsolete.
10457         * modules/argp (Depends-on): Update.
10458         * modules/regex (Depends-on): Update.
10459         * doc/posix-functions/malloc.texi: Update.
10460         * NEWS: Mention the change.
10461
10462 2010-08-28  Eric Blake  <eblake@redhat.com>
10463
10464         pread, pwrite: add missing dependency
10465         * modules/pread (Depends-on): Add extensions.
10466         * modules/pwrite (Depends-on): Likewise.
10467
10468 2010-08-28  Bruno Haible  <bruno@clisp.org>
10469
10470         unistr/u*-strchr: Fix tests dependencies.
10471         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
10472         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
10473         Reported by Ian Beckwith <ianb@erislabs.net>.
10474
10475 2010-08-28  Bruno Haible  <bruno@clisp.org>
10476
10477         read-file: Don't occupy too much unused memory.
10478         * lib/read-file.c (fread_file): Shrink the buffer at the end.
10479
10480 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
10481             Eric Blake  <eblake@redhat.com>
10482             Bruno Haible  <bruno@clisp.org>
10483
10484         read-file: Avoid memory reallocations with regular files.
10485         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
10486         (fread_file): With regular files, use the remaining length as the
10487         initial buffer size.  Check against overflow.
10488         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
10489         sys_stat.
10490
10491 2010-08-28  Bruno Haible  <bruno@clisp.org>
10492
10493         ftello: Relax license.
10494         * modules/ftello (License): Relax to LGPLv2+.
10495         Reported by Eric Blake.
10496
10497 2010-08-28  Bruno Haible  <bruno@clisp.org>
10498
10499         Avoid relocwrapper link errors due to gnulib replacement functions.
10500         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
10501         function.
10502         Reported by Ben Pfaff <blp@cs.stanford.edu>.
10503
10504 2010-08-28  Bruno Haible  <bruno@clisp.org>
10505
10506         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
10507         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
10508         defined.
10509         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
10510         Suggested by Eric Blake.
10511
10512 2010-08-28  Bruno Haible  <bruno@clisp.org>
10513
10514         sys_socket, netdb: Ensure socklen_t gets defined.
10515         * modules/sys_socket (Depends-on): Add socklen.
10516         * modules/netdb (Depends-on): Likewise.
10517         * modules/getaddrinfo (Depends-on): Remove socklen.
10518         * modules/getsockopt (Depends-on): Likewise.
10519         * modules/setsockopt (Depends-on): Likewise.
10520         * tests/test-sys_socket.c: Check that socklen_t is defined.
10521         * tests/test-netdb.c: Likewise.
10522         * m4/socklen.m4: Update comments.
10523         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10524
10525 2010-08-27  Eric Blake  <eblake@redhat.com>
10526
10527         login_tty: add missing dependency
10528         * modules/login_tty (Depends-on): Add pty.
10529
10530 2010-08-26  Eric Blake  <eblake@redhat.com>
10531
10532         lib-symbol-versions: fix m4 quoting
10533         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
10534         format for AC_LINK_IFELSE.
10535
10536         glob: fix compile test
10537         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
10538
10539         btowc: fix missing file
10540         * modules/btowc (Files): Also ship locale-fr.m4.
10541
10542         lseek: fix link test
10543         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
10544         AC_LINK_IFELSE.
10545
10546         include_next: silence autoconf 2.68 warning
10547         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
10548         AC_COMPILE_IFELSE as special.
10549         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
10550         autoconf < 2.68.
10551
10552         acl: fix compilation test
10553         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
10554         AC_COMPILE_IFELSE.
10555
10556 2010-08-26  Bruno Haible  <bruno@clisp.org>
10557
10558         Modernize AC_TRY_RUN invocations.
10559         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
10560         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
10561         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
10562         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
10563         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
10564         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
10565         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
10566         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
10567         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
10568         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10569         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
10570         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
10571         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
10572         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
10573         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
10574         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
10575         gl_MBRLEN_NUL_RETVAL): Likewise.
10576         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
10577         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
10578         Likewise.
10579         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10580         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10581         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
10582         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
10583         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
10584         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
10585         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
10586         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
10587         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
10588         Likewise.
10589         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
10590         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
10591         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10592         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
10593         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10594         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
10595         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
10596         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
10597         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10598         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10599
10600 2010-08-26  Bruno Haible  <bruno@clisp.org>
10601
10602         Modernize AC_TRY_LINK invocations.
10603         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
10604         AC_TRY_LINK.
10605         * m4/argp.m4 (gl_ARGP): Likewise.
10606         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
10607         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
10608         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
10609         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
10610         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
10611         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
10612         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
10613         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
10614         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
10615         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
10616         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
10617         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
10618         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
10619         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
10620         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
10621         * m4/hostent.m4 (gl_HOSTENT): Likewise.
10622         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10623         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
10624         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
10625         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
10626         Likewise.
10627         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
10628         Likewise.
10629         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
10630         Likewise.
10631         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
10632         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
10633         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
10634         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
10635         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
10636         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
10637         * m4/servent.m4 (gl_SERVENT): Likewise.
10638         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
10639         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
10640         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
10641         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
10642         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
10643         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10644         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10645         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10646         * modules/tsearch-tests (configure.ac): Likewise.
10647
10648 2010-08-26  Bruno Haible  <bruno@clisp.org>
10649
10650         Modernize AC_TRY_COMPILE invocations.
10651         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
10652         AC_TRY_COMPILE.
10653         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
10654         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
10655         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
10656         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
10657         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
10658         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
10659         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
10660         * m4/lock.m4 (gl_LOCK): Likewise.
10661         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
10662         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
10663         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
10664         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
10665         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
10666         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
10667         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
10668         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
10669         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
10670         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
10671         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
10672         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
10673         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
10674         extraneous semicolon.
10675
10676 2010-08-26  Jim Meyering  <meyering@redhat.com>
10677
10678         stat-time: relax license LGPL
10679         * modules/stat-time (License): Change from GPL to LGPL,
10680         with consent from all contributors, for use in libguile.
10681         Requested by Ludovic Courtès.
10682
10683 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
10684
10685         poll: return immediately on POLLHUP.
10686         * lib/poll.c (poll): Always set timeout before wait_timeout is
10687         computed.
10688
10689 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10690
10691         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
10692         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
10693         rmdir ("dir/.//"), unlinkat.
10694
10695 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10696
10697         stdbool: avoid spurious failure with modern xlc
10698         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
10699
10700 2010-08-24  Bruno Haible  <bruno@clisp.org>
10701
10702         getloadavg: simplify code
10703         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
10704         gl_have_func. Update comments.
10705
10706 2010-08-24  Eric Blake  <eblake@redhat.com>
10707
10708         getloadavg: don't define SVR4 on cygwin
10709         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
10710         only define SVR4 when -lkvm is required.
10711         Reported by Yaakov Selkowitz.
10712
10713 2010-08-24  Bruno Haible  <bruno@clisp.org>
10714
10715         priv-set: fix comment
10716         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
10717
10718 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
10719
10720         priv-set: fix comments
10721         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
10722         to match code, as suggested by David Bartley in:
10723         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
10724
10725 2010-08-23  Eric Blake  <eblake@redhat.com>
10726
10727         stdbool: avoid rejecting clang
10728         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
10729         * tests/test-stdbool.c: Enable more tests if using the system
10730         <stdbool.h> instead of the gnulib replacement.
10731         (main): Move xlc bug test to a runtime test for all compilers.
10732         Reported by Anders Kaseorg.
10733
10734         argz: fix shell quoting issue
10735         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
10736         Reported by Charles Wilson.
10737
10738 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
10739             Erik Faye-Lund <kusmabite@gmail.com>
10740
10741         poll, select: handle ERROR_BROKEN_PIPE.
10742         * lib/poll.c (win32_compute_revents): Return POLLHUP when
10743         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
10744         * lib/select.c (win32_compute_revents): Do not mark a pipe
10745         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
10746
10747 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
10748
10749         fts: allow compilation with C++
10750         * lib/fts_.h: Specify extern "C" linkage with C++.
10751
10752 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10753
10754         Fix gnulib-tool sed script de-commentation for AIX sed.
10755         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
10756         sed.
10757
10758 2010-08-17  Eric Blake  <eblake@redhat.com>
10759
10760         test-stddef: test for (some) offsetof bugs
10761         * tests/test-stddef.c: Enhance test to ensure correct type of
10762         offsetof.
10763         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
10764         that we are not fixing at this time.
10765
10766 2010-08-15  Bruno Haible  <bruno@clisp.org>
10767
10768         stpncpy: Allow stpncpy to be defined as a macro.
10769         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
10770         if it's already correctly declared.
10771         * lib/string.in.h (stpncpy): Undefine before redefining.
10772         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
10773
10774 2010-08-14  Bruno Haible  <bruno@clisp.org>
10775
10776         Rename module 'memxfrm' to 'amemxfrm'.
10777         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
10778         (amemxfrm): Renamed from memxfrm.
10779         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
10780         (amemxfrm): Renamed from memxfrm.
10781         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
10782         * NEWS: Mention the change.
10783         * MODULES.html.sh (String handling <string.h>): Update.
10784         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
10785         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
10786         * lib/unicase/u16-casexfrm.c: Likewise.
10787         * lib/unicase/u32-casexfrm.c: Likewise.
10788         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
10789         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
10790         * lib/uninorm/u16-normxfrm.c: Likewise.
10791         * lib/uninorm/u32-normxfrm.c: Likewise.
10792         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
10793         memxfrm.
10794         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
10795         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
10796         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
10797         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
10798         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
10799         Suggested by Paul Eggert.
10800
10801 2010-08-14  Bruno Haible  <bruno@clisp.org>
10802
10803         Tests for module 'astrxfrm'.
10804         * modules/astrxfrm-tests: New file.
10805         * tests/test-astrxfrm.c: New file.
10806
10807         New module 'astrxfrm'.
10808         * lib/astrxfrm.h: New file.
10809         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
10810         * modules/astrxfrm: New file.
10811
10812 2010-08-14  Reuben Thomas <rrt@sc3d.org>
10813
10814         regex: Tweak doc.
10815         * doc/regex.texi (Overview): Don't mention regex.c.
10816         (GNU Regular Expression Compiling): Likewise.
10817         (Match-end-of-line Operator): Mention 'not_eol'.
10818
10819 2010-08-14  Brian Gough  <bjg@gnu.org>
10820             Bruno Haible  <bruno@clisp.org>
10821
10822         git-merge-changelog: add doc relating to use with bzr and hg.
10823         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
10824
10825 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
10826
10827         pthread: fix pthread.h creation for srcdir != builddir
10828         * modules/pthread (Makefile.am): Fix the rule to work also in a
10829         non-srcdir build.
10830
10831 2010-08-13  Karl Berry  <karl@gnu.org>
10832
10833         * doc/regex.texi (Predefined Syntaxes): @smallexample.
10834         * doc/posix-*/*: force line break before @url of POSIX
10835         specifications.
10836         Suggested by Werner Lemberg.
10837
10838 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10839
10840         strtod: fix const diagnostic
10841         * lib/strtod.c (strtod): Don't assign const char * to char *,
10842         as this elicits a warning from GCC when warnings are enabled.
10843
10844 2010-08-10  Pádraig Brady <P@draigbrady.com>
10845         and Eric Blake  <eblake@redhat.com>
10846
10847         copy-acl: ignore ENOTSUP on HP-UX
10848         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
10849         so that it is available for HP-UX.
10850         * lib/copy-acl.c (qcopy_acl): Use it.
10851         Reported by Patrick M. Callahan.
10852
10853 2010-08-10  Eric Blake  <eblake@redhat.com>
10854
10855         open, chown: relax license
10856         * modules/open (License): Change to LGPLv2+, with consent by all
10857         authors, for use in augeas.
10858         * modules/chown (License): Likewise.
10859         * modules/lchown (Likewise): Likewise.
10860         Requested by Adam Stokes.
10861
10862 2010-08-09  Karl Berry  <karl@gnu.org>
10863
10864         * build-aux/ar-lib: new file, import from Automake.
10865         * config/srclist.txt: autocheck for updates.
10866
10867 2010-08-09  Eric Blake  <eblake@redhat.com>
10868
10869         readlinkat: adjust client modules
10870         * modules/areadlinkat (Depends-on): Use readlinkat, not
10871         symlinkat.
10872         * modules/areadlinkat-with-size (Depends-on): Likewise.
10873
10874         mknod: be more vocal about danger of running tests as root
10875         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
10876         root, since that is just asking for problems.
10877         Suggested by Bruno Haible, based on a report by Rainer Tammer.
10878
10879         readlinkat: split into its own module
10880         * modules/symlinkat: Split readlinkat...
10881         * modules/readlinkat: ...into separate module.
10882         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
10883         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
10884         * lib/symlinkat.c (readlinkat): Move...
10885         * lib/readlinkat.c: ...into new file.
10886         * modules/symlinkat-tests: Split readlinkat test...
10887         * modules/readlinkat-tests: ...into separate module.
10888         * tests/test-symlinkat.c: Split...
10889         * tests/test-readlinkat.c: ...into new file.
10890         * NEWS: Document the split.
10891         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10892         * lib/unistd.in.h (readlinkat): Likewise.
10893         Suggested by Bruno Haible.
10894
10895 2010-08-08  Bruno Haible  <bruno@clisp.org>
10896
10897         memxfrm: Speed up.
10898         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
10899         that usually only one call to strxfrm is necessary for each string
10900         part.
10901         Reported by Paul Eggert <eggert@cs.ucla.edu>.
10902
10903 2010-08-07  Karl Berry  <karl@gnu.org>
10904
10905         * doc/posix-headers/limits.texi,
10906         * doc/posix-functions/malloc.texi,
10907         * doc/posix-functions/strsignal.texi: missing @item.
10908         * doc/ld-version-script.texi: spurious leading i.
10909         * doc/regex.texi (Interval Operators): no commas inside @var.
10910
10911 2010-08-01  Bruno Haible  <bruno@clisp.org>
10912
10913         Integrate the regex documentation.
10914         * doc/gnulib.texi: Define 'cn' index.
10915         (Regular expressions): New a chapter that includes regex.texi and
10916         regexprops-generic.texi.
10917         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
10918         syntax.
10919
10920         Whitespace cleanup.
10921         * doc/regex.texi: Remove trailing spaces.
10922
10923         Add regex documentation.
10924         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
10925         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
10926         Written by Kathy A. Hargreaves and Karl Berry.
10927
10928 2010-08-01  Bruno Haible  <bruno@clisp.org>
10929
10930         link: Update documentation.
10931         * doc/posix-functions/link.texi: Update regarding Solaris.
10932
10933 2010-07-31  Bruno Haible  <bruno@clisp.org>
10934
10935         Update modules list.
10936         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
10937         (String handling <string.h>): Add memcmp2, memxfrm.
10938         (Container data structures): Add xlist, xsublist, xoset.
10939         (Core language properties): Add alignof, unused-parameter.
10940         (Process control, Numeric conversion functions <stdlib.h>): Renamed
10941         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
10942         (Unibyte characters <ctype.h>): New section.
10943         (String handling <string.h>): New section.
10944         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
10945         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
10946         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
10947         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
10948         tan, tanh, tanl, y0, y1, yn.
10949         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
10950         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
10951         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
10952         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
10953         unlockpt, vdprintf, vdprintf-posix.
10954         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
10955         (File system functions): Add concat-filename, sys_file, sys_ioctl,
10956         xconcat-filename.
10957         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
10958         getdtablesize, pipe2, pipe2-safer.
10959         (Security): New section.
10960         (Networking functions): Add accept4.
10961         (Signal handling): Add sigpipe.
10962         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
10963         mbmemcasecoll.
10964         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
10965         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
10966         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
10967         pipe-filter-ii.
10968         (Misc): Add argp-version-etc, login_tty, parse-duration.
10969
10970 2010-07-31  Bruno Haible  <bruno@clisp.org>
10971
10972         Improve doc in MODULES.html.
10973         * modules/linkat (Description): Add the word "function".
10974         * modules/mkfifo (Description): Likewise.
10975         * modules/mknod (Description): Likewise.
10976         * modules/remove (Description): Likewise.
10977         * modules/renameat (Description): Likewise.
10978         * modules/stat (Description): Likewise.
10979         * modules/symlink (Description): Likewise.
10980         * modules/unlink (Description): Likewise.
10981
10982 2010-07-31  Bruno Haible  <bruno@clisp.org>
10983
10984         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
10985         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
10986         option --enable/disable-c++ instead of --enable/disable-cxx.
10987         * NEWS: Mention the change.
10988
10989 2010-07-31  Bruno Haible  <bruno@clisp.org>
10990
10991         readlink, areadlink: Relax test a bit.
10992         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
10993         alternative to ENOTDIR.
10994         * tests/test-areadlink.h (test_areadlink): Likewise.
10995         Reported by Rainer Tammer.
10996
10997 2010-07-31  Bruno Haible  <bruno@clisp.org>
10998
10999         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
11000         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
11001         character, perform the search using U_STRCHR.
11002         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
11003         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
11004         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
11005         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
11006         Suggested by Paolo Bonzini.
11007
11008 2010-07-31  Bruno Haible  <bruno@clisp.org>
11009
11010         unistr/u*-strstr: Fix dependencies.
11011         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
11012         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
11013         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
11014
11015 2010-07-31  Bruno Haible  <bruno@clisp.org>
11016
11017         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
11018         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
11019         the beginning of the loop.
11020         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
11021         cases in 'switch' statement.
11022
11023         unistr/u8-strchr: Fix several bugs.
11024         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
11025         the string. When not found, return NULL, not a pointer near the end.
11026
11027         More tests for unistr/u8-strchr.
11028         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
11029         that the function does not read past the first occurrence of the byte
11030         being searched.
11031         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
11032         * tests/unistr/test-u16-strchr.c (main): New function.
11033         * tests/unistr/test-u32-strchr.c (main): New function.
11034
11035 2010-07-31  Bruno Haible  <bruno@clisp.org>
11036
11037         posix-modules: Ignore backup files of documentation files.
11038         * posix-modules: grep only through files named *.texi.
11039
11040 2010-07-31  Bruno Haible  <bruno@clisp.org>
11041
11042         symlinkat: Fix documentation.
11043         * doc/posix-functions/readlinkat.texi: Fix module name.
11044
11045 2010-07-31  Bruno Haible  <bruno@clisp.org>
11046
11047         fchownat: Replace also when chown has the trailing slash bug.
11048         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
11049         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
11050         introduced on 2010-04-10.
11051         Reported by Rainer Tammer.
11052
11053 2010-07-31  Bruno Haible  <bruno@clisp.org>
11054
11055         linkat: Work around AIX 7.1 bug.
11056         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
11057         whether linkat handles trailing slash correctly. If not, replace linkat
11058         and define LINKAT_TRAILING_SLASH_BUG.
11059         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
11060         check whether (fd1,file1) points to a directory if file1 or file2 ends
11061         in a slash. Code taken from lib/link.c.
11062         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
11063         Reported by Rainer Tammer.
11064
11065 2010-07-31  Bruno Haible  <bruno@clisp.org>
11066
11067         Correctly determine whether pow is available in libc on AIX 7 with xlc.
11068         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
11069         This disables an xlc optimization that was causing wrong test results.
11070         Reported by Rainer Tammer.
11071
11072 2010-07-31  Bruno Haible  <bruno@clisp.org>
11073
11074         iconv: Work around AIX 6.1..7.1 bug.
11075         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
11076         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
11077         cross-compiling, guess no on all versions of AIX.
11078         Reported by Rainer Tammer.
11079
11080 2010-07-31  Bruno Haible  <bruno@clisp.org>
11081
11082         readlink: Relax test a bit.
11083         * tests/test-readlink.h (test_readlink): Allow different errno value
11084         when readlink is called with a file name that ends in / and refers to
11085         a file.
11086         Suggested by Eric Blake.
11087         Reported by Rainer Tammer.
11088
11089 2010-07-31  Bruno Haible  <bruno@clisp.org>
11090
11091         copysign: Does not require -lm on glibc systems.
11092         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
11093         gl_COMMON_DOUBLE_MATHFUNC.
11094         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
11095
11096 2010-07-31  Bruno Haible  <bruno@clisp.org>
11097
11098         duplocale: Work around AIX 7.1 bug.
11099         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
11100         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
11101         * lib/duplocale.c (rpl_duplocale): Update comment.
11102         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
11103         Reported by Rainer Tammer.
11104
11105 2010-07-30  Bruno Haible  <bruno@clisp.org>
11106
11107         dirfd: Avoid link error on AIX 7.1.
11108         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
11109         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
11110         exist, set REPLACE_DIRFD.
11111         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
11112         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
11113         * doc/posix-functions/dirfd.texi: Update.
11114         Reported by Rainer Tammer.
11115
11116 2010-07-30  Eric Blake  <eblake@redhat.com>
11117
11118         strtod: next round of AIX fixes
11119         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
11120         exponent.
11121         * tests/test-strtod.c (main): Enhance tests.
11122         * doc/posix-functions/strtod.texi (strtod): Document next bug.
11123         Reported by Rainer Tammer.
11124
11125         futimens: fix configure check
11126         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
11127         Reported by Bruno Haible.
11128
11129 2010-07-30  Bruno Haible  <bruno@clisp.org>
11130
11131         getline: Update regarding AIX.
11132         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
11133         Reported by Rainer Tammer.
11134
11135 2010-07-30  Bruno Haible  <bruno@clisp.org>
11136
11137         wcwidth: Drop replacement on AIX 7.
11138         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
11139         AIX 7.
11140         Reported by Rainer Tammer.
11141
11142 2010-07-30  Bruno Haible  <bruno@clisp.org>
11143
11144         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
11145         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
11146         a 'char *'.
11147         Reported by Rainer Tammer.
11148
11149 2010-07-30  Bruno Haible  <bruno@clisp.org>
11150
11151         unlink: Update regarding AIX.
11152         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
11153         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
11154         Reported by Rainer Tammer.
11155
11156 2010-07-30  Bruno Haible  <bruno@clisp.org>
11157
11158         symlink: Update regarding AIX.
11159         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
11160         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
11161         Reported by Rainer Tammer.
11162
11163 2010-07-30  Bruno Haible  <bruno@clisp.org>
11164
11165         strndup: Update regarding AIX.
11166         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
11167         AIX 7.
11168         Reported by Rainer Tammer.
11169
11170 2010-07-30  Bruno Haible  <bruno@clisp.org>
11171
11172         stat: Update regarding AIX.
11173         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
11174         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
11175         Reported by Rainer Tammer.
11176
11177 2010-07-30  Bruno Haible  <bruno@clisp.org>
11178
11179         truncl: Fix autoconf test.
11180         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
11181         whether truncl works.
11182         Reported by Rainer Tammer.
11183
11184 2010-07-30  Bruno Haible  <bruno@clisp.org>
11185
11186         round: Update regarding AIX.
11187         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
11188         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
11189         Reported by Rainer Tammer.
11190
11191 2010-07-30  Bruno Haible  <bruno@clisp.org>
11192
11193         rename: Update regarding AIX.
11194         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
11195         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
11196         Reported by Rainer Tammer.
11197
11198 2010-07-30  Bruno Haible  <bruno@clisp.org>
11199
11200         printf.m4: Update regarding AIX.
11201         * m4/printf.m4: Update comments regarding AIX.
11202         Reported by Rainer Tammer.
11203
11204 2010-07-30  Bruno Haible  <bruno@clisp.org>
11205
11206         iconv: Update regarding AIX.
11207         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
11208         AIX 7.
11209         Reported by Rainer Tammer.
11210
11211 2010-07-30  Bruno Haible  <bruno@clisp.org>
11212
11213         getopt: Update regarding AIX.
11214         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
11215         no on AIX.
11216         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
11217         Reported by Rainer Tammer.
11218
11219 2010-07-30  Bruno Haible  <bruno@clisp.org>
11220
11221         ldexpl; Update regarding AIX.
11222         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
11223         on AIX 7.
11224         Reported by Rainer Tammer.
11225
11226 2010-07-30  Bruno Haible  <bruno@clisp.org>
11227
11228         frexpl: Update regarding AIX.
11229         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
11230         on AIX 7.
11231         Reported by Rainer Tammer.
11232
11233 2010-07-30  Bruno Haible  <bruno@clisp.org>
11234
11235         open, fopen: Update regarding AIX.
11236         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
11237         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
11238         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
11239         * doc/posix-functions/fopen.texi: Likewise.
11240         Reported by Rainer Tammer.
11241
11242 2010-07-30  Bruno Haible  <bruno@clisp.org>
11243
11244         chown: Update doc regarding AIX.
11245         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
11246         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
11247         Reported by Rainer Tammer.
11248
11249 2010-07-30  Eric Blake  <eblake@redhat.com>
11250
11251         strtod: fix bug in replacement function on AIX
11252         * lib/strtod.c (strtod): Special case broken "0x" parse in
11253         underlying strtod.
11254         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
11255         * doc/posix-functions/strtod.texi (strtod): Likewise.
11256         Reported by Rainer Tammer.
11257
11258 2010-07-30  Bruno Haible  <bruno@clisp.org>
11259
11260         mbrlen: Fix cross-compilation guess for AIX.
11261         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
11262         guess. Leftover from 2008-12-22.
11263
11264 2010-07-30  Bruno Haible  <bruno@clisp.org>
11265
11266         mbrtowc: Fix cross-compilation guess for AIX.
11267         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
11268         guess. Leftover from 2008-12-21.
11269
11270 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
11271
11272         init.sh: work around trap limitation of some shells
11273         * tests/init.sh (setup_): Move exit trap outside of shell function.
11274
11275 2010-07-29  Eric Blake  <eblake@redhat.com>
11276
11277         strtod: aid debugging
11278         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
11279         understanding why strtod is rejected.
11280
11281 2010-07-28  Bruno Haible  <bruno@clisp.org>
11282
11283         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
11284         * lib/unistr/u8-chr.c: Include <string.h>.
11285         * tests/unistr/test-u8-chr.c: Likewise.
11286         * tests/unistr/test-u16-chr.c: Likewise.
11287         * tests/unistr/test-u32-chr.c: Likewise.
11288         * tests/unistr/test-u8-strchr.c: Likewise.
11289         * tests/unistr/test-u16-strchr.c: Likewise.
11290         * tests/unistr/test-u32-strchr.c: Likewise.
11291         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
11292         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
11293         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
11294         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
11295
11296 2010-07-28  Bruno Haible  <bruno@clisp.org>
11297
11298         Use spaces for indentation, not tabs.
11299         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
11300
11301 2010-07-27  Bruno Haible  <bruno@clisp.org>
11302
11303         mbspcasecmp: Fix function specification.
11304         * lib/string.in.h (mbspcasecmp): Fix specification comment.
11305         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
11306         Reported by Eric Blake <eblake@redhat.com>.
11307
11308 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
11309
11310         timespec: use cast and not conditional, as truncation isn't possible
11311         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
11312         instead of a conditional.  Comment about the situation in more detail.
11313         This undoes most of the 2009-10-29 patch.
11314
11315 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
11316
11317         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
11318         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
11319         * lib/unistr/u8-strchr.c: Likewise.
11320         * modules/unistr/u8-chr: Depend on memchr.
11321
11322         unistr/u*-strchr: add tests
11323         * modules/unistr/u8-strchr-tests: New file.
11324         * modules/unistr/u16-strchr-tests: New file.
11325         * modules/unistr/u32-strchr-tests: New file.
11326         * tests/unistr/test-strchr.h: New file.
11327         * tests/unistr/test-u8-strchr.c: New file.
11328         * tests/unistr/test-u16-strchr.c: New file.
11329         * tests/unistr/test-u32-strchr.c: New file.
11330
11331         unistr/u*-chr: test multibyte sequences more
11332         * tests/unistr/test-chr.h: Do complete testing of the characters in the
11333         test vector.
11334         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
11335         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
11336         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
11337
11338         unistr/u*-chr: test multibyte sequences
11339         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
11340
11341         unistr/u*-chr: prepare for multibyte tests
11342         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
11343         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
11344         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
11345         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
11346         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
11347         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
11348
11349 2010-07-18  Bruno Haible  <bruno@clisp.org>
11350
11351         unistr/u8-strchr: Optimize non-ASCII argument case.
11352         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
11353         because the first byte often matches anyway.
11354         Reported by Pádraig Brady <P@draigbrady.com>.
11355
11356 2010-07-15  Karl Berry  <karl@gnu.org>
11357
11358         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
11359
11360 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
11361
11362         getcwd: on Solaris, work better if ancestors are inaccessible
11363         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
11364         buffer and size, try again with a large buffer.  This works better
11365         on Solaris, since its getcwd succeeds even if the path to the root
11366         is inaccessible, and this is helpful in common cases such as .zfs
11367         hidden directories.  Problem reported by J Chapman Flack in
11368         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
11369         Use system getcwd if it's declared, not merely if it's partly
11370         working; use the partly-working test only to avoid needless effort
11371         if the system getcwd fails.
11372         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
11373         comment that was already obsolete and is now even more obsolete.
11374         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
11375         now might call strdup.
11376
11377 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
11378
11379         pthread: Add enough so that coreutils/src/sort.c compiles.
11380         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
11381         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
11382         gnulib. Include <sched.h> and <time.h>, as per POSIX.
11383         Include <sys/types.h>, in case it defines pthread_t.
11384         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
11385         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
11386         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
11387         (pthread_rwlockattr_t, pthread_spinlock_t):
11388         New typedefs, if HAVE_PTHREAD_T is not defined.
11389         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
11390         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
11391         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
11392         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
11393         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
11394         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
11395         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
11396         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
11397         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
11398         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
11399         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
11400         New macros.
11401         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
11402         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
11403         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
11404         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
11405         (pthread_spin_unlock): New dummy functions.
11406         (pthread_create): Return EAGAIN; don't set errno.
11407         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
11408         require AC_C_INLINE.
11409         * modules/pthread (Depends-on): Add sched, time.
11410         (pthread.h): Use AM_V_GEN.
11411
11412 2010-07-13  Bruno Haible  <bruno@clisp.org>
11413
11414         striconveh: Don't malloc memory if the result buffer is sufficient.
11415         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
11416         buffer if its size is sufficient.
11417         Reported by Ludovic Courtès <ludo@gnu.org>.
11418
11419 2010-07-13  Bruno Haible  <bruno@clisp.org>
11420
11421         strtod: Add safety check.
11422         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
11423
11424 2010-07-12  Bruno Haible  <bruno@clisp.org>
11425
11426         Unify tests that set gl_cv_func_ldexpl_no_libm.
11427         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
11428         gl_FUNC_LDEXPL.
11429         (gl_FUNC_LDEXPL): Invoke it.
11430         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
11431
11432 2010-07-12  Bruno Haible  <bruno@clisp.org>
11433
11434         Unify tests that set gl_cv_func_ldexp_no_libm.
11435         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
11436         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
11437         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
11438         (configure.ac): Simply invoke gl_FUNC_LDEXP.
11439         * modules/strtod (Files): Add m4/ldexp.m4.
11440
11441 2010-07-12  Bruno Haible  <bruno@clisp.org>
11442
11443         Unify tests that set gl_cv_func_frexpl_no_libm.
11444         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
11445         gl_FUNC_FREXPL_NO_LIBM.
11446         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
11447         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
11448
11449 2010-07-12  Bruno Haible  <bruno@clisp.org>
11450
11451         Unify tests that set gl_cv_func_frexp_no_libm.
11452         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
11453         gl_FUNC_FREXP_NO_LIBM.
11454         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
11455         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
11456
11457 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
11458
11459         memcoll: clarify sizes versus lengths, document better, and tweak perf
11460         * lib/memcoll.c (strcoll_loop, memcoll0):
11461         Improve quality of descriptive comments.  Name variables
11462         consistently as to whether they are lengths (which do not include
11463         terminating null) versus sizes (which do).
11464         * lib/xmemcoll.c (xmemcoll0): Likewise.
11465         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
11466         returned when s1size == 0; this is easier to compile and saves
11467         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
11468
11469 2010-07-12  Bruno Haible  <bruno@clisp.org>
11470
11471         Tests for module '_Exit'.
11472         * modules/_Exit-tests: New file.
11473         * tests/test-_Exit.sh: New file.
11474         * tests/test-_Exit.c: New file.
11475
11476         New module '_Exit'.
11477         * lib/stdlib.in.h (__attribute__): New macro.
11478         (_Exit): New declaration.
11479         * lib/_Exit.c: New file.
11480         * m4/_Exit.m4: New file.
11481         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
11482         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
11483         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
11484         * modules/_Exit: New file.
11485         * tests/test-stdlib-c++.cc (_Exit): Check signature.
11486         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
11487
11488 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
11489
11490         strtod: make it more-accurate typically, and don't require libm
11491         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
11492         Include limits.h.  Don't include string.h.
11493         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
11494         (locale_isspace): New function, so that no casts are needed to
11495         check whether *s is a space.
11496         (ldexp): Provide an unused dummy if not available.
11497         (scale_radix_exp, parse_number, underlying_strtod): New functions.
11498         (strtod): Use them.  This implementation prefers to use the
11499         underlying strtod if available, falling back on our own code
11500         only to fix known bugs.  This is more likely to produce an
11501         accurate result.  Also, it avoids the use of libm functions.
11502         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
11503         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
11504         was absent, but it caused a test failure with coreutils.
11505         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
11506         with libm.
11507         * modules/strtod (Makefile.am, Link): libm is no longer needed.
11508         * modules/strtod-tests (Makefile.am): Likewise.
11509
11510 2010-07-11  Pádraig Brady  <P@draigBrady.com>
11511             Bruno Haible  <bruno@clisp.org>
11512
11513         unistr/u8-strchr: Optimize ASCII argument case.
11514         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
11515
11516 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11517
11518         (x)memcoll: minor tweaks
11519         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
11520         is after the type that it qualifies.
11521         (memcoll0): Likewise.
11522         * lib/memcoll.h (memcoll0): Likewise.
11523         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
11524         * lib/xmemcoll.h (xmemcoll0): Likewise.
11525         * lib/memcoll.c (memcoll0): Correct the comment.  This function
11526         differs from memcoll in that the NUL byte is part of the argument.
11527         Omit the abort-checks, as performance is a real issue here.  Plus,
11528         the checks were wrong anyway (an off-by-one error).  Omit local
11529         variable 'diff', as it's a bit clearer that way.
11530         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
11531         no longer needed.
11532
11533 2010-07-08  Chen Guo <chenguo4@yahoo.com>
11534
11535         (x)memcoll: speedup when input is known to be NUL delimited
11536         * lib/memcoll.c: Include stdlib.
11537         (memcoll0) New function.
11538         (strcoll_loop) New function, refactored for use in both memcoll
11539         and memcoll0.
11540         * lib/memcoll.h: Add prototype for memcoll0.
11541         * lib/xmemcoll.c: (xmemcoll0) New function.
11542         (collate_error) New function, refactored for use in both xmemcoll
11543         and xmemcoll0.
11544         * lib/xmemcoll.h: Add prototype for xmemcoll0.
11545         * m4/memcoll.m4: add inline invocation.
11546
11547 2010-07-06  Pádraig Brady  <P@draigBrady.com>
11548
11549         * build-aux/bootstrap: Remove any local translations
11550         from the translation project synchronization directory,
11551         so that local only translations are not distributed.
11552
11553 2010-07-04  Bruno Haible  <bruno@clisp.org>
11554
11555         fsusage: Clarify which code applies to which platforms.
11556         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
11557         platform.
11558         * lib/fsusage.c (get_fs_usage): Likewise.
11559
11560 2010-07-04  Bruno Haible  <bruno@clisp.org>
11561
11562         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
11563         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
11564         Reported by Martin Lambers <marlam@marlam.de>.
11565
11566 2010-07-04  Jim Meyering  <meyering@redhat.com>
11567
11568         hash: once again explicitly disallow insertion of NULL
11569         * lib/hash.c (hash_insert0): Reinstate just-removed test:
11570         inserting a NULL pointer cannot work with these functions.
11571         Add a comment with details.
11572         This reverts part of the 2010-07-01 commit, 5bef1a35
11573         "hash: extend module to deal with non-pointer keys".
11574
11575 2010-07-01  Bruno Haible  <bruno@clisp.org>
11576
11577         stdbool: Update doc.
11578         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
11579         Info from Christian Weisgerber <naddy@mips.inka.de>.
11580
11581 2010-07-01  Jim Meyering  <meyering@redhat.com>
11582
11583         hash: extend module to deal with non-pointer keys
11584         * lib/hash.c (hash_insert0): New interface, much like hash_insert
11585         but that allows insertion of non-pointer entries.
11586         Do not disallow an ENTRY value of NULL.
11587         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
11588         * lib/hash.h (hash_insert0): Declare.
11589
11590 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11591
11592         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
11593         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
11594         not present (i.e. with autoconf 2.59 and when using gettextize, not
11595         gnulib), require AC_GNU_SOURCE instead.
11596
11597 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
11598
11599         idpriv-drop: Fix tests.
11600         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
11601         not to the test-idpriv-droptemp program.
11602
11603 2010-06-29  Bruno Haible  <bruno@clisp.org>
11604
11605         string: Fix syntax error with g++ 2.96.
11606         * lib/string.in.h (__pure__): Remove definition.
11607         (_GL_ATTRIBUTE_PURE): New macro.
11608         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
11609         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
11610         Reported by Christian Weisgerber <naddy@mips.inka.de>.
11611
11612 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
11613
11614         unitypes: Fix bug introduced on 2010-05-18.
11615         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
11616
11617 2010-06-22  Eric Blake  <eblake@redhat.com>
11618
11619         memmem: slight optimization
11620         * lib/str-two-way.h (critical_factorization): Update comments.
11621         Reduce work during factorization phase.
11622         Reported by Carlos Bueno <carlos@bueno.org>.
11623
11624 2010-06-21  Bruno Haible  <bruno@clisp.org>
11625
11626         Fix HAVE_CALLOC_POSIX misnomer.
11627         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
11628         !HAVE_CALLOC_POSIX.
11629         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
11630         HAVE_CALLOC_POSIX.
11631         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
11632         instead of HAVE_CALLOC_POSIX.
11633         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
11634         HAVE_CALLOC_POSIX.
11635
11636         Use modern idiom for calloc() replacement.
11637         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
11638         AC_FUNC_CALLOC.
11639         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
11640         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
11641         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
11642         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
11643         (gl_REPLACE_CALLOC): New macro.
11644
11645 2010-06-21  Bruno Haible  <bruno@clisp.org>
11646
11647         Fix HAVE_REALLOC_POSIX misnomer.
11648         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
11649         !HAVE_REALLOC_POSIX.
11650         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
11651         HAVE_REALLOC_POSIX.
11652         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
11653         instead of HAVE_REALLOC_POSIX.
11654         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
11655         HAVE_REALLOC_POSIX.
11656
11657         Use modern idiom for realloc() replacement.
11658         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
11659         AC_FUNC_REALLOC.
11660         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
11661         Autoconf's AC_FUNC_REALLOC.
11662         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
11663         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
11664         (gl_REPLACE_REALLOC): New macro.
11665         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
11666
11667 2010-06-21  Bruno Haible  <bruno@clisp.org>
11668
11669         Fix HAVE_MALLOC_POSIX misnomer.
11670         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
11671         !HAVE_MALLOC_POSIX.
11672         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
11673         HAVE_MALLOC_POSIX.
11674         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
11675         instead of HAVE_MALLOC_POSIX.
11676         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
11677         HAVE_MALLOC_POSIX.
11678
11679         Use modern idiom for malloc() replacement.
11680         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
11681         AC_FUNC_MALLOC.
11682         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
11683         Autoconf's AC_FUNC_MALLOC.
11684         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
11685         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
11686         (gl_REPLACE_MALLOC): New macro.
11687         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
11688
11689 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
11690
11691         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
11692         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
11693         This macro takes 3 arguments, not 4.
11694
11695 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
11696
11697         ipv6: fix detection under mingw
11698         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
11699         in6_addr.
11700
11701 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
11702
11703         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
11704         that strtod() works when cross-compiling to a glibc version known
11705         to work.
11706
11707 2010-06-15  Bruno Haible  <bruno@clisp.org>
11708
11709         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
11710
11711 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
11712
11713         select: Correct timeout.
11714         * lib/select.c (rpl_select): Compute wait_timeout correctly.
11715
11716 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
11717
11718         git-version-gen: init shell var to avoid env var influence
11719         * build-aux/git-version-gen (v): Init shell var to empty.
11720
11721 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
11722
11723         priv-set: Don't assume that priv.h exists merely because getppriv does.
11724         See Jan Andersen's bug report about AIX 5L in
11725         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
11726         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
11727         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
11728         * lib/priv-set.h: Likewise.
11729         * tests/test-priv-set.c: Likewise.
11730
11731 2010-06-13  Bruno Haible  <bruno@clisp.org>
11732
11733         relocatable: Make it easier to test whether to install wrappers.
11734         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
11735         RELOCATABLE_VIA_WRAPPER.
11736
11737 2010-06-13  Bruno Haible  <bruno@clisp.org>
11738
11739         gnulib-tool: Display specified modules and dependencies differently.
11740         * gnulib-tool (func_show_module_list): New function.
11741         (func_import, func_create_testdir): Invoke it.
11742         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
11743
11744 2010-06-13  Bruno Haible  <bruno@clisp.org>
11745
11746         gnulib-tool: Align code of func_import and func_create_testdir.
11747         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
11748         specified_modules.
11749
11750 2010-06-12  Jim Meyering  <meyering@redhat.com>
11751
11752         test-inttostr: avoid spurious failure on Solaris 9
11753         * tests/test-inttostr.c (main): Skip the test when snprintf fails
11754         to accept "%ju".  Reported by Bruno Haible.
11755
11756 2010-06-11  Jim Meyering  <meyering@redhat.com>
11757
11758         test-sys_socket: mark variables as used more readably
11759         * tests/test-sys_socket.c (main): Mark otherwise unused variables
11760         as "used" explicitly via (void) statement casts.  This is more
11761         readable than using them in an artificial return expression.
11762         Suggestion from Bruno Haible.
11763
11764 2010-06-11  Bruno Haible  <bruno@clisp.org>
11765
11766         Avoid some more warnings from "gcc -Wwrite-strings".
11767         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
11768         to 'const char *'.
11769         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
11770         * tests/test-c-strcasestr.c (main): Likewise.
11771         * tests/test-mbscasestr1.c (main): Likewise.
11772         * tests/test-mbscasestr2.c (main): Likewise.
11773         * tests/test-memmem.c (main): Likewise.
11774         * tests/test-strstr.c (main): Likewise.
11775         * tests/test-strcasestr.c (main): Likewise.
11776
11777 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11778
11779         init.sh: change framework_failure_ to fail with status 99, not 1
11780         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
11781         automake's parallel-tests rule that this is an unexpected failure,
11782         even if the test is listed in XFAIL_TESTS.
11783
11784 2010-06-11  Jim Meyering  <meyering@redhat.com>
11785
11786         test-inttostr: avoid warnings about 4-6KB literal strings
11787         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
11788         Include "macros.h", for its definition of ASSERT.
11789         (CK): s/assert/ASSERT/
11790         * modules/inttostr-tests (Files): Add macros.h.
11791
11792         init.sh: don't use $ME_ or skip_ before they are defined
11793         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
11794         their first uses.  Also hoist their companions: warn_, fail_,
11795         framework_failure_, $stderr_fileno.  Prompted by a patch from
11796         Stefano Lattarini.
11797
11798         test-sys_socket: avoid set-but-not-used warnings from gcc
11799         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
11800         avoid warning about set-but-not-used variables.
11801
11802         test-xvasprintf: avoid 'const' discard warnings
11803         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
11804         "const" when assigning from literal strings.
11805         (test_xasprintf): Add "void" in function argument list to placate
11806         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
11807
11808         tests: avoid compilation warnings in argmatch and exclude tests...
11809         in packages that define ARGMATCH_DIE_DECL, like coreutils.
11810         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
11811         Since it always exits, declare with the "noreturn" attribute.
11812         * tests/test-argmatch.c: Likewise.
11813
11814         tests: avoid 'const' discard warnings in mbsstr tests
11815         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
11816         * tests/test-mbsstr2.c (main): Likewise.
11817
11818         test-verify: avoid warning from gcc's -Wmissing-declarations
11819         * tests/test-verify.c (function): Declare to be static.
11820
11821         test-inttostr.c: include <string.h> for use of strcmp
11822         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
11823
11824         test-linkat: avoid failed assertion on "other" architectures
11825         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
11826         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
11827         sparc: https://bugs.launchpad.net/bugs/591968
11828
11829 2010-06-11  Jim Meyering  <meyering@redhat.com>
11830
11831         printf.m4: avoid autoconf's "Expanded Before Required" warning
11832         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
11833         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
11834         autoconf warning.
11835
11836 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
11837
11838         Replacement header templates are now named with ".in", not "_".
11839         * doc/gnulib-intro.texi: Correct.
11840
11841 2010-06-10  Jim Meyering  <meyering@redhat.com>
11842
11843         inttostr-tests: depend on snprintf, not snprintf-posix
11844         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
11845         snprintf-posix, to avoid this aclocal failure:
11846           missing file gnulib-tests/vasnprintf.c
11847           configure.ac:45: error: expected source file, required through \
11848           AC_LIBSOURCES, not found
11849
11850 2010-06-10  Jim Meyering  <meyering@redhat.com>
11851
11852         inttostr: add a new function, inttostr, and tests
11853         The namesake function was not available.  The existence of the
11854         template file, inttostr.c makes its addition nontrivial.
11855         * lib/anytostr.c: Rename from inttostr.c.
11856         (anytostr): Rename from inttostr.
11857         * lib/inttostr.c: New file.
11858         * modules/inttostr (Files): Add anytostr.c.
11859         (Makefile.am): Set lib_SOURCES instead of ...
11860         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
11861         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
11862         * lib/offtostr.c: Likewise.
11863         * lib/uinttostr.c: Likewise.
11864         * lib/umaxtostr.c: Likewise.
11865         * modules/inttostr-tests: New file.
11866         * tests/test-inttostr.c: New file.  Test these functions.
11867
11868 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
11869             Bruno Haible  <bruno@clisp.org>
11870
11871         Add "Extending Gnulib" chapter to manual.
11872         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
11873         chapter.
11874         (Extending Gnulib): New chapter.
11875         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
11876         chapter.
11877
11878 2010-06-09  Bruno Haible  <bruno@clisp.org>
11879
11880         Avoid relocwrapper link errors due to gnulib replacement functions.
11881         * lib/areadlink.c: Use the system's malloc, realloc functions.
11882         (areadlink): Set errno to ENOMEM explicitly.
11883         * modules/areadlink (Depends-on): Remove malloc-posix.
11884         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11885
11886 2010-06-09  Bruno Haible  <bruno@clisp.org>
11887
11888         Avoid relocwrapper link errors due to gnulib replacement functions.
11889         * lib/canonicalize-lgpl.c: Use the system's malloc function.
11890         * lib/malloca.c: Likewise.
11891         * lib/relocatable.c: Likewise.
11892         * lib/progreloc.c: Use the system's malloc, sprintf functions.
11893         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
11894         * lib/setenv.c: Use the system's malloc, realloc functions.
11895         * lib/strerror.c: Use the system's sprintf function.
11896         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11897
11898 2010-06-04  Bruno Haible  <bruno@clisp.org>
11899
11900         Prefer documented low-level autoconf macro names.
11901         * m4/lib-link.m4: Use m4_translit instead of translit.
11902         * m4/environ.m4: Likewise.
11903         * m4/mathfunc.m4: Likewise.
11904         * m4/onceonly.m4: Likewise.
11905         * m4/stdint.m4: Likewise.
11906         Suggested by Eric Blake.
11907
11908 2010-06-04  Martin Lambers  <marlam@marlam.de>
11909             Bruno Haible  <bruno@clisp.org>
11910
11911         havelib: Allow library names with '+' characters.
11912         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
11913         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
11914
11915 2010-06-09  Bruno Haible  <bruno@clisp.org>
11916
11917         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
11918         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
11919         realloc failed.
11920
11921 2010-06-08  Peter Simons  <simons@cryp.to>
11922
11923         maint.mk: make the news-check rule more configurable
11924         * top/maint.mk (news-check-lines-spec) New variable.
11925         (news-check): Use "sed -n 1,10p" in place of "head".
11926
11927 2010-06-07  Jim Meyering  <meyering@redhat.com>
11928
11929         do-release-commit-and-tag: fix typo in --help
11930         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
11931
11932         regex: avoid new dead-code warning with gcc-4.6.0
11933         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
11934         if-block containing a while-loop.  It's been unused for at least
11935         5 years.
11936
11937 2010-06-05  Bruno Haible  <bruno@clisp.org>
11938
11939         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
11940         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
11941
11942 2010-06-04  Bruno Haible  <bruno@clisp.org>
11943
11944         Update to GNU gettext 0.18.1.
11945         * modules/gettext (configure.ac): Require gettext infrastructure from
11946         version 0.18.1.
11947
11948 2010-06-03  Bruno Haible  <bruno@clisp.org>
11949
11950         Don't use AC_LIBOBJ with file names in subdirectories.
11951         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
11952         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
11953         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
11954         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
11955         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
11956         gl_LIBUNISTRING_LIBSOURCE.
11957         (Makefile.am): Augment lib_SOURCES here, conditionally.
11958         * NEWS: Drop requirement for Automake option 'subdir-objects'.
11959
11960 2010-06-03  Bruno Haible  <bruno@clisp.org>
11961
11962         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
11963         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
11964         expansion does not end with a newline.
11965         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
11966         unnecessary newline.
11967
11968 2010-06-03  Bruno Haible  <bruno@clisp.org>
11969
11970         Reduce dependencies.
11971         * tests/test-quotearg.h: New file, extracted from
11972         tests/test-quotearg.c.
11973         * tests/test-quotearg-simple.c: New file, extracted from
11974         tests/test-quotearg.c.
11975         * tests/test-quotearg.c: Don't include <ctype.h>.
11976         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
11977         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
11978         use_quote_double_quotes, use_quotearg_colon): Moved to
11979         tests/test-quotearg.h.
11980         (results_g, flag_results, custom_quotes, custom_results): Moved
11981         to tests/test-quotearg-simple.c.
11982         (main): Moved the part that does not depend on gettext to
11983         tests/test-quotearg-simple.c. Return 77 if the test cannot be
11984         performed.
11985         * modules/quotearg-simple: New file.
11986         * modules/quotearg-simple-tests: New file.
11987         * modules/quotearg (Depends-on): Add quotearg-simple.
11988         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
11989         (Files): Add tests/test-quotearg.h.
11990         Reported by Paolo Bonzini.
11991
11992 2010-06-03  Bruno Haible  <bruno@clisp.org>
11993
11994         Reduce dependencies.
11995         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
11996
11997 2010-06-03  Bruno Haible  <bruno@clisp.org>
11998
11999         time: Undefine more broken macros.
12000         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
12001         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
12002         Reported by Eric Blake.
12003
12004 2010-06-03  Bruno Haible  <bruno@clisp.org>
12005
12006         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
12007         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
12008         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
12009         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
12010         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
12011         Reported by Ludovic Courtès <ludo@gnu.org>.
12012
12013 2010-06-02  Eric Blake  <eblake@redhat.com>
12014
12015         time: work with mingw + pthreads-win32 library
12016         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
12017         if timespec is defined only in pthread.h.
12018         * modules/time (Makefile.am): Substitute it.
12019         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
12020         <pthread.h>, when needed.
12021         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
12022         from the library.
12023
12024 2010-05-31  Bruno Haible  <bruno@clisp.org>
12025
12026         Avoid expanding two macros in the wrong order.
12027         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
12028         gl_LIBUNISTRING if it is defined.
12029         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
12030         autoconf >= 2.64.
12031         Reported by Ludovic Courtès <ludo@gnu.org>.
12032
12033 2010-05-27  Jim Meyering  <meyering@redhat.com>
12034
12035         maint.mk: also prohibit "#undef" of always-defined symbols
12036         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
12037         Allow more than one space before the symbol name.
12038         (sc_prohibit_always-defined_macros): Use grep's -E, now that
12039         the regexp uses alternation.
12040
12041 2010-05-26  Eric Blake  <eblake@redhat.com>
12042
12043         maint.mk: avoid echo -e
12044         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
12045         Convert all uses of echo -* to printf.
12046         Reported by Matthias Bolte.
12047
12048 2010-05-25  Bruno Haible  <bruno@clisp.org>
12049
12050         Update to GNU gettext 0.18, part 2.
12051         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
12052         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
12053
12054 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12055
12056         Add missing include in test-pwrite.c.
12057         * tests/test-pwrite.c: Include string.h, for strcmp.
12058
12059 2010-05-24  Bruno Haible  <bruno@clisp.org>
12060
12061         * NEWS: Mention requirement for Automake option 'subdir-objects'.
12062
12063 2010-05-24  Bruno Haible  <bruno@clisp.org>
12064
12065         Don't use conversion with transliteration in u{8,16,32}_strcoll.
12066         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
12067         iconveh_error argument.
12068         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
12069         U_STRCONV_TO_LOCALE.
12070         * lib/unistr/u16-strcoll.c: Likewise.
12071         * lib/unistr/u32-strcoll.c: Likewise.
12072         * modules/unistr/u8-strcoll (Depends-on): Add
12073         uniconv/u8-strconv-to-enc, localcharset. Remove
12074         uniconv/u8-strconv-to-locale.
12075         (configure.ac): Bump version number.
12076         * modules/unistr/u16-strcoll (Depends-on): Add
12077         uniconv/u16-strconv-to-enc, localcharset. Remove
12078         uniconv/u16-strconv-to-locale.
12079         (configure.ac): Bump version number.
12080         * modules/unistr/u32-strcoll (Depends-on): Add
12081         uniconv/u32-strconv-to-enc, localcharset. Remove
12082         uniconv/u32-strconv-to-locale.
12083         (configure.ac): Bump version number.
12084
12085 2010-05-24  Bruno Haible  <bruno@clisp.org>
12086
12087         Avoid a test failure on NetBSD 5.0.
12088         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
12089         an iconv() bug.
12090
12091 2010-05-24  Bruno Haible  <bruno@clisp.org>
12092
12093         Adjust #include directive style.
12094         * modules/regex (Includes): Recommend to write <regex.h>.
12095
12096 2010-05-24  Bruno Haible  <bruno@clisp.org>
12097
12098         regex: Don't require alloca.
12099         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
12100         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
12101         only inside if (0).
12102
12103 2010-05-23  Jim Meyering  <meyering@redhat.com>
12104
12105         test-renameat.c: include <sys/stat.h>
12106         * tests/test-renameat.c: Include <sys/stat.h>; required for
12107         definition of S_IS* macros.
12108
12109 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
12110
12111         Update maintainer documentation for 'relocatable-prog' module.
12112         * doc/relocatable-maint.texi: Update.
12113         Comments by Bruno Haible.
12114
12115 2010-05-23  Bruno Haible  <bruno@clisp.org>
12116
12117         git-merge-changelog: Enable --split-merged-entry by default.
12118         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
12119         (usage): Don't mention this option any more.
12120         Reported by Ralf Wildenhues.
12121
12122 2010-05-23  Jim Meyering  <meyering@redhat.com>
12123
12124         test-pwrite: do not leave behind a test file named "out"
12125         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
12126         The trivial-looking use of init.sh is really necessary.
12127         It ensures that the temporary file, "out", is created in
12128         a temporary directory, and removed upon termination.
12129         * tests/test-pwrite.sh: Re-add file.
12130         * modules/pwrite-tests: Reference it.
12131
12132 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12133
12134         Fix output redirection buglet in init.sh.
12135         * tests/init.sh: Fix redirection of stderr.
12136
12137 2010-05-20  Simon Josefsson  <simon@josefsson.org>
12138
12139         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
12140
12141 2010-05-17  Simon Josefsson  <simon@josefsson.org>
12142
12143         * modules/valgrind-tests: New file.
12144         * m4/valgrind-tests.m4: New file.
12145         * doc/valgrind-tests.texi: New file.
12146         * doc/gnulib.texi (Running self-tests under valgrind): New
12147         section.
12148
12149 2010-05-19  Bruno Haible  <bruno@clisp.org>
12150
12151         Clean up dead code in recent commit.
12152         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
12153         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
12154         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
12155         Suggested by Paolo Bonzini.
12156
12157 2010-05-19  Bruno Haible  <bruno@clisp.org>
12158
12159         Avoid valgrind error reports from libunistring.
12160         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
12161         * modules/libunistring (Files): Add it.
12162         * modules/libunistring-optional (Files): Likewise.
12163
12164 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
12165             Bruno Haible  <bruno@clisp.org>
12166
12167         New module 'libunistring-optional'.
12168         * modules/libunistring-optional: New file.
12169         * m4/libunistring-base.m4: New file.
12170         * m4/libunistring-optional.m4: New file.
12171         * lib/unicase.in.h: Renamed from lib/unicase.h.
12172         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
12173         * lib/unictype.in.h: Renamed from lib/unictype.h.
12174         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
12175         * lib/uniname.in.h: Renamed from lib/uniname.h.
12176         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
12177         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
12178         * lib/unistr.in.h: Renamed from lib/unistr.h.
12179         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
12180         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
12181         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
12182         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
12183         gl_LIBUNISTRING. If the library was found, determine the installed
12184         version and set LIBUNISTRING_VERSION.
12185         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
12186         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
12187         handle a configuration option --with-included-libunistring.
12188         * modules/libunistring (Files): Add m4/absolute-header.m4.
12189         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
12190         Add m4/libunistring-base.m4.
12191         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12192         (Makefile.am): Build unicase.h from unicase.in.h.
12193         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
12194         Add m4/libunistring-base.m4.
12195         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12196         (Makefile.am): Build uniconv.h from uniconv.in.h.
12197         * modules/unictype/base (Files): Use unictype.in.h instead of
12198         unictype.h. Add m4/libunistring-base.m4.
12199         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12200         (Makefile.am): Build unictype.h from unictype.in.h.
12201         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
12202         Add m4/libunistring-base.m4.
12203         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12204         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
12205         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
12206         Add m4/libunistring-base.m4.
12207         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12208         (Makefile.am): Build uniname.h from uniname.in.h.
12209         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
12210         Add m4/libunistring-base.m4.
12211         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12212         (Makefile.am): Build uninorm.h from uninorm.in.h.
12213         * modules/unistdio/base (Files): Use unistdio.in.h instead of
12214         unistdio.h. Add m4/libunistring-base.m4.
12215         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12216         (Makefile.am): Build unistdio.h from unistdio.in.h.
12217         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
12218         Add m4/libunistring-base.m4.
12219         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12220         (Makefile.am): Build unistr.h from unistr.in.h.
12221         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
12222         Add m4/libunistring-base.m4.
12223         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12224         (Makefile.am): Build unitypes.h from unitypes.in.h.
12225         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
12226         Add m4/libunistring-base.m4.
12227         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12228         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
12229         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
12230         uniwidth.h. Add m4/libunistring-base.m4.
12231         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12232         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
12233         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
12234         instead of augmenting lib_SOURCES.
12235         * modules/unicase/empty-suffix-context: Likewise.
12236         * modules/unicase/locale-language: Likewise.
12237         * modules/unicase/tolower: Likewise.
12238         * modules/unicase/totitle: Likewise.
12239         * modules/unicase/toupper: Likewise.
12240         * modules/unicase/u8-casecmp: Likewise.
12241         * modules/unicase/u8-casecoll: Likewise.
12242         * modules/unicase/u8-casefold: Likewise.
12243         * modules/unicase/u8-casexfrm: Likewise.
12244         * modules/unicase/u8-ct-casefold: Likewise.
12245         * modules/unicase/u8-ct-tolower: Likewise.
12246         * modules/unicase/u8-ct-totitle: Likewise.
12247         * modules/unicase/u8-ct-toupper: Likewise.
12248         * modules/unicase/u8-is-cased: Likewise.
12249         * modules/unicase/u8-is-casefolded: Likewise.
12250         * modules/unicase/u8-is-lowercase: Likewise.
12251         * modules/unicase/u8-is-titlecase: Likewise.
12252         * modules/unicase/u8-is-uppercase: Likewise.
12253         * modules/unicase/u8-prefix-context: Likewise.
12254         * modules/unicase/u8-suffix-context: Likewise.
12255         * modules/unicase/u8-tolower: Likewise.
12256         * modules/unicase/u8-totitle: Likewise.
12257         * modules/unicase/u8-toupper: Likewise.
12258         * modules/unicase/u16-casecmp: Likewise.
12259         * modules/unicase/u16-casecoll: Likewise.
12260         * modules/unicase/u16-casefold: Likewise.
12261         * modules/unicase/u16-casexfrm: Likewise.
12262         * modules/unicase/u16-ct-casefold: Likewise.
12263         * modules/unicase/u16-ct-tolower: Likewise.
12264         * modules/unicase/u16-ct-totitle: Likewise.
12265         * modules/unicase/u16-ct-toupper: Likewise.
12266         * modules/unicase/u16-is-cased: Likewise.
12267         * modules/unicase/u16-is-casefolded: Likewise.
12268         * modules/unicase/u16-is-lowercase: Likewise.
12269         * modules/unicase/u16-is-titlecase: Likewise.
12270         * modules/unicase/u16-is-uppercase: Likewise.
12271         * modules/unicase/u16-prefix-context: Likewise.
12272         * modules/unicase/u16-suffix-context: Likewise.
12273         * modules/unicase/u16-tolower: Likewise.
12274         * modules/unicase/u16-totitle: Likewise.
12275         * modules/unicase/u16-toupper: Likewise.
12276         * modules/unicase/u32-casecmp: Likewise.
12277         * modules/unicase/u32-casecoll: Likewise.
12278         * modules/unicase/u32-casefold: Likewise.
12279         * modules/unicase/u32-casexfrm: Likewise.
12280         * modules/unicase/u32-ct-casefold: Likewise.
12281         * modules/unicase/u32-ct-tolower: Likewise.
12282         * modules/unicase/u32-ct-totitle: Likewise.
12283         * modules/unicase/u32-ct-toupper: Likewise.
12284         * modules/unicase/u32-is-cased: Likewise.
12285         * modules/unicase/u32-is-casefolded: Likewise.
12286         * modules/unicase/u32-is-lowercase: Likewise.
12287         * modules/unicase/u32-is-titlecase: Likewise.
12288         * modules/unicase/u32-is-uppercase: Likewise.
12289         * modules/unicase/u32-prefix-context: Likewise.
12290         * modules/unicase/u32-suffix-context: Likewise.
12291         * modules/unicase/u32-tolower: Likewise.
12292         * modules/unicase/u32-totitle: Likewise.
12293         * modules/unicase/u32-toupper: Likewise.
12294         * modules/unicase/ulc-casecmp: Likewise.
12295         * modules/unicase/ulc-casecoll: Likewise.
12296         * modules/unicase/ulc-casexfrm: Likewise.
12297         * modules/uniconv/u8-conv-from-enc: Likewise.
12298         * modules/uniconv/u8-conv-to-enc: Likewise.
12299         * modules/uniconv/u8-strconv-from-enc: Likewise.
12300         * modules/uniconv/u8-strconv-from-locale: Likewise.
12301         * modules/uniconv/u8-strconv-to-enc: Likewise.
12302         * modules/uniconv/u8-strconv-to-locale: Likewise.
12303         * modules/uniconv/u16-conv-from-enc: Likewise.
12304         * modules/uniconv/u16-conv-to-enc: Likewise.
12305         * modules/uniconv/u16-strconv-from-enc: Likewise.
12306         * modules/uniconv/u16-strconv-from-locale: Likewise.
12307         * modules/uniconv/u16-strconv-to-enc: Likewise.
12308         * modules/uniconv/u16-strconv-to-locale: Likewise.
12309         * modules/uniconv/u32-conv-from-enc: Likewise.
12310         * modules/uniconv/u32-conv-to-enc: Likewise.
12311         * modules/uniconv/u32-strconv-from-enc: Likewise.
12312         * modules/uniconv/u32-strconv-from-locale: Likewise.
12313         * modules/uniconv/u32-strconv-to-enc: Likewise.
12314         * modules/uniconv/u32-strconv-to-locale: Likewise.
12315         * modules/unictype/bidicategory-byname: Likewise.
12316         * modules/unictype/bidicategory-name: Likewise.
12317         * modules/unictype/bidicategory-of: Likewise.
12318         * modules/unictype/bidicategory-test: Likewise.
12319         * modules/unictype/block-list: Likewise.
12320         * modules/unictype/block-test: Likewise.
12321         * modules/unictype/category-C: Likewise.
12322         * modules/unictype/category-Cc: Likewise.
12323         * modules/unictype/category-Cf: Likewise.
12324         * modules/unictype/category-Cn: Likewise.
12325         * modules/unictype/category-Co: Likewise.
12326         * modules/unictype/category-Cs: Likewise.
12327         * modules/unictype/category-L: Likewise.
12328         * modules/unictype/category-Ll: Likewise.
12329         * modules/unictype/category-Lm: Likewise.
12330         * modules/unictype/category-Lo: Likewise.
12331         * modules/unictype/category-Lt: Likewise.
12332         * modules/unictype/category-Lu: Likewise.
12333         * modules/unictype/category-M: Likewise.
12334         * modules/unictype/category-Mc: Likewise.
12335         * modules/unictype/category-Me: Likewise.
12336         * modules/unictype/category-Mn: Likewise.
12337         * modules/unictype/category-N: Likewise.
12338         * modules/unictype/category-Nd: Likewise.
12339         * modules/unictype/category-Nl: Likewise.
12340         * modules/unictype/category-No: Likewise.
12341         * modules/unictype/category-P: Likewise.
12342         * modules/unictype/category-Pc: Likewise.
12343         * modules/unictype/category-Pd: Likewise.
12344         * modules/unictype/category-Pe: Likewise.
12345         * modules/unictype/category-Pf: Likewise.
12346         * modules/unictype/category-Pi: Likewise.
12347         * modules/unictype/category-Po: Likewise.
12348         * modules/unictype/category-Ps: Likewise.
12349         * modules/unictype/category-S: Likewise.
12350         * modules/unictype/category-Sc: Likewise.
12351         * modules/unictype/category-Sk: Likewise.
12352         * modules/unictype/category-Sm: Likewise.
12353         * modules/unictype/category-So: Likewise.
12354         * modules/unictype/category-Z: Likewise.
12355         * modules/unictype/category-Zl: Likewise.
12356         * modules/unictype/category-Zp: Likewise.
12357         * modules/unictype/category-Zs: Likewise.
12358         * modules/unictype/category-and: Likewise.
12359         * modules/unictype/category-and-not: Likewise.
12360         * modules/unictype/category-byname: Likewise.
12361         * modules/unictype/category-name: Likewise.
12362         * modules/unictype/category-none: Likewise.
12363         * modules/unictype/category-of: Likewise.
12364         * modules/unictype/category-or: Likewise.
12365         * modules/unictype/category-test: Likewise.
12366         * modules/unictype/combining-class: Likewise.
12367         * modules/unictype/ctype-alnum: Likewise.
12368         * modules/unictype/ctype-alpha: Likewise.
12369         * modules/unictype/ctype-blank: Likewise.
12370         * modules/unictype/ctype-cntrl: Likewise.
12371         * modules/unictype/ctype-digit: Likewise.
12372         * modules/unictype/ctype-graph: Likewise.
12373         * modules/unictype/ctype-lower: Likewise.
12374         * modules/unictype/ctype-print: Likewise.
12375         * modules/unictype/ctype-punct: Likewise.
12376         * modules/unictype/ctype-space: Likewise.
12377         * modules/unictype/ctype-upper: Likewise.
12378         * modules/unictype/ctype-xdigit: Likewise.
12379         * modules/unictype/decimal-digit: Likewise.
12380         * modules/unictype/digit: Likewise.
12381         * modules/unictype/mirror: Likewise.
12382         * modules/unictype/numeric: Likewise.
12383         * modules/unictype/property-alphabetic: Likewise.
12384         * modules/unictype/property-ascii-hex-digit: Likewise.
12385         * modules/unictype/property-bidi-arabic-digit: Likewise.
12386         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
12387         * modules/unictype/property-bidi-block-separator: Likewise.
12388         * modules/unictype/property-bidi-boundary-neutral: Likewise.
12389         * modules/unictype/property-bidi-common-separator: Likewise.
12390         * modules/unictype/property-bidi-control: Likewise.
12391         * modules/unictype/property-bidi-embedding-or-override: Likewise.
12392         * modules/unictype/property-bidi-eur-num-separator: Likewise.
12393         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
12394         * modules/unictype/property-bidi-european-digit: Likewise.
12395         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
12396         * modules/unictype/property-bidi-left-to-right: Likewise.
12397         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
12398         * modules/unictype/property-bidi-other-neutral: Likewise.
12399         * modules/unictype/property-bidi-pdf: Likewise.
12400         * modules/unictype/property-bidi-segment-separator: Likewise.
12401         * modules/unictype/property-bidi-whitespace: Likewise.
12402         * modules/unictype/property-byname: Likewise.
12403         * modules/unictype/property-combining: Likewise.
12404         * modules/unictype/property-composite: Likewise.
12405         * modules/unictype/property-currency-symbol: Likewise.
12406         * modules/unictype/property-dash: Likewise.
12407         * modules/unictype/property-decimal-digit: Likewise.
12408         * modules/unictype/property-default-ignorable-code-point: Likewise.
12409         * modules/unictype/property-deprecated: Likewise.
12410         * modules/unictype/property-diacritic: Likewise.
12411         * modules/unictype/property-extender: Likewise.
12412         * modules/unictype/property-format-control: Likewise.
12413         * modules/unictype/property-grapheme-base: Likewise.
12414         * modules/unictype/property-grapheme-extend: Likewise.
12415         * modules/unictype/property-grapheme-link: Likewise.
12416         * modules/unictype/property-hex-digit: Likewise.
12417         * modules/unictype/property-hyphen: Likewise.
12418         * modules/unictype/property-id-continue: Likewise.
12419         * modules/unictype/property-id-start: Likewise.
12420         * modules/unictype/property-ideographic: Likewise.
12421         * modules/unictype/property-ids-binary-operator: Likewise.
12422         * modules/unictype/property-ids-trinary-operator: Likewise.
12423         * modules/unictype/property-ignorable-control: Likewise.
12424         * modules/unictype/property-iso-control: Likewise.
12425         * modules/unictype/property-join-control: Likewise.
12426         * modules/unictype/property-left-of-pair: Likewise.
12427         * modules/unictype/property-line-separator: Likewise.
12428         * modules/unictype/property-logical-order-exception: Likewise.
12429         * modules/unictype/property-lowercase: Likewise.
12430         * modules/unictype/property-math: Likewise.
12431         * modules/unictype/property-non-break: Likewise.
12432         * modules/unictype/property-not-a-character: Likewise.
12433         * modules/unictype/property-numeric: Likewise.
12434         * modules/unictype/property-other-alphabetic: Likewise.
12435         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
12436         * modules/unictype/property-other-grapheme-extend: Likewise.
12437         * modules/unictype/property-other-id-continue: Likewise.
12438         * modules/unictype/property-other-id-start: Likewise.
12439         * modules/unictype/property-other-lowercase: Likewise.
12440         * modules/unictype/property-other-math: Likewise.
12441         * modules/unictype/property-other-uppercase: Likewise.
12442         * modules/unictype/property-paired-punctuation: Likewise.
12443         * modules/unictype/property-paragraph-separator: Likewise.
12444         * modules/unictype/property-pattern-syntax: Likewise.
12445         * modules/unictype/property-pattern-white-space: Likewise.
12446         * modules/unictype/property-private-use: Likewise.
12447         * modules/unictype/property-punctuation: Likewise.
12448         * modules/unictype/property-quotation-mark: Likewise.
12449         * modules/unictype/property-radical: Likewise.
12450         * modules/unictype/property-sentence-terminal: Likewise.
12451         * modules/unictype/property-soft-dotted: Likewise.
12452         * modules/unictype/property-space: Likewise.
12453         * modules/unictype/property-terminal-punctuation: Likewise.
12454         * modules/unictype/property-test: Likewise.
12455         * modules/unictype/property-titlecase: Likewise.
12456         * modules/unictype/property-unassigned-code-value: Likewise.
12457         * modules/unictype/property-unified-ideograph: Likewise.
12458         * modules/unictype/property-uppercase: Likewise.
12459         * modules/unictype/property-variation-selector: Likewise.
12460         * modules/unictype/property-white-space: Likewise.
12461         * modules/unictype/property-xid-continue: Likewise.
12462         * modules/unictype/property-xid-start: Likewise.
12463         * modules/unictype/property-zero-width: Likewise.
12464         * modules/unictype/scripts: Likewise.
12465         * modules/unictype/syntax-c-ident: Likewise.
12466         * modules/unictype/syntax-c-whitespace: Likewise.
12467         * modules/unictype/syntax-java-ident: Likewise.
12468         * modules/unictype/syntax-java-whitespace: Likewise.
12469         * modules/unilbrk/u8-possible-linebreaks: Likewise.
12470         * modules/unilbrk/u8-width-linebreaks: Likewise.
12471         * modules/unilbrk/u16-possible-linebreaks: Likewise.
12472         * modules/unilbrk/u16-width-linebreaks: Likewise.
12473         * modules/unilbrk/u32-possible-linebreaks: Likewise.
12474         * modules/unilbrk/u32-width-linebreaks: Likewise.
12475         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
12476         * modules/unilbrk/ulc-width-linebreaks: Likewise.
12477         * modules/uniname/uniname: Likewise.
12478         * modules/uninorm/canonical-decomposition: Likewise.
12479         * modules/uninorm/composition: Likewise.
12480         * modules/uninorm/decomposing-form: Likewise.
12481         * modules/uninorm/decomposition: Likewise.
12482         * modules/uninorm/filter: Likewise.
12483         * modules/uninorm/nfc: Likewise.
12484         * modules/uninorm/nfd: Likewise.
12485         * modules/uninorm/nfkc: Likewise.
12486         * modules/uninorm/nfkd: Likewise.
12487         * modules/uninorm/u8-normalize: Likewise.
12488         * modules/uninorm/u8-normcmp: Likewise.
12489         * modules/uninorm/u8-normcoll: Likewise.
12490         * modules/uninorm/u8-normxfrm: Likewise.
12491         * modules/uninorm/u16-normalize: Likewise.
12492         * modules/uninorm/u16-normcmp: Likewise.
12493         * modules/uninorm/u16-normcoll: Likewise.
12494         * modules/uninorm/u16-normxfrm: Likewise.
12495         * modules/uninorm/u32-normalize: Likewise.
12496         * modules/uninorm/u32-normcmp: Likewise.
12497         * modules/uninorm/u32-normcoll: Likewise.
12498         * modules/uninorm/u32-normxfrm: Likewise.
12499         * modules/unistdio/u8-asnprintf: Likewise.
12500         * modules/unistdio/u8-asprintf: Likewise.
12501         * modules/unistdio/u8-snprintf: Likewise.
12502         * modules/unistdio/u8-sprintf: Likewise.
12503         * modules/unistdio/u8-u8-asnprintf: Likewise.
12504         * modules/unistdio/u8-u8-asprintf: Likewise.
12505         * modules/unistdio/u8-u8-snprintf: Likewise.
12506         * modules/unistdio/u8-u8-sprintf: Likewise.
12507         * modules/unistdio/u8-u8-vasnprintf: Likewise.
12508         * modules/unistdio/u8-u8-vasprintf: Likewise.
12509         * modules/unistdio/u8-u8-vsnprintf: Likewise.
12510         * modules/unistdio/u8-u8-vsprintf: Likewise.
12511         * modules/unistdio/u8-vasnprintf: Likewise.
12512         * modules/unistdio/u8-vasprintf: Likewise.
12513         * modules/unistdio/u8-vsnprintf: Likewise.
12514         * modules/unistdio/u8-vsprintf: Likewise.
12515         * modules/unistdio/u16-asnprintf: Likewise.
12516         * modules/unistdio/u16-asprintf: Likewise.
12517         * modules/unistdio/u16-snprintf: Likewise.
12518         * modules/unistdio/u16-sprintf: Likewise.
12519         * modules/unistdio/u16-u16-asnprintf: Likewise.
12520         * modules/unistdio/u16-u16-asprintf: Likewise.
12521         * modules/unistdio/u16-u16-snprintf: Likewise.
12522         * modules/unistdio/u16-u16-sprintf: Likewise.
12523         * modules/unistdio/u16-u16-vasnprintf: Likewise.
12524         * modules/unistdio/u16-u16-vasprintf: Likewise.
12525         * modules/unistdio/u16-u16-vsnprintf: Likewise.
12526         * modules/unistdio/u16-u16-vsprintf: Likewise.
12527         * modules/unistdio/u16-vasnprintf: Likewise.
12528         * modules/unistdio/u16-vasprintf: Likewise.
12529         * modules/unistdio/u16-vsnprintf: Likewise.
12530         * modules/unistdio/u16-vsprintf: Likewise.
12531         * modules/unistdio/u32-asnprintf: Likewise.
12532         * modules/unistdio/u32-asprintf: Likewise.
12533         * modules/unistdio/u32-snprintf: Likewise.
12534         * modules/unistdio/u32-sprintf: Likewise.
12535         * modules/unistdio/u32-u32-asnprintf: Likewise.
12536         * modules/unistdio/u32-u32-asprintf: Likewise.
12537         * modules/unistdio/u32-u32-snprintf: Likewise.
12538         * modules/unistdio/u32-u32-sprintf: Likewise.
12539         * modules/unistdio/u32-u32-vasnprintf: Likewise.
12540         * modules/unistdio/u32-u32-vasprintf: Likewise.
12541         * modules/unistdio/u32-u32-vsnprintf: Likewise.
12542         * modules/unistdio/u32-u32-vsprintf: Likewise.
12543         * modules/unistdio/u32-vasnprintf: Likewise.
12544         * modules/unistdio/u32-vasprintf: Likewise.
12545         * modules/unistdio/u32-vsnprintf: Likewise.
12546         * modules/unistdio/u32-vsprintf: Likewise.
12547         * modules/unistdio/ulc-asnprintf: Likewise.
12548         * modules/unistdio/ulc-asprintf: Likewise.
12549         * modules/unistdio/ulc-fprintf: Likewise.
12550         * modules/unistdio/ulc-snprintf: Likewise.
12551         * modules/unistdio/ulc-sprintf: Likewise.
12552         * modules/unistdio/ulc-vasnprintf: Likewise.
12553         * modules/unistdio/ulc-vasprintf: Likewise.
12554         * modules/unistdio/ulc-vfprintf: Likewise.
12555         * modules/unistdio/ulc-vsnprintf: Likewise.
12556         * modules/unistdio/ulc-vsprintf: Likewise.
12557         * modules/unistr/u8-check: Likewise.
12558         * modules/unistr/u8-chr: Likewise.
12559         * modules/unistr/u8-cmp: Likewise.
12560         * modules/unistr/u8-cmp2: Likewise.
12561         * modules/unistr/u8-cpy: Likewise.
12562         * modules/unistr/u8-cpy-alloc: Likewise.
12563         * modules/unistr/u8-endswith: Likewise.
12564         * modules/unistr/u8-mblen: Likewise.
12565         * modules/unistr/u8-mbsnlen: Likewise.
12566         * modules/unistr/u8-mbtouc: Likewise.
12567         * modules/unistr/u8-mbtouc-unsafe: Likewise.
12568         * modules/unistr/u8-mbtoucr: Likewise.
12569         * modules/unistr/u8-move: Likewise.
12570         * modules/unistr/u8-next: Likewise.
12571         * modules/unistr/u8-prev: Likewise.
12572         * modules/unistr/u8-set: Likewise.
12573         * modules/unistr/u8-startswith: Likewise.
12574         * modules/unistr/u8-stpcpy: Likewise.
12575         * modules/unistr/u8-stpncpy: Likewise.
12576         * modules/unistr/u8-strcat: Likewise.
12577         * modules/unistr/u8-strchr: Likewise.
12578         * modules/unistr/u8-strcmp: Likewise.
12579         * modules/unistr/u8-strcoll: Likewise.
12580         * modules/unistr/u8-strcpy: Likewise.
12581         * modules/unistr/u8-strcspn: Likewise.
12582         * modules/unistr/u8-strdup: Likewise.
12583         * modules/unistr/u8-strlen: Likewise.
12584         * modules/unistr/u8-strmblen: Likewise.
12585         * modules/unistr/u8-strmbtouc: Likewise.
12586         * modules/unistr/u8-strncat: Likewise.
12587         * modules/unistr/u8-strncmp: Likewise.
12588         * modules/unistr/u8-strncpy: Likewise.
12589         * modules/unistr/u8-strnlen: Likewise.
12590         * modules/unistr/u8-strpbrk: Likewise.
12591         * modules/unistr/u8-strrchr: Likewise.
12592         * modules/unistr/u8-strspn: Likewise.
12593         * modules/unistr/u8-strstr: Likewise.
12594         * modules/unistr/u8-strtok: Likewise.
12595         * modules/unistr/u8-to-u16: Likewise.
12596         * modules/unistr/u8-to-u32: Likewise.
12597         * modules/unistr/u8-uctomb: Likewise.
12598         * modules/unistr/u16-check: Likewise.
12599         * modules/unistr/u16-chr: Likewise.
12600         * modules/unistr/u16-cmp: Likewise.
12601         * modules/unistr/u16-cmp2: Likewise.
12602         * modules/unistr/u16-cpy: Likewise.
12603         * modules/unistr/u16-cpy-alloc: Likewise.
12604         * modules/unistr/u16-endswith: Likewise.
12605         * modules/unistr/u16-mblen: Likewise.
12606         * modules/unistr/u16-mbsnlen: Likewise.
12607         * modules/unistr/u16-mbtouc: Likewise.
12608         * modules/unistr/u16-mbtouc-unsafe: Likewise.
12609         * modules/unistr/u16-mbtoucr: Likewise.
12610         * modules/unistr/u16-move: Likewise.
12611         * modules/unistr/u16-next: Likewise.
12612         * modules/unistr/u16-prev: Likewise.
12613         * modules/unistr/u16-set: Likewise.
12614         * modules/unistr/u16-startswith: Likewise.
12615         * modules/unistr/u16-stpcpy: Likewise.
12616         * modules/unistr/u16-stpncpy: Likewise.
12617         * modules/unistr/u16-strcat: Likewise.
12618         * modules/unistr/u16-strchr: Likewise.
12619         * modules/unistr/u16-strcmp: Likewise.
12620         * modules/unistr/u16-strcoll: Likewise.
12621         * modules/unistr/u16-strcpy: Likewise.
12622         * modules/unistr/u16-strcspn: Likewise.
12623         * modules/unistr/u16-strdup: Likewise.
12624         * modules/unistr/u16-strlen: Likewise.
12625         * modules/unistr/u16-strmblen: Likewise.
12626         * modules/unistr/u16-strmbtouc: Likewise.
12627         * modules/unistr/u16-strncat: Likewise.
12628         * modules/unistr/u16-strncmp: Likewise.
12629         * modules/unistr/u16-strncpy: Likewise.
12630         * modules/unistr/u16-strnlen: Likewise.
12631         * modules/unistr/u16-strpbrk: Likewise.
12632         * modules/unistr/u16-strrchr: Likewise.
12633         * modules/unistr/u16-strspn: Likewise.
12634         * modules/unistr/u16-strstr: Likewise.
12635         * modules/unistr/u16-strtok: Likewise.
12636         * modules/unistr/u16-to-u32: Likewise.
12637         * modules/unistr/u16-to-u8: Likewise.
12638         * modules/unistr/u16-uctomb: Likewise.
12639         * modules/unistr/u32-check: Likewise.
12640         * modules/unistr/u32-chr: Likewise.
12641         * modules/unistr/u32-cmp: Likewise.
12642         * modules/unistr/u32-cmp2: Likewise.
12643         * modules/unistr/u32-cpy: Likewise.
12644         * modules/unistr/u32-cpy-alloc: Likewise.
12645         * modules/unistr/u32-endswith: Likewise.
12646         * modules/unistr/u32-mblen: Likewise.
12647         * modules/unistr/u32-mbsnlen: Likewise.
12648         * modules/unistr/u32-mbtouc: Likewise.
12649         * modules/unistr/u32-mbtouc-unsafe: Likewise.
12650         * modules/unistr/u32-mbtoucr: Likewise.
12651         * modules/unistr/u32-move: Likewise.
12652         * modules/unistr/u32-next: Likewise.
12653         * modules/unistr/u32-prev: Likewise.
12654         * modules/unistr/u32-set: Likewise.
12655         * modules/unistr/u32-startswith: Likewise.
12656         * modules/unistr/u32-stpcpy: Likewise.
12657         * modules/unistr/u32-stpncpy: Likewise.
12658         * modules/unistr/u32-strcat: Likewise.
12659         * modules/unistr/u32-strchr: Likewise.
12660         * modules/unistr/u32-strcmp: Likewise.
12661         * modules/unistr/u32-strcoll: Likewise.
12662         * modules/unistr/u32-strcpy: Likewise.
12663         * modules/unistr/u32-strcspn: Likewise.
12664         * modules/unistr/u32-strdup: Likewise.
12665         * modules/unistr/u32-strlen: Likewise.
12666         * modules/unistr/u32-strmblen: Likewise.
12667         * modules/unistr/u32-strmbtouc: Likewise.
12668         * modules/unistr/u32-strncat: Likewise.
12669         * modules/unistr/u32-strncmp: Likewise.
12670         * modules/unistr/u32-strncpy: Likewise.
12671         * modules/unistr/u32-strnlen: Likewise.
12672         * modules/unistr/u32-strpbrk: Likewise.
12673         * modules/unistr/u32-strrchr: Likewise.
12674         * modules/unistr/u32-strspn: Likewise.
12675         * modules/unistr/u32-strstr: Likewise.
12676         * modules/unistr/u32-strtok: Likewise.
12677         * modules/unistr/u32-to-u16: Likewise.
12678         * modules/unistr/u32-to-u8: Likewise.
12679         * modules/unistr/u32-uctomb: Likewise.
12680         * modules/uniwbrk/u8-wordbreaks: Likewise.
12681         * modules/uniwbrk/u16-wordbreaks: Likewise.
12682         * modules/uniwbrk/u32-wordbreaks: Likewise.
12683         * modules/uniwbrk/ulc-wordbreaks: Likewise.
12684         * modules/uniwbrk/wordbreak-property: Likewise.
12685         * modules/uniwidth/u8-strwidth: Likewise.
12686         * modules/uniwidth/u8-width: Likewise.
12687         * modules/uniwidth/u16-strwidth: Likewise.
12688         * modules/uniwidth/u16-width: Likewise.
12689         * modules/uniwidth/u32-strwidth: Likewise.
12690         * modules/uniwidth/u32-width: Likewise.
12691         * modules/uniwidth/width: Likewise.
12692         * modules/unicase/cased-tests (Makefile.am): Link all test programs
12693         with $(LIBUNISTRING).
12694         * modules/unicase/ignorable-tests: Likewise.
12695         * modules/unicase/locale-language-tests: Likewise.
12696         * modules/unicase/tolower-tests: Likewise.
12697         * modules/unicase/totitle-tests: Likewise.
12698         * modules/unicase/toupper-tests: Likewise.
12699         * modules/unicase/u8-casecmp-tests: Likewise.
12700         * modules/unicase/u8-casecoll-tests: Likewise.
12701         * modules/unicase/u8-casefold-tests: Likewise.
12702         * modules/unicase/u8-is-cased-tests: Likewise.
12703         * modules/unicase/u8-is-casefolded-tests: Likewise.
12704         * modules/unicase/u8-is-lowercase-tests: Likewise.
12705         * modules/unicase/u8-is-titlecase-tests: Likewise.
12706         * modules/unicase/u8-is-uppercase-tests: Likewise.
12707         * modules/unicase/u8-tolower-tests: Likewise.
12708         * modules/unicase/u8-totitle-tests: Likewise.
12709         * modules/unicase/u8-toupper-tests: Likewise.
12710         * modules/unicase/u16-casecmp-tests: Likewise.
12711         * modules/unicase/u16-casecoll-tests: Likewise.
12712         * modules/unicase/u16-casefold-tests: Likewise.
12713         * modules/unicase/u16-is-cased-tests: Likewise.
12714         * modules/unicase/u16-is-casefolded-tests: Likewise.
12715         * modules/unicase/u16-is-lowercase-tests: Likewise.
12716         * modules/unicase/u16-is-titlecase-tests: Likewise.
12717         * modules/unicase/u16-is-uppercase-tests: Likewise.
12718         * modules/unicase/u16-tolower-tests: Likewise.
12719         * modules/unicase/u16-totitle-tests: Likewise.
12720         * modules/unicase/u16-toupper-tests: Likewise.
12721         * modules/unicase/u32-casecmp-tests: Likewise.
12722         * modules/unicase/u32-casecoll-tests: Likewise.
12723         * modules/unicase/u32-casefold-tests: Likewise.
12724         * modules/unicase/u32-is-cased-tests: Likewise.
12725         * modules/unicase/u32-is-casefolded-tests: Likewise.
12726         * modules/unicase/u32-is-lowercase-tests: Likewise.
12727         * modules/unicase/u32-is-titlecase-tests: Likewise.
12728         * modules/unicase/u32-is-uppercase-tests: Likewise.
12729         * modules/unicase/u32-tolower-tests: Likewise.
12730         * modules/unicase/u32-totitle-tests: Likewise.
12731         * modules/unicase/u32-toupper-tests: Likewise.
12732         * modules/unicase/ulc-casecmp-tests: Likewise.
12733         * modules/unicase/ulc-casecoll-tests: Likewise.
12734         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
12735         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
12736         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
12737         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
12738         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
12739         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
12740         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
12741         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
12742         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
12743         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
12744         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
12745         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
12746         * modules/unictype/bidicategory-byname-tests: Likewise.
12747         * modules/unictype/bidicategory-name-tests: Likewise.
12748         * modules/unictype/bidicategory-of-tests: Likewise.
12749         * modules/unictype/bidicategory-test-tests: Likewise.
12750         * modules/unictype/block-list-tests: Likewise.
12751         * modules/unictype/block-of-tests: Likewise.
12752         * modules/unictype/block-test-tests: Likewise.
12753         * modules/unictype/category-C-tests: Likewise.
12754         * modules/unictype/category-Cc-tests: Likewise.
12755         * modules/unictype/category-Cf-tests: Likewise.
12756         * modules/unictype/category-Cn-tests: Likewise.
12757         * modules/unictype/category-Co-tests: Likewise.
12758         * modules/unictype/category-Cs-tests: Likewise.
12759         * modules/unictype/category-L-tests: Likewise.
12760         * modules/unictype/category-Ll-tests: Likewise.
12761         * modules/unictype/category-Lm-tests: Likewise.
12762         * modules/unictype/category-Lo-tests: Likewise.
12763         * modules/unictype/category-Lt-tests: Likewise.
12764         * modules/unictype/category-Lu-tests: Likewise.
12765         * modules/unictype/category-M-tests: Likewise.
12766         * modules/unictype/category-Mc-tests: Likewise.
12767         * modules/unictype/category-Me-tests: Likewise.
12768         * modules/unictype/category-Mn-tests: Likewise.
12769         * modules/unictype/category-N-tests: Likewise.
12770         * modules/unictype/category-Nd-tests: Likewise.
12771         * modules/unictype/category-Nl-tests: Likewise.
12772         * modules/unictype/category-No-tests: Likewise.
12773         * modules/unictype/category-P-tests: Likewise.
12774         * modules/unictype/category-Pc-tests: Likewise.
12775         * modules/unictype/category-Pd-tests: Likewise.
12776         * modules/unictype/category-Pe-tests: Likewise.
12777         * modules/unictype/category-Pf-tests: Likewise.
12778         * modules/unictype/category-Pi-tests: Likewise.
12779         * modules/unictype/category-Po-tests: Likewise.
12780         * modules/unictype/category-Ps-tests: Likewise.
12781         * modules/unictype/category-S-tests: Likewise.
12782         * modules/unictype/category-Sc-tests: Likewise.
12783         * modules/unictype/category-Sk-tests: Likewise.
12784         * modules/unictype/category-Sm-tests: Likewise.
12785         * modules/unictype/category-So-tests: Likewise.
12786         * modules/unictype/category-Z-tests: Likewise.
12787         * modules/unictype/category-Zl-tests: Likewise.
12788         * modules/unictype/category-Zp-tests: Likewise.
12789         * modules/unictype/category-Zs-tests: Likewise.
12790         * modules/unictype/category-and-not-tests: Likewise.
12791         * modules/unictype/category-and-tests: Likewise.
12792         * modules/unictype/category-byname-tests: Likewise.
12793         * modules/unictype/category-name-tests: Likewise.
12794         * modules/unictype/category-none-tests: Likewise.
12795         * modules/unictype/category-of-tests: Likewise.
12796         * modules/unictype/category-or-tests: Likewise.
12797         * modules/unictype/category-test-withtable-tests: Likewise.
12798         * modules/unictype/combining-class-tests: Likewise.
12799         * modules/unictype/ctype-alnum-tests: Likewise.
12800         * modules/unictype/ctype-alpha-tests: Likewise.
12801         * modules/unictype/ctype-blank-tests: Likewise.
12802         * modules/unictype/ctype-cntrl-tests: Likewise.
12803         * modules/unictype/ctype-digit-tests: Likewise.
12804         * modules/unictype/ctype-graph-tests: Likewise.
12805         * modules/unictype/ctype-lower-tests: Likewise.
12806         * modules/unictype/ctype-print-tests: Likewise.
12807         * modules/unictype/ctype-punct-tests: Likewise.
12808         * modules/unictype/ctype-space-tests: Likewise.
12809         * modules/unictype/ctype-upper-tests: Likewise.
12810         * modules/unictype/ctype-xdigit-tests: Likewise.
12811         * modules/unictype/decimal-digit-tests: Likewise.
12812         * modules/unictype/digit-tests: Likewise.
12813         * modules/unictype/mirror-tests: Likewise.
12814         * modules/unictype/numeric-tests: Likewise.
12815         * modules/unictype/property-alphabetic-tests: Likewise.
12816         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
12817         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
12818         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
12819         * modules/unictype/property-bidi-block-separator-tests: Likewise.
12820         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
12821         * modules/unictype/property-bidi-common-separator-tests: Likewise.
12822         * modules/unictype/property-bidi-control-tests: Likewise.
12823         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
12824         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
12825         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
12826         * modules/unictype/property-bidi-european-digit-tests: Likewise.
12827         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
12828         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
12829         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
12830         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
12831         * modules/unictype/property-bidi-pdf-tests: Likewise.
12832         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
12833         * modules/unictype/property-bidi-whitespace-tests: Likewise.
12834         * modules/unictype/property-byname-tests: Likewise.
12835         * modules/unictype/property-combining-tests: Likewise.
12836         * modules/unictype/property-composite-tests: Likewise.
12837         * modules/unictype/property-currency-symbol-tests: Likewise.
12838         * modules/unictype/property-dash-tests: Likewise.
12839         * modules/unictype/property-decimal-digit-tests: Likewise.
12840         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
12841         * modules/unictype/property-deprecated-tests: Likewise.
12842         * modules/unictype/property-diacritic-tests: Likewise.
12843         * modules/unictype/property-extender-tests: Likewise.
12844         * modules/unictype/property-format-control-tests: Likewise.
12845         * modules/unictype/property-grapheme-base-tests: Likewise.
12846         * modules/unictype/property-grapheme-extend-tests: Likewise.
12847         * modules/unictype/property-grapheme-link-tests: Likewise.
12848         * modules/unictype/property-hex-digit-tests: Likewise.
12849         * modules/unictype/property-hyphen-tests: Likewise.
12850         * modules/unictype/property-id-continue-tests: Likewise.
12851         * modules/unictype/property-id-start-tests: Likewise.
12852         * modules/unictype/property-ideographic-tests: Likewise.
12853         * modules/unictype/property-ids-binary-operator-tests: Likewise.
12854         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
12855         * modules/unictype/property-ignorable-control-tests: Likewise.
12856         * modules/unictype/property-iso-control-tests: Likewise.
12857         * modules/unictype/property-join-control-tests: Likewise.
12858         * modules/unictype/property-left-of-pair-tests: Likewise.
12859         * modules/unictype/property-line-separator-tests: Likewise.
12860         * modules/unictype/property-logical-order-exception-tests: Likewise.
12861         * modules/unictype/property-lowercase-tests: Likewise.
12862         * modules/unictype/property-math-tests: Likewise.
12863         * modules/unictype/property-non-break-tests: Likewise.
12864         * modules/unictype/property-not-a-character-tests: Likewise.
12865         * modules/unictype/property-numeric-tests: Likewise.
12866         * modules/unictype/property-other-alphabetic-tests: Likewise.
12867         * modules/unictype/property-other-default-ignorable-code-point-tests:
12868         Likewise.
12869         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
12870         * modules/unictype/property-other-id-continue-tests: Likewise.
12871         * modules/unictype/property-other-id-start-tests: Likewise.
12872         * modules/unictype/property-other-lowercase-tests: Likewise.
12873         * modules/unictype/property-other-math-tests: Likewise.
12874         * modules/unictype/property-other-uppercase-tests: Likewise.
12875         * modules/unictype/property-paired-punctuation-tests: Likewise.
12876         * modules/unictype/property-paragraph-separator-tests: Likewise.
12877         * modules/unictype/property-pattern-syntax-tests: Likewise.
12878         * modules/unictype/property-pattern-white-space-tests: Likewise.
12879         * modules/unictype/property-private-use-tests: Likewise.
12880         * modules/unictype/property-punctuation-tests: Likewise.
12881         * modules/unictype/property-quotation-mark-tests: Likewise.
12882         * modules/unictype/property-radical-tests: Likewise.
12883         * modules/unictype/property-sentence-terminal-tests: Likewise.
12884         * modules/unictype/property-soft-dotted-tests: Likewise.
12885         * modules/unictype/property-space-tests: Likewise.
12886         * modules/unictype/property-terminal-punctuation-tests: Likewise.
12887         * modules/unictype/property-test-tests: Likewise.
12888         * modules/unictype/property-titlecase-tests: Likewise.
12889         * modules/unictype/property-unassigned-code-value-tests: Likewise.
12890         * modules/unictype/property-unified-ideograph-tests: Likewise.
12891         * modules/unictype/property-uppercase-tests: Likewise.
12892         * modules/unictype/property-variation-selector-tests: Likewise.
12893         * modules/unictype/property-white-space-tests: Likewise.
12894         * modules/unictype/property-xid-continue-tests: Likewise.
12895         * modules/unictype/property-xid-start-tests: Likewise.
12896         * modules/unictype/property-zero-width-tests: Likewise.
12897         * modules/unictype/scripts-tests: Likewise.
12898         * modules/unictype/syntax-c-ident-tests: Likewise.
12899         * modules/unictype/syntax-c-whitespace-tests: Likewise.
12900         * modules/unictype/syntax-java-ident-tests: Likewise.
12901         * modules/unictype/syntax-java-whitespace-tests: Likewise.
12902         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
12903         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
12904         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
12905         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
12906         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
12907         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
12908         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
12909         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
12910         * modules/uniname/uniname-tests: Likewise.
12911         * modules/uninorm/canonical-decomposition-tests: Likewise.
12912         * modules/uninorm/compat-decomposition-tests: Likewise.
12913         * modules/uninorm/composition-tests: Likewise.
12914         * modules/uninorm/decomposing-form-tests: Likewise.
12915         * modules/uninorm/decomposition-tests: Likewise.
12916         * modules/uninorm/filter-tests: Likewise.
12917         * modules/uninorm/nfc-tests: Likewise.
12918         * modules/uninorm/nfd-tests: Likewise.
12919         * modules/uninorm/nfkc-tests: Likewise.
12920         * modules/uninorm/nfkd-tests: Likewise.
12921         * modules/uninorm/u8-normcmp-tests: Likewise.
12922         * modules/uninorm/u8-normcoll-tests: Likewise.
12923         * modules/uninorm/u16-normcmp-tests: Likewise.
12924         * modules/uninorm/u16-normcoll-tests: Likewise.
12925         * modules/uninorm/u32-normcmp-tests: Likewise.
12926         * modules/uninorm/u32-normcoll-tests: Likewise.
12927         * modules/unistdio/u8-asnprintf-tests: Likewise.
12928         * modules/unistdio/u8-vasnprintf-tests: Likewise.
12929         * modules/unistdio/u8-vasprintf-tests: Likewise.
12930         * modules/unistdio/u8-vsnprintf-tests: Likewise.
12931         * modules/unistdio/u8-vsprintf-tests: Likewise.
12932         * modules/unistdio/u16-asnprintf-tests: Likewise.
12933         * modules/unistdio/u16-vasnprintf-tests: Likewise.
12934         * modules/unistdio/u16-vasprintf-tests: Likewise.
12935         * modules/unistdio/u16-vsnprintf-tests: Likewise.
12936         * modules/unistdio/u16-vsprintf-tests: Likewise.
12937         * modules/unistdio/u32-asnprintf-tests: Likewise.
12938         * modules/unistdio/u32-vasnprintf-tests: Likewise.
12939         * modules/unistdio/u32-vasprintf-tests: Likewise.
12940         * modules/unistdio/u32-vsnprintf-tests: Likewise.
12941         * modules/unistdio/u32-vsprintf-tests: Likewise.
12942         * modules/unistdio/ulc-asnprintf-tests: Likewise.
12943         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
12944         * modules/unistdio/ulc-vasprintf-tests: Likewise.
12945         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
12946         * modules/unistdio/ulc-vsprintf-tests: Likewise.
12947         * modules/unistr/u8-check-tests: Likewise.
12948         * modules/unistr/u8-chr-tests: Likewise.
12949         * modules/unistr/u8-cmp-tests: Likewise.
12950         * modules/unistr/u8-cmp2-tests: Likewise.
12951         * modules/unistr/u8-cpy-alloc-tests: Likewise.
12952         * modules/unistr/u8-cpy-tests: Likewise.
12953         * modules/unistr/u8-mblen-tests: Likewise.
12954         * modules/unistr/u8-mbsnlen-tests: Likewise.
12955         * modules/unistr/u8-mbtouc-tests: Likewise.
12956         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
12957         * modules/unistr/u8-mbtoucr-tests: Likewise.
12958         * modules/unistr/u8-move-tests: Likewise.
12959         * modules/unistr/u8-next-tests: Likewise.
12960         * modules/unistr/u8-prev-tests: Likewise.
12961         * modules/unistr/u8-set-tests: Likewise.
12962         * modules/unistr/u8-stpcpy-tests: Likewise.
12963         * modules/unistr/u8-stpncpy-tests: Likewise.
12964         * modules/unistr/u8-strcat-tests: Likewise.
12965         * modules/unistr/u8-strcmp-tests: Likewise.
12966         * modules/unistr/u8-strcoll-tests: Likewise.
12967         * modules/unistr/u8-strcpy-tests: Likewise.
12968         * modules/unistr/u8-strdup-tests: Likewise.
12969         * modules/unistr/u8-strlen-tests: Likewise.
12970         * modules/unistr/u8-strmblen-tests: Likewise.
12971         * modules/unistr/u8-strmbtouc-tests: Likewise.
12972         * modules/unistr/u8-strncat-tests: Likewise.
12973         * modules/unistr/u8-strncmp-tests: Likewise.
12974         * modules/unistr/u8-strncpy-tests: Likewise.
12975         * modules/unistr/u8-strnlen-tests: Likewise.
12976         * modules/unistr/u8-to-u16-tests: Likewise.
12977         * modules/unistr/u8-to-u32-tests: Likewise.
12978         * modules/unistr/u8-uctomb-tests: Likewise.
12979         * modules/unistr/u16-check-tests: Likewise.
12980         * modules/unistr/u16-chr-tests: Likewise.
12981         * modules/unistr/u16-cmp-tests: Likewise.
12982         * modules/unistr/u16-cmp2-tests: Likewise.
12983         * modules/unistr/u16-cpy-alloc-tests: Likewise.
12984         * modules/unistr/u16-cpy-tests: Likewise.
12985         * modules/unistr/u16-mblen-tests: Likewise.
12986         * modules/unistr/u16-mbsnlen-tests: Likewise.
12987         * modules/unistr/u16-mbtouc-tests: Likewise.
12988         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
12989         * modules/unistr/u16-mbtoucr-tests: Likewise.
12990         * modules/unistr/u16-move-tests: Likewise.
12991         * modules/unistr/u16-next-tests: Likewise.
12992         * modules/unistr/u16-prev-tests: Likewise.
12993         * modules/unistr/u16-set-tests: Likewise.
12994         * modules/unistr/u16-stpcpy-tests: Likewise.
12995         * modules/unistr/u16-stpncpy-tests: Likewise.
12996         * modules/unistr/u16-strcat-tests: Likewise.
12997         * modules/unistr/u16-strcmp-tests: Likewise.
12998         * modules/unistr/u16-strcoll-tests: Likewise.
12999         * modules/unistr/u16-strcpy-tests: Likewise.
13000         * modules/unistr/u16-strdup-tests: Likewise.
13001         * modules/unistr/u16-strlen-tests: Likewise.
13002         * modules/unistr/u16-strmblen-tests: Likewise.
13003         * modules/unistr/u16-strmbtouc-tests: Likewise.
13004         * modules/unistr/u16-strncat-tests: Likewise.
13005         * modules/unistr/u16-strncmp-tests: Likewise.
13006         * modules/unistr/u16-strncpy-tests: Likewise.
13007         * modules/unistr/u16-strnlen-tests: Likewise.
13008         * modules/unistr/u16-to-u32-tests: Likewise.
13009         * modules/unistr/u16-to-u8-tests: Likewise.
13010         * modules/unistr/u16-uctomb-tests: Likewise.
13011         * modules/unistr/u32-check-tests: Likewise.
13012         * modules/unistr/u32-chr-tests: Likewise.
13013         * modules/unistr/u32-cmp-tests: Likewise.
13014         * modules/unistr/u32-cmp2-tests: Likewise.
13015         * modules/unistr/u32-cpy-alloc-tests: Likewise.
13016         * modules/unistr/u32-cpy-tests: Likewise.
13017         * modules/unistr/u32-mblen-tests: Likewise.
13018         * modules/unistr/u32-mbsnlen-tests: Likewise.
13019         * modules/unistr/u32-mbtouc-tests: Likewise.
13020         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
13021         * modules/unistr/u32-mbtoucr-tests: Likewise.
13022         * modules/unistr/u32-move-tests: Likewise.
13023         * modules/unistr/u32-next-tests: Likewise.
13024         * modules/unistr/u32-prev-tests: Likewise.
13025         * modules/unistr/u32-set-tests: Likewise.
13026         * modules/unistr/u32-stpcpy-tests: Likewise.
13027         * modules/unistr/u32-stpncpy-tests: Likewise.
13028         * modules/unistr/u32-strcat-tests: Likewise.
13029         * modules/unistr/u32-strcmp-tests: Likewise.
13030         * modules/unistr/u32-strcoll-tests: Likewise.
13031         * modules/unistr/u32-strcpy-tests: Likewise.
13032         * modules/unistr/u32-strdup-tests: Likewise.
13033         * modules/unistr/u32-strlen-tests: Likewise.
13034         * modules/unistr/u32-strmblen-tests: Likewise.
13035         * modules/unistr/u32-strmbtouc-tests: Likewise.
13036         * modules/unistr/u32-strncat-tests: Likewise.
13037         * modules/unistr/u32-strncmp-tests: Likewise.
13038         * modules/unistr/u32-strncpy-tests: Likewise.
13039         * modules/unistr/u32-strnlen-tests: Likewise.
13040         * modules/unistr/u32-to-u16-tests: Likewise.
13041         * modules/unistr/u32-to-u8-tests: Likewise.
13042         * modules/unistr/u32-uctomb-tests: Likewise.
13043         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
13044         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
13045         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
13046         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
13047         * modules/uniwidth/u8-strwidth-tests: Likewise.
13048         * modules/uniwidth/u8-width-tests: Likewise.
13049         * modules/uniwidth/u16-strwidth-tests: Likewise.
13050         * modules/uniwidth/u16-width-tests: Likewise.
13051         * modules/uniwidth/u32-strwidth-tests: Likewise.
13052         * modules/uniwidth/u32-width-tests: Likewise.
13053         * modules/uniwidth/width-tests: Likewise.
13054
13055 2010-05-18  Richard Jones  <rjones@redhat.com>
13056
13057         doc: users.txt: list hivex
13058         * users.txt: Add hivex.
13059
13060 2010-05-18  Richard Jones  <rjones@redhat.com>
13061
13062         doc: users.txt: list febootstrap
13063         * users.txt: Add febootstrap.
13064
13065 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
13066
13067         bootstrap: fix an error when gnulib is not used as a git submodule
13068         * build-aux/bootstrap (gnulib_path): If its length is zero then
13069         assign "gnulib" to it.
13070         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
13071
13072 2010-05-16  Bruno Haible  <bruno@clisp.org>
13073
13074         Avoid autoconf warnings about AM_ICONV.
13075         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
13076         2.64.
13077
13078 2010-05-16  Bruno Haible  <bruno@clisp.org>
13079
13080         absolute-header: Make the macro usable in more situations.
13081         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
13082         from gl_ABSOLUTE_HEADER.
13083         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
13084
13085 2010-05-16  James Youngman  <jay@gnu.org>
13086
13087         doc: update users.txt
13088         * users.txt: Add CSSC.
13089
13090 2010-05-16  Jim Meyering  <meyering@redhat.com>
13091
13092         init.sh: fix an error in the previous change; add more comments
13093         * tests/init.sh: Compare exit code in loop against 9, not 2.
13094         Patch by Bruno Haible.
13095         Make the two tests more similar by adding an empty "then" clause.
13096         Add comments.
13097
13098         init.sh: avoid unnecessary shell re-exec
13099         * tests/init.sh: Improve the re-exec-required check to first test the
13100         current shell.  If it passes the test, do not search for a shell that
13101         does pass, and do not re-exec.  This test is particularly contorted to
13102         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
13103         of $(...) evokes a syntax error and causes immediate shell exit with
13104         status 2.  Bruno Haible reported that the re-exec made it impossible
13105         to single-step through any init.sh-using script.
13106
13107 2010-05-16  Bruno Haible  <bruno@clisp.org>
13108
13109         Fix collision between gnulib's and libintl's printf replacements.
13110         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
13111         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
13112         (printf): When using GNU C, map the __printf__ function to rpl_printf
13113         via __asm__. When not using GNU C, define rpl_printf instead of
13114         __printf__.
13115         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
13116         commit.
13117         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
13118         commit.
13119         * m4/asm-underscore.m4: New file.
13120         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
13121         * modules/stdio (Files): Add m4/asm-underscore.m4.
13122         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
13123         Reported by Ben Pfaff.
13124
13125 2010-05-16  Bruno Haible  <bruno@clisp.org>
13126
13127         verify: Avoid skipping the test on openSUSE 11.0.
13128         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
13129
13130 2010-05-13  Bruno Haible  <bruno@clisp.org>
13131
13132         Avoid useless warnings from G++.
13133         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
13134         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
13135         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13136
13137 2010-05-11  Jim Meyering  <meyering@redhat.com>
13138
13139         maint.mk: tweak preceding change
13140         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
13141         regexps tighter by anchoring at EOL, and make the new group "shy"
13142         for slightly decreased overhead.
13143
13144 2010-05-11  Eric Blake  <eblake@redhat.com>
13145
13146         maint.mk: gnulib doesn't guarantee NSIG
13147         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
13148
13149 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
13150
13151         test-pwrite.c: Remove unused variable declaration.
13152         * tests/test-pwrite.c (main): Remove read_buf declaration.
13153
13154         Remove useless test-pwrite.sh file.
13155         * tests/test-pwrite.sh: Delete file.
13156         * modules/pwrite-tests: Remove references.
13157         Reported by Bruno Haible.
13158
13159 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
13160
13161         init.sh: fix a typo
13162         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
13163
13164 2010-05-10  Jim Meyering  <meyering@redhat.com>
13165
13166         maint.mk: avoid using a temporary file in the always-defined-macros check
13167         * top/maint.mk (.re-defmac): Remove rule.
13168         (gl_trap_): Remove definition.
13169         (sc_prohibit_always-defined_macros): Rewrite not to create and
13170         depend on a temporary file.  Instead, depend on GNU grep's ability
13171         to read a list of regular expressions from stdin when given "-f -".
13172
13173 2010-05-09  Bruno Haible  <bruno@clisp.org>
13174
13175         Update to GNU gettext 0.18, part 1.
13176         * m4/gettext.m4: Update to GNU gettext 0.18.
13177         * m4/intl.m4: Likewise.
13178         * m4/po.m4: Likewise.
13179         * modules/gettext (Files): Add m4/fcntl-o.m4.
13180         (configure.ac): Require gettext infrastructure from version 0.18.
13181
13182 2010-05-09  Jim Meyering  <meyering@redhat.com>
13183
13184         init.sh: enable MALLOC_PERTURB_
13185         * tests/init.sh: Enable glibc's malloc-perturbing option.
13186
13187         maint.mk: improve sc_cross_check_PATH_usage_in_tests
13188         With my recent change in init.sh from the two-line form:
13189             -#   : ${srcdir=.}
13190             -#   . "$srcdir/init.sh"; path_prepend_ .
13191             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
13192         I noticed that using the one-line form would cause this test
13193         to fail with a false-positive, or to stop working altogether,
13194         depending on whether help-version changed or all the tests did.
13195         * top/maint.mk (_hv_regex): Remove this definition.
13196         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
13197         (_hv_regex_strong): Use a stronger regex to check for conformance.
13198         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
13199         Give a separate diagnostic for lack of conforming use.
13200
13201         maint.mk: prohibit definition of symbols defined by gnulib
13202         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
13203         definition of symbols defined by gnulib.
13204
13205 2010-05-09  Bruno Haible  <bruno@clisp.org>
13206
13207         acl: Avoid test failure on Cygwin-hosted mingw.
13208         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
13209
13210 2010-05-09  Bruno Haible  <bruno@clisp.org>
13211
13212         error: Use system's fcntl function.
13213         * lib/error.c (fcntl): Undefine.
13214
13215 2010-05-09  Jim Meyering  <meyering@redhat.com>
13216
13217         verify: adjust formatting to be more consistent
13218         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
13219         argument-list '('s, and after one comma.
13220
13221 2010-05-09  Bruno Haible  <bruno@clisp.org>
13222
13223         error: More reliable output on mingw.
13224         * lib/error.c: Include <windows.h>.
13225         (is_open): New function.
13226         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
13227         defined.
13228
13229 2010-05-09  Bruno Haible  <bruno@clisp.org>
13230
13231         vasnprintf: Fix syntax errors in libintl build on mingw.
13232         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
13233         pad_ourselves and prec_ourselves after use.
13234
13235 2010-05-08  Bruno Haible  <bruno@clisp.org>
13236
13237         * lib/config.charset: Update comments for Cygwin 1.7.
13238         * lib/localcharset.c: Likewise.
13239
13240 2010-05-07  Jim Meyering  <meyering@redhat.com>
13241
13242         init.sh: improve comments
13243         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
13244         . "${srcdir=.}/init.sh"; path_prepend_ .
13245         Add a note about path_prepend_ and the alternative of using
13246         TESTS_ENVIRONMENT.
13247
13248 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
13249
13250         exclude: Unescape hashed patterns in wildcard mode.
13251         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
13252         to the hash list.
13253         * tests/test-exclude8.sh: New test case.
13254         * modules/exclude-tests: Add new test.
13255
13256 2010-05-05  Eric Blake  <eblake@redhat.com>
13257
13258         verify: automate tests
13259         * modules/verify-tests: New module.
13260         * tests/test-verify.sh: New file.
13261         * tests/test-verify.c: Guard each negative test with a unique id.
13262         Also avoid warning about unused left hand of comma expressions.
13263
13264 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13265
13266         Further improvements to verify.h, suggested by Eric Blake.
13267         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
13268         the GL_* versions, to avoid collision with OpenGL.
13269         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
13270         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
13271         than testing merely whether it's defined.
13272
13273         Modify verify.h to pacify gcc -Wredundant_decls.
13274         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
13275         These use the prefix "GL_" since they're likely to be useful elsewhere.
13276         We may need to break them out into a different .h file.
13277         (__COUNTER__): Define to 0 if the compiler doesn't support it.
13278         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
13279         of verify_function__.
13280
13281 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
13282
13283         Tests for module pwrite.
13284         * modules/pwrite-tests: New file.
13285         * tests/test-pwrite.sh: New file.
13286         * tests/test-pwrite.c: New file.
13287
13288         New module pwrite.
13289         * lib/unistd.in.h (pwrite): New declaration.
13290         * lib/pwrite.c: New file, from glibc with modifications.
13291         * m4/pwrite.m4: New file.
13292         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
13293         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
13294         REPLACE_PWRITE.
13295         * modules/pwrite: New file.
13296         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
13297         REPLACE_PWRITE.
13298         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
13299         * doc/posix-functions/pwrite.texi: Mention the new module.
13300
13301 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
13302
13303         pread: Update documentation.
13304         * doc/posix-functions/pread.texi: Mention the 'pread' module.
13305
13306 2010-05-04  Eric Blake  <eblake@redhat.com>
13307
13308         docs: update cygwin progress
13309         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
13310         this bug.
13311         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
13312         Added in cygwin 1.7.2.
13313         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
13314         Likewise.
13315         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
13316         Likewise.
13317         * doc/glibc-functions/dup3.texi (dup3): Likewise.
13318         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
13319         * doc/glibc-functions/accept4.texi (accept4): Likewise.
13320         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
13321         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
13322         Mention nproc module.
13323         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
13324         bug in cygwin 1.7.5 addition.
13325         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
13326         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
13327         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
13328         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
13329         1.7.5.
13330         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
13331         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
13332         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
13333         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
13334         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
13335         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
13336         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
13337         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
13338         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
13339         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
13340         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
13341         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
13342         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
13343         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
13344         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
13345         Likewise.
13346         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
13347         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
13348         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
13349         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
13350         Likewise.
13351         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
13352         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
13353         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
13354         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
13355         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
13356         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
13357         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
13358         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
13359         Likewise.
13360         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
13361         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
13362         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
13363         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
13364         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
13365         Likewise.
13366         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
13367         Likewise.
13368         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
13369         Likewise.
13370         * doc/glibc-functions/xdrrec_endofrecord.texi
13371         (xdrrec_endofrecord): Likewise.
13372         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
13373         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
13374         Likewise.
13375         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
13376         Likewise.
13377
13378 2010-05-04  Jim Meyering  <meyering@redhat.com>
13379
13380         gendocs.sh: make its "-s FILE" option more useful
13381         * build-aux/gendocs.sh: When honoring the -s FILE option, update
13382         $PACKAGE to reflect the probably-different basename of "FILE".
13383
13384 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
13385
13386         bootstrap: don't ignore download_po_files failure
13387         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
13388         failure.
13389
13390 2010-05-03  Jim Meyering  <meyering@redhat.com>
13391
13392         maint.mk: allow to pass options to gendocs.sh
13393         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
13394         (gendocs_options_): New overridable variable.
13395
13396         gnu-web-doc-update: don't ignore configure or build failure
13397         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
13398
13399         announce-gen: backslash-escape '@'s in --help output
13400         * build-aux/announce-gen: Fix syntax errors.
13401
13402         maint.mk, announce-gen: allow project-specific announcement mail headers
13403         * top/maint.mk (translation_project_): Define default.
13404         (announcement_Cc_, announcement_mail_headers_): Likewise.
13405         (announcement): Invoke announce-gen with new --mail-headers option.
13406         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
13407
13408         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
13409         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
13410         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
13411         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
13412         line in the "err2" output file when running "make check" in verbose
13413         mode (i.e., with set -x enabled).
13414
13415 2010-05-03  Bruno Haible  <bruno@clisp.org>
13416
13417         wctob: Fix for weird platforms.
13418         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
13419         argument value.
13420
13421 2010-05-03  Jim Meyering  <meyering@redhat.com>
13422
13423         maint.mk: prohibit unwarranted use of <strings.h>
13424         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
13425         strings.h in a file that does not also use strcasecmp, strncasecmp,
13426         ffs or ffsll.
13427
13428         maint.mk: remove obsolete comments
13429         * top/maint.mk: Remove stale, commented-out rules.
13430
13431 2010-05-02  Bruno Haible  <bruno@clisp.org>
13432
13433         wcwidth: Declare also when it's aliased.
13434         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
13435         macro.
13436
13437 2010-05-02  Bruno Haible  <bruno@clisp.org>
13438
13439         Fix regression from 2010-04-25.
13440         * gnulib-tool (func_modules_transitive_closure): Check the status of
13441         all modules, not only of the tests that are of the form foo-tests where
13442         foo is a module.
13443
13444 2010-05-02  Bruno Haible  <bruno@clisp.org>
13445
13446         wctob: Work around nasty Cygwin 1.7.2 bug.
13447         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
13448         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
13449
13450 2010-05-01  Bruno Haible  <bruno@clisp.org>
13451
13452         fpurge: Sharper test.
13453         * tests/test-fpurge.c (main): Add one more ftell check.
13454         * modules/fpurge-tests (Depends-on): Add ftell.
13455         Suggested by Eric Blake.
13456
13457 2010-05-01  Bruno Haible  <bruno@clisp.org>
13458
13459         ftello: Another test.
13460         * tests/test-ftello3.c: New file.
13461         * modules/ftello-tests (Files): Add it.
13462         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
13463         MOSTLYCLEANFILES.
13464
13465         ftell: Another test.
13466         * tests/test-ftell3.c: New file.
13467         * modules/ftell-tests (Files): Add it.
13468         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
13469         MOSTLYCLEANFILES.
13470
13471 2010-05-01  Bruno Haible  <bruno@clisp.org>
13472
13473         ftell, ftello: Work around Solaris bug.
13474         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
13475         * lib/ftello.c: Include stdio-impl.h.
13476         (ftello): On Solaris, when _IOWRT is set, compute the result without
13477         looking at _IOREAD.
13478         * modules/ftello (Files): Add lib/stdio-impl.h.
13479         * doc/posix-functions/ftell.texi: Mention Solaris bug.
13480         * doc/posix-functions/ftello.texi: Likewise.
13481         Reported by Eric Blake.
13482
13483 2010-05-01  Bruno Haible  <bruno@clisp.org>
13484
13485         freading: Adapt to special meaning of _IOREAD flag on Solaris.
13486         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
13487         the _IOWRT flag is also set.
13488
13489 2010-05-01  Bruno Haible  <bruno@clisp.org>
13490
13491         Fix doc about a HP-UX stdio bug.
13492         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
13493         * doc/posix-functions/ftello.texi: Likewise.
13494
13495 2010-05-01  Bruno Haible  <bruno@clisp.org>
13496
13497         lseek test: Fix failure on Solaris.
13498         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
13499         output.
13500
13501 2010-04-30  Jim Meyering  <meyering@redhat.com>
13502
13503         bootstrap: don't ignore failure to generate po*/Makevars
13504         * build-aux/bootstrap (with_gettext): Don't ignore failure
13505         to create po/Makevars or runtime-po/Makevars.
13506
13507 2010-04-29  Eric Blake  <eblake@redhat.com>
13508
13509         headers: relax license to LGPLv2+
13510         * modules/fcntl-h (License): Relax license.
13511         * modules/getopt-posix (License): Likewise.
13512         * modules/locale (License): Likewise.
13513         * modules/math (License): Likewise.
13514         * modules/pty (License): Likewise.
13515         * modules/sched (License): Likewise.
13516         * modules/search (License): Likewise.
13517         * modules/spawn (License): Likewise.
13518         * modules/stdarg (License): Likewise.
13519         * modules/sysexits (License): Likewise.
13520
13521 2010-04-29  Jim Meyering  <meyering@redhat.com>
13522
13523         inttypes: relax license to LGPLv2+
13524         * modules/inttypes (License): Relax license.
13525
13526 2010-04-29  Simon Josefsson  <simon@josefsson.org>
13527
13528         * top/maint.mk (indent): Run twice to produce idempotent results.
13529
13530 2010-04-28  Bruno Haible  <bruno@clisp.org>
13531
13532         getdate: Generate getdate.c in the source directory.
13533         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
13534         MOSTLYCLEANFILES.
13535         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
13536
13537 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
13538
13539         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
13540         is not declared as a const *; avoid warnings in that case.
13541
13542 2010-04-28  Eric Blake  <eblake@redhat.com>
13543
13544         canonicalize-lgpl: avoid compiler warning
13545         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
13546         declaration' / 'extraneous semicolon' warning with some compilers.
13547         Reported by Andreas Gruenbacher.
13548
13549 2010-04-28  Jim Meyering  <meyering@redhat.com>
13550
13551         init.sh: ensure a more reliable exit status when exiting via trap
13552         * tests/init.sh (setup_): Don't rely on $? in signal handler.
13553         Inspired by patches from Dmitry V. Levin.
13554         Also trap on signal 3 (SIGQUIT).
13555
13556 2010-04-27  Bruno Haible  <bruno@clisp.org>
13557
13558         Update doc about utimes().
13559         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
13560         'utimens' module.
13561         Reported by Andreas Gruenbacher <agruen@suse.de>.
13562
13563 2010-04-27  Eric Blake  <eblake@redhat.com>
13564
13565         full-read, full-write: relax license
13566         * modules/full-read (License): Drop to LGPLv2+.
13567         * modules/full-write (License): Likewise.
13568         * modules/safe-read (License): Likewise.
13569         * modules/safe-write (License): Likewise.
13570
13571         pthread: mention library for linking
13572         * modules/pthread (Link): Mention $(LIB_PTHREAD).
13573
13574 2010-04-27  Jim Meyering  <meyering@redhat.com>
13575
13576         maint.mk: fix a bug introduced in last change
13577         * top/maint.mk (gl_assured_headers_): Now that all names are on
13578         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
13579         is not anchored to end of word, it should be adequate.
13580
13581         maint.mk: avoid side-effect in latest syntax-check
13582         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
13583         to run commands via $(shell...), and hence to incur cost only when
13584         the new rule is actually run.
13585
13586         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
13587         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
13588         and use that to create a regexp used to detect all #if HAVE_..._H uses.
13589         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
13590         (gl_assured_headers_, az_, AZ_): Define.
13591         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
13592
13593 2010-04-26  Jim Meyering  <jim@meyering.net>
13594             Bruno Haible  <bruno@clisp.org>
13595
13596         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
13597         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
13598         Prompted by an exchange with Gilles Espinasse.
13599
13600 2010-04-26  Jim Meyering  <meyering@redhat.com>
13601
13602         git-version-gen: aesthetic tweak
13603         * build-aux/git-version-gen: Use "$nl" rather than a literal,
13604         so that the command remains on a single line.
13605
13606 2010-04-26  Eric Blake  <eblake@redhat.com>
13607
13608         git-version-gen: allow use on EBCDIC hosts
13609         * build-aux/git-version-gen (dirty): Use literal rather than tying
13610         ourselves to ascii.
13611         Reported by Steve Goetze.
13612
13613 2010-04-25  Bruno Haible  <bruno@clisp.org>
13614
13615         netdb: Add support for GNULIB_POSIXCHECK.
13616         * lib/netdb.in.h: Include warn-on-use.h.
13617         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
13618         functions are used when GNULIB_POSIXCHECK is defined and the
13619         getaddrinfo module is not in use.
13620         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
13621         freeaddrinfo, gai_strerror, getnameinfo are declared.
13622         * modules/netdb (Depends-on): Add warn-on-use.
13623         (Makefile.am): Include warn-on-use.h in netdb.h.
13624
13625 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
13626
13627         build: avoid "make check" failure without .git/ directory
13628         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
13629         there is no .git/ directory.
13630
13631 2010-04-25  Bruno Haible  <bruno@clisp.org>
13632
13633         ptsname: Fix misuse of ttyname_r.
13634         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
13635         of errno.
13636
13637 2010-04-25  Bruno Haible  <bruno@clisp.org>
13638
13639         ttyname_r: Make it work on Solaris 10.
13640         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
13641         if the system function has the POSIX declaration. Test whether the
13642         function fails if the buffer is less than 128 bytes large.
13643         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
13644         system's ttyname_r function. Provide a reasonably large buffer.
13645         * modules/ttyname_r (Depends-on): Add extensions.
13646         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
13647
13648 2010-04-25  Bruno Haible  <bruno@clisp.org>
13649
13650         Use the 'extensions' module for some more functions on Solaris.
13651         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
13652         module.
13653         * doc/posix-functions/ctime_r.texi: Likewise.
13654         * doc/posix-functions/getgrgid_r.texi: Likewise.
13655         * doc/posix-functions/getgrnam_r.texi: Likewise.
13656         * doc/posix-functions/getpwnam_r.texi: Likewise.
13657         * doc/posix-functions/getpwuid_r.texi: Likewise.
13658         * doc/posix-functions/readdir_r.texi: Likewise.
13659         * doc/posix-functions/sigwait.texi: Likewise.
13660         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
13661         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
13662
13663 2010-04-25  Bruno Haible  <bruno@clisp.org>
13664
13665         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
13666         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
13667         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
13668         * lib/ttyname_r.c: Include <limits.h>.
13669         (ttyname_r): Define using the system's ttyname_r function, if it exists
13670         and not on Solaris.
13671         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
13672         set.
13673         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
13674         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
13675         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
13676         Reported by Simon Josefsson.
13677
13678 2010-04-25  Bruno Haible  <bruno@clisp.org>
13679
13680         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
13681         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
13682         * doc/posix-functions/ctime_r.texi: Likewise.
13683         * doc/posix-functions/getgrgid_r.texi: Likewise.
13684         * doc/posix-functions/getgrnam_r.texi: Likewise.
13685         * doc/posix-functions/getlogin_r.texi: Likewise.
13686         * doc/posix-functions/getpwnam_r.texi: Likewise.
13687         * doc/posix-functions/getpwuid_r.texi: Likewise.
13688         * doc/posix-functions/readdir_r.texi: Likewise.
13689         * doc/posix-functions/sigwait.texi: Likewise.
13690         * doc/posix-functions/ttyname_r.texi: Likewise.
13691         Reported by Simon Josefsson.
13692
13693 2010-04-25  Bruno Haible  <bruno@clisp.org>
13694
13695         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
13696         * gnulib-tool (func_usage): Document that --with-*-tests options apply
13697         also to --create-testdir.
13698         (func_acceptable): Don't consider the status of *-tests modules here.
13699         (func_modules_transitive_closure): Consider it here, before including a
13700         test module.
13701         (func_import, func_create_testdir): Set inc_all_direct_tests,
13702         inc_all_indirect_tests.
13703         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
13704         --create-testdir and --create-megatestdir.
13705
13706 2010-04-25  Bruno Haible  <bruno@clisp.org>
13707
13708         gnulib-tool: Add --without-*-tests options.
13709         * gnulib-tool (func_usage): Document the --without-*-tests options.
13710         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
13711         excl_unportable_tests): New variables.
13712         Fail if they are specified with --import or --update.
13713         (func_acceptable): Respect the excl_*_tests variables.
13714         (func_import): Set the excl_*_tests variables to empty.
13715
13716 2010-04-25  Simon Josefsson  <simon@josefsson.org>
13717             Bruno Haible  <bruno@clisp.org>
13718
13719         Work around a MacOS X 10.4 bug with openpty.
13720         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
13721         * tests/test-openpty.c (main): Close the master side explicitly.
13722
13723 2010-04-25  Bruno Haible  <bruno@clisp.org>
13724
13725         strnlen: Fix a C++ test error on MacOS X and Solaris.
13726         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
13727         the function is not declared.
13728         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
13729         Simon Josefsson.
13730
13731 2010-04-24  Bruno Haible  <bruno@clisp.org>
13732
13733         Avoid a gcc warning.
13734         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
13735         of correct type for %08lx directive.
13736         Reported by Eric Blake.
13737
13738 2010-04-24  Bruno Haible  <bruno@clisp.org>
13739
13740         vasnprintf: Correct errno value in case of out-of-memory.
13741         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
13742         or sprintf. Use the errno value from SNPRINTF or sprintf.
13743         Reported by Ian Beckwith <ianb@erislabs.net>.
13744
13745 2010-04-24  Bruno Haible  <bruno@clisp.org>
13746
13747         ansi-c++-opt: Find correct compiler when cross-compiling.
13748         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
13749         AC_CHECK_PROGS.
13750         Reported by Simon Josefsson.
13751
13752 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
13753
13754         vc-list-files: Add support for subversion
13755         * build-aux/vc-list-files: Use "svn list" to generate the list of
13756         files controlled by subversion.
13757
13758 2010-04-23  Jim Meyering  <meyering@redhat.com>
13759
13760         vc-list-files tests: convert to use init.sh
13761         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
13762         path_prepend_.
13763         Use Exit, not exit.
13764         Use skip_ rather than open coding it.
13765         Remove trap set-up and compare definitions.
13766         * tests/test-vc-list-files-git.sh: Likewise.
13767         * modules/vc-list-files-tests (Files): Add tests/init.sh.
13768
13769 2010-04-22  Simon Josefsson  <simon@josefsson.org>
13770
13771         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
13772         backup files.
13773
13774 2010-04-21  Simon Josefsson  <simon@josefsson.org>
13775
13776         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
13777
13778 2010-04-20  Eric Blake  <eblake@redhat.com>
13779
13780         tests: be robust to ignored SIGPIPE
13781         * tests/test-select-in.sh: Consume all output.
13782         * tests/test-lseek.sh: Check correct exit status, while avoiding
13783         EPIPE.
13784
13785 2010-04-20  Simon Josefsson  <simon@josefsson.org>
13786             Bruno Haible  <bruno@clisp.org>
13787
13788         visibility: Don't use -fvisibility if it leads to a warning.
13789         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
13790         yes, don't pretend that visibility works if it leads to a warning.
13791         Reported by Mike Gran <spk121@yahoo.com>.
13792
13793 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
13794
13795         * build-aux/bootstrap: Use "git -h" for testing for supported options
13796         instead of "git --help".  The short-form option only shows a summary,
13797         and doesn't layout the full man page.  Grep for the full option name
13798         in the summary, too.
13799
13800 2010-04-19  Bruno Haible  <bruno@clisp.org>
13801
13802         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
13803         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
13804         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
13805         mention of RELOCATABLE_STRIP.
13806         Reported by Sylvain Beucler <beuc@beuc.net>.
13807
13808 2010-04-19  Bruno Haible  <bruno@clisp.org>
13809
13810         * lib/diffseq.h: Fix typo in comment.
13811         Reported by Eric Blake.
13812
13813 2010-04-19  Bruno Haible  <bruno@clisp.org>
13814
13815         ioctl: Move autoconf macro to a .m4 file.
13816         * m4/ioctl.m4: New file, extracted from modules/ioctl.
13817         * modules/ioctl (Files): Add it.
13818         (configure.ac): Simply invoke gl_FUNC_IOCTL.
13819         Reported by Ian Beckwith <ianb@erislabs.net>.
13820
13821 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
13822             Bruno Haible  <bruno@clisp.org>
13823
13824         diffseq: Accommodate use-case with abstract arrays.
13825         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
13826         is not defined.
13827         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
13828         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
13829
13830 2010-04-18  Bruno Haible  <bruno@clisp.org>
13831
13832         * doc/posix-headers/stdbool.texi: More precise wording.
13833
13834 2010-04-17  Jim Meyering  <meyering@redhat.com>
13835
13836         maint.mk: use gnu-style indentation in an embedded perl script
13837         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
13838         Rename variable: s/two/last_two_bytes/
13839
13840 2010-04-16  Eric Blake  <eblake@redhat.com>
13841
13842         test-stdbool: skip test that fails with Solaris CC
13843         * tests/test-stdbool.c (f): Skip test that causes compilation
13844         error under buggy C++ compiler.
13845         * lib/stdbool.in.h: Document the limitation.
13846         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
13847
13848         setenv: allow compilation with C++
13849         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
13850         register keyword.
13851
13852         stdint: allow test to pass with C++
13853         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
13854
13855         getopt: allow compilation with C++
13856         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
13857         struct.
13858         * lib/getopt.c (_getopt_internal_r): Use correct type.
13859         Reported by Dagobert Michelson, via Joel E. Denny.
13860
13861 2010-04-16  Bruno Haible  <bruno@clisp.org>
13862
13863         Override netdb.h always.
13864         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
13865         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
13866         Reported by Ludovic Courtès <ludo@gnu.org>.
13867
13868 2010-04-15  Bruno Haible  <bruno@clisp.org>
13869
13870         openpty: Fix mistake from 2010-03-21.
13871         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
13872         Reported by Simon Josefsson.
13873
13874 2010-04-15  Eric Blake  <eblake@redhat.com>
13875
13876         test-forkpty: fix expected signature
13877         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
13878         Reported by Simon Josefsson.
13879
13880 2010-04-15  Jim Meyering  <meyering@redhat.com>
13881
13882         maint.mk: texinfo_suffix_re_: correct the default regexp
13883         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
13884
13885         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
13886         make it configurable via texinfo_suffix_re_.
13887
13888 2010-04-14  Eric Blake  <eblake@redhat.com>
13889
13890         strtok_r: relax license to LGPLv2+
13891         * modules/strtok_r (License): Relax license.
13892         Reported by Matthias Bolte.
13893
13894 2010-04-14  Simon Josefsson  <simon@josefsson.org>
13895
13896         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
13897         version 1.4.4 by default instead of requiring the libgcrypt
13898         version used during build.  This makes it possible to use the
13899         application with older but still binary compatible libgcrypt
13900         versions.
13901
13902 2010-04-13  Eric Blake  <eblake@redhat.com>
13903
13904         getopt-gnu: match recent glibc fixes and posix ruling
13905         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
13906         '+' handling, when requesting extensions.
13907         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
13908         'W;' handling.
13909         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
13910         * doc/posix-functions/getopt.texi (getopt): Document this.
13911         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13912         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13913         Likewise.
13914
13915         getopt: merge bug fixes from glibc
13916         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
13917         diagnostics.  Honor '+:' correctly.  Reject ';'.
13918
13919         getopt-posix: detect MacOS bug
13920         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
13921         optind when missing a required argument.
13922         * doc/posix-functions/getopt.texi (getopt): Document the bug.
13923         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13924         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13925         Likewise.
13926
13927         getopt-posix: avoid spurious failure on Solaris
13928         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
13929         an indicator that setting optind=1 is sufficient for reset.
13930
13931         getopt-posix: avoid spurious failure on FreeBSD
13932         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
13933         in POSIX mode, since the m4 test uses it.
13934
13935         gnulib-tool: silence warning on BSD sh
13936         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
13937
13938 2010-04-13  Jim Meyering  <meyering@redhat.com>
13939
13940         doc: users.txt: GNU patch now uses gnulib
13941         * users.txt: Add patch.
13942
13943 2010-04-12  Jim Meyering  <meyering@redhat.com>
13944
13945         maint.mk: generate more concise timing data for syntax-check rules
13946         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
13947         " done" from each line that reports a syntax-check test duration.
13948
13949 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
13950
13951         git-version-gen: use "git update-index..." rather than "git status"
13952         * build-aux/git-version-gen: Use git update-index --refresh, not
13953         "git status".  With some versions of git, "git status" would fail
13954         to update the index and result in an unwarranted "-dirty" suffix.
13955
13956 2010-04-11  Jim Meyering  <meyering@redhat.com>
13957
13958         openat: correct formatting (no semantic change)
13959         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
13960         Suggested by Bruno Haible.
13961
13962 2010-04-11  Bruno Haible  <bruno@clisp.org>
13963
13964         Stricter declaration checking in testdirs.
13965         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13966         If for_tests is true, augment AM_CPPFLAGS to define
13967         GNULIB_STRICT_CHECKING.
13968         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
13969         GNULIB_STRICT_CHECKING is defined, verify that the function is
13970         declared.
13971
13972 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
13973             Bruno Haible  <bruno@clisp.org>
13974
13975         libunistring: Improve configure output.
13976         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
13977         Don't say "consider installing GNU libunistring" when checking again
13978         with libiconv.
13979
13980 2010-04-11  Bruno Haible  <bruno@clisp.org>
13981
13982         libunistring: Correct value of $LTLIBUNISTRING.
13983         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
13984         correct the value of $LTLIBUNISTRING.
13985
13986 2010-04-11  Bruno Haible  <bruno@clisp.org>
13987
13988         havelib: Add static libraries to LIBS in the right order.
13989         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
13990         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
13991
13992 2010-04-11  Bruno Haible  <bruno@clisp.org>
13993
13994         libunistring: Detect libunistring also when it depends on libiconv.
13995         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
13996         the second AC_LIB_HAVE_LINKFLAGS invocation.
13997
13998 2010-04-11  James Youngman  <jay@gnu.org>
13999
14000         close-stream: declare local scalars to be "const"
14001         * lib/close-stream.c (close_stream): Make boolean variables const
14002         to document the fact that we set but do not change them.
14003
14004 2010-04-11  Bruno Haible  <bruno@clisp.org>
14005
14006         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
14007
14008 2010-04-11  Jim Meyering  <meyering@redhat.com>
14009
14010         maint.mk: don't include dist-check.mk
14011         * top/maint.mk: Remove bogus include directive.
14012
14013         maint.mk: improve empty-line-at-EOF check
14014         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
14015         solution, rather than tail+Perl-based one.  The latter would read
14016         a few kilobytes from the end of each file, and did not handle empty
14017         files properly.
14018
14019         maint.mk: print the elapsed time for each syntax-check rule
14020         * top/maint.mk (sc_m_rules_): Save start time in a file.
14021         (sc_z_rules_): New rules: remove temp file and print elapsed time.
14022         (local-check): Interpose the .z rules
14023
14024 2010-04-11  Jim Meyering  <meyering@redhat.com>
14025
14026         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
14027         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
14028         empty file with one that ends in an empty line.
14029
14030 2010-04-10  Bruno Haible  <bruno@clisp.org>
14031
14032         mkdir: Make it work on mingw64.
14033         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
14034         * lib/mkdir.c: Update comment.
14035         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
14036
14037 2010-04-10  Bruno Haible  <bruno@clisp.org>
14038
14039         Don't override improved macro from newer autoconf.
14040         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
14041         autoconf >= 2.62.
14042         Reported by Joel E. Denny <jdenny@clemson.edu>.
14043
14044 2010-04-10  Jim Meyering  <meyering@redhat.com>
14045
14046         maint.mk: new syntax-check rule: prohibit empty lines at end of file
14047         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
14048
14049         maint.mk: correct a diagnostic
14050         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
14051         in diagnostic; now use $prohibit.
14052
14053 2010-04-10  Bruno Haible  <address@hidden>
14054
14055         fchownat: Fix a C++ test error on Solaris 8.
14056         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
14057         the function does not exist.
14058
14059 2010-04-10  Bruno Haible  <bruno@clisp.org>
14060
14061         vasnprintf: Add more tests.
14062         * tests/test-vasnprintf-posix.c: Include <errno.h>.
14063         (test_function): Test converting an invalid wide string.
14064
14065         vasnprintf: Correct handling of unconvertible wide string arguments.
14066         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
14067         VASNPRINTF.
14068         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
14069         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
14070         smaller than the expected maximum need for the directive. Set errno to
14071         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
14072         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
14073         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
14074         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
14075         * modules/vasnprintf (Files): Add m4/printf.m4.
14076         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14077
14078 2010-04-10  Bruno Haible  <bruno@clisp.org>
14079
14080         vasnprintf: Fix crash in %ls directive.
14081         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
14082         string is passed as argument to %ls, with no precision and no width.
14083         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14084
14085 2010-04-10  Bruno Haible  <bruno@clisp.org>
14086
14087         vasnprintf: Fix multiple test failures on mingw.
14088         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
14089         _snprintf, or snwprintf, not _snwprintf.
14090
14091 2010-04-10  Bruno Haible  <bruno@clisp.org>
14092
14093         write: Fix a C++ test error on mingw.
14094         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
14095
14096 2010-04-10  Bruno Haible  <bruno@clisp.org>
14097
14098         vasnprintf test: Reduce code duplication.
14099         * tests/test-vasnprintf.c (test_function): New function, extracted from
14100         test_vasnprintf.
14101         (test_vasnprintf, test_asnprintf): Invoke it.
14102
14103 2010-04-10  Bruno Haible  <bruno@clisp.org>
14104
14105         strnlen: Fix warning in C++ mode on MacOS X.
14106         * lib/string.in.h (strnlen): Use the modern idiom.
14107         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
14108         defining strnlen as a macro already in <config.h>.
14109         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14110         REPLACE_STRNLEN.
14111         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
14112         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14113
14114 2010-04-08  James Youngman  <jay@gnu.org>
14115
14116         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
14117         the example.
14118
14119 2010-04-09  Jim Meyering  <meyering@redhat.com>
14120
14121         maint.mk: print better diagnostic when there is no $(_hv_file)
14122         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
14123         announce that when $(_hv_file) (aka help-version) does not exist.
14124
14125         init.sh: run tr in the "C" locale to avoid multibyte interpretation
14126         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
14127         not try to interpret its random input bytes.  Jarno Rajahalme reported
14128         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
14129         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
14130         (mktempd_): Likewise, just in case.
14131
14132         ftruncate: add two years to projected module removal date: 2012
14133         * m4/ftruncate.m4: Adjust comments.
14134
14135         ftruncate: mark module as obsolete; even MinGW provides it, now
14136         * modules/ftruncate (Status): Obsolete.
14137         (Notice): Say that.
14138         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
14139         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
14140
14141 2010-04-08  Bruno Haible  <bruno@clisp.org>
14142
14143         Fix side effects from tests-related modules.
14144         * modules/dprintf-posix (Comment): New section.
14145         * modules/fprintf-posix (Comment): Likewise.
14146         * modules/obstack-printf-posix (Comment): Likewise.
14147         * modules/printf-posix (Comment): Likewise.
14148         * modules/snprintf-posix (Comment): Likewise.
14149         * modules/sprintf-posix (Comment): Likewise.
14150         * modules/vasnprintf-posix (Comment): Likewise.
14151         * modules/vasprintf-posix (Comment): Likewise.
14152         * modules/vdprintf-posix (Comment): Likewise.
14153         * modules/vfprintf-posix (Comment): Likewise.
14154         * modules/vprintf-posix (Comment): Likewise.
14155         * modules/vsnprintf-posix (Comment): Likewise.
14156         * modules/vsprintf-posix (Comment): Likewise.
14157         * modules/xprintf-posix (Comment): Likewise.
14158         * modules/xvasprintf-posix (Comment): Likewise.
14159         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
14160         * modules/floorf-tests (Depends-on): Likewise.
14161         * modules/round-tests (Depends-on): Likewise.
14162         * modules/roundf-tests (Depends-on): Likewise.
14163         * modules/trunc-tests (Depends-on): Likewise.
14164         * modules/truncf-tests (Depends-on): Likewise.
14165         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
14166         'fprintf-posix' module is not present.
14167         * tests/test-floorf2.c (check): Likewise.
14168         * tests/test-trunc2.c (check): Likewise.
14169         * tests/test-truncf2.c (check): Likewise.
14170         * tests/test-round2.c (equal): Likewise.
14171         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14172
14173 2010-04-07  Karl Berry  <karl@gnu.org>
14174
14175         * config/srclist.txt,
14176         * config/srclistvars.sh,
14177         * config/srclist-update: doc fixes.
14178
14179 2010-04-07  Jim Meyering  <meyering@redhat.com>
14180
14181         maint.mk: add a PATH crosschecking syntax-check rule
14182         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
14183         Useful if you use a test like the one in help-version (coreutils,
14184         diffutils, grep, gzip) that ensures $(VERSION) matches what is
14185         printed by prog --version.
14186
14187 2010-04-06  Bruno Haible  <bruno@clisp.org>
14188
14189         Fix link error on mingw.
14190         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
14191         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
14192
14193 2010-04-06  Bruno Haible  <bruno@clisp.org>
14194
14195         Assume rmdir exists.
14196         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
14197
14198 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
14199
14200         doc: update users.txt
14201         * users.txt: Add gcal.
14202
14203 2010-04-06  Jim Meyering  <meyering@redhat.com>
14204
14205         init.sh: simply unset TMPDIR rather than risking env -i
14206         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
14207         although it probably works fine on all Unix-based systems, some
14208         systems (Cygwin?) cannot tolerate a totally cleared environment.
14209         Suggestion from Eric Blake.
14210
14211 2010-04-06  Jim Meyering  <meyering@redhat.com>
14212
14213         init.sh: portability fix: use env's POSIX-specified -i option not -u
14214         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
14215         than unportable env -u.  Solaris 5.11's env lacks support for -u.
14216
14217 2010-04-05  Bruno Haible  <bruno@clisp.org>
14218
14219         btowc: Work around Cygwin 1.7.2 bug.
14220         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
14221         does not map NUL to 0.
14222         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
14223
14224 2010-04-05  Bruno Haible  <bruno@clisp.org>
14225
14226         Make the multithread modules work on Cygwin 1.7.2.
14227         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
14228         imported symbols can be declared weak, so that it returns "no" on
14229         Cygwin 1.7.2.
14230
14231 2010-04-05  Bruno Haible  <bruno@clisp.org>
14232
14233         Use the module 'strncat'.
14234         * modules/unistr/u8-strncat (Depends-on): Add strncat.
14235
14236         Tests for module 'strncat'.
14237         * modules/strncat-tests: New file.
14238         * tests/test-strncat.c: New file.
14239
14240         New module 'strncat'.
14241         * lib/string.in.h (strncat): New declaration.
14242         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
14243         * m4/strncat.m4: New file, based on m4/memchr.m4.
14244         * modules/strncat: New file.
14245         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
14246         is declared.
14247         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
14248         REPLACE_STRNCAT.
14249         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
14250         REPLACE_STRNCAT.
14251         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
14252         module.
14253         * tests/test-string-c++.cc: Check signature of strncat.
14254
14255 2010-04-05  Jim Meyering  <meyering@redhat.com>
14256
14257         xstrtoumax-tests: convert to use init.sh
14258         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
14259         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14260         Use Exit, not exit.
14261         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14262
14263         xstrtoimax-tests: convert to use init.sh
14264         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
14265         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14266         Use Exit, not exit.
14267         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14268
14269 2010-04-05  Bruno Haible  <bruno@clisp.org>
14270
14271         sys_socket: Avoid #define replacements in C++ mode.
14272         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
14273         warning to the function if possible, rather than #defining the symbol
14274         to a dysfunctional alias.
14275
14276 2010-04-05  Bruno Haible  <bruno@clisp.org>
14277
14278         fseeko: Fix C++ test error on mingw.
14279         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
14280         gl_FUNC_FSEEKO.
14281         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
14282         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
14283         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
14284         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
14285
14286 2010-04-05  Bruno Haible  <bruno@clisp.org>
14287
14288         duplocale: Improve test output.
14289         * tests/test-duplocale.c (main): Print reason for skipped test.
14290
14291 2010-04-05  Bruno Haible  <bruno@clisp.org>
14292
14293         Assume rmdir exists.
14294         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
14295         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
14296
14297 2010-04-05  Bruno Haible  <bruno@clisp.org>
14298
14299         Fix link error on Solaris 8 with cc.
14300         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
14301
14302 2010-04-05  Bruno Haible  <bruno@clisp.org>
14303
14304         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
14305         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
14306
14307 2010-04-05  Bruno Haible  <bruno@clisp.org>
14308
14309         vasprintf: Update documentation.
14310         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
14311
14312 2010-04-05  Bruno Haible  <bruno@clisp.org>
14313
14314         ptsname: Improve test.
14315         * tests/test-ptsname.c (main): Also try the various master names of BSD
14316         systems.
14317
14318 2010-04-05  Bruno Haible  <bruno@clisp.org>
14319
14320         memchr: Avoid a possible C++ test error.
14321         * lib/string.in.h (memchr): Provide declaration if function is missing.
14322         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
14323         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
14324         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
14325         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
14326
14327 2010-04-05  Bruno Haible  <bruno@clisp.org>
14328
14329         strtok_r: Improve idiom.
14330         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
14331         AC_LIBOBJ is used.
14332
14333 2010-04-05  Bruno Haible  <bruno@clisp.org>
14334
14335         strdup: Improve idiom.
14336         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
14337         AC_LIBOBJ is used.
14338         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
14339         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
14340         when AC_LIBOBJ is used.
14341
14342 2010-04-05  Bruno Haible  <bruno@clisp.org>
14343
14344         mbsinit, mbrtowc, wcrtomb: Improve idioms.
14345         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
14346         don't set REPLACE_MBSINIT to 1.
14347         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
14348         don't set REPLACE_MBRTOWC to 1.
14349         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
14350         exist, don't set REPLACE_MBSRTOWCS to 1.
14351         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
14352         exist, don't set REPLACE_MBSNRTOWCS to 1.
14353         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
14354         don't set REPLACE_WCRTOMB to 1.
14355         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
14356         exist, don't set REPLACE_WCSRTOMBS to 1.
14357         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
14358         exist, don't set REPLACE_WCSNRTOMBS to 1.
14359
14360 2010-04-05  Bruno Haible  <bruno@clisp.org>
14361
14362         ldexpl: Improve idiom.
14363         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
14364         make sure to set HAVE_DECL_LDEXPL to 0.
14365
14366 2010-04-05  Jim Meyering  <meyering@redhat.com>
14367
14368         xstrtol-tests: convert to use init.sh
14369         * modules/xstrtol-tests (Files): Add tests/init.sh.
14370         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14371         Use Exit, not exit.
14372         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14373
14374         atexit-tests: convert to use init.sh
14375         * modules/atexit-tests (Files): Add tests/init.sh.
14376         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14377         Use Exit, not exit.
14378         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14379
14380         init.sh: fix typo
14381         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
14382
14383         init.sh: make it easier for a test script to write to the tty, ...
14384         when using automake's parallel-tests mode.
14385         * tests/init.sh (stderr_fileno_): Define overridable variable.
14386         (warn_): New function, to use it.
14387         (fail_, skip_, framework_failure_): Use warn_.
14388
14389 2010-04-04  Bruno Haible  <bruno@clisp.org>
14390
14391         btowc: Avoid warning.
14392         * lib/btowc.c: Include <stdlib.h>.
14393         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
14394
14395 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
14396             Bruno Haible  <bruno@clisp.org>
14397
14398         wchar: Port to NetBSD 1.5.
14399         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
14400         * lib/wctype.in.h (WEOF): Likewise.
14401
14402 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
14403             Bruno Haible  <bruno@clisp.org>
14404
14405         Port extended stdio to NetBSD 1.5.
14406         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
14407         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
14408         older.
14409
14410 2010-04-04  Bruno Haible  <bruno@clisp.org>
14411
14412         string: Remove unused substitution.
14413         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
14414         HAVE_DECL_STRERROR.
14415         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
14416
14417 2010-04-04  Bruno Haible  <bruno@clisp.org>
14418
14419         strtod: Avoid a possible C++ test error.
14420         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
14421         set REPLACE_STRTOD.
14422
14423 2010-04-04  Bruno Haible  <bruno@clisp.org>
14424
14425         strerror: Update documentation.
14426         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
14427
14428 2010-04-04  Bruno Haible  <bruno@clisp.org>
14429
14430         stdio: Fix some C++ test errors on Solaris 8 with GCC.
14431         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
14432         _GL_CXXALIAS_SYS_CAST.
14433
14434 2010-04-04  Bruno Haible  <bruno@clisp.org>
14435
14436         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
14437         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
14438         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
14439         REPLACE_FREXPL to 1.
14440         * doc/posix-functions/frexpl.texi: Update documentation.
14441
14442 2010-04-04  Bruno Haible  <bruno@clisp.org>
14443
14444         math: Fix some C++ test errors on Solaris 8 and Cygwin.
14445         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
14446
14447 2010-04-04  Bruno Haible  <bruno@clisp.org>
14448
14449         Implement nanosleep for native Windows.
14450         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
14451
14452 2010-04-04  Bruno Haible  <bruno@clisp.org>
14453
14454         math: Fix some C++ test errors on Solaris 8.
14455         * lib/math.in.h (truncf, trunc): Use simpler idiom.
14456
14457 2010-04-04  Bruno Haible  <bruno@clisp.org>
14458
14459         math: Fix some C++ test errors on Cygwin.
14460         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
14461         truncl): Provide declaration if the system does not have it.
14462         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
14463         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
14464         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
14465         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
14466         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
14467         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
14468         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
14469         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
14470         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
14471         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
14472         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
14473         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
14474         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
14475         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
14476         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
14477         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
14478         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
14479         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
14480         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
14481         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
14482         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
14483         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
14484
14485 2010-04-04  Bruno Haible  <bruno@clisp.org>
14486
14487         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
14488         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14489         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14490         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
14491         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14492         * m4/isinf.m4 (gl_ISINF): Likewise.
14493         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14494
14495 2010-04-04  Bruno Haible  <bruno@clisp.org>
14496
14497         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
14498         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14499
14500 2010-04-04  Bruno Haible  <bruno@clisp.org>
14501
14502         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
14503         * modules/tmpfile (configure.ac): Update.
14504
14505         tmpfile: Fix C++ test error on mingw.
14506         * lib/stdio.in.h (tmpfile): New declaration.
14507         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
14508         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
14509         * modules/tmpfile (Depends-on): Add stdio.
14510         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
14511         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
14512         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
14513         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
14514         REPLACE_TMPFILE.
14515         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
14516
14517 2010-04-04  Bruno Haible  <bruno@clisp.org>
14518
14519         ioctl: Fix C++ test error on mingw.
14520         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
14521         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
14522         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
14523
14524 2010-04-03  Bruno Haible  <bruno@clisp.org>
14525
14526         wcwidth: Fix C++ test error on mingw.
14527         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
14528         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
14529         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
14530
14531 2010-04-03  Bruno Haible  <bruno@clisp.org>
14532
14533         nanosleep: Fix C++ test error on mingw.
14534         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
14535         * lib/time.in.h (nanosleep): Use modern idiom.
14536         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
14537         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
14538         REPLACE_NANOSLEEP to 1.
14539         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
14540         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
14541
14542 2010-04-03  Bruno Haible  <bruno@clisp.org>
14543
14544         strptime: Fix C++ test error on mingw.
14545         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
14546         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
14547         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
14548         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
14549         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
14550         not REPLACE_STRPTIME.
14551         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
14552         REPLACE_STRPTIME.
14553
14554 2010-04-03  Bruno Haible  <bruno@clisp.org>
14555
14556         timegm: Fix C++ test error on mingw.
14557         * lib/time.in.h (timegm): Use modern idiom.
14558         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
14559         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
14560         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
14561         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
14562
14563 2010-04-03  Bruno Haible  <bruno@clisp.org>
14564
14565         timegm: Assume declaration if function exists.
14566         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
14567         if it exists. Don't clobber ac_cv_func_timegm.
14568
14569 2010-04-03  Bruno Haible  <bruno@clisp.org>
14570
14571         time_r: Fix C++ test error on mingw.
14572         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
14573         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
14574         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
14575         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
14576         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
14577
14578 2010-04-03  Bruno Haible  <bruno@clisp.org>
14579
14580         time_r: Minor updates.
14581         * modules/time_r (Description): Mention the provided functions.
14582         * lib/time_r.c: Don't include <string.h>.
14583         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
14584         * doc/posix-functions/localtime_r.texi: Likewise.
14585
14586 2010-04-03  Bruno Haible  <bruno@clisp.org>
14587
14588         time: Fix regression introduced on 2010-03-08.
14589         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
14590         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
14591
14592 2010-04-03  Jim Meyering  <meyering@redhat.com>
14593
14594         maint.mk: don't silently disable project-specific syntax-check rules
14595         * top/maint.mk (_prohibit_regexp): Define, to help people realize
14596         that they need to convert their project-specific syntax-check rules
14597         to use the new _sc_search_regexp.
14598
14599 2010-04-03  Bruno Haible  <bruno@clisp.org>
14600
14601         fchdir: Fix regression introduced on 2010-03-08.
14602         * lib/unistd.in.h (fchdir): Fix declaration.
14603         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
14604         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
14605         REPLACE_FCHDIR.
14606         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
14607         REPLACE_FCHDIR.
14608
14609 2010-04-03  Bruno Haible  <bruno@clisp.org>
14610
14611         getpagesize: Fix C++ test error on mingw.
14612         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
14613         system does not declare the function.
14614         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
14615         declared.
14616         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14617         HAVE_DECL_GETPAGESIZE.
14618         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
14619
14620 2010-04-03  Bruno Haible  <bruno@clisp.org>
14621
14622         stdio: Make C++ tests work on mingw.
14623         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
14624         does not declare the function.
14625
14626 2010-04-03  Bruno Haible  <bruno@clisp.org>
14627
14628         ftello: Fix C++ test error on mingw.
14629         * lib/stdio.in.h (ftello): Use modern idiom.
14630         * lib/ftello.c (ftello): Renamed from rpl_ftello.
14631         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
14632         is missing and that it needs to be replaced.
14633         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
14634         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
14635         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
14636
14637 2010-04-03  Bruno Haible  <bruno@clisp.org>
14638
14639         fseeko: Fix C++ test error on mingw.
14640         * lib/stdio.in.h (fseeko): Use modern idiom.
14641         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
14642         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
14643         is missing and that it needs to be replaced.
14644         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
14645         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
14646         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
14647
14648 2010-04-03  Bruno Haible  <bruno@clisp.org>
14649
14650         mkstemp: Fix C++ test error on mingw.
14651         * lib/stdlib.in.h (mkstemp): Use modern idiom.
14652         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
14653         function is missing and that it needs to be replaced.
14654         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
14655         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
14656
14657 2010-04-03  Bruno Haible  <bruno@clisp.org>
14658
14659         stpncpy: Fix C++ test error on mingw.
14660         * lib/string.in.h (stpncpy): Use modern idiom.
14661         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
14662         function is missing and that it needs to be replaced.
14663         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14664         REPLACE_STPNCPY.
14665         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
14666
14667 2010-04-03  Bruno Haible  <bruno@clisp.org>
14668
14669         sys_stat: Fix C++ test error on mingw.
14670         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
14671         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
14672
14673 2010-04-03  Bruno Haible  <bruno@clisp.org>
14674
14675         pty: Update doc.
14676         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
14677
14678 2010-04-03  Bruno Haible  <bruno@clisp.org>
14679
14680         unistd: Fix C++ test error on mingw.
14681         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
14682
14683 2010-04-03  Bruno Haible  <bruno@clisp.org>
14684
14685         Update doc regarding mingw.
14686         * doc/glibc-functions/openpty.texi: Update regarding mingw.
14687         * doc/glibc-functions/login_tty.texi: Likewise.
14688         * doc/glibc-functions/forkpty.texi: Likewise.
14689
14690 2010-04-03  Bruno Haible  <bruno@clisp.org>
14691
14692         stdlib: Avoid compilation failure of c-strtold on mingw.
14693         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
14694
14695 2010-04-03  Bruno Haible  <bruno@clisp.org>
14696
14697         locale: Make C++ tests work on Cygwin and mingw.
14698         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
14699         cannot provide the function.
14700         Reported by Simon Josefsson.
14701
14702 2010-04-03  Bruno Haible  <bruno@clisp.org>
14703
14704         localename: Port to MacOS X 10.6.
14705         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
14706         memory layout of the locales in MacOS X 10.6 as well.
14707         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
14708
14709 2010-04-02  Bruno Haible  <bruno@clisp.org>
14710
14711         gnulib-tool: Ensure that long-running tests are executed last.
14712         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
14713         running tests after the one for the other tests.
14714
14715 2010-04-02  Bruno Haible  <bruno@clisp.org>
14716
14717         gnulib-tool: Ensure the tests in the main directory are executed first.
14718         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
14719         start with the current directory.
14720
14721 2010-04-02  Bruno Haible  <bruno@clisp.org>
14722
14723         Tests for module 'havelib', moved here from GNU gettext.
14724         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
14725         modifications.
14726         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
14727         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
14728         with modifications.
14729         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
14730         modifications.
14731         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
14732         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
14733         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
14734         with modifications.
14735         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
14736         with modifications.
14737         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
14738         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
14739         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
14740         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
14741         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
14742         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
14743         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
14744         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
14745         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
14746         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
14747         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
14748         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
14749         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
14750         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
14751         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
14752         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
14753         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
14754         with modifications.
14755         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
14756         with modifications.
14757         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
14758         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
14759         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
14760         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
14761         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
14762         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
14763         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
14764         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
14765         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
14766         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
14767         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
14768         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
14769         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
14770         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
14771         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
14772         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
14773         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
14774         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
14775         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
14776         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
14777         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
14778         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
14779         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
14780         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
14781         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
14782         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
14783         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
14784         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
14785         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
14786         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
14787         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
14788         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
14789         * tests/havelib/rpathx/rpathx.c: New file, from
14790         gettext/autoconf-lib-link.
14791         * tests/havelib/rpathx/Makefile.am: New file, from
14792         gettext/autoconf-lib-link.
14793         * tests/havelib/rpathx/configure.ac: New file, from
14794         gettext/autoconf-lib-link with modifications.
14795         * tests/havelib/rpathy/rpathy.c: New file, from
14796         gettext/autoconf-lib-link.
14797         * tests/havelib/rpathy/Makefile.am: New file, from
14798         gettext/autoconf-lib-link.
14799         * tests/havelib/rpathy/configure.ac: New file, from
14800         gettext/autoconf-lib-link with modifications.
14801         * tests/havelib/rpathz/rpathz.c: New file, from
14802         gettext/autoconf-lib-link.
14803         * tests/havelib/rpathz/Makefile.am: New file, from
14804         gettext/autoconf-lib-link.
14805         * tests/havelib/rpathz/configure.ac: New file, from
14806         gettext/autoconf-lib-link with modifications.
14807         * tests/havelib/rpathlx/usex.c: New file, from
14808         gettext/autoconf-lib-link.
14809         * tests/havelib/rpathlx/Makefile.am: New file, from
14810         gettext/autoconf-lib-link.
14811         * tests/havelib/rpathlx/configure.ac: New file, from
14812         gettext/autoconf-lib-link with modifications.
14813         * tests/havelib/rpathly/usey.c: New file, from
14814         gettext/autoconf-lib-link.
14815         * tests/havelib/rpathly/Makefile.am: New file, from
14816         gettext/autoconf-lib-link.
14817         * tests/havelib/rpathly/configure.ac: New file, from
14818         gettext/autoconf-lib-link with modifications.
14819         * tests/havelib/rpathlz/usez.c: New file, from
14820         gettext/autoconf-lib-link.
14821         * tests/havelib/rpathlz/Makefile.am: New file, from
14822         gettext/autoconf-lib-link.
14823         * tests/havelib/rpathlz/configure.ac: New file, from
14824         gettext/autoconf-lib-link with modifications.
14825         * tests/havelib/rpathlyx/usey.c: New file, from
14826         gettext/autoconf-lib-link.
14827         * tests/havelib/rpathlyx/Makefile.am: New file, from
14828         gettext/autoconf-lib-link.
14829         * tests/havelib/rpathlyx/configure.ac: New file, from
14830         gettext/autoconf-lib-link with modifications.
14831         * tests/havelib/rpathlzyx/usez.c: New file, from
14832         gettext/autoconf-lib-link.
14833         * tests/havelib/rpathlzyx/Makefile.am: New file, from
14834         gettext/autoconf-lib-link.
14835         * tests/havelib/rpathlzyx/configure.ac: New file, from
14836         gettext/autoconf-lib-link with modifications.
14837         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
14838         with modifications.
14839
14840 2010-04-02  Bruno Haible  <bruno@clisp.org>
14841
14842         gnulib-tool: Create distributed built sources also for the tests.
14843         * gnulib-tool (func_create_testdir): Also generate distributed built
14844         sources in the tests directory.
14845
14846 2010-04-02  Bruno Haible  <bruno@clisp.org>
14847
14848         gnulib-tool: Obey user's environment variables.
14849         * gnulib-tool (func_create_testdir): When creating built sources,
14850         respect the environment variables for autoconf, automake, etc. given by
14851         the user.
14852
14853 2010-04-02  Bruno Haible  <bruno@clisp.org>
14854
14855         gnulib-tool: Provide the value of --m4-base to modules.
14856         * gnulib-tool (func_import, func_create_testdir): Emit a definition
14857         of gl_m4_base.
14858
14859 2010-04-02  Eric Blake  <eblake@redhat.com>
14860
14861         maint.mk: fix some fallout
14862         * NEWS: Document the incompatible change, and its effect on cfg.mk.
14863         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
14864
14865 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
14866
14867         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
14868         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
14869         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
14870         (sc_cast_of_x_alloc_return_value): Likewise.
14871         (sc_cast_of_alloca_return_value): Likewise.
14872         (sc_space_tab): Likewise.
14873         (sc_prohibit_atoi_atof): Likewise.
14874         (sc_prohibit_magic_number_exit): Likewise.
14875         (sc_error_exit_success): Likewise.
14876         (sc_file_system): Likewise.
14877         (sc_prohibit_have_config_h): Likewise.
14878         (sc_require_config_h): Likewise.
14879         (sc_prohibit_HAVE_MBRTOWC): Likewise.
14880         (sc_obsolete_symbols): Likewise.
14881         (sc_changelog): Likewise.
14882         (sc_program_name): Likewise.
14883         (sc_the_the): Likewise.
14884         (sc_trailing_blank): Likewise.
14885         (sc_two_space_separator_in_usage): Likewise.
14886         (sc_useless_cpp_parens): Likewise.
14887         (sc_GPL_version): Likewise.
14888         (sc_GFDL_version): Likewise.
14889         (sc_texinfo_acronym): Likewise.
14890         (sc_prohibit_cvs_keyword): Likewise.
14891         (sc_prohibit_stat_st_blocks): Likewise.
14892         (sc_prohibit_S_IS_definition): Likewise.
14893         (sc_redundant_const): Likewise.
14894         (sc_makefile_TAB_only_indentation): Likewise.
14895         (sc_m4_quote_check): Likewise.
14896         (sc_makefile_path_separator_check): Likewise.
14897         (sc_copyright_check): Likewise.
14898         (sc_Wundef_boolean): Likewise.
14899         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
14900
14901         maint.mk: match 0 or more whitespace-before-function-call '('
14902         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
14903         that have zero or two-and-more spaces between the function name
14904         and the open parenthesis.
14905         (sc_error_message_warn_fatal): Likewise.
14906         (sc_error_message_uppercase): Likewise.
14907         (sc_error_message_period): Likewise.
14908
14909 2010-03-31  Eric Blake  <eblake@redhat.com>
14910
14911         maint.mk: check for [ as well as test
14912         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
14913         Based on a libvirt report by Matthias Bolte.
14914
14915         gnumakefile: don't squelch _version output
14916         * top/GNUmakefile (_version): Create one-shot dependency rather
14917         than using $(shell) when version must be regenerated.
14918         (_autoreconf): Run verbosely, by default.
14919
14920         sys_time: avoid compiler warnings
14921         * lib/sys_time.in.h (includes): Ensure gcc pragma is
14922         unconditional, fixing regression from 2010-03-29.
14923         Reported by Simon Josefsson.
14924
14925 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
14926
14927         maint.mk: s/_header_without_use/_sc_header_without_use/
14928         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
14929         (sc_prohibit_assert_without_use): Use the new name.
14930         (sc_prohibit_close_stream_without_use): Likewise.
14931         (sc_prohibit_getopt_without_use): Likewise.
14932         (sc_prohibit_quotearg_without_use): Likewise.
14933         (sc_prohibit_quote_without_use): Likewise.
14934         (sc_prohibit_long_options_without_use): Likewise.
14935         (sc_prohibit_inttostr_without_use): Likewise.
14936         (sc_prohibit_ignore_value_without_use): Likewise.
14937         (sc_prohibit_error_without_use): Likewise.
14938         (sc_prohibit_xalloc_without_use): Likewise.
14939         (sc_prohibit_hash_without_use): Likewise.
14940         (sc_prohibit_hash_pjw_without_use): Likewise.
14941         (sc_prohibit_safe_read_without_use): Likewise.
14942         (sc_prohibit_argmatch_without_use): Likewise.
14943         (sc_prohibit_canonicalize_without_use): Likewise.
14944         (sc_prohibit_root_dev_ino_without_use): Likewise.
14945         (sc_prohibit_openat_without_use): Likewise.
14946         (sc_prohibit_c_ctype_without_use): Likewise.
14947         (sc_prohibit_signal_without_use): Likewise.
14948         (sc_prohibit_intprops_without_use): Likewise.
14949
14950 2010-03-30  Eric Blake  <eblake@redhat.com>
14951
14952         maint: improve module indicators
14953         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
14954         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
14955         columns, and avoid extra macro expansion.
14956
14957         fdopendir: work around FreeBSD bug
14958         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
14959         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
14960         * modules/dirent (Makefile.am): Substitute it.
14961         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
14962         declaration.
14963         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
14964         fix.
14965         Reported by Christian Weisgerber <naddy@mips.inka.de>.
14966
14967 2010-03-29  Bruno Haible  <bruno@clisp.org>
14968
14969         Emit #pragma system_header after the inclusion guard, not before.
14970         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
14971         guard that spans the entire file, not before. This enables an
14972         optimization in GCC's preprocessor.
14973         * lib/ctype.in.h: Likewise.
14974         * lib/dirent.in.h: Likewise.
14975         * lib/errno.in.h: Likewise.
14976         * lib/float.in.h: Likewise.
14977         * lib/getopt.in.h: Likewise.
14978         * lib/iconv.in.h: Likewise.
14979         * lib/langinfo.in.h: Likewise.
14980         * lib/locale.in.h: Likewise.
14981         * lib/math.in.h: Likewise.
14982         * lib/netdb.in.h: Likewise.
14983         * lib/netinet_in.in.h: Likewise.
14984         * lib/pty.in.h: Likewise.
14985         * lib/sched.in.h: Likewise.
14986         * lib/se-selinux.in.h: Likewise.
14987         * lib/search.in.h: Likewise.
14988         * lib/spawn.in.h: Likewise.
14989         * lib/stdarg.in.h: Likewise.
14990         * lib/stdint.in.h: Likewise.
14991         * lib/string.in.h: Likewise.
14992         * lib/strings.in.h: Likewise.
14993         * lib/sys_file.in.h: Likewise.
14994         * lib/sys_ioctl.in.h: Likewise.
14995         * lib/sys_time.in.h: Likewise.
14996         * lib/sys_times.in.h: Likewise.
14997         * lib/sys_utsname.in.h: Likewise.
14998         * lib/sys_wait.in.h: Likewise.
14999         * lib/sysexits.in.h: Likewise.
15000         * lib/wctype.in.h: Likewise.
15001
15002 2010-03-28  James Youngman  <jay@gnu.org>
15003
15004         save-cwd: don't leak a file descriptor when the caller execs.
15005         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
15006         saved file descriptor.
15007         * modules/save-cwd (Depends-on): Depend on cloexec.
15008
15009 2010-03-29  Bruno Haible  <bruno@clisp.org>
15010
15011         Remove vestiges of fts-lgpl module.
15012         * lib/fts_.h: Assume GNULIB_FTS is 1.
15013         * lib/fts.c: Likewise.
15014         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
15015
15016 2010-03-28  Bruno Haible  <bruno@clisp.org>
15017
15018         Fix definition of tests witness macro.
15019         * gnulib-tool (func_import): Fix definition of witness macro.
15020
15021 2010-03-28  Bruno Haible  <bruno@clisp.org>
15022
15023         Fix ioctl's protoype on glibc systems.
15024         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
15025         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
15026         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
15027         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
15028         signature. If not, arrange to replace the ioctl function.
15029         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
15030         REPLACE_IOCTL.
15031         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
15032         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
15033         Reported by Ludovic Courtès <ludo@gnu.org>.
15034
15035 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
15036
15037         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
15038         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
15039         made it so grep -r --include=GLOB* ... did not work.
15040
15041 2010-03-26  Jim Meyering  <meyering@redhat.com>
15042             Eric Blake  <eblake@redhat.com>
15043
15044         maint.mk: prohibit use of test's -o and -a operators
15045         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
15046
15047 2010-03-28  Bruno Haible  <bruno@clisp.org>
15048
15049         Remove unused GNULIB_XYZ macro definitions.
15050         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
15051         invocation.
15052
15053 2010-03-28  Bruno Haible  <bruno@clisp.org>
15054
15055         Mark privileged tests modules.
15056         * modules/idpriv-drop-tests (Status): New section.
15057         * modules/idpriv-droptemp-tests (Status): New section.
15058
15059 2010-03-28  Bruno Haible  <bruno@clisp.org>
15060
15061         Split C++ tests into separate tests modules.
15062         * modules/dirent-c++-tests: New file, extracted from
15063         modules/dirent-tests.
15064         * modules/dirent-tests: Depend on it.
15065         * modules/fcntl-h-c++-tests: New file, extracted from
15066         modules/fcntl-h-tests.
15067         * modules/fcntl-h-tests: Depend on it.
15068         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
15069         * modules/glob-tests: Depend on it.
15070         * modules/iconv-h-c++-tests: New file, extracted from
15071         modules/iconv-h-tests.
15072         * modules/iconv-h-tests: Depend on it.
15073         * modules/langinfo-c++-tests: New file, extracted from
15074         modules/langinfo-tests.
15075         * modules/langinfo-tests: Depend on it.
15076         * modules/locale-c++-tests: New file, extracted from
15077         modules/locale-tests.
15078         * modules/locale-tests: Depend on it.
15079         * modules/math-c++-tests: New file, extracted from modules/math-tests.
15080         * modules/math-tests: Depend on it.
15081         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
15082         * modules/pty-tests: Depend on it.
15083         * modules/search-c++-tests: New file, extracted from
15084         modules/search-tests.
15085         * modules/search-tests: Depend on it.
15086         * modules/signal-c++-tests: New file, extracted from
15087         modules/signal-tests.
15088         * modules/signal-tests: Depend on it.
15089         * modules/spawn-c++-tests: New file, extracted from
15090         modules/spawn-tests.
15091         * modules/spawn-tests: Depend on it.
15092         * modules/stdio-c++-tests: New file, extracted from
15093         modules/stdio-tests.
15094         * modules/stdio-tests: Depend on it.
15095         * modules/stdlib-c++-tests: New file, extracted from
15096         modules/stdlib-tests.
15097         * modules/stdlib-tests: Depend on it.
15098         * modules/string-c++-tests: New file, extracted from
15099         modules/string-tests.
15100         * modules/string-tests: Depend on it.
15101         * modules/sys_ioctl-c++-tests: New file, extracted from
15102         modules/sys_ioctl-tests.
15103         * modules/sys_ioctl-tests: Depend on it.
15104         * modules/sys_select-c++-tests: New file, extracted from
15105         modules/sys_select-tests.
15106         * modules/sys_select-tests: Depend on it.
15107         * modules/sys_socket-c++-tests: New file, extracted from
15108         modules/sys_socket-tests.
15109         * modules/sys_socket-tests: Depend on it.
15110         * modules/sys_stat-c++-tests: New file, extracted from
15111         modules/sys_stat-tests.
15112         * modules/sys_stat-tests: Depend on it.
15113         * modules/sys_time-c++-tests: New file, extracted from
15114         modules/sys_time-tests.
15115         * modules/sys_time-tests: Depend on it.
15116         * modules/time-c++-tests: New file, extracted from modules/time-tests.
15117         * modules/time-tests: Depend on it.
15118         * modules/unistd-c++-tests: New file, extracted from
15119         modules/unistd-tests.
15120         * modules/unistd-tests: Depend on it.
15121         * modules/wchar-c++-tests: New file, extracted from
15122         modules/wchar-tests.
15123         * modules/wchar-tests: Depend on it.
15124         * modules/wctype-c++-tests: New file, extracted from
15125         modules/wctype-tests.
15126         * modules/wctype-tests: Depend on it.
15127         Reported by Simon Josefsson.
15128
15129 2010-03-28  Bruno Haible  <bruno@clisp.org>
15130
15131         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
15132         * gnulib-tool (func_exists_module): New function, extracted from
15133         func_verify_module.
15134         (func_verify_module): Use it.
15135         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
15136         'foo' only if 'foo' exists.
15137         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
15138         module.
15139
15140 2010-03-28  Bruno Haible  <bruno@clisp.org>
15141
15142         gnulib-tool: Add support for special categories of tests.
15143         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
15144         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
15145         (func_usage): Document them.
15146         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
15147         inc_unportable_tests, inc_all_tests): New variables.
15148         (func_acceptable): Consider these variables.
15149         (func_modules_transitive_closure): Make it work when the 'Status' field
15150         consists of multiple words.
15151         (func_import): Store and restore the values of inc_cxx_tests,
15152         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
15153         inc_all_tests in gnulib-comp.m4.
15154         (func_create_testdir): Set inc_all_tests to true.
15155         * doc/gnulib.texi (Extra tests modules): New section.
15156         Suggested by Jim Meyering.
15157
15158 2010-03-28  Bruno Haible  <bruno@clisp.org>
15159
15160         ansi-c++-opt: Allow turning off the C++ build by default.
15161         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
15162         gl_CXX_CHOICE_DEFAULT_NO is defined.
15163         Requested by Eric Blake.
15164
15165 2010-03-28  Bruno Haible  <bruno@clisp.org>
15166
15167         unistd: Avoid #define replacements in C++ mode.
15168         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
15169         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
15170         setsockopt, shutdown, select): In C++, attach a warning to the function
15171         if possible, rather than #defining the symbol to a dysfunctional alias.
15172         Reported by John W. Eaton <jwe@gnu.org>.
15173
15174 2010-03-28  Bruno Haible  <bruno@clisp.org>
15175
15176         Fix link errors on mingw.
15177         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
15178         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
15179         $(LIBSOCKET).
15180         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
15181         $(LIBSOCKET).
15182
15183 2010-03-28  Bruno Haible  <bruno@clisp.org>
15184             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15185
15186         lib-ignore: Determine different options for different compilers.
15187         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
15188         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
15189         Add comments.
15190         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
15191         * NEWS: Mention the change.
15192
15193 2010-03-27  Bruno Haible  <bruno@clisp.org>
15194
15195         Remove unused GNULIB_XYZ macro definitions.
15196         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
15197         * modules/fseek (configure.ac): Likewise.
15198         * modules/ioctl (configure.ac): Likewise.
15199         * modules/open (configure.ac): Likewise.
15200         * modules/stdlib-safer (configure.ac): Likewise.
15201
15202 2010-03-27  Bruno Haible  <bruno@clisp.org>
15203
15204         Add a remark about certain modules.
15205         * modules/malloc (Comment): New section.
15206         * modules/realloc (Comment): Likewise.
15207         * modules/sigpipe (Comment): Likewise.
15208
15209 2010-03-27  Bruno Haible  <bruno@clisp.org>
15210
15211         Resolve conflict between the two kinds of module indicators.
15212         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
15213         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
15214         * modules/canonicalize (configure.ac): Invoke
15215         gl_MODULE_INDICATOR_FOR_TESTS.
15216         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
15217         GNULIB_XYZ.
15218         * tests/test-dirent-c++.cc: Likewise.
15219         * tests/test-dirent-safer.c: Likewise.
15220         * tests/test-dup2.c: Likewise.
15221         * tests/test-fchdir.c: Likewise.
15222         * tests/test-fcntl-h-c++.cc: Likewise.
15223         * tests/test-getopt.c: Likewise.
15224         * tests/test-getopt.h: Likewise.
15225         * tests/test-langinfo-c++.cc: Likewise.
15226         * tests/test-locale-c++.cc: Likewise.
15227         * tests/test-math-c++.cc: Likewise.
15228         * tests/test-pty-c++.cc: Likewise.
15229         * tests/test-search-c++.cc: Likewise.
15230         * tests/test-signal-c++.cc: Likewise.
15231         * tests/test-spawn-c++.cc: Likewise.
15232         * tests/test-stdio-c++.cc: Likewise.
15233         * tests/test-stdlib-c++.cc: Likewise.
15234         * tests/test-string-c++.cc: Likewise.
15235         * tests/test-sys_ioctl-c++.cc: Likewise.
15236         * tests/test-sys_select-c++.cc: Likewise.
15237         * tests/test-sys_socket-c++.cc: Likewise.
15238         * tests/test-sys_stat-c++.cc: Likewise.
15239         * tests/test-sys_time-c++.cc: Likewise.
15240         * tests/test-time-c++.cc: Likewise.
15241         * tests/test-unistd-c++.cc: Likewise.
15242         * tests/test-wchar-c++.cc: Likewise.
15243         * tests/uninorm/test-u8-nfc.c: Likewise.
15244         * tests/uninorm/test-u8-nfd.c: Likewise.
15245         * tests/uninorm/test-u8-nfkc.c: Likewise.
15246         * tests/uninorm/test-u8-nfkd.c: Likewise.
15247         * tests/uninorm/test-u16-nfc.c: Likewise.
15248         * tests/uninorm/test-u16-nfd.c: Likewise.
15249         * tests/uninorm/test-u16-nfkc.c: Likewise.
15250         * tests/uninorm/test-u16-nfkd.c: Likewise.
15251         * tests/uninorm/test-u32-nfc.c: Likewise.
15252         * tests/uninorm/test-u32-nfc-big.c: Likewise.
15253         * tests/uninorm/test-u32-nfd.c: Likewise.
15254         * tests/uninorm/test-u32-nfd-big.c: Likewise.
15255         * tests/uninorm/test-u32-nfkc.c: Likewise.
15256         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
15257         * tests/uninorm/test-u32-nfkd.c: Likewise.
15258         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
15259         * tests/uninorm/test-u32-normalize-big.c: Likewise.
15260
15261 2010-03-27  Bruno Haible  <bruno@clisp.org>
15262
15263         Distinguish two kinds of module indicators.
15264         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
15265         gl_MODULE_INDICATOR.
15266         (gl_MODULE_INDICATOR): New macro.
15267         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
15268         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
15269         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
15270         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
15271         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
15272         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
15273         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
15274         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
15275         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
15276         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
15277         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
15278         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
15279         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
15280         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
15281         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
15282         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
15283         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
15284         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
15285         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
15286         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
15287         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
15288         * modules/cloexec (configure.ac): Likewise.
15289         * modules/getopt-gnu (configure.ac): Likewise.
15290         * modules/uninorm/u8-normalize (configure.ac): Likewise.
15291         * modules/uninorm/u16-normalize (configure.ac): Likewise.
15292         * modules/uninorm/u32-normalize (configure.ac): Likewise.
15293         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
15294
15295 2010-03-27  Bruno Haible  <bruno@clisp.org>
15296
15297         New module description field 'Comment'.
15298         * gnulib-tool: New option --extract-comment.
15299         (func_usage): Document it.
15300         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
15301         (func_get_comment): New function.
15302         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
15303
15304 2010-03-27  Bruno Haible  <bruno@clisp.org>
15305
15306         Addendum to 2010-02-07 commit.
15307         * gnulib-tool (func_usage): Document --extract-applicability option.
15308
15309 2010-03-27  Bruno Haible  <bruno@clisp.org>
15310
15311         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
15312         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
15313         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
15314         rather than link errors.
15315
15316 2010-03-27  Bruno Haible  <bruno@clisp.org>
15317
15318         Avoid side effects from tests-related modules on the compilation of lib.
15319         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
15320         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
15321         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
15322         parameter. Emit into AM_CPPFLAGS a definition of the designated C
15323         macro.
15324         (func_import): Define a witness macro. Assign it a value that depends
15325         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
15326         tests-related modules.
15327         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
15328         Reported by Jim Meyering.
15329
15330 2010-03-27  Bruno Haible  <bruno@clisp.org>
15331
15332         Factorize common .m4 code.
15333         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
15334         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
15335         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
15336         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
15337         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
15338         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
15339         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
15340         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
15341         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
15342         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
15343         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
15344         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
15345         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
15346         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
15347         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
15348         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
15349         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
15350         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
15351         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
15352         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
15353         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
15354         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
15355         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
15356         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
15357         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
15358         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
15359         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
15360         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
15361         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
15362         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
15363         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
15364         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
15365
15366 2010-03-27  Bruno Haible  <bruno@clisp.org>
15367
15368         Fix a compilation error on Cygwin with g++ >= 4.3.
15369         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
15370         if it is undefined or if we alias it to chmod.
15371         (lstat): Don't warn about the use of this function if it is undefined
15372         or if we alias it to stat.
15373         Reported by Simon Josefsson.
15374
15375 2010-03-27  Bruno Haible  <bruno@clisp.org>
15376
15377         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
15378         * modules/getlogin (configure.ac): Update.
15379
15380         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
15381         * modules/getlogin_r (configure.ac): Update.
15382
15383         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
15384         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
15385         * modules/inet_ntop (configure.ac): Update.
15386
15387         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
15388         * modules/inet_pton (configure.ac): Update.
15389
15390         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
15391         * modules/mbslen (configure.ac): Update.
15392
15393         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
15394         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
15395         * modules/forkpty (configure.ac): Update.
15396         * modules/openpty (configure.ac): Update.
15397
15398 2010-03-26  Simon Josefsson  <simon@josefsson.org>
15399
15400         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
15401         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
15402
15403 2010-03-25  Eric Blake  <eblake@redhat.com>
15404
15405         maint: use pragma consistently across replacement headers
15406         * lib/ctype.in.h (system_header): Hoist for consistent placement.
15407         * lib/dirent.in.h (system_header): Likewise.
15408         * lib/errno.in.h (system_header): Likewise.
15409         * lib/float.in.h (system_header): Likewise.
15410         * lib/getopt.in.h (system_header): Likewise.
15411         * lib/iconv.in.h (system_header): Likewise.
15412         * lib/inttypes.in.h (system_header): Likewise.
15413         * lib/langinfo.in.h (system_header): Likewise.
15414         * lib/locale.in.h (system_header): Likewise.
15415         * lib/math.in.h (system_header): Likewise.
15416         * lib/netdb.in.h (system_header): Likewise.
15417         * lib/netinet_in.in.h (system_header): Likewise.
15418         * lib/pty.in.h (system_header): Likewise.
15419         * lib/sched.in.h (system_header): Likewise.
15420         * lib/se-selinux.in.h (system_header): Likewise.
15421         * lib/search.in.h (system_header): Likewise.
15422         * lib/spawn.in.h (system_header): Likewise.
15423         * lib/stdarg.in.h (system_header): Likewise.
15424         * lib/stdint.in.h (system_header): Likewise.
15425         * lib/string.in.h (system_header): Likewise.
15426         * lib/strings.in.h (system_header): Likewise.
15427         * lib/sys_file.in.h (system_header): Likewise.
15428         * lib/sys_ioctl.in.h (system_header): Likewise.
15429         * lib/sys_socket.in.h (system_header): Likewise.
15430         * lib/sys_times.in.h (system_header): Likewise.
15431         * lib/sys_utsname.in.h (system_header): Likewise.
15432         * lib/sys_wait.in.h (system_header): Likewise.
15433         * lib/sysexits.in.h (system_header): Likewise.
15434         * lib/unistd.in.h (system_header): Likewise.
15435         * lib/wctype.in.h (system_header): Likewise.
15436
15437         arpa/inet: fix mingw compilation warning
15438         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
15439         Reported by Matthew Bolte.
15440
15441 2010-03-25  Bruno Haible  <bruno@clisp.org>
15442
15443         Avoid collision between gnulib wrapper and libintl wrapper.
15444         * lib/printf.c (printf): Don't define if a printf wrapper is already
15445         defined in intl/printf.c.
15446         Reported by Michel Boaventura <michel@michelboaventura.com>.
15447
15448 2010-03-25  Bruno Haible  <bruno@clisp.org>
15449
15450         Use ANSI C.
15451         * lib/readutmp.h (getutent): Provide ANSI C prototype.
15452
15453 2010-03-25  Bruno Haible  <bruno@clisp.org>
15454
15455         Minor formatting changes.
15456         * lib/acosl.c: Insert space before function argument list.
15457         * lib/argz.c: Likewise.
15458         * lib/asinl.c: Likewise.
15459         * lib/expl.c: Likewise.
15460         * lib/gen-uni-tables.c: Likewise.
15461         * lib/gettext.h: Likewise.
15462         * lib/glthread/lock.h: Likewise.
15463         * lib/tanl.c: Likewise.
15464         * lib/uniname/uniname.c: Likewise.
15465         * tests/test-idpriv-drop.c: Likewise.
15466         * tests/test-idpriv-droptemp.c: Likewise.
15467         * tests/test-lock.c: Likewise.
15468         * tests/test-tls.c: Likewise.
15469         * lib/argp-help.c: Insert space before function-like macro argument
15470         list.
15471         * lib/memcmp.c: Likewise.
15472         * tests/test-base64.c: Likewise.
15473         * lib/localename.c: Insert space before sizeof's argument list.
15474         * lib/safe-alloc.h: Likewise.
15475         * lib/file-set.h: Insert space before macro argument list.
15476         * tests/test-argp.c: Likewise.
15477         * lib/argp-namefrob.h: Insert space before function parameter list.
15478         * lib/getaddrinfo.c: Likewise.
15479         * lib/netdb.in.h: Likewise.
15480         * lib/parse-duration.h: Likewise.
15481         * lib/parse-duration.c: Likewise.
15482         * lib/poll.c: Likewise.
15483         * lib/select.c: Likewise.
15484         * lib/trim.h: Likewise.
15485         * tests/test-usleep.c: Likewise.
15486         * lib/ldexpl.c: Insert space before function parameter list and before
15487         function argument list.
15488         * lib/logl.c: Likewise.
15489         * lib/sqrtl.c: Likewise.
15490         * lib/trim.c: Likewise.
15491         * lib/cosl.c: Use GNU style indentation. Insert space before function
15492         argument list.
15493         * lib/sinl.c: Likewise.
15494         * lib/tsearch.c: Insert space after 'for'.
15495         Reported by Jim Meyering.
15496
15497 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
15498
15499         * maint.mk (sc_Wundef_boolean): Check for the presence of the
15500         config header before grepping, as it's not present before
15501         autoreconf/configure are run.  Reported by Simon Josefsson.
15502
15503 2010-03-23  Bruno Haible  <bruno@clisp.org>
15504
15505         pt_chown: Make it work with automake < 1.11.
15506         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
15507         Reported by Simon Josefsson.
15508
15509 2010-03-23  Bruno Haible  <bruno@clisp.org>
15510
15511         pt_chown: Don't depend on GPLed modules.
15512         * lib/pt_chown.c: Don't include idpriv.h.
15513         (main): Don't drop privileges.
15514         * modules/pt_chown (Depends-on): Remove idpriv-drop.
15515         Reported by Simon Josefsson.
15516
15517 2010-03-24  Simon Josefsson  <simon@josefsson.org>
15518
15519         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
15520         suggestions from karl@freefriends.org (Karl Berry).
15521
15522 2010-03-22  Eric Blake  <eblake@redhat.com>
15523
15524         gethostname: further tweaks
15525         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
15526         are overriding gethostname.
15527         Suggested by Bruno Haible.
15528
15529 2010-03-21  Bruno Haible  <bruno@clisp.org>
15530
15531         Fix comments.
15532         * lib/forkpty.c (rpl_forkpty): Fix comment.
15533         * lib/openpty.c (rpl_openpty): Likewise.
15534         Reported by Eric Blake.
15535
15536 2010-03-22  Eric Blake  <eblake@redhat.com>
15537
15538         gethostname: fix build on mingw
15539         * lib/unistd.in.h (includes): Work around fact that mingw
15540         <winsock2.h> re-includes <unistd.h>, by avoiding any
15541         redeclarations if we are being included by <winsock2.h>.
15542         Reported by Matthias Bolte.
15543
15544 2010-03-21  Bruno Haible  <bruno@clisp.org>
15545
15546         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
15547         * lib/forkpty.c (forkpty): New replacement function, from glibc with
15548         modifications.
15549         * lib/pty.in.h (forkpty): Update declaration. Add comments.
15550         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
15551         provide the replacement.
15552         * modules/forkpty (Depends-on): Add openpty, login_tty.
15553         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
15554         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
15555         * doc/glibc-functions/forkpty.texi: More supported platforms.
15556         * config/srclist.txt: Add forkpty.c (commented).
15557
15558 2010-03-21  Bruno Haible  <bruno@clisp.org>
15559
15560         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
15561         (Makefile.am): Verify that PTY_LIB is defined.
15562
15563         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
15564
15565 2010-03-21  Bruno Haible  <bruno@clisp.org>
15566
15567         Tests for module 'login_tty'.
15568         * modules/login_tty-tests: New file.
15569         * tests/test-login_tty.c: New file.
15570
15571         New module 'login_tty'.
15572         * lib/login_tty.c: New file.
15573         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
15574         * modules/login_tty: New file.
15575         * doc/glibc-functions/login_tty.texi: Mention the new module.
15576
15577 2010-03-21  Bruno Haible  <bruno@clisp.org>
15578
15579         login_tty: Documentation.
15580         * doc/glibc-functions/login_tty.texi: New file.
15581         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
15582
15583 2010-03-21  Bruno Haible  <bruno@clisp.org>
15584
15585         pty: Consistent macro naming.
15586         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
15587         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
15588         * modules/pty (configure.ac): Update.
15589
15590 2010-03-21  Bruno Haible  <bruno@clisp.org>
15591
15592         Tests for openpty: Make stricter.
15593         * tests/test-openpty.c (main): Add test of canonical processing and
15594         erase.
15595         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
15596
15597         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
15598         * lib/openpty.c (openpty): New replacement function.
15599         * lib/pty.in.h: Include <termios.h>.
15600         (openpty): Update declaration. Add comments.
15601         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
15602         is not declared, arrange to provide the replacement. Check for _getpty
15603         and posix_openpt.
15604         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
15605         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
15606         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
15607         * modules/pty-tests (test_pty_c___LDADD): New variable.
15608         * doc/glibc-functions/openpty.texi: More supported platforms.
15609
15610 2010-03-21  Bruno Haible  <bruno@clisp.org>
15611
15612         setenv: Tweaks.
15613         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
15614         the test program.
15615         * doc/posix-functions/setenv.texi: Update platforms list.
15616
15617 2010-03-21  Bruno Haible  <bruno@clisp.org>
15618
15619         New module 'unlockpt'.
15620         * lib/unlockpt.c: New file, from glibc with modifications.
15621         * m4/unlockpt.m4: New file.
15622         * modules/unlockpt: New file.
15623         * lib/stdlib.in.h (unlockpt): New declaration.
15624         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
15625         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
15626         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
15627         HAVE_UNLOCKPT.
15628         * doc/posix-functions/unlockpt.texi: Mention the new module.
15629         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
15630         * config/srclist.txt: Add unlockpt.c (commented).
15631
15632 2010-03-21  Jim Meyering  <meyering@redhat.com>
15633
15634         maint.mk: prohibit inclusion of "intprops.h" without use
15635         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
15636
15637 2010-03-21  Bruno Haible  <bruno@clisp.org>
15638
15639         New module 'grantpt'.
15640         * lib/grantpt.c: New file, from glibc with modifications.
15641         * m4/grantpt.m4: New file.
15642         * modules/grantpt: New file.
15643         * lib/stdlib.in.h (grantpt): New declaration.
15644         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
15645         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
15646         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
15647         HAVE_GRANTPT.
15648         * doc/posix-functions/grantpt.texi: Mention the new module.
15649         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
15650         * config/srclist.txt: Add grantpt.c (commented).
15651
15652 2010-03-21  Bruno Haible  <bruno@clisp.org>
15653
15654         New module 'pt_chown'.
15655         * lib/pt_chown.c: New file, from glibc with modifications.
15656         * lib/pty-private.h: New file, from glibc with modifications.
15657         * modules/pt_chown: New file.
15658         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
15659
15660 2010-03-21  Bruno Haible  <bruno@clisp.org>
15661
15662         Tests for module 'ptsname'.
15663         * modules/ptsname-tests: New file.
15664         * tests/test-ptsname.c: New file.
15665
15666         New module 'ptsname'.
15667         * lib/ptsname.c: New file, from glibc with modifications.
15668         * m4/ptsname.m4: New file.
15669         * modules/ptsname: New file.
15670         * lib/stdlib.in.h (ptsname): New declaration.
15671         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
15672         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
15673         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
15674         HAVE_PTSNAME.
15675         * doc/posix-functions/ptsname.texi: Mention the new module.
15676         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
15677         * config/srclist.txt: Add ptsname.c (commented).
15678
15679 2010-03-21  Bruno Haible  <bruno@clisp.org>
15680
15681         Tests for module 'ttyname_r'.
15682         * modules/ttyname_r-tests: New file.
15683         * tests/test-ttyname_r.c: New file.
15684
15685         New module 'ttyname_r'.
15686         * lib/ttyname_r.c: New file.
15687         * m4/ttyname_r.m4: New file.
15688         * modules/ttyname_r: New file.
15689         * lib/unistd.in.h (ttyname_r): New declaration.
15690         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
15691         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
15692         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
15693         HAVE_TTYNAME_R.
15694         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
15695         * doc/posix-functions/ttyname_r.texi: Mention the new module.
15696
15697 2010-03-20  Bruno Haible  <bruno@clisp.org>
15698
15699         signal: Undefine macro definitions in C++ mode.
15700         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
15701         sigfillset): Undefine macro definitions from the system header in C++
15702         mode.
15703         Reported by John W. Eaton <jwe@gnu.org>.
15704
15705 2010-03-20  Bruno Haible  <bruno@clisp.org>
15706
15707         Ensure no #include statements inside extern "C" { ... }.
15708         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
15709         contain #include statements.
15710         * lib/time.in.h: Likewise.
15711
15712 2010-03-20  Bruno Haible  <bruno@clisp.org>
15713
15714         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
15715         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
15716         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
15717         Reported by John W. Eaton <jwe@gnu.org>.
15718
15719 2010-03-20  Bruno Haible  <bruno@clisp.org>
15720
15721         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
15722         Reported by Jim Meyering.
15723
15724 2010-03-20  Bruno Haible  <bruno@clisp.org>
15725
15726         pipe: Set errno upon failure.
15727         * lib/pipe.h: Specify that when -1 is returned, errno is set.
15728         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
15729         errno value in error message.
15730
15731 2010-03-20  Bruno Haible  <bruno@clisp.org>
15732             Jim Meyering  <meyering@redhat.com>
15733
15734         lchown: Avoid "unused variable" warning.
15735         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
15736
15737 2010-03-20  Bruno Haible  <bruno@clisp.org>
15738
15739         Work around unlink() bug on MacOS X 10.5.6.
15740         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
15741         attempting to unlink a parent directory.
15742         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
15743         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
15744         activate for the replacement function.
15745         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
15746
15747 2010-03-20  Bruno Haible  <bruno@clisp.org>
15748
15749         Fix link errors on Solaris 8.
15750         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
15751         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
15752
15753 2010-03-19  Jim Meyering  <meyering@redhat.com>
15754
15755         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
15756         The _LIBC implementation of build_range_exp correctly honors the
15757         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
15758         However, the non-_LIBC implementation would ignore that syntax-bit
15759         flag and return REG_ERANGE unconditionally.
15760         This change makes it honor that flag.
15761         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
15762         Make two pointer parameters "const".
15763         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
15764         (parse_bracket_exp): Update caller.
15765
15766         regex.m4: correct the reversed range endpoint ([b-a]) test
15767         * m4/regex.m4: When requiring that [b-a] evoke failure,
15768         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
15769         test pass once again for x86-based systems.
15770
15771 2010-03-19  Bruno Haible  <bruno@clisp.org>
15772
15773         scandir: Fix link error on Solaris 8.
15774         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
15775         macros.
15776
15777 2010-03-19  Bruno Haible  <bruno@clisp.org>
15778
15779         getusershell: Fix documentation.
15780         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
15781         module.
15782         * doc/glibc-functions/setusershell.texi: Likewise.
15783
15784         getusershell: Provide declaration, missing on Solaris 9.
15785         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
15786         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
15787         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
15788         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
15789         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15790         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
15791         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
15792         HAVE_GETUSERSHELL.
15793         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
15794
15795 2010-03-19  Bruno Haible  <bruno@clisp.org>
15796
15797         wctype: Provide iswblank function.
15798         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
15799         exists and is fine.
15800         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
15801         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
15802         * tests/test-wctype.c (main): Re-enable the iswblank tests.
15803         * doc/posix-functions/iswblank.texi: Update.
15804
15805 2010-03-19  Bruno Haible  <bruno@clisp.org>
15806
15807         Tests of module 'pty' in C++ mode.
15808         * modules/pty-tests: New file.
15809         * tests/test-pty-c++.cc: New file.
15810         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
15811
15812 2010-03-19  Eric Blake  <eblake@redhat.com>
15813
15814         logb: fix documentation
15815         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
15816         1.5 declaration bug.
15817
15818         forkpty, openpty: prefer glibc's const-safe prototype
15819         * lib/forkpty.c (rpl_forkpty): New file.
15820         * lib/openpty.c (rpl_openpty): Likewise.
15821         * modules/forkpty (Files): Distribute it.
15822         * modules/openpty (Files): Likewise.
15823         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
15824         check...
15825         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
15826         replacement for for non-const BSD signature.
15827         * modules/pty (Makefile.am): Substitute witnesses.
15828         * lib/pty.in.h (forkpty, openpty): Declare replacements.
15829         * tests/test-forkpty.c: Update signature check.
15830         * tests/test-openpty.c: Likewise.
15831         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
15832         * doc/glibc-functions/openpty.texi (openpty): Likewise.
15833
15834         forkpty, openpty: split functions into new modules
15835         * modules/pty (Makefile.am): Substitute new witnesses.
15836         (Libraries): Move library detection...
15837         * modules/forkpty: ...into new module.
15838         * modules/openpty: Another new module.
15839         * modules/pty-tests: Rename and split...
15840         * modules/forkpty-tests: ...to this...
15841         * modules/openpty-tests: ...and this.
15842         * tests/test-pty.c: Rename and split...
15843         * tests/test-forkpty.c: ...to this...
15844         * tests/test-openpty.c: ...and this.
15845         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
15846         (gl_PTY): Split library searching...
15847         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
15848         (gl_FORKPTY, gl_OPENPTY): New macros.
15849         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
15850         * NEWS: Mention the split.
15851         * MODULES.html.sh (Misc): Document the modules.
15852         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
15853         * doc/glibc-functions/openpty.texi (openpty): Likewise.
15854
15855         pty: improve replacement header
15856         * lib/pty.in.h: New file.
15857         * modules/pty (Files): Ship it.
15858         (Makefile.am): Always build replacement.
15859         * m4/pty.m4: Rename...
15860         * m4/pty_h.m4: ...to this.
15861         (gl_PTY): Modernize setting of witness macros; update check of
15862         forkpty to take proper advantage of cache.
15863         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
15864
15865         getopt: avoid compiler warning
15866         * lib/getopt.c (attribute_hidden): Remove unused macro.
15867
15868 2010-03-18  Bruno Haible  <bruno@clisp.org>
15869
15870         Fix link errors on Solaris 8.
15871         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
15872         * modules/search-tests (test_search_c___LDADD): Likewise.
15873         * modules/signal-tests (test_signal_c___LDADD): Likewise.
15874         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
15875         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
15876         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
15877         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
15878         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
15879         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
15880
15881 2010-03-18  Bruno Haible  <bruno@clisp.org>
15882
15883         Fix bug introduced on 2010-03-14.
15884         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
15885         (gl_SPAWN_H): Require it.
15886         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
15887         Reported by Simon Josefsson.
15888
15889 2010-03-18  Bruno Haible  <bruno@clisp.org>
15890
15891         Fix typo introduced on 2009-12-31.
15892         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
15893         posix_spawn_file_actions_adddup2.
15894
15895 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
15896         and Eric Blake  <eblake@redhat.com>
15897
15898         test-vc-list-files-git: make more robust
15899         * tests/test-vc-list-files-git.sh: Unset problematic environment
15900         variables.  Chain commands together.
15901
15902 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
15903
15904         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
15905         `AC_CHECK_DECL' invocation.
15906
15907 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
15908
15909         * lib/inttostr.c (inttostr): Make sure the invocation of verify
15910         appears before executable statements. Suggested by Petr Sumbera
15911         <Petr.Sumbera@Sun.COM>.
15912
15913 2010-03-14  Bruno Haible  <bruno@clisp.org>
15914
15915         * tests/test-flock.c (test_exclusive): Comment out a test that causes
15916         portability problems. Instead use a simpler test.
15917         (main): Check that invalid arguments are rejected only on Linux.
15918
15919 2010-03-14  Bruno Haible  <bruno@clisp.org>
15920
15921         Fix bug introduced on 2009-12-31.
15922         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
15923         gl_PREREQ_SYS_H_WINSOCK2 always.
15924         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
15925         SYS_SOCKET_H variable.
15926         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
15927         Update comments.
15928         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
15929         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
15930         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15931         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15932         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
15933
15934 2010-03-14  Bruno Haible  <bruno@clisp.org>
15935
15936         Fix values returned by sinl, cosl.
15937         * lib/trigl.h: Add specification comments.
15938         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
15939         that combines the values from the precomputed table with the values of
15940         the Chebyshev polynomials.
15941
15942 2010-03-14  Bruno Haible  <bruno@clisp.org>
15943
15944         Fix compilation error when modules 'posix_spawn[p]' are not used.
15945         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
15946         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
15947
15948 2010-03-14  Bruno Haible  <bruno@clisp.org>
15949
15950         Fix compilation error on mingw when module 'time_r' is not used.
15951         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
15952         is 1.
15953         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
15954         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
15955         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
15956         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
15957
15958 2010-03-14  Bruno Haible  <bruno@clisp.org>
15959
15960         Fix compilation error with Sun C.
15961         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
15962         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
15963         instead of GCC specific ULONG_LONG_MAX.
15964         * lib/xstrtoll.c: Likewise.
15965         * lib/xstrtoull.c: Likewise.
15966
15967 2010-03-13  Bruno Haible  <bruno@clisp.org>
15968
15969         Allow the user to disable C++ code and tests.
15970         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
15971         (gl_PROG_ANSI_CXX): Require it.
15972
15973 2010-03-13  Bruno Haible  <bruno@clisp.org>
15974
15975         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
15976         cases.
15977
15978 2010-03-13  Bruno Haible  <bruno@clisp.org>
15979
15980         Test that gnulib does not break the standard C++ headers.
15981         * tests/test-locale-c++2.cc: New file.
15982         * modules/locale-tests (Files): Add it.
15983         (Makefile.am): Compile it for test-locale-c++.
15984         * tests/test-math-c++2.cc: New file.
15985         * modules/math-tests (Files): Add it.
15986         (Makefile.am): Compile it for test-math-c++.
15987         * tests/test-signal-c++2.cc: New file.
15988         * modules/signal-tests (Files): Add it.
15989         (Makefile.am): Compile it for test-signal-c++.
15990         * tests/test-stdio-c++2.cc: New file.
15991         * modules/stdio-tests (Files): Add it.
15992         (Makefile.am): Compile it for test-stdio-c++.
15993         * tests/test-stdlib-c++2.cc: New file.
15994         * modules/stdlib-tests (Files): Add it.
15995         (Makefile.am): Compile it for test-stdlib-c++.
15996         * tests/test-string-c++2.cc: New file.
15997         * modules/string-tests (Files): Add it.
15998         (Makefile.am): Compile it for test-string-c++.
15999         * tests/test-time-c++2.cc: New file.
16000         * modules/time-tests (Files): Add it.
16001         (Makefile.am): Compile it for test-time-c++.
16002         Reported by John W. Eaton <jwe@gnu.org>.
16003
16004 2010-03-13  Bruno Haible  <bruno@clisp.org>
16005
16006         * gnulib-tool (func_usage): Clarify which options are available for
16007         --create-testdir and --create-megatestdir.
16008
16009 2010-03-13  Bruno Haible  <bruno@clisp.org>
16010
16011         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
16012         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
16013         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
16014         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
16015         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
16016         when appropriate.
16017         Reported by Jim Meyering.
16018
16019 2010-03-12  Simon Josefsson  <simon@josefsson.org>
16020
16021         * gnulib-tool (func_import): Explain origin of code.
16022
16023 2010-03-12  Bruno Haible  <bruno@clisp.org>
16024
16025         Fix problem with automake's definition of CXXLINK.
16026         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
16027         Reported by Simon Josefsson and Ludovic Courtès.
16028
16029 2010-03-12  Bruno Haible  <bruno@clisp.org>
16030
16031         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
16032         stable releases.
16033
16034 2010-03-11  Bruno Haible  <bruno@clisp.org>
16035
16036         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
16037         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
16038         whether the system provides one variant or multiple variants of the
16039         function.
16040         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
16041         C++ compilers.
16042         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
16043         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
16044         Reported by Jim Meyering.
16045
16046 2010-03-09  Simon Josefsson  <simon@josefsson.org>
16047
16048         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
16049
16050 2010-03-08  Bruno Haible  <bruno@clisp.org>
16051
16052         gnulib-tool: Add support for --libtool in --create-testdir.
16053         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
16054         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
16055
16056 2010-03-08  Eric Blake  <eblake@redhat.com>
16057
16058         gnulib-tool.texi: mention possibility of git submodule
16059         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
16060         submodules.
16061         * doc/.gitignore: Ignore another generated file.
16062
16063 2010-03-08  Karl Berry  <karl@gnu.org>
16064
16065         * doc/gnulib-tool.texi (VCS Issues): Mention third option
16066         of committing gnulib files while skipping others.
16067
16068 2010-03-07  Bruno Haible  <bruno@clisp.org>
16069
16070         Tests of module 'wctype' in C++ mode.
16071         * tests/test-wctype-c++.cc: New file.
16072         * modules/wctype-tests (Files): Add it and tests/signature.h.
16073         (Depends-on): Add ansi-c++-opt.
16074         (Makefile.am): Arrange to compile and run test-wctype-c++.
16075
16076         Tests of module 'wchar' in C++ mode.
16077         * tests/test-wchar-c++.cc: New file.
16078         * modules/wchar-tests (Files): Add it and tests/signature.h.
16079         (Depends-on): Add ansi-c++-opt.
16080         (Makefile.am): Arrange to compile and run test-wchar-c++.
16081         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
16082         gl_MODULE_INDICATOR.
16083
16084         Tests of module 'unistd' in C++ mode.
16085         * tests/test-unistd-c++.cc: New file.
16086         * modules/unistd-tests (Files): Add it and tests/signature.h.
16087         (Depends-on): Add ansi-c++-opt.
16088         (Makefile.am): Arrange to compile and run test-unistd-c++.
16089         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
16090         gl_MODULE_INDICATOR.
16091
16092         Tests of module 'time' in C++ mode.
16093         * tests/test-time-c++.cc: New file.
16094         * modules/time-tests (Files): Add it and tests/signature.h.
16095         (Depends-on): Add ansi-c++-opt.
16096         (Makefile.am): Arrange to compile and run test-time-c++.
16097         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16098
16099         Tests of module 'sys_time' in C++ mode.
16100         * tests/test-sys_time-c++.cc: New file.
16101         * modules/sys_time-tests (Files): Add it and tests/signature.h.
16102         (Depends-on): Add ansi-c++-opt.
16103         (Makefile.am): Arrange to compile and run test-sys_time-c++.
16104         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
16105         gl_MODULE_INDICATOR.
16106
16107         Tests of module 'sys_stat' in C++ mode.
16108         * tests/test-sys_stat-c++.cc: New file.
16109         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
16110         (Depends-on): Add ansi-c++-opt.
16111         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
16112         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
16113         gl_MODULE_INDICATOR.
16114
16115         Tests of module 'sys_socket' in C++ mode.
16116         * tests/test-sys_socket-c++.cc: New file.
16117         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
16118         (Depends-on): Add ansi-c++-opt.
16119         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
16120         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
16121         gl_MODULE_INDICATOR.
16122
16123         Tests of module 'sys_select' in C++ mode.
16124         * tests/test-sys_select-c++.cc: New file.
16125         * modules/sys_select-tests (Files): Add it and tests/signature.h.
16126         (Depends-on): Add ansi-c++-opt.
16127         (Makefile.am): Arrange to compile and run test-sys_select-c++.
16128         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
16129         gl_MODULE_INDICATOR.
16130
16131         Tests of module 'sys_ioctl' in C++ mode.
16132         * tests/test-sys_ioctl-c++.cc: New file.
16133         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
16134         (Depends-on): Add ansi-c++-opt.
16135         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
16136         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
16137         gl_MODULE_INDICATOR.
16138
16139         Tests of module 'string' in C++ mode.
16140         * tests/test-string-c++.cc: New file.
16141         * modules/string-tests (Files): Add it and tests/signature.h.
16142         (Depends-on): Add ansi-c++-opt.
16143         (Makefile.am): Arrange to compile and run test-string-c++.
16144         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
16145         gl_MODULE_INDICATOR.
16146
16147         Tests of module 'stdlib' in C++ mode.
16148         * tests/test-stdlib-c++.cc: New file.
16149         * modules/stdlib-tests (Files): Add it and tests/signature.h.
16150         (Depends-on): Add ansi-c++-opt.
16151         (Makefile.am): Arrange to compile and run test-stdlib-c++.
16152         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
16153         gl_MODULE_INDICATOR.
16154
16155         Tests of module 'stdio' in C++ mode.
16156         * tests/test-stdio-c++.cc: New file.
16157         * modules/stdio-tests (Files): Add it and tests/signature.h.
16158         (Depends-on): Add ansi-c++-opt.
16159         (Makefile.am): Arrange to compile and run test-stdio-c++.
16160         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
16161         gl_MODULE_INDICATOR.
16162
16163         Tests of module 'spawn' in C++ mode.
16164         * tests/test-spawn-c++.cc: New file.
16165         * modules/spawn-tests (Files): Add it and tests/signature.h.
16166         (Depends-on): Add ansi-c++-opt.
16167         (Makefile.am): Arrange to compile and run test-spawn-c++.
16168         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
16169         gl_MODULE_INDICATOR.
16170
16171         Tests of module 'signal' in C++ mode.
16172         * tests/test-signal-c++.cc: New file.
16173         * modules/signal-tests (Files): Add it and tests/signature.h.
16174         (Depends-on): Add ansi-c++-opt.
16175         (Makefile.am): Arrange to compile and run test-signal-c++.
16176         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
16177         gl_MODULE_INDICATOR.
16178
16179         Tests of module 'search' in C++ mode.
16180         * tests/test-search-c++.cc: New file.
16181         * modules/search-tests (Files): Add it and tests/signature.h.
16182         (Depends-on): Add ansi-c++-opt.
16183         (Makefile.am): Arrange to compile and run test-search-c++.
16184         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
16185         gl_MODULE_INDICATOR.
16186
16187         Tests of module 'math' in C++ mode.
16188         * tests/test-math-c++.cc: New file.
16189         * modules/math-tests (Files): Add it and tests/signature.h.
16190         (Depends-on): Add ansi-c++-opt.
16191         (Makefile.am): Arrange to compile and run test-math-c++.
16192         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16193
16194         Tests of module 'locale' in C++ mode.
16195         * tests/test-locale-c++.cc: New file.
16196         * modules/locale-tests (Files): Add it and tests/signature.h.
16197         (Depends-on): Add ansi-c++-opt.
16198         (Makefile.am): Arrange to compile and run test-locale-c++.
16199         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
16200         gl_MODULE_INDICATOR.
16201
16202         Tests of module 'langinfo' in C++ mode.
16203         * tests/test-langinfo-c++.cc: New file.
16204         * modules/langinfo-tests (Files): Add it and tests/signature.h.
16205         (Depends-on): Add ansi-c++-opt.
16206         (Makefile.am): Arrange to compile and run test-langinfo-c++.
16207         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
16208         gl_MODULE_INDICATOR.
16209
16210         Tests of module 'iconv-h' in C++ mode.
16211         * tests/test-iconv-h-c++.cc: New file.
16212         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
16213         (Depends-on): Add ansi-c++-opt.
16214         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
16215
16216         Tests of module 'glob' in C++ mode.
16217         * tests/test-glob-c++.cc: New file.
16218         * modules/glob-tests (Files): Add it.
16219         (Depends-on): Add ansi-c++-opt.
16220         (Makefile.am): Arrange to compile and run test-glob-c++.
16221
16222         Tests of module 'fcntl-h' in C++ mode.
16223         * tests/test-fcntl-h-c++.cc: New file.
16224         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
16225         (Depends-on): Add ansi-c++-opt.
16226         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
16227         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
16228         gl_MODULE_INDICATOR.
16229
16230         Tests of module 'dirent' in C++ mode.
16231         * tests/test-dirent-c++.cc: New file.
16232         * modules/dirent-tests (Files): Add it and tests/signature.h.
16233         (Depends-on): Add ansi-c++-opt.
16234         (Makefile.am): Arrange to compile and run test-dirent-c++.
16235         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
16236         gl_MODULE_INDICATOR.
16237
16238         New module 'ansi-c++-opt'.
16239         * modules/ansi-c++-opt: New file.
16240         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
16241
16242         Document C++ namespace mode.
16243         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
16244
16245         wctype: Avoid #define replacements in C++ mode.
16246         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
16247         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
16248         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
16249         In C++, define a namespaced alias symbol.
16250         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
16251         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
16252         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
16253         rule.
16254
16255         wchar: Avoid #define replacements in C++ mode.
16256         * lib/wchar.in.h: Include c++defs.h.
16257         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
16258         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
16259         symbol.
16260         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
16261         * modules/wchar (Depends-on): Add c++defs.
16262         (Makefile.am): Update wchar.h rule.
16263
16264         unistd: Avoid #define replacements in C++ mode.
16265         * lib/unistd.in.h: Include c++defs.h.
16266         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
16267         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
16268         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
16269         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
16270         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
16271         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
16272         symbol.
16273         (environ): Update.
16274         * modules/unistd (Depends-on): Add c++defs.
16275         (Makefile.am): Update unistd.h rule.
16276
16277         time: Avoid #define replacements in C++ mode.
16278         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
16279         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
16280         define a namespaced alias symbol.
16281         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
16282         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
16283         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
16284         * modules/time (Depends-on): Add c++defs, warn-on-use.
16285         (Makefile.am): Update time.h rule.
16286         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
16287         * modules/nanosleep (configure.ac): Likewise.
16288         * modules/strptime (configure.ac): Likewise.
16289         * modules/timegm (configure.ac): Likewise.
16290
16291         sys_time: Avoid #define replacements in C++ mode.
16292         * lib/sys_time.in.h: Include c++defs.h.
16293         (gettimeofday): In C++, define a namespaced alias symbol.
16294         * modules/sys_time (Depends-on): Add c++defs.
16295         (Makefile.am): Update sys/time.h rule.
16296
16297         sys_stat: Avoid #define replacements in C++ mode.
16298         * lib/sys_stat.in.h: Include c++defs.h.
16299         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
16300         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
16301         namespaced alias symbol.
16302         In C++, define a namespaced alias symbol.
16303         * modules/sys_stat (Depends-on): Add c++defs.
16304         (Makefile.am): Update sys/stat.h rule.
16305
16306         sys_socket: Avoid #define replacements in C++ mode.
16307         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
16308         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
16309         definitions also when the system has a <sys/socket.h>.
16310         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
16311         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
16312         In C++, define a namespaced alias symbol.
16313         * modules/sys_socket (Depends-on): Add c++defs.
16314         (Makefile.am): Update sys/socket.h rule.
16315
16316         sys_select: Avoid #define replacements in C++ mode.
16317         * lib/sys_select.in.h: Include c++defs.h. Enable the function
16318         definitions also when the system has a <sys/select.h>.
16319         (select): In C++, define a namespaced alias symbol.
16320         * modules/sys_select (Depends-on): Add c++defs.
16321         (Makefile.am): Update sys/select.h rule.
16322
16323         sys_ioctl: Avoid #define replacements in C++ mode.
16324         * lib/sys_ioctl.in.h: Include c++defs.h.
16325         (ioctl): In C++, define a namespaced alias symbol.
16326         * modules/sys_ioctl (Depends-on): Add c++defs.
16327         (Makefile.am): Update sys/ioctl.h rule.
16328
16329         string: Avoid #define replacements in C++ mode.
16330         * lib/string.in.h: Include c++defs.h.
16331         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
16332         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
16333         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
16334         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
16335         strsignal, strverscmp): In C++, define a namespaced alias symbol.
16336         * modules/string (Depends-on): Add c++defs.
16337         (Makefile.am): Update string.h rule.
16338
16339         stdlib: Avoid #define replacements in C++ mode.
16340         * lib/stdlib.in.h: Include c++defs.h.
16341         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
16342         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
16343         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
16344         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
16345         symbol.
16346         * modules/stdlib (Depends-on): Add c++defs.
16347         (Makefile.am): Update stdlib.h rule.
16348
16349         stdio: Avoid #define replacements in C++ mode.
16350         * lib/stdio.in.h: Include c++defs.h.
16351         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
16352         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
16353         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
16354         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
16355         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
16356         namespaced alias symbol.
16357         * modules/stdio (Depends-on): Add c++defs.
16358         (Makefile.am): Update stdio.h rule.
16359
16360         spawn: Avoid #define replacements in C++ mode.
16361         * lib/spawn.in.h: Include c++defs.h.
16362         (posix_spawn, posix_spawnp, posix_spawnattr_init,
16363         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
16364         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
16365         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
16366         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
16367         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
16368         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
16369         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
16370         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
16371         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
16372         In C++, define a namespaced alias symbol.
16373         * modules/spawn (Depends-on): Add c++defs.
16374         (Makefile.am): Update spawn.h rule.
16375
16376         signal: Avoid #define replacements in C++ mode.
16377         * lib/signal.in.h: Include c++defs.h.
16378         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
16379         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
16380         namespaced alias symbol.
16381         * modules/signal (Depends-on): Add c++defs.
16382         (Makefile.am): Update signal.h rule.
16383
16384         search: Avoid #define replacements in C++ mode.
16385         * lib/search.in.h: Include c++defs.h.
16386         (_gl_search_compar_fn, _gl_search_action_fn): New types.
16387         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
16388         symbol.
16389         * modules/search (Depends-on): Add c++defs.
16390         (Makefile.am): Update search.h rule.
16391
16392         math: Avoid #define replacements in C++ mode.
16393         * lib/math.in.h: Include c++defs.h.
16394         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
16395         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
16396         trunc, truncl): In C++, define a namespaced alias symbol.
16397         * modules/math (Depends-on): Add c++defs.
16398         (Makefile.am): Update math.h rule.
16399
16400         locale: Avoid #define replacements in C++ mode.
16401         * lib/locale.in.h: Include c++defs.h.
16402         (duplocale): In C++, define a namespaced alias symbol.
16403         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
16404         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
16405         * modules/locale (Depends-on): Add c++defs.
16406         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
16407
16408         langinfo: Avoid #define replacements in C++ mode.
16409         * lib/langinfo.in.h: Include c++defs.h.
16410         (nl_langinfo): In C++, define a namespaced alias symbol.
16411         * modules/langinfo (Depends-on): Add c++defs.
16412         (Makefile.am): Update langinfo.h rule.
16413
16414         iconv-h: Avoid #define replacements in C++ mode.
16415         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
16416         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
16417         symbol.
16418         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
16419         whenever iconv is present.
16420         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
16421         (Makefile.am): Update iconv.h rule.
16422
16423         glob: Avoid #define replacements in C++ mode.
16424         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
16425         (_gl_glob_errfunc_fn): New type.
16426         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
16427         symbol.
16428         * modules/glob (Depends-on): Add c++defs, warn-on-use.
16429         (Makefile.am): Update glob.h rule.
16430
16431         fcntl-h: Avoid #define replacements in C++ mode.
16432         * lib/fcntl.in.h: Include c++defs.h.
16433         (fcntl, open, openat): In C++, define a namespaced alias symbol.
16434         * modules/fcntl-h (Depends-on): Add c++defs.
16435         (Makefile.am): Update fcntl.h rule.
16436
16437         dirent: Avoid #define replacements in C++ mode.
16438         * lib/dirent.in.h: Include c++defs.h.
16439         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
16440         namespaced alias symbol.
16441         (dirfd): Update declaration.
16442         * modules/dirent (Depends-on): Add c++defs.
16443         (Makefile.am): Update dirent.h rule.
16444
16445         ctype: Make it usable in C++ code.
16446         * lib/ctype.in.h: Include c++defs.h.
16447         (isblank): Declare as extern "C".
16448         * modules/ctype (Depends-on): Add c++defs.
16449         (Makefile.am): Update ctype.h rule.
16450
16451         New module 'c++defs'.
16452         * modules/c++defs: New file.
16453         * build-aux/c++defs.h: New file.
16454         Reported by John W. Eaton <jwe@gnu.org>.
16455
16456 2010-03-07  Bruno Haible  <bruno@clisp.org>
16457
16458         logb: Provide missing declaration for Cygwin.
16459         * lib/math.in.h (logb): New declaration.
16460         * m4/logb.m4: New file.
16461         * modules/logb (Files): Add m4/logb.m4.
16462         (Depends-on): Add math.
16463         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
16464         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
16465         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
16466         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
16467         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
16468
16469 2010-03-07  Bruno Haible  <bruno@clisp.org>
16470
16471         Fix test-cond link error.
16472         * tests/test-cond.c: Include <stdio.h>.
16473
16474 2010-03-07  Bruno Haible  <bruno@clisp.org>
16475
16476         Fix test-dirent-safer link error.
16477         * modules/dirent-safer-tests (Makefile.am): Define
16478         test_dirent_safer_LDADD.
16479
16480 2010-03-07  Bruno Haible  <bruno@clisp.org>
16481
16482         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
16483         among default module list.
16484
16485 2010-03-07  Bruno Haible  <bruno@clisp.org>
16486
16487         Fix link error on platforms with GNU libiconv.
16488         * modules/unistr/u8-strcoll-tests (Makefile): Define
16489         test_u8_strcoll_LDADD.
16490         * modules/unistr/u16-strcoll-tests (Makefile): Define
16491         test_u16_strcoll_LDADD.
16492         * modules/unistr/u32-strcoll-tests (Makefile): Define
16493         test_u32_strcoll_LDADD.
16494
16495 2010-03-07  Bruno Haible  <bruno@clisp.org>
16496
16497         Use POSIX declarations for socket functions.
16498         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
16499         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
16500         rpl_sendto): Change declaration to match POSIX.
16501         * lib/connect.c (rpl_connect): Likewise.
16502         * lib/accept.c (rpl_accept): Likewise.
16503         * lib/bind.c (rpl_bind): Likewise.
16504         * lib/getpeername.c (rpl_getpeername): Likewise.
16505         * lib/getsockname.c (rpl_getsockname): Likewise.
16506         * lib/recv.c (rpl_recv): Likewise.
16507         * lib/send.c (rpl_send): Likewise.
16508         * lib/recvfrom.c (rpl_recvfrom): Likewise.
16509         * lib/sendto.c (rpl_sendto): Likewise.
16510
16511 2010-03-06  Bruno Haible  <bruno@clisp.org>
16512
16513         Clarify access, euidaccess, faccessat.
16514         * doc/posix-functions/faccessat.texi: Mention security problem under
16515         "Other problems", not "Portability problems".
16516         * doc/posix-functions/access.texi: Likewise. Mention a related security
16517         problem.
16518         * doc/glibc-functions/euidaccess.texi: Mention security problems.
16519         * lib/euidaccess.c: Add comments about platforms.
16520         * lib/unistd.in.h (access, euidaccess): Add warnings.
16521
16522 2010-03-07  Bruno Haible  <bruno@clisp.org>
16523
16524         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
16525         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
16526         (POSIX_SPAWN_SETSCHEDULER): Likewise.
16527         (POSIX_SPAWN_USEVFORK): Define in a way that works when
16528         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
16529         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
16530         declare when POSIX_SPAWN_SETSCHEDULER is zero.
16531         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
16532         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
16533         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
16534         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
16535         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
16536         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
16537         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
16538         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
16539         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
16540         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
16541         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
16542         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
16543         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
16544         Likewise.
16545         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
16546         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
16547         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
16548         Likewise.
16549         * tests/test-spawn.c (main): Make it work when
16550         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
16551
16552 2010-03-07  Bruno Haible  <bruno@clisp.org>
16553
16554         Fix incorrect Makefile.am generation in German locale.
16555         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16556         Execute sed command with character range in C locale.
16557
16558 2010-03-06  Bruno Haible  <bruno@clisp.org>
16559
16560         Tests for module 'iconv-h'.
16561         * modules/iconv-h-tests: New file.
16562         * tests/test-iconv-h.c: New file.
16563
16564         New module 'iconv-h'.
16565         * modules/iconv-h: New file.
16566         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
16567         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
16568         (configure.ac): Remove gl_ICONV_H.
16569         (Makefile.am): Remove rule for iconv.h.
16570
16571 2010-03-06  Bruno Haible  <bruno@clisp.org>
16572
16573         More consistent naming of *.m4 files.
16574         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
16575         * modules/wctype (Files): Update.
16576
16577         More consistent naming of *.m4 files.
16578         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
16579         * modules/wchar (Files): Update.
16580
16581 2010-03-06  Jim Meyering  <meyering@redhat.com>
16582
16583         euidaccess: relax license to LGPLv2+
16584         * modules/euidaccess (License): Relax to LGPLv2+.
16585
16586 2010-03-06  Bruno Haible  <bruno@clisp.org>
16587
16588         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
16589         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
16590         (Makefile.am): Augment lib_SOURCES instead.
16591
16592 2010-03-04  Jim Meyering  <meyering@redhat.com>
16593
16594         utime: remove obsolete module
16595         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
16596         unnecessary for years, and has been marked as obsolete for 10 months.
16597         * modules/utime: Remove file.
16598         * lib/utime.c: Remove file.
16599         * m4/utime.m4: Remove file.
16600         * m4/utimes-null.m4: Remove file.
16601         * doc/posix-functions/utime.texi (utime): Remove reference to
16602         the module.  Move the sole "fixed by gnulib" item into the
16603         "problems not fixed by Gnulib" list.
16604         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
16605
16606 2010-03-05  Simon Josefsson  <simon@josefsson.org>
16607
16608         * modules/exit (License): Relax license to LGPLv2+.
16609         (Status): Mark as obsolete.
16610         * NEWS: Mention deprecated 'exit' module.
16611         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
16612         of now obsolete 'exit'.
16613
16614 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16615
16616         fts-lgpl: remove unused module
16617         * modules/fts-lgpl: Remove.
16618         * MODULES.html.sh (func_all_modules): Adjust.
16619         * check-module (find_included_lib_files): Adjust.
16620         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
16621
16622 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
16623
16624         copy-acl: enhance Solaris ACL error handling
16625         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
16626         * lib/set-mode-acl.c (qset_acl): Likewise.
16627
16628 2010-03-02  Bruno Haible  <bruno@clisp.org>
16629
16630         spawn: Don't override the system defined values on FreeBSD 8.
16631         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
16632         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
16633         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
16634         if HAVE_POSIX_SPAWN is 1.
16635         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
16636
16637 2010-03-01  Bruno Haible  <bruno@clisp.org>
16638
16639         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
16640         regarding Automake.
16641
16642 2010-02-25  Bruno Haible  <bruno@clisp.org>
16643
16644         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
16645         * gnulib-tool: Define 'echo' as a function only before the ksh alias
16646         setting, not afterwards.
16647         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
16648
16649 2010-02-24  Eric Blake  <eblake@redhat.com>
16650
16651         bootstrap, git-version-gen: use timestamp
16652         * build-aux/git-version-gen (scriptversion): Force UTC.
16653         * build-aux/bootstrap (scriptversion): New variable.
16654
16655         bootstrap: allow older git
16656         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
16657         older than 1.6.4.  Requested by the libvirt project.
16658
16659 2010-02-23  Eric Blake  <eblake@redhat.com>
16660
16661         warn-on-use: work with old autoconf
16662         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
16663         AS_VAR semantics of autoconf 2.60.
16664         Reported by Bruno Haible.
16665
16666         bootstrap: improve some comments
16667         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
16668         clarification comments.
16669
16670         gettimeofday: provide correct function
16671         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
16672         when replacement is declared, otherwise provide gettimeofday.
16673         Reported by Michael Goffioul.
16674
16675 2010-02-23  Jim Meyering  <meyering@redhat.com>
16676
16677         lib-ignore: relax license to "unlimited", not LGPLv2+
16678         * modules/lib-ignore (License): Relax to "unlimited".
16679
16680 2010-02-23  Jim Meyering  <meyering@redhat.com>
16681
16682         lib-ignore: relax license to LGPLv2+
16683         * modules/lib-ignore (License): Relax to LGPLv2+.
16684
16685 2010-02-22  Eric Blake  <eblake@redhat.com>
16686
16687         lseek: avoid bash 3.2 broken pipe bug
16688         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
16689         warning from bash 3.2.
16690         Reported by Ben Pfaff, with analysis from Bruno Haible.
16691
16692         bootstrap: support non-FSF copyright holder
16693         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
16694         bootstrap.conf override of COPYRIGHT_HOLDER.
16695         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
16696
16697         bootstrap: interoperate with gettext 0.14.1
16698         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
16699
16700         bootstrap: allow for alternate submodule location
16701         * build-aux/bootstrap (gnulib_path): New variable; use instead of
16702         hardcoding submodule location.
16703         (gnulib_mk): Allow direct use of Makefile.am.
16704
16705         bootstrap: use GNULIB_SRCDIR to reduce disk usage
16706         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
16707         rather than reconfiguring where the submodule points.
16708
16709         gettimeofday: restore support for platforms that lack function
16710         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
16711         replacement if function is missing.
16712         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
16713         * modules/sys_time (Makefile.am): Substitute it.
16714         * lib/sys_time.in.h (gettimeofday): Check it.
16715         Reported by Michael Goffioul.
16716
16717 2010-02-21  Bruno Haible  <bruno@clisp.org>
16718
16719         * lib/stdio.in.h (obstack_printf): Fix typo.
16720
16721 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
16722
16723         vc-list-files: use bzr ls's -R option
16724         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
16725         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
16726
16727 2010-02-21  Jim Meyering  <meyering@redhat.com>
16728
16729         init.sh: fix EXEEXT shims to work also for names like test-prog
16730         * tests/init.sh: Re-exec a better shell, when needed.
16731         If the current shell lacks support for posix $(...), an init.sh-using
16732         test will now try to find a shell that supports that.  If EXEEXT is
16733         nonempty, we also require support for hyphen-in-alias-name and shell
16734         substitutions like ${var#glob}.  Failure to find such a shell results
16735         in a skipped test.
16736
16737 2010-02-21  Bruno Haible  <bruno@clisp.org>
16738
16739         Really work around around "broken pipe" error message from bash 3.2.
16740         * gnulib-tool (func_reset_sigpipe): Remove function.
16741         (echo): In bash 3.2, define to a function that uses printf.
16742         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
16743
16744 2010-02-20  Bruno Haible  <bruno@clisp.org>
16745
16746         Restore support for automake 1.9.6 with autoconf 2.61.
16747         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
16748         Reported by James Youngman <jay@gnu.org>.
16749
16750 2010-02-20  Bruno Haible  <bruno@clisp.org>
16751
16752         Improve *printf warning condition.
16753         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
16754         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
16755         and the function is overridden due to SIGPIPE emulation.
16756
16757 2010-02-20  Bruno Haible  <bruno@clisp.org>
16758
16759         * lib/stdio.in.h: Tweak comments.
16760
16761 2010-02-19  Bruno Haible  <bruno@clisp.org>
16762
16763         Make it easier to find modules. New gnulib-tool option '--find'.
16764         * gnulib-tool: New option --find.
16765         (func_usage): Document it.
16766         (func_sanitize_modulelist): New function, extracted from
16767         func_all_modules.
16768         (func_all_modules): Invoke it.
16769         * doc/gnulib-tool.texi (Which modules?): New node.
16770
16771 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
16772
16773         * lib/sys_select.in.h: Provide select replacement even if
16774         sys/select.h exists on a system, for Interix.
16775
16776 2010-02-18  Jim Meyering  <meyering@redhat.com>
16777
16778         init.sh: don't use $(...) just yet
16779         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
16780         to accommodate e.g., Solaris' /bin/sh.
16781
16782 2010-02-17  Bruno Haible  <bruno@clisp.org>
16783
16784         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
16785         Reported by Ludovic Courtès <ludo@gnu.org>.
16786
16787 2010-02-16  Simon Josefsson  <simon@josefsson.org>
16788
16789         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
16790         linking with -lintl.
16791
16792 2010-02-17  Simon Josefsson  <simon@josefsson.org>
16793
16794         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
16795         if not provided by the system's netdb.h.  Reported by
16796         ludo@gnu.org (Ludovic Courtès).
16797
16798 2010-02-15  Jim Meyering  <meyering@redhat.com>
16799
16800         init.sh: improve portability and efficiency
16801         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
16802         "dummy" in a for loop.
16803         Use '!', not '^' to select the complement of a character set used
16804         in a "case" statement.
16805         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
16806         Suggestions from Eric Blake.
16807
16808         init.sh: automatically accommodate programs with the .exe suffix
16809         Automatically arrange for an invocation of "prog" to execute the
16810         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
16811         may use the simpler "prog", yet still work when built on a system
16812         that requires specifying the added suffix.
16813         Do this by constructing a function named "prog" that invokes
16814         "prog.exe" for each .exe file in selected directories.
16815         * tests/init.sh (find_exe_basenames_): New function.
16816         (create_exe_shim_functions_): New function.
16817         (path_prepend_): Use it.
16818
16819         maint.mk: mark syntax-check sc_*.m rules as .PHONY
16820         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
16821         "make -t syntax-check" doesn't create a ton of sc_*.m files.
16822
16823 2010-02-14  Jim Meyering  <meyering@redhat.com>
16824
16825         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
16826         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
16827         (sc_prohibit_hash_pjw_without_use): New rule.
16828
16829         maint.mk: allow the default upload destination dir to be overridden
16830         * top/maint.mk (upload_dest_dir_): Define with a default that
16831         preserves the status quo.
16832         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
16833         Reported by Peter Simons.
16834
16835         maint.mk: prohibit inclusion of "hash.h" without_use
16836         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
16837
16838 2010-02-10  Jim Meyering  <meyering@redhat.com>
16839
16840         maint.mk: prohibit inclusion of "ignore-value.h" without_use
16841         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
16842
16843 2010-02-09  Eric Blake  <ebb9@byu.net>
16844         and Bruno Haible  <bruno@clisp.org>
16845
16846         obstack-printf-posix: ensure declaration
16847         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
16848         extracted from gl_FUNC_OBSTACK_PRINTF.
16849         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
16850         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
16851         Likewise.
16852         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
16853         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
16854         0.
16855
16856 2010-02-08  Bruno Haible  <bruno@clisp.org>
16857
16858         gnulib-tool: Fix typo in 2010-02-07 commit.
16859         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
16860         Reported by Eric Blake.
16861
16862 2010-02-07  Bruno Haible  <bruno@clisp.org>
16863
16864         gnulib-tool: Fix up caching patches.
16865         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
16866         option --no-cache. Use associative arrays when supported by the shell.
16867         (sed_comments): New variable.
16868         (modcache): Renamed from do_cache.
16869         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
16870         abbreviate unnecessarily.
16871         (have_associative): New variable.
16872         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
16873         way also for ksh and zsh.
16874         (func_init_sed_convert_to_cache_statements): New function, extracted
16875         from func_cache_lookup_module. Add support for associative arrays.
16876         Don't set the c_MODULE_cached variable here. Ignore all lines before
16877         the first field header. Remove only the final newline, not all trailing
16878         newlines. Support empty fields correctly. Limit the use of 'eval' to
16879         assignments.
16880         (func_get_description, func_get_status, func_get_notice,
16881         func_get_applicability, func_get_filelist, func_get_dependencies,
16882         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
16883         func_get_automake_snippet, func_get_include_directive,
16884         func_get_link_directive, func_get_license, func_get_maintainer):
16885         Update documentation. List the unoptimized code first. Add support for
16886         associative arrays. Limit the use of 'eval' to assignments.
16887         (func_get_applicability): Undo stylistic pessimisations.
16888         (func_get_automake_snippet, func_get_include_directive): Reduce code
16889         duplication.
16890         (func_modules_transitive_closure, func_modules_add_dummy,
16891         func_modules_notice, func_modules_to_filelist, func_add_file,
16892         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
16893         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
16894         func_create_testdir, func_create_megatestdir): Update documentation.
16895
16896 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16897
16898         * gnulib-tool (func_cache_lookup_module): Store the module name
16899         belonging to the cache variable; error out if two different
16900         module names map to the same cache variable name.
16901
16902 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16903
16904         gnulib-tool: Make caching optional.
16905         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
16906         Update matching short versions of --no-changelog.
16907         (func_usage): Update.
16908         (sed_extract_cache_prog): Renamed from ...
16909         (sed_extract_prog): ... this; revert to old extraction script.
16910         (func_get_description, func_get_status)
16911         (func_get_notice, func_get_applicability, func_get_filelist)
16912         (func_get_dependencies, func_get_autoconf_early_snippet)
16913         (func_get_autoconf_snippet, func_get_automake_snippet)
16914         (func_get_include_directive, func_get_link_directive)
16915         (func_get_license, func_get_maintainer): If $do_cache is false,
16916         use old, non-caching extraction scripts.
16917         Suggestion by Bruno Haible.
16918
16919 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16920
16921         gnulib-tool: cache module metainformation.
16922         * gnulib-tool (sed_extract_prog): Match newline before each
16923         header, and rewrite header to a shell variable suffix.
16924         (func_cache_var, func_cache_lookup_module): New functions,
16925         to turn a module name into a cache variable prefix, and to
16926         look up and cache module metainformation.
16927         (func_get_description, func_get_status)
16928         (func_get_notice, func_get_applicability, func_get_filelist)
16929         (func_get_dependencies, func_get_autoconf_early_snippet)
16930         (func_get_autoconf_snippet, func_get_automake_snippet)
16931         (func_get_include_directive, func_get_link_directive)
16932         (func_get_license, func_get_maintainer): Use
16933         func_cache_lookup_module.
16934
16935 2010-02-07  Bruno Haible  <bruno@clisp.org>
16936
16937         fnctl: Fix missing dependency.
16938         * modules/fcntl (Depends-on): Add getdtablesize.
16939         Reported by John W. Eaton <jwe@gnu.org>.
16940
16941 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
16942
16943         Argp: fix recognition of short alias options.
16944
16945         * lib/argp-parse.c (convert_options): Fix improper use of
16946         `|' between character values.
16947         * tests/test-argp.c (group1_option): New alias option
16948         --read (-r).
16949         (group1_parser): Special handling for 'r'.
16950         (test15): New test case.
16951         (test_fun): Add test15.
16952         * tests/test-argp-2.sh: Update expected --help and --usage
16953         outputs.
16954
16955 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
16956
16957         * tests/test-argp.c: Fix indentation.
16958
16959 2010-02-04  Eric Blake  <ebb9@byu.net>
16960
16961         gettimeofday: expose type of second argument
16962         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
16963         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
16964         * tests/test-gettimeofday.c: Use it to silence warning.
16965         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
16966         the issue.
16967
16968 2010-02-03  Jim Meyering  <meyering@redhat.com>
16969
16970         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
16971         * lib/regcomp.c (TYPE_SIGNED): Define.
16972         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
16973
16974         regcomp.c: avoid a new -Wshadow warning
16975         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
16976
16977 2010-02-01  Jim Meyering  <meyering@redhat.com>
16978
16979         removing useless parentheses in cpp #define directives
16980         For motivation, see commit c0221df4, "define STREQ(a,b)
16981         consistently, removing useless parentheses"
16982         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
16983         * lib/mountlist.c (MNT_IGNORE): Likewise.
16984         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
16985
16986 2010-02-01  Eric Blake  <ebb9@byu.net>
16987
16988         sys_time: use link-warning
16989         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
16990         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
16991         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
16992         * modules/sys_time (Depends-on): Add warn-on-use.
16993         (Makefile.am): Always build replacement.
16994         (configure.ac): Update substitutions.
16995         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
16996         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
16997         bother with SYS_TIME_H.
16998         * modules/gettimeofday (configure.ac): Declare indicator.
16999         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
17000         in use.
17001
17002         closein-tests: silence compiler warning
17003         * tests/test-closein.c (main): Ignore fread result.
17004         * modules/closein-tests (Depends-on): Add ignore-value.
17005
17006         tests: silence warning about system return
17007         * tests/test-areadlink-with-size.c (main): Ignore system result.
17008         * tests/test-areadlink.c (main): Likewise.
17009         * tests/test-areadlinkat-with-size.c (main): Likewise.
17010         * tests/test-areadlinkat.c (main): Likewise.
17011         * tests/test-canonicalize-lgpl.c (main): Likewise.
17012         * tests/test-canonicalize.c (main): Likewise.
17013         * tests/test-chown.c (main): Likewise.
17014         * tests/test-fchownat.c (main): Likewise.
17015         * tests/test-fdutimensat.c (main): Likewise.
17016         * tests/test-fstatat.c (main): Likewise.
17017         * tests/test-futimens.c (main): Likewise.
17018         * tests/test-lchown.c (main): Likewise.
17019         * tests/test-link.c (main): Likewise.
17020         * tests/test-linkat.c (main): Likewise.
17021         * tests/test-lstat.c (main): Likewise.
17022         * tests/test-mkdir.c (main): Likewise.
17023         * tests/test-mkdirat.c (main): Likewise.
17024         * tests/test-mkfifo.c (main): Likewise.
17025         * tests/test-mkfifoat.c (main): Likewise.
17026         * tests/test-mknod.c (main): Likewise.
17027         * tests/test-readlink.c (main): Likewise.
17028         * tests/test-remove.c (main): Likewise.
17029         * tests/test-rename.c (main): Likewise.
17030         * tests/test-renameat.c (main): Likewise.
17031         * tests/test-rmdir.c (main): Likewise.
17032         * tests/test-symlink.c (main): Likewise.
17033         * tests/test-symlinkat.c (main): Likewise.
17034         * tests/test-unlink.c (main): Likewise.
17035         * tests/test-unlinkat.c (main): Likewise.
17036         * tests/test-utimens.c (main): Likewise.
17037         * tests/test-utimensat.c (main): Likewise.
17038         * modules/areadlink-tests (Depends-on): Add ignore-value.
17039         * modules/areadlink-with-size-tests (Depends-on): Likewise.
17040         * modules/areadlinkat-tests (Depends-on): Likewise.
17041         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
17042         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
17043         * modules/canonicalize-tests (Depends-on): Likewise.
17044         * modules/chown-tests (Depends-on): Likewise.
17045         * modules/fdutimensat-tests (Depends-on): Likewise.
17046         * modules/futimens-tests (Depends-on): Likewise.
17047         * modules/lchown-tests (Depends-on): Likewise.
17048         * modules/link-tests (Depends-on): Likewise.
17049         * modules/linkat-tests (Depends-on): Likewise.
17050         * modules/lstat-tests (Depends-on): Likewise.
17051         * modules/mkdir-tests (Depends-on): Likewise.
17052         * modules/mkfifo-tests (Depends-on): Likewise.
17053         * modules/mkfifoat-tests (Depends-on): Likewise.
17054         * modules/mknod-tests (Depends-on): Likewise.
17055         * modules/openat-tests (Depends-on): Likewise.
17056         * modules/readlink-tests (Depends-on): Likewise.
17057         * modules/remove-tests (Depends-on): Likewise.
17058         * modules/rename-tests (Depends-on): Likewise.
17059         * modules/renameat-tests (Depends-on): Likewise.
17060         * modules/rmdir-tests (Depends-on): Likewise.
17061         * modules/symlink-tests (Depends-on): Likewise.
17062         * modules/symlinkat-tests (Depends-on): Likewise.
17063         * modules/unlink-tests (Depends-on): Likewise.
17064         * modules/utimens-tests (Depends-on): Likewise.
17065         * modules/utimensat-tests (Depends-on): Likewise.
17066
17067 2010-01-31  Bruno Haible  <bruno@clisp.org>
17068
17069         Perform the same test for many <math.h> functions.
17070         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
17071         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
17072         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
17073         of gl_MATHFUNC.
17074         * modules/acos (configure.ac): Likewise.
17075         * modules/asin (configure.ac): Likewise.
17076         * modules/atan (configure.ac): Likewise.
17077         * modules/atan2 (configure.ac): Likewise.
17078         * modules/cbrt (configure.ac): Likewise.
17079         * modules/copysign (configure.ac): Likewise.
17080         * modules/cos (configure.ac): Likewise.
17081         * modules/cosh (configure.ac): Likewise.
17082         * modules/erf (configure.ac): Likewise.
17083         * modules/erfc (configure.ac): Likewise.
17084         * modules/exp (configure.ac): Likewise.
17085         * modules/fmod (configure.ac): Likewise.
17086         * modules/hypot (configure.ac): Likewise.
17087         * modules/j0 (configure.ac): Likewise.
17088         * modules/j1 (configure.ac): Likewise.
17089         * modules/jn (configure.ac): Likewise.
17090         * modules/lgamma (configure.ac): Likewise.
17091         * modules/log (configure.ac): Likewise.
17092         * modules/log10 (configure.ac): Likewise.
17093         * modules/log1p (configure.ac): Likewise.
17094         * modules/pow (configure.ac): Likewise.
17095         * modules/remainder (configure.ac): Likewise.
17096         * modules/sin (configure.ac): Likewise.
17097         * modules/sinh (configure.ac): Likewise.
17098         * modules/tan (configure.ac): Likewise.
17099         * modules/tanh (configure.ac): Likewise.
17100         * modules/y0 (configure.ac): Likewise.
17101         * modules/y1 (configure.ac): Likewise.
17102         * modules/yn (configure.ac): Likewise.
17103         Suggested by Paolo Bonzini.
17104
17105 2010-01-31  Bruno Haible  <bruno@clisp.org>
17106
17107         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
17108
17109 2010-01-31  Bruno Haible  <bruno@clisp.org>
17110
17111         Work around getdelim() bug on FreeBSD 8.0.
17112         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
17113         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
17114         not work.
17115         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
17116         is 1.
17117         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
17118         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
17119         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
17120         a non-zero size.
17121         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
17122
17123 2010-01-31  Bruno Haible  <bruno@clisp.org>
17124
17125         Work around getline() bug on FreeBSD 8.0.
17126         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
17127         and a non-zero size.
17128         * tests/test-getline.c (main): Likewise.
17129         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
17130         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
17131
17132 2010-01-28  Eric Blake  <ebb9@byu.net>
17133
17134         regex: fix build failure
17135         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
17136         platforms.
17137
17138 2010-01-28  Jim Meyering  <meyering@redhat.com>
17139
17140         regex: do not ignore memory allocation failure
17141         * lib/regex_internal.c (create_cd_newstate): Detect
17142         re_node_set_init_copy failure.   Extracted from glibc commit
17143         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17144
17145         regex: sync more white-space changes from libc
17146         * lib/regex_internal.c: White-space only changes.
17147         * lib/regexec.c: Likewise.
17148
17149         regex: add many uses of __attribute_warn_unused_result__
17150         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
17151         * lib/regexec.c: Likewise.
17152         Extracted from a messy glibc commit.
17153
17154         regcomp.c: spelling and merge-artifact from glibc
17155         * lib/regcomp.c: Merge remainder of glibc's
17156         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17157
17158         regcomp.c: sync white-space changes from glibc
17159         * lib/regcomp.c: Merge to accommodate white space
17160         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17161
17162         regcomp.c: do not ignore internal return values
17163         * lib/regcomp.c: Do not ignore internal return values.
17164         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
17165         but without its white-space changes and spelling fixes.
17166
17167         regex_internal.h: define __attribute_warn_unused_result__
17168         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
17169
17170         maint: add a syntax-check rule to check for vulnerable Makefile.in
17171         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
17172
17173 2010-01-27  Jim Meyering  <meyering@redhat.com>
17174
17175         ncftpput-ftp: clean up spaces
17176         * build-aux/ncftpput-ftp: Make Copyright line consistent.
17177         Remove trailing blanks.
17178
17179 2010-01-27  Simon Josefsson  <simon@josefsson.org>
17180
17181         * build-aux/git-version-gen: Fix copyright statement.
17182         * build-aux/gnupload: Likewise.
17183         * tests/test-arcfour.c: Likewise.
17184         * tests/test-arctwo.c: Likewise.
17185         * tests/test-count-one-bits.c: Likewise.
17186         * tests/test-crc.c: Likewise.
17187         * tests/test-des.c: Likewise.
17188         * tests/test-gc-arcfour.c: Likewise.
17189         * tests/test-gc-arctwo.c: Likewise.
17190         * tests/test-gc-des.c: Likewise.
17191         * tests/test-gc-hmac-md5.c: Likewise.
17192         * tests/test-gc-hmac-sha1.c: Likewise.
17193         * tests/test-gc-md2.c: Likewise.
17194         * tests/test-gc-md4.c: Likewise.
17195         * tests/test-gc-md5.c: Likewise.
17196         * tests/test-gc-pbkdf2-sha1.c: Likewise.
17197         * tests/test-gc-rijndael.c: Likewise.
17198         * tests/test-gc-sha1.c: Likewise.
17199         * tests/test-gc.c: Likewise.
17200         * tests/test-gethostname.c: Likewise.
17201         * tests/test-gettimeofday.c: Likewise.
17202         * tests/test-hash.c: Likewise.
17203         * tests/test-hmac-md5.c: Likewise.
17204         * tests/test-hmac-sha1.c: Likewise.
17205         * tests/test-md2.c: Likewise.
17206         * tests/test-md4.c: Likewise.
17207         * tests/test-md5.c: Likewise.
17208         * tests/test-memchr.c: Likewise.
17209         * tests/test-memchr2.c: Likewise.
17210         * tests/test-memcmp.c: Likewise.
17211         * tests/test-memmem.c: Likewise.
17212         * tests/test-memrchr.c: Likewise.
17213         * tests/test-rawmemchr.c: Likewise.
17214         * tests/test-read-file.c: Likewise.
17215         * tests/test-rijndael.c: Likewise.
17216         * tests/test-sockets.c: Likewise.
17217         * tests/test-strchrnul.c: Likewise.
17218         * tests/test-strstr.c: Likewise.
17219         * tests/test-strtod.c: Likewise.
17220         * build-aux/ncftpput-ftp: Likewise.
17221
17222 2010-01-26  Eric Blake  <ebb9@byu.net>
17223
17224         ignore-value: update recommended header name
17225         * modules/ignore-value (Include): Only use <> for headers that
17226         exist in glibc.
17227
17228 2010-01-26  Jim Meyering  <meyering@redhat.com>
17229
17230         test-userspec.c: avoid compiler warnings
17231         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
17232         and "initialization discards qualifiers..." warnings.
17233         Put the first "uid" in its own scope, and make char* members "const".
17234
17235 2010-01-25  Bruno Haible  <bruno@clisp.org>
17236
17237         gnulib-tool: Make warning diagnostics consistent.
17238         * gnulib-tool (func_warning): New function.
17239         Use it everywhere where gnulib-tool produces output to stderr and it is
17240         not a fatal error.
17241
17242 2010-01-25  Bruno Haible  <bruno@clisp.org>
17243
17244         Fix test dependencies.
17245         * modules/xstrtol-tests (Depends-on): Add inttypes.
17246         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
17247
17248 2010-01-25 Pádraig Brady <P@draigBrady.com>
17249
17250         syntax-check: detect incorrect boolean macro values in config.h
17251         * modules/maintainer-makefile (configure.ac): Parameterize the location
17252         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
17253         The logic is from Eric Blake and the location indicated by Jim Meyering.
17254         Note the more natural CONFIG_HEADER name is prohibited by automake
17255         for backwards compatibility reasons.
17256         * top/maint.mk (sc_Wundef_boolean): New rule.
17257
17258 2010-01-25  Jim Meyering  <meyering@redhat.com>
17259
17260         bootstrap: detect MacOS 10.6's shasum, too
17261         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
17262         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
17263
17264 2010-01-23  Jim Meyering  <meyering@redhat.com>
17265
17266         xstrtoll: new module
17267         * modules/xstrtoll: New file.
17268         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
17269         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
17270         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
17271         ./configure fails if you use this module and lack "long long".
17272         * modules/xstrtoll-tests: New module.
17273         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
17274         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
17275         new init.sh-based test framework.
17276
17277 2010-01-24  Bruno Haible  <bruno@clisp.org>
17278
17279         Tests for module 'yn'.
17280         * modules/yn-tests: New file.
17281         * tests/test-yn.c: New file.
17282
17283         Tests for module 'y1'.
17284         * modules/y1-tests: New file.
17285         * tests/test-y1.c: New file.
17286
17287         Tests for module 'y0'.
17288         * modules/y0-tests: New file.
17289         * tests/test-y0.c: New file.
17290
17291         Tests for module 'tanh'.
17292         * modules/tanh-tests: New file.
17293         * tests/test-tanh.c: New file.
17294
17295         Tests for module 'tan'.
17296         * modules/tan-tests: New file.
17297         * tests/test-tan.c: New file.
17298
17299         Tests for module 'sqrt'.
17300         * modules/sqrt-tests: New file.
17301         * tests/test-sqrt.c: New file.
17302
17303         Tests for module 'sinh'.
17304         * modules/sinh-tests: New file.
17305         * tests/test-sinh.c: New file.
17306
17307         Tests for module 'sin'.
17308         * modules/sin-tests: New file.
17309         * tests/test-sin.c: New file.
17310
17311         Tests for module 'rint'.
17312         * modules/rint-tests: New file.
17313         * tests/test-rint.c: New file.
17314
17315         Tests for module 'remainder'.
17316         * modules/remainder-tests: New file.
17317         * tests/test-remainder.c: New file.
17318
17319         Tests for module 'pow'.
17320         * modules/pow-tests: New file.
17321         * tests/test-pow.c: New file.
17322
17323         Tests for module 'nextafter'.
17324         * modules/nextafter-tests: New file.
17325         * tests/test-nextafter.c: New file.
17326
17327         Tests for module 'modf'.
17328         * modules/modf-tests: New file.
17329         * tests/test-modf.c: New file.
17330
17331         Tests for module 'logb'.
17332         * modules/logb-tests: New file.
17333         * tests/test-logb.c: New file.
17334
17335         Tests for module 'log1p'.
17336         * modules/log1p-tests: New file.
17337         * tests/test-log1p.c: New file.
17338
17339         Tests for module 'log10'.
17340         * modules/log10-tests: New file.
17341         * tests/test-log10.c: New file.
17342
17343         Tests for module 'log'.
17344         * modules/log-tests: New file.
17345         * tests/test-log.c: New file.
17346
17347         Tests for module 'lgamma'.
17348         * modules/lgamma-tests: New file.
17349         * tests/test-lgamma.c: New file.
17350
17351         Tests for module 'ldexp'.
17352         * modules/ldexp-tests: New file.
17353         * tests/test-ldexp.c: New file.
17354
17355         Tests for module 'jn'.
17356         * modules/jn-tests: New file.
17357         * tests/test-jn.c: New file.
17358
17359         Tests for module 'j1'.
17360         * modules/j1-tests: New file.
17361         * tests/test-j1.c: New file.
17362
17363         Tests for module 'j0'.
17364         * modules/j0-tests: New file.
17365         * tests/test-j0.c: New file.
17366
17367         Tests for module 'hypot'.
17368         * modules/hypot-tests: New file.
17369         * tests/test-hypot.c: New file.
17370
17371         Tests for module 'fmod'.
17372         * modules/fmod-tests: New file.
17373         * tests/test-fmod.c: New file.
17374
17375         Tests for module 'fabs'.
17376         * modules/fabs-tests: New file.
17377         * tests/test-fabs.c: New file.
17378
17379         Tests for module 'exp'.
17380         * modules/exp-tests: New file.
17381         * tests/test-exp.c: New file.
17382
17383         Tests for module 'erfc'.
17384         * modules/erfc-tests: New file.
17385         * tests/test-erfc.c: New file.
17386
17387         Tests for module 'erf'.
17388         * modules/erf-tests: New file.
17389         * tests/test-erf.c: New file.
17390
17391         Tests for module 'cosh'.
17392         * modules/cosh-tests: New file.
17393         * tests/test-cosh.c: New file.
17394
17395         Tests for module 'cos'.
17396         * modules/cos-tests: New file.
17397         * tests/test-cos.c: New file.
17398
17399         Tests for module 'copysign'.
17400         * modules/copysign-tests: New file.
17401         * tests/test-copysign.c: New file.
17402
17403         Tests for module 'cbrt'.
17404         * modules/cbrt-tests: New file.
17405         * tests/test-cbrt.c: New file.
17406
17407         Tests for module 'atan2'.
17408         * modules/atan2-tests: New file.
17409         * tests/test-atan2.c: New file.
17410
17411         Tests for module 'atan'.
17412         * modules/atan-tests: New file.
17413         * tests/test-atan.c: New file.
17414
17415         Tests for module 'asin'.
17416         * modules/asin-tests: New file.
17417         * tests/test-asin.c: New file.
17418
17419         Tests for module 'acos'.
17420         * modules/acos-tests: New file.
17421         * tests/test-acos.c: New file.
17422
17423 2010-01-24  Bruno Haible  <bruno@clisp.org>
17424
17425         Fix tests for common <math.h> functions.
17426         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
17427         code snippet that references the function pointer, rather than merely
17428         calling the function. Substitute the FUNC_LIBM variable.
17429         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
17430         * modules/acos (configure.ac): Likewise.
17431         * modules/asin (configure.ac): Likewise.
17432         * modules/atan (configure.ac): Likewise.
17433         * modules/atan2 (configure.ac): Likewise.
17434         * modules/cbrt (configure.ac): Likewise.
17435         * modules/copysign (configure.ac): Likewise.
17436         * modules/cos (configure.ac): Likewise.
17437         * modules/cosh (configure.ac): Likewise.
17438         * modules/erf (configure.ac): Likewise.
17439         * modules/erfc (configure.ac): Likewise.
17440         * modules/exp (configure.ac): Likewise.
17441         * modules/fabs (configure.ac): Likewise.
17442         * modules/fmod (configure.ac): Likewise.
17443         * modules/hypot (configure.ac): Likewise.
17444         * modules/j0 (configure.ac): Likewise.
17445         * modules/j1 (configure.ac): Likewise.
17446         * modules/jn (configure.ac): Likewise.
17447         * modules/ldexp (configure.ac): Likewise.
17448         * modules/lgamma (configure.ac): Likewise.
17449         * modules/log (configure.ac): Likewise.
17450         * modules/log10 (configure.ac): Likewise.
17451         * modules/log1p (configure.ac): Likewise.
17452         * modules/logb (configure.ac): Likewise.
17453         * modules/modf (configure.ac): Likewise.
17454         * modules/nextafter (configure.ac): Likewise.
17455         * modules/pow (configure.ac): Likewise.
17456         * modules/remainder (configure.ac): Likewise.
17457         * modules/rint (configure.ac): Likewise.
17458         * modules/sin (configure.ac): Likewise.
17459         * modules/sinh (configure.ac): Likewise.
17460         * modules/tan (configure.ac): Likewise.
17461         * modules/tanh (configure.ac): Likewise.
17462         * modules/y0 (configure.ac): Likewise.
17463         * modules/y1 (configure.ac): Likewise.
17464         * modules/yn (configure.ac): Likewise.
17465
17466 2010-01-24  Bruno Haible  <bruno@clisp.org>
17467
17468         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
17469         * tests/test-acosl.c (x): New variable.
17470         (main): Store argument in x and fetch it from x.
17471         * tests/test-asinl.c (x): New variable.
17472         (main): Store argument in x and fetch it from x.
17473         * tests/test-atanl.c (x): New variable.
17474         (main): Store argument in x and fetch it from x.
17475         * tests/test-cosl.c (x): New variable.
17476         (main): Store argument in x and fetch it from x.
17477         * tests/test-expl.c (x): New variable.
17478         (main): Store argument in x and fetch it from x.
17479         * tests/test-logl.c (x): New variable.
17480         (main): Store argument in x and fetch it from x.
17481         * tests/test-sinl.c (x): New variable.
17482         (main): Store argument in x and fetch it from x.
17483         * tests/test-sqrtl.c (x): New variable.
17484         (main): Store argument in x and fetch it from x.
17485         * tests/test-tanl.c (x): New variable.
17486         (main): Store argument in x and fetch it from x.
17487
17488 2010-01-24  Bruno Haible  <bruno@clisp.org>
17489
17490         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
17491         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
17492         assignments to the initial TESTS_ENVIRONMENT.
17493         * doc/gnulib.texi (Unit test modules): Document it.
17494         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
17495         TESTS_ENVIRONMENT.
17496         * modules/btowc-tests (Makefile.am): Likewise.
17497         * modules/c-stack-tests (Makefile.am): Likewise.
17498         * modules/c-strcase-tests (Makefile.am): Likewise.
17499         * modules/copy-file-tests (Makefile.am): Likewise.
17500         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
17501         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
17502         * modules/mbrtowc-tests (Makefile.am): Likewise.
17503         * modules/mbscasecmp-tests (Makefile.am): Likewise.
17504         * modules/mbscasestr-tests (Makefile.am): Likewise.
17505         * modules/mbschr-tests (Makefile.am): Likewise.
17506         * modules/mbscspn-tests (Makefile.am): Likewise.
17507         * modules/mbsinit-tests (Makefile.am): Likewise.
17508         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
17509         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
17510         * modules/mbspbrk-tests (Makefile.am): Likewise.
17511         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
17512         * modules/mbsrchr-tests (Makefile.am): Likewise.
17513         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
17514         * modules/mbsspn-tests (Makefile.am): Likewise.
17515         * modules/mbsstr-tests (Makefile.am): Likewise.
17516         * modules/nl_langinfo-tests (Makefile.am): Likewise.
17517         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
17518         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
17519         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
17520         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
17521         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
17522         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
17523         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
17524         * modules/wcrtomb-tests (Makefile.am): Likewise.
17525         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
17526         * modules/wcsrtombs-tests (Makefile.am): Likewise.
17527         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
17528         assignments from TESTS_ENVIRONMENT.
17529         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
17530         augmentation.
17531         * modules/argp-version-etc-tests (Makefile.am): Likewise.
17532         * modules/atexit-tests (Makefile.am): Likewise.
17533         * modules/binary-io-tests (Makefile.am): Likewise.
17534         * modules/closein-tests (Makefile.am): Likewise.
17535         * modules/dprintf-posix-tests (Makefile.am): Likewise.
17536         * modules/exclude-tests (Makefile.am): Likewise.
17537         * modules/fflush-tests (Makefile.am): Likewise.
17538         * modules/fpending-tests (Makefile.am): Likewise.
17539         * modules/fprintf-posix-tests (Makefile.am): Likewise.
17540         * modules/freadahead-tests (Makefile.am): Likewise.
17541         * modules/freadptr-tests (Makefile.am): Likewise.
17542         * modules/freadseek-tests (Makefile.am): Likewise.
17543         * modules/fseek-tests (Makefile.am): Likewise.
17544         * modules/fseeko-tests (Makefile.am): Likewise.
17545         * modules/ftell-tests (Makefile.am): Likewise.
17546         * modules/ftello-tests (Makefile.am): Likewise.
17547         * modules/idpriv-drop-tests (Makefile.am): Likewise.
17548         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
17549         * modules/lseek-tests (Makefile.am): Likewise.
17550         * modules/parse-duration-tests (Makefile.am): Likewise.
17551         * modules/perror-tests (Makefile.am): Likewise.
17552         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
17553         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
17554         * modules/pipe-tests (Makefile.am): Likewise.
17555         * modules/pread-tests (Makefile.am): Likewise.
17556         * modules/printf-posix-tests (Makefile.am): Likewise.
17557         * modules/select-tests (Makefile.am): Likewise.
17558         * modules/sigpipe-tests (Makefile.am): Likewise.
17559         * modules/tsearch-tests (Makefile.am): Likewise.
17560         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
17561         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
17562         * modules/uniname/uniname-tests (Makefile.am): Likewise.
17563         * modules/uniwidth/width-tests (Makefile.am): Likewise.
17564         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
17565         * modules/version-etc-tests (Makefile.am): Likewise.
17566         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
17567         * modules/vprintf-posix-tests (Makefile.am): Likewise.
17568         * modules/xalloc-die-tests (Makefile.am): Likewise.
17569         * modules/xprintf-posix-tests (Makefile.am): Likewise.
17570         * modules/xstrtoimax-tests (Makefile.am): Likewise.
17571         * modules/xstrtol-tests (Makefile.am): Likewise.
17572         * modules/xstrtoumax-tests (Makefile.am): Likewise.
17573         * modules/yesno-tests (Makefile.am): Likewise.
17574         Suggested by Jim Meyering.
17575
17576 2010-01-24  Bruno Haible  <bruno@clisp.org>
17577
17578         More documentation.
17579         * doc/gnulib.texi (Writing modules): New chapter.
17580         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
17581         the new chapter.
17582
17583 2010-01-24  Jim Meyering  <meyering@redhat.com>
17584
17585         maint.mk: do not prepend "./" after filtering
17586         * top/maint.mk (_prepend_srcdir_prefix): New variable
17587         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
17588         "./" when $(srcdir) is ".".
17589
17590         define STREQ(a,b) consistently, removing useless parentheses
17591         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
17592         since the only risk is that "a" or "b" contains an unparenthesized
17593         comma, but if either did that, STREQ would have 3 or more arguments.
17594         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
17595         * lib/fts.c (STREQ): Remove unnecessary parentheses.
17596         * lib/hash-triple.c (STREQ): Likewise.
17597         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
17598         * lib/getugroups.c (STREQ): Likewise.
17599
17600 2010-01-23  Jim Meyering  <meyering@redhat.com>
17601
17602         maint.mk: fix syntax-check in a non-srcdir build directory
17603         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
17604         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
17605
17606 2010-01-22  Jim Meyering  <meyering@redhat.com>
17607
17608         userspec: add unit tests
17609         * tests/test-userspec.c: New file.
17610         * modules/userspec-tests: Likewise.
17611
17612 2010-01-21  Jim Meyering  <meyering@redhat.com>
17613
17614         maint.mk: handle source file names containing "." robustly
17615         * top/maint.mk (_dot_escaped_srcdir): Define.
17616         (VC_LIST): Use it in LHS of sed substitution.
17617
17618 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
17619
17620         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
17621         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
17622         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
17623         from a non-srcdir build.
17624
17625 2010-01-20  Eric Blake  <ebb9@byu.net>
17626
17627         warn-on-use: use instead of link-warning
17628         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
17629         * modules/unistd (Depends-on, Makefile.am): Likewise.
17630         * modules/arpa_inet (Depends-on): Replace link-warning with
17631         warn-on-use.
17632         (Makefile.am): Update rules accordingly.
17633         * modules/ctype (Depends-on, Makefile.am): Likewise.
17634         * modules/dirent (Depends-on, Makefile.am): Likewise.
17635         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
17636         * modules/inttypes (Depends-on, Makefile.am): Likewise.
17637         * modules/langinfo (Depends-on, Makefile.am): Likewise.
17638         * modules/locale (Depends-on, Makefile.am): Likewise.
17639         * modules/math (Depends-on, Makefile.am): Likewise.
17640         * modules/search (Depends-on, Makefile.am): Likewise.
17641         * modules/signal (Depends-on, Makefile.am): Likewise.
17642         * modules/spawn (Depends-on, Makefile.am): Likewise.
17643         * modules/stdlib (Depends-on, Makefile.am): Likewise.
17644         * modules/string (Depends-on, Makefile.am): Likewise.
17645         * modules/strings (Depends-on, Makefile.am): Likewise.
17646         * modules/sys_file (Depends-on, Makefile.am): Likewise.
17647         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
17648         * modules/sys_select (Depends-on, Makefile.am): Likewise.
17649         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
17650         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
17651         * modules/sys_times (Depends-on, Makefile.am): Likewise.
17652         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
17653         * modules/wchar (Depends-on, Makefile.am): Likewise.
17654         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
17655         should be poisoned.
17656         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
17657         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
17658         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
17659         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
17660         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
17661         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
17662         * m4/math_h.m4 (gl_MATH_H): Likewise.
17663         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
17664         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
17665         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
17666         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
17667         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
17668         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
17669         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
17670         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
17671         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
17672         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17673         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
17674         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
17675         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17676         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
17677         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17678         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
17679         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
17680         GL_LINK_WARNING.
17681         * lib/ctype.in.h: Likewise.
17682         * lib/dirent.in.h: Likewise.
17683         * lib/fcntl.in.h: Likewise.
17684         * lib/inttypes.in.h: Likewise.
17685         * lib/langinfo.in.h: Likewise.
17686         * lib/locale.in.h: Likewise.
17687         * lib/math.in.h: Likewise.
17688         * lib/search.in.h: Likewise.
17689         * lib/signal.in.h: Likewise.
17690         * lib/spawn.in.h: Likewise.
17691         * lib/stdio.in.h: Likewise.
17692         * lib/stdlib.in.h: Likewise.
17693         * lib/string.in.h: Likewise.
17694         * lib/strings.in.h: Likewise.
17695         * lib/sys_file.in.h: Likewise.
17696         * lib/sys_ioctl.in.h: Likewise.
17697         * lib/sys_select.in.h: Likewise.
17698         * lib/sys_socket.in.h: Likewise.
17699         * lib/sys_stat.in.h: Likewise.
17700         * lib/sys_times.in.h: Likewise.
17701         * lib/sys_utsname.in.h: Likewise.
17702         * lib/unistd.in.h: Likewise.
17703         * lib/wchar.in.h: Likewise.
17704
17705 2010-01-20  Bruno Haible  <bruno@clisp.org>
17706
17707         Avoid duplicate -lm.
17708         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
17709         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
17710         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
17711         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
17712         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
17713         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
17714         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
17715         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
17716         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
17717         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
17718         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
17719         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
17720         Reported by Paolo Bonzini.
17721
17722 2010-01-19  Bruno Haible  <bruno@clisp.org>
17723
17724         langinfo, nl_langinfo: Relicense under LGPLv2+.
17725         * modules/langinfo (License): Change to LGPLv2+.
17726         * modules/nl_langinfo (License): Likewise.
17727         Patch by David Lutterkort <lutter@redhat.com>.
17728
17729 2010-01-19  Bruno Haible  <bruno@clisp.org>
17730
17731         Avoid compilation error with cc on OSF/1 5.1.
17732         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
17733         statement, not before.
17734         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17735
17736 2010-01-18  Bruno Haible  <bruno@clisp.org>
17737
17738         Avoid a link error due to the __printf__ symbol.
17739         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
17740         and 2.6.x.
17741         (__format__, __printf__): Remove definitions.
17742         * lib/argp-fmtstream.h: Likewise.
17743         * lib/argp.h: Likewise.
17744         * lib/error.h: Likewise.
17745         * lib/vasnprintf.h: Likewise.
17746         * lib/xprintf.h: Likewise.
17747         * lib/xvasprintf.h: Likewise.
17748         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17749
17750 2010-01-18  Bruno Haible  <bruno@clisp.org>
17751
17752         Tests for module 'tanl'.
17753         * modules/tanl-tests: New file.
17754         * tests/test-tanl.c: New file.
17755
17756         Tests for module 'sqrtl'.
17757         * modules/sqrtl-tests: New file.
17758         * tests/test-sqrtl.c: New file.
17759
17760         Tests for module 'sinl'.
17761         * modules/sinl-tests: New file.
17762         * tests/test-sinl.c: New file.
17763
17764         Tests for module 'logl'.
17765         * modules/logl-tests: New file.
17766         * tests/test-logl.c: New file.
17767
17768         Tests for module 'expl'.
17769         * modules/expl-tests: New file.
17770         * tests/test-expl.c: New file.
17771
17772         Tests for module 'cosl'.
17773         * modules/cosl-tests: New file.
17774         * tests/test-cosl.c: New file.
17775
17776         Tests for module 'atanl'.
17777         * modules/atanl-tests: New file.
17778         * tests/test-atanl.c: New file.
17779
17780         Tests for module 'asinl'.
17781         * modules/asinl-tests: New file.
17782         * tests/test-asinl.c: New file.
17783
17784         Tests for module 'acosl'.
17785         * modules/acosl-tests: New file.
17786         * tests/test-acosl.c: New file.
17787
17788         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
17789         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
17790         tanl): Use the standard gnulib idiom.
17791         * lib/cosl.c: Don't include trigl.c and sincosl.c.
17792         * lib/sinl.c: Likewise.
17793         * lib/tanl.c: Don't include trigl.c.
17794         (kernel_tanl): Make static.
17795         * lib/sincosl.c: Include trigl.h first.
17796         * lib/trigl.c: Likewise.
17797         * m4/acosl.m4: New file.
17798         * m4/asinl.m4: New file.
17799         * m4/atanl.m4: New file.
17800         * m4/cosl.m4: New file.
17801         * m4/expl.m4: New file.
17802         * m4/logl.m4: New file.
17803         * m4/sinl.m4: New file.
17804         * m4/sqrtl.m4: New file.
17805         * m4/tanl.m4: New file.
17806         * m4/mathl.m4: Remove file.
17807         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
17808         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
17809         Don't initialize GNULIB_MATHL.
17810         * modules/acosl: New file.
17811         * modules/asinl: New file.
17812         * modules/atanl: New file.
17813         * modules/cosl: New file.
17814         * modules/expl: New file.
17815         * modules/logl: New file.
17816         * modules/sinl: New file.
17817         * modules/sqrtl: New file.
17818         * modules/tanl: New file.
17819         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
17820         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
17821         substitute GNULIB_MATHL.
17822         * modules/mathl: Rewritten.
17823         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
17824         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
17825         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
17826         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
17827         * doc/posix-functions/expl.texi: Mention the 'expl' module.
17828         * doc/posix-functions/logl.texi: Mention the 'logl' module.
17829         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
17830         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
17831         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
17832
17833 2010-01-18  Bruno Haible  <bruno@clisp.org>
17834
17835         sqrt: Make gl_FUNC_SQRT requirable.
17836         * m4/sqrt.m4: New file.
17837         * modules/sqrt (Files): Add it.
17838         (configure.ac): Invoke gl_FUNC_SQRT.
17839
17840 2010-01-18  Bruno Haible  <bruno@clisp.org>
17841
17842         New modules for common <math.h> functions.
17843         * m4/mathfunc.m4: New file.
17844         * modules/acos: New file.
17845         * modules/asin: New file.
17846         * modules/atan: New file.
17847         * modules/atan2: New file.
17848         * modules/cbrt: New file.
17849         * modules/copysign: New file.
17850         * modules/cos: New file.
17851         * modules/cosh: New file.
17852         * modules/erf: New file.
17853         * modules/erfc: New file.
17854         * modules/exp: New file.
17855         * modules/fabs: New file.
17856         * modules/fmod: New file.
17857         * modules/hypot: New file.
17858         * modules/j0: New file.
17859         * modules/j1: New file.
17860         * modules/jn: New file.
17861         * modules/ldexp: New file.
17862         * modules/lgamma: New file.
17863         * modules/log: New file.
17864         * modules/log10: New file.
17865         * modules/log1p: New file.
17866         * modules/logb: New file.
17867         * modules/modf: New file.
17868         * modules/nextafter: New file.
17869         * modules/pow: New file.
17870         * modules/remainder: New file.
17871         * modules/rint: New file.
17872         * modules/sin: New file.
17873         * modules/sinh: New file.
17874         * modules/sqrt: New file.
17875         * modules/tan: New file.
17876         * modules/tanh: New file.
17877         * modules/y0: New file.
17878         * modules/y1: New file.
17879         * modules/yn: New file.
17880         * doc/posix-functions/acos.texi: Mention the 'acos' module.
17881         * doc/posix-functions/asin.texi: Mention the 'asin' module.
17882         * doc/posix-functions/atan.texi: Mention the 'atan' module.
17883         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
17884         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
17885         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
17886         * doc/posix-functions/cos.texi: Mention the 'cos' module.
17887         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
17888         * doc/posix-functions/erf.texi: Mention the 'erf' module.
17889         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
17890         * doc/posix-functions/exp.texi: Mention the 'exp' module.
17891         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
17892         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
17893         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
17894         * doc/posix-functions/j0.texi: Mention the 'j0' module.
17895         * doc/posix-functions/j1.texi: Mention the 'j1' module.
17896         * doc/posix-functions/jn.texi: Mention the 'jn' module.
17897         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
17898         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
17899         * doc/posix-functions/log.texi: Mention the 'log' module.
17900         * doc/posix-functions/log10.texi: Mention the 'log10' module.
17901         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
17902         * doc/posix-functions/logb.texi: Mention the 'logb' module.
17903         * doc/posix-functions/modf.texi: Mention the 'modf' module.
17904         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
17905         * doc/posix-functions/pow.texi: Mention the 'pow' module.
17906         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
17907         * doc/posix-functions/rint.texi: Mention the 'rint' module.
17908         * doc/posix-functions/sin.texi: Mention the 'sin' module.
17909         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
17910         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
17911         * doc/posix-functions/tan.texi: Mention the 'tan' module.
17912         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
17913         * doc/posix-functions/y0.texi: Mention the 'y0' module.
17914         * doc/posix-functions/y1.texi: Mention the 'y1' module.
17915         * doc/posix-functions/yn.texi: Mention the 'yn' module.
17916
17917 2010-01-18  Jim Meyering  <meyering@redhat.com>
17918
17919         ignore-value: relax license to LGPLv2+
17920         * modules/ignore-value (License): Relax to LGPLv2+.
17921
17922         getdate: don't leak when TZ contains two or more '"'s
17923         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
17924         double quote in TZ after the first one.
17925
17926         readtokens: do not leak internal token_lengths buffer
17927         * lib/readtokens.c (readtokens): Free the local, lengths,
17928         when the supplied "token_lengths" parameter is NULL.
17929
17930 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17931
17932         Fix a couple of missing LIBTHREAD link failures on AIX.
17933         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
17934         $(LIBTHREAD).
17935         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
17936
17937         Link test-poll against INET_PTON_LIB.
17938         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
17939         for inet_pton on Solaris 10.
17940
17941 2010-01-17  Bruno Haible  <bruno@clisp.org>
17942
17943         unistdio/*-sprintf: Fix typo in module description.
17944         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
17945         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
17946         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
17947         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
17948         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
17949         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
17950         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
17951         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17952
17953 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17954
17955         gnulib-tool: fix filelist for AIX, HP-UX ksh.
17956         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
17957         variables in shell case patterns, for AIX and HP-UX ksh.
17958
17959         Split large sed scripts, for HP-UX sed.
17960         * modules/stdio: Split sed scripts around 50 sed commands,
17961         to avoid HP-UX limit of 99 commands, in the near future.
17962         * modules/string: Likewise.
17963         * modules/unistd: Likewise.
17964
17965         gnulib-tool: avoid writing in the current directory.
17966         * gnulib-tool (func_emit_lib_Makefile_am)
17967         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
17968         not in the current directory, so concurrent gnulib-tool
17969         instances do not interfere.
17970
17971 2010-01-16  Jim Meyering  <meyering@redhat.com>
17972
17973         doc: update users.txt
17974         * users.txt: Add grep.
17975         (diffutils, gzip): Update URLs.
17976
17977 2010-01-12  Bruno Haible  <bruno@clisp.org>
17978
17979         posix_spawn: Avoid test failure on Cygwin.
17980         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
17981         characters.
17982         Reported by Simon Josefsson.
17983
17984 2010-01-12  Bruno Haible  <bruno@clisp.org>
17985
17986         * tests/test-cond.c (main): When skipping the test, show the reason.
17987
17988 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17989
17990         * lib/striconv.c (str_cd_iconv): Avoid if before free.
17991
17992 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17993
17994         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
17995         VC_LIST_ALWAYS_EXCLUDE_REGEX.
17996
17997 2010-01-12  Eric Blake  <ebb9@byu.net>
17998
17999         build: guarantee AS_VAR_IF
18000         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
18001         (gl_AS_VAR_IF): Move...
18002         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
18003         Reported by Simon Josefsson.
18004
18005 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18006
18007         * lib/stdio.in.h: Fix typo.
18008
18009 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18010
18011         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
18012         libgpg-error.
18013
18014 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18015
18016         * tests/test-xalloc-die.sh: Use $EXEEXT.
18017
18018 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18019             Bruno Haible  <bruno@clisp.org>
18020
18021         getlogin, getlogin_r: Avoid test failure.
18022         * tests/test-getlogin.c: Include <stdio.h>.
18023         (main): Skip the test when the function fails because stdin is not a
18024         tty.
18025         * tests/test-getlogin_r.c: Include <stdio.h>.
18026         (main): Skip the test when the function fails because stdin is not a
18027         tty.
18028
18029 2010-01-11  Eric Blake  <ebb9@byu.net>
18030
18031         tests: avoid more large file warnings
18032         * tests/test-fflush.c: Avoid warning about ftell use.
18033         * tests/test-fseek.c: Avoid warning about fseek use.
18034
18035 2010-01-10  Bruno Haible  <bruno@clisp.org>
18036
18037         nproc: Work better on Linux when /proc and /sys are not mounted.
18038         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
18039         as lower bound when, on glibc/Linux systems,
18040         sysconf (_SC_NPROCESSORS_CONF) returns 1.
18041         Suggested by Pádraig Brady <P@draigbrady.com>.
18042         Reported by Dmitry V. Levin <ldv@altlinux.org>.
18043
18044         nproc: Refactor.
18045         * lib/nproc.c (num_processors_via_affinity_mask): New function,
18046         extracted from num_processors.
18047         (num_processors): Call it.
18048
18049 2010-01-11  Jim Meyering  <meyering@redhat.com>
18050
18051         utimecmp: avoid new warning from upcoming gcc-4.5.0
18052         * lib/utimecmp.c (BILLION): Define using #define rather than an
18053         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
18054
18055 2010-01-11  Eric Blake  <ebb9@byu.net>
18056
18057         math: add portability warnings for classification macros
18058         * modules/math (Depends-on): Add warn-on-use.
18059         (Makefile.am): Provide new substitutions.
18060         * m4/math_h.m4 (gl_MATH_H): Require inline.
18061         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
18062         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
18063         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
18064         implement warnings.
18065
18066         unistd: warn on use of environ without module
18067         * modules/unistd (Depends-on): Add warn-on-use.
18068         (Makefile.am): Provide new substitutions.
18069         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
18070         * lib/unistd.in.h (environ): Wrap with a warning helper function.
18071
18072         stdio: warn on suspicious uses
18073         * modules/stdio (Depends-on): Add warn-on-use.
18074         (Makefile.am): Provide new substitutions.
18075         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
18076         fseeko.
18077         * lib/stdio.in.h (gets): Always warn on use.
18078         (fseek, ftell): Adjust when warnings are issued, and honor
18079         _GL_NO_LARGE_FILES as a way to silence the warning.
18080         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
18081         any warning about large file offsets.
18082         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
18083         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
18084         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
18085         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
18086         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
18087         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
18088         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
18089         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
18090
18091         warn-on-use: new module
18092         * modules/warn-on-use: New file.
18093         * build-aux/warn-on-use.h: Likewise.
18094         * m4/warn-on-use.m4: Likewise.
18095         * MODULES.html.sh (Support for building): Mention it.
18096
18097 2010-01-10  Bruno Haible  <bruno@clisp.org>
18098
18099         Tests for module 'unistr/u32-strdup'.
18100         * modules/unistr/u32-strdup-tests: New file.
18101         * tests/unistr/test-u32-strdup.c: New file.
18102
18103         Tests for module 'unistr/u16-strdup'.
18104         * modules/unistr/u16-strdup-tests: New file.
18105         * tests/unistr/test-u16-strdup.c: New file.
18106
18107         Tests for module 'unistr/u8-strdup'.
18108         * modules/unistr/u8-strdup-tests: New file.
18109         * tests/unistr/test-u8-strdup.c: New file.
18110         * tests/unistr/test-strdup.h: New file.
18111
18112         Tests for module 'unistr/u32-strncmp'.
18113         * modules/unistr/u32-strncmp-tests: New file.
18114         * tests/unistr/test-u32-strncmp.c: New file.
18115
18116         Tests for module 'unistr/u16-strncmp'.
18117         * modules/unistr/u16-strncmp-tests: New file.
18118         * tests/unistr/test-u16-strncmp.c: New file.
18119
18120         Tests for module 'unistr/u8-strncmp'.
18121         * modules/unistr/u8-strncmp-tests: New file.
18122         * tests/unistr/test-u8-strncmp.c: New file.
18123         * tests/unistr/test-strncmp.h: New file.
18124
18125         Tests for module 'unistr/u32-strcoll'.
18126         * modules/unistr/u32-strcoll-tests: New file.
18127         * tests/unistr/test-u32-strcoll.c: New file.
18128
18129         Tests for module 'unistr/u16-strcoll'.
18130         * modules/unistr/u16-strcoll-tests: New file.
18131         * tests/unistr/test-u16-strcoll.c: New file.
18132
18133         Tests for module 'unistr/u8-strcoll'.
18134         * modules/unistr/u8-strcoll-tests: New file.
18135         * tests/unistr/test-u8-strcoll.c: New file.
18136
18137         Tests for module 'unistr/u32-strcmp'.
18138         * modules/unistr/u32-strcmp-tests: New file.
18139         * tests/unistr/test-u32-strcmp.c: New file.
18140         * tests/unistr/test-u32-strcmp.h: New file.
18141
18142         Tests for module 'unistr/u16-strcmp'.
18143         * modules/unistr/u16-strcmp-tests: New file.
18144         * tests/unistr/test-u16-strcmp.c: New file.
18145         * tests/unistr/test-u16-strcmp.h: New file.
18146
18147         Tests for module 'unistr/u8-strcmp'.
18148         * modules/unistr/u8-strcmp-tests: New file.
18149         * tests/unistr/test-u8-strcmp.c: New file.
18150         * tests/unistr/test-u8-strcmp.h: New file.
18151         * tests/unistr/test-strcmp.h: New file.
18152
18153         Tests for module 'unistr/u32-strncat'.
18154         * modules/unistr/u32-strncat-tests: New file.
18155         * tests/unistr/test-u32-strncat.c: New file.
18156
18157         Tests for module 'unistr/u16-strncat'.
18158         * modules/unistr/u16-strncat-tests: New file.
18159         * tests/unistr/test-u16-strncat.c: New file.
18160
18161         Tests for module 'unistr/u8-strncat'.
18162         * modules/unistr/u8-strncat-tests: New file.
18163         * tests/unistr/test-u8-strncat.c: New file.
18164         * tests/unistr/test-strncat.h: New file.
18165
18166         Tests for module 'unistr/u32-strcat'.
18167         * modules/unistr/u32-strcat-tests: New file.
18168         * tests/unistr/test-u32-strcat.c: New file.
18169
18170         Tests for module 'unistr/u16-strcat'.
18171         * modules/unistr/u16-strcat-tests: New file.
18172         * tests/unistr/test-u16-strcat.c: New file.
18173
18174         Tests for module 'unistr/u8-strcat'.
18175         * modules/unistr/u8-strcat-tests: New file.
18176         * tests/unistr/test-u8-strcat.c: New file.
18177         * tests/unistr/test-strcat.h: New file.
18178
18179         Tests for module 'unistr/u32-stpncpy'.
18180         * modules/unistr/u32-stpncpy-tests: New file.
18181         * tests/unistr/test-u32-stpncpy.c: New file.
18182
18183         Tests for module 'unistr/u16-stpncpy'.
18184         * modules/unistr/u16-stpncpy-tests: New file.
18185         * tests/unistr/test-u16-stpncpy.c: New file.
18186
18187         Tests for module 'unistr/u8-stpncpy'.
18188         * modules/unistr/u8-stpncpy-tests: New file.
18189         * tests/unistr/test-u8-stpncpy.c: New file.
18190         * tests/unistr/test-stpncpy.h: New file.
18191
18192         Tests for module 'unistr/u32-strncpy'.
18193         * modules/unistr/u32-strncpy-tests: New file.
18194         * tests/unistr/test-u32-strncpy.c: New file.
18195
18196         Tests for module 'unistr/u16-strncpy'.
18197         * modules/unistr/u16-strncpy-tests: New file.
18198         * tests/unistr/test-u16-strncpy.c: New file.
18199
18200         Tests for module 'unistr/u8-strncpy'.
18201         * modules/unistr/u8-strncpy-tests: New file.
18202         * tests/unistr/test-u8-strncpy.c: New file.
18203         * tests/unistr/test-strncpy.h: New file.
18204
18205         Tests for module 'unistr/u32-stpcpy'.
18206         * modules/unistr/u32-stpcpy-tests: New file.
18207         * tests/unistr/test-u32-stpcpy.c: New file.
18208
18209         Tests for module 'unistr/u16-stpcpy'.
18210         * modules/unistr/u16-stpcpy-tests: New file.
18211         * tests/unistr/test-u16-stpcpy.c: New file.
18212
18213         Tests for module 'unistr/u8-stpcpy'.
18214         * modules/unistr/u8-stpcpy-tests: New file.
18215         * tests/unistr/test-u8-stpcpy.c: New file.
18216         * tests/unistr/test-stpcpy.h: New file.
18217
18218         Tests for module 'unistr/u32-strcpy'.
18219         * modules/unistr/u32-strcpy-tests: New file.
18220         * tests/unistr/test-u32-strcpy.c: New file.
18221
18222         Tests for module 'unistr/u16-strcpy'.
18223         * modules/unistr/u16-strcpy-tests: New file.
18224         * tests/unistr/test-u16-strcpy.c: New file.
18225
18226         Tests for module 'unistr/u8-strcpy'.
18227         * modules/unistr/u8-strcpy-tests: New file.
18228         * tests/unistr/test-u8-strcpy.c: New file.
18229         * tests/unistr/test-strcpy.h: New file.
18230
18231         Tests for module 'unistr/u32-strnlen'.
18232         * modules/unistr/u32-strnlen-tests: New file.
18233         * tests/unistr/test-u32-strnlen.c: New file.
18234
18235         Tests for module 'unistr/u16-strnlen'.
18236         * modules/unistr/u16-strnlen-tests: New file.
18237         * tests/unistr/test-u16-strnlen.c: New file.
18238
18239         Tests for module 'unistr/u8-strnlen'.
18240         * modules/unistr/u8-strnlen-tests: New file.
18241         * tests/unistr/test-u8-strnlen.c: New file.
18242         * tests/unistr/test-strnlen.h: New file.
18243
18244         Tests for module 'unistr/u32-strlen'.
18245         * modules/unistr/u32-strlen-tests: New file.
18246         * tests/unistr/test-u32-strlen.c: New file.
18247
18248         Tests for module 'unistr/u16-strlen'.
18249         * modules/unistr/u16-strlen-tests: New file.
18250         * tests/unistr/test-u16-strlen.c: New file.
18251
18252         Tests for module 'unistr/u8-strlen'.
18253         * modules/unistr/u8-strlen-tests: New file.
18254         * tests/unistr/test-u8-strlen.c: New file.
18255
18256         Tests for module 'unistr/u32-prev'.
18257         * modules/unistr/u32-prev-tests: New file.
18258         * tests/unistr/test-u32-prev.c: New file.
18259
18260         Tests for module 'unistr/u16-prev'.
18261         * modules/unistr/u16-prev-tests: New file.
18262         * tests/unistr/test-u16-prev.c: New file.
18263
18264         Tests for module 'unistr/u8-prev'.
18265         * modules/unistr/u8-prev-tests: New file.
18266         * tests/unistr/test-u8-prev.c: New file.
18267
18268         Tests for module 'unistr/u32-next'.
18269         * modules/unistr/u32-next-tests: New file.
18270         * tests/unistr/test-u32-next.c: New file.
18271
18272         Tests for module 'unistr/u16-next'.
18273         * modules/unistr/u16-next-tests: New file.
18274         * tests/unistr/test-u16-next.c: New file.
18275
18276         Tests for module 'unistr/u8-next'.
18277         * modules/unistr/u8-next-tests: New file.
18278         * tests/unistr/test-u8-next.c: New file.
18279
18280         Tests for module 'unistr/u32-strmbtouc'.
18281         * modules/unistr/u32-strmbtouc-tests: New file.
18282         * tests/unistr/test-u32-strmbtouc.c: New file.
18283
18284         Tests for module 'unistr/u16-strmbtouc'.
18285         * modules/unistr/u16-strmbtouc-tests: New file.
18286         * tests/unistr/test-u16-strmbtouc.c: New file.
18287
18288         Tests for module 'unistr/u8-strmbtouc'.
18289         * modules/unistr/u8-strmbtouc-tests: New file.
18290         * tests/unistr/test-u8-strmbtouc.c: New file.
18291
18292         Tests for module 'unistr/u32-strmblen'.
18293         * modules/unistr/u32-strmblen-tests: New file.
18294         * tests/unistr/test-u32-strmblen.c: New file.
18295
18296         Tests for module 'unistr/u16-strmblen'.
18297         * modules/unistr/u16-strmblen-tests: New file.
18298         * tests/unistr/test-u16-strmblen.c: New file.
18299
18300         Tests for module 'unistr/u8-strmblen'.
18301         * modules/unistr/u8-strmblen-tests: New file.
18302         * tests/unistr/test-u8-strmblen.c: New file.
18303
18304         Tests for module 'unistr/u32-cpy-alloc'.
18305         * modules/unistr/u32-cpy-alloc-tests: New file.
18306         * tests/unistr/test-u32-cpy-alloc.c: New file.
18307
18308         Tests for module 'unistr/u16-cpy-alloc'.
18309         * modules/unistr/u16-cpy-alloc-tests: New file.
18310         * tests/unistr/test-u16-cpy-alloc.c: New file.
18311
18312         Tests for module 'unistr/u8-cpy-alloc'.
18313         * modules/unistr/u8-cpy-alloc-tests: New file.
18314         * tests/unistr/test-u8-cpy-alloc.c: New file.
18315         * tests/unistr/test-cpy-alloc.h: New file.
18316
18317         Tests for module 'unistr/u32-mbsnlen'.
18318         * modules/unistr/u32-mbsnlen-tests: New file.
18319         * tests/unistr/test-u32-mbsnlen.c: New file.
18320
18321         Tests for module 'unistr/u16-mbsnlen'.
18322         * modules/unistr/u16-mbsnlen-tests: New file.
18323         * tests/unistr/test-u16-mbsnlen.c: New file.
18324
18325         Tests for module 'unistr/u8-mbsnlen'.
18326         * modules/unistr/u8-mbsnlen-tests: New file.
18327         * tests/unistr/test-u8-mbsnlen.c: New file.
18328
18329         Tests for module 'unistr/u32-chr'.
18330         * modules/unistr/u32-chr-tests: New file.
18331         * tests/unistr/test-u32-chr.c: New file.
18332
18333         Tests for module 'unistr/u16-chr'.
18334         * modules/unistr/u16-chr-tests: New file.
18335         * tests/unistr/test-u16-chr.c: New file.
18336
18337         Tests for module 'unistr/u8-chr'.
18338         * modules/unistr/u8-chr-tests: New file.
18339         * tests/unistr/test-u8-chr.c: New file.
18340         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
18341
18342         Tests for module 'unistr/u32-cmp2'.
18343         * modules/unistr/u32-cmp2-tests: New file.
18344         * tests/unistr/test-u32-cmp2.c: New file.
18345
18346         Tests for module 'unistr/u16-cmp2'.
18347         * modules/unistr/u16-cmp2-tests: New file.
18348         * tests/unistr/test-u16-cmp2.c: New file.
18349
18350         Tests for module 'unistr/u8-cmp2'.
18351         * modules/unistr/u8-cmp2-tests: New file.
18352         * tests/unistr/test-u8-cmp2.c: New file.
18353         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
18354
18355         Tests for module 'unistr/u32-cmp'.
18356         * modules/unistr/u32-cmp-tests: New file.
18357         * tests/unistr/test-u32-cmp.c: New file.
18358
18359         Tests for module 'unistr/u16-cmp'.
18360         * modules/unistr/u16-cmp-tests: New file.
18361         * tests/unistr/test-u16-cmp.c: New file.
18362
18363         Tests for module 'unistr/u8-cmp'.
18364         * modules/unistr/u8-cmp-tests: New file.
18365         * tests/unistr/test-u8-cmp.c: New file.
18366         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
18367
18368         Tests for module 'unistr/u32-set'.
18369         * modules/unistr/u32-set-tests: New file.
18370         * tests/unistr/test-u32-set.c: New file.
18371
18372         Tests for module 'unistr/u16-set'.
18373         * modules/unistr/u16-set-tests: New file.
18374         * tests/unistr/test-u16-set.c: New file.
18375
18376         Tests for module 'unistr/u8-set'.
18377         * modules/unistr/u8-set-tests: New file.
18378         * tests/unistr/test-u8-set.c: New file.
18379         * tests/unistr/test-set.h: New file.
18380
18381         Tests for module 'unistr/u32-move'.
18382         * modules/unistr/u32-move-tests: New file.
18383         * tests/unistr/test-u32-move.c: New file.
18384
18385         Tests for module 'unistr/u16-move'.
18386         * modules/unistr/u16-move-tests: New file.
18387         * tests/unistr/test-u16-move.c: New file.
18388
18389         Tests for module 'unistr/u8-move'.
18390         * modules/unistr/u8-move-tests: New file.
18391         * tests/unistr/test-u8-move.c: New file.
18392         * tests/unistr/test-move.h: New file.
18393
18394         Tests for module 'unistr/u32-cpy'.
18395         * modules/unistr/u32-cpy-tests: New file.
18396         * tests/unistr/test-u32-cpy.c: New file.
18397
18398         Tests for module 'unistr/u16-cpy'.
18399         * modules/unistr/u16-cpy-tests: New file.
18400         * tests/unistr/test-u16-cpy.c: New file.
18401
18402         Tests for module 'unistr/u8-cpy'.
18403         * modules/unistr/u8-cpy-tests: New file.
18404         * tests/unistr/test-u8-cpy.c: New file.
18405         * tests/unistr/test-cpy.h: New file.
18406
18407 2010-01-09  Bruno Haible  <bruno@clisp.org>
18408
18409         Tests for module 'unistr/u32-uctomb'.
18410         * modules/unistr/u32-uctomb-tests: New file.
18411         * tests/unistr/test-u32-uctomb.c: New file.
18412
18413         Tests for module 'unistr/u16-uctomb'.
18414         * modules/unistr/u16-uctomb-tests: New file.
18415         * tests/unistr/test-u16-uctomb.c: New file.
18416
18417         Tests for module 'unistr/u8-uctomb'.
18418         * modules/unistr/u8-uctomb-tests: New file.
18419         * tests/unistr/test-u8-uctomb.c: New file.
18420
18421         Tests for module 'unistr/u32-mbtoucr'.
18422         * modules/unistr/u32-mbtoucr-tests: New file.
18423         * tests/unistr/test-u32-mbtoucr.c: New file.
18424
18425         Tests for module 'unistr/u16-mbtoucr'.
18426         * modules/unistr/u16-mbtoucr-tests: New file.
18427         * tests/unistr/test-u16-mbtoucr.c: New file.
18428
18429         Tests for module 'unistr/u8-mbtoucr'.
18430         * modules/unistr/u8-mbtoucr-tests: New file.
18431         * tests/unistr/test-u8-mbtoucr.c: New file.
18432
18433         Tests for module 'unistr/u32-mbtouc'.
18434         * modules/unistr/u32-mbtouc-tests: New file.
18435         * tests/unistr/test-u32-mbtouc.c: New file.
18436
18437         Tests for module 'unistr/u16-mbtouc'.
18438         * modules/unistr/u16-mbtouc-tests: New file.
18439         * tests/unistr/test-u16-mbtouc.c: New file.
18440
18441         Tests for module 'unistr/u8-mbtouc'.
18442         * modules/unistr/u8-mbtouc-tests: New file.
18443         * tests/unistr/test-u8-mbtouc.c: New file.
18444
18445         Tests for module 'unistr/u32-mbtouc-unsafe'.
18446         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
18447         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
18448         * tests/unistr/test-u32-mbtouc.h: New file.
18449
18450         Tests for module 'unistr/u16-mbtouc-unsafe'.
18451         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
18452         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
18453         * tests/unistr/test-u16-mbtouc.h: New file.
18454
18455         Tests for module 'unistr/u8-mbtouc-unsafe'.
18456         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
18457         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
18458         * tests/unistr/test-u8-mbtouc.h: New file.
18459
18460         Tests for module 'unistr/u32-mblen'.
18461         * modules/unistr/u32-mblen-tests: New file.
18462         * tests/unistr/test-u32-mblen.c: New file.
18463
18464         Tests for module 'unistr/u16-mblen'.
18465         * modules/unistr/u16-mblen-tests: New file.
18466         * tests/unistr/test-u16-mblen.c: New file.
18467
18468         Tests for module 'unistr/u8-mblen'.
18469         * modules/unistr/u8-mblen-tests: New file.
18470         * tests/unistr/test-u8-mblen.c: New file.
18471
18472         Tests for module 'unistr/u32-to-u16'.
18473         * modules/unistr/u32-to-u16-tests: New file.
18474         * tests/unistr/test-u32-to-u16.c: New file.
18475
18476         Tests for module 'unistr/u32-to-u8'.
18477         * modules/unistr/u32-to-u8-tests: New file.
18478         * tests/unistr/test-u32-to-u8.c: New file.
18479
18480         Tests for module 'unistr/u16-to-u32'.
18481         * modules/unistr/u16-to-u32-tests: New file.
18482         * tests/unistr/test-u16-to-u32.c: New file.
18483
18484         Tests for module 'unistr/u16-to-u8'.
18485         * modules/unistr/u16-to-u8-tests: New file.
18486         * tests/unistr/test-u16-to-u8.c: New file.
18487
18488         Tests for module 'unistr/u8-to-u32'.
18489         * modules/unistr/u8-to-u32-tests: New file.
18490         * tests/unistr/test-u8-to-u32.c: New file.
18491
18492         Tests for module 'unistr/u8-to-u16'.
18493         * modules/unistr/u8-to-u16-tests: New file.
18494         * tests/unistr/test-u8-to-u16.c: New file.
18495
18496         Tests for module 'unistr/u32-check'.
18497         * modules/unistr/u32-check-tests: New file.
18498         * tests/unistr/test-u32-check.c: New file.
18499
18500         Tests for module 'unistr/u16-check'.
18501         * modules/unistr/u16-check-tests: New file.
18502         * tests/unistr/test-u16-check.c: New file.
18503
18504         Tests for module 'unistr/u8-check'.
18505         * modules/unistr/u8-check-tests: New file.
18506         * tests/unistr/test-u8-check.c: New file.
18507
18508         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
18509         (category_equals): New function.
18510         (main): Add more tests.
18511         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
18512
18513         * tests/unictype/test-bidi_byname.c (main): Add more tests.
18514
18515 2010-01-10  Bruno Haible  <bruno@clisp.org>
18516
18517         unistr/u*-strcoll: Try harder to distinguish different strings.
18518         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
18519         compare s1 and s2 to see if they are different.
18520
18521 2010-01-10  Bruno Haible  <bruno@clisp.org>
18522
18523         unistr/u*-stpncpy: Fix the return value.
18524         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
18525         description of the return value consistent with stpncpy in glibc.
18526         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
18527         written non-NUL unit.
18528
18529 2010-01-10  Bruno Haible  <bruno@clisp.org>
18530
18531         unistr/u*-next: Add missing dependencies.
18532         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
18533         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
18534         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
18535
18536 2010-01-10  Bruno Haible  <bruno@clisp.org>
18537
18538         unistr/u8-mbsnlen: Fix return value for incomplete character.
18539         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
18540         u8_mblen.
18541         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
18542         Remove unistr/u8-mblen.
18543         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
18544         u16_mblen.
18545         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
18546         Remove unistr/u16-mblen.
18547
18548 2010-01-10  Bruno Haible  <bruno@clisp.org>
18549
18550         wchar: Fix compilation error when <wchar.h> is used from coreutils.
18551         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
18552         Reported by Brian Gough <bjg@gnu.org> and
18553         Chris Clayton <chris2553@googlemail.com> via
18554         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
18555
18556 2010-01-09  Bruno Haible  <bruno@clisp.org>
18557
18558         unistr/u16-to-u32: Reject invalid input.
18559         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
18560         u16_mbtouc.
18561         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
18562         Remove unistr/u16-mbtouc.
18563
18564         unistr/u16-to-u8: Reject invalid input.
18565         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
18566         u16_mbtouc.
18567         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
18568         Remove unistr/u16-mbtouc.
18569
18570         unistr/u8-to-u32: Reject invalid input.
18571         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
18572         u8_mbtouc.
18573         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
18574         Remove unistr/u8-mbtouc.
18575
18576         unistr/u8-to-u16: Reject invalid input.
18577         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
18578         u8_mbtouc.
18579         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
18580         Remove unistr/u8-mbtouc.
18581
18582 2010-01-09  Bruno Haible  <bruno@clisp.org>
18583
18584         Tests for module 'getlogin'.
18585         * modules/getlogin-tests: New file.
18586         * tests/test-getlogin.c: New file.
18587
18588         New module 'getlogin'.
18589         * lib/unistd.in.h (getlogin): New declaration.
18590         * lib/getlogin.c: New file.
18591         * m4/getlogin.m4: New file.
18592         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
18593         HAVE_GETLOGIN.
18594         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
18595         HAVE_GETLOGIN.
18596         * modules/getlogin: New file.
18597         * doc/posix-functions/getlogin.texi: Mention the new module.
18598         Reported by John W. Eaton <jwe@gnu.org>.
18599
18600 2010-01-09  Bruno Haible  <bruno@clisp.org>
18601
18602         getlogin_r: Support for native Windows.
18603         * lib/getlogin_r.c: Include <windows.h>
18604         (getlogin_r): Implement for native Windows.
18605         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
18606         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
18607         via John W. Eaton <jwe@gnu.org>.
18608
18609 2010-01-09  Bruno Haible  <bruno@clisp.org>
18610
18611         getlogin_r: Small fixes.
18612         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
18613         succeeds.
18614         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
18615         before testing whether getlogin_r is declared. No need to set
18616         HAVE_DECL_GETLOGIN_R to 1.
18617         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
18618
18619 2010-01-09  Bruno Haible  <bruno@clisp.org>
18620
18621         * lib/unistd.in.h (getlogin_r): Add comment.
18622
18623 2010-01-09  Bruno Haible  <bruno@clisp.org>
18624
18625         Tests for module 'getlogin_r'.
18626         * modules/getlogin_r-tests: New file.
18627         * tests/test-getlogin_r.c: New file.
18628
18629 2010-01-09  Jim Meyering  <meyering@redhat.com>
18630
18631         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
18632         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
18633         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
18634
18635 2010-01-08  Simon Josefsson  <simon@josefsson.org>
18636
18637         * lib/dup2.c (rpl_dup2): Improve comment.
18638
18639 2010-01-08  Eric Blake  <ebb9@byu.net>
18640
18641         maint.mk: allow packages to add makefile @@ exceptions
18642         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
18643         (sc_makefile_check): Rename...
18644         (sc_makefile_at_at_check): ...to this, and use hook.
18645
18646         dup2: work around mingw bug
18647         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
18648         Reported by Simon Josefsson.
18649
18650 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
18651
18652         glob: Fix C++ compilation.
18653         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
18654         C++.
18655
18656 2010-01-07  Bruno Haible  <bruno@clisp.org>
18657
18658         Fix indentation of wctype.in.h, broken since 2007-01-06.
18659         * lib/wctype.in.h: Fix indentation of preprocessor directives.
18660
18661 2010-01-07  Bruno Haible  <bruno@clisp.org>
18662
18663         mbslen: Avoid collision with system function.
18664         * lib/string.in.h [MirBSD]: Include <wchar.h>.
18665         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
18666         * m4/mbslen.m4: New file.
18667         * modules/mbslen (Files): Add it.
18668         (configure.ac): Invoke gl_MBSLEN.
18669         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
18670         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
18671         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
18672         via Ian Beckwith <ianb@erislabs.net>.
18673
18674 2010-01-07  Bruno Haible  <bruno@clisp.org>
18675
18676         dirent: Document the last fix.
18677         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
18678
18679 2010-01-07  Bruno Haible  <bruno@clisp.org>
18680
18681         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
18682         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
18683         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
18684         va_list are defined.
18685         * doc/posix-headers/stdio.texi: Document the bug of missing types.
18686         Reported by Eric Blake.
18687
18688 2010-01-07  Bruno Haible  <bruno@clisp.org>
18689
18690         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
18691         * modules/xlist (Depends-on): Add 'list',
18692         * modules/xoset (Depends-on): Add 'oset'.
18693         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18694
18695 2010-01-07  Bruno Haible  <bruno@clisp.org>
18696
18697         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
18698         * doc/posix-functions/strncasecmp.texi: Likewise.
18699
18700 2010-01-07  Bruno Haible  <bruno@clisp.org>
18701
18702         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
18703
18704 2010-01-07  John W. Eaton  <jwe@octave.org>
18705
18706         wctype: allow C++ use
18707         * lib/wctype.in.h: Add extern "C" block for C++.
18708
18709 2010-01-06  Eric Blake  <ebb9@byu.net>
18710
18711         maint.mk: detect incorrect GFDL usage
18712         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
18713
18714 2010-01-06  Jim Meyering  <meyering@redhat.com>
18715         and Eric Blake  <ebb9@byu.net>
18716
18717         maint.mk: ignore multi-line copyright in NEWS
18718         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
18719
18720 2010-01-06  Eric Blake  <ebb9@byu.net>
18721
18722         select: add missing dependency
18723         * modules/select-tests (Depends-on): Move sockets dependency...
18724         * modules/select (Depends-on): ...here.
18725         Reported by Ian Beckwith.
18726
18727         doc: regenerate INSTALL
18728         * doc/INSTALL: Reflect recent autoconf update.
18729         * doc/INSTALL.ISO: Likewise.
18730         * doc/INSTALL.UTF-8: Likewise.
18731
18732         pread: fix compilation on glibc
18733         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
18734         Reported by Ralf Wildenhues.
18735
18736         dirent: fix test failure
18737         * lib/dirent.in.h (includes): Guarantee ino_t.
18738         Reported by Ralf Wildenhues.
18739
18740 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
18741
18742         linkat, renameat: avoid bad free
18743         * lib/at-func2.c (at_func2): Fix typo.
18744         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
18745
18746 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18747
18748         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
18749         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
18750         to avoid failure of symlink test later.
18751
18752 2010-01-06  Eric Blake  <ebb9@byu.net>
18753
18754         stdio, unistd: guarantee ssize_t
18755         * lib/unistd.in.h (includes): Ensure that types required by POSIX
18756         2008 are exposed when needed.
18757         * lib/stdio.in.h (includes): Likewise.
18758         Reported by Ralf Wildenhues.
18759
18760 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
18761
18762         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
18763         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
18764         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
18765
18766 2010-01-06  Jim Meyering  <meyering@redhat.com>
18767
18768         readtokens: this module *does* require xalloc.h
18769         It uses only functions that were omitted by the old syntax-check rule.
18770         * lib/readtokens.c: Include "xalloc.h" once again.
18771         * modules/readtokens (Depends-on): Add xalloc.
18772         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
18773
18774 2010-01-05  Eric Blake  <ebb9@byu.net>
18775
18776         maint: support 'make announcement' from a VPATH build
18777         * top/maint.mk (announcement): Look for correct NEWS file.
18778
18779 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
18780
18781         utimens (fdutimens): ignore a negative FD, per contract
18782         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
18783         when we have a valid file descriptor.  Otherwise, using a brand
18784         new glibc (with just-patched futimens that now fails with EBADF)
18785         would cause this function to fail with ENOSYS.
18786         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
18787         See also http://bugzilla.redhat.com/552320.
18788
18789 2010-01-05  Eric Blake  <ebb9@byu.net>
18790
18791         strcase: document what it provides
18792         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
18793         gnulib module.
18794         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
18795         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
18796
18797 2010-01-05  Jim Meyering  <meyering@redhat.com>
18798
18799         maint: remove useless inclusions of "xalloc.h"
18800         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
18801         * lib/readtokens.c: Likewise.
18802         * lib/same.c: Likewise.
18803         * modules/getloadavg (Depends-on): Remove xalloc.
18804         * modules/readtokens: Likewise.
18805         * modules/same: Likewise.
18806
18807         maint.mk: include 4 more function names in alloca.h-checking regexp
18808         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
18809         regexp.  Before, we would give a false-positive (saying alloca.h
18810         is included unnecessarily) when the only uses involved omitted symbols.
18811
18812         xalloc.h: use consistent formatting
18813         * lib/xalloc.h: Move declarations to start in the first column.
18814
18815 2010-01-05  Eric Blake  <ebb9@byu.net>
18816
18817         mkdir: avoid xalloc
18818         * lib/mkdir.c (includes): Drop unused header.
18819         Reported by John W. Eaton.
18820
18821 2010-01-04  Jim Meyering  <meyering@redhat.com>
18822
18823         nl_langinfo: avoid configure-time syntax error
18824         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
18825         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
18826         the empty string.  Don't let that provoke a shell syntax error.
18827
18828         regcomp, regexec, fnmatch: avoid array bounds read error
18829         * lib/regcomp.c (build_equiv_class): From glibc:
18830         Use only the low 24 bits of a findidx return value as an index
18831         into the weights array.  Patch by Ulrich Drepper:
18832         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
18833         * lib/regexec.c (check_node_accept_bytes): Likewise.
18834         * lib/fnmatch_loop.c (FCT): Likewise.
18835
18836         regcomp: skip collseq lookup when there are no rules
18837         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
18838         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
18839
18840         regcomp: recognize ill-formed { } expressions
18841         * lib/regcomp.c (parse_dup_op): From glibc:
18842         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
18843
18844         regcomp: fix typo in comment
18845         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
18846         s/satisfy/satisfies/.
18847
18848         regcomp: sync from glibc: remove dead store
18849         * lib/regcomp.c (duplicate_node_closure): Remove useless
18850         search_duplicated_node call and dead store.
18851
18852         regcomp: sync from glibc; always use nl_langinfo
18853         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
18854         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
18855         * modules/regex (Depends-on): Add nl_langinfo.
18856
18857 2010-01-04  Eric Blake  <ebb9@byu.net>
18858
18859         fdopendir: fix configure test
18860         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
18861
18862 2010-01-01  Bruno Haible  <bruno@clisp.org>
18863
18864         wchar: Remove unused configure check.
18865         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
18866
18867 2010-01-01  Eric Blake  <ebb9@byu.net>
18868
18869         headers: make check of system header explicit
18870         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
18871         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
18872         ourselves.
18873         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18874         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18875         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
18876         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
18877         internals.
18878         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
18879         missing.
18880         Suggested by Bruno Haible.
18881
18882 2010-01-01  Jim Meyering  <meyering@redhat.com>
18883
18884         ChangeLog: tweak to eliminate unnecessary copyright line
18885         * ChangeLog: Remove a copyright line that was mistakenly updated
18886         by today's update-copyright run.  Reported by Eric Blake.
18887
18888         test-update-copyright: don't let envvar setting cause test failure
18889         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
18890
18891 2010-01-01  Bruno Haible  <bruno@clisp.org>
18892
18893         localename: Avoid gcc warning.
18894         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
18895         function if it is not used.
18896
18897 2010-01-01  Jim Meyering  <meyering@redhat.com>
18898
18899         update nearly all FSF copyright year lists to include 2010
18900         Use the same procedure as for 2009, outlined in
18901         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
18902
18903         version-etc: set COPYRIGHT_YEAR to 2010
18904         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
18905
18906 2009-12-31  Eric Blake  <ebb9@byu.net>
18907
18908         doc: correct availability of cygwin 1.5.x getopt
18909         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
18910         variables.
18911         * doc/posix-functions/opterr.texi (opterr): Likewise.
18912         * doc/posix-functions/optind.texi (optind): Likewise.
18913         * doc/posix-functions/optopt.texi (optopt): Likewise.
18914         * doc/posix-functions/tzname.texi (tzname): Likewise.
18915
18916         openat: update maintainer
18917         * modules/openat (Maintainer): Add myself.
18918
18919         utimens: avoid shadowing warning
18920         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
18921         buffers into one, to avoid shadowing, as well as avoiding a
18922         redundant stat.
18923         Reported by Jim Meyering.
18924
18925         test-dup2: avoid compiler warning
18926         * tests/test-dup2.c (is_inheritable): Only define if used.
18927
18928 2010-01-01  Bruno Haible  <bruno@clisp.org>
18929
18930         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
18931         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
18932         defined, use wctomb instead of wcrtomb.
18933
18934 2010-01-01  Bruno Haible  <bruno@clisp.org>
18935
18936         iconv: Reject native Solaris iconv.
18937         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
18938         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
18939
18940 2009-12-31  Bruno Haible  <bruno@clisp.org>
18941
18942         * tests/test-signal.c (main): Remove test of 'SIG'.
18943
18944 2009-12-31  Bruno Haible  <bruno@clisp.org>
18945
18946         spawn: Fix incomplete fix.
18947         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
18948         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
18949         warnings for GNULIB_POSIXCHECK again.
18950         Reported by Eric Blake.
18951
18952 2009-12-31  Bruno Haible  <bruno@clisp.org>
18953
18954         Avoid namespace pollution on glibc systems.
18955         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
18956         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
18957         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
18958         glibc systems.
18959
18960 2009-12-31  Bruno Haible  <bruno@clisp.org>
18961
18962         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
18963         (gl_REPLACE_WCHAR_H): Turn into a no-op.
18964         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
18965         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
18966         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
18967         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
18968         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
18969
18970 2009-12-31  Bruno Haible  <bruno@clisp.org>
18971
18972         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
18973         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
18974         afterwards.
18975
18976 2009-12-31  Bruno Haible  <bruno@clisp.org>
18977
18978         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
18979         SYS_UTSNAME_H.
18980
18981 2009-12-31  Bruno Haible  <bruno@clisp.org>
18982
18983         spawn: Fix misapplied patch.
18984         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
18985         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
18986         warnings for GNULIB_POSIXCHECK.
18987
18988 2009-12-31  Bruno Haible  <bruno@clisp.org>
18989
18990         times: Update after sys_times changed.
18991         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
18992         * modules/times (Files): Add it.
18993         (configure.ac): Invoke gl_FUNC_TIMES.
18994
18995 2009-12-31  Bruno Haible  <bruno@clisp.org>
18996
18997         Use AC_C_INLINE where necessary.
18998         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
18999         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
19000         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
19001         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
19002         * m4/mbfile.m4 (gl_MBFILE): Likewise.
19003         * m4/mbiter.m4 (gl_MBITER): Likewise.
19004         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
19005         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19006         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
19007         * modules/u64 (configure.ac): Likewise.
19008
19009 2009-12-31  Bruno Haible  <bruno@clisp.org>
19010
19011         Use AC_C_INLINE instead of module 'inline' where possible.
19012         * modules/inline (Description): Clarify purpose.
19013         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
19014         * modules/count-one-bits (Depends-on): Remove inline.
19015         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
19016         * modules/openat (Depends-on): Remove inline.
19017         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
19018         instead of depending on module 'inline'.
19019         * modules/filevercmp (Depends-on, configure.ac): Likewise.
19020         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
19021         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
19022         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
19023         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
19024         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
19025         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
19026         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
19027         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
19028         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
19029         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
19030         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
19031         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
19032         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
19033         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
19034         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
19035         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
19036         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
19037         Likewise.
19038         * modules/unictype/property-ascii-hex-digit (Depends-on,
19039         configure.ac): Likewise.
19040         * modules/unictype/property-bidi-arabic-digit (Depends-on,
19041         configure.ac): Likewise.
19042         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
19043         configure.ac): Likewise.
19044         * modules/unictype/property-bidi-block-separator (Depends-on,
19045         configure.ac): Likewise.
19046         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
19047         configure.ac): Likewise.
19048         * modules/unictype/property-bidi-common-separator (Depends-on,
19049         configure.ac): Likewise.
19050         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
19051         Likewise.
19052         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
19053         configure.ac): Likewise.
19054         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
19055         configure.ac): Likewise.
19056         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
19057         configure.ac): Likewise.
19058         * modules/unictype/property-bidi-european-digit (Depends-on,
19059         configure.ac): Likewise.
19060         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
19061         configure.ac): Likewise.
19062         * modules/unictype/property-bidi-left-to-right (Depends-on,
19063         configure.ac): Likewise.
19064         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
19065         configure.ac): Likewise.
19066         * modules/unictype/property-bidi-other-neutral (Depends-on,
19067         configure.ac): Likewise.
19068         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
19069         Likewise.
19070         * modules/unictype/property-bidi-segment-separator (Depends-on,
19071         configure.ac): Likewise.
19072         * modules/unictype/property-bidi-whitespace (Depends-on,
19073         configure.ac): Likewise.
19074         * modules/unictype/property-combining (Depends-on, configure.ac):
19075         Likewise.
19076         * modules/unictype/property-composite (Depends-on, configure.ac):
19077         Likewise.
19078         * modules/unictype/property-currency-symbol (Depends-on,
19079         configure.ac): Likewise.
19080         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
19081         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
19082         Likewise.
19083         * modules/unictype/property-default-ignorable-code-point (Depends-on,
19084         configure.ac): Likewise.
19085         * modules/unictype/property-deprecated (Depends-on, configure.ac):
19086         Likewise.
19087         * modules/unictype/property-diacritic (Depends-on, configure.ac):
19088         Likewise.
19089         * modules/unictype/property-extender (Depends-on, configure.ac):
19090         Likewise.
19091         * modules/unictype/property-format-control (Depends-on, configure.ac):
19092         Likewise.
19093         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
19094         Likewise.
19095         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
19096         Likewise.
19097         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
19098         Likewise.
19099         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
19100         Likewise.
19101         * modules/unictype/property-hyphen (Depends-on, configure.ac):
19102         Likewise.
19103         * modules/unictype/property-id-continue (Depends-on, configure.ac):
19104         Likewise.
19105         * modules/unictype/property-id-start (Depends-on, configure.ac):
19106         Likewise.
19107         * modules/unictype/property-ideographic (Depends-on, configure.ac):
19108         Likewise.
19109         * modules/unictype/property-ids-binary-operator (Depends-on,
19110         configure.ac): Likewise.
19111         * modules/unictype/property-ids-trinary-operator (Depends-on,
19112         configure.ac): Likewise.
19113         * modules/unictype/property-ignorable-control (Depends-on,
19114         configure.ac): Likewise.
19115         * modules/unictype/property-iso-control (Depends-on, configure.ac):
19116         Likewise.
19117         * modules/unictype/property-join-control (Depends-on, configure.ac):
19118         Likewise.
19119         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
19120         Likewise.
19121         * modules/unictype/property-line-separator (Depends-on, configure.ac):
19122         Likewise.
19123         * modules/unictype/property-logical-order-exception (Depends-on,
19124         configure.ac): Likewise.
19125         * modules/unictype/property-lowercase (Depends-on, configure.ac):
19126         Likewise.
19127         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
19128         * modules/unictype/property-non-break (Depends-on, configure.ac):
19129         Likewise.
19130         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
19131         Likewise.
19132         * modules/unictype/property-numeric (Depends-on, configure.ac):
19133         Likewise.
19134         * modules/unictype/property-other-alphabetic (Depends-on,
19135         configure.ac): Likewise.
19136         * modules/unictype/property-other-default-ignorable-code-point
19137         (Depends-on, configure.ac): Likewise.
19138         * modules/unictype/property-other-grapheme-extend (Depends-on,
19139         configure.ac): Likewise.
19140         * modules/unictype/property-other-id-continue (Depends-on,
19141         configure.ac): Likewise.
19142         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
19143         Likewise.
19144         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
19145         Likewise.
19146         * modules/unictype/property-other-math (Depends-on, configure.ac):
19147         Likewise.
19148         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
19149         Likewise.
19150         * modules/unictype/property-paired-punctuation (Depends-on,
19151         configure.ac): Likewise.
19152         * modules/unictype/property-paragraph-separator (Depends-on,
19153         configure.ac): Likewise.
19154         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
19155         Likewise.
19156         * modules/unictype/property-pattern-white-space (Depends-on,
19157         configure.ac): Likewise.
19158         * modules/unictype/property-private-use (Depends-on, configure.ac):
19159         Likewise.
19160         * modules/unictype/property-punctuation (Depends-on, configure.ac):
19161         Likewise.
19162         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
19163         Likewise.
19164         * modules/unictype/property-radical (Depends-on, configure.ac):
19165         Likewise.
19166         * modules/unictype/property-sentence-terminal (Depends-on,
19167         configure.ac): Likewise.
19168         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
19169         Likewise.
19170         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
19171         * modules/unictype/property-terminal-punctuation (Depends-on,
19172         configure.ac): Likewise.
19173         * modules/unictype/property-titlecase (Depends-on, configure.ac):
19174         Likewise.
19175         * modules/unictype/property-unassigned-code-value (Depends-on,
19176         configure.ac): Likewise.
19177         * modules/unictype/property-unified-ideograph (Depends-on,
19178         configure.ac): Likewise.
19179         * modules/unictype/property-uppercase (Depends-on, configure.ac):
19180         Likewise.
19181         * modules/unictype/property-variation-selector (Depends-on,
19182         configure.ac): Likewise.
19183         * modules/unictype/property-white-space (Depends-on, configure.ac):
19184         Likewise.
19185         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
19186         Likewise.
19187         * modules/unictype/property-xid-start (Depends-on, configure.ac):
19188         Likewise.
19189         * modules/unictype/property-zero-width (Depends-on, configure.ac):
19190         Likewise.
19191         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
19192         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
19193         Likewise.
19194
19195 2009-12-31  Bruno Haible  <bruno@clisp.org>
19196
19197         Remove unnecessary AC_C_INLINE invocation.
19198         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
19199         since 2009-08-21.
19200
19201 2009-12-31  Jim Meyering  <meyering@redhat.com>
19202
19203         maint.mk: don't require explicit gpg_key_ID in cfg.mk
19204         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
19205         With this change, we can all remove the gpg_key_ID = ... definition
19206         from our respective cfg.mk files.
19207
19208         maint.mk: create announcement template in ~/, not in /tmp
19209         * top/maint.mk (emit_upload_commands): Adjust.
19210         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
19211         Remove temporary file, .ci-msg.
19212
19213 2009-12-31  Eric Blake  <ebb9@byu.net>
19214
19215         link-warning: always build headers with link warnings
19216         * modules/arpa_inet (Makefile.am): Always build replacement
19217         header.
19218         * modules/ctype (Makefile.am): Likewise.
19219         * modules/dirent (Makefile.am): Likewise.
19220         * modules/inttypes (Makefile.am): Likewise.
19221         * modules/langinfo (Makefile.am): Likewise.
19222         * modules/locale (Makefile.am): Likewise.
19223         * modules/spawn (Makefile.am): Likewise.
19224         * modules/sys_file (Makefile.am): Likewise.
19225         * modules/sys_ioctl (Makefile.am): Likewise.
19226         * modules/sys_select (Makefile.am): Likewise.
19227         * modules/sys_socket (Makefile.am): Likewise.
19228         * modules/sys_times (Makefile.am): Likewise.
19229         * modules/sys_utsname (Makefile.am): Likewise.
19230         * modules/sys_wait (Makefile.am): Likewise.
19231         * modules/wchar (Makefile.am): Likewise.
19232         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
19233         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
19234         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
19235         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
19236         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
19237         Likewise.
19238         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
19239         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
19240         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
19241         Likewise.
19242         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
19243         Likewise.
19244         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
19245         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
19246         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
19247         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19248         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19249         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
19250         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
19251         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
19252         (gl_WCHAR_H_DEFAULTS): Likewise.
19253
19254 2009-12-31  Eric Blake  <ebb9@byu.net>
19255
19256         signal, spawn: use link warnings
19257         * lib/signal.in.h (sigset_t): Make unconditional.
19258         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
19259         (sigpending, sigprocmask, sigaction): Add link warnings.
19260         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
19261         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
19262         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
19263         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
19264         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
19265         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
19266         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
19267         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
19268         (posix_spawn_file_actions_destroy)
19269         (posix_spawn_file_actions_addopen)
19270         (posix_spawn_file_actions_addclose)
19271         (posix_spawn_file_actions_adddup2): Likewise.
19272         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
19273         * tests/test-signal.c (main): Enhance test.
19274
19275         spawn: improve wrapper support
19276         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
19277         (gl_SPAWN_H_DEFAULTS): New defaults.
19278         * modules/spawn (Makefile.am): Substitute them.
19279         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
19280         Only declare if missing or broken.
19281
19282         sys_times, sys_utsname: use include_next
19283         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
19284         header.
19285         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
19286         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
19287         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
19288         * modules/sys_times (Depends-on): Add include_next.
19289         (Makefile.am): Substitute additional values.
19290         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
19291         * lib/sys_times.in.h (includes): Include native header, if
19292         available.
19293         * lib/sys_utsname.in.h (includes): Likewise.
19294         * tests/test-sys_times.c (main): Enhance test.
19295
19296         fdutimensat: revert prior patch
19297         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
19298         utimens.h.
19299         Reported by Bruno Haible.
19300
19301 2009-12-30  Eric Blake  <ebb9@byu.net>
19302
19303         sys_wait: drop link-warning dependency
19304         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
19305         link-warning efforts.
19306         * lib/sys_wait.in.h: Likewise.
19307
19308         fdutimensat: remove bogus dependency
19309         * modules/fdutimensat (Depends-on): Drop inline.
19310
19311         unistd: fix typo
19312         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
19313
19314 2009-12-30  Bruno Haible  <bruno@clisp.org>
19315
19316         Fix compilation error with Solaris cc.
19317         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
19318         * lib/unicase/u16-is-invariant.c: Likewise.
19319         * lib/unicase/u32-is-invariant.c: Likewise.
19320         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
19321
19322 2009-12-30  Bruno Haible  <bruno@clisp.org>
19323
19324         Fix test crash.
19325         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
19326         locales.
19327         Reported by Simon Josefsson <simon@josefsson.org>.
19328
19329 2009-12-30  Bruno Haible  <bruno@clisp.org>
19330
19331         Fix compilation error on most platforms.
19332         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
19333         Reported by Simon Josefsson <simon@josefsson.org>
19334         and Nelson H. F. Beebe <beebe@math.utah.edu>.
19335
19336 2009-12-30  Eric Blake  <ebb9@byu.net>
19337
19338         futimens, utimensat: work around ntfs-3g bug
19339         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
19340         a ctime bug is present, and expand workaround to cover ntfs-3g.
19341         * lib/utimens.c (fdutimens, lutimens): Likewise.
19342         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
19343         (validate_timespec): Adjust return value.
19344         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
19345         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19346         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
19347
19348 2009-12-29  Eric Blake  <ebb9@byu.net>
19349
19350         link-warning: make usage consistent
19351         * modules/ctype (Depends-on): Add link-warning.
19352         (Makefile.am): Update rules accordingly.
19353         * modules/langinfo (Depends-on, Makefile.am): Likewise.
19354         * modules/locale (Depends-on, Makefile.am): Likewise.
19355         * modules/sys_file (Makefile.am): Likewise.
19356         * modules/getopt-posix (Makefile.am): Delete unused link warning
19357         efforts.
19358         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
19359         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
19360         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
19361         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
19362
19363         stdio: remove unused variables
19364         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
19365         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
19366         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19367
19368         tests: test more substitute headers
19369         * modules/ctype-tests: New file.
19370         * modules/dirent-tests: Likewise.
19371         * modules/spawn-tests: Likewise.
19372         * modules/sys_file-tests: Likewise.
19373         * modules/sys_ioctl-tests: Likewise.
19374         * modules/sys_wait-tests: Likewise.
19375         * tests/test-ctype.c: Likewise.
19376         * tests/test-dirent.c: Likewise.
19377         * tests/test-spawn.c: Likewise.
19378         * tests/test-sys_file.c: Likewise.
19379         * tests/test-sys_ioctl.c: Likewise.
19380         * tests/test-sys_wait.c: Likewise.
19381         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
19382         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
19383         whether or not flock is in use.
19384
19385         tests: remove License section from module
19386         * modules/arpa_inet-tests: Remove unneeded section.
19387         * modules/byteswap-tests: Likewise.
19388         * modules/ceilf-tests: Likewise.
19389         * modules/ceill-tests: Likewise.
19390         * modules/crypto/des-tests: Likewise.
19391         * modules/crypto/gc-arcfour-tests: Likewise.
19392         * modules/crypto/gc-arctwo-tests: Likewise.
19393         * modules/crypto/gc-des-tests: Likewise.
19394         * modules/crypto/gc-hmac-md5-tests: Likewise.
19395         * modules/crypto/gc-hmac-sha1-tests: Likewise.
19396         * modules/crypto/gc-md2-tests: Likewise.
19397         * modules/crypto/gc-md4-tests: Likewise.
19398         * modules/crypto/gc-md5-tests: Likewise.
19399         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
19400         * modules/crypto/gc-rijndael-tests: Likewise.
19401         * modules/crypto/gc-sha1-tests: Likewise.
19402         * modules/crypto/gc-tests: Likewise.
19403         * modules/crypto/md2-tests: Likewise.
19404         * modules/crypto/md4-tests: Likewise.
19405         * modules/fcntl-h-tests: Likewise.
19406         * modules/floorf-tests: Likewise.
19407         * modules/floorl-tests: Likewise.
19408         * modules/frexp-nolibm-tests: Likewise.
19409         * modules/frexp-tests: Likewise.
19410         * modules/frexpl-nolibm-tests: Likewise.
19411         * modules/frexpl-tests: Likewise.
19412         * modules/getaddrinfo-tests: Likewise.
19413         * modules/inttypes-tests: Likewise.
19414         * modules/isfinite-tests: Likewise.
19415         * modules/isinf-tests: Likewise.
19416         * modules/ldexpl-tests: Likewise.
19417         * modules/locale-tests: Likewise.
19418         * modules/math-tests: Likewise.
19419         * modules/netdb-tests: Likewise.
19420         * modules/netinet_in-tests: Likewise.
19421         * modules/printf-frexp-tests: Likewise.
19422         * modules/printf-frexpl-tests: Likewise.
19423         * modules/priv-set-tests: Likewise.
19424         * modules/random_r-tests: Likewise.
19425         * modules/round-tests: Likewise.
19426         * modules/roundf-tests: Likewise.
19427         * modules/roundl-tests: Likewise.
19428         * modules/search-tests: Likewise.
19429         * modules/select-tests: Likewise.
19430         * modules/signal-tests: Likewise.
19431         * modules/stdbool-tests: Likewise.
19432         * modules/stddef-tests: Likewise.
19433         * modules/stdint-tests: Likewise.
19434         * modules/stdio-tests: Likewise.
19435         * modules/stdlib-tests: Likewise.
19436         * modules/string-tests: Likewise.
19437         * modules/strings-tests: Likewise.
19438         * modules/sys_select-tests: Likewise.
19439         * modules/sys_socket-tests: Likewise.
19440         * modules/sys_stat-tests: Likewise.
19441         * modules/sys_time-tests: Likewise.
19442         * modules/sys_utsname-tests: Likewise.
19443         * modules/sysexits-tests: Likewise.
19444         * modules/time-tests: Likewise.
19445         * modules/trunc-tests: Likewise.
19446         * modules/truncf-tests: Likewise.
19447         * modules/truncl-tests: Likewise.
19448         * modules/tsearch-tests: Likewise.
19449         * modules/unistd-tests: Likewise.
19450         * modules/wchar-tests: Likewise.
19451         * modules/wctype-tests: Likewise.
19452
19453         tests: fix license on several tests
19454         * tests/test-des.c: Update to GPLv3+.
19455         * tests/test-flock.c: Likewise.
19456         * tests/test-fsync.c: Likewise.
19457         * tests/test-futimens.h: Likewise.
19458         * tests/test-gc-arcfour.c: Likewise.
19459         * tests/test-gc-arctwo.c: Likewise.
19460         * tests/test-gc-des.c: Likewise.
19461         * tests/test-gc-hmac-md5.c: Likewise.
19462         * tests/test-gc-hmac-sha1.c: Likewise.
19463         * tests/test-gc-md2.c: Likewise.
19464         * tests/test-gc-md4.c: Likewise.
19465         * tests/test-gc-md5.c: Likewise.
19466         * tests/test-gc-pbkdf2-sha1.c: Likewise.
19467         * tests/test-gc-rijndael.c: Likewise.
19468         * tests/test-gc-sha1.c: Likewise.
19469         * tests/test-gc.c: Likewise.
19470         * tests/test-getcwd.c: Likewise.
19471         * tests/test-link.c: Likewise.
19472         * tests/test-link.h: Likewise.
19473         * tests/test-lutimens.h: Likewise.
19474         * tests/test-md2.c: Likewise.
19475         * tests/test-md4.c: Likewise.
19476         * tests/test-mkdir.h: Likewise.
19477         * tests/test-rename.c: Likewise.
19478         * tests/test-rename.h: Likewise.
19479         * tests/test-safe-alloc.c: Likewise.
19480         * tests/test-utimens-common.h: Likewise.
19481         * tests/test-utimens.h: Likewise.
19482
19483         maint: sync license texts
19484         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
19485         * doc/gpl-3.0.texi: Revert copyright year update.
19486         * doc/lgpl-3.0.texi: Likewise.
19487
19488 2009-12-29  Jim Meyering  <meyering@redhat.com>
19489
19490         update nearly all FSF copyright year lists to include 2009
19491         The files named by the following are exempted:
19492             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
19493               test -f "$dst" && { echo "$dst"; continue; }
19494               test -d "$dst" || continue
19495               echo "$dst"/$(basename "$src")
19496             done > exempt
19497             git ls-files tests/unictype >> exempt
19498         In the remaining files, convert to all-interval notation if
19499         - there is already at least one year interval like 2000-2003
19500         - the file is maintained by me
19501         - the file is in lib/uni*/, where that style already prevails
19502         Otherwise, use update-copyright's default.
19503
19504 2009-12-29  Simon Josefsson  <simon@josefsson.org>
19505         and Eric Blake  <ebb9@byu.net>
19506
19507         tests: don't require debug system() to pass
19508         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
19509         * tests/test-rmdir.h (test_rmdir_func): Likewise.
19510         * tests/test-unlink.h (test_unlink_func): Likewise.
19511         * tests/test-fstatat.c (main): ...into callers.
19512         * tests/test-lstat.c (main): Likewise.
19513         * tests/test-rmdir.c (main): Likewise.
19514         * tests/test-unlink.c (main): Likewise.
19515         * tests/test-unlinkat.c (main): Likewise.
19516         * tests/test-areadlink-with-size.c (main): Don't require a
19517         debug-only system call to pass, aiding cross-testing to mingw.
19518         * tests/test-areadlink.c (main): Likewise.
19519         * tests/test-areadlinkat-with-size.c (main): Likewise.
19520         * tests/test-areadlinkat.c (main): Likewise.
19521         * tests/test-canonicalize-lgpl.c (main): Likewise.
19522         * tests/test-canonicalize.c (main): Likewise.
19523         * tests/test-chown.c (main): Likewise.
19524         * tests/test-fchownat.c (main): Likewise.
19525         * tests/test-lchown.c (main): Likewise.
19526         * tests/test-fdutimensat.c (main): Likewise.
19527         * tests/test-futimens.c (main): Likewise.
19528         * tests/test-link.c (main): Likewise.
19529         * tests/test-linkat.c (main): Likewise.
19530         * tests/test-mkdir.c (main): Likewise.
19531         * tests/test-mkdirat.c (main): Likewise.
19532         * tests/test-mkfifo.c (main): Likewise.
19533         * tests/test-mkfifoat.c (main): Likewise.
19534         * tests/test-mknod.c (main): Likewise.
19535         * tests/test-readlink.c (main): Likewise.
19536         * tests/test-remove.c (main): Likewise.
19537         * tests/test-rename.c (main): Likewise.
19538         * tests/test-renameat.c (main): Likewise.
19539         * tests/test-symlink.c (main): Likewise.
19540         * tests/test-symlinkat.c (main): Likewise.
19541         * tests/test-utimens.c (main): Likewise.
19542         * tests/test-utimensat.c (main): Likewise.
19543
19544 2009-12-29  Simon Josefsson  <simon@josefsson.org>
19545
19546         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
19547         on $(UNUSED_PARAMETER_H) to avoid build failure.
19548
19549 2009-12-28  Jim Meyering  <meyering@redhat.com>
19550
19551         update-copyright: you may specify a max. line length other than 72
19552         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
19553
19554         maint: use consistent FSF copyright line syntax
19555         * lib/posixtm.c: Add missing comma in FSF copyright line.
19556         * lib/posixtm.h: Likewise.
19557         * lib/getugroups.c: Add missing ", Inc.".
19558
19559         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
19560         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
19561         FSF copyright line.  Remove trailing blanks.
19562
19563 2009-12-28  Eric Blake  <ebb9@byu.net>
19564
19565         test-dup2: reduce dependencies
19566         * modules/cloexec (Configure.ac): Set witness.
19567         * modules/dup2-tests (Depends-on): Drop cloexec.
19568         * tests/test-dup2.c (main): Skip portion of test if cloexec module
19569         not present.
19570         Suggested by Bruno Haible.
19571
19572 2009-12-26  Bruno Haible  <bruno@clisp.org>
19573
19574         Remove an unneeded dependency.
19575         * modules/fseterr (Depends-on): Remove dup2.
19576
19577 2009-12-26  Eric Blake  <ebb9@byu.net>
19578
19579         tests: use macros.h in more places
19580         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
19581         (ASSERT_STREAM): Provide default of stderr.
19582         * tests/test-dirent-safer.c: Include macros.h, using alternate
19583         stream for assertions.
19584         * tests/test-dup-safer.c: Likewise.
19585         * tests/test-freopen-safer.c: Likewise.
19586         * tests/test-getopt.c: Likewise.
19587         * tests/test-openat-safer.c: Likewise.
19588         * tests/test-pipe.c: Likewise.
19589         * tests/test-popen-safer.c: Likewise.
19590         * modules/dirent-safer-tests (Files): Include macros.h.
19591         * modules/unistd-safer-tests (Files): Likewise.
19592         * modules/freopen-safer-tests (Files): Likewise.
19593         * modules/getopt-posix-tests (Files): Likewise.
19594         * modules/openat-safer-tests (Files): Likewise.
19595         * modules/pipe-tests (Files): Likewise.
19596
19597 2009-12-26  Bruno Haible  <bruno@clisp.org>
19598
19599         javacomp: Portability fix.
19600         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
19601         that it also works on Solaris.
19602
19603 2009-12-26  Bruno Haible  <bruno@clisp.org>
19604
19605         localename: Fix storage allocation of gl_locale_name_thread's result.
19606         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
19607         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
19608         all platforms that have 'uselocale'.
19609         (gl_locale_name_thread_unsafe): New function, extracted from
19610         gl_locale_name_thread.
19611         (gl_locale_name_thread): Call struniq on all platforms that have
19612         'uselocale'.
19613         * tests/test-localename.c (test_locale_name_thread): Check that the
19614         resulting strings are permanently allocated.
19615         * modules/localename-tests (Depends-on): Add strdup.
19616
19617 2009-12-26  Bruno Haible  <bruno@clisp.org>
19618
19619         * tests/test-localename.c (categories): Fill in the strings.
19620
19621 2009-12-26  Jim Meyering  <meyering@redhat.com>
19622
19623         isdir: complete the removal of m4/isdir.m4
19624         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
19625
19626         isdir: clean up, since at least grep still uses it
19627         * lib/isdir.c: Include "isdir.h".
19628         (S_ISDIR): Remove now-unneeded definition.
19629         * modules/isdir (Files): Add lib/isdir.h.
19630         * lib/isdir.h: New file, with declaration.
19631         * m4/isdir.m4: Remove file -- unneeded.
19632
19633 2009-12-25  Bruno Haible  <bruno@clisp.org>
19634
19635         selinux-h: Make generated .h files standalone.
19636         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
19637         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
19638         * lib/se-selinux.in.h: Likewise.
19639         * modules/selinux-h (Depends-on): Add unused-parameter.
19640         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
19641         selinux/selinux.h and selinux/context.h.
19642         Suggested by Eric Blake.
19643
19644 2009-12-25  Bruno Haible  <bruno@clisp.org>
19645
19646         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
19647         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
19648         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
19649         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
19650         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
19651
19652 2009-12-24  Bruno Haible  <bruno@clisp.org>
19653
19654         openat: Fix warning.
19655         * lib/openat-proc.c: Include <unistd.h>.
19656
19657 2009-12-24  Bruno Haible  <bruno@clisp.org>
19658
19659         New module 'unused-parameter'.
19660         * build-aux/unused-parameter.h: New file, extracted from earlier
19661         gnulib-common.m4.
19662         * modules/unused-parameter: New file.
19663         * lib/unistr.h: Include unused-parameter.h.
19664         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
19665         _GL_UNUSED.
19666         * modules/unistr/base (Depends-on): Add unused-parameter.
19667
19668 2009-12-24  Bruno Haible  <bruno@clisp.org>
19669
19670         Add missing dependencies to 'extensions' module.
19671         * m4/extensions.m4: Add comment.
19672         * modules/accept4 (Depends-on): Add extensions.
19673         * modules/dup3 (Depends-on): Likewise.
19674         * modules/fcntl (Depends-on): Likewise.
19675         * modules/futimens (Depends-on): Likewise.
19676         * modules/mknod (Depends-on): Likewise.
19677         * modules/pipe2 (Depends-on): Likewise.
19678         * modules/stat-time (Depends-on): Likewise.
19679         * modules/strcasestr-simple (Depends-on): Likewise.
19680         * modules/strsignal (Depends-on): Likewise.
19681         * modules/utimensat (Depends-on): Likewise.
19682         * modules/localcharset (Depends-on): Likewise. Needed because of
19683         gl_FCNTL_O_FLAGS.
19684         * modules/wcrtomb (Depends-on): Likewise. Needed because of
19685         AC_TYPE_MBSTATE_T.
19686         * modules/wcsnrtombs (Depends-on): Likewise.
19687         * modules/wcsrtombs (Depends-on): Likewise.
19688
19689 2009-12-24  Bruno Haible  <bruno@clisp.org>
19690
19691         binary-io: Avoid gcc warning due to SET_BINARY.
19692         * lib/binary-io.h (SET_BINARY): Cast the result to void.
19693         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
19694
19695 2009-12-24  Bruno Haible  <bruno@clisp.org>
19696
19697         Avoid future namespace pollution on glibc systems.
19698         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
19699         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
19700         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
19701         glibc systems.
19702
19703 2009-12-24  Bruno Haible  <bruno@clisp.org>
19704
19705         Refactor common macros used in tests.
19706         * tests/macros.h: New file.
19707         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
19708         and/or <stdlib.h>, if appropriate.
19709         (ASSERT, SIZEOF): Remove macros.
19710         * tests/test-areadlink-with-size.c: Likewise.
19711         * tests/test-areadlinkat.c: Likewise.
19712         * tests/test-areadlinkat-with-size.c: Likewise.
19713         * tests/test-argmatch.c: Likewise.
19714         * tests/test-argv-iter.c: Likewise.
19715         * tests/test-array-mergesort.c: Likewise.
19716         * tests/test-array_list.c: Likewise.
19717         * tests/test-array_oset.c: Likewise.
19718         * tests/test-avltree_list.c: Likewise.
19719         * tests/test-avltree_oset.c: Likewise.
19720         * tests/test-avltreehash_list.c: Likewise.
19721         * tests/test-base64.c: Likewise.
19722         * tests/test-binary-io.c: Likewise.
19723         * tests/test-bitrotate.c: Likewise.
19724         * tests/test-btowc.c: Likewise.
19725         * tests/test-byteswap.c: Likewise.
19726         * tests/test-c-ctype.c: Likewise.
19727         * tests/test-c-stack.c: Likewise.
19728         * tests/test-c-strcasecmp.c: Likewise.
19729         * tests/test-c-strcasestr.c: Likewise.
19730         * tests/test-c-strncasecmp.c: Likewise.
19731         * tests/test-c-strstr.c: Likewise.
19732         * tests/test-canonicalize-lgpl.c: Likewise.
19733         * tests/test-canonicalize.c: Likewise.
19734         * tests/test-carray_list.c: Likewise.
19735         * tests/test-ceilf1.c: Likewise.
19736         * tests/test-ceilf2.c: Likewise.
19737         * tests/test-ceill.c: Likewise.
19738         * tests/test-chown.c: Likewise.
19739         * tests/test-cloexec.c: Likewise.
19740         * tests/test-copy-acl.c: Likewise.
19741         * tests/test-copy-file.c: Likewise.
19742         * tests/test-count-one-bits.c: Likewise.
19743         * tests/test-dprintf-posix.c: Likewise.
19744         * tests/test-dup2.c: Likewise.
19745         * tests/test-dup3.c: Likewise.
19746         * tests/test-duplocale.c: Likewise.
19747         * tests/test-fbufmode.c: Likewise.
19748         * tests/test-fchdir.c: Likewise.
19749         * tests/test-fchownat.c: Likewise.
19750         * tests/test-fcntl-safer.c: Likewise.
19751         * tests/test-fcntl.c: Likewise.
19752         * tests/test-fdopendir.c: Likewise.
19753         * tests/test-fdutimensat.c: Likewise.
19754         * tests/test-fflush2.c: Likewise.
19755         * tests/test-file-has-acl.c: Likewise.
19756         * tests/test-filevercmp.c: Likewise.
19757         * tests/test-flock.c: Likewise.
19758         * tests/test-floorf1.c: Likewise.
19759         * tests/test-floorf2.c: Likewise.
19760         * tests/test-floorl.c: Likewise.
19761         * tests/test-fnmatch.c: Likewise.
19762         * tests/test-fopen.h: Likewise.
19763         * tests/test-fpending.c: Likewise.
19764         * tests/test-fprintf-posix.c: Likewise.
19765         * tests/test-fpurge.c: Likewise.
19766         * tests/test-freadable.c: Likewise.
19767         * tests/test-freadahead.c: Likewise.
19768         * tests/test-freading.c: Likewise.
19769         * tests/test-freadptr.c: Likewise.
19770         * tests/test-freadptr2.c: Likewise.
19771         * tests/test-freadseek.c: Likewise.
19772         * tests/test-freopen.c: Likewise.
19773         * tests/test-frexp.c: Likewise.
19774         * tests/test-frexpl.c: Likewise.
19775         * tests/test-fseek.c: Likewise.
19776         * tests/test-fseeko.c: Likewise.
19777         * tests/test-fstatat.c: Likewise.
19778         * tests/test-fstrcmp.c: Likewise.
19779         * tests/test-fsync.c: Likewise.
19780         * tests/test-ftell.c: Likewise.
19781         * tests/test-ftello.c: Likewise.
19782         * tests/test-func.c: Likewise.
19783         * tests/test-futimens.c: Likewise.
19784         * tests/test-fwritable.c: Likewise.
19785         * tests/test-fwriting.c: Likewise.
19786         * tests/test-getcwd.c: Likewise.
19787         * tests/test-getdate.c: Likewise.
19788         * tests/test-getdelim.c: Likewise.
19789         * tests/test-getdtablesize.c: Likewise.
19790         * tests/test-getgroups.c: Likewise.
19791         * tests/test-getline.c: Likewise.
19792         * tests/test-getndelim2.c: Likewise.
19793         * tests/test-glob.c: Likewise.
19794         * tests/test-hash.c: Likewise.
19795         * tests/test-i-ring.c: Likewise.
19796         * tests/test-iconv-utf.c: Likewise.
19797         * tests/test-iconv.c: Likewise.
19798         * tests/test-idpriv-drop.c: Likewise.
19799         * tests/test-idpriv-droptemp.c: Likewise.
19800         * tests/test-inet_ntop.c: Likewise.
19801         * tests/test-inet_pton.c: Likewise.
19802         * tests/test-isblank.c: Likewise.
19803         * tests/test-isfinite.c: Likewise.
19804         * tests/test-isinf.c: Likewise.
19805         * tests/test-isnan.c: Likewise.
19806         * tests/test-isnand.h: Likewise.
19807         * tests/test-isnanf.h: Likewise.
19808         * tests/test-isnanl.h: Likewise.
19809         * tests/test-lchown.c: Likewise.
19810         * tests/test-ldexpl.c: Likewise.
19811         * tests/test-link.c: Likewise.
19812         * tests/test-linkat.c: Likewise.
19813         * tests/test-linked_list.c: Likewise.
19814         * tests/test-linkedhash_list.c: Likewise.
19815         * tests/test-localename.c: Likewise.
19816         * tests/test-lseek.c: Likewise.
19817         * tests/test-lstat.c: Likewise.
19818         * tests/test-mbmemcasecmp.c: Likewise.
19819         * tests/test-mbmemcasecoll.c: Likewise.
19820         * tests/test-mbrtowc.c: Likewise.
19821         * tests/test-mbscasecmp.c: Likewise.
19822         * tests/test-mbscasestr1.c: Likewise.
19823         * tests/test-mbscasestr2.c: Likewise.
19824         * tests/test-mbscasestr3.c: Likewise.
19825         * tests/test-mbscasestr4.c: Likewise.
19826         * tests/test-mbschr.c: Likewise.
19827         * tests/test-mbscspn.c: Likewise.
19828         * tests/test-mbsinit.c: Likewise.
19829         * tests/test-mbsncasecmp.c: Likewise.
19830         * tests/test-mbsnrtowcs.c: Likewise.
19831         * tests/test-mbspbrk.c: Likewise.
19832         * tests/test-mbspcasecmp.c: Likewise.
19833         * tests/test-mbsrchr.c: Likewise.
19834         * tests/test-mbsrtowcs.c: Likewise.
19835         * tests/test-mbsspn.c: Likewise.
19836         * tests/test-mbsstr1.c: Likewise.
19837         * tests/test-mbsstr2.c: Likewise.
19838         * tests/test-mbsstr3.c: Likewise.
19839         * tests/test-memchr.c: Likewise.
19840         * tests/test-memchr2.c: Likewise.
19841         * tests/test-memcmp.c: Likewise.
19842         * tests/test-memmem.c: Likewise.
19843         * tests/test-memrchr.c: Likewise.
19844         * tests/test-mkdir.c: Likewise.
19845         * tests/test-mkdirat.c: Likewise.
19846         * tests/test-mkfifo.c: Likewise.
19847         * tests/test-mkfifoat.c: Likewise.
19848         * tests/test-mknod.c: Likewise.
19849         * tests/test-nanosleep.c: Likewise.
19850         * tests/test-nl_langinfo.c: Likewise.
19851         * tests/test-obstack-printf.c: Likewise.
19852         * tests/test-open.c: Likewise.
19853         * tests/test-openat.c: Likewise.
19854         * tests/test-pipe-filter-gi1.c: Likewise.
19855         * tests/test-pipe-filter-gi2-main.c: Likewise.
19856         * tests/test-pipe-filter-ii1.c: Likewise.
19857         * tests/test-pipe-filter-ii2-main.c: Likewise.
19858         * tests/test-pipe2.c: Likewise.
19859         * tests/test-popen.h: Likewise.
19860         * tests/test-posixtm.c: Likewise.
19861         * tests/test-pread.c: Likewise.
19862         * tests/test-printf-frexp.c: Likewise.
19863         * tests/test-printf-frexpl.c: Likewise.
19864         * tests/test-printf-posix.c: Likewise.
19865         * tests/test-priv-set.c: Likewise.
19866         * tests/test-quotearg.c: Likewise.
19867         * tests/test-random_r.c: Likewise.
19868         * tests/test-rawmemchr.c: Likewise.
19869         * tests/test-rbtree_list.c: Likewise.
19870         * tests/test-rbtree_oset.c: Likewise.
19871         * tests/test-rbtreehash_list.c: Likewise.
19872         * tests/test-readlink.c: Likewise.
19873         * tests/test-remove.c: Likewise.
19874         * tests/test-rename.c: Likewise.
19875         * tests/test-renameat.c: Likewise.
19876         * tests/test-rmdir.c: Likewise.
19877         * tests/test-round1.c: Likewise.
19878         * tests/test-roundf1.c: Likewise.
19879         * tests/test-roundl.c: Likewise.
19880         * tests/test-safe-alloc.c: Likewise.
19881         * tests/test-sameacls.c: Likewise.
19882         * tests/test-set-mode-acl.c: Likewise.
19883         * tests/test-setenv.c: Likewise.
19884         * tests/test-sigaction.c: Likewise.
19885         * tests/test-signbit.c: Likewise.
19886         * tests/test-sleep.c: Likewise.
19887         * tests/test-snprintf-posix.c: Likewise.
19888         * tests/test-snprintf.c: Likewise.
19889         * tests/test-sprintf-posix.c: Likewise.
19890         * tests/test-stat-time.c: Likewise.
19891         * tests/test-stat.c: Likewise.
19892         * tests/test-strcasestr.c: Likewise.
19893         * tests/test-strchrnul.c: Likewise.
19894         * tests/test-strerror.c: Likewise.
19895         * tests/test-striconv.c: Likewise.
19896         * tests/test-striconveh.c: Likewise.
19897         * tests/test-striconveha.c: Likewise.
19898         * tests/test-strsignal.c: Likewise.
19899         * tests/test-strstr.c: Likewise.
19900         * tests/test-strtod.c: Likewise.
19901         * tests/test-strverscmp.c: Likewise.
19902         * tests/test-symlink.c: Likewise.
19903         * tests/test-symlinkat.c: Likewise.
19904         * tests/test-trunc1.c: Likewise.
19905         * tests/test-trunc2.c: Likewise.
19906         * tests/test-truncf1.c: Likewise.
19907         * tests/test-truncf2.c: Likewise.
19908         * tests/test-truncl.c: Likewise.
19909         * tests/test-uname.c: Likewise.
19910         * tests/test-unlink.c: Likewise.
19911         * tests/test-unlinkat.c: Likewise.
19912         * tests/test-unsetenv.c: Likewise.
19913         * tests/test-usleep.c: Likewise.
19914         * tests/test-utimens.c: Likewise.
19915         * tests/test-utimensat.c: Likewise.
19916         * tests/test-vasnprintf-posix.c: Likewise.
19917         * tests/test-vasnprintf-posix2.c: Likewise.
19918         * tests/test-vasnprintf.c: Likewise.
19919         * tests/test-vasprintf-posix.c: Likewise.
19920         * tests/test-vasprintf.c: Likewise.
19921         * tests/test-vdprintf-posix.c: Likewise.
19922         * tests/test-vfprintf-posix.c: Likewise.
19923         * tests/test-vprintf-posix.c: Likewise.
19924         * tests/test-vsnprintf-posix.c: Likewise.
19925         * tests/test-vsnprintf.c: Likewise.
19926         * tests/test-vsprintf-posix.c: Likewise.
19927         * tests/test-wcrtomb.c: Likewise.
19928         * tests/test-wcsnrtombs.c: Likewise.
19929         * tests/test-wcsrtombs.c: Likewise.
19930         * tests/test-wctype.c: Likewise.
19931         * tests/test-wcwidth.c: Likewise.
19932         * tests/test-xfprintf-posix.c: Likewise.
19933         * tests/test-xmemdup0.c: Likewise.
19934         * tests/test-xprintf-posix.c: Likewise.
19935         * tests/test-xvasprintf.c: Likewise.
19936         * tests/unicase/test-locale-language.c: Likewise.
19937         * tests/unicase/test-mapping-part1.h: Likewise.
19938         * tests/unicase/test-predicate-part1.h: Likewise.
19939         * tests/unicase/test-u8-casecmp.c: Likewise.
19940         * tests/unicase/test-u8-casecoll.c: Likewise.
19941         * tests/unicase/test-u8-casefold.c: Likewise.
19942         * tests/unicase/test-u8-is-cased.c: Likewise.
19943         * tests/unicase/test-u8-is-casefolded.c: Likewise.
19944         * tests/unicase/test-u8-is-lowercase.c: Likewise.
19945         * tests/unicase/test-u8-is-titlecase.c: Likewise.
19946         * tests/unicase/test-u8-is-uppercase.c: Likewise.
19947         * tests/unicase/test-u8-tolower.c: Likewise.
19948         * tests/unicase/test-u8-totitle.c: Likewise.
19949         * tests/unicase/test-u8-toupper.c: Likewise.
19950         * tests/unicase/test-u16-casecmp.c: Likewise.
19951         * tests/unicase/test-u16-casecoll.c: Likewise.
19952         * tests/unicase/test-u16-casefold.c: Likewise.
19953         * tests/unicase/test-u16-is-cased.c: Likewise.
19954         * tests/unicase/test-u16-is-casefolded.c: Likewise.
19955         * tests/unicase/test-u16-is-lowercase.c: Likewise.
19956         * tests/unicase/test-u16-is-titlecase.c: Likewise.
19957         * tests/unicase/test-u16-is-uppercase.c: Likewise.
19958         * tests/unicase/test-u16-tolower.c: Likewise.
19959         * tests/unicase/test-u16-totitle.c: Likewise.
19960         * tests/unicase/test-u16-toupper.c: Likewise.
19961         * tests/unicase/test-u32-casecmp.c: Likewise.
19962         * tests/unicase/test-u32-casecoll.c: Likewise.
19963         * tests/unicase/test-u32-casefold.c: Likewise.
19964         * tests/unicase/test-u32-is-cased.c: Likewise.
19965         * tests/unicase/test-u32-is-casefolded.c: Likewise.
19966         * tests/unicase/test-u32-is-lowercase.c: Likewise.
19967         * tests/unicase/test-u32-is-titlecase.c: Likewise.
19968         * tests/unicase/test-u32-is-uppercase.c: Likewise.
19969         * tests/unicase/test-u32-tolower.c: Likewise.
19970         * tests/unicase/test-u32-totitle.c: Likewise.
19971         * tests/unicase/test-u32-toupper.c: Likewise.
19972         * tests/unicase/test-ulc-casecmp.c: Likewise.
19973         * tests/unicase/test-ulc-casecoll.c: Likewise.
19974         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
19975         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
19976         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
19977         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
19978         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
19979         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
19980         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
19981         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
19982         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
19983         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
19984         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
19985         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
19986         * tests/unictype/test-bidi_byname.c: Likewise.
19987         * tests/unictype/test-bidi_name.c: Likewise.
19988         * tests/unictype/test-bidi_of.c: Likewise.
19989         * tests/unictype/test-bidi_test.c: Likewise.
19990         * tests/unictype/test-block_list.c: Likewise.
19991         * tests/unictype/test-block_of.c: Likewise.
19992         * tests/unictype/test-block_test.c: Likewise.
19993         * tests/unictype/test-categ_and.c: Likewise.
19994         * tests/unictype/test-categ_and_not.c: Likewise.
19995         * tests/unictype/test-categ_byname.c: Likewise.
19996         * tests/unictype/test-categ_name.c: Likewise.
19997         * tests/unictype/test-categ_none.c: Likewise.
19998         * tests/unictype/test-categ_of.c: Likewise.
19999         * tests/unictype/test-categ_or.c: Likewise.
20000         * tests/unictype/test-categ_test_withtable.c: Likewise.
20001         * tests/unictype/test-combining.c: Likewise.
20002         * tests/unictype/test-decdigit.c: Likewise.
20003         * tests/unictype/test-digit.c: Likewise.
20004         * tests/unictype/test-mirror.c: Likewise.
20005         * tests/unictype/test-numeric.c: Likewise.
20006         * tests/unictype/test-pr_byname.c: Likewise.
20007         * tests/unictype/test-pr_test.c: Likewise.
20008         * tests/unictype/test-predicate-part1.h: Likewise.
20009         * tests/unictype/test-scripts.c: Likewise.
20010         * tests/unictype/test-sy_c_ident.c: Likewise.
20011         * tests/unictype/test-sy_java_ident.c: Likewise.
20012         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
20013         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
20014         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
20015         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
20016         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
20017         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
20018         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
20019         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
20020         * tests/uninorm/test-canonical-decomposition.c: Likewise.
20021         * tests/uninorm/test-compat-decomposition.c: Likewise.
20022         * tests/uninorm/test-composition.c: Likewise.
20023         * tests/uninorm/test-decomposing-form.c: Likewise.
20024         * tests/uninorm/test-decomposition.c: Likewise.
20025         * tests/uninorm/test-u8-nfc.c: Likewise.
20026         * tests/uninorm/test-u8-nfd.c: Likewise.
20027         * tests/uninorm/test-u8-nfkc.c: Likewise.
20028         * tests/uninorm/test-u8-nfkd.c: Likewise.
20029         * tests/uninorm/test-u8-normcmp.c: Likewise.
20030         * tests/uninorm/test-u8-normcoll.c: Likewise.
20031         * tests/uninorm/test-u16-nfc.c: Likewise.
20032         * tests/uninorm/test-u16-nfd.c: Likewise.
20033         * tests/uninorm/test-u16-nfkc.c: Likewise.
20034         * tests/uninorm/test-u16-nfkd.c: Likewise.
20035         * tests/uninorm/test-u16-normcmp.c: Likewise.
20036         * tests/uninorm/test-u16-normcoll.c: Likewise.
20037         * tests/uninorm/test-u32-nfc.c: Likewise.
20038         * tests/uninorm/test-u32-nfd.c: Likewise.
20039         * tests/uninorm/test-u32-nfkc.c: Likewise.
20040         * tests/uninorm/test-u32-nfkd.c: Likewise.
20041         * tests/uninorm/test-u32-normalize-big.c: Likewise.
20042         * tests/uninorm/test-u32-normcmp.c: Likewise.
20043         * tests/uninorm/test-u32-normcoll.c: Likewise.
20044         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
20045         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
20046         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
20047         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
20048         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
20049         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
20050         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
20051         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
20052         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
20053         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
20054         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
20055         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
20056         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
20057         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
20058         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
20059         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
20060         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
20061         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
20062         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
20063         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
20064         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
20065         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
20066         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
20067         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
20068         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
20069         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
20070         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
20071         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
20072         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
20073         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
20074         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
20075         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
20076         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
20077         * tests/uniwidth/test-u8-strwidth.c: Likewise.
20078         * tests/uniwidth/test-u8-width.c: Likewise.
20079         * tests/uniwidth/test-u16-strwidth.c: Likewise.
20080         * tests/uniwidth/test-u16-width.c: Likewise.
20081         * tests/uniwidth/test-u32-strwidth.c: Likewise.
20082         * tests/uniwidth/test-u32-width.c: Likewise.
20083         * tests/uniwidth/test-uc_width.c: Likewise.
20084         * tests/uniwidth/test-uc_width2.c: Likewise.
20085         * modules/acl-tests (Files): Add tests/macros.h.
20086         * modules/areadlink-tests (Files): Likewise.
20087         * modules/areadlink-with-size-tests (Files): Likewise.
20088         * modules/areadlinkat-tests (Files): Likewise.
20089         * modules/areadlinkat-with-size-tests (Files): Likewise.
20090         * modules/argmatch-tests (Files): Likewise.
20091         * modules/argv-iter-tests (Files): Likewise.
20092         * modules/array-list-tests (Files): Likewise.
20093         * modules/array-mergesort-tests (Files): Likewise.
20094         * modules/array-oset-tests (Files): Likewise.
20095         * modules/avltree-list-tests (Files): Likewise.
20096         * modules/avltree-oset-tests (Files): Likewise.
20097         * modules/avltreehash-list-tests (Files): Likewise.
20098         * modules/base64-tests (Files): Likewise.
20099         * modules/binary-io-tests (Files): Likewise.
20100         * modules/bitrotate-tests (Files): Likewise.
20101         * modules/btowc-tests (Files): Likewise.
20102         * modules/byteswap-tests (Files): Likewise.
20103         * modules/c-ctype-tests (Files): Likewise.
20104         * modules/c-stack-tests (Files): Likewise.
20105         * modules/c-strcase-tests (Files): Likewise.
20106         * modules/c-strcasestr-tests (Files): Likewise.
20107         * modules/c-strstr-tests (Files): Likewise.
20108         * modules/canonicalize-lgpl-tests (Files): Likewise.
20109         * modules/canonicalize-tests (Files): Likewise.
20110         * modules/carray-list-tests (Files): Likewise.
20111         * modules/ceilf-tests (Files): Likewise.
20112         * modules/ceill-tests (Files): Likewise.
20113         * modules/chown-tests (Files): Likewise.
20114         * modules/cloexec-tests (Files): Likewise.
20115         * modules/copy-file-tests (Files): Likewise.
20116         * modules/count-one-bits-tests (Files): Likewise.
20117         * modules/dprintf-posix-tests (Files): Likewise.
20118         * modules/dup2-tests (Files): Likewise.
20119         * modules/dup3-tests (Files): Likewise.
20120         * modules/duplocale-tests (Files): Likewise.
20121         * modules/fbufmode-tests (Files): Likewise.
20122         * modules/fchdir-tests (Files): Likewise.
20123         * modules/fcntl-safer-tests (Files): Likewise.
20124         * modules/fcntl-tests (Files): Likewise.
20125         * modules/fdopendir-tests (Files): Likewise.
20126         * modules/fdutimensat-tests (Files): Likewise.
20127         * modules/fflush-tests (Files): Likewise.
20128         * modules/filevercmp-tests (Files): Likewise.
20129         * modules/flock-tests (Files): Likewise.
20130         * modules/floorf-tests (Files): Likewise.
20131         * modules/floorl-tests (Files): Likewise.
20132         * modules/fnmatch-tests (Files): Likewise.
20133         * modules/fopen-safer-tests (Files): Likewise.
20134         * modules/fopen-tests (Files): Likewise.
20135         * modules/fpending-tests (Files): Likewise.
20136         * modules/fprintf-posix-tests (Files): Likewise.
20137         * modules/fpurge-tests (Files): Likewise.
20138         * modules/freadable-tests (Files): Likewise.
20139         * modules/freadahead-tests (Files): Likewise.
20140         * modules/freading-tests (Files): Likewise.
20141         * modules/freadptr-tests (Files): Likewise.
20142         * modules/freadseek-tests (Files): Likewise.
20143         * modules/freopen-tests (Files): Likewise.
20144         * modules/frexp-nolibm-tests (Files): Likewise.
20145         * modules/frexp-tests (Files): Likewise.
20146         * modules/frexpl-nolibm-tests (Files): Likewise.
20147         * modules/frexpl-tests (Files): Likewise.
20148         * modules/fseek-tests (Files): Likewise.
20149         * modules/fseeko-tests (Files): Likewise.
20150         * modules/fstrcmp-tests (Files): Likewise.
20151         * modules/fsync-tests (Files): Likewise.
20152         * modules/ftell-tests (Files): Likewise.
20153         * modules/ftello-tests (Files): Likewise.
20154         * modules/func-tests (Files): Likewise.
20155         * modules/futimens-tests (Files): Likewise.
20156         * modules/fwritable-tests (Files): Likewise.
20157         * modules/fwriting-tests (Files): Likewise.
20158         * modules/getcwd-tests (Files): Likewise.
20159         * modules/getdate-tests (Files): Likewise.
20160         * modules/getdelim-tests (Files): Likewise.
20161         * modules/getdtablesize-tests (Files): Likewise.
20162         * modules/getgroups-tests (Files): Likewise.
20163         * modules/getline-tests (Files): Likewise.
20164         * modules/getndelim2-tests (Files): Likewise.
20165         * modules/glob-tests (Files): Likewise.
20166         * modules/hash-tests (Files): Likewise.
20167         * modules/i-ring-tests (Files): Likewise.
20168         * modules/iconv-tests (Files): Likewise.
20169         * modules/iconv_open-utf-tests (Files): Likewise.
20170         * modules/idpriv-drop-tests (Files): Likewise.
20171         * modules/idpriv-droptemp-tests (Files): Likewise.
20172         * modules/inet_ntop-tests (Files): Likewise.
20173         * modules/inet_pton-tests (Files): Likewise.
20174         * modules/isblank-tests (Files): Likewise.
20175         * modules/isfinite-tests (Files): Likewise.
20176         * modules/isinf-tests (Files): Likewise.
20177         * modules/isnan-tests (Files): Likewise.
20178         * modules/isnand-nolibm-tests (Files): Likewise.
20179         * modules/isnand-tests (Files): Likewise.
20180         * modules/isnanf-nolibm-tests (Files): Likewise.
20181         * modules/isnanf-tests (Files): Likewise.
20182         * modules/isnanl-nolibm-tests (Files): Likewise.
20183         * modules/isnanl-tests (Files): Likewise.
20184         * modules/lchown-tests (Files): Likewise.
20185         * modules/ldexpl-tests (Files): Likewise.
20186         * modules/link-tests (Files): Likewise.
20187         * modules/linkat-tests (Files): Likewise.
20188         * modules/linked-list-tests (Files): Likewise.
20189         * modules/linkedhash-list-tests (Files): Likewise.
20190         * modules/localename-tests (Files): Likewise.
20191         * modules/lseek-tests (Files): Likewise.
20192         * modules/lstat-tests (Files): Likewise.
20193         * modules/mbmemcasecmp-tests (Files): Likewise.
20194         * modules/mbmemcasecoll-tests (Files): Likewise.
20195         * modules/mbrtowc-tests (Files): Likewise.
20196         * modules/mbscasecmp-tests (Files): Likewise.
20197         * modules/mbscasestr-tests (Files): Likewise.
20198         * modules/mbschr-tests (Files): Likewise.
20199         * modules/mbscspn-tests (Files): Likewise.
20200         * modules/mbsinit-tests (Files): Likewise.
20201         * modules/mbsncasecmp-tests (Files): Likewise.
20202         * modules/mbsnrtowcs-tests (Files): Likewise.
20203         * modules/mbspbrk-tests (Files): Likewise.
20204         * modules/mbspcasecmp-tests (Files): Likewise.
20205         * modules/mbsrchr-tests (Files): Likewise.
20206         * modules/mbsrtowcs-tests (Files): Likewise.
20207         * modules/mbsspn-tests (Files): Likewise.
20208         * modules/mbsstr-tests (Files): Likewise.
20209         * modules/memchr-tests (Files): Likewise.
20210         * modules/memchr2-tests (Files): Likewise.
20211         * modules/memcmp-tests (Files): Likewise.
20212         * modules/memmem-tests (Files): Likewise.
20213         * modules/memrchr-tests (Files): Likewise.
20214         * modules/mkdir-tests (Files): Likewise.
20215         * modules/mkfifo-tests (Files): Likewise.
20216         * modules/mkfifoat-tests (Files): Likewise.
20217         * modules/mknod-tests (Files): Likewise.
20218         * modules/nanosleep-tests (Files): Likewise.
20219         * modules/nl_langinfo-tests (Files): Likewise.
20220         * modules/obstack-printf-tests (Files): Likewise.
20221         * modules/open-tests (Files): Likewise.
20222         * modules/openat-tests (Files): Likewise.
20223         * modules/pipe-filter-gi-tests (Files): Likewise.
20224         * modules/pipe-filter-ii-tests (Files): Likewise.
20225         * modules/pipe2-tests (Files): Likewise.
20226         * modules/popen-safer-tests (Files): Likewise.
20227         * modules/popen-tests (Files): Likewise.
20228         * modules/posixtm-tests (Files): Likewise.
20229         * modules/pread-tests (Files): Likewise.
20230         * modules/printf-frexp-tests (Files): Likewise.
20231         * modules/printf-frexpl-tests (Files): Likewise.
20232         * modules/printf-posix-tests (Files): Likewise.
20233         * modules/priv-set-tests (Files): Likewise.
20234         * modules/quotearg-tests (Files): Likewise.
20235         * modules/random_r-tests (Files): Likewise.
20236         * modules/rawmemchr-tests (Files): Likewise.
20237         * modules/rbtree-list-tests (Files): Likewise.
20238         * modules/rbtree-oset-tests (Files): Likewise.
20239         * modules/rbtreehash-list-tests (Files): Likewise.
20240         * modules/readlink-tests (Files): Likewise.
20241         * modules/remove-tests (Files): Likewise.
20242         * modules/rename-tests (Files): Likewise.
20243         * modules/renameat-tests (Files): Likewise.
20244         * modules/rmdir-tests (Files): Likewise.
20245         * modules/round-tests (Files): Likewise.
20246         * modules/roundf-tests (Files): Likewise.
20247         * modules/roundl-tests (Files): Likewise.
20248         * modules/safe-alloc-tests (Files): Likewise.
20249         * modules/setenv-tests (Files): Likewise.
20250         * modules/sigaction-tests (Files): Likewise.
20251         * modules/signbit-tests (Files): Likewise.
20252         * modules/sleep-tests (Files): Likewise.
20253         * modules/snprintf-posix-tests (Files): Likewise.
20254         * modules/snprintf-tests (Files): Likewise.
20255         * modules/sprintf-posix-tests (Files): Likewise.
20256         * modules/stat-tests (Files): Likewise.
20257         * modules/stat-time-tests (Files): Likewise.
20258         * modules/strcasestr-tests (Files): Likewise.
20259         * modules/strchrnul-tests (Files): Likewise.
20260         * modules/strerror-tests (Files): Likewise.
20261         * modules/striconv-tests (Files): Likewise.
20262         * modules/striconveh-tests (Files): Likewise.
20263         * modules/striconveha-tests (Files): Likewise.
20264         * modules/strsignal-tests (Files): Likewise.
20265         * modules/strstr-tests (Files): Likewise.
20266         * modules/strtod-tests (Files): Likewise.
20267         * modules/strverscmp-tests (Files): Likewise.
20268         * modules/symlink-tests (Files): Likewise.
20269         * modules/symlinkat-tests (Files): Likewise.
20270         * modules/trunc-tests (Files): Likewise.
20271         * modules/truncf-tests (Files): Likewise.
20272         * modules/truncl-tests (Files): Likewise.
20273         * modules/uname-tests (Files): Likewise.
20274         * modules/unicase/cased-tests (Files): Likewise.
20275         * modules/unicase/ignorable-tests (Files): Likewise.
20276         * modules/unicase/locale-language-tests (Files): Likewise.
20277         * modules/unicase/tolower-tests (Files): Likewise.
20278         * modules/unicase/totitle-tests (Files): Likewise.
20279         * modules/unicase/toupper-tests (Files): Likewise.
20280         * modules/unicase/u8-casecmp-tests (Files): Likewise.
20281         * modules/unicase/u8-casecoll-tests (Files): Likewise.
20282         * modules/unicase/u8-casefold-tests (Files): Likewise.
20283         * modules/unicase/u8-is-cased-tests (Files): Likewise.
20284         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
20285         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
20286         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
20287         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
20288         * modules/unicase/u8-tolower-tests (Files): Likewise.
20289         * modules/unicase/u8-totitle-tests (Files): Likewise.
20290         * modules/unicase/u8-toupper-tests (Files): Likewise.
20291         * modules/unicase/u16-casecmp-tests (Files): Likewise.
20292         * modules/unicase/u16-casecoll-tests (Files): Likewise.
20293         * modules/unicase/u16-casefold-tests (Files): Likewise.
20294         * modules/unicase/u16-is-cased-tests (Files): Likewise.
20295         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
20296         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
20297         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
20298         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
20299         * modules/unicase/u16-tolower-tests (Files): Likewise.
20300         * modules/unicase/u16-totitle-tests (Files): Likewise.
20301         * modules/unicase/u16-toupper-tests (Files): Likewise.
20302         * modules/unicase/u32-casecmp-tests (Files): Likewise.
20303         * modules/unicase/u32-casecoll-tests (Files): Likewise.
20304         * modules/unicase/u32-casefold-tests (Files): Likewise.
20305         * modules/unicase/u32-is-cased-tests (Files): Likewise.
20306         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
20307         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
20308         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
20309         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
20310         * modules/unicase/u32-tolower-tests (Files): Likewise.
20311         * modules/unicase/u32-totitle-tests (Files): Likewise.
20312         * modules/unicase/u32-toupper-tests (Files): Likewise.
20313         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
20314         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
20315         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
20316         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
20317         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
20318         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
20319         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
20320         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
20321         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
20322         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
20323         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
20324         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
20325         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
20326         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
20327         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
20328         * modules/unictype/bidicategory-name-tests (Files): Likewise.
20329         * modules/unictype/bidicategory-of-tests (Files): Likewise.
20330         * modules/unictype/bidicategory-test-tests (Files): Likewise.
20331         * modules/unictype/block-list-tests (Files): Likewise.
20332         * modules/unictype/block-of-tests (Files): Likewise.
20333         * modules/unictype/block-test-tests (Files): Likewise.
20334         * modules/unictype/category-C-tests (Files): Likewise.
20335         * modules/unictype/category-Cc-tests (Files): Likewise.
20336         * modules/unictype/category-Cf-tests (Files): Likewise.
20337         * modules/unictype/category-Cn-tests (Files): Likewise.
20338         * modules/unictype/category-Co-tests (Files): Likewise.
20339         * modules/unictype/category-Cs-tests (Files): Likewise.
20340         * modules/unictype/category-L-tests (Files): Likewise.
20341         * modules/unictype/category-Ll-tests (Files): Likewise.
20342         * modules/unictype/category-Lm-tests (Files): Likewise.
20343         * modules/unictype/category-Lo-tests (Files): Likewise.
20344         * modules/unictype/category-Lt-tests (Files): Likewise.
20345         * modules/unictype/category-Lu-tests (Files): Likewise.
20346         * modules/unictype/category-M-tests (Files): Likewise.
20347         * modules/unictype/category-Mc-tests (Files): Likewise.
20348         * modules/unictype/category-Me-tests (Files): Likewise.
20349         * modules/unictype/category-Mn-tests (Files): Likewise.
20350         * modules/unictype/category-N-tests (Files): Likewise.
20351         * modules/unictype/category-Nd-tests (Files): Likewise.
20352         * modules/unictype/category-Nl-tests (Files): Likewise.
20353         * modules/unictype/category-No-tests (Files): Likewise.
20354         * modules/unictype/category-P-tests (Files): Likewise.
20355         * modules/unictype/category-Pc-tests (Files): Likewise.
20356         * modules/unictype/category-Pd-tests (Files): Likewise.
20357         * modules/unictype/category-Pe-tests (Files): Likewise.
20358         * modules/unictype/category-Pf-tests (Files): Likewise.
20359         * modules/unictype/category-Pi-tests (Files): Likewise.
20360         * modules/unictype/category-Po-tests (Files): Likewise.
20361         * modules/unictype/category-Ps-tests (Files): Likewise.
20362         * modules/unictype/category-S-tests (Files): Likewise.
20363         * modules/unictype/category-Sc-tests (Files): Likewise.
20364         * modules/unictype/category-Sk-tests (Files): Likewise.
20365         * modules/unictype/category-Sm-tests (Files): Likewise.
20366         * modules/unictype/category-So-tests (Files): Likewise.
20367         * modules/unictype/category-Z-tests (Files): Likewise.
20368         * modules/unictype/category-Zl-tests (Files): Likewise.
20369         * modules/unictype/category-Zp-tests (Files): Likewise.
20370         * modules/unictype/category-Zs-tests (Files): Likewise.
20371         * modules/unictype/category-and-not-tests (Files): Likewise.
20372         * modules/unictype/category-and-tests (Files): Likewise.
20373         * modules/unictype/category-byname-tests (Files): Likewise.
20374         * modules/unictype/category-name-tests (Files): Likewise.
20375         * modules/unictype/category-none-tests (Files): Likewise.
20376         * modules/unictype/category-of-tests (Files): Likewise.
20377         * modules/unictype/category-or-tests (Files): Likewise.
20378         * modules/unictype/category-test-withtable-tests (Files): Likewise.
20379         * modules/unictype/combining-class-tests (Files): Likewise.
20380         * modules/unictype/ctype-alnum-tests (Files): Likewise.
20381         * modules/unictype/ctype-alpha-tests (Files): Likewise.
20382         * modules/unictype/ctype-blank-tests (Files): Likewise.
20383         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
20384         * modules/unictype/ctype-digit-tests (Files): Likewise.
20385         * modules/unictype/ctype-graph-tests (Files): Likewise.
20386         * modules/unictype/ctype-lower-tests (Files): Likewise.
20387         * modules/unictype/ctype-print-tests (Files): Likewise.
20388         * modules/unictype/ctype-punct-tests (Files): Likewise.
20389         * modules/unictype/ctype-space-tests (Files): Likewise.
20390         * modules/unictype/ctype-upper-tests (Files): Likewise.
20391         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
20392         * modules/unictype/decimal-digit-tests (Files): Likewise.
20393         * modules/unictype/digit-tests (Files): Likewise.
20394         * modules/unictype/mirror-tests (Files): Likewise.
20395         * modules/unictype/numeric-tests (Files): Likewise.
20396         * modules/unictype/property-alphabetic-tests (Files): Likewise.
20397         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
20398         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
20399         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
20400         Likewise.
20401         * modules/unictype/property-bidi-block-separator-tests (Files):
20402         Likewise.
20403         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
20404         Likewise.
20405         * modules/unictype/property-bidi-common-separator-tests (Files):
20406         Likewise.
20407         * modules/unictype/property-bidi-control-tests (Files): Likewise.
20408         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
20409         Likewise.
20410         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
20411         Likewise.
20412         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
20413         Likewise.
20414         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
20415         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
20416         Likewise.
20417         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
20418         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
20419         Likewise.
20420         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
20421         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
20422         * modules/unictype/property-bidi-segment-separator-tests (Files):
20423         Likewise.
20424         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
20425         * modules/unictype/property-byname-tests (Files): Likewise.
20426         * modules/unictype/property-combining-tests (Files): Likewise.
20427         * modules/unictype/property-composite-tests (Files): Likewise.
20428         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
20429         * modules/unictype/property-dash-tests (Files): Likewise.
20430         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
20431         * modules/unictype/property-default-ignorable-code-point-tests (Files):
20432         Likewise.
20433         * modules/unictype/property-deprecated-tests (Files): Likewise.
20434         * modules/unictype/property-diacritic-tests (Files): Likewise.
20435         * modules/unictype/property-extender-tests (Files): Likewise.
20436         * modules/unictype/property-format-control-tests (Files): Likewise.
20437         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
20438         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
20439         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
20440         * modules/unictype/property-hex-digit-tests (Files): Likewise.
20441         * modules/unictype/property-hyphen-tests (Files): Likewise.
20442         * modules/unictype/property-id-continue-tests (Files): Likewise.
20443         * modules/unictype/property-id-start-tests (Files): Likewise.
20444         * modules/unictype/property-ideographic-tests (Files): Likewise.
20445         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
20446         * modules/unictype/property-ids-trinary-operator-tests (Files):
20447         Likewise.
20448         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
20449         * modules/unictype/property-iso-control-tests (Files): Likewise.
20450         * modules/unictype/property-join-control-tests (Files): Likewise.
20451         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
20452         * modules/unictype/property-line-separator-tests (Files): Likewise.
20453         * modules/unictype/property-logical-order-exception-tests (Files):
20454         Likewise.
20455         * modules/unictype/property-lowercase-tests (Files): Likewise.
20456         * modules/unictype/property-math-tests (Files): Likewise.
20457         * modules/unictype/property-non-break-tests (Files): Likewise.
20458         * modules/unictype/property-not-a-character-tests (Files): Likewise.
20459         * modules/unictype/property-numeric-tests (Files): Likewise.
20460         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
20461         * modules/unictype/property-other-default-ignorable-code-point-tests
20462         (Files): Likewise.
20463         * modules/unictype/property-other-grapheme-extend-tests (Files):
20464         Likewise.
20465         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
20466         * modules/unictype/property-other-id-start-tests (Files): Likewise.
20467         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
20468         * modules/unictype/property-other-math-tests (Files): Likewise.
20469         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
20470         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
20471         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
20472         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
20473         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
20474         * modules/unictype/property-private-use-tests (Files): Likewise.
20475         * modules/unictype/property-punctuation-tests (Files): Likewise.
20476         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
20477         * modules/unictype/property-radical-tests (Files): Likewise.
20478         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
20479         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
20480         * modules/unictype/property-space-tests (Files): Likewise.
20481         * modules/unictype/property-terminal-punctuation-tests (Files):
20482         Likewise.
20483         * modules/unictype/property-test-tests (Files): Likewise.
20484         * modules/unictype/property-titlecase-tests (Files): Likewise.
20485         * modules/unictype/property-unassigned-code-value-tests (Files):
20486         Likewise.
20487         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
20488         * modules/unictype/property-uppercase-tests (Files): Likewise.
20489         * modules/unictype/property-variation-selector-tests (Files): Likewise.
20490         * modules/unictype/property-white-space-tests (Files): Likewise.
20491         * modules/unictype/property-xid-continue-tests (Files): Likewise.
20492         * modules/unictype/property-xid-start-tests (Files): Likewise.
20493         * modules/unictype/property-zero-width-tests (Files): Likewise.
20494         * modules/unictype/scripts-tests (Files): Likewise.
20495         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
20496         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
20497         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
20498         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
20499         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
20500         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
20501         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
20502         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
20503         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
20504         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
20505         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
20506         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
20507         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
20508         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
20509         * modules/uninorm/composition-tests (Files): Likewise.
20510         * modules/uninorm/decomposing-form-tests (Files): Likewise.
20511         * modules/uninorm/decomposition-tests (Files): Likewise.
20512         * modules/uninorm/filter-tests (Files): Likewise.
20513         * modules/uninorm/nfc-tests (Files): Likewise.
20514         * modules/uninorm/nfd-tests (Files): Likewise.
20515         * modules/uninorm/nfkc-tests (Files): Likewise.
20516         * modules/uninorm/nfkd-tests (Files): Likewise.
20517         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
20518         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
20519         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
20520         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
20521         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
20522         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
20523         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
20524         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
20525         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
20526         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
20527         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
20528         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
20529         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
20530         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
20531         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
20532         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
20533         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
20534         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
20535         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
20536         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
20537         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
20538         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
20539         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
20540         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
20541         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
20542         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
20543         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
20544         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
20545         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
20546         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
20547         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
20548         * modules/uniwidth/u8-width-tests (Files): Likewise.
20549         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
20550         * modules/uniwidth/u16-width-tests (Files): Likewise.
20551         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
20552         * modules/uniwidth/u32-width-tests (Files): Likewise.
20553         * modules/uniwidth/width-tests (Files): Likewise.
20554         * modules/unlink-tests (Files): Likewise.
20555         * modules/unsetenv-tests (Files): Likewise.
20556         * modules/usleep-tests (Files): Likewise.
20557         * modules/utimens-tests (Files): Likewise.
20558         * modules/utimensat-tests (Files): Likewise.
20559         * modules/vasnprintf-posix-tests (Files): Likewise.
20560         * modules/vasnprintf-tests (Files): Likewise.
20561         * modules/vasprintf-posix-tests (Files): Likewise.
20562         * modules/vasprintf-tests (Files): Likewise.
20563         * modules/vdprintf-posix-tests (Files): Likewise.
20564         * modules/vfprintf-posix-tests (Files): Likewise.
20565         * modules/vprintf-posix-tests (Files): Likewise.
20566         * modules/vsnprintf-posix-tests (Files): Likewise.
20567         * modules/vsnprintf-tests (Files): Likewise.
20568         * modules/vsprintf-posix-tests (Files): Likewise.
20569         * modules/wcrtomb-tests (Files): Likewise.
20570         * modules/wcsnrtombs-tests (Files): Likewise.
20571         * modules/wcsrtombs-tests (Files): Likewise.
20572         * modules/wctype-tests (Files): Likewise.
20573         * modules/wcwidth-tests (Files): Likewise.
20574         * modules/xmemdup0-tests (Files): Likewise.
20575         * modules/xprintf-posix-tests (Files): Likewise.
20576         * modules/xvasprintf-tests (Files): Likewise.
20577
20578 2009-12-24  Eric Blake  <ebb9@byu.net>
20579
20580         test-nanosleep: fix typo
20581         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
20582         patch.
20583         Reported by Bruno Haible.
20584
20585 2009-12-24  Bruno Haible  <bruno@clisp.org>
20586
20587         Reduce namespace pollution on glibc systems.
20588         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
20589         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
20590         systems.
20591         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
20592         <getopt.h> on glibc systems.
20593         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
20594         systems.
20595         * lib/fcntl.c: Include <unistd.h> here instead.
20596
20597 2009-12-24  Bruno Haible  <bruno@clisp.org>
20598
20599         * lib/stdlib.in.h (includes): Fix typo in today's commit.
20600
20601 2009-12-24  Eric Blake  <ebb9@byu.net>
20602
20603         tests: add signature checks
20604         * tests/signature.h (SIGNATURE_CHECK): New file.
20605         * modules/atexit-tests (Files): Use it.
20606         * modules/btowc-tests (Files): Likewise.
20607         * modules/canonicalize-lgpl-tests (Files): Likewise.
20608         * modules/ceilf-tests (Files): Likewise.
20609         * modules/ceill-tests (Files): Likewise.
20610         * modules/chown-tests (Files): Likewise.
20611         * modules/dprintf-posix-tests (Files): Likewise.
20612         * modules/dup2-tests (Files): Likewise.
20613         * modules/dup3-tests (Files): Likewise.
20614         * modules/duplocale-tests (Files): Likewise.
20615         * modules/fchdir-tests (Files): Likewise.
20616         * modules/fcntl-tests (Files): Likewise.
20617         * modules/fdopendir-tests (Files): Likewise.
20618         * modules/fflush-tests (Files): Likewise.
20619         * modules/flock-tests (Files): Likewise.
20620         * modules/floorf-tests (Files): Likewise.
20621         * modules/floorl-tests (Files): Likewise.
20622         * modules/fnmatch-tests (Files): Likewise.
20623         * modules/fopen-tests (Files): Likewise.
20624         * modules/fprintf-posix-tests (Files): Likewise.
20625         * modules/freopen-tests (Files): Likewise.
20626         * modules/frexp-nolibm-tests (Files): Likewise.
20627         * modules/frexp-tests (Files): Likewise.
20628         * modules/frexpl-nolibm-tests (Files): Likewise.
20629         * modules/frexpl-tests (Files): Likewise.
20630         * modules/fseek-tests (Files): Likewise.
20631         * modules/fseeko-tests (Files): Likewise.
20632         * modules/fsync-tests (Files): Likewise.
20633         * modules/ftell-tests (Files): Likewise.
20634         * modules/ftello-tests (Files): Likewise.
20635         * modules/futimens-tests (Files): Likewise.
20636         * modules/getaddrinfo-tests (Files): Likewise.
20637         * modules/getcwd-tests (Files): Likewise.
20638         * modules/getdelim-tests (Files): Likewise.
20639         * modules/getdtablesize-tests (Files): Likewise.
20640         * modules/getgroups-tests (Files): Likewise.
20641         * modules/gethostname-tests (Files): Likewise.
20642         * modules/getline-tests (Files): Likewise.
20643         * modules/getopt-posix-tests (Files): Likewise.
20644         * modules/gettimeofday-tests (Files): Likewise.
20645         * modules/glob-tests (Files): Likewise.
20646         * modules/iconv-tests (Files): Likewise.
20647         * modules/inet_ntop-tests (Files): Likewise.
20648         * modules/inet_pton-tests (Files): Likewise.
20649         * modules/isblank-tests (Files): Likewise.
20650         * modules/lchown-tests (Files): Likewise.
20651         * modules/ldexpl-tests (Files): Likewise.
20652         * modules/link-tests (Files): Likewise.
20653         * modules/linkat-tests (Files): Likewise.
20654         * modules/lseek-tests (Files): Likewise.
20655         * modules/lstat-tests (Files): Likewise.
20656         * modules/mbrtowc-tests (Files): Likewise.
20657         * modules/mbsinit-tests (Files): Likewise.
20658         * modules/mbsnrtowcs-tests (Files): Likewise.
20659         * modules/mbsrtowcs-tests (Files): Likewise.
20660         * modules/memchr-tests (Files): Likewise.
20661         * modules/memcmp-tests (Files): Likewise.
20662         * modules/memmem-tests (Files): Likewise.
20663         * modules/memrchr-tests (Files): Likewise.
20664         * modules/mkdir-tests (Files): Likewise.
20665         * modules/mkfifo-tests (Files): Likewise.
20666         * modules/mkfifoat-tests (Files): Likewise.
20667         * modules/mknod-tests (Files): Likewise.
20668         * modules/nanosleep-tests (Files): Likewise.
20669         * modules/nl_langinfo-tests (Files): Likewise.
20670         * modules/obstack-printf-tests (Files): Likewise.
20671         * modules/open-tests (Files): Likewise.
20672         * modules/openat-tests (Files): Likewise.
20673         * modules/perror-tests (Files): Likewise.
20674         * modules/pipe2-tests (Files): Likewise.
20675         * modules/poll-tests (Files): Likewise.
20676         * modules/popen-tests (Files): Likewise.
20677         * modules/posix_spawn-tests (Files): Likewise.
20678         * modules/posix_spawnp-tests (Files): Likewise.
20679         * modules/pread-tests (Files): Likewise.
20680         * modules/printf-posix-tests (Files): Likewise.
20681         * modules/pty-tests (Files): Likewise.
20682         * modules/random_r-tests (Files): Likewise.
20683         * modules/rawmemchr-tests (Files): Likewise.
20684         * modules/readlink-tests (Files): Likewise.
20685         * modules/remove-tests (Files): Likewise.
20686         * modules/rename-tests (Files): Likewise.
20687         * modules/renameat-tests (Files): Likewise.
20688         * modules/rmdir-tests (Files): Likewise.
20689         * modules/round-tests (Files): Likewise.
20690         * modules/roundf-tests (Files): Likewise.
20691         * modules/roundl-tests (Files): Likewise.
20692         * modules/select-tests (Files): Likewise.
20693         * modules/setenv-tests (Files): Likewise.
20694         * modules/sigaction-tests (Files): Likewise.
20695         * modules/sleep-tests (Files): Likewise.
20696         * modules/snprintf-posix-tests (Files): Likewise.
20697         * modules/snprintf-tests (Files): Likewise.
20698         * modules/sprintf-posix-tests (Files): Likewise.
20699         * modules/stat-tests (Files): Likewise.
20700         * modules/strcasestr-tests (Files): Likewise.
20701         * modules/strchrnul-tests (Files): Likewise.
20702         * modules/strerror-tests (Files): Likewise.
20703         * modules/strsignal-tests (Files): Likewise.
20704         * modules/strstr-tests (Files): Likewise.
20705         * modules/strtod-tests (Files): Likewise.
20706         * modules/strverscmp-tests (Files): Likewise.
20707         * modules/symlink-tests (Files): Likewise.
20708         * modules/symlinkat-tests (Files): Likewise.
20709         * modules/times-tests (Files): Likewise.
20710         * modules/trunc-tests (Files): Likewise.
20711         * modules/truncf-tests (Files): Likewise.
20712         * modules/truncl-tests (Files): Likewise.
20713         * modules/tsearch-tests (Files): Likewise.
20714         * modules/uname-tests (Files): Likewise.
20715         * modules/unlink-tests (Files): Likewise.
20716         * modules/unsetenv-tests (Files): Likewise.
20717         * modules/usleep-tests (Files): Likewise.
20718         * modules/utimensat-tests (Files): Likewise.
20719         * modules/vasprintf-tests (Files): Likewise.
20720         * modules/vdprintf-posix-tests (Files): Likewise.
20721         * modules/vfprintf-posix-tests (Files): Likewise.
20722         * modules/vprintf-posix-tests (Files): Likewise.
20723         * modules/vsnprintf-posix-tests (Files): Likewise.
20724         * modules/vsnprintf-tests (Files): Likewise.
20725         * modules/vsprintf-posix-tests (Files): Likewise.
20726         * modules/wcrtomb-tests (Files): Likewise.
20727         * modules/wcsnrtombs-tests (Files): Likewise.
20728         * modules/wcsrtombs-tests (Files): Likewise.
20729         * modules/wcwidth-tests (Files): Likewise.
20730         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
20731         * tests/test-isinf.c (isinf): Likewise.
20732         * tests/test-isnan.c (isnan): Likewise.
20733         * tests/test-signbit.c (signbit): Likewise.
20734         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
20735         declaration, either as macro or with correct signature.
20736         (select): Ensure function under test is declared with correct
20737         signature in correct header.
20738         * tests/test-atexit.c (atexit): Likewise.
20739         * tests/test-btowc.c (btowc): Likewise.
20740         * tests/test-canonicalize-lgpl.c (realpath)
20741         (canonicalize_file_name): Likewise.
20742         * tests/test-ceilf1.c (ceilf): Likewise.
20743         * tests/test-ceill.c (ceill): Likewise.
20744         * tests/test-chown.c (chown): Likewise.
20745         * tests/test-dprintf-posix.c (dprintf): Likewise.
20746         * tests/test-dup2.c (dup2): Likewise.
20747         * tests/test-dup3.c (dup3): Likewise.
20748         * tests/test-duplocale.c (duplocale): Likewise.
20749         * tests/test-fchdir.c (fchdir): Likewise.
20750         * tests/test-fchownat.c (fchownat): Likewise.
20751         * tests/test-fcntl.c (fcntl): Likewise.
20752         * tests/test-fdopendir.c (fdopendir): Likewise.
20753         * tests/test-fflush.c (fflush): Likewise.
20754         * tests/test-flock.c (flock): Likewise.
20755         * tests/test-floorf1.c (floorf): Likewise.
20756         * tests/test-floorl.c (floorl): Likewise.
20757         * tests/test-fnmatch.c (fnmatch): Likewise.
20758         * tests/test-fopen.c (fopen): Likewise.
20759         * tests/test-fprintf-posix.c (fprintf): Likewise.
20760         * tests/test-freopen.c (freopen): Likewise.
20761         * tests/test-frexp.c (frexp): Likewise.
20762         * tests/test-frexpl.c (frexpl): Likewise.
20763         * tests/test-fseek.c (fseek): Likewise.
20764         * tests/test-fseeko.c (fseeko): Likewise.
20765         * tests/test-fstatat.c (fstatat): Likewise.
20766         * tests/test-fsync.c (fsync): Likewise.
20767         * tests/test-ftell.c (ftell): Likewise.
20768         * tests/test-ftello.c (ftello): Likewise.
20769         * tests/test-futimens.c (futimens): Likewise.
20770         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
20771         (gai_strerror): Likewise.
20772         * tests/test-getcwd.c (getcwd): Likewise.
20773         * tests/test-getdelim.c (getdelim): Likewise.
20774         * tests/test-getdtablesize.c (getdtablesize): Likewise.
20775         * tests/test-getgroups.c (getgroups): Likewise.
20776         * tests/test-gethostname.c (gethostname): Likewise.
20777         * tests/test-getline.c (getline): Likewise.
20778         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
20779         Likewise.
20780         * tests/test-gettimeofday.c (gettimeofday): Likewise.
20781         * tests/test-glob.c (glob, globfree): Likewise.
20782         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
20783         * tests/test-inet_ntop.c (inet_ntop): Likewise.
20784         * tests/test-inet_pton.c (inet_pton): Likewise.
20785         * tests/test-isblank.c (isblank): Likewise.
20786         * tests/test-lchown.c (lchown): Likewise.
20787         * tests/test-ldexpl.c (ldexpl): Likewise.
20788         * tests/test-link.c (link): Likewise.
20789         * tests/test-linkat.c (linkat): Likewise.
20790         * tests/test-lseek.c (lseek): Likewise.
20791         * tests/test-lstat.c (lstat): Likewise.
20792         * tests/test-mbrtowc.c (mbrtowc): Likewise.
20793         * tests/test-mbsinit.c (mbsinit): Likewise.
20794         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
20795         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
20796         * tests/test-memchr.c (memchr): Likewise.
20797         * tests/test-memcmp.c (memcmp): Likewise.
20798         * tests/test-memmem.c (memmem): Likewise.
20799         * tests/test-memrchr.c (memrchr): Likewise.
20800         * tests/test-mkdir.c (mkdir): Likewise.
20801         * tests/test-mkdirat.c (mkdirat): Likewise.
20802         * tests/test-mkfifo.c (mkfifo): Likewise.
20803         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
20804         * tests/test-mknod.c (mknod): Likewise.
20805         * tests/test-nanosleep.c (nanosleep): Likewise.
20806         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
20807         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
20808         Likewise.
20809         * tests/test-open.c (open): Likewise.
20810         * tests/test-openat.c (openat): Likewise.
20811         * tests/test-perror.c (perror): Likewise.
20812         * tests/test-pipe2.c (pipe2): Likewise.
20813         * tests/test-poll.c (poll): Likewise.
20814         * tests/test-popen.c (popen, pclose): Likewise.
20815         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
20816         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
20817         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
20818         (posix_spawn_file_actions_destroy)
20819         (posix_spawn_file_actions_addclose)
20820         (posix_spawn_file_actions_addopen)
20821         (posix_spawn_file_actions_adddup2): Likewise.
20822         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
20823         * tests/test-pread.c (pread): Likewise.
20824         * tests/test-printf-posix.c (printf): Likewise.
20825         * tests/test-pty.c (openpty, forkpty): Likewise.
20826         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
20827         (random_r): Likewise.
20828         * tests/test-rawmemchr.c (rawmemchr): Likewise.
20829         * tests/test-readlink.c (readlink): Likewise.
20830         * tests/test-remove.c (remove): Likewise.
20831         * tests/test-rename.c (rename): Likewise.
20832         * tests/test-renameat.c (renameat): Likewise.
20833         * tests/test-rmdir.c (rmdir): Likewise.
20834         * tests/test-round1.c (round): Likewise.
20835         * tests/test-roundf1.c (roundf): Likewise.
20836         * tests/test-roundl.c (roundl): Likewise.
20837         * tests/test-setenv.c (setenv): Likewise.
20838         * tests/test-sigaction.c (sigaction): Likewise.
20839         * tests/test-sleep.c (sleep): Likewise.
20840         * tests/test-snprintf.c (snprintf): Likewise.
20841         * tests/test-sprintf-posix.c (sprintf): Likewise.
20842         * tests/test-stat.c (stat): Likewise.
20843         * tests/test-stpncpy.c (stpncpy): Likewise.
20844         * tests/test-strcasestr.c (strcasestr): Likewise.
20845         * tests/test-strchrnul.c (strchrnul): Likewise.
20846         * tests/test-strerror.c (strerror): Likewise.
20847         * tests/test-strsignal.c (strsignal): Likewise.
20848         * tests/test-strstr.c (strstr): Likewise.
20849         * tests/test-strtod.c (strtod): Likewise.
20850         * tests/test-strverscmp.c (strverscmp): Likewise.
20851         * tests/test-symlink.c (symlink): Likewise.
20852         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
20853         * tests/test-times.c (times): Likewise.
20854         * tests/test-trunc1.c (trunc): Likewise.
20855         * tests/test-truncf1.c (truncf): Likewise.
20856         * tests/test-truncl.c (truncl): Likewise.
20857         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
20858         Likewise.
20859         * tests/test-uname.c (uname): Likewise.
20860         * tests/test-unlink.c (unlink): Likewise.
20861         * tests/test-unlinkat.c (unlinkat): Likewise.
20862         * tests/test-unsetenv.c (unsetenv): Likewise.
20863         * tests/test-usleep.c (usleep): Likewise.
20864         * tests/test-utimensat.c (utimensat): Likewise.
20865         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
20866         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
20867         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
20868         * tests/test-vprintf-posix.c (vprintf): Likewise.
20869         * tests/test-vsnprintf.c (vsnprintf): Likewise.
20870         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
20871         * tests/test-wcrtomb.c (wcrtomb): Likewise.
20872         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
20873         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
20874         * tests/test-wcwidth.c (wcwidth): Likewise.
20875
20876         build: pull in conditional headers during GNULIB_POSIXCHECK
20877         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
20878         definitions from any conditionally-included headers.
20879         * lib/stdlib.in.h (includes): Likewise.
20880         * lib/unistd.in.h (includes): Likewise.
20881
20882 2009-12-24  Bruno Haible  <bruno@clisp.org>
20883
20884         * tests/test-argv-iter.c: Include header file being tested immediately
20885         after config.h.
20886         * tests/test-base64.c: Likewise.
20887         * tests/test-flock.c: Likewise.
20888         * tests/test-fsync.c: Likewise.
20889         * tests/test-getdate.c: Likewise.
20890         * tests/test-getndelim2.c: Likewise.
20891         * tests/test-isfinite.c: Likewise.
20892         * tests/test-isinf.c: Likewise.
20893         * tests/test-strerror.c: Likewise.
20894         * tests/test-strsignal.c: Likewise.
20895
20896 2009-12-23  Eric Blake  <ebb9@byu.net>
20897
20898         unistd: work around cygwin bug
20899         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
20900         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
20901         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
20902
20903 2009-12-23  Bruno Haible  <bruno@clisp.org>
20904
20905         localename: More tests.
20906         * tests/test-localename.c (SIZEOF): New macro.
20907         (categories): New variable.
20908         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
20909         test_locale_name_default): Add test w.r.t. thread locale.
20910         (test_locale_name_thread): New function.
20911         (main): Invoke it.
20912
20913         localename: Make aware of thread locale.
20914         * lib/localename.h (gl_locale_name_thread): New declaration.
20915         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
20916         behaviour with respect to thread locale.
20917         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
20918         <langinfo.h>, glthread/lock.h.
20919         (SIZE_BITS): New macro.
20920         (string_hash): New function.
20921         (struct hash_node): New type.
20922         (HASH_TABLE_SIZE): New macro.
20923         (struniq_hash_table, struniq_lock): New variables.
20924         (struniq): New function.
20925         (gl_locale_name_thread): New function.
20926         (gl_locale_name): Invoke it.
20927         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
20928         * modules/localename (Depends-on): Add lock.
20929         Reported by Mike Gran <spk121@yahoo.com>.
20930
20931 2009-12-23  Eric Blake  <ebb9@byu.net>
20932
20933         va-args: new module
20934         * modules/va-args: New file.
20935         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
20936         * MODULES.html.sh (Core language properties): Mention it.
20937
20938         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
20939         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
20940         named alias for __attribute__((__unused__)).
20941         * lib/chown.c: Update client.
20942         * lib/fchmodat.c: Likewise.
20943         * lib/fts.c: Likewise.
20944         * lib/getdate.y: Likewise.
20945         * lib/getgroups.c: Likewise.
20946         * lib/getopt.c: Likewise.
20947         * lib/getugroups.c: Likewise.
20948         * lib/mkdir.c: Likewise.
20949         * lib/mkfifo.c: Likewise.
20950         * lib/mkfifoat.c: Likewise.
20951         * lib/mknod.c: Likewise.
20952         * lib/mknodat.c: Likewise.
20953         * lib/readlink.c: Likewise.
20954         * lib/se-context.in.h: Likewise.
20955         * lib/se-selinux.in.h: Likewise.
20956         * lib/sockets.c: Likewise.
20957         * lib/symlink.c: Likewise.
20958         * lib/symlinkat.c: Likewise.
20959         * lib/unicodeio.c: Likewise.
20960         * lib/unistr.h: Likewise.
20961         * tests/test-areadlink.c: Likewise.
20962         * tests/test-areadlinkat.c: Likewise.
20963         * tests/test-filenamecat.c: Likewise.
20964         * tests/test-fseeko.c: Likewise.
20965         * tests/test-ftello.c: Likewise.
20966         * tests/test-getdate.c: Likewise.
20967         * tests/test-getgroups.c: Likewise.
20968         * tests/test-gethostname.c: Likewise.
20969         * tests/test-quotearg.c: Likewise.
20970         * tests/test-version-etc.c: Likewise.
20971         * tests/test-xalloc-die.c: Likewise.
20972         * tests/test-xfprintf-posix.c: Likewise.
20973         * tests/test-xprintf-posix.c: Likewise.
20974         * tests/test-xvasprintf.c: Likewise.
20975
20976         tests: avoid compiler warnings
20977         * tests/test-fcntl.c (main): Delete unused parameters.
20978         * tests/test-freopen-safer.c (main): Likewise.
20979         * tests/test-xalloc-die.c (main): Mark unused parameters.
20980         * tests/test-fseeko.c (main): Likewise.
20981         * tests/test-ftello.c (main): Likewise.
20982         * tests/test-nanosleep.c (main): Avoid declaration warning.
20983         * tests/test-sleep.c (main): Likewise.
20984         * tests/test-unsetenv.c (main): Silence warning about string
20985         literal.
20986         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
20987
20988 2009-12-23  Bruno Haible  <bruno@clisp.org>
20989
20990         * tests/test-localename.c (test_locale_name): New function, extracted
20991         from main. Also test mixed situations.
20992         (test_locale_name_posix, test_locale_name_environ,
20993         test_locale_name_default): New functions.
20994         (main): Invoke them all.
20995         * modules/localename-tests (configure.ac): Test for newlocale.
20996
20997 2009-12-23  Bruno Haible  <bruno@clisp.org>
20998
20999         unistd: Ensure getcwd gets declared before being overridden.
21000         * lib/unistd.in.h: Conditionally include <io.h>.
21001
21002 2009-12-22  Bruno Haible  <bruno@clisp.org>
21003
21004         wchar: Diagnose broken combination of glibc and gcc versions and flags.
21005         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
21006         (gl_WCHAR_H): Invoke it.
21007         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
21008         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
21009         Reported by Karl Berry <karl@freefriends.org>.
21010
21011 2009-12-22  Eric Blake  <ebb9@byu.net>
21012
21013         math, unistd: avoid redundant includes
21014         * lib/math.in.h (isnan): No need to re-include <math.h>.
21015         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
21016
21017         getsubopt: work around cygwin bug
21018         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
21019         avoid conflicting with system getsubopt.
21020         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
21021         bug.
21022
21023         getopt: synchronize from glibc
21024         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
21025         parameter order.  Adjust all callers.
21026         (_getopt_internal_r, main): Adjust quoting in error messages.
21027         Drop considerations for outdated POSIX 1003.2 error message.
21028         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
21029         callers.
21030         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
21031
21032         test-getopt: test stderr behavior
21033         * modules/getopt-posix-tests (Depends-on): Add dup2.
21034         * tests/test-getopt.c (ASSERT): Avoid stderr.
21035         (main): Move stderr to a temporary file.
21036         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
21037         Instead, add parameter to inform caller if output occurred.
21038         (test_getopt): Adjust all existing tests to expect silence, and
21039         add new tests of leading ":".
21040         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
21041         glibc shortcomings with leading "-:" or "+:" in optstring.
21042         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21043         Likewise.
21044         * doc/posix-functions/getopt.texi (getopt): Likewise.
21045
21046         test-getopt: enhance test
21047         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
21048         supports optind=0.
21049         * tests/test-getopt.c (OPTIND_MIN): Move...
21050         * tests/test-getopt.h (OPTIND_MIN): ...here.
21051         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
21052         Require that optind=0 works, since modern BSD supports it in
21053         addition to optreset, and since coreutils expects it.
21054         (test_getopt_long_only): New test.
21055         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
21056         glibc shortcomings with 'W;', and enforcement of optind=0.
21057         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21058         Likewise.
21059
21060 2009-12-21  Bruno Haible  <bruno@clisp.org>
21061
21062         localename: Improvements for MacOS X and Cygwin.
21063         * lib/localename.h (gl_locale_name_environ): New declaration.
21064         * lib/localename.c (gl_locale_name_environ): New function, extracted from
21065         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
21066         (gl_locale_name_posix): Invoke it.
21067         (gl_locale_name_default): Add comments. Use Windows native API also on
21068         Cygwin.
21069
21070 2009-12-21  Bruno Haible  <bruno@clisp.org>
21071
21072         Update list of Win32 locale ids.
21073         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
21074         (LANG_SAMI): Renamed from LANG_SAAMI.
21075         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
21076         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
21077         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
21078         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
21079         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
21080         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
21081         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
21082         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
21083         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
21084         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
21085         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
21086         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
21087         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
21088         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
21089         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
21090         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
21091         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
21092         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
21093         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
21094         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
21095         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
21096         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
21097         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
21098         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
21099         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
21100         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
21101         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
21102         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
21103         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
21104         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
21105         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
21106         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
21107         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
21108         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
21109         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
21110         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
21111         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
21112         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
21113         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
21114         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
21115         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
21116         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
21117         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
21118         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
21119         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
21120         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
21121         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
21122         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
21123         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
21124         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
21125         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
21126         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
21127         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
21128         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
21129         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
21130         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
21131         Add more languages and countries for Sami, Sorbian. Add more countries
21132         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
21133         for Pashto. Change country for Syriac, Tswana.
21134
21135 2009-12-21  Eric Blake  <ebb9@byu.net>
21136
21137         test-utimens: avoid spurious failure
21138         * tests/test-chown.h (nap): Factor...
21139         * tests/nap.h: ...into new file.
21140         * tests/test-lchown.h (nap): Avoid duplication.
21141         * tests/test-utimens-common.h (nap): Use shared implementation,
21142         necessary on file systems with 1-second resolution.
21143         * modules/chown-tests (Files): Include new file.
21144         * modules/fdutimensat-tests (Files): Likewise.
21145         * modules/futimens-tests (Files): Likewise.
21146         * modules/lchown-tests (Files): Likewise.
21147         * modules/openat-tests (Files): Likewise.
21148         * modules/utimens-tests (Files): Likewise.
21149         * modules/utimensat-tests (Files): Likewise.
21150
21151 2009-12-19  Eric Blake  <ebb9@byu.net>
21152
21153         futimens, utimensat: work around Linux bug
21154         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
21155         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
21156         * lib/utimensat.c (rpl_utimensat): Work around it.
21157         * lib/futimens.c (rpl_futimens): Adjust comment.
21158
21159         utimens: work around Linux ctime bug
21160         * lib/utimens.c (detect_ctime_bug): New helper function.
21161         (update_timespec): Differentiate between workaround needed for
21162         this bug vs. what is needed for systems that lack utimensat.
21163         (fdutimens, lutimens): Work around bug.
21164
21165         utimens: check for ctime update
21166         * tests/test-utimens-common.h (check_ctime): Define.
21167         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
21168         * tests/test-futimens.h (test_futimens): Likewise.
21169         * tests/test-lutimens.h (test_lutimens): Likewise.
21170         * doc/posix-functions/futimens.texi (futimens): Document the bug.
21171         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
21172
21173 2009-12-19  Bruno Haible  <bruno@clisp.org>
21174
21175         dprintf-posix: Check against memory leak fixed on 2009-12-15.
21176         * tests/test-dprintf-posix2.sh: New file.
21177         * tests/test-dprintf-posix2.c: New file.
21178         * modules/dprintf-posix-tests (Files): Add them.
21179         (configure.ac): Check for getrlimit and setrlimit.
21180         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
21181
21182 2009-12-19  Bruno Haible  <bruno@clisp.org>
21183
21184         fprintf-posix: Check against memory leak fixed on 2009-12-15.
21185         * tests/test-fprintf-posix3.sh: New file.
21186         * tests/test-fprintf-posix3.c: New file.
21187         * modules/fprintf-posix-tests (Files): Add them.
21188         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
21189
21190 2009-12-19  Eric Blake  <ebb9@byu.net>
21191
21192         dirfd: fix prototype
21193         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
21194         * lib/dirfd.c (dirfd): Likewise.
21195
21196         canonicalize: reduce memory usage
21197         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
21198         allocation to size.
21199         Reported by Solar Designer <solar@openwall.com>.
21200
21201 2009-12-19  Bruno Haible  <bruno@clisp.org>
21202
21203         New module attribute 'Applicability'.
21204         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
21205         * gnulib-tool: New option --extract-applicability.
21206         (func_usage): Document it.
21207         (sed_extract_prog): Recognize it.
21208         (func_get_applicability): New function.
21209         (func_import): Generalize handling of 'link-warning' module.
21210         * modules/link-warning (Applicability): New section.
21211         * modules/arg-nonnull (Applicability): New section.
21212         Repoted by Simon Josefsson <simon@josefsson.org>.
21213
21214 2009-12-19  Bruno Haible  <bruno@clisp.org>
21215
21216         fflush: tweak
21217         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
21218         * lib/fseeko.c (rpl_fseeko): Likewise.
21219
21220 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
21221
21222         * lib/gl_list.h: Fix typo in comment.
21223
21224 2009-12-16  Eric Blake  <ebb9@byu.net>
21225
21226         fcntl: use to simplify other modules
21227         * modules/cloexec (Depends-on): Add fcntl.
21228         * modules/fchdir (Depends-on): Likewise.
21229         * modules/fd-safer-flag (Depends-on): Likewise.
21230         * modules/unistd-safer (Depends-on): Likewise.
21231         * modules/dup3 (configure.ac): Set module indicator.
21232         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
21233         missing.
21234         * lib/fchdir.c (_gl_register_dup): Fix comment.
21235         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
21236         * lib/dup-safer.c (dup_safer): Likewise.
21237         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
21238         * lib/dup3.c (dup3): Likewise.
21239         * tests/test-fchdir.c (main): Enhance test.
21240         Fixes a dup_cloexec bug reported by Ondřej Vašík.
21241
21242         fcntl: port portions of fcntl to mingw
21243         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
21244         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
21245         replacement for mingw.
21246         * modules/fcntl (Description): Update.
21247         (Depends-on): Add dup2.
21248         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
21249         * modules/fcntl-h (Makefile.am): Substitute it.
21250         * lib/fcntl.in.h (fcntl): Update declaration.
21251         (F_DUPFD, F_GETFD): New macros, when needed.
21252         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
21253         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
21254         * tests/test-fcntl.c (check_flags, main): Enhance test for items
21255         we now guarantee.
21256
21257         fcntl: work around cygwin bug in F_DUPFD
21258         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
21259         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
21260         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
21261         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
21262         * doc/posix-functions/fcntl.texi (fcntl): Document it.
21263
21264         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
21265         * modules/fcntl (Files): List new files.
21266         (configure.ac): Run a test.
21267         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
21268         * lib/fcntl.c (rpl_fcntl): Likewise.
21269         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
21270         (gl_FCNTL_H): Always replace fcntl.h.
21271         * modules/fcntl-h (Makefile.am): Substitute witnesses.
21272         * lib/fcntl.in.h (fcntl): Declare replacement.
21273         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
21274         needed, plus a witness.
21275         * doc/posix-functions/fcntl.texi (fcntl): Document this.
21276         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
21277         * tests/test-fcntl.c: New file.
21278         * modules/fcntl-tests: Likewise.
21279
21280         binary-io: avoid potential compilation warning
21281         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
21282         directives.
21283
21284         fflush: avoid compilation error on NetBSD
21285         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
21286         between off_t and fpos_t, since the latter is sometimes a struct.
21287         * lib/fseeko.c (rpl_fseeko): Likewise.
21288         Reported by Alexander Nasonov <alnsn@yandex.ru>.
21289
21290 2009-12-15  Eric Blake  <ebb9@byu.net>
21291
21292         fcntl-h, stdio, sys_ioctl: fix declarations
21293         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
21294         function must not take arguments.
21295         * lib/sys_ioctl.in.h (ioctl): Likewise.
21296         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
21297         (open): Add a link warning.
21298
21299 2009-12-15  Jim Meyering  <meyering@redhat.com>
21300
21301         areadlink, areadlink-with-size: relax license to LGPLv2+
21302         * modules/areadlink (License): Relax to LGPLv2+.
21303         * modules/areadlink-with-size (License): Likewise.
21304
21305 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
21306             Bruno Haible  <bruno@clisp.org>
21307
21308         *printf: Fix memory leak.
21309         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
21310         * lib/vfprintf.c (vfprintf): Likewise.
21311         * lib/dprintf.c (dprintf): Likewise.
21312         * lib/vdprintf.c (vdprintf): Likewise.
21313
21314 2009-12-14  Eric Blake  <ebb9@byu.net>
21315
21316         accept4: adjust module dependencies
21317         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
21318
21319         utimens: one more try at avoiding compiler warning
21320         * lib/utimens.c (lutimens): Lower scope of result.
21321
21322 2009-12-13  Bruno Haible  <bruno@clisp.org>
21323
21324         Move the malloc checking from module 'list' to new module 'xlist'.
21325         * modules/xlist: New file.
21326         * lib/gl_xlist.h: New file.
21327         * lib/gl_xlist.c: New file.
21328         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
21329         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
21330         gl_list_add_last, gl_list_add_before, gl_list_add_after,
21331         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
21332         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
21333         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
21334         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
21335         gl_sortedlist_nx_add): New declarations.
21336         (struct gl_list_implementation): Rename and change methods accordingly.
21337         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
21338         (gl_list_nx_create): Renamed from gl_list_create.
21339         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
21340         (gl_list_nx_set_at): Renamed from gl_list_set_at.
21341         (gl_list_nx_add_first): Renamed from gl_list_add_first.
21342         (gl_list_nx_add_last): Renamed from gl_list_add_last.
21343         (gl_list_nx_add_before): Renamed from gl_list_add_before.
21344         (gl_list_nx_add_after): Renamed from gl_list_add_after.
21345         (gl_list_nx_add_at): Renamed from gl_list_add_at.
21346         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
21347         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
21348         gl_list_create_empty.
21349         (gl_list_nx_create): Renamed from gl_list_create.
21350         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
21351         (gl_list_nx_set_at): Renamed from gl_list_set_at.
21352         (gl_list_nx_add_first): Renamed from gl_list_add_first.
21353         (gl_list_nx_add_last): Renamed from gl_list_add_last.
21354         (gl_list_nx_add_before): Renamed from gl_list_add_before.
21355         (gl_list_nx_add_after): Renamed from gl_list_add_after.
21356         (gl_list_nx_add_at): Renamed from gl_list_add_at.
21357         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
21358         * lib/gl_array_list.c: Don't include xalloc.h.
21359         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
21360         NULL upon out-of-memory.
21361         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
21362         out-of-memory.
21363         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
21364         Change return type to 'int'.
21365         (gl_array_nx_set_at): Renamed from gl_array_set_at.
21366         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
21367         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
21368         upon out-of-memory.
21369         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
21370         upon out-of-memory.
21371         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
21372         upon out-of-memory.
21373         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
21374         upon out-of-memory.
21375         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
21376         out-of-memory.
21377         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
21378         Update.
21379         (gl_array_list_implementation): Update.
21380         * lib/gl_carray_list.c: Don't include xalloc.h.
21381         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
21382         Return NULL upon out-of-memory.
21383         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
21384         out-of-memory.
21385         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
21386         Change return type to 'int'.
21387         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
21388         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
21389         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
21390         upon out-of-memory.
21391         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
21392         upon out-of-memory.
21393         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
21394         out-of-memory.
21395         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
21396         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
21397         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
21398         Update.
21399         (gl_carray_list_implementation): Update.
21400         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
21401         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
21402         gl_linked_create_empty. Return NULL upon out-of-memory.
21403         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
21404         out-of-memory.
21405         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
21406         Change return type to 'int'. Return -1 upon out-of-memory.
21407         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
21408         out-of-memory.
21409         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
21410         upon out-of-memory.
21411         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
21412         upon out-of-memory.
21413         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
21414         NULL upon out-of-memory.
21415         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
21416         upon out-of-memory.
21417         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
21418         out-of-memory.
21419         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
21420         Update.
21421         * lib/gl_linked_list.c: Don't include xalloc.h.
21422         (gl_linked_list_implementation): Update.
21423         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
21424         (add_to_bucket): Change return type to 'int'.
21425         (gl_linkedhash_list_implementation): Update.
21426         * lib/gl_anytree_list1.h (free_subtree): New function.
21427         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
21428         gl_tree_create_empty. Return NULL upon out-of-memory.
21429         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
21430         Change return type to 'int'. Return -1 upon out-of-memory.
21431         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
21432         out-of-memory.
21433         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
21434         (gl_tree_remove_node): New function, moved here from
21435         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
21436         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
21437         Update.
21438         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
21439         malloc, not xmalloc. Return NULL upon out-of-memory.
21440         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
21441         out-of-memory.
21442         (gl_tree_remove_node_from_tree): New function, extracted from
21443         gl_tree_remove_node.
21444         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
21445         upon out-of-memory.
21446         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
21447         out-of-memory.
21448         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
21449         upon out-of-memory.
21450         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
21451         upon out-of-memory.
21452         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
21453         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
21454         not xmalloc. Return NULL upon out-of-memory.
21455         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
21456         out-of-memory.
21457         (gl_tree_remove_node_from_tree): New function, extracted from
21458         gl_tree_remove_node.
21459         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
21460         upon out-of-memory.
21461         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
21462         out-of-memory.
21463         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
21464         upon out-of-memory.
21465         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
21466         upon out-of-memory.
21467         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
21468         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
21469         gl_anytree_list1.h before gl_anyavltree_list2.h.
21470         (gl_avltree_list_implementation): Update.
21471         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
21472         gl_anytree_list1.h before gl_anyavltree_list2.h.
21473         (gl_rbtree_list_implementation): Update.
21474         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
21475         Change return type to 'int'. Return -1 upon out-of-memory. Use
21476         __builtin_expect.
21477         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
21478         (gl_avltreehash_list_implementation): Update.
21479         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
21480         (gl_rbtreehash_list_implementation): Update.
21481         * modules/array-list (Depends-on): Remove xalloc.
21482         * modules/carray-list (Depends-on): Likewise.
21483         * modules/linked-list (Depends-on): Likewise.
21484         * modules/linkedhash-list (Depends-on): Likewise.
21485         * modules/avltree-list (Depends-on): Likewise.
21486         * modules/rbtree-list (Depends-on): Likewise.
21487         * modules/avltreehash-list (Depends-on): Likewise.
21488         * modules/rbtreehash-list (Depends-on): Likewise.
21489
21490         * modules/xsublist: New file.
21491         * lib/gl_xsublist.h: New file.
21492         * lib/gl_xsublist.c: New file.
21493         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
21494         (gl_sublist_nx_create): New declaration.
21495         * lib/gl_sublist.c: Don't include xalloc.h.
21496         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
21497         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
21498         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
21499         Change return type to 'int'. Return -1 upon out-of-memory.
21500         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
21501         upon out-of-memory.
21502         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
21503         NULL upon out-of-memory.
21504         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
21505         upon out-of-memory.
21506         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
21507         NULL upon out-of-memory.
21508         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
21509         NULL upon out-of-memory.
21510         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
21511         upon out-of-memory.
21512         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
21513         (gl_sublist_list_implementation): Update.
21514         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
21515         upon out-of-memory.
21516         * modules/sublist (Depends-on): Remove xalloc.
21517
21518         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
21519         * tests/test-carray_list.c: Likewise.
21520         * tests/test-linked_list.c: Likewise.
21521         * tests/test-linkedhash_list.c: Likewise.
21522         * tests/test-avltree_list.c: Likewise.
21523         * tests/test-rbtree_list.c: Likewise.
21524         * tests/test-avltreehash_list.c: Likewise.
21525         * tests/test-rbtreehash_list.c: Likewise.
21526         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
21527         * modules/carray-list-tests (Makefile.am): Likewise.
21528         * modules/linked-list-tests (Makefile.am): Likewise.
21529         * modules/linkedhash-list-tests (Makefile.am): Likewise.
21530         * modules/avltree-list-tests (Makefile.am): Likewise.
21531         * modules/rbtree-list-tests (Makefile.am): Likewise.
21532         * modules/avltreehash-list-tests (Makefile.am): Likewise.
21533         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
21534
21535         * NEWS: Mention the changes.
21536
21537         * lib/clean-temp.c: Include gl_xlist.h.
21538         * modules/clean-temp (Depends-on): Add xlist.
21539
21540         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
21541         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
21542
21543         * tests/test-array_oset.c: Include gl_xlist.h.
21544         * modules/array-oset-tests (Depends-on): Add xlist.
21545
21546         Reported by José E. Marchesi <jemarch@gnu.org>.
21547
21548 2009-12-13  Bruno Haible  <bruno@clisp.org>
21549
21550         Move the malloc checking from module 'oset' to new module 'xoset'.
21551         * modules/xoset: New file.
21552         * lib/gl_xoset.h: New file.
21553         * lib/gl_xoset.c: New file.
21554         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
21555         declarations.
21556         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
21557         (struct gl_oset_implementation): Rename and change methods accordingly.
21558         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
21559         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
21560         'int'. Mark as __warn_unused_result__.
21561         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
21562         gl_oset_create_empty.
21563         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
21564         'int'.
21565         * lib/gl_array_oset.c: Don't include xalloc.h.
21566         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
21567         malloc, not xmalloc.
21568         (grow): Change return type to 'int'. Don't call xalloc_die.
21569         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
21570         to 'int'.
21571         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
21572         'int'.
21573         (gl_array_oset_implementation): Update.
21574         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
21575         gl_tree_create_empty.
21576         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
21577         'int'.
21578         * lib/gl_avltree_oset.c: Don't include xalloc.h.
21579         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
21580         xmalloc.
21581         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
21582         not xmalloc.
21583         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
21584         xmalloc.
21585         (gl_avltree_oset_implementation): Update.
21586         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
21587         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
21588         xmalloc.
21589         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
21590         not xmalloc.
21591         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
21592         xmalloc.
21593         (gl_rbtree_oset_implementation): Update.
21594         * modules/array-oset (Depends-on): Remove xalloc.
21595         * modules/avltree-oset (Depends-on): Likewise.
21596         * modules/rbtree-oset (Depends-on): Likewise.
21597         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
21598         * tests/test-avltree_oset.c: Likewise.
21599         * tests/test-rbtree_oset.c: Likewise.
21600         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
21601         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
21602         * modules/rbtree-oset-tests (Makefile.am): Likewise.
21603         * NEWS: Mention the change.
21604
21605 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
21606
21607         maint.mk: allow a project to override release-prep commands
21608         * top/maint.mk (alpha, beta, stable): Move release-preparatory
21609         commands into a new rule.
21610         (release-prep): New rule.
21611         (release-prep-hook): New overridable variable.
21612
21613 2009-12-13  Bruno Haible  <bruno@clisp.org>
21614
21615         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
21616
21617 2009-12-13  Jim Meyering  <meyering@redhat.com>
21618
21619         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
21620         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
21621
21622 2009-12-12  Bruno Haible  <bruno@clisp.org>
21623
21624         duplocale: Tweak.
21625         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
21626
21627 2009-12-12  Karl Berry  <karl@gnu.org>
21628
21629         * config/srclist.txt (strtoll.c): tab changes, no more sync.
21630
21631 2009-12-12  Bruno Haible  <bruno@clisp.org>
21632
21633         * m4/po.m4: Undo incorrect untabification.
21634
21635 2009-12-12  Bruno Haible  <bruno@clisp.org>
21636
21637         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
21638         * modules/c-strtod (Depends-on): Add locale.
21639         * modules/c-strtold (Depends-on): Likewise.
21640
21641 2009-12-12  Bruno Haible  <bruno@clisp.org>
21642
21643         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
21644
21645 2009-12-11  Eric Blake  <ebb9@byu.net>
21646
21647         setenv: relax requirement in light of POSIX ruling
21648         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
21649         not NULL.
21650         * tests/test-setenv.c (main): Relax test.
21651         * tests/test-unsetenv.c (main): Likewise.
21652         * doc/posix-functions/setenv.texi (setenv): Document this.
21653         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
21654
21655 2009-12-11  Bruno Haible  <bruno@clisp.org>
21656
21657         New module 'fd-safer-flag'.
21658         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
21659         * lib/dup-safer.c (dup_safer_flag): Remove function.
21660         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
21661         * lib/fd-safer.c (fd_safer_flag): Remove function.
21662         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
21663         * modules/cloexec (configure.ac): Drop indicator macro.
21664         * modules/fd-safer-flag: New file.
21665         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
21666         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
21667         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
21668
21669 2009-12-11  Bruno Haible  <bruno@clisp.org>
21670
21671         Tests for module 'nl_langinfo'.
21672         * modules/nl_langinfo-tests: New file.
21673         * tests/test-nl_langinfo.sh: New file.
21674         * tests/test-nl_langinfo.c: New file.
21675
21676         New module 'nl_langinfo'.
21677         * lib/nl_langinfo.c: New file.
21678         * m4/nl_langinfo.m4: New file.
21679         * modules/nl_langinfo: New file.
21680         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
21681
21682 2009-12-11  Bruno Haible  <bruno@clisp.org>
21683
21684         Tests for module 'langinfo'.
21685         * modules/langinfo-tests: New file.
21686         * tests/test-langinfo.c: New file.
21687
21688         New module 'langinfo'.
21689         * lib/langinfo.in.h: New file.
21690         * m4/langinfo_h.m4: New file.
21691         * modules/langinfo: New file.
21692         * doc/posix-headers/langinfo.texi: Mention the new module.
21693
21694 2009-12-11  Bruno Haible  <bruno@clisp.org>
21695
21696         * lib/config.charset: Untabify.
21697
21698 2009-12-11  Bruno Haible  <bruno@clisp.org>
21699
21700         * modules/unistd-safer (configure.ac): Drop indicator macro.
21701
21702 2009-12-11  Bruno Haible  <bruno@clisp.org>
21703
21704         Move pipe2-safer code to its own file.
21705         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
21706         * lib/pipe-safer.c (pipe2_safer): Remove function.
21707         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
21708         (Makefile.am): Add it to lib_SOURCES.
21709
21710 2009-12-10  Bruno Haible  <bruno@clisp.org>
21711
21712         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
21713
21714 2009-12-10  Bruno Haible  <bruno@clisp.org>
21715
21716         Declare which arguments expect non-NULL values, for GCC and clang.
21717         * build-aux/arg-nonnull.h: New file.
21718         * modules/arg-nonnull: New file.
21719         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
21720         (inet_ntop, inet_pton): Use it.
21721         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
21722         (closedir, dirfd, opendir, scandir, alphasort): Use it.
21723         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
21724         (open, openat): Use it.
21725         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
21726         (fnmatch): Use it.
21727         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
21728         (getopt, getopt_long, getopt_long_only): Use it.
21729         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
21730         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
21731         Use it.
21732         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
21733         (iconv_open): Use it.
21734         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
21735         (strtoimax, strtoumax): Use it.
21736         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
21737         (duplocale): Use it.
21738         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
21739         (frexp, frexpl): Use it.
21740         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
21741         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
21742         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
21743         (tsearch, tfind, tdelete, twalk): Use it.
21744         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
21745         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
21746         sigpending): Use it.
21747         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
21748         (posix_spawn, posix_spawnp, posix_spawnattr_init,
21749         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
21750         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
21751         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
21752         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
21753         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
21754         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
21755         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
21756         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
21757         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
21758         Use it.
21759         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
21760         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
21761         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
21762         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
21763         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
21764         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
21765         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
21766         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
21767         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
21768         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
21769         strtoull, unsetenv): Use it.
21770         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
21771         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
21772         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
21773         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
21774         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
21775         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
21776         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
21777         (strcasecmp, strncasecmp): Use it.
21778         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
21779         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
21780         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
21781         rpl_setsockopt): Use it.
21782         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
21783         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
21784         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
21785         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
21786         (gettimeofday): Use it.
21787         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
21788         (times): Use it.
21789         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
21790         (uname): Use it.
21791         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
21792         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
21793         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
21794         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
21795         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
21796         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
21797         unlinkat, write): Use it.
21798         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
21799         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
21800         * lib/argv-iter.h: Include arg-nonnull.h.
21801         (_ATTRIBUTE_NONNULL_): Remove macro.
21802         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
21803         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
21804         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
21805         optimization.
21806         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
21807         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
21808         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
21809         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
21810         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
21811         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
21812         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
21813         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
21814         * modules/arpa_inet (Depends-on): Add arg-nonnull.
21815         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
21816         * modules/dirent (Depends-on): Add arg-nonnull.
21817         (Makefile.am): Insert arg-nonnull.h into dirent.h.
21818         * modules/fcntl-h (Depends-on): Add arg-nonnull.
21819         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
21820         * modules/fnmatch (Depends-on): Add arg-nonnull.
21821         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
21822         * modules/getopt-posix (Depends-on): Add arg-nonnull.
21823         (Makefile.am): Insert arg-nonnull.h into getopt.h.
21824         * modules/glob (Depends-on): Add arg-nonnull.
21825         (Makefile.am): Insert arg-nonnull.h into glob.h.
21826         * modules/iconv_open (Depends-on): Add arg-nonnull.
21827         (Makefile.am): Insert arg-nonnull.h into iconv.h.
21828         * modules/inttypes (Depends-on): Add arg-nonnull.
21829         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
21830         * modules/locale (Depends-on): Add arg-nonnull.
21831         (Makefile.am): Insert arg-nonnull.h into locale.h.
21832         * modules/math (Depends-on): Add arg-nonnull.
21833         (Makefile.am): Insert arg-nonnull.h into math.h.
21834         * modules/netdb (Depends-on): Add arg-nonnull.
21835         (Makefile.am): Insert arg-nonnull.h into netdb.h.
21836         * modules/search (Depends-on): Add arg-nonnull.
21837         (Makefile.am): Insert arg-nonnull.h into search.h.
21838         * modules/signal (Depends-on): Add arg-nonnull.
21839         (Makefile.am): Insert arg-nonnull.h into signal.h.
21840         * modules/spawn (Depends-on): Add arg-nonnull.
21841         (Makefile.am): Insert arg-nonnull.h into spawn.h.
21842         * modules/stdio (Depends-on): Add arg-nonnull.
21843         (Makefile.am): Insert arg-nonnull.h into stdio.h.
21844         * modules/stdlib (Depends-on): Add arg-nonnull.
21845         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
21846         * modules/string (Depends-on): Add arg-nonnull.
21847         (Makefile.am): Insert arg-nonnull.h into string.h.
21848         * modules/strings (Depends-on): Add arg-nonnull.
21849         (Makefile.am): Insert arg-nonnull.h into strings.h.
21850         * modules/sys_socket (Depends-on): Add arg-nonnull.
21851         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
21852         * modules/sys_stat (Depends-on): Add arg-nonnull.
21853         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
21854         * modules/sys_time (Depends-on): Add arg-nonnull.
21855         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
21856         * modules/sys_times (Depends-on): Add arg-nonnull.
21857         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
21858         * modules/sys_utsname (Depends-on): Add arg-nonnull.
21859         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
21860         * modules/time (Depends-on): Add arg-nonnull.
21861         (Makefile.am): Insert arg-nonnull.h into time.h.
21862         * modules/unistd (Depends-on): Add arg-nonnull.
21863         (Makefile.am): Insert arg-nonnull.h into unistd.h.
21864         * modules/wchar (Depends-on): Add arg-nonnull.
21865         (Makefile.am): Insert arg-nonnull.h into wchar.h.
21866         * modules/argv-iter (Depends-on): Add arg-nonnull.
21867         * tests/test-canonicalize.c (null_ptr): New function.
21868         (main): Use it.
21869         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
21870         (main): Use it.
21871         * tests/test-memmem.c (null_ptr): New function.
21872         (main): Use it.
21873         Reported by Jim Meyering.
21874
21875 2009-12-10  Bruno Haible  <bruno@clisp.org>
21876
21877         Use spaces for indentation, not tabs.
21878         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21879         * m4/*.m4: Untabify.
21880         * build-aux/*.h: Untabify.
21881         * tests/**/*.[hc]: Untabify.
21882         * README: New section "Indent with spaces, not TABs", based on
21883         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
21884         * NEWS: Mention the change.
21885
21886 2009-12-10  Bruno Haible  <bruno@clisp.org>
21887
21888         pty test: Fix link error.
21889         * modules/pty-tests (Makefile.am): Add the default LDADD value to
21890         test_pty_LDADD.
21891
21892 2009-12-07  Simon Josefsson  <simon@josefsson.org>
21893
21894         * modules/pty: New file.
21895         * modules/pty-tests: New file.
21896         * m4/pty.m4: New file.
21897         * tests/test-pty.c: New file.
21898         * doc/glibc-headers/pty.texi: Modified.
21899         * doc/glibc-functions/forkpty.texi: Modified.
21900         * doc/glibc-functions/openpty.texi: Modified.
21901
21902 2009-12-10  Bruno Haible  <bruno@clisp.org>
21903
21904         Avoid syntax error in C++ mode.
21905         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
21906
21907 2009-12-10  Bruno Haible  <bruno@clisp.org>
21908
21909         Use sed with option -e.
21910         * gnulib-tool (func_version, func_emit_copyright_notice,
21911         func_emit_initmacro_end, func_import, func_create_testdir): Pass
21912         option -e to sed.
21913         * modules/link-warning (Makefile.am): Likewise.
21914
21915 2009-12-10  Jim Meyering  <meyering@redhat.com>
21916
21917         mgetgroups: do not write bytes beyond end of malloc'd buffer
21918         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
21919         username, we call getgroups with a one-element-shorter buffer,
21920         but still told it the length was original, max_n_groups.
21921
21922 2009-12-09  Eric Blake  <ebb9@byu.net>
21923
21924         cloexec: relax license
21925         * modules/cloexec (Maintainer): Add myself.
21926         (License): Use LGPL, not GPL.
21927
21928         link-warning: optimize generation
21929         * modules/link-warning (Makefile.am): Reduce process usage.
21930
21931 2009-12-09  Bruno Haible  <bruno@clisp.org>
21932
21933         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
21934         workaround was added on 2009-11-17.
21935
21936 2009-12-09  Jim Meyering  <meyering@redhat.com>
21937             Bruno Haible  <bruno@clisp.org>
21938
21939         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
21940         * modules/link-warning (Makefile.am): Make the comment-removing sed
21941         command more robust in the face of bootstrap-prepended comment lines.
21942
21943 2009-12-09  Bruno Haible  <bruno@clisp.org>
21944
21945         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
21946         most one group.
21947
21948 2009-12-09  Simon Josefsson <simon@josefsson.org>
21949             Bruno Haible  <bruno@clisp.org>
21950
21951         * build-aux/link-warning.h: Add copyright notice.
21952         * modules/link-warning (Makefile.am): Generate link-warning.h from
21953         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
21954         * NEWS: Mention change in link-warning module.
21955         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
21956         * modules/dirent (Makefile.am): Add dependency to dirent.h.
21957         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
21958         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
21959         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
21960         * modules/math (Makefile.am): Add dependency to math.h.
21961         * modules/search (Makefile.am): Add dependency to search.h.
21962         * modules/signal (Makefile.am): Add dependency to signal.h.
21963         * modules/spawn (Makefile.am): Add dependency to spawn.h.
21964         * modules/stdio (Makefile.am): Add dependency to stdio.h.
21965         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
21966         * modules/string (Makefile.am): Add dependency to string.h.
21967         * modules/strings (Makefile.am): Add dependency to strings.h.
21968         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
21969         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
21970         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
21971         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
21972         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
21973         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
21974         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
21975         * modules/unistd (Makefile.am): Add dependency to unistd.h.
21976         * modules/wchar (Makefile.am): Add dependency to wchar.h.
21977
21978 2009-12-09  Bruno Haible  <bruno@clisp.org>
21979
21980         fchdir: Optimize away rpl_fstat when possible.
21981         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
21982         REPLACE_OPEN_DIRECTORY.
21983         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
21984
21985 2009-12-09  Bruno Haible  <bruno@clisp.org>
21986
21987         * lib/fchdir.c: Update comment.
21988
21989 2009-12-09  Bruno Haible  <bruno@clisp.org>
21990
21991         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
21992
21993 2009-12-08  Eric Blake  <ebb9@byu.net>
21994
21995         fchdir: avoid memory leak on re-registration.
21996         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
21997
21998 2009-12-08  Jim Meyering  <meyering@redhat.com>
21999
22000         init.sh: avoid Solaris 10 /bin/sh portability problem
22001         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
22002         sourced script:
22003           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
22004           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
22005           bar
22006         tests/init.sh relied on that, accepting a --set-path=DIR argument,
22007         and two tests used that idiom.
22008         * tests/init.sh: Update suggested usage comments.
22009         (path_prepend_): New function, to be used in place
22010         of the --src-path=DIR option.
22011         (setup_): Move PATH-prepending code into path_prepend_.
22012         * tests/test-pread.sh: Adapt to new usage.
22013         * tests/test-xalloc-die.sh: Likewise.
22014
22015 2009-12-08  Simon Josefsson  <simon@josefsson.org>
22016
22017         * doc/gnulib.texi (Glibc pty.h): Add.
22018         * doc/glibc-functions/forkpty.texi: Add.
22019         * doc/glibc-functions/openpty.texi: Add.
22020         Suggested by Bruno Haible.
22021
22022 2009-12-08  Eric Blake  <ebb9@byu.net>
22023
22024         fchdir: fix logic bugs
22025         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
22026         * tests/test-fchdir.c (main): Enhance test.
22027         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
22028         is in use.
22029
22030         dup2: fix logic bugs
22031         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
22032         REPLACE_DUP2 to decide when rpl_dup2 is needed.
22033         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
22034         exists.
22035         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
22036
22037 2009-12-07  Eric Blake  <ebb9@byu.net>
22038
22039         unlink: fix m4 detection
22040         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
22041
22042         unistd-safer: add unit test
22043         * modules/unistd-safer-tests: New file.
22044         * tests/test-dup-safer.c: Likewise.
22045         * tests/test-cloexec.c (setmode): Avoid compiler warning.
22046         * tests/test-dup2.c (setmode): Likewise.
22047         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
22048
22049         cloexec: preserve text vs. binary across dup_cloexec
22050         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
22051         mode.
22052         * modules/dup2-tests (Depends-on): Add binary-io.
22053         * modules/cloexec-tests (Depends-on): Likewise.
22054         * tests/test-dup2.c (setmode, is_mode): New helpers.
22055         (main): Add tests that translation mode is preserved.
22056         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
22057         Reported by Bruno Haible.
22058
22059         mgetgroups: reduce duplicate listings
22060         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
22061         resulting array.
22062         * tests/test-chown.h (test_chown): Simplify client.
22063         * tests/test-lchown.h (test_lchown): Likewise.
22064
22065 2009-12-06  Bruno Haible  <bruno@clisp.org>
22066
22067         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
22068         value.
22069
22070 2009-12-06  Bruno Haible  <bruno@clisp.org>
22071
22072         * lib/progname.c: Include stdio.h, stdlib.h.
22073         (set_program_name): Reject a NULL argument.
22074
22075 2009-12-05  Eric Blake  <ebb9@byu.net>
22076
22077         pipe2-safer: new module
22078         * modules/pipe2-safer: New file.
22079         * lib/unistd-safer.h (pipe2_safer): New prototype.
22080         * lib/unistd--.h (pipe2): New wrapper.
22081         * lib/pipe-safer.c (pipe2_safer): New function.
22082         * modules/pipe (Depends-on): Add pipe2-safer.
22083         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
22084
22085         stdlib-safer: preserve cloexec flag for mkostemp[s]
22086         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
22087         fd_safer_flag.
22088
22089         unistd-safer: allow preservation of cloexec status via flag
22090         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
22091         prototypes.
22092         * lib/dup-safer.c (dup_safer_flag): New function.
22093         * lib/fd-safer.c (fd_safer_flag): Likewise.
22094         * modules/cloexec (configure.ac): Set witness.
22095
22096         test-dup2: enhance test
22097         * modules/dup2-tests (Depends-on): Add cloexec.
22098         * tests/test-dup2.c (main): Enhance test.
22099
22100         cloexec: add dup_cloexec
22101         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
22102         header and comments.
22103         * lib/cloexec.c (set_cloexec_flag): Add comments.
22104         (dup_cloexec): New function, with mingw implementation borrowed
22105         from...
22106         * lib/w32spawn.h (dup_noinherit): ...here.
22107         * modules/execute (Depends-on): Add cloexec.
22108         * modules/pipe (Depends-on): Likewise.
22109         * modules/cloexec (Depends-on): Add dup2.
22110         * modules/cloexec-tests (Files): New file.
22111         * tests/test-cloexec.c: Likewise.
22112
22113         test-xalloc-die: fix test for mingw
22114         * modules/xalloc-die-tests (Files): Add tests/init.sh.
22115         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
22116         directory and .exe suffix off argv[0] output.
22117
22118         test-fseeko: fix test for mingw
22119         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
22120         than undefining fseek, so test will pass on mingw.
22121
22122 2009-12-05  Bruno Haible  <bruno@clisp.org>
22123
22124         * lib/progname.h (set_program_name): Clarify specification.
22125         * lib/progname.c (set_program_name): Likewise.
22126         Reported by Jim Meyering.
22127
22128 2009-12-05  Jim Meyering  <meyering@redhat.com>
22129
22130         maint.mk: backslash-escape parens in default regexp
22131         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
22132         backslash-escape the literal parentheses.
22133
22134         maint.mk: news-date-check: use grep -E
22135         * top/maint.mk (today): Define a Make variable, not a...
22136         (news-date-check): ...shell variable.
22137         (news-date-regexp): Use the Make variable.
22138         Use grep's -E option.  Change the failing diagnostic to mention
22139         the variable, $(news-date-regexp).
22140
22141 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
22142
22143         maintainer-makefile: allow customization of NEWS entry format
22144         * top/maint.mk (news-date-regexp): New overridable variable.
22145         (news-date-check): Use it.
22146
22147 2009-12-04  Eric Blake  <ebb9@byu.net>
22148
22149         mgetgroups: add xgetgroups, and avoid ENOSYS failures
22150         * lib/mgetgroups.h (xgetgroups): New prototype.
22151         * lib/mgetgroups.c (xgetgroups): New wrapper.
22152         (mgetgroups): Handle ENOSYS.
22153         * modules/mgetgroups (Depends-on): Add realloc.
22154         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
22155
22156         mgetgroups: avoid argument promotion issues with -1
22157         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
22158         for invalid gid_t.
22159         * tests/test-chown.h (getegid, test_chown): Likewise.
22160         * tests/test-lchown.h (getegid, test_lchown): Likewise.
22161
22162 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
22163
22164         exclude: Fix header file problems.
22165         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
22166
22167 2009-12-01  Jim Meyering  <meyering@redhat.com>
22168
22169         fts: fts_open: do not let an empty string cause immediate failure
22170         This is required in support of GNU rm, for which the command
22171         "rm A '' B" must process and remove both A and B, in spite of
22172         the empty string argument.
22173         * lib/fts.c (fts_open): Do not let the presence of an empty string
22174         cause fts_open to fail immediately.  Most fts-using tools must be
22175         able to process all arguments, in order, and can be expected to
22176         diagnose such arguments themselves.
22177
22178 2009-11-30  Eric Blake  <ebb9@byu.net>
22179
22180         utimens: fix compilation error
22181         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
22182         Declare variable at right scope.
22183
22184 2009-11-29  Jim Meyering  <meyering@redhat.com>
22185
22186         bootstrap: handle perl-5.11's changed --version output
22187         * build-aux/bootstrap (get_version): Handle perl separately,
22188         since perl-5.11's --version output is different.
22189
22190 2009-11-28  Jim Meyering  <meyering@redhat.com>
22191
22192         userspec: depend on the inttostr module, too
22193         * modules/userspec (Depends-on): Add inttostr.
22194
22195         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
22196         * lib/userspec.c (parse_with_separator): Do not accept a user ID
22197         number of MAXUID when it evaluates to (uid_t) -1.
22198         Likewise for group ID.  Reported by Matt McCutchen in
22199         <http://savannah.gnu.org/bugs/?28113>
22200
22201         userspec: reformat to use spaces, not TABs
22202         * lib/userspec.c: Expand TABs to spaces.
22203         Add Emacs' "indent-tabs-mode: nil" hint.
22204
22205 2009-11-27  Eric Blake  <ebb9@byu.net>
22206
22207         getopt-gnu: flush out another BSD bug
22208         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
22209         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
22210         flush out BSD bug.
22211         * tests/test-getopt.h (test_getopt): End lists with NULL.
22212         * tests/test-getopt_long.h (test_getopt_long): Likewise.
22213         (test_getopt_long_posix): Enhance test.
22214         * modules/getopt-posix-tests (Depends-on): Add stdbool.
22215         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
22216         getopt-gnu.
22217         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22218         Likewise.
22219
22220 2009-11-27  Simon Josefsson  <simon@josefsson.org>
22221
22222         * modules/idpriv-droptemp-tests (Notice): Fix text.
22223
22224 2009-11-27  Jim Meyering  <meyering@redhat.com>
22225
22226         test-xalloc-die: avoid spurious failure due to libtool argv difference
22227         In a libtool-enabled project, this test would fail due to a difference
22228         in the emitted program name, e.g.,
22229         -test-xalloc-die: memory exhausted
22230         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
22231         Use program to avoid that.
22232         * modules/xalloc-die-tests (Depends-on): Add progname.
22233         * tests/test-xalloc-die.c: Include progname.h".
22234         (program_name): Remove decl.
22235         (main): Call set_program_name.
22236         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
22237
22238 2009-11-26  Richard Jones  <rjones@redhat.com>
22239
22240         w32sock: leave win32 error in place.
22241         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
22242
22243 2009-11-26  Eric Blake  <ebb9@byu.net>
22244
22245         init.sh: suggest to use skip_ and fail_ functions in comments
22246         * tests/init.sh: Add a sentence.
22247
22248 2009-11-25  Bruno Haible  <bruno@clisp.org>
22249
22250         init.sh: add documentation in comments
22251         * tests/init.sh: Add some developer and user documentation.
22252
22253 2009-11-26  Jim Meyering  <meyering@redhat.com>
22254
22255         init.sh: accommodate even those who specify bogus srcdir manually
22256         * tests/init.sh: Normally, srcdir is guaranteed by automake and
22257         configure-time tests to be sanitized, so that there is no need to
22258         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
22259         (with no double quotes) suffices.  However, since tests may be
22260         invoked manually, and since you may explicitly set srcdir to the
22261         name of a directory containing spaces, do quote its uses here.
22262         * tests/test-pread.sh: Likewise.
22263         Suggested by Bruno Haible.
22264
22265         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
22266         * tests/test-pread.sh: Write no data into the pipe, because
22267         test-pread actually reads none.  This avoids a diagnostic,
22268         "bash: echo: write error: Broken pipe", that arises in the unusual
22269         event something is ignoring SIGPIPE, and might be interpreted
22270         as some sort of failure.  Reported by Bruno Haible.
22271
22272 2009-11-25  Jim Meyering  <meyering@redhat.com>
22273
22274         test-pread: cover failure with ESPIPE and EINVAL
22275         * tests/test-pread.c (main): Test for failure, too.
22276         * tests/test-pread.sh: Invoke with stdin on a pipe.
22277         Suggested by Eric Blake.
22278
22279         pread: improvement and fix
22280         * modules/pread (Depends-on): Depend on lseek, for portability to
22281         e.g., mingw.  Suggested by Eric Blake.
22282         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
22283
22284         unistd.in.h: correct declaration of pread
22285         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
22286         Reported by Richard W.M. Jones.
22287
22288         test-pread.sh: distribute the test script
22289         * modules/pread-tests (Files): Include test-pread.sh.
22290
22291         test-pread.sh: clean up
22292         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
22293         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
22294         That is unnecessary, since it's always ".".
22295         Suggestion from Eric Blake.
22296
22297         test-pread.sh: make executable
22298         * tests/test-pread.sh: Set executable bit.
22299         Reported by Eric Blake.
22300
22301         correct typo in test-pread.sh
22302         * tests/test-pread.sh: Add #! line.
22303
22304         test pread
22305         * tests/test-pread.c: New file.
22306         * tests/test-pread.sh: Likewise.
22307         * modules/pread-tests: Likewise.
22308
22309         pread: new module
22310         * modules/pread: New file.
22311         * lib/unistd.in.h (pread): Define/declare.
22312         * lib/pread.c (pread): New file.
22313         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
22314         * modules/unistd (Makefile.am): Substitute witnesses.
22315         * doc/posix-functions/pread.texi (pread): Update.
22316         * MODULES.html.sh: Add pread.
22317
22318 2009-11-25  Jim Meyering  <meyering@redhat.com>
22319
22320         tests/init.sh: new file to be used via most *.sh tests
22321         * tests/init.sh: New file.
22322
22323 2009-11-25  Eric Blake  <ebb9@byu.net>
22324
22325         utimens: work around older Linux failure with symlinks
22326         * lib/utimens.c (lutimensat_works_really): New variable.
22327         (fdutimens, lutimens): Use it to manage kernels that support
22328         nanosecond times on files, but not on symlinks.
22329         Reported by Ondřej Vašík.
22330
22331         utimes: fix configure grammar
22332         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
22333
22334 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
22335
22336         regex: Fix fastmap for multibyte character ranges.
22337         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
22338         characters when a multibyte character range is included.
22339
22340 2009-11-22  Andy Wingo  <wingo@pobox.com>
22341
22342         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
22343         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
22344
22345 2009-11-24  Bruno Haible  <bruno@clisp.org>
22346
22347         doc: Most *_l functions exist in MacOS X 10.5.
22348         * doc/posix-functions/duplocale.texi: Update platforms list.
22349         * doc/posix-functions/freelocale.texi: Likewise.
22350         * doc/posix-functions/newlocale.texi: Likewise.
22351         * doc/posix-functions/uselocale.texi: Likewise.
22352         * doc/posix-functions/isalnum_l.texi: Likewise.
22353         * doc/posix-functions/isalpha_l.texi: Likewise.
22354         * doc/posix-functions/isblank_l.texi: Likewise.
22355         * doc/posix-functions/iscntrl_l.texi: Likewise.
22356         * doc/posix-functions/isdigit_l.texi: Likewise.
22357         * doc/posix-functions/isgraph_l.texi: Likewise.
22358         * doc/posix-functions/islower_l.texi: Likewise.
22359         * doc/posix-functions/isprint_l.texi: Likewise.
22360         * doc/posix-functions/ispunct_l.texi: Likewise.
22361         * doc/posix-functions/isspace_l.texi: Likewise.
22362         * doc/posix-functions/isupper_l.texi: Likewise.
22363         * doc/posix-functions/iswalnum_l.texi: Likewise.
22364         * doc/posix-functions/iswalpha_l.texi: Likewise.
22365         * doc/posix-functions/iswblank_l.texi: Likewise.
22366         * doc/posix-functions/iswcntrl_l.texi: Likewise.
22367         * doc/posix-functions/iswctype_l.texi: Likewise.
22368         * doc/posix-functions/iswdigit_l.texi: Likewise.
22369         * doc/posix-functions/iswgraph_l.texi: Likewise.
22370         * doc/posix-functions/iswlower_l.texi: Likewise.
22371         * doc/posix-functions/iswprint_l.texi: Likewise.
22372         * doc/posix-functions/iswpunct_l.texi: Likewise.
22373         * doc/posix-functions/iswspace_l.texi: Likewise.
22374         * doc/posix-functions/iswupper_l.texi: Likewise.
22375         * doc/posix-functions/iswxdigit_l.texi: Likewise.
22376         * doc/posix-functions/isxdigit_l.texi: Likewise.
22377         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
22378         * doc/posix-functions/strcasecmp_l.texi: Likewise.
22379         * doc/posix-functions/strcoll_l.texi: Likewise.
22380         * doc/posix-functions/strfmon_l.texi: Likewise.
22381         * doc/posix-functions/strftime_l.texi: Likewise.
22382         * doc/posix-functions/strncasecmp_l.texi: Likewise.
22383         * doc/posix-functions/strxfrm_l.texi: Likewise.
22384         * doc/posix-functions/tolower_l.texi: Likewise.
22385         * doc/posix-functions/toupper_l.texi: Likewise.
22386         * doc/posix-functions/towctrans_l.texi: Likewise.
22387         * doc/posix-functions/towlower_l.texi: Likewise.
22388         * doc/posix-functions/towupper_l.texi: Likewise.
22389         * doc/posix-functions/wcscoll_l.texi: Likewise.
22390         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
22391         * doc/posix-functions/wctrans_l.texi: Likewise.
22392         * doc/posix-functions/wctype_l.texi: Likewise.
22393         * doc/glibc-functions/strptime_l.texi: Likewise.
22394         * doc/glibc-functions/strtod_l.texi: Likewise.
22395         * doc/glibc-functions/strtof_l.texi: Likewise.
22396         * doc/glibc-functions/strtol_l.texi: Likewise.
22397         * doc/glibc-functions/strtold_l.texi: Likewise.
22398         * doc/glibc-functions/strtoll_l.texi: Likewise.
22399         * doc/glibc-functions/strtoul_l.texi: Likewise.
22400         * doc/glibc-functions/strtoull_l.texi: Likewise.
22401         * doc/glibc-functions/wcsftime_l.texi: Likewise.
22402         * doc/glibc-functions/wcstod_l.texi: Likewise.
22403         * doc/glibc-functions/wcstof_l.texi: Likewise.
22404         * doc/glibc-functions/wcstol_l.texi: Likewise.
22405         * doc/glibc-functions/wcstold_l.texi: Likewise.
22406         * doc/glibc-functions/wcstoll_l.texi: Likewise.
22407         * doc/glibc-functions/wcstoul_l.texi: Likewise.
22408         * doc/glibc-functions/wcstoull_l.texi: Likewise.
22409
22410 2009-11-24  Bruno Haible  <bruno@clisp.org>
22411
22412         duplocale: Fix logic bug.
22413         * lib/duplocale.c: Don't include <langinfo.h>.
22414         (_NL_LOCALE_NAME): Remove macro.
22415         (rpl_duplocale): Use setlocale instead of nl_langinfo.
22416         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
22417
22418 2009-11-23  Jim Meyering  <meyering@redhat.com>
22419
22420         test-update-copyright: don't hard-code /usr/bin/perl
22421         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
22422         perl to print the current year.  Gilles Espinasse reported that
22423         the replaced use of perl was hard-coded as /usr/bin/perl.
22424
22425 2009-11-23  Bruno Haible  <bruno@clisp.org>
22426
22427         duplocale: Add support for glibc 2.3.x.
22428         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
22429
22430 2009-11-22  Bruno Haible  <bruno@clisp.org>
22431
22432         vasnprintf: Tiny optimization.
22433         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
22434         MacOS X.
22435
22436 2009-11-22  Bruno Haible  <bruno@clisp.org>
22437
22438         Tests for module 'duplocale'.
22439         * modules/duplocale-tests: New file.
22440         * tests/test-duplocale.c: New file.
22441
22442         New module 'duplocale'.
22443         * m4/duplocale.m4: New file.
22444         * lib/locale.in.h (duplocale): New declaration.
22445         * lib/duplocale.c: New file.
22446         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
22447         gl_LOCALE_H_DEFAULTS): New macros.
22448         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
22449         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
22450         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
22451         REPLACE_DUPLOCALE.
22452         * modules/duplocale: New file.
22453         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
22454
22455 2009-11-22  Bruno Haible  <bruno@clisp.org>
22456
22457         * modules/locale-tests (configure.ac): Test for newlocale function.
22458         * tests/test-locale.c: When the system has extended locale functions,
22459         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
22460
22461         locale: Make locale_t available when possible.
22462         * lib/locale.in.h: Include <xlocale.h> when it exists.
22463         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
22464         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
22465         * modules/locale (Depends-on): Add extensions.
22466         (Makefile.am): Also substitute HAVE_XLOCALE_H.
22467         * doc/posix-headers/locale.texi: Document the problem with locale_t.
22468
22469 2009-11-22  Bruno Haible  <bruno@clisp.org>
22470
22471         Add comments.
22472         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
22473         invocation.
22474         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
22475         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22476         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
22477
22478 2009-11-22  Bruno Haible  <bruno@clisp.org>
22479
22480         error: account for the possibility of freopen (stdout).
22481         * lib/error.c: Include <unistd.h>.
22482         (flush_stdout): New function, extracted from error and error_at_line.
22483         Determine stdout's fd dynamically.
22484         (error, error_at_line): Invoke flush_stdout.
22485         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
22486         * modules/error (Depends-on): Add unistd.
22487
22488 2009-11-22  Bruno Haible  <bruno@clisp.org>
22489
22490         diffseq: Add comment.
22491         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
22492
22493 2009-11-22  Jim Meyering  <meyering@redhat.com>
22494
22495         c-stack: avoid defining an unused static function
22496         * lib/c-stack.c (find_stack_direction): Do not define this function
22497         when it will not be used.
22498
22499         diffseq: avoid spurious gcc warnings
22500         * lib/diffseq.h (IF_LINT2): Define.
22501         (compareseq): Use it to initialize two members of "part".
22502         This avoids two used-uninitialized warnings.
22503
22504 2009-11-21  Jim Meyering  <meyering@redhat.com>
22505
22506         c-stack: avoid "ignoring return value of `write'" warning
22507         * lib/c-stack.c: Include "ignore-value.h".
22508         (die): Explicitly ignore each write return value.
22509         * modules/c-stack (Depends-on): Add ignore-value.
22510
22511 2009-11-21  Bruno Haible  <bruno@clisp.org>
22512
22513         diffseq: reduce scope of variable 'best'.
22514         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
22515         variable, earlier used for two different purposes.
22516
22517 2009-11-21  Jim Meyering  <meyering@redhat.com>
22518
22519         diffseq: remove useless assignment to "best"
22520         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
22521         assignment.  At that point "best" is already guaranteed to be zero.
22522
22523 2009-11-20  Eric Blake  <ebb9@byu.net>
22524
22525         build: mention ftp redirector in release announcements
22526         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
22527         values that used to come from cfg.mk; mention FTP redirect URL.
22528         * build-aux/announce-gen: Mention the mirror list.
22529         Suggested by Karl Berry.
22530
22531         nanosleep: improve port to mingw
22532         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
22533         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
22534         LIB_NANOSLEEP, but only when needed.
22535         * modules/select (Link): Document LIBSOCKET.
22536         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
22537         enough.
22538
22539         nanosleep: work around cygwin bug
22540         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
22541         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
22542         bug.
22543         (getnow): Delete, not needed.
22544         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
22545         LIB_CLOCK_GETTIME.
22546         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
22547         clock-time, gettime.
22548         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
22549         bug.
22550         * modules/nanosleep-tests: New test.
22551         * tests/test-nanosleep.c: New file.
22552
22553         sleep: work around cygwin bug
22554         * lib/sleep.c (rpl_sleep): Work around the bug.
22555         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
22556         (gl_PREREQ_SLEEP): Delete unused macro.
22557         * modules/sleep (Depends-on): Add verify.
22558         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
22559         * modules/unistd (Makefile.am): Substitute witness.
22560         * lib/unistd.in.h (sleep): Update prototype.
22561         * doc/posix-functions/sleep.texi (sleep): Document the bug.
22562         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
22563         * modules/sleep-tests (Depends-on): Check for alarm.
22564
22565 2009-11-20  Jim Meyering  <meyering@redhat.com>
22566
22567         maint.mk: improve sc_prohibit_magic_number_exit
22568         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
22569         so it does not match uses like System.exit(1).
22570         Add comments showing how to correct all offenders.
22571
22572 2009-11-19  Eric Blake  <ebb9@byu.net>
22573
22574         xalloc-die-tests: add missing library
22575         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
22576
22577         test-xvasprintf: silence compiler warnings
22578         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
22579         empty string from gcc.
22580
22581 2009-11-19  Jim Meyering  <meyering@redhat.com>
22582
22583         xfreopen: new module, from coreutils
22584         * modules/xfreopen: New module.
22585         * lib/xfreopen.c: New file.
22586         * lib/xfreopen.h: New file.
22587         * MODULES.html.sh (File stream based Input/Output"): Add it.
22588
22589 2009-11-19  Eric Blake  <ebb9@byu.net>
22590
22591         manywarnings: depend on warnings
22592         * modules/manywarnings (Depends-on): Add warnings.
22593
22594         build: avoid compiler warnings
22595         * lib/select.c (rpl_select): Delete unused variable.
22596         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
22597
22598 2009-11-18  Eric Blake  <ebb9@byu.net>
22599
22600         tests: avoid false negative with --with-packager
22601         * tests/test-version-etc.sh: Discard packager information.
22602         * tests/test-argp-version-etc-1.sh: Likewise.
22603         Reported by Mike Frysinger.
22604
22605         utimens: fix regression on Solaris
22606         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
22607         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
22608         can only change fd timestamps via futimesat.  Instead, use an
22609         additional witness macro to avoid BSD bug.
22610         Reported by Jim Meyering.
22611
22612 2009-11-17  Eric Blake  <ebb9@byu.net>
22613
22614         usleep: use it to simplify tests
22615         * modules/stat-time-tests (Depends-on): Add usleep.
22616         (configure.ac): Drop usleep check.
22617         * modules/chown-tests (Depends-on, configure.ac): Likewise.
22618         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
22619         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
22620         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
22621         * modules/openat-tests (Depends-on, configure.ac): Likewise.
22622         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
22623         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
22624         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
22625         Likewise.
22626         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
22627         * tests/test-lchown.h (nap): Likewise.
22628         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
22629         * tests/test-stat-time.c (nap): Likewise.
22630         * tests/test-utimens-common.h (nap): Update comments.
22631
22632         usleep: new module
22633         * modules/usleep: New file.
22634         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
22635         * lib/usleep.c (usleep): Likewise.
22636         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
22637         * modules/unistd (Makefile.am): Substitute witnesses.
22638         * lib/unistd.in.h (usleep): Add declaration.
22639         * doc/pastposix-functions/usleep.texi (usleep): Document this.
22640         * MODULES.html.sh (Date and time): Likewise.
22641         * modules/usleep-tests (Depends-on): New test.
22642         * tests/test-usleep.c: New file.
22643
22644         chown: work around OpenBSD bug
22645         * lib/chown.c (rpl_chown): Work around the bug.
22646         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
22647         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
22648         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
22649         * modules/chown (Depends-on): Add stdbool.
22650         * modules/lchown (Depends-on): Likewise.
22651         * doc/posix-functions/chown.texi (chown): Document the bug.
22652         * doc/posix-functions/lchown.texi (lchown): Likewise.
22653         * tests/test-lchown.h (test_chown): Relax test.
22654
22655         mkstemp: avoid conflict with C++ keyword template
22656         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
22657         * lib/mkostemp.c (mkostemp): Likewise.
22658         * lib/mkostemps.c (mkostemps): Likewise.
22659         * lib/mkstemp.c (mkstemp): Likewise.
22660         * lib/mkstemps.c (mkstemps): Likewise.
22661
22662         xalloc-die-tests: optimize
22663         * tests/test-xalloc-die.sh: Reduce number of processes.
22664
22665 2009-11-17  Simon Josefsson  <simon@josefsson.org>
22666
22667         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
22668         patch from ludo@gnu.org (Ludovic Courtès).
22669
22670 2009-11-17  Jim Meyering  <meyering@redhat.com>
22671
22672         version-etc: use proper license string
22673         * modules/version-etc (License): Use LGPL, not LGPLv3+.
22674         * modules/version-etc-fsf: Likewise.
22675
22676 2009-11-17  Simon Josefsson  <simon@josefsson.org>
22677
22678         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
22679         printed to stdout.  Deal with EOL differences.
22680
22681 2009-11-17  Eric Blake  <ebb9@byu.net>
22682
22683         unsetenv: work around Solaris bug
22684         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
22685         * lib/unsetenv.c (rpl_unsetenv): Work around it.
22686         Reported by Jim Meyering.
22687
22688         vasnprintf: avoid compiler warnings
22689         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
22690         variables.
22691         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
22692
22693 2009-11-17  Simon Josefsson  <simon@josefsson.org>
22694
22695         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
22696         settings since xalloc-die is no longer the self test,
22697         xalloc-die.sh is.
22698
22699 2009-11-17  Jim Meyering  <meyering@redhat.com>
22700
22701         test-xalloc-die.sh: make the code agree with the commit log
22702         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
22703         at the end, just in case you happen to have a test-xalloc-die
22704         program in some other PATH directory.
22705
22706         test-xalloc-die.sh: fix a portability bug
22707         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
22708         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
22709         Otherwise, argv[0] (as often seen in diagnostics) would be too
22710         system-dependent, sometimes with, and sometimes without the leading "./".
22711
22712         version-etc-fsf: relax license to LGPLv3+
22713         * modules/version-etc-fsf (License): Relax license.
22714
22715 2009-11-16  Eric Blake  <ebb9@byu.net>
22716
22717         xalloc-die-tests: avoid printing null pointer
22718         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
22719         shell script.
22720         * tests/test-xalloc-die.c (program_name): Declare.
22721         * tests/test-xalloc-die.sh (tmpfiles): New file.
22722
22723         setenv, unsetenv: work around various bugs
22724         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
22725         (setenv) [HAVE_SETENV]: Work around bugs.
22726         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
22727         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
22728         for bugs.
22729         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
22730         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
22731         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
22732         * modules/stdlib (Makefile.am): Update substitutions.
22733         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
22734         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
22735         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
22736         * modules/setenv-tests: New test.
22737         * modules/unsetenv-tests: Likewise.
22738         * tests/test-setenv.c: New file.
22739         * tests/test-unsetenv.c: Likewise.
22740
22741 2009-11-16  Jim Meyering  <meyering@redhat.com>
22742
22743         version-etc: relax license to LGPLv3+
22744         * modules/version-etc (License): Relax license.
22745
22746         better AC_REQUIRE expanded-before-required-warning avoidance
22747         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
22748         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
22749         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
22750         which is no longer needed.
22751
22752 2009-11-16  Eric Blake  <ebb9@byu.net>
22753
22754         test-freading: clean up temporary file
22755         * tests/test-freading.c (main): Remove file on success, and use
22756         ASSERT more liberally.
22757         Reported by Jim Meyering.
22758
22759 2009-11-16  Jim Meyering  <meyering@redhat.com>
22760
22761         avoid new AC_REQUIRE expanded-before-required warnings
22762         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
22763         merely using it.
22764         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
22765         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
22766
22767 2009-11-15  Simon Josefsson  <simon@josefsson.org>
22768
22769         * tests/test-xalloc-die.c: New file.
22770         * modules/xalloc-die-tests: New file.
22771         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
22772         XFAIL_TESTS so it can be appended by modules.
22773
22774 2009-11-15  Simon Josefsson  <simon@josefsson.org>
22775
22776         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
22777         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
22778
22779 2009-11-14  Eric Blake  <ebb9@byu.net>
22780
22781         fnmatch: avoid compiler warning
22782         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
22783         to silence compiler warning about mismatch signedness in ?:.
22784         Reported by Robert Millan.
22785
22786         intprops: add double-inclusion guard
22787         * lib/intprops.h: Allow idempotent includes.
22788         Suggested by Bruce Korb.
22789
22790         openat: detect Solaris fchownat bug
22791         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
22792         penalizing glibc chownat when only lchownat is broken.
22793         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
22794         trailing slash bugs.
22795         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
22796         * modules/openat-tests (Files): Include more files.
22797         (Depends-on): Add mgetgroups, sleep, stat-time.
22798         (configure.ac): Add additional checks.
22799         (Makefile.am): Build new test.
22800         * tests/test-fchownat.c: New file.
22801
22802         lchown: detect Solaris and FreeBSD bug
22803         * lib/lchown.c (rpl_lchown): Work around bug.
22804         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
22805         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22806         * modules/unistd (Makefile.am): Populate it.
22807         * lib/unistd.in.h (lchown): Update declaration.
22808         * doc/posix-functions/lchown.texi (lchown): Document the bug.
22809         * modules/lchown-tests: New file.
22810         * tests/test-lchown.h (test_lchown): Likewise.
22811         * tests/test-lchown.c (main): Likewise.
22812
22813         chown: detect Solaris and FreeBSD bug
22814         * lib/chown.c (rpl_chown): Work around bug.
22815         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
22816         (gl_PREREQ_CHOWN): Delete.
22817         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22818         * modules/unistd (Makefile.am): Populate it.
22819         * lib/unistd.in.h (chown): Update declaration.
22820         * lib/lchown.c (chown): Update client.
22821         * modules/lchown (Depends-on): Add lstat.
22822         * doc/posix-functions/chown.texi (chown): Document the bug.
22823         * doc/posix-functions/getgroups.texi (getgroups): Document
22824         getgroups pitfall.
22825         * modules/chown-tests: New file.
22826         * tests/test-chown.h (test_chown): Likewise.
22827         * tests/test-chown.c (main): Likewise.
22828
22829 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
22830
22831         gnulib-tool: correctly detect absence of m4 directories
22832         * gnulib-tool: Avoid extra newline on data passed to wc -l.
22833
22834 2009-11-14  Jim Meyering  <meyering@redhat.com>
22835
22836         maint.mk: Prohibit inclusion of "xalloc.h" without use.
22837         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
22838
22839 2009-11-14  John W. Eaton  <jwe@gnu.org>
22840
22841         strftime.h: wrap funtion declaration in extern "C" block
22842         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
22843
22844 2009-11-13  Eric Blake  <ebb9@byu.net>
22845
22846         getgroups: avoid compiler warning
22847         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
22848
22849         getgroups: work around FreeBSD bug
22850         * lib/getgroups.c (rpl_getgroups): Work around the bug.
22851         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
22852         * doc/posix-functions/getgroups.texi (getgroups): Document it.
22853         * tests/test-getgroups.c (main): Fix buffer overrun.
22854
22855         getgroups: avoid compilation failure
22856         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
22857         * modules/getgroups (Depends-on): Add stdint.
22858
22859 2009-11-13  Jim Meyering  <meyering@redhat.com>
22860
22861         test-getgroups: avoid compilation failure
22862         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
22863
22864 2009-11-13  Eric Blake  <ebb9@byu.net>
22865
22866         mgetgroups: new module, taken from coreutils
22867         * modules/mgetgroups: New file.
22868         * lib/mgetgroups.h: Likewise.
22869         * lib/mgetgroups.c (mgetgroups): Likewise.
22870         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
22871         * MODULES.html.sh (Users and groups): Mention it.
22872
22873         getgroups: don't expose GETGROUPS_T to user
22874         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
22875         an element at a time if GETGROUPS_T is wrong size.
22876         * lib/getugroups.h (getugroups): Change signature.
22877         * lib/unistd.in.h (getgroups): Likewise.
22878         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
22879         signature needs fixing.
22880         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
22881         AC_TYPE_GETGROUPS.
22882         * modules/group-member (Depends-on): Add getgroups.
22883         * lib/group-member.c (group_info, get_group_info): Use gid_t.
22884         (group_member): Rely on getgroups replacement.
22885         * lib/getugroups.c (getugroups): Use gid_t.
22886         * tests/test-getgroups.c (main): Likewise.
22887         * NEWS: Mention the signature change.
22888         * doc/posix-functions/getgroups.texi (getgroups): Mention the
22889         problem with signature.
22890         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
22891         GETGROUPS_T is still useful for setgroups.
22892
22893         getgroups, getugroups: provide stubs for mingw
22894         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
22895         * lib/getugroups.c (getugroups): Likewise.
22896         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
22897         function.  Modernize replacement scheme.
22898         (gl_PREREQ_GETGROUPS): Delete.
22899         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
22900         * modules/getgroups (configure.ac): Declare witness.
22901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
22902         * modules/unistd (Depends-on): Substitute witness.
22903         * lib/unistd.in.h (getgroups): Declare replacement.
22904
22905         getgroups: avoid calling exit
22906         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
22907         drop xalloc.
22908         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
22909         dependencies.
22910         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
22911         exiting, in the rare case of malloc failure.
22912
22913         getgroups: fix logic error
22914         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
22915         has more than 20 groups.
22916         * modules/getgroups-tests: New test.
22917         * tests/test-getgroups.c: New file.
22918
22919 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22920
22921         * tests/test-base64.c: Improve.
22922
22923 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22924
22925         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
22926         Blake <ebb9@byu.net>.
22927
22928 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22929
22930         * tests/test-xvasprintf.c: Add %s%s related checks.
22931
22932 2009-11-12  Eric Blake  <ebb9@byu.net>
22933
22934         version-etc: match standards.texi style
22935         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
22936         and use <> only for URLs.
22937
22938 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
22939
22940         fts: do not fail on a submount during traversal
22941         * lib/fts.c (fts_build): Read the stat info again after opening
22942         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
22943         Original report at http://bugzilla.redhat.com/501848.
22944
22945 2009-11-12  Jim Meyering  <meyering@redhat.com>
22946
22947         bootstrap: sync from coreutils
22948         * build-aux/bootstrap (bootstrap_epilogue): New function.
22949         Use git_modules_config in one more place.  This make bootstrap's
22950         --gnulib-srcdir option more useful for testing.
22951
22952         bootstrap: generalize autoheader check
22953         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
22954         AC_CONFIG_HEADERS.
22955
22956 2009-11-11  Eric Blake  <ebb9@byu.net>
22957
22958         mkfifoat: use new modules for Solaris and BSD bugs
22959         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
22960         * lib/mkfifoat.c (mknodat): Split...
22961         * lib/mknodat.c (mknodat): ...into new file.
22962         * modules/mkfifoat (Files): Ship new file.
22963         (Depends-on): Add mkfifo, mknod.
22964         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
22965         (Depends-on): Add symlink.
22966         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
22967         redundant with test_mkfifo.h.
22968         (do_mkfifoat, do_mknodat): New helpers.
22969
22970         mknod: new module
22971         * modules/mknod: New file.
22972         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
22973         * lib/mknod.c (mknod): Likewise.
22974         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
22975         defaults.
22976         * modules/sys_stat (Makefile.am): Substitute them.
22977         * lib/sys_stat.in.h (mknod): Declare replacement.
22978         * MODULES.html.sh (Support for systems lacking POSIX:2008):
22979         Document it.
22980         * doc/posix-functions/mknod.texi (mknod): Likewise.
22981         * modules/mknod-tests: New test.
22982         * tests/test-mknod.c: Likewise.
22983
22984         mkfifo: new module
22985         * modules/mkfifo: New file.
22986         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
22987         * lib/mkfifo.c (mkfifo): Likewise.
22988         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
22989         defaults.
22990         * modules/sys_stat (Makefile.am): Substitute them.
22991         * lib/sys_stat.in.h (mkfifo): Declare replacement.
22992         * MODULES.html.sh (Support for systems lacking POSIX:2008):
22993         Document it.
22994         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
22995         * modules/mkfifo-tests: New test.
22996         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
22997         from test-mkfifoat.c.
22998         * tests/test-mkfifo.c: New file.
22999
23000         readlink: detect FreeBSD bug
23001         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
23002         slash on symlink.
23003         * doc/posix-functions/readlink.texi (readlink): Document the bug.
23004         * tests/test-readlink.h (test_readlink): Enhance test.
23005
23006         symlink: detect FreeBSD bug
23007         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
23008         slash on symlink.
23009         * doc/posix-functions/symlink.texi (symlink): Document the bug.
23010         * tests/test-symlink.h (test_symlink): Enhance test.
23011
23012 2009-11-10  Eric Blake  <ebb9@byu.net>
23013
23014         link: detect FreeBSD bug
23015         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
23016         symlink.
23017         * doc/posix-functions/link.texi (link): Document the bug.
23018         * tests/test-link.h (test_link): Enhance test.
23019         * tests/test-linkat.c (main): Update caller.
23020
23021         unlink, remove: detect FreeBSD bug
23022         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
23023         slash on symlink.
23024         * doc/posix-functions/unlink.texi (unlink): Document the bug.
23025         * doc/posix-functions/remove.texi (remove): Likewise.
23026         * tests/test-unlink.h (test_unlink): Enhance test.
23027         * tests/test-remove.c (main): Likewise.
23028
23029 2009-11-09  Eric Blake  <ebb9@byu.net>
23030
23031         rename: detect FreeBSD bug
23032         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
23033         slash on symlink.
23034         * modules/renameat-tests (Depends-on): Add filenamecat.
23035         * tests/test-rename.h (test_rename): Allow one more errno.
23036         * tests/test-renameat.c (main): Likewise.
23037         * doc/posix-functions/rename.texi (rename): Document the bug.
23038
23039         open: detect FreeBSD bug
23040         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
23041         symlink.
23042         * doc/posix-functions/open.texi (open): Document the bug.
23043         * doc/posix-functions/utimes.texi (utimes): Likewise.
23044         * tests/test-open.h (test_open): Add parameters, and test symlink
23045         handling.
23046         * tests/test-open.c (main): Adjust caller.
23047         * tests/test-fcntl-safer.c (main): Likewise.
23048         * modules/open-tests (Depends-on): Add stdbool, symlink.
23049         * modules/fcntl-safer-tests (Depends-on): Likewise.
23050         * tests/test-openat.c (main): Add test-open tests.
23051
23052         stat: detect FreeBSD bug
23053         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
23054         symlink.
23055         * doc/posix-functions/stat.texi (stat): Document the bug.
23056         * tests/test-stat.h (test_stat_func): Add argument.
23057         * tests/test-stat.c (main): Adjust caller.
23058         * tests/test-fstatat.c (main): Likewise.
23059         * modules/stat-tests (Depends-on): Add stdbool, symlink.
23060         Reported by Jim Meyering.
23061
23062 2009-11-09  James Youngman  <jay@gnu.org>
23063
23064         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
23065         * lib/strftime.c: Correct placement of #include "ignore-value.h".
23066
23067 2009-11-08  Jim Meyering  <meyering@redhat.com>
23068
23069         utimens: remove invalid futimesat call
23070         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
23071         It used the file descriptor of the target file as the DIR_FD
23072         parameter and NULL as the file name.  That caused failure with
23073         errno == EFAULT on FreeBSD-8.0-rc2
23074
23075 2009-11-07  Eric Blake  <ebb9@byu.net>
23076
23077         fflush, freadseek: use fseeko, not fseek
23078         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
23079         (clear_ungetc_buffer): Avoid potential problems on large files.
23080         * lib/freadseek.c (freadseek): Likewise.
23081         * modules/freadseek (Depends-on): Add fseeko.
23082         * modules/fseek (configure.ac): Set a witness.
23083         * tests/test-fflush.c (main): Use fseeko.
23084         * tests/test-fpurge.c (fseek): Disable link warning.
23085         * tests/test-freadable.c (fseek): Likewise.
23086         * tests/test-freading.c (fseek): Likewise.
23087         * tests/test-fseeko.c (fseek): Likewise.
23088         * tests/test-ftell.c (fseek): Likewise.
23089         * tests/test-ftello.c (fseek): Likewise.
23090         * tests/test-fwritable.c (fseek): Likewise.
23091         * tests/test-fwriting.c (fseek): Likewise.
23092
23093 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23094
23095         * modules/memchr (Depends-on): Drop getpagesize dependency.
23096
23097 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23098
23099         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
23100         Reported by Ludovic Courtès.
23101         * build-aux/pmccabe2html: Improve example usage.
23102         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
23103
23104 2009-11-06  Jim Meyering  <meyering@redhat.com>
23105
23106         do-release-commit-and-tag: New module.
23107         Automate the release-commit and tag process.
23108         * build-aux/do-release-commit-and-tag: New script, from coreutils.
23109         * modules/do-release-commit-and-tag: New file.
23110         * MODULES.html.sh (Support for maintaining and releasing): Add it.
23111
23112 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23113
23114         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
23115         because test-select.c uses inet_pton.
23116
23117 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23118
23119         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
23120         GETADDRINFO_LIB.  Bump serial number.
23121         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
23122         Suggested by Eric Blake <ebb9@byu.net>.
23123
23124 2009-11-05  Eric Blake  <ebb9@byu.net>
23125
23126         strtod: detect darwin bug
23127         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
23128         Reported by Leo Davis.
23129
23130         freopen-safer: new module
23131         * modules/freopen-safer: New module.
23132         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
23133         * lib/freopen-safer.c (freopen_safer): New file.
23134         * lib/stdio-safer.h (freopen_safer): New declaration.
23135         * lib/stdio--.h (freopen): New override.
23136         * MODULES.html.sh (File stream based Input/Output): Mention it.
23137         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
23138         freopen-safer module.
23139         * doc/posix-functions/stderr.texi (stderr): Likewise.
23140         * doc/posix-functions/stdin.texi (stdin): Likewise.
23141         * doc/posix-functions/stdout.texi (stdout): Likewise.
23142         * modules/freopen-safer-tests: New test.
23143         * tests/test-reopen-safer.c: New file.
23144
23145 2009-11-05  Jim Meyering  <meyering@redhat.com>
23146
23147         maint.mk: Prohibit inclusion of "close-stream.h" without use.
23148         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
23149
23150 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23151
23152         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
23153
23154 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23155
23156         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
23157
23158 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23159
23160         Fix link error.
23161         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
23162         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23163
23164 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23165
23166         * tests/test-func.c: Also test value of __func__.
23167
23168 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23169
23170         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
23171         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
23172
23173 2009-11-05  Bruno Haible  <bruno@clisp.org>
23174
23175         Fix link error.
23176         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
23177         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23178         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
23179
23180 2009-11-05  Bruno Haible  <bruno@clisp.org>
23181
23182         Tests for module 'inet_pton'.
23183         * modules/inet_pton-tests: New file.
23184         * tests/test-inet_pton.c: New file.
23185
23186 2009-11-05  Bruno Haible  <bruno@clisp.org>
23187
23188         Tests for module 'inet_ntop'.
23189         * modules/inet_ntop-tests: New file.
23190         * tests/test-inet_ntop.c: New file.
23191
23192 2009-11-04  Eric Blake  <ebb9@byu.net>
23193
23194         stdlib-safer: wrap all mkstemp variants
23195         * modules/mkostemp (configure.ac): Set witness.
23196         * modules/mkostemps (configure.ac): Likewise.
23197         * modules/mkstemps (configure.ac): Likewise.
23198         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
23199         (mkstemps_safer): Wrap more functions.
23200         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
23201         wrapping.
23202         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
23203         (mkstemps_safer): Implement the wrappers.
23204
23205         mkstemps, mkostemps: new modules
23206         * modules/mkostemps: New module.
23207         * modules/mkstemps: Likewise.
23208         * lib/mkostemps.c (mkostemps): New file.
23209         * lib/mkstemps.c (mkstemps): Likewise.
23210         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
23211         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
23212         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
23213         * modules/stdlib (Makefile.am): Substitute them.
23214         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
23215         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
23216         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
23217         * doc/gnulib.texi (Glibc stdlib.h): Include them.
23218         * MODULES.html.sh (File system functions): Mention them.
23219
23220         tempname: resync from glibc
23221         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
23222         same values for __GT_FILE as glibc.  Abort even when assertions
23223         are disabled.
23224         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
23225         match its value otherwise.  Allow idempotent inclusion.
23226         * lib/mkdtemp.c (mkdtemp): Adjust caller.
23227         * lib/mkostemp.c (mkostemp): Likewise.
23228         * lib/mkstemp.c (mkstemp): Likewise.
23229         * lib/tmpfile.c (tmpfile): Likewise.
23230         * NEWS: Document this.
23231
23232         utimens: fix use of futimens on older Linux
23233         * lib/utimens.c (fdutimens): Use updated, rather than original,
23234         timespec to avoid bug in older Linux kernel.
23235         Reported by Simon Josefsson.
23236
23237 2009-11-04  Bruno Haible  <bruno@clisp.org>
23238
23239         Make num_processors more flexible and consistent.
23240         * lib/nproc.h (enum nproc_query): New type.
23241         (num_processors): Add a 'query' argument.
23242         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
23243         (num_processors): Add a 'query' argument. Test the value of the
23244         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
23245         mingw, count the number of CPUs available for the current process.
23246         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
23247         Check for sched_getaffinity and sched_getaffinity_np.
23248         * modules/nproc (Depends-on): Add c-ctype, extensions.
23249         * NEWS: Mention the change.
23250
23251 2009-11-03  Bruno Haible  <bruno@clisp.org>
23252
23253         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
23254
23255 2009-11-03  Jim Meyering  <meyering@redhat.com>
23256
23257         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
23258         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
23259         if it is defined.
23260
23261 2009-11-02  Eric Blake  <ebb9@byu.net>
23262
23263         mktime, timegm: share common declaration
23264         * lib/mktime-internal.h: New file.
23265         * lib/mktime.c: Use it rather than open-coding a declaration.
23266         * lib/timegm.c: Likewise.
23267         * modules/mktime (Files): Ship it.
23268         * modules/timegm (Files): Likewise.
23269         Suggested by Bruno Haible.
23270
23271         test-update-copyright: update test to match script changes
23272         * tests/test-update-copyright.sh: Avoid hard-coding perl
23273         location.  Don't update *.bak created by earlier runs.
23274
23275 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
23276             Simon Josefsson  <simon@josefsson.org>
23277             Bruno Haible  <bruno@clisp.org>
23278
23279         Fix link error on Solaris 8.
23280         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
23281         also in libnsl. Define also INET_PTON_LIB.
23282         * modules/inet_pton (Link): New section.
23283
23284 2009-11-02  Simon Josefsson  <simon@josefsson.org>
23285             Bruno Haible  <bruno@clisp.org>
23286
23287         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
23288         * modules/inet_ntop (Link): New section.
23289         Reported by Boyan Kasarov <bkasarov@gmail.com>.
23290
23291 2009-11-02  Eric Blake  <ebb9@byu.net>
23292
23293         maint: avoid compiler warnings in m4 macros
23294         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
23295         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
23296
23297 2009-11-02  Simon Josefsson  <simon@josefsson.org>
23298
23299         * m4/pmccabe2html.m4: Remove file.
23300         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
23301         function.  Change maintainer.
23302         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
23303         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
23304         Courtès).
23305
23306 2009-10-31  Eric Blake  <ebb9@byu.net>
23307
23308         fseeko: fix m4 regression
23309         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
23310         regression from 2009-10-27.
23311         Reported by Ralf Wildenhues.
23312
23313 2009-10-31  Jim Meyering  <meyering@redhat.com>
23314
23315         inttostr: aesthetics and improved (compile-time) safety
23316         Define inttype_is_signed rather than inttype_is_unsigned,
23317         since the sole use is via "#if inttype_is_signed".
23318         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
23319         inttype_is_unsigned.
23320         * lib/offtostr.c (inttype_is_signed): Likewise.
23321         * lib/uinttostr.c (inttype_is_signed): Likewise.
23322         * lib/umaxtostr.c (inttype_is_signed): Likewise.
23323         * lib/inttostr.c (inttostr): Use verify to cross-check the
23324         inttype_is_signed value and the signedness of the actual type.
23325         * modules/inttostr (Depends-on): Add verify.
23326
23327 2009-10-30  Eric Blake  <ebb9@byu.net>
23328
23329         build: avoid compiler warnings
23330         * lib/fchmodat.c (lchmod): Mark unused variables.
23331         * lib/getopt.c (_getopt_initialize): Likewise.
23332         * lib/mktime.c (__mktime_internal): Provide prototype.
23333         * lib/inttostr.c (inttostr): Avoid compiler warning even with
23334         older gcc that do not understand #pragma GCC diagnostic.
23335         * lib/uinttostr.c (inttype_is_unsigned): Define.
23336         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
23337
23338 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
23339
23340         stat: fix compilation on AIX
23341         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
23342         only see struct stat64.
23343
23344 2009-10-30  Eric Blake  <ebb9@byu.net>
23345
23346         exclude: make more robust
23347         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
23348         rather than masking a coding bug.
23349         Suggested by Bruno Haible.
23350
23351 2009-10-30  Jim Meyering  <meyering@redhat.com>
23352
23353         perl scripts: remove #!/usr/bin/perl in favor of more portable...
23354         Rather than putting #!/usr/bin/perl on the first line,
23355         start with a variant of what's recommended by "man perlrun" that
23356         invokes the first "perl" program from your shell's search path.
23357         * build-aux/gitlog-to-changelog: Replace #!... as above.
23358         Add a "Local Variables" perl mode setting.
23359         Prompted by a patch from Ludovic Courtès.
23360         Improved by Eric Blake.
23361         * build-aux/useless-if-before-free: Likewise.
23362         * build-aux/announce-gen: Likewise.
23363         * build-aux/update-copyright: Likewise.
23364
23365 2009-10-29  Eric Blake  <ebb9@byu.net>
23366
23367         filenamecat-lgpl: adjust clients
23368         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
23369         filenamecat.
23370         * modules/renameat (Depends-on): Likewise.
23371
23372         filenamecat: split into filenamecat-lgpl
23373         * modules/filenamecat-lgpl: New module.
23374         * modules/filenamecat (Files): Move library-safe files into
23375         filenamecat-lgpl.
23376         (Depends-on): Add filenamecat-lgpl.
23377         (configure.ac): Declare witness.
23378         * lib/filenamecat.h (file_name_concat): Only declare when using
23379         GPL module.
23380         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
23381         Move...
23382         * lib/filenamecat-lgpl.c: ...into new file.
23383         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
23384         (gl_FILE_NAME_CONCAT): Use it.
23385         * MODULES.html.sh (File system functions): Mention new module.
23386
23387         argp: avoid memory leak
23388         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
23389         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
23390         base_name, since the latter malloc()s and can call exit().
23391         Leak introduced 2006-07-03.
23392
23393         dirname-lgpl: adjust clients that don't need full dirname
23394         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
23395         * modules/filenamecat (Depends-on): Likewise.
23396         * modules/linkat (Depends-on): Likewise.
23397         * modules/mkancesdirs (Depends-on): Likewise.
23398         * modules/mkdir (Depends-on): Likewise.
23399         * modules/openat (Depends-on): Likewise.
23400         * modules/savewd (Depends-on): Likewise.
23401         * modules/rename (Depends-on): Likewise.
23402         (License): Relax license.
23403         * modules/mkdir-tests (Depends-on): Drop progname.
23404         (Makefile.am): Delete unneeded LDADD.
23405         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
23406
23407         dirname: split into dirname-lgpl
23408         * modules/dirname-lgpl: New module.
23409         * modules/dirname (Files): Move library-safe files into
23410         dirname-lgpl.
23411         (Depends-on): Add dirname-lgpl.
23412         (configure.ac): Declare witness.
23413         * modules/double-slash-root (License): Relax license.
23414         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
23415         module.
23416         * lib/dirname.c (dir_len, mdir_name): Move...
23417         * lib/dirname-lgpl.c: ...into new file.
23418         * lib/basename.c (last_component, base_len): Move...
23419         * lib/basename-lgpl.c: ...into new file.
23420         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
23421         (gl_DIRNAME): Use it.
23422         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
23423         Mention new module.
23424         * modules/dirname-tests (Depends-on): Add progname.
23425         * tests/test-dirname.c (program_name): Delete.
23426
23427         mkdir: make safe for libraries
23428         * modules/mkdir (Depends-on): Drop xalloc.
23429         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
23430         exit.
23431
23432         tests: avoid some compiler warnings
23433         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
23434         literals.
23435         * tests/test-memchr.c (main): Avoid type mismatch.
23436         * tests/test-arpa_inet.c (main): Avoid unused parameters.
23437         * tests/test-base64.c (main): Likewise.
23438         * tests/test-getdelim.c (main): Likewise.
23439         * tests/test-gethostname.c (main): Likewise.
23440         * tests/test-getline.c (main): Likewise.
23441         * tests/test-netinet_in.c (main): Likewise.
23442         * tests/test-select.c (open_server_socket, main): Likewise.
23443         * tests/test-select-stdin.c (main): Likewise.
23444         * tests/test-sockets.c (main): Likewise.
23445         * tests/test-strsignal.c (main): Likewise.
23446         * tests/test-sys_select.c (main): Likewise.
23447         * tests/test-sys_socket.c (main): Likewise.
23448         * tests/test-u64.c (main): Likewise.
23449         * tests/test-xfprintf-posix.c (main): Likewise.
23450         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
23451
23452         sockets: avoid compiler warning
23453         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
23454
23455         maint: detect usage(1) and other suspicious exits
23456         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
23457
23458 2009-10-29  Jim Meyering  <meyering@redhat.com>
23459
23460         timespec: long-to-int truncation could make timespec_cmp malfunction
23461         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
23462         a multiple of 2^32 nanoseconds as no difference.
23463
23464 2009-10-28  Jim Meyering  <meyering@redhat.com>
23465
23466         fprintftime: wrap macro code argument in "do {...} while(0)"
23467         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
23468         cpy macro must be a statement that can be followed by a semicolon.
23469         Now that the else clause contains a comment and is hence longer
23470         than one line, I require curly braces.  That in turn requires
23471         that we wrap this code block in the standard do...while(0).
23472
23473         fprintftime: remove stray semicolon from previous change
23474         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
23475
23476         fprintftime: avoid a warning about ignored fwrite return value
23477         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
23478         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
23479         that is unsafe.
23480         * modules/fprintftime (Depends-on): Add ignore-value.
23481
23482         exclude: avoid an unwarranted warning
23483         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
23484
23485 2009-10-27  Eric Blake  <ebb9@byu.net>
23486
23487         fseek: avoid compilation failure when fflush is replaced
23488         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
23489         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
23490         module is in use.
23491         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
23492         module is not in use; since REPLACE_FSEEK worked otherwise.
23493         (GNULIB_FTELLO): Likewise for ftell.
23494         Reported by Ian Beckwith and others.
23495
23496 2009-10-27  Bruno Haible  <bruno@clisp.org>
23497
23498         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
23499         Reported by Jim Meyering.
23500
23501 2009-10-27  Jim Meyering  <jim@meyering.net>
23502             Bruno Haible  <bruno@clisp.org>
23503
23504         Avoid warning despite dropping the return value of fwrite.
23505         * lib/unicodeio.c: Include ignore-value.h.
23506         (fwrite_success_callback): Explicitly ignore fwrite's return value.
23507         * modules/unicodeio (Depends-on): Add ignore-value.
23508
23509 2009-10-26  Eric Blake  <ebb9@byu.net>
23510
23511         areadlinkat: fix fallback path
23512         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
23513         pointer and zero.
23514
23515 2009-10-22  Pádraig Brady  <P@draigBrady.com>
23516
23517         Use a better IO block size for modern systems
23518         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
23519         * lib/md2.c: Likewise.
23520         * lib/md4.c: Likewise.
23521         * lib/md5.c: Likewise.
23522         * lib/sha1.c: Likewise.
23523         * lib/sha256.c: Likewise.
23524         * lib/sha512.c: Likewise.
23525
23526 2009-10-22  Eric Blake  <ebb9@byu.net>
23527
23528         tests: avoid several compiler warnings
23529         * tests/test-getcwd.c (main): Avoid buffer underflow.
23530         * tests/test-getdate.c (main): String literals are not safe with
23531         putenv, so use setenv.  Declare unused argument.
23532         * modules/getdate-tests (Depends-on): Add setenv.
23533         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
23534         problems with string literals in char *.
23535         * tests/test-hash.c (main): Avoid shadowing declaration.
23536         (insert_new): Treat string literals as char const *.
23537         * tests/test-getopt.h (test_getopt): Likewise.
23538         (getopt_loop): Alter types to minimize casting elsewhere.
23539         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
23540         (test_getopt_long_posix): Likewise.
23541         (do_getopt_long): Add wrapper to minimize casting.
23542         * tests/test-atexit.c (clear_temp_file): Use void.
23543         * tests/test-areadlink-with-size.c (main): Declare unused
23544         arguments.
23545         * tests/test-areadlink.c (main): Likewise.
23546         * tests/test-areadlinkat-with-size.c (main): Likewise.
23547         * tests/test-areadlinkat.c (main): Likewise.
23548         * tests/test-canonicalize-lgpl.c (main): Likewise.
23549         * tests/test-canonicalize.c (main): Likewise.
23550         * tests/test-dirent-safer.c (main): Likewise.
23551         * tests/test-dirname.c (main): Likewise.
23552         * tests/test-dup2.c (main): Likewise.
23553         * tests/test-fchdir.c (main): Likewise.
23554         * tests/test-fcntl-h.c (main): Likewise.
23555         * tests/test-fcntl-safer.c (main): Likewise.
23556         * tests/test-fdopendir.c (main): Likewise.
23557         * tests/test-fdutimensat.c (main): Likewise.
23558         * tests/test-fflush.c (main): Likewise.
23559         * tests/test-filenamecat.c (main): Likewise.
23560         * tests/test-filevercmp.c (main): Likewise.
23561         * tests/test-fopen-safer.c (main): Likewise.
23562         * tests/test-fopen.c (main): Likewise.
23563         * tests/test-fpending.c (main): Likewise.
23564         * tests/test-fpurge.c (main): Likewise.
23565         * tests/test-freading.c (main): Likewise.
23566         * tests/test-fstatat.c (main): Likewise.
23567         * tests/test-fsync.c (main): Likewise.
23568         * tests/test-futimens.c (main): Likewise.
23569         * tests/test-getndelim2.c (main): Likewise.
23570         * tests/test-gettimeofday.c (main): Likewise.
23571         * tests/test-getopt.c (main): Likewise.
23572         * tests/test-i-ring.c (main): Likewise.
23573         * tests/test-inttypes.c (main): Likewise.
23574         * tests/test-link.c (main): Likewise.
23575         * tests/test-lstat.c (main): Likewise.
23576         * tests/test-math.c (main): Likewise.
23577         * tests/test-md5.c (main): Likewise.
23578         * tests/test-memchr2.c (main): Likewise.
23579         * tests/test-memrchr.c (main): Likewise.
23580         * tests/test-mkdir.c (main): Likewise.
23581         * tests/test-mkdirat.c (main): Likewise.
23582         * tests/test-mkfifoat.c (main): Likewise.
23583         * tests/test-open.c (main): Likewise.
23584         * tests/test-openat-safer.c (main): Likewise.
23585         * tests/test-openat.c (main): Likewise.
23586         * tests/test-quotearg.c (main): Likewise.
23587         * tests/test-rawmemchr.c (main): Likewise.
23588         * tests/test-readlink.c (main): Likewise.
23589         * tests/test-remove.c (main): Likewise.
23590         * tests/test-rename.c (main): Likewise.
23591         * tests/test-renameat.c (main): Likewise.
23592         * tests/test-rmdir.c (main): Likewise.
23593         * tests/test-sha1.c (main): Likewise.
23594         * tests/test-signal.c (main): Likewise.
23595         * tests/test-sigaction.c (main): Likewise.
23596         * tests/test-stat.c (main): Likewise.
23597         * tests/test-stat-time.c (main): Likewise.
23598         * tests/test-stddef.c (main): Likewise.
23599         * tests/test-stdint.c (main): Likewise.
23600         * tests/test-stdio.c (main): Likewise.
23601         * tests/test-stdlib.c (main): Likewise.
23602         * tests/test-strchrnul.c (main): Likewise.
23603         * tests/test-strerror.c (main): Likewise.
23604         * tests/test-string.c (main): Likewise.
23605         * tests/test-strtod.c (main): Likewise.
23606         * tests/test-strverscmp.c (main): Likewise.
23607         * tests/test-symlink.c (main): Likewise.
23608         * tests/test-symlinkat.c (main): Likewise.
23609         * tests/test-sys_stat.c (main): Likewise.
23610         * tests/test-sys_time.c (main): Likewise.
23611         * tests/test-time.c (main): Likewise.
23612         * tests/test-unistd.c (main): Likewise.
23613         * tests/test-unlink.c (main): Likewise.
23614         * tests/test-unlinkat.c (main): Likewise.
23615         * tests/test-utimens.c (main): Likewise.
23616         * tests/test-utimensat.c (main): Likewise.
23617         * tests/test-version-etc.c (main): Likewise.
23618         * tests/test-wchar.c (main): Likewise.
23619         * tests/test-wctype.c (main): Likewise.
23620         * tests/test-xprintf-posix.c (main): Likewise.
23621         * tests/test-posixtm.c (main): Likewise.
23622         (STREQ): Delete unused macro.
23623         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
23624         shadowed variables.
23625         * tests/test-memchr.c (main): Likewise.
23626
23627 2009-10-21  Eric Blake  <ebb9@byu.net>
23628
23629         areadlinkat: avoid failure on older glibc
23630         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
23631         rather than mis-comparing 0 against FUNC_RESULT of char*.
23632
23633 2009-10-21  Bruno Haible  <bruno@clisp.org>
23634
23635         * modules/stpncpy (License): Relicense under LGPLv2+.
23636         Reported by David Lutterkort <lutter@redhat.com>.
23637
23638 2009-10-20  Eric Blake  <ebb9@byu.net>
23639
23640         utimensat: work around Solaris 9 bug
23641         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
23642         has trailing slash bugs.
23643         * tests/test-lutimens.h (test_lutimens): Enhance test.
23644         * tests/test-utimens.h (test_utimens): Likewise.
23645         * doc/posix-functions/utime.texi (utime): Enhance documentation.
23646         * doc/posix-functions/utimes.texi (utimes): Likewise.
23647         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23648         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
23649         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
23650         * doc/posix-functions/futimens.texi (futimens): Likewise.
23651
23652         fdutimensat: new module
23653         * modules/fdutimensat: New file.
23654         * lib/fdutimensat.c (fdutimensat): Likewise.
23655         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
23656         * MODULES.html.sh (File system functions): Mention module.
23657         * modules/fdutimensat-tests: New test.
23658         * tests/test-fdutimensat.c: Likewise.
23659
23660         doc: regenerate INSTALL
23661         * doc/INSTALL: Reflect recent autoconf update.
23662         * doc/INSTALL.ISO: Likewise.
23663         * doc/INSTALL.UTF-8: Likewise.
23664
23665 2009-10-20  Pádraig Brady  <P@draigBrady.com>
23666
23667         acl: warn if ACL support is not detected
23668         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
23669
23670 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
23671
23672         * lib/nproc.h: Add extern "C" block for C++.
23673
23674 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
23675             Bruno Haible  <bruno@clisp.org>
23676
23677         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
23678         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
23679         * doc/posix-functions/isalpha.texi: Likewise.
23680         * doc/posix-functions/isblank.texi: Likewise.
23681         * doc/posix-functions/iscntrl.texi: Likewise.
23682         * doc/posix-functions/isdigit.texi: Likewise.
23683         * doc/posix-functions/isgraph.texi: Likewise.
23684         * doc/posix-functions/islower.texi: Likewise.
23685         * doc/posix-functions/isprint.texi: Likewise.
23686         * doc/posix-functions/ispunct.texi: Likewise.
23687         * doc/posix-functions/isspace.texi: Likewise.
23688         * doc/posix-functions/isupper.texi: Likewise.
23689         * doc/posix-functions/isxdigit.texi: Likewise.
23690
23691 2009-10-18  Bruno Haible  <bruno@clisp.org>
23692
23693         Tests for module 'isblank'.
23694         * modules/isblank-tests: New file.
23695         * tests/test-isblank.c: New file.
23696
23697         New module 'isblank'.
23698         * lib/isblank.c: New file.
23699         * m4/isblank.m4: New file.
23700         * modules/isblank: New file.
23701         * doc/posix-functions/isblank.texi: Mention the new module.
23702
23703 2009-10-18  Bruno Haible  <bruno@clisp.org>
23704
23705         New module 'ctype'.
23706         * lib/ctype.in.h: New file.
23707         * m4/ctype.m4: New file.
23708         * modules/ctype: New file.
23709         * doc/posix-headers/ctype.texi: Mention the new module.
23710
23711 2009-10-18  Jim Meyering  <meyering@redhat.com>
23712
23713         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
23714         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
23715         right after its initialization, rather than farther down.
23716         Keeping these in close proximity makes it easier to ensure
23717         that each such variable is initialized.  E.g.,
23718
23719             LIB_CLOCK_GETTIME=
23720             AC_SUBST([LIB_CLOCK_GETTIME])
23721
23722         This change also increments these serial numbers.
23723         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
23724         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
23725         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23726
23727 2009-10-18  Bruno Haible  <bruno@clisp.org>
23728
23729         Don't let environment variables perturb build.
23730         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
23731         (gl_PREREQ_GETHRXTIME): ... not here.
23732
23733 2009-10-18  Bruno Haible  <bruno@clisp.org>
23734
23735         Avoid symlink attack in localcharset module.
23736         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
23737         (O_NOFOLLOW): Define fallback.
23738         (get_charset_aliases): Don't open the file if it is a symbolic link.
23739         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
23740         gl_FCNTL_H.
23741         (gl_FCNTL_H): Require it.
23742         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
23743         * modules/localcharset (Files): Add m4/fcntl_h.m4.
23744         Reported by Fergal Glynn <fglynn@veracode.com>.
23745
23746 2009-10-18  Bruno Haible  <bruno@clisp.org>
23747
23748         Implement nproc for mingw.
23749         * lib/nproc.c: Include <windows.h>
23750         (num_processors): On native Windows platforms, try GetSystemInfo.
23751
23752 2009-10-18  Bruno Haible  <bruno@clisp.org>
23753
23754         Implement nproc for IRIX.
23755         * lib/nproc.c: Include <sys/sysmp.h>.
23756         (num_processors): On IRIX systems, try sysmp.
23757         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
23758
23759 2009-10-18  Bruno Haible  <bruno@clisp.org>
23760
23761         Implement nproc for HP-UX.
23762         * lib/nproc.c: Include <sys/pstat.h>
23763         (num_processors): On HP-UX systems, try pstat_getdynamic.
23764         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
23765         pstat_getdynamic.
23766
23767 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
23768             Bruno Haible  <bruno@clisp.org>
23769
23770         Implement nproc for NetBSD, OpenBSD.
23771         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
23772         (ARRAY_SIZE): New macro.
23773         (num_processors): On BSD systems, try sysctl of HW_NCPU.
23774         * m4/nproc.m4: New file.
23775         * modules/nproc (Files): Add m4/nproc.m4.
23776         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
23777         (Makefile.am): Instead, augment lib_SOURCES.
23778
23779 2009-10-18  Bruno Haible  <bruno@clisp.org>
23780
23781         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
23782         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
23783         sys/param.h.
23784
23785 2009-10-16  Eric Blake  <ebb9@byu.net>
23786
23787         utimensat: new module
23788         * modules/utimensat: New file.
23789         * lib/utimensat.c (utimensat): Likewise.
23790         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23791         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
23792         so we can work around Linux bugs.
23793         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23794         * modules/sys_stat (Makefile.am): Substitute them.
23795         * lib/sys_stat.in.h (utimensat): Declare it.
23796         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23797         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23798         * modules/utimensat-tests: New test.
23799         * tests/test-utimensat.c: Likewise.
23800
23801         utimens: let lutimens work on non-symlinks
23802         * lib/utimens.c (lutimens): Fall back to utimens rather than
23803         failing with ENOSYS, when file is not a symlink.
23804         (utimens): Reduce redirection.
23805         * tests/test-lutimens.h (test_lutimens): Update test to cover
23806         non-symlinks.
23807         * tests/test-utimens.h (test_utimens): Update test to cover
23808         symlinks.
23809         * tests/test-utimens.c (main): Update caller.
23810
23811         utimens: cache whether utimensat syscall works
23812         * lib/utimens.c (utimensat_works_really): New cache variable.
23813         (fdutimens, lutimens): Use it to avoid failing syscall.
23814
23815         test-stat-time, test-utimens: improve portability
23816         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
23817         ext4 on alpha, and for cygwin.
23818         * tests/test-utimens-common.h: New file.
23819         (nap): Factor delays into single function.
23820         * tests/test-lutimens.h (test_lutimens): Use new header.
23821         * tests/test-futimens.h (test_futimens): Likewise.
23822         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
23823         timestamps to occur from same machine, as was done previously for
23824         test_utimens.
23825         * modules/utimens-tests (Files): Ship new file.
23826         * modules/futimens-tests (Files): Likewise.
23827         Reported in part by Jim Meyering.
23828
23829         sys_stat: sort replacement declarations
23830         * lib/sys_stat.in.h: Sort declarations.
23831         * lib/futimens.c (futimens): Fix typo.
23832
23833 2009-10-15  Jim Meyering  <meyering@redhat.com>
23834
23835         don't let environment settings perturb build
23836         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
23837         could cause a configure-time and/or build-time malfunction.
23838         Typically, a configure-time function-in-library test is performed
23839         via code like this:
23840
23841           LIB_VAR=
23842           AC_SUBST([LIB_VAR])
23843           prefix_saved_LIBS=$LIBS
23844             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
23845                        [test "$ac_cv_search_FUNC" = "none required" ||
23846                         LIB_VAR=$ac_cv_search_FUNC])
23847           LIBS=$prefix_saved_LIBS
23848
23849         However, in each of the files affected by this change, the LIB_VAR=
23850         initialization was omitted.  Thus, when set in the environment, its
23851         value would propagate into generated Makefiles when FUNC is not found
23852         in LIB_NAME.
23853         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
23854         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
23855         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23856
23857 2009-10-14  Eric Blake  <ebb9@byu.net>
23858
23859         fchdir: avoid infinite recursion in mingw
23860         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
23861         recursing.
23862
23863         test-stat-time: port to mingw
23864         * tests/test-stat-time.c (force_unlink): Return a value.
23865         (test_ctime) [W32]: Fix compilation error.
23866         (nap): Don't call usleep with too large an argument.  Use
23867         force_unlink.
23868         * doc/pastposix-functions/usleep.texi (usleep): Document the
23869         portability issue.
23870
23871 2009-10-13  Jim Meyering  <meyering@redhat.com>
23872
23873         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
23874         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
23875         * modules/pipe-filter-ii: Likewise.
23876         * modules/sys_socket-tests: Likewise.
23877         * modules/tsearch-tests: Likewise.
23878         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
23879         (check): Depend on it.
23880
23881 2009-10-12  Eric Blake  <ebb9@byu.net>
23882
23883         utimens-tests: port to NFS file systems
23884         * tests/test-utimens.h (test_utimens): Refactor utimecmp
23885         comparisons to avoid spurious failures from timestamp drift
23886         between NFS machines.
23887
23888 2009-10-12  Eric Blake  <ebb9@byu.net>
23889
23890         stat-time-tests: minor cleanups
23891         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
23892         * tests/test-stat-time.c (nap): Separate assignment from call.
23893         Suggested by Paolo Bonzini and Bruno Haible.
23894
23895         sys_stat: guarantee struct timespec
23896         * lib/sys_stat.in.h (includes): Always include <time.h>
23897         * modules/sys_stat (Depends-on): Add time.
23898         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
23899         mode_t permission values.
23900         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
23901         get at subsecond timestamps.
23902
23903 2009-10-10  Eric Blake  <ebb9@byu.net>
23904
23905         futimens: new module
23906         * modules/futimens: New file.
23907         * lib/futimens.c (futimens): Likewise.
23908         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
23909         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
23910         we can work around Linux bugs.
23911         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23912         * modules/sys_stat (Makefile.am): Substitute them.
23913         * lib/sys_stat.in.h (futimens): Declare it.
23914         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23915         * doc/posix-functions/futimens.texi (futimens): Likewise.
23916         * modules/futimens-tests: New test.
23917         * tests/test-futimens.c: Likewise.
23918
23919         utimens: introduce fdutimens
23920         * lib/utimens.h (fdutimens): New prototype.
23921         * lib/utimens.c (gl_futimens): Move guts...
23922         (fdutimens): ...to new interface.
23923         * tests/test-utimens.c (do_fdutimens): Use it.
23924
23925         utimens: add UTIME_NOW and UTIME_OMIT support
23926         * lib/utimens.c (validate_timespec, update_timespec): New helper
23927         functions.
23928         (gl_futimens, lutimens): Use them.
23929         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
23930         stdbool, sys_stat.
23931         (Link): Mention resulting library dependency.
23932         * modules/utimecmp (Link): Likewise.
23933         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
23934         (Makefile.am): Pick up library dependency.
23935         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
23936         definition.
23937         * tests/test-sys_stat.c: Test the definitions.
23938         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
23939         * NEWS: Document library dependency.
23940
23941         utimecmp: support symlink timestamps
23942         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
23943         hashing when possible.  Use pathconf when available.
23944         (SYSCALL_RESOLUTION): Recognize tighter resolution.
23945         * modules/utimecmp (Depends-on): Add lstat.
23946
23947         utimens: add lutimens interface
23948         * lib/utimens.c (lutimens): New function.
23949         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
23950         * lib/utimens.h (lutimens): Declare new interface.
23951         * tests/test-utimens.c (main): Enhance test.
23952         * tests/test-lutimens.h (test_lutimens): New file.
23953         * modules/utimens-tests (Files): Distribute it.
23954         (Depends-on): Add symlink.
23955         (configure.ac): Check for usleep.
23956
23957         utimens: validate futimens usage
23958         * lib/utimens.c (gl_futimens): Require valid fd up front, using
23959         fewer syscalls on failure later on.  Avoid compiler warning on
23960         mingw.
23961         * modules/utimens (Depends-on): Add dup2.
23962
23963         utimens: add test
23964         * modules/utimens-tests: New test.
23965         * tests/test-utimens.h: New file.
23966         * tests/test-futimens.h: Likewise.
23967         * tests/test-utimens.c: Likewise.
23968
23969         doc: mention timestamp portability issues
23970         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
23971         instead.
23972         * doc/posix-functions/utime.texi (utime): Likewise.
23973         * doc/posix-functions/utimes.texi (utimes): Likewise.
23974         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
23975         instead.
23976         * doc/posix-functions/futimens.texi (futimens): Mention utimens
23977         module.
23978         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23979         Mention weakness with symlink timestamps.
23980         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
23981         to utimensat/futimens instead.
23982         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
23983
23984         test-dup2: enhance test
23985         * tests/test-dup2.c (main): Also check AT_FDCWD.
23986
23987         test-stat-time: avoid more spurious failures
23988         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
23989         xfs; and avoid race if the two timestamps cross quantization edge.
23990
23991         relocatable: prefer 'file system' over 'filesystem'
23992         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
23993         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
23994         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
23995         * doc/relocatable.texi (Enabling Relocatability): Likewise.
23996         * lib/relocatable.c (compute_curr_prefix): Likewise.
23997
23998 2009-10-10  Jim Meyering  <meyering@redhat.com>
23999
24000         stat-time-tests: check for the usleep function
24001         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
24002
24003 2009-10-10  Bruno Haible  <bruno@clisp.org>
24004
24005         * modules/xnanosleep: Put the Link section after the Include section.
24006
24007 2009-10-09  Eric Blake  <ebb9@byu.net>
24008
24009         dup2: work around FreeBSD 6.1 bug
24010         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
24011         * doc/posix-functions/dup2.texi (dup2): Document it.
24012         Reported by Nelson H. F. Beebe and Jim Meyering.
24013
24014         test-stat-time: port to buggy NFS clients
24015         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
24016         (test_ctime): Also skip test if mtime and ctime are skewed.
24017
24018         maint: prefer 'file system' over 'filesystem'
24019         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
24020         * doc/posix-functions/lstat.texi (lstat): Likewise.
24021         * lib/file-has-acl.c (file_has_acl): Likewise.
24022         * lib/fwriteerror.c [TEST]: Likewise.
24023         * tests/test-areadlink.h (test_areadlink): Likewise.
24024         * tests/test-areadlinkat-with-size.c (main): Likewise.
24025         * tests/test-areadlinkat.c (main): Likewise.
24026         * tests/test-canonicalize-lgpl.c (main): Likewise.
24027         * tests/test-canonicalize.c (main): Likewise.
24028         * tests/test-fstatat.c (main): Likewise.
24029         * tests/test-linkat.c (main): Likewise.
24030         * tests/test-lstat.h (test_lstat_func): Likewise.
24031         * tests/test-mkdir.h (test_mkdir): Likewise.
24032         * tests/test-readlink.h (test_readlink): Likewise.
24033         * tests/test-remove.c (main): Likewise.
24034         * tests/test-rename.h (test_rename): Likewise.
24035         * tests/test-renameat.c (main): Likewise.
24036         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24037         * tests/test-symlink.h (test_symlink): Likewise.
24038         * tests/test-symlinkat.c (main): Likewise.
24039         * tests/test-unlink.h (test_unlink_func): Likewise.
24040         * tests/test-unlinkat.c (main): Likewise.
24041
24042         maint: make realtime library usage explicit
24043         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
24044         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
24045         * modules/settime (Link): Likewise.
24046         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
24047
24048         test-stat-time: speed up execution
24049         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
24050         warning on mingw.
24051         (nap): New helper function.
24052         (prepare_test): Use it to reduce sleep time.
24053         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
24054         execution.
24055         * modules/stat-time-tests (configure.ac): Check for usleep.
24056
24057 2009-10-09  Jim Meyering  <meyering@redhat.com>
24058
24059         selinux-h: always use getfilecon wrappers
24060         * lib/getfilecon.c: New file.
24061         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
24062         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
24063         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
24064         (fgetfilecon): Provide a stub.
24065         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
24066         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
24067         file unconditionally.
24068         When <selinux/selinux.h> is found, arrange to use wrappers.
24069         * modules/selinux-h (Files): Add getfilecon.c.
24070         (Makefile.am): Substitute include-next-related bits
24071         into the now-always-generated selinux/selinux.h file.
24072         * doc/glibc-functions/lgetfilecon.texi: New file.
24073         * doc/glibc-functions/fgetfilecon.texi: New file.
24074         * doc/glibc-functions/getfilecon.texi: New file.
24075         * doc/glibc-functions/getfilecon-desc.texi: New file.
24076         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
24077         which to pull in the new files.
24078         * MODULES.html.sh (Misc): Add selinux-h.
24079
24080 2009-10-08  Jim Meyering  <meyering@redhat.com>
24081
24082         unistd: fix comment typo
24083         * lib/unistd.in.h (euidaccess): Fix a comment typo.
24084
24085 2009-10-08  Eric Blake  <ebb9@byu.net>
24086
24087         areadlink: use SIZE_MAX consistently
24088         * modules/areadlink (Depends-on): Add stdint.
24089         * modules/areadlink-with-size (Depends-on): Likewise.
24090         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
24091         gives NULL; drop sys/types, since unistd gives size_t; and add
24092         stdint for SIZE_MAX.
24093         (SIZE_MAX): Rely on headers.
24094         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
24095         and add stdint.
24096         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
24097         (SIZE_MAX): Likewise.
24098         (INITIAL_BUF_SIZE): Turn into enum.
24099         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
24100
24101 2009-10-08  Jim Meyering  <meyering@redhat.com>
24102
24103         areadlinkat: avoid compilation failure
24104         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
24105         Fix typo in comment.
24106
24107 2009-10-07  Eric Blake  <ebb9@byu.net>
24108
24109         areadlinkat-with-size: new module
24110         * modules/areadlinkat-with-size: New module.
24111         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
24112         * lib/areadlink.h (areadlinkat): Declare it.
24113         * MODULES.html.sh (File system functions): Mention it.
24114         * modules/areadlinkat-with-size-tests: New test.
24115         * tests/test-areadlinkat-with-size.c: New file.
24116
24117         xreadlinkat: new module
24118         * modules/xreadlinkat: New module.
24119         * lib/xreadlinkat.c (xreadlinkat): New file.
24120         * lib/xreadlink.h (xreadlinkat): Declare it.
24121         * MODULES.html.sh (File system functions): Mention it.
24122
24123         areadlinkat: new module
24124         * lib/at-func.c (FUNC_FAIL): New define.
24125         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
24126         * modules/areadlinkat: New module.
24127         * lib/linkat.c (areadlinkat): Move...
24128         * lib/areadlinkat.c (areadlinkat): ...to new file.
24129         * lib/areadlink.h (areadlinkat): Declare it.
24130         * modules/linkat (Depends-on): Add areadlinkat.
24131         * MODULES.html.sh (File system functions): Mention it.
24132         * modules/areadlinkat-tests: New test.
24133         * tests/test-areadlinkat.c: New file.
24134
24135         areadlink, areadlink-with-size: add tests
24136         * modules/areadlink-tests: New test.
24137         * modules/areadlink-with-size-tests: Likewise.
24138         * tests/test-areadlink.h: New file.
24139         * tests/test-areadlink.c: Likewise.
24140         * tests/test-areadlink-with-size.c: Likewise.
24141
24142         maint: minor cleanups
24143         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
24144         _UNUSED_PARAMETER_ instead.
24145         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
24146         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
24147         * modules/linkat-tests (Files): Distribute test-link.h.
24148
24149         openat, utimens: whitespace cleanup
24150         * lib/openat.c: Prefer space throughout, rather than mix of 8
24151         spaces vs. tabs.
24152         * lib/at-func.c: Likewise.
24153         * lib/utimens.c: Likewise.
24154
24155         openat: avoid using wrong fd
24156         * lib/openat.c (openat_permissive): Reject user's fd if saving the
24157         working directory chooses same fd.
24158         * lib/at-func.c (AT_FUNC_NAME): Likewise.
24159
24160         mkdir, mkdirat: fix cygwin 1.5.x bug
24161         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
24162         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
24163         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
24164         bug.
24165         (gl_PREREQ_MKDIR): Delete unused macro.
24166         * modules/mkdir (Files): Track file rename.
24167         (configure.ac): Update macro name.
24168         * modules/openat (Depends-on): Add mkdir.
24169         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
24170
24171         mkdir, mkdirat: add tests
24172         * modules/mkdir-tests: New test.
24173         * tests/test-mkdir.h: New file.
24174         * tests/test-mkdir.c: Likewise.
24175         * tests/test-mkdirat.c: Likewise.
24176         * modules/openat-tests (Files): Add new files.
24177         (Makefile.am): Run new test.
24178
24179 2009-10-06  Eric Blake  <ebb9@byu.net>
24180
24181         doc: tweak *at function documentation
24182         * doc/posix-functions/faccessat.texi (faccessat): Mention
24183         known issue with replacement.
24184         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
24185         * doc/posix-functions/linkat.texi (linkat): Likewise.
24186         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
24187         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
24188         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24189         * doc/posix-functions/renameat.texi (renameat): Likewise.
24190         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
24191
24192         openat: fix GNU/Hurd bug in unlinkat
24193         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
24194         broken.
24195         * doc/posix-functions/unlink.texi (unlink): Document this.
24196         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
24197
24198         fdopendir: fix GNU/Hurd bug
24199         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
24200         allowing non-directory fds.
24201         * lib/fdopendir.c (rpl_fdopendir): Work around it.
24202         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
24203         * modules/dirent (Makefile.am): Substitute it.
24204         * lib/dirent.in.h (fdopendir): Declare replacement.
24205         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
24206         * tests/test-fdopendir.c (main): Test something other than
24207         /dev/null, since on Hurd that behaves like a directory.
24208
24209         test-symlink: port to GNU/Hurd
24210         * tests/test-symlink.h (test_symlink): Relax expected errno.
24211
24212         doc: tweak more cygwin information
24213         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
24214         now compatible with glibc.
24215         * doc/posix-functions/getopt.texi (getopt): Likewise.
24216
24217         getopt-gnu: add another test
24218         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
24219         guarantee behavior relied on by m4.
24220         * tests/test-getopt.c (main): Use it.
24221         * modules/getopt-posix-tests (Depends-on): Add setenv.
24222         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
24223
24224         getopt: fix compilation on darwin
24225         * lib/getopt.in.h (includes): Leave breadcrumbs during system
24226         include.
24227         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
24228         Reported by Ludovic Courtès.
24229
24230 2009-10-06  Bruno Haible  <bruno@clisp.org>
24231
24232         * modules/size_max (Description): Discourage its use.
24233         Reported by Simon Josefsson.
24234
24235 2009-10-06  Jim Meyering  <meyering@redhat.com>
24236
24237         linkat: avoid compilation failure
24238         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
24239
24240 2009-10-05  Eric Blake  <ebb9@byu.net>
24241
24242         linkat: support Linux 2.6.17
24243         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
24244         linkat on Linux, but allow cache variable override.
24245         * lib/linkat.c (rpl_linkat): Define override.
24246         * modules/linkat (Depends-on): Add symlinkat.
24247         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
24248         * modules/unistd (Makefile.am): Substitute it.
24249         * lib/unistd.in.h (linkat): Declare replacement.
24250         Reported by Pádraig Brady.
24251
24252         quotearg: port test to systems with C.UTF-8 locale
24253         * tests/test-quotearg.c (struct result_strings): Add another
24254         member, differentiating between C.ASCII and C.UTF-8 handling.
24255         (compare_strings): Add parameter.
24256         (main): Adjust all callers.
24257
24258         getopt: avoid clash with FreeBSD _getopt_internal
24259         * lib/getopt.in.h (_getopt_internal): Override the name.
24260         * lib/getopt_int.h (includes): Pick up any overrides.
24261         Reported by Reuben Thomas.
24262
24263         hash: allow C89 compilation
24264         * lib/hash.c (check_tuning): Move declaration before statement.
24265         Reported by Reuben Thomas.
24266
24267 2009-10-05  Karl Berry  <karl@gnu.org>
24268
24269         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
24270
24271 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
24272             Bruno Haible  <bruno@clisp.org>
24273
24274         * lib/uname.c (uname): Use a table-driven algorithm to compute
24275         Windows NT versions.
24276
24277 2009-10-04  Bruno Haible  <bruno@clisp.org>
24278
24279         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
24280         program_invocation_short_name.
24281         * modules/progname (configure.ac): Test for presence of
24282         program_invocation_short_name.
24283         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
24284
24285 2009-10-04  Bruno Haible  <bruno@clisp.org>
24286
24287         * lib/progname.c (set_program_name): Fix comment.
24288         Reported by Jim Meyering.
24289
24290 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
24291             Bruno Haible  <bruno@clisp.org>
24292
24293         * lib/uname.c: Include <string.h>.
24294         (uname): Do only one call to GetVersionEx in the common case.
24295
24296 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
24297             Bruno Haible  <bruno@clisp.org>
24298
24299         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
24300         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
24301         (uname): Add support for Windows CE and various non-x86 CPU types.
24302
24303 2009-10-03  Bruno Haible  <bruno@clisp.org>
24304
24305         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
24306         invocation to tests/configure.ac.
24307         Reported by Ian Beckwith <ianb@erislabs.net>.
24308
24309 2009-10-02  Eric Blake  <ebb9@byu.net>
24310
24311         fchdir: avoid compiler warning
24312         * lib/fchdir.c (canonicalize_file_name)
24313         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
24314
24315         test-open: support mingw errno values
24316         * tests/test-open.h (test_open): Relax test.
24317         * tests/test-fopen.h (test_fopen): Likewise.
24318         * tests/test-openat-safer.c (main): Likewise.
24319
24320         open: fix opening directory on mingw
24321         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
24322
24323         test-open: on GNU/Hurd, /dev/null is a directory
24324         * tests/test-fopen.h (main): Rename...
24325         (test_fopen): ...to this.  Use a guaranteed non-directory when
24326         confirming open behavior on trailing slash.
24327         * tests/test-openat-safer.c (main): Likewise.
24328         * tests/test-open.h (main): Likewise....
24329         (test_open): ...to this.
24330         * tests/test-fopen.c (main): Adjust caller.
24331         * tests/test-fopen-safer.c (main): Likewise.
24332         * tests/test-open.c (main): Likewise.
24333         * tests/test-fcntl-safer.c (main): Likewise.
24334         Reported by Samuel Thibault.
24335
24336         rename, fchdir: don't ignore chdir failure
24337         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
24338         * lib/rename.c (rpl_rename) [W32]: Likewise.
24339         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
24340         an empty destination directory if source cannot be renamed,
24341         although there is still possibility for failure.
24342         * doc/posix-functions/rename.texi (rename): Document the race.
24343         Reported by Jim Meyering.
24344
24345         maint: cleanup whitespace in recent commits
24346         * lib/rename.c (rpl_rename): Remove tabs.
24347         * tests/test-link.h (test_link): Likewise.
24348         * lib/fchdir.c (get_name): Likewise.
24349         Reported by Jim Meyering.
24350
24351 2009-10-02  Ben Pfaff  <blp@gnu.org>
24352
24353         relocatable-prog-wrapper: Add missing dependency on
24354         double-slash-root.
24355         * modules/relocatable-prog-wrapper: Add dependency.
24356         Reported by Ian Beckwith <ianb@erislabs.net>.
24357
24358 2009-10-02  Eric Blake  <ebb9@byu.net>
24359
24360         renameat: fix Solaris bugs
24361         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
24362         needed fixing.
24363         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
24364         * modules/stdio (Makefile.am): Substitute it.
24365         * lib/stdio.in.h (renameat): Declare replacement.
24366         * lib/renameat.c (rpl_renameat): Implement fix.
24367
24368         renameat: new module
24369         * modules/renameat: New file.
24370         * lib/renameat.c (renameat): Likewise.
24371         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
24372         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
24373         * modules/stdio (Makefile.am): Substitute them.
24374         * lib/stdio.in.h (renameat): Declare it.
24375         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24376         * doc/posix-functions/renameat.texi (renameat): Likewise.
24377         * modules/renameat-tests: New test.
24378         * tests/test-renameat.c: Likewise.
24379
24380         rename: fix mingw bugs
24381         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
24382         directory overwrite bugs.
24383
24384         rename: fix another cygwin 1.5 bug
24385         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
24386         checks.
24387         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
24388         unnecessary cygwin workarounds.  Also work around bug with moving
24389         full directory onto an empty one.
24390         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
24391
24392         rename-dest-slash: merge into rename module
24393         * modules/rename-dest-slash (Status): Mark obsolete.
24394         (Depends-on): Add rename.
24395         (Files): Let rename do it all.
24396         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
24397         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
24398         * m4/rename-dest-slash.m4: ...so this file can be deleted.
24399         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
24400         * lib/rename.c (rpl_rename): Update comments.
24401
24402         rename: fix cygwin 1.5.x bugs
24403         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
24404         * lib/rename.c (rpl_rename): Work around them.
24405         * modules/rename (Depends-on): Add same-inode.
24406
24407         rename: fix Solaris 10 bug
24408         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
24409         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
24410         was the only bug.
24411
24412         rename: fix Solaris 9 bug
24413         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
24414         on non-directory.  Avoid calling exit.
24415         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
24416         strdup.
24417         * modules/rename-tests (Depends-on): Drop lstat.
24418         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
24419         (gl_PREREQ_RENAME): Delete unused macro.
24420
24421         rename-dest-slash: fix NetBSD bug
24422         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
24423         links.
24424         * modules/rename-dest-slash (Depends-on): Add same-inode.
24425
24426         rename-tests: new test, exposes several platform bugs
24427         * modules/rename-tests: New file.
24428         * tests/test-rename.h: Likewise.
24429         * tests/test-rename.c: Likewise.
24430         * doc/posix-functions/rename.texi (rename): Improve documentation,
24431         including bugs that will eventually be fixed in gnulib.
24432
24433 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
24434
24435         * lib/uname.c: Include <stdlib.h>
24436         (uname): Assume version info is available.
24437
24438 2009-10-02  Jim Meyering  <meyering@redhat.com>
24439
24440         gnu-web-doc-update: correct --help output
24441         * build-aux/gnu-web-doc-update: Make --help output relevant.
24442
24443         gnu-web-doc-update: add standard options
24444         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
24445
24446         gnu-web-doc-update: New module.
24447         Use this script to automatically update the on-line web documentation
24448         for your GNU project at http://www.gnu.org/software/$pkg/manual/
24449         * modules/gnu-web-doc-update: New file, from coreutils.
24450         * build-aux/gnu-web-doc-update: New script.
24451
24452 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
24453
24454         link: LoadLibrary is not needed.
24455         * lib/link.c: Use GetModuleHandle.
24456
24457 2009-10-01  Eric Blake  <ebb9@byu.net>
24458
24459         getopt: bump serial number
24460         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
24461         change.
24462
24463         tests: tighten link, rmdir, and remove tests
24464         * tests/test-link.h (includes): No need to use <config.h> here.
24465         Clean up if directory hard link was created, otherwise test for
24466         trailing '.'.
24467         * tests/test-linkat.c (main): Simplify.
24468         * tests/test-remove.c (main): Enhance test for trailing '.'.
24469         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24470
24471 2009-10-01  Jim Meyering  <meyering@redhat.com>
24472
24473         maint.mk: requiring "make major" was annoying, for a "minor" release.
24474         What is intended is "stable", to contrast with alpha and beta,
24475         so require "make stable", not "make major".
24476         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
24477         (get_tool_versions): Likewise.
24478         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
24479
24480 2009-09-30  Ben Pfaff  <blp@gnu.org>
24481
24482         Fix broken build of replacement for Windows tmpfile().
24483         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
24484         flags argument added along with the 'mkostemp' module.
24485
24486 2009-09-28  Bruno Haible  <bruno@clisp.org>
24487
24488         Avoid identifier clash with POSIX function 'remove' defined as a macro.
24489         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
24490         to 'remove_elt'.
24491         (gl_list_remove): Update.
24492         * lib/gl_list.c (gl_list_remove): Update.
24493         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
24494         to 'remove_elt'.
24495         (gl_oset_remove): Update.
24496         * lib/gl_list.c (gl_oset_remove): Update.
24497         Reported by Eric Blake.
24498
24499 2009-09-28  Eric Blake  <ebb9@byu.net>
24500
24501         doc: mention yet more cygwin 1.7 status
24502         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
24503         cygwin.
24504         * doc/glibc-functions/execvpe.texi (execvpe): New file.
24505         * doc/gnulib.texi (Glibc unistd.h): Mention it.
24506
24507         argp: fix test failure
24508         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
24509         that are not upper-case.  Pass correct range to tolower.
24510
24511 2009-09-27  Jim Meyering  <meyering@redhat.com>
24512
24513         test-yesno: work around sparc-dash here-document infelicity
24514         Without this change, the literal \177 byte in a here document
24515         would make dash 0.5.5.1-3 access uninitialized memory.
24516         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
24517         Instead, use a marker, "@", and filter through tr to create the desired
24518         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
24519
24520 2009-09-27  Bruno Haible  <bruno@clisp.org>
24521
24522         Disable untested support for new flavours of ACLs on AIX.
24523         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
24524         progress.
24525         * lib/set-mode-acl.c (qset_acl): Likewise.
24526
24527 2008-12-07  Bruno Haible  <bruno@clisp.org>
24528
24529         Add support for new flavours of ACLs on AIX. (Untested.)
24530         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
24531         (file_has_acl): Add support for newer AIX.
24532         * lib/set-mode-acl.c (qset_acl): Likewise.
24533         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
24534         Rainer Tammer <tammer@tammer.net>.
24535
24536 2009-09-26  Eric Blake  <ebb9@byu.net>
24537
24538         argp: fix compilation of getopt
24539         * lib/getopt.in.h (includes): Use different guard than glibc.
24540         Reported by Sergey Poznyakoff.
24541
24542         doc: mention more cygwin 1.7 status
24543         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
24544         bug.
24545         * doc/posix-functions/execl.texi (execl): Likewise.
24546         * doc/posix-functions/execle.texi (execle): Likewise.
24547         * doc/posix-functions/execlp.texi (execlp): Likewise.
24548         * doc/posix-functions/execv.texi (execv): Likewise.
24549         * doc/posix-functions/execve.texi (execve): Likewise.
24550         * doc/posix-functions/execvp.texi (execvp): Likewise.
24551         * doc/glibc-functions/canonicalize_file_name.texi
24552         (canonicalize_file_name): Cygwin 1.7 now provides this.
24553         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
24554         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
24555         on AT_SYMLINK_NOFOLLOW.
24556
24557 2009-09-24  Eric Blake  <ebb9@byu.net>
24558
24559         test-linkat: make test more robust
24560         * tests/test-linkat.c (main): Avoid collision with EEXIST.
24561
24562         getopt: fix inclusion guards for cygwin
24563         * modules/getopt-posix (Depends-on): Add include-next.
24564         (Makefile.am): Substitute more items in replacement header.
24565         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
24566         <getopt.h>.
24567         * lib/getopt.in.h (includes): Use split inclusion guard, and
24568         prefer <getopt.h> over include <unistd.h> when one is present.
24569         (option): Also override name of 'struct option'.
24570
24571         same-inode: revert prior change; it is not yet ready
24572         * NEWS: Undo mention of this change.
24573         * lib/same-inode.h (same-inode.h): Undo tri-state change.
24574         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
24575         * lib/cycle-check.c (cycle_check): Likewise.
24576         * lib/same.c (same_name): Likewise.
24577         * lib/at-func2.c (at_func2): Likewise.
24578
24579 2009-09-23  Eric Blake  <ebb9@byu.net>
24580
24581         linkat: new module
24582         * modules/linkat: New file.
24583         * lib/at-func2.c (at_func2): Likewise.
24584         * lib/linkat.c (linkat): Likewise.
24585         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
24586         * lib/openat-priv.h (at_func2): Add declaration.
24587         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24588         * modules/unistd (Makefile.am): Substitute them.
24589         * lib/unistd.in.h (linkat): Declare it.
24590         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24591         * doc/posix-functions/linkat.texi (linkat): Likewise.
24592         * doc/posix-functions/link.texi (link): Tweak wording.
24593         * tests/test-link.c (main): Move guts...
24594         * tests/test-link.h (test_link): ...into new file.
24595         * modules/linkat-tests: New test.
24596         * tests/test-linkat.c: Likewise.
24597         * modules/link-tests (Files): Ship new file.
24598         (Depends-on): Add stdbool.
24599
24600         dirname: add library-safe mdir_name
24601         * lib/dirname.h (mdir_name): New prototype.
24602         * lib/dirname.c (dir_name): Move guts...
24603         (mdir_name): ...to new function that avoids xalloc_die.
24604
24605         fchdir: another mingw fix
24606         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
24607         * lib/fchdir.c (get_name): New helper method; skips canonicalize
24608         on mingw (where it has not yet been ported), and make it optional
24609         elsewhere.
24610         (_gl_register_fd): Use it.
24611
24612         same-inode: make SAME_INODE tri-state, to port to mingw
24613         * NEWS: Mention this change.
24614         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
24615         st_ino always being 0.
24616         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
24617         * lib/cycle-check.c (cycle_check): Likewise.
24618         * lib/same.c (same_name): Likewise.
24619
24620         lstat: avoid mingw compilation error
24621         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
24622         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
24623         lstat ourselves.
24624         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
24625         was adequate.
24626         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
24627         the checks for lstat.
24628         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
24629
24630         link: fix test failure on Solaris 9
24631         * lib/link.c (rpl_link): Don't assume link will catch bogus
24632         trailing slash on source.
24633
24634         test-symlinkat: enhance test
24635         * tests/test-readlink.c (main): Move guts...
24636         * tests/test-readlink.h (test_readlink): ...into new file.
24637         * tests/test-symlink.c (main): Move guts...
24638         * tests/test-symlink.h (test_symlink): ...into new file.
24639         * tests/test-symlinkat.c (main): Use new files for further
24640         coverage.
24641         (do_symlink, do_readlink): New helper functions.
24642         * modules/symlink-tests (Files): Ship new file.
24643         (Depends-on): Add stdbool.
24644         * modules/readlink-tests (Files): Ship new file.
24645         (Depends-on): Add stdbool.
24646         * modules/symlinkat-tests (Files): Use new files.
24647
24648 2009-09-23  Eric Blake  <ebb9@byu.net>
24649
24650         readlink: document portability issue with symlink length
24651         * doc/posix-functions/lstat.texi (lstat): Mention that some file
24652         systems have bogus st_size on symlinks, and mention the
24653         areadlink-with-size module.
24654         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
24655         * doc/posix-functions/readlink.texi (readlink): Mention the
24656         areadlink module, and ERANGE failure.
24657         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24658         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
24659
24660         readlink: fix Solaris 9 bug with trailing slash
24661         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
24662         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
24663         * doc/posix-functions/readlink.texi (readlink): Document this.
24664         * modules/readlink-tests: New test.
24665         * tests/test-readlink.c: Likewise.
24666
24667         readlink: fix cygwin 1.5.x bug with return type
24668         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
24669         * lib/unistd.in.h (readlink): Use ssize_t.
24670         * lib/readlink.c (readlink): Likewise.
24671         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24672         * modules/unistd (Makefile.am): Substitute it.
24673         * lib/unistd.in.h (readlink): Declare replacement.
24674         * doc/posix-functions/readlink.texi (readlink): Document this.
24675
24676         symlink: use throughout gnulib
24677         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
24678         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
24679         symlink is not used.
24680         * modules/symlinkat (Depends-on): Add symlink.
24681         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
24682         * modules/canonicalize-tests (Depends-on): Likewise.
24683         * modules/lstat-tests (Depends-on): Likewise.
24684         * modules/openat-tests (Depends-on): Likewise.
24685         * modules/remove-tests (Depends-on): Likewise.
24686         * modules/rmdir-tests (Depends-on): Likewise.
24687         * modules/unlink-tests (Depends-on): Likewise.
24688         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
24689         * tests/test-canonicalize.c (symlink): Likewise.
24690         * tests/test-fstatat.c (symlink): Likewise.
24691         * tests/test-lstat.c (symlink): Likewise.
24692         * tests/test-remove.c (symlink): Likewise.
24693         * tests/test-rmdir.c (symlink): Likewise.
24694         * tests/test-unlink.c (symlink): Likewise.
24695         * tests/test-unlinkat.c (symlink): Likewise.
24696
24697         symlink: new module, for Solaris 9 bug
24698         * modules/symlink: New file.
24699         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
24700         * lib/symlink.c: Likewise.
24701         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
24702         * modules/unistd (Makefile.am): Substitute them.
24703         * lib/unistd.in.h (symlink): Declare replacement.
24704         * MODULES.html.sh (File system functions): Mention it.
24705         * doc/posix-functions/symlink.texi (symlink): Likewise.
24706         * modules/symlink-tests: New test.
24707         * tests/test-symlink.c: Likewise.
24708
24709 2009-09-23  Bruno Haible  <bruno@clisp.org>
24710
24711         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
24712         when needed.
24713         Test case: gnulib-tool --import --with-tests atexit inttypes.
24714         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
24715
24716 2009-09-23  Bruno Haible  <bruno@clisp.org>
24717
24718         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
24719         subcommand, not in a subshell.
24720
24721 2009-09-22  Eric Blake  <ebb9@byu.net>
24722
24723         unistd: sort replacement declarations
24724         * lib/unistd.in.h: Sort declarations.
24725
24726         open, openat: minor optimization
24727         * lib/open.c (open): If open succeeded, len is non-zero.
24728         * lib/openat.c (rpl_openat): Likewise.
24729
24730         link-follow: ensure correct result
24731         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
24732         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
24733         distinguish between possible failures.
24734
24735 2009-09-21  Eric Blake  <ebb9@byu.net>
24736
24737         fts: avoid compiler warning
24738         * lib/fts.c (dirent_inode_sort_may_be_useful)
24739         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
24740
24741 2009-09-19  Bruno Haible  <bruno@clisp.org>
24742
24743         * lib/progreloc.c (canonicalize_file_name): New declaration.
24744
24745 2009-09-19  Eric Blake  <ebb9@byu.net>
24746
24747         link: fix quoting
24748         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
24749
24750         openat: fix openat bugs on Solaris 9
24751         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
24752         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
24753         * modules/openat (Depends-on): Add open.
24754         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
24755         * modules/fcntl-h (Makefile.am): Substitute it.
24756         * lib/fcntl.in.h (openat): Declare replacement.
24757         * doc/posix-functions/openat.texi (openat): Document this.
24758
24759         openat: move fstatat and unlinkat into correct files
24760         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
24761         compiled.
24762         * lib/openat.c (fstatat, unlinkat): Move...
24763         * lib/fstatat.c (fstatat): ...into correct files.
24764         * lib/unlinkat.c (unlinkat): Likewise.
24765
24766         openat: fix unlinkat bugs on Solaris 9
24767         * lib/unlinkat.c (unlinkat): New file.
24768         * modules/openat (Depends-on): Add unlink.
24769         (Files): Distribute it.
24770         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
24771         trailing slash behavior is broken.
24772         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24773         * modules/unistd (Makefile.am): Substitute it.
24774         * lib/unistd.in.h (unlinkat): Declare replacement.
24775         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
24776
24777         openat: fix fstatat bugs on Solaris 9
24778         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
24779         stat.
24780         * doc/posix-functions/fstatat.texi (fstatat): Document this.
24781
24782         test-unlinkat: enhance test, to expose Solaris 9 bug
24783         * tests/test-unlink.c (main): Factor guts...
24784         * tests/test-unlink.h (test_rmdir_func): ...into new file.
24785         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
24786         * tests/test-rmdir.c (main): Adjust caller.
24787         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
24788         (unlinker): New helper function.
24789         (rmdirat): Enhance check.
24790         * modules/rmdir-tests (Depends-on): Add stdbool.
24791         * modules/unlink-tests (Depends-on): Likewise.
24792         (Files): Add test-unlink.h.
24793         * modules/openat-tests (Files): Likewise.
24794         (Depends-on): Add unlinkdir.
24795
24796         test-fstatat: new test, to expose Solaris 9 bugs
24797         * tests/test-stat.c (main): Factor guts...
24798         * tests/test-stat.h (test_stat_func): ...into new file.
24799         * tests/test-lstat.c (main): Factor guts...
24800         * tests/test-lstat.h (test_lstat_func): ...into new file.
24801         * tests/test-fstatat.c: New file.
24802         * modules/stat-tests (Files): Add test-stat.h.
24803         * modules/lstat-tests (Files): Add test-lstat.h.
24804         (Depends-on): Add stdbool.
24805         * modules/openat-tests (Depends-on): Add pathmax.
24806         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
24807         (Makefile.am): Run new test.
24808
24809         remove: new module, for mingw and Solaris 9 bugs
24810         * modules/remove: New file.
24811         * lib/remove.c: Likewise.
24812         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
24813         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
24814         * modules/stdio (Makefile.am): Use them.
24815         * lib/stdio.in.h (remove): Declare replacement.
24816         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24817         * doc/posix-functions/remove.texi (remove): Likewise.
24818         * modules/remove-tests: New test.
24819         * tests/test-remove.c: Likewise.
24820
24821         unlink: new module, for Solaris 9 bug
24822         * modules/unlink: New file.
24823         * lib/unlink.c: Likewise.
24824         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24825         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24826         * modules/unistd (Makefile.am): Use them.
24827         * lib/unistd.in.h (stat): Declare replacement.
24828         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24829         * doc/posix-functions/unlink.texi (unlink): Likewise.
24830         * modules/unlink-tests: New test.
24831         * tests/test-unlink.c: Likewise.
24832
24833         lstat: fix Solaris 9 bug
24834         * lib/lstat.c (lstat): Also check for trailing slash on
24835         non-symlink, non-directories.  Use stat module to simplify logic.
24836         * doc/posix-functions/lstat.texi (lstat): Document it.
24837         * modules/lstat-tests (Depends-on): Add errno, same-inode.
24838         (configure.ac): Check for symlink.
24839         * tests/test-lstat.c (main): Add more tests.
24840
24841         stat: add as dependency to other modules
24842         * modules/chown (Depends-on): Add stat.
24843         * modules/euidaccess (Depends-on): Likewise.
24844         * modules/fchdir (Depends-on): Likewise.
24845         * modules/isdir (Depends-on): Likewise.
24846         * modules/link (Depends-on): Likewise.
24847         * modules/lstat (Depends-on): Likewise.
24848         * modules/mkdir-p (Depends-on): Likewise.
24849         * modules/modechange (Depends-on): Likewise.
24850         * modules/open (Depends-on): Likewise.
24851         * modules/readlink (Depends-on): Likewise.
24852         * modules/same (Depends-on): Likewise.
24853
24854         stat: fix Solaris 9 bug
24855         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
24856         slash.
24857         * lib/stat.c (rpl_stat): Work around it.
24858         * doc/posix-functions/stat.texi (stat): Update documentation.
24859
24860         stat: new module, for mingw bug
24861         * modules/stat: New file.
24862         * lib/stat.c: Likewise.
24863         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24864         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24865         * modules/sys_stat (Makefile.am): Use them.
24866         * lib/sys_stat.in.h (stat): Declare replacement.
24867         * lib/openat.c (fstatat): Deal with lstat and stat being function
24868         macros.
24869         * modules/openat (Depends-on): Add inline.
24870         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24871         * doc/posix-functions/stat.texi (stat): Likewise.
24872         * modules/stat-tests: New test.
24873         * tests/test-stat.c: Likewise.
24874
24875 2009-09-19  Jim Meyering  <meyering@redhat.com>
24876
24877         syntax-check: detect unnecessary inclusion of canonicalize.h
24878         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
24879
24880 2009-09-19  Eric Blake  <ebb9@byu.net>
24881
24882         canonicalize-lgpl: adjust clients to use correct header
24883         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
24884         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
24885         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
24886         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
24887         * lib/progreloc.c (includes): Likewise.
24888
24889 2009-09-19  Jim Meyering  <meyering@redhat.com>
24890
24891         test-posixtm.c: correct a comment
24892         * tests/test-posixtm.c: Correct first-line comment.
24893         Spotted by Eric Blake.
24894
24895 2009-09-16  Jim Meyering  <meyering@redhat.com>
24896
24897         posixtm-tests: make T const-correct; add a test case
24898         * tests/test-posixtm.c (T): Declare const.
24899         Add a test for -(2^31+1).
24900         Remove useless can-succeed-only-in-2002 test.
24901
24902         posixtm-tests: adjust the sole failing test
24903         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
24904         expected output matches what mktime now produces.  Cross-checked via
24905         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
24906
24907         posixtm: move #ifdef'd tests into a new module
24908         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
24909         * tests/test-posixtm.c: ... this new file.
24910         * modules/posixtm-tests: New module.
24911
24912 2009-09-19  Eric Blake  <ebb9@byu.net>
24913
24914         openat: simplify use of at-func.c
24915         * lib/at-func.c (includes): Include prerequisites here, to
24916         simplify requirements on client files.
24917         * lib/openat-priv.h: Add double-inclusion guard.
24918         * lib/faccessat.c (includes): Simplify.
24919         * lib/fchmodat.c (includes): Likewise.
24920         * lib/fchownat.c (includes): Likewise.
24921         * lib/mkdirat.c (includes): Likewise.
24922         * lib/mkfifoat.c (includes): Likewise.
24923         * lib/symlinkat.c (includes): Likewise.
24924
24925         openat: allow return of fd 0
24926         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
24927         * modules/save-cwd (Depends-on): Replace fcntl-safer with
24928         unistd-safer.
24929         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
24930         <fcntl.h>; this module does not leak fds.
24931         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
24932         must be allowed to return 0, leaving openat_safer to add the
24933         safety.
24934         (openat_permissive): Avoid writing to just-opened fd 2 if
24935         restoring the current directory fails.
24936         * lib/openat-die.c (openat_restore_fail): Add comment.
24937         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
24938         (save_cwd): Guarantee safe fd, but without use of open_safer.
24939         * tests/test-openat.c: New test.
24940         * modules/openat-tests (Files, Makefile.am): Distribute and build
24941         new file.
24942
24943         relocatable-prog-wrapper: fix build
24944         * modules/relocatable-prog-wrapper (Files): Update name of
24945         canonicalize m4 file, broken on 2009-09-17.
24946         Reported by emad hajjar <aleppos@hotmail.com>.
24947
24948 2009-09-19  Bruno Haible  <bruno@clisp.org>
24949
24950         * lib/safe-alloc.h: Use the standard header with GPL copyright.
24951         * lib/safe-alloc.c: Likewise.
24952         Reported by Ian Beckwith <ianb@erislabs.net>.
24953
24954 2009-09-18  Bruno Haible  <bruno@clisp.org>
24955
24956         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
24957         Reported by <erobles@sensacd.com.mx>.
24958
24959 2009-09-17  Eric Blake  <ebb9@byu.net>
24960
24961         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
24962         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
24963         slashes when checking if last component is missing.
24964         * tests/test-canonicalize.c (main): Test this.
24965
24966         canonicalize, canonicalize-lgpl: honor // if distinct from /
24967         * modules/canonicalize (Files): Add double-slash-root.m4.
24968         * modules/canonicalize-lgpl (Files): Likewise.
24969         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
24970         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
24971         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
24972         fallback definition.
24973         (canonicalize_filename_mode): Use it to protect //.
24974         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
24975         (__realpath): Likewise.
24976         * tests/test-canonicalize.c (main): Test this.
24977         * tests/test-canonicalize-lgpl.c (main): Likewise.
24978         * modules/canonicalize-tests (Depends-on): Add same-inode.
24979         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
24980
24981         canonicalize-lgpl: fix glibc bug with trailing slash
24982         * m4/canonicalize-lgpl.m4: Move contents...
24983         * m4/canonicalize.m4: ...here.
24984         (gl_CANONICALIZE_LGPL): Factor realpath check...
24985         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
24986         glibc 2.3.5 bug, fixed 2005-04-27.
24987         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
24988         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
24989         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
24990         * modules/canonicalize-lgpl (Files): Manage file rename.
24991         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
24992         * modules/stdlib (Makefile.am): Substitute witness.
24993         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
24994         is needed.
24995         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
24996         replacement is required.
24997         * lib/canonicalize.c (canonicalize_file_name): Likewise.
24998         * doc/glibc-functions/canonicalize_file_name.texi
24999         (canonicalize_file_name): Document this.
25000         * doc/posix-functions/realpath.texi (realpath): Likewise.
25001
25002         canonicalize-lgpl: reject non-directory with trailing slash
25003         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
25004         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
25005         catches failures in glibc 2.3.5.
25006         * tests/test-canonicalize.c (main): Likewise.
25007
25008         canonicalize-lgpl: use native realpath if it works
25009         * lib/canonicalize-lgpl.c (realpath): Guard with
25010         FUNC_REALPATH_WORKS.
25011         * lib/stdlib.in.h (realpath): Make declaration optional based on
25012         HAVE_REALPATH.
25013         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
25014         native realpath works.
25015         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
25016         * modules/stdlib (Makefile.am): Substitute witness.
25017
25018         canonicalize, canonicalize-lgpl: use <stdlib.h>
25019         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
25020         (Include): Mention <stdlib.h>.
25021         (configure.ac): Mention functions we provide.
25022         * modules/canonicalize (configure.ac): Likewise.
25023         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
25024         realpath if canonicalize_file_name is missing.
25025         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
25026         * modules/stdlib (Makefile.am): Substitute witnesses.
25027         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
25028         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
25029         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
25030         * NEWS: Document this.
25031         * doc/glibc-functions/canonicalize_file_name.texi
25032         (canonicalize_file_name): Likewise.
25033         * doc/posix-functions/realpath.texi (realpath): Likewise.
25034         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
25035
25036         test-canonicalize: consolidate into single C program
25037         * tests/test-canonicalize.sh: Delete; move setup into...
25038         * tests/test-canonicalize.c (main): ...the program, making it
25039         easier to run in debugger.  Add some tests.
25040         * modules/canonicalize-tests (Files): Remove unused file.
25041         (Depends-on): Add progname.
25042         (configure.ac, Makefile.am): Simplify.
25043
25044         test-canonicalize-lgpl: consolidate into single C program
25045         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
25046         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
25047         easier to run in debugger.  Add some tests.
25048         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
25049         (configure.ac, Makefile.am): Simplify.
25050
25051         canonicalize: avoid resolvepath
25052         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
25053         unnecessary checks.
25054         * lib/canonicalize.c (includes): Simplify.
25055         (canonicalize_file_name): Drop resolvepath implementation.
25056         * modules/canonicalize (Depends-on): Drop filenamecat.
25057
25058         canonicalize: don't lose errno
25059         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
25060         over calls to free.
25061
25062         canonicalize: simplify errno handling
25063         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
25064         assignment.
25065
25066         canonicalize, canonicalize-lgpl: update module dependencies
25067         * modules/canonicalize (Depends-on): Add extensions, lstat,
25068         pathmax, stdlib.
25069         (Files): Drop pathmax.h.
25070         (configure.ac): Adjust macro name.
25071         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
25072         lstat, stdlib, sys_stat.
25073         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
25074         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
25075         extensions.
25076         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
25077         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
25078         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
25079         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
25080         declaration, if available.
25081         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
25082         we can rely on the readlink module.
25083         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
25084         (includes): Use <unistd.h> unconditionally.
25085
25086 2009-09-17  Eric Blake  <ebb9@byu.net>
25087
25088         maint: make Include sections of modules consistent
25089         * modules/alloca: Use only header name; no need to list #include.
25090         * modules/alloca-opt: Likewise.
25091         * modules/arpa_inet: Likewise.
25092         * modules/canon-host: Likewise.
25093         * modules/configmake: Likewise.
25094         * modules/dirent: Likewise.
25095         * modules/eealloc: Likewise.
25096         * modules/environ: Likewise.
25097         * modules/fchdir: Likewise.
25098         * modules/fcntl: Likewise.
25099         * modules/fcntl-h: Likewise.
25100         * modules/gethrxtime: Likewise.
25101         * modules/gettime: Likewise.
25102         * modules/ignore-value: Likewise.
25103         * modules/inet_ntop: Likewise.
25104         * modules/inet_pton: Likewise.
25105         * modules/inttypes: Likewise.
25106         * modules/isnand-nolibm: Likewise.
25107         * modules/isnanf-nolibm: Likewise.
25108         * modules/mbchar: Likewise.
25109         * modules/mbfile: Likewise.
25110         * modules/mbiter: Likewise.
25111         * modules/mbuiter: Likewise.
25112         * modules/netdb: Likewise.
25113         * modules/netinet_in: Likewise.
25114         * modules/nproc: Likewise.
25115         * modules/pagealign_alloc: Likewise.
25116         * modules/poll: Likewise.
25117         * modules/printf-frexp: Likewise.
25118         * modules/pthread: Likewise.
25119         * modules/putenv: Likewise.
25120         * modules/random_r: Likewise.
25121         * modules/relocatable-prog: Likewise.
25122         * modules/search: Likewise.
25123         * modules/select: Likewise.
25124         * modules/selinux-h: Likewise.
25125         * modules/settime: Likewise.
25126         * modules/signal: Likewise.
25127         * modules/size_max: Likewise.
25128         * modules/socklen: Likewise.
25129         * modules/ssize_t: Likewise.
25130         * modules/stdarg: Likewise.
25131         * modules/stdbool: Likewise.
25132         * modules/stddef: Likewise.
25133         * modules/stdint: Likewise.
25134         * modules/stdio: Likewise.
25135         * modules/stdlib: Likewise.
25136         * modules/string: Likewise.
25137         * modules/strings: Likewise.
25138         * modules/sys_file: Likewise.
25139         * modules/sys_ioctl: Likewise.
25140         * modules/sys_select: Likewise.
25141         * modules/sys_socket: Likewise.
25142         * modules/sys_stat: Likewise.
25143         * modules/sys_time: Likewise.
25144         * modules/sys_times: Likewise.
25145         * modules/sys_utsname: Likewise.
25146         * modules/sys_wait: Likewise.
25147         * modules/sysexits: Likewise.
25148         * modules/time: Likewise.
25149         * modules/times: Likewise.
25150         * modules/tmpfile: Likewise.
25151         * modules/trim: Likewise.
25152         * modules/unistd: Likewise.
25153         * modules/wchar: Likewise.
25154         * modules/wctype: Likewise.
25155
25156 2009-09-17  Bruno Haible  <bruno@clisp.org>
25157
25158         Make getdate.y compile on QNX and NetBSD 5 / i386.
25159         * m4/getdate.m4 (gl_GETDATE): Conditionally define
25160         TIME_T_FITS_IN_LONG_INT.
25161         * lib/getdate.y (long_time_t): New type.
25162         (relative_time): Change type of 'seconds' field to long_time_t.
25163         (get_date): Update types of local variables. Check against overflow
25164         during conversion from long_time_t to time_t.
25165         Reported by Matt Kraai <kraai@ftbfs.org>
25166         and Hasso Tepper <hasso@netbsd.org>.
25167
25168 2009-09-17  Bruno Haible  <bruno@clisp.org>
25169
25170         * modules/COPYING: Update copyright years.
25171         * modules/README: Likeiwse.
25172         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
25173         Reported by Ian Beckwith <ianb@erislabs.net>.
25174
25175 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
25176
25177         * users.txt: Update references for gnuit package.
25178
25179 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
25180
25181         * m4/getdelim.m4: Fix typo in copyright line.
25182
25183 2009-09-17  Bruno Haible  <bruno@clisp.org>
25184
25185         * lib/atoll.c: Use the standard header with GPL copyright.
25186         * lib/argz.in.h: Likewise.
25187         * lib/glob.c: Likewise.
25188         * lib/glob-libc.h: Likewise.
25189         * lib/random_r.c: Likewise.
25190         * lib/siglist.h: Likewise.
25191         * lib/strsignal.c: Likewise.
25192         Reported by Ian Beckwith <ianb@erislabs.net>.
25193
25194 2009-09-17  Eric Blake  <ebb9@byu.net>
25195
25196         rmdir: ensure correct dependency order
25197         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
25198
25199 2009-09-17  Bruno Haible  <bruno@clisp.org>
25200
25201         Disable assertion that fails on NetBSD 5 / i386.
25202         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
25203         Reported by Sam Steingold <sds@gnu.org>
25204         and Hasso Tepper <hasso@netbsd.org>.
25205
25206 2009-09-16  Eric Blake  <ebb9@byu.net>
25207
25208         unlinkdir: port to mingw
25209         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
25210         on which no one can unlink a directory.
25211
25212         stdlib: sort witness names
25213         * modules/stdlib (Makefile.am): Sort replacements.
25214         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
25215         * lib/stdlib.in.h: Likewise.
25216
25217         parse-duration-tests: avoid link failure
25218         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
25219         LIBINTL.
25220         Reported by Tom G. Christensen.
25221
25222         openat-tests: ensure unlinkat behaves like rmdir
25223         * tests/test-rmdir.c (main): Factor guts...
25224         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
25225         * modules/rmdir-tests (Files): Ship new file.
25226         * modules/openat-tests: New test.
25227         * tests/test-unlinkat.c: Likewise.
25228
25229         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
25230         * modules/rmdir-errno (Status, Notice): Now obsolete.
25231
25232         rmdir: work around cygwin 1.5.x and mingw bugs
25233         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
25234         * lib/rmdir.c (rmdir): Work around it.
25235         * modules/rmdir (Status, Notice): No longer obsolete.
25236         (Files): Add dos.m4.
25237         (Depends-on): Add unistd.
25238         (configure.ac): Set witnesses.
25239         (License): Relax to LGPLv2+.
25240         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
25241         * modules/unistd (Makefile.am): Substitute witnesses.
25242         * lib/unistd.in.h (rmdir): Declare replacement.
25243         * doc/posix-functions/rmdir.texi (rmdir): Document this.
25244         * modules/rmdir-tests: New tests.
25245         * tests/test-rmdir.c: Likewise.
25246
25247 2009-09-15  Eric Blake  <ebb9@byu.net>
25248
25249         fchdir: improve use of replacement functions
25250         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
25251         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
25252         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
25253         REPLACE_CLOSEDIR.
25254         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
25255         * modules/sys_stat (Makefile.am): Substitute correct witness.
25256         * modules/dirent (Makefile.am): Likewise.
25257         * modules/unistd (Makefile.am): Likewise.
25258         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
25259         * lib/unistd.in.h (dup): Likewise.
25260         * lib/sys_stat.in.h (fstat): Likewise.
25261
25262         maint: ignore gnulib-tool temp files
25263         * .gitignore: Ignore files created during gnulib-tool --test.
25264
25265 2009-09-13  Jim Meyering  <meyering@redhat.com>
25266
25267         posixtm: don't reject a time that specify "60" as the number of seconds
25268         * lib/posixtm.c (posixtime): The code to reject invalid dates
25269         would also reject a time specified with the .60 suffix.
25270         But POSIX allows that, in order to accommodate leap seconds.
25271         So don't reject it.
25272         (main): Adjust tests accordingly.
25273         * modules/posixtm (Depends-on): Add stpcpy.
25274
25275 2009-09-11  Jim Meyering  <meyering@redhat.com>
25276
25277         announce-gen: include [$release_type] in emitted Subject:
25278         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
25279         e.g., [stable] in the emitted Subject: line.
25280
25281 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25282
25283         Remove obsolete macros from several modules.
25284         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
25285         obsolete Autoconf macros with their modern counterparts.
25286         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
25287         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
25288         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
25289         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
25290         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
25291         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25292         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25293         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
25294         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
25295         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
25296         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
25297         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
25298         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
25299         * m4/sockets.m4 (gl_SOCKETS): Likewise.
25300         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
25301         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
25302         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
25303         * m4/time_r.m4 (gl_TIME_R): Likewise.
25304         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
25305         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
25306         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
25307
25308         Fix copyright header in build-aux scripts.
25309         * build-aux/git-version-gen: Fix copyright header to match GPLv3
25310         recommendation.
25311         * build-aux/ncftpput-ftp: Likewise.
25312         * build-aux/update-copyright: Likewise.
25313
25314 2009-09-09  Eric Blake  <ebb9@byu.net>
25315
25316         test-link: allow Linux choice of errno
25317         * tests/test-link.c (main): Relax test for alternate error.
25318
25319         strndup: fix improper m4 caching
25320         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
25321         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
25322         (gl_PREREQ_STRNDUP): Delete.
25323         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
25324         * modules/string (Makefile.am): Substitute it.
25325         * lib/string.in.h (strndup): Modernize prototype.
25326
25327         getcwd: port to mingw
25328         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
25329         different from the POSIX assumptions made throughout the getcwd
25330         module; fortunately, the mingw getcwd does not need replacement.
25331         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
25332         * modules/getcwd-tests: New test.
25333         * tests/test-getcwd.c: Likewise.
25334
25335         link: fix platform bugs
25336         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
25337         * lib/link.c (link): Work around them.  Fix related mingw bug.
25338         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
25339         * modules/unistd (Makefile.am): Substitute it.
25340         * lib/unistd.in.h (link): Declare replacement.
25341         * doc/posix-functions/link.texi (link): Document this.
25342         * modules/link (Depends-on): Add strdup-posix, sys_stat.
25343
25344         test-link: consolidate into single C program, test more cases
25345         * tests/test-link.sh: Delete.
25346         * tests/test-link.c: Test more error conditions.  Exposes bugs on
25347         at least Cygwin and Solaris.
25348         * modules/link-tests (Files): Remove unused file.
25349         (Depends-on): Add errno, sys_stat.
25350         (Makefile.am): Simplify.
25351
25352 2009-09-08  Bruno Haible  <bruno@clisp.org>
25353
25354         Work around towlower, towupper bug on mingw.
25355         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
25356         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
25357         * doc/posix-functions/towlower.texi: Mention the mingw bug.
25358         * doc/posix-functions/towupper.texi: Likewise.
25359         Reported by Eric Blake.
25360
25361 2009-09-08  Jim Meyering  <meyering@redhat.com>
25362
25363         build: don't try to run autoheader if we don't use it
25364         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
25365         is not used in configure.ac.
25366
25367 2009-09-08  Eric Blake  <ebb9@byu.net>
25368
25369         euidaccess: fix compilation error
25370         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
25371
25372         rawmemchr: relax license
25373         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
25374         okay.
25375         Reported by Jim Meyering.
25376
25377         mkfifoat: new module
25378         * modules/mkfifoat: New file.
25379         * lib/mkfifoat.c: Likewise.
25380         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
25381         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25382         * modules/sys_stat (Makefile.am): Use them.
25383         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
25384         * MODULES.html.sh (File system functions): Mention module.
25385         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
25386         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
25387         * modules/mkfifoat-tests: New test.
25388         * tests/test-mkfifoat.c: Likewise.
25389
25390         strchrnul: relax license
25391         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
25392         okay.
25393         Reported by Jim Meyering.
25394
25395 2009-09-08  Eric Blake  <ebb9@byu.net>
25396
25397         fstatat: fix compilation on Solaris
25398         * lib/fstatat.c (includes): Add fcntl.h.
25399         Reported by Pádraig Brady.
25400
25401 2009-09-07  Eric Blake  <ebb9@byu.net>
25402
25403         rename: modernize replacement
25404         * modules/rename (Depends-on): Add stdio.
25405         (configure.ac): Declare witness.
25406         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
25407         stdio take care of replacement.
25408         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
25409         * modules/stdio (Makefile.am): Substitute them.
25410         * lib/stdio.in.h (rename): Declare replacement.
25411         * lib/rename.c (includes): Allow cross-compilation to non-windows
25412         machines.
25413         * doc/posix-functions/rename.texi (rename): Improve
25414         documentation.
25415
25416         stdio: sort witness names
25417         * modules/stdio (Makefile.am): Sort replacements.
25418         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
25419         * lib/stdio.in.h: Likewise.
25420
25421         getcwd: minor cleanups
25422         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
25423         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
25424
25425         openat: provide more convenience names
25426         * modules/faccessat (configure.ac): Add C witness.
25427         * lib/unistd.in.h (readlinkat): Fix typo.
25428         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
25429         convenience wrappers.
25430         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
25431         wrappers in syntax checks.
25432
25433 2009-09-06  Eric Blake  <ebb9@byu.net>
25434
25435         doc: fix comments in recent patches
25436         * lib/faccessat.c: Mention correct function.
25437         * lib/fchmodat.c: Likewise.
25438         * lib/fchownat.c: Likewise.
25439         * lib/symlinkat.c: Likewise.
25440         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
25441         constants.
25442
25443         faccessat, symlinkat: continue cleanup of previous patch
25444         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
25445         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
25446         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
25447         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
25448         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
25449         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
25450         set.
25451
25452 2009-09-06  Bruno Haible  <bruno@clisp.org>
25453
25454         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
25455         (fstatat): Declare if GNULIB_FSTATAT is set.
25456         (mkdirat): Declare if GNULIB_MKDIRAT is set.
25457         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
25458         (unlinkat): Declare if GNULIB_UNLINKAT is set.
25459         * modules/fcntl-h (Files): Remove m4/openat.m4.
25460         * modules/sys_stat (Files): Remove m4/openat.m4.
25461         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
25462         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
25463         * modules/unistd (Files): Remove m4/openat.m4.
25464         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
25465         GNULIB_OPENAT.
25466         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
25467         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
25468         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
25469         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
25470         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
25471         gl_OPENAT_DEFAULTS.
25472         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
25473         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
25474         Don't require gl_OPENAT_DEFAULTS.
25475         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
25476         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
25477         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
25478         (gl_OPENAT_DEFAULTS): Remove macro.
25479
25480 2009-09-06  Bruno Haible  <bruno@clisp.org>
25481
25482         * modules/openat (configure.ac): Remove unneeded witness.
25483
25484 2009-09-06  Bruno Haible  <bruno@clisp.org>
25485
25486         Set errno to ENOSYS when a function is entirely unsupported.
25487         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
25488         EOPNOTSUPP.
25489         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
25490         * modules/chown (Depends-on): Remove errno.
25491
25492 2009-09-06  Bruno Haible  <bruno@clisp.org>
25493
25494         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
25495
25496 2009-09-06  Bruno Haible  <bruno@clisp.org>
25497
25498         * lib/sys_stat.in.h: Fix preprocessor command indentation.
25499
25500 2009-09-06  Ben Pfaff  <blp@gnu.org>
25501             Bruno Haible  <bruno@clisp.org>
25502
25503         Work around a glibc bug in strtok_r.
25504         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
25505         Undefine if UNDEFINE_STRTOK_R is set.
25506         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
25507         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25508         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
25509         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
25510         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
25511         UNDEFINE_STRTOK_R.
25512         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
25513
25514 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
25515
25516         exclude: minor fix
25517         * lib/exclude.c: Include wctype.h
25518
25519 2009-09-06  Akim Demaille  <demaille@gostai.com>
25520
25521         bootstrap: improve error message
25522         * build-aux/bootstrap (find_tool): Upon failure, report the list
25523         of candidates.
25524         Honor the initial value of the envvar.
25525
25526 2009-09-05  Eric Blake  <ebb9@byu.net>
25527
25528         symlinkat: new module
25529         * modules/symlinkat: New file.
25530         * lib/symlinkat.c: Likewise.
25531         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
25532         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
25533         * modules/unistd (Makefile.am): Use them.
25534         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
25535         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
25536         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
25537         * MODULES.html.sh (File system functions): Mention module.
25538         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25539         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25540         * modules/symlinkat-tests: New test.
25541         * tests/test-symlinkat.c: Likewise.
25542
25543         test-openat-safer: add more checks
25544         * tests/test-openat-safer.c (main): Check more code paths.
25545
25546 2009-09-05  Jim Meyering  <meyering@redhat.com>
25547
25548         syntax-check: detect unnecessary inclusion of openat.h
25549         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
25550
25551 2009-09-05  Bruno Haible  <bruno@clisp.org>
25552
25553         Support towlower, towupper.
25554         * doc/posix-functions/towlower.texi: Mention module wctype.
25555         * doc/posix-functions/towupper.texi: Likewise.
25556         * lib/wctype.in.h (towlower, towupper): New functions.
25557         * tests/test-wctype.c: Include stdio.h, stdlib.h.
25558         (ASSERT): New macro.
25559         (e): New variable.
25560         (main): Test also towlower, towupper. Test WEOF argument.
25561         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25562
25563 2009-09-05  Bruno Haible  <bruno@clisp.org>
25564
25565         Fix conversion behaviour when the input is invalid.
25566         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
25567         mark occurring in first pass of indirect conversion.
25568         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
25569         input.
25570         Found by clang's static analyzer.
25571
25572 2009-09-05  Bruno Haible  <bruno@clisp.org>
25573
25574         * tests/test-striconveh.c (main): Test indirect conversion on platforms
25575         where direct conversion is possible.
25576
25577 2009-09-04  Eric Blake  <ebb9@byu.net>
25578
25579         openat: fail with ENOENT on empty name
25580         * lib/openat-proc.c (openat_proc_name): Special-case the empty
25581         buffer.
25582
25583         link-follow: fix logic bug in prior patch
25584         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
25585         reversed sense of yes and no in prior patch.  Avoid confusing
25586         compilation failure with desired semantics.
25587
25588         link-follow: accomodate mingw and cross-compilation
25589         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
25590         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
25591         cross-compilation results to -1, to make linkat easier to
25592         implement when cross-compiling.  Trivially support mingw.
25593         * modules/link-follow (configure.ac): Call new name.
25594         * NEWS: Mention this.
25595
25596 2009-09-03  Eric Blake  <ebb9@byu.net>
25597
25598         faccessat: compile replacement
25599         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
25600         needed.
25601
25602         fts: fix compilation error
25603         * lib/fts.c (includes): Re-add "openat.h", for
25604         openat_needs_fchdir.
25605
25606         faccessat: new module
25607         * modules/faccessat: New file.
25608         * lib/faccessat.c: Likewise.
25609         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
25610         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25611         * modules/unistd (Makefile.am): Use it.
25612         * lib/unistd.in.h (faccessat): Declare it.
25613         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
25614         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
25615         * MODULES.html.sh (File system functions): Mention it.
25616         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
25617         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
25618
25619         euidaccess: prefer POSIX over non-standard implementation
25620         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
25621         * lib/euidaccess.c (euidaccess): Use it if available.
25622
25623         openat: make template easier to use
25624         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
25625         AT_FUNC_F2 to be undefined.
25626         (VALIDATE_FLAG): New macro; use it to reject bad flags.
25627         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
25628         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
25629         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
25630         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
25631         Likewise.
25632         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
25633         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
25634         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
25635         Likewise.
25636
25637         openat: declare in POSIX headers
25638         * NEWS: Mention this.
25639         * modules/openat (configure.ac): Declare witnesses.
25640         (Depends-on): Add fcntl-h, sys_stat, unistd.
25641         (Include): Mention correct headers.
25642         * modules/fcntl-h (Depends-on): Add link-warning.
25643         (Files): Add openat.m4.
25644         (Makefile.am): Substitute witnesses.
25645         * modules/sys_stat (Files, Makefile.am): Likewise.
25646         * modules/unistd (Files, Makefile.am): Likewise.
25647         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
25648         (gl_OPENAT_DEFAULTS): New macro.
25649         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
25650         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
25651         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
25652         (SYS_STAT_H): Remove unused variable.
25653         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
25654         * lib/fcntl--.h (includes): Remove unneeded header.
25655         * lib/openat-safer.c (includes): Likewise.
25656         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
25657         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
25658         appropriate headers.
25659         (__OPENAT_PREFIX): Delete.
25660         * lib/fcntl.in.h (openat): Provide declaration.
25661         (AT_FDCWD): Fix Solaris bug.
25662         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
25663         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
25664         * lib/fchmodat.c (includes):  Adjust to find declaration.
25665         * lib/fchownat.c (includes): Likewise.
25666         * lib/mkdirat.c (includes): Likewise.
25667         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
25668         still visible.
25669
25670 2009-09-02  Eric Blake  <ebb9@byu.net>
25671
25672         errno: use consistently
25673         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
25674         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
25675         * lib/canonicalize.c (ELOOP): Likewise.
25676         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
25677         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
25678         * lib/lchown.c (EOPNOTSUPP): Likewise.
25679         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
25680         * lib/savewd.c (ESTALE): Likewise.
25681         * lib/settime.c (ENOSYS): Likewise.
25682         * lib/utimens.c (ENOSYS): Likewise.
25683         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
25684         * lib/chdir-safer.c (ELOOP): Likewise.
25685         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
25686         * modules/c-stack (Depends-on): Add errno.
25687         * modules/canonicalize (Depends-on): Likewise.
25688         * modules/chdir-safer (Depends-on): Likewise.
25689         * modules/fdopendir (Depends-on): Likewise.
25690         * modules/inet_ntop (Depends-on): Likewise.
25691         * modules/inet_pton (Depends-on): Likewise.
25692         * modules/lchown (Depends-on): Likewise.
25693         * modules/openat (Depends-on): Likewise.
25694         * modules/savewd (Depends-on): Likewise.
25695         * modules/settime (Depends-on): Likewise.
25696         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
25697
25698         fts: avoid leaking fds
25699         * modules/fts (Depends-on): Add cloexec.
25700         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
25701         flag.
25702
25703         fts: make directory fds more robust
25704         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
25705         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
25706
25707         backupfile, chdir-long, fts, savedir: make safer
25708         * lib/backupfile.c (includes): Use "dirent--.h", since
25709         numbered_backup can write to stderr during readdir.
25710         * lib/savedir.c (includes): Likewise.
25711         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
25712         emulation can write to stderr on failure.
25713         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
25714         * lib/getcwd.c: Document why opendir_safer is unused.
25715         * lib/glob.c: Likewise.
25716         * lib/scandir.c: Likewise.
25717         * lib/openat-proc.c: Likewise, for open_safer.
25718         * modules/backupfile (Depends-on): Add dirent-safer.
25719         * modules/savedir (Depends-on): Likewise.
25720         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
25721         * modules/chdir-long (Depends-on): Add openat-safer.
25722
25723         openat-safer: new module
25724         * modules/openat-safer: New file.
25725         * lib/openat-safer.c: Likewise.
25726         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
25727         * lib/fcntl-safer.h (openat_safer): Declare.
25728         * lib/fcntl--.h (openat): Override.
25729         * MODULES.html.sh (File descriptor based I/O): Mention it.
25730         * lib/openat.h: Add double-inclusion guards.
25731         * lib/openat.c (includes): Only include "fcntl-safer.h", not
25732         "fcntl--.h", so we can implement openat.
25733         * modules/openat-safer-tests: New test.
25734         * tests/test-openat-safer.c: New file.
25735
25736         dirent-safer: new module
25737         * modules/dirent-safer: New file.
25738         * lib/dirent--.h: Likewise.
25739         * lib/dirent-safer.h: Likewise.
25740         * lib/opendir-safer.c: Likewise.
25741         * m4/dirent-safer.m4: Likewise.
25742         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
25743         * modules/dirent-safer-tests: New test.
25744         * tests/test-dirent-safer.c: New file.
25745         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
25746
25747         fdopendir: optimize on mingw
25748         * lib/unistd.in.h (_gl_directory_name): New prototype.
25749         * lib/fchdir.c (_gl_directory_name): Implement it.
25750         (fchdir): Use it to simplify implementation.
25751         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
25752         fchdir, when available, to avoid calling [f]chdir().
25753
25754         fdopendir: split into its own module
25755         * lib/openat.c (fdopendir): Move...
25756         * lib/fdopendir.c: ...into new file.
25757         * modules/fdopendir: New module.
25758         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
25759         * modules/openat (Depends-on): Add fdopendir.
25760         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
25761         fdopendir here.
25762         * modules/savedir (Depends-on): Only need fdopendir, not full
25763         openat.
25764         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
25765         * lib/openat.h (fdopendir): Drop prototype.
25766         * lib/dirent.in.h (fdopendir): Provide prototype.
25767         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
25768         * modules/dirent (Makefile.am): Substitute them.
25769         * MODULES.html.sh (File system functions): Mention it.
25770         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
25771         * modules/fdopendir-tests: New file.
25772         * tests/test-fdopendir.c: Likewise.
25773
25774         fchdir: use more consistent macro convention
25775         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
25776         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
25777         REPLACE_FCHDIR, rather than relying on config.h macros.
25778         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
25779         inside a single make-time REPLACE_FCHDIR block, rather than using
25780         the config.h FCHDIR_REPLACEMENT.
25781         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
25782         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
25783         Manage fstat replacement.
25784         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
25785         REPLACE_FCHDIR.
25786         * modules/sys_stat (Files): Add m4/unistd_h.m4.
25787         (Makefile.am): Substitute REPLACE_FCHDIR.
25788         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
25789         FCHDIR_REPLACEMENT.
25790         * lib/dup-safer.c (dup_safer): Likewise.
25791         * lib/dup2.c (rpl_dup2): Likewise.
25792         * lib/dup3.c (rpl_dup3): Likewise.
25793         * lib/open.c (rpl_open): Likewise.
25794
25795         fchdir: simplify error handling, and support dup3
25796         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
25797         stdbool, malloc-posix, realloc-posix.
25798         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
25799         (ensure_dirs_slot): Return false on allocation failure.
25800         (rpl_dup2): Delete.
25801         (_gl_register_dup): New function.
25802         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
25803         (_gl_register_fd): Close fd on allocation failure.
25804         * lib/fcntl.in.h (_gl_register_fd): Update signature.
25805         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
25806         prototype.
25807         (rpl_dup2_fchdir): Delete prototype.
25808         * lib/open.c (open): Update caller.
25809         * lib/dup2.c (dup2): Track fchdir metadata.
25810         * lib/dup3.c (dup3): Likewise.
25811         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
25812         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
25813
25814 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25815
25816         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
25817         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
25818         don't pass arguments to AC_OUTPUT.
25819
25820 2009-09-02  Bruno Haible  <bruno@clisp.org>
25821
25822         * modules/mkdtemp (License): Relicense under LGPLv2+.
25823         Reported by Paolo Bonzini.
25824
25825 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25826
25827         Replace uses of obsolete autoconf macros in Jim's modules.
25828         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
25829         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
25830         can evoke a warning from autoconf when run with -Wobsolete
25831         enabled.  They were declared obsolete for good reasons (see
25832         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
25833         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
25834         should not continue using the deprecated macros.
25835         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
25836         obsolete Autoconf macros with modern counterparts.
25837         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25838         * m4/dos.m4 (gl_AC_DOS): Likewise.
25839         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
25840         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
25841         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
25842         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
25843         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
25844         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
25845         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
25846         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
25847         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
25848         Likewise.
25849         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
25850         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
25851         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
25852         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
25853         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
25854         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
25855
25856 2009-09-01  Eric Blake  <ebb9@byu.net>
25857
25858         fchdir: fix off-by-one bug in previous patch
25859         * lib/fchdir.c (rpl_fstat): Use correct bounds.
25860         (_gl_unregister_fd): Delete useless if.
25861
25862 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
25863
25864         maint.mk: sort the list of syntax-check rules
25865         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
25866         easier to get a sense of progress when the rules are run sequentially
25867         and take a long time.
25868
25869 2009-09-01  Simon Josefsson  <simon@josefsson.org>
25870
25871         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
25872         * modules/netinet_in: Likewise.
25873         * modules/sys_file: Likewise.
25874         * modules/sys_ioctl: Likewise.
25875         * modules/sys_select: Likewise.
25876         * modules/sys_socket: Likewise.
25877         * modules/sys_stat: Likewise.
25878         * modules/sys_time: Likewise.
25879         * modules/sys_times: Likewise.
25880         * modules/sys_utsname: Likewise.
25881         * modules/sys_wait: Likewise.
25882
25883 2009-09-01  Jim Meyering  <meyering@redhat.com>
25884
25885         fts: help ensure that return values are not ignored
25886         * lib/fts_.h (__GNUC_PREREQ): Define.
25887         (__attribute_warn_unused_result__): Define.
25888         (fts_children, fts_close, fts_open, fts_read): Declare with
25889         __attribute_warn_unused_result__.
25890
25891         fts: fts_close now fails also when closing a dir file descriptor fails
25892         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
25893         and propagate to caller, along with errno.
25894
25895         announce-gen: correct formatting in --help output
25896         * build-aux/announce-gen (usage): Move the one-line description in
25897         --help output "up", to where it belongs, just after Usage:.
25898
25899 2009-08-31  Eric Blake  <ebb9@byu.net>
25900
25901         fchdir: port to mingw
25902         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
25903         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
25904         opened, then use a substitute.
25905         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
25906         replacement.
25907         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
25908         (_gl_register_fd): No need to check stat if open already filters
25909         all directories.
25910         (fchdir): Fix error condition to match POSIX.
25911         * modules/fchdir (Depends-on): Add sys_stat.
25912         * doc/posix-functions/open.texi (open): Document the limitation.
25913         * modules/fchdir-tests: New file.
25914         * tests/test-fchdir.c: Likewise.
25915
25916         canonicalize: allow cross-testing from cygwin to mingw
25917         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
25918         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
25919         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
25920         Likewise.
25921         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
25922         target does not support symlinks.
25923         * tests/test-canonicalize-lgpl.sh: Likewise.
25924
25925         chown: avoid compilation warning on mingw
25926         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
25927         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
25928         mingw.
25929         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
25930         * modules/chown (Depends-on): Add errno.
25931
25932 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
25933
25934         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
25935         command.
25936
25937 2009-08-31  Jim Meyering  <meyering@redhat.com>
25938
25939         canonicalize: remove useless initialization
25940         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
25941         initialization of local, "end".
25942
25943 2009-08-30  Bruno Haible  <bruno@clisp.org>
25944
25945         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
25946         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
25947         ENOSYS.
25948
25949 2009-08-30  Bruno Haible  <bruno@clisp.org>
25950
25951         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
25952         /usr/xpg4/bin/tr when it exists.
25953         * tests/test-pipe-filter-gi1.sh: Likewise.
25954
25955 2009-08-30  Bruno Haible  <bruno@clisp.org>
25956
25957         Work around deficient /usr/bin/id program on Solaris.
25958         * tests/test-file-has-acl.sh (ID): New variable.
25959         * tests/test-set-mode-acl.sh (ID): Likewise.
25960         * tests/test-copy-acl.sh (ID): Likewise.
25961         * tests/test-copy-file.sh (ID): Likewise.
25962
25963 2009-08-30  Bruno Haible  <bruno@clisp.org>
25964
25965         New module 'xstriconveh'.
25966         * lib/xstriconveh.h: New file.
25967         * lib/xstriconveh.c: New file.
25968         * modules/xstriconveh: New file.
25969
25970 2009-08-30  Bruno Haible  <bruno@clisp.org>
25971
25972         Make it easier to use mem_cd_iconveh.
25973         * lib/striconveh.h (iconveh_t): New type.
25974         (iconveh_open, iconveh_close): New declarations.
25975         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
25976         with a single 'const iconveh_t *' argument.
25977         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
25978         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
25979         with a single 'const iconveh_t *' argument.
25980         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
25981         * tests/test-striconveh.c (main): Update.
25982         * NEWS: Mention the change.
25983
25984 2009-08-30  Bruno Haible  <bruno@clisp.org>
25985
25986         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
25987         problem.
25988
25989 2009-08-30  Bruno Haible  <bruno@clisp.org>
25990
25991         Work around iconv_open problem on Solaris.
25992         * lib/iconv_open-solaris.gperf: New file.
25993         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
25994         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
25995         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
25996         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
25997         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
25998         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
25999
26000 2009-08-29  Jim Meyering  <meyering@redhat.com>
26001
26002         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
26003         * top/maint.mk (cvs-check): Remove target; it was just an alias
26004         to the better-named vc-diff-check.
26005         (maintainer-distcheck): Remove rule.  It was used only from
26006         the (alpha/beta/major) target, and all of its commands but one
26007         were coreutils-specific.
26008         (vc-dist): Remove rule.
26009         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
26010         Run vc-diff-check, not vc-dist.
26011         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
26012
26013 2009-08-27  Bruno Haible  <bruno@clisp.org>
26014
26015         * tests/test-bitrotate.c (main): Remove test that uses a shift count
26016         of 0.
26017
26018 2009-08-27  Bruno Haible  <bruno@clisp.org>
26019
26020         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
26021         compilers.
26022         * doc/func.texi: Document the SunPRO C bug.
26023
26024 2009-08-27  Bruno Haible  <bruno@clisp.org>
26025
26026         Fix link error on Solaris.
26027         * tests/test-parse-duration.c (xstrdup): Remove function.
26028
26029 2009-08-26  Pádraig Brady  <P@draigbrady.com>
26030
26031         ignore-value: handle pointer types, too
26032         * lib/ignore-value.h (__attribute__): Remove definition.
26033         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
26034         of a more concise and more-often effective "(void) i" statement.
26035         (ignore_ptr): New function to suppress warnings from functions that
26036         return pointers, and to make it explicit that one function doesn't
26037         handle all cases.
26038
26039 2009-08-25  Bruno Haible  <bruno@clisp.org>
26040
26041         dup2: work around a Linux bug.
26042         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
26043         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
26044         * doc/posix-functions/dup2.texi: Mention the Linux bug.
26045         Reported by Simon Josefsson.
26046
26047 2009-08-25  Jim Meyering  <meyering@redhat.com>
26048
26049         libguestfs uses gnulib
26050         * users.txt: Add libguestfs.
26051
26052 2009-08-24  Eric Blake  <ebb9@byu.net>
26053
26054         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
26055         * lib/pipe2.c (includes): Add binary-io.h.
26056         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
26057
26058 2009-08-24  Bruno Haible  <bruno@clisp.org>
26059
26060         Tolerate declared but missing accept4 syscall.
26061         * lib/accept4.c (accept4): Invoke original accept4 function first, if
26062         available.
26063         * lib/sys_socket.in.h (accept4): If the function is already present,
26064         override it.
26065         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
26066         * modules/accept4 (Makefile.am): Compile accept4.c always.
26067         Reported by Paolo Bonzini and Eric Blake.
26068
26069 2009-08-23  Bruno Haible  <bruno@clisp.org>
26070
26071         New module 'accept4'.
26072         * lib/sys_socket.in.h (accept4): New declaration.
26073         * lib/accept4.c: New file.
26074         * m4/accept4.m4: New file.
26075         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
26076         GNULIB_ACCEPT4, HAVE_ACCEPT4.
26077         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
26078         HAVE_ACCEPT4.
26079         * modules/accept4: New file.
26080         * doc/glibc-functions/accept4.texi: Mention the new module.
26081
26082 2009-08-24  Jim Meyering  <meyering@redhat.com>
26083
26084         progname: also set global program_invocation_name, when possible
26085         Before this change, a libtool-enabled program that calls glibc's
26086         error function would report the program name as
26087         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
26088         * modules/progname (configure.ac): Check for a declaration of
26089         program_invocation_name.
26090         * lib/progname.c:  Include <errno.h>.
26091         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
26092         Set program_invocation_name.
26093
26094 2009-08-23  Bruno Haible  <bruno@clisp.org>
26095
26096         * lib/dup3.c: Include <string.h>.
26097
26098 2009-08-23  Bruno Haible  <bruno@clisp.org>
26099
26100         * lib/dup3.c (dup3): Test only once whether the system actually exists.
26101         * lib/pipe2.c (pipe2): Likewise.
26102         Suggested by Eric Blake.
26103
26104 2009-08-23  Bruno Haible  <bruno@clisp.org>
26105
26106         Tolerate declared but missing dup3 syscall.
26107         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
26108         * lib/unistd.in.h (dup3): If the function is already present,
26109         override it.
26110         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
26111         * modules/dup3 (Makefile.am): Compile dup3.c always.
26112         Reported by Paolo Bonzini.
26113
26114 2009-08-23  Bruno Haible  <bruno@clisp.org>
26115
26116         Tolerate declared but missing pipe2 syscall.
26117         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
26118         available.
26119         * lib/unistd.in.h (pipe2): If the function is already present,
26120         override it.
26121         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
26122         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
26123         Reported by Paolo Bonzini.
26124
26125 2009-08-23  Bruno Haible  <bruno@clisp.org>
26126
26127         * lib/pipe2.c (pipe2): Move #ifs inside function.
26128
26129 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26130
26131         quotearg: document limitations of quote_these_too
26132         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
26133         those limitations are created.
26134         * lib/quotearg.h (set_char_quoting): Document that digits and
26135         letters that are special after backslash are not permitted.
26136         (quotearg_char): Cross-reference set_char_quoting documentation.
26137
26138 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
26139
26140         quotearg: implement custom_quoting_style
26141         * lib/quotearg.c: (struct quoting_options): Add left_quote and
26142         right_quote fields.
26143         (set_custom_quoting): New public function.
26144         (quotearg_buffer_restyled): Add left_quote and right_quote
26145         arguments, handle them very much like locale quoting, and update
26146         all uses.
26147         (quotearg_n_custom): New public function.
26148         (quotearg_n_custom_mem): New public function.
26149         (quotearg_custom): New public function.
26150         (quotearg_custom_mem): New public function.
26151         * lib/quotearg.h: Prototype and document new public functions.
26152         (enum quoting_style): For escape_quoting_style and
26153         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
26154         ignored even though they're otherwise like c_quoting_style.
26155         Add custom_quoting_style member and document with comparison to
26156         clocale_quoting_style.
26157         * tests/test-quotearg.c (custom_quotes): New array.
26158         (custom_results): New array.
26159         (main): Extend to test custom quoting.
26160
26161 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26162
26163         quotearg: fix right quote escaping when it's in quote_these_too
26164         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
26165         quote, be sure to prepend only one backslash.
26166         * tests/test-quotearg.c (use_quote_double_quotes): New function.
26167         (main): Test it.
26168
26169 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26170
26171         quotearg-tests: test escaping of embedded locale quotes
26172         * tests/test-quotearg.c (struct result_strings): Add member for
26173         new input.
26174         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
26175         (inputs): Add new input.
26176         (results_g): Add expected results.
26177         (flag_results): Likewise.
26178         (locale_results): Likewise.
26179         (compare_strings): Check those.
26180
26181 2009-08-23  Bruno Haible  <bruno@clisp.org>
26182
26183         Tests for module 'dup3'.
26184         * modules/dup3-tests: New file.
26185         * tests/test-dup3.c: New file.
26186
26187         New module 'dup3'.
26188         * lib/unistd.in.h (dup3): New declaration.
26189         * lib/dup3.c: New file.
26190         * m4/dup3.m4: New file.
26191         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
26192         HAVE_DUP3.
26193         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
26194         * modules/dup3: New file.
26195         * doc/glibc-functions/dup3.texi: Mention the new module.
26196
26197 2009-08-23  Bruno Haible  <bruno@clisp.org>
26198
26199         Tweak the dup2 test.
26200         * tests/test-dup2.c (main): Create the test file empty. Verify that an
26201         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
26202         the test file is still empty. Fix argument order of lseek.
26203
26204 2009-08-23  Bruno Haible  <bruno@clisp.org>
26205
26206         Avoid test link errors when the modules getopt-gnu, gettext are used.
26207         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
26208         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26209
26210 2009-08-23  Bruno Haible  <bruno@clisp.org>
26211
26212         Fix getdtablesize() on mingw.
26213         * lib/getdtablesize.c (getdtablesize): Implement differently.
26214         * lib/unistd.in.h (getdtablesize): Improve comment.
26215
26216 2009-08-23  Bruno Haible  <bruno@clisp.org>
26217
26218         New module 'mkostemp'.
26219         Based on Ulrich Drepper's 2007-08-10 change in glibc.
26220         * lib/stdlib.in.h (mksotemp): New declaration.
26221         * lib/mkostemp.c: New file, from glibc with modifications.
26222         * lib/tempname.h (GT_FILE): Remove outdated comment.
26223         (gen_tempname): Add flags argument.
26224         * lib/tempname.c (__GT_BIGFILE): Remove macro.
26225         (__GT_FILE): Map to 1.
26226         (small_open, large_open): Remove macros.
26227         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
26228         * lib/mkstemp.c (mkstemp): Update.
26229         * lib/mkdtemp.c (mkdtemp): Likewise.
26230         * m4/mkostemp.m4: New file.
26231         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
26232         HAVE_MKOSTEMP.
26233         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
26234         HAVE_MKOSTEMP.
26235         * modules/mkostemp: New file, based on modules/mkstemp.
26236         * doc/glibc-functions/mkostemp.texi: Mention the new module.
26237         * NEWS: Mention the change.
26238
26239 2009-08-23  Bruno Haible  <bruno@clisp.org>
26240
26241         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
26242         Reported by Eric Blake.
26243
26244 2009-08-23  Bruno Haible  <bruno@clisp.org>
26245
26246         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
26247         Reported by Eric Blake.
26248
26249 2009-08-23  Bruno Haible  <bruno@clisp.org>
26250
26251         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
26252         * modules/pipe2 (Depends-on): Likewise.
26253
26254 2009-08-23  Eric Blake  <ebb9@byu.net>
26255
26256         fcntl-h: add O_TTY_INIT support
26257         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
26258         * tests/test-fcntl-h.c (o): Test it.
26259         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
26260
26261         fcntl-h: rename from fcntl, in preparation for fcntl(2)
26262         * modules/fcntl: Move <fcntl.h> header replacement...
26263         * modules/fcntl-h: ...to new name, so as not to collide with
26264         like-named function.
26265         * tests/test-fcntl.c: Rename...
26266         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
26267         * modules/fcntl-tests: Rename...
26268         * modules/fcntl-h-tests: ...to this.  Update test file name.
26269         * modules/chdir-long (Depends-on): Update clients.
26270         * modules/chdir-safer (Depends-on): Likewise.
26271         * modules/fcntl-safer (Depends-on): Likewise.
26272         * modules/fts (Depends-on): Likewise.
26273         * modules/mkancesdirs (Depends-on): Likewise.
26274         * modules/mkdir-p (Depends-on): Likewise.
26275         * modules/open (Depends-on): Likewise.
26276         * modules/savewd (Depends-on): Likewise.
26277         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
26278         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
26279
26280 2009-08-22  Bruno Haible  <bruno@clisp.org>
26281
26282         * modules/binary-io (License): Relicense under LGPL.
26283         * modules/pipe2 (License): Likewise.
26284
26285 2009-08-22  Bruno Haible  <bruno@clisp.org>
26286
26287         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
26288         return value.
26289         * lib/pipe-filter-gi.c (filter_init): Likewise.
26290         Reported by Eric Blake.
26291
26292 2009-08-22  Bruno Haible  <bruno@clisp.org>
26293
26294         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
26295         * modules/pipe (Depends-on): Add pipe2.
26296
26297 2009-08-22  Bruno Haible  <bruno@clisp.org>
26298
26299         Tests for module 'pipe2'.
26300         * modules/pipe2-tests: New file.
26301         * tests/test-pipe2.c: New file.
26302
26303         New module 'pipe2'.
26304         * lib/unistd.in.h (pipe2): New declaration.
26305         * lib/pipe2.c: New file.
26306         * m4/pipe2.m4: New file.
26307         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
26308         HAVE_PIPE2.
26309         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
26310         * modules/pipe2: New file.
26311         * doc/glibc-functions/pipe2.texi: Mention the new module.
26312
26313 2009-08-22  Bruno Haible  <bruno@clisp.org>
26314
26315         Reference some new glibc functions.
26316         * doc/glibc-functions/accept4.texi: New file.
26317         * doc/glibc-functions/dup3.texi: New file.
26318         * doc/glibc-functions/mkostemp.texi: New file.
26319         * doc/glibc-functions/pipe2.texi: New file.
26320         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
26321         (Glibc sys/socket.h): Refer to accept4.
26322         (Glibc unistd.h): Refer to dup3, pipe2.
26323         Reported by Eric Blake.
26324
26325 2009-08-22  Jim Meyering  <meyering@redhat.com>
26326             Bruno Haible  <bruno@clisp.org>
26327
26328         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
26329         This makes it so packages using automake-1.11's silent-rules option
26330         can print e.g., a single "GEN    configmake.h" line, rather than
26331         the 30+ statements that perform the job.  If you want to see the
26332         actual commands, you can still run "make V=1".
26333         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
26334         so that make output is abbreviated when those variables are defined
26335         appropriately.
26336         * modules/argz: Likewise.
26337         * modules/arpa_inet: Likewise.
26338         * modules/byteswap: Likewise.
26339         * modules/configmake: Likewise.
26340         * modules/dirent: Likewise.
26341         * modules/errno: Likewise.
26342         * modules/fcntl: Likewise.
26343         * modules/float: Likewise.
26344         * modules/fnmatch: Likewise.
26345         * modules/getopt-posix: Likewise.
26346         * modules/glob: Likewise.
26347         * modules/iconv_open: Likewise.
26348         * modules/inttypes: Likewise.
26349         * modules/localcharset: Likewise.
26350         * modules/locale: Likewise.
26351         * modules/math: Likewise.
26352         * modules/netdb: Likewise.
26353         * modules/netinet_in: Likewise.
26354         * modules/poll: Likewise.
26355         * modules/posix_spawnp-tests: Likewise.
26356         * modules/sched: Likewise.
26357         * modules/search: Likewise.
26358         * modules/selinux-h: Likewise.
26359         * modules/signal: Likewise.
26360         * modules/spawn: Likewise.
26361         * modules/stdarg: Likewise.
26362         * modules/stdbool: Likewise.
26363         * modules/stddef: Likewise.
26364         * modules/stdint: Likewise.
26365         * modules/stdio: Likewise.
26366         * modules/stdlib: Likewise.
26367         * modules/string: Likewise.
26368         * modules/strings: Likewise.
26369         * modules/sys_file: Likewise.
26370         * modules/sys_ioctl: Likewise.
26371         * modules/sys_select: Likewise.
26372         * modules/sys_socket: Likewise.
26373         * modules/sys_stat: Likewise.
26374         * modules/sys_time: Likewise.
26375         * modules/sys_times: Likewise.
26376         * modules/sys_utsname: Likewise.
26377         * modules/sys_wait: Likewise.
26378         * modules/sysexits: Likewise.
26379         * modules/time: Likewise.
26380         * modules/unistd: Likewise.
26381         * modules/wchar: Likewise.
26382         * modules/wctype: Likewise.
26383
26384 2009-08-22  Jim Meyering  <meyering@redhat.com>
26385
26386         announce-gen: detect write failure
26387         * build-aux/announce-gen: Add Coda at end.
26388         Remove equivalent-but-more-verbose block at top.
26389
26390 2009-08-19  Akim Demaille  <demaille@gostai.com>
26391
26392         bootstrap: --help to stdout.
26393         * bootstrap (usage): Don't send --help to stderr.
26394         Use a here doc instead of a long string.
26395
26396 2009-08-21  Eric Blake  <ebb9@byu.net>
26397
26398         test-popen-safer: split from test-popen
26399         * tests/test-popen.c (main): Move...
26400         * tests/test-popen.h: ...into new file.
26401         * tests/test-popen-safer2.c: New file.
26402         * modules/popen-tests (Files): Add test-popen.h.
26403         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
26404         Suggested by Bruno Haible.
26405
26406         test-fcntl-safer: split from test-open
26407         * tests/test-open.c (main): Move...
26408         * tests/test-open.h: ...into new file.
26409         * tests/test-fcntl-safer.c: New file.
26410         * modules/open-tests (Files): Add test-open.h.
26411         * modules/fcntl-safer-tests: New file.
26412         Suggested by Bruno Haible.
26413
26414         test-fopen-safer: split from test-fopen
26415         * tests/test-fopen.c (main): Move...
26416         * tests/test-fopen.h: ...into new file.
26417         * tests/test-fopen-safer.c: New file.
26418         * modules/fopen-tests (Files): Add test-fopen.h.
26419         * modules/fopen-safer-tests: New file.
26420         Suggested by Bruno Haible.
26421
26422 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
26423
26424         popen-safer: test O_CLOEXEC at run-time.
26425         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
26426
26427 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
26428
26429         fcntl: move more flags to the header
26430         * lib/cloexec.c: Do not define FD_CLOEXEC here.
26431         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
26432         * lib/fcntl.in.h: Do both things here.
26433
26434 2009-08-21  Jim Meyering  <meyering@redhat.com>
26435
26436         consistently remove $@-t before redirecting to it
26437         * modules/argz: Remove $@-t and $@ before redirecting to the former.
26438         * modules/alloca-opt: Likewise.
26439         * modules/byteswap: Likewise.
26440         * modules/fnmatch: Likewise.
26441         * modules/getopt-posix: Likewise.
26442         * modules/glob: Likewise.
26443         * modules/poll: Likewise.
26444         * modules/posix_spawnp-tests: Likewise.
26445         * modules/sys_socket: Likewise.
26446         * modules/sysexits: Likewise.
26447
26448 2009-08-21  Eric Blake  <ebb9@byu.net>
26449
26450         popen: simplify access to original popen
26451         * lib/popen.c (rpl_popen): No need to worry about popen being a
26452         macro.
26453         Reported by Bruno Haible.
26454
26455 2009-08-20  Eric Blake  <ebb9@byu.net>
26456
26457         build: avoid some compiler warnings
26458         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
26459         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
26460         type.
26461         (new_exclude_segment, excluded_file_pattern_p)
26462         (excluded_file_name_p): Reduce scope.
26463         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
26464         old-style declaration.
26465
26466 2009-08-20  Simon Josefsson  <simon@josefsson.org>
26467
26468         * tests/test-exclude1.sh: Handle Windows EOL.
26469         * tests/test-exclude2.sh: Likewise.
26470         * tests/test-exclude3.sh: Likewise.
26471         * tests/test-exclude4.sh: Likewise.
26472         * tests/test-exclude5.sh: Likewise.
26473         * tests/test-exclude6.sh: Likewise.
26474         * tests/test-exclude7.sh: Likewise.
26475
26476 2009-08-19  Akim Demaille  <demaille@gostai.com>
26477
26478         bootstrap: find sha1sum when named gsha1sum.
26479         * bootstrap (find_tool): New.
26480         ($SHA1SUM): New.
26481         Use it.
26482
26483 2009-08-20  Jim Meyering  <meyering@redhat.com>
26484
26485         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
26486         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
26487         expression that converts "." in a file name to "\." in the resulting
26488         regexp.  Start with a dummy statement, so that prior shell variable
26489         definitions are expanded portably.  Reported by Simon Josefsson.
26490
26491 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
26492
26493         Fix polling for writeability of a screen buffer.
26494         * lib/poll.c: Distinguish input and screen buffers for the
26495         Win32 implementation.
26496         * lib/select.c: Likewise.
26497
26498 2009-08-19  Eric Blake  <ebb9@byu.net>
26499
26500         popen-safer: prevent popen from clobbering std descriptors
26501         * modules/popen-safer: New file.
26502         * lib/popen-safer.c: Likewise.
26503         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
26504         * lib/stdio--.h (popen): Provide override.
26505         * lib/stdio-safer.h (popen_safer): Provide declaration.
26506         * tests/test-popen.c (includes): Partially test this.
26507         * modules/popen-safer-tests: New file, for more tests.
26508         * tests/test-popen-safer.c: Likewise.
26509         * MODULES.html.sh (file stream based Input/Output): Mention it.
26510
26511         tests: test some of the *-safer modules
26512         * modules/fopen-safer (Depends-on): Add fopen.
26513         * modules/fcntl-safer (Depends-on): Add fcntl.
26514         * modules/stdlib-safer (Depends-on): Add stdlib.
26515         (configure.ac): Set indicator.
26516         * modules/unistd-safer (configure.ac): Likewise.
26517         * modules/tmpfile-safer (configure.ac): Likewise.
26518         (Depends-on): Add tmpfile.
26519         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
26520         active.
26521         * tests/test-fopen.c (includes): Test safer versions when they are
26522         in use.
26523         * tests/test-open.c (includes): Likewise.
26524
26525         popen: fix cygwin 1.5 bug when stdin closed
26526         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
26527         * modules/popen: New file.
26528         * modules/popen-tests: Likewise.
26529         * tests/test-popen.c: Likewise.
26530         * m4/popen.m4: Likewise.
26531         * lib/popen.c: Likewise.
26532         * lib/stdio.in.h (popen): New declaration.
26533         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
26534         * modules/stdio (Makefile.am): Likewise.
26535         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
26536
26537 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
26538
26539         maint.mk: give full control over update-copyright exclusions
26540         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
26541         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
26542         (update-copyright): Don't force inclusion of top-level
26543         ChangeLog.  Don't force exclusion of all COPYING files, but make
26544         them the default exclusion instead.
26545
26546 2009-08-16  Bruno Haible  <bruno@clisp.org>
26547
26548         Fix test failures on Solaris 10.
26549         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
26550         tests when Solaris iconv() is used.
26551         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
26552         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
26553         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
26554         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
26555         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
26556
26557 2009-08-16  Bruno Haible  <bruno@clisp.org>
26558
26559         Fix test failures on Solaris 10.
26560         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
26561         'tr' program and pass it as first argument.
26562         * tests/test-pipe-filter-gi1.sh: Likewise.
26563         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
26564         program as first argument.
26565         * tests/test-pipe-filter-gi1.c (main): Likewise.
26566
26567 2009-08-16  Eric Blake  <ebb9@byu.net>
26568
26569         fpurge: fix previous commits
26570         * modules/fpurge (Makefile.am): Make replacement conditional,
26571         partially reverting 2007-04-29 change; missed in previous
26572         attempt.
26573         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
26574         is missing.
26575
26576 2009-08-16  Bruno Haible  <bruno@clisp.org>
26577
26578         Clarify fpurge's effect on the file position.
26579         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
26580         * tests/test-fpurge.c (main): Make a second pass for checking the file
26581         position.
26582
26583 2009-08-16  Bruno Haible  <bruno@clisp.org>
26584
26585         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
26586         declaration of fpurge is missing.
26587         * tests/test-fpurge.c (main): Check that the file has not more contents
26588         than expected. Close the file before removing it.
26589
26590 2009-08-15  Eric Blake  <ebb9@byu.net>
26591
26592         fpurge: don't wrap working cygwin implementation
26593         * lib/fpurge.c (fpurge): Fix comment typo.
26594         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
26595         1.7 to avoid replacement.
26596         * tests/test-fpurge.c (main): Enhance test.
26597
26598 2009-08-15  Eric Blake  <ebb9@byu.net>
26599         and Jim Meyering  <meyering@redhat.com>
26600
26601         test-update-copyright: skip if perl is insufficient
26602         * tests/test-update-copyright.sh: Failure to run maintainer tool
26603         should not cause testsuite failure on cygwin 1.5.
26604
26605 2009-08-14  Eric Blake  <ebb9@byu.net>
26606
26607         doc: mention more functions added in cygwin 1.7.0
26608         * doc/posix-headers/limits.texi (limits.h): Update for recent
26609         cygwin additions.
26610         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
26611         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
26612         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
26613         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
26614         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
26615
26616 2009-08-14  Eric Blake  <ebb9@byu.net>
26617
26618         maint.mk: simplify update-copyright rule
26619         * top/maint.mk (update-copyright-local): Delete, and document how
26620         to do it in cfg.mk instead.
26621         (update-copyright-exclude-regexp): Delete, and document how to do
26622         it in .x-update-copyright instead.
26623         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
26624         exclude ChangeLog.
26625
26626 2009-08-14  Bruno Haible  <bruno@clisp.org>
26627
26628         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
26629
26630 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
26631
26632         maint.mk: support update-copyright-env
26633         * top/maint.mk (update-copyright-env): Define place-holder.
26634         (update-copyright): Expand $(update-copyright-env) before
26635         invoking update-copyright.
26636
26637 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
26638
26639         update-copyright: implement forced reformatting
26640         * build-aux/update-copyright: Implement and document
26641         UPDATE_COPYRIGHT_FORCE.
26642         * tests/test-update-copyright.sh: Test it.
26643
26644 2009-08-14  Eric Blake  <ebb9@byu.net>
26645         and Bruno Haible  <bruno@clisp.org>
26646
26647         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
26648         * tests/test-locale.c: Revert previous patch related to NULL.
26649         * tests/test-stdio.c: Likewise.
26650         * tests/test-stdlib.c: Likewise.
26651         * tests/test-string.c: Likewise.
26652         * tests/test-unistd.c: Likewise.
26653         * modules/time-tests (Depends-on): Add verify.
26654         * modules/wchar-tests (Depends-on): Likewise.
26655         * tests/test-time.c: Test for NULL compliance.
26656         * tests/test-wchar.c: Likewise.
26657         * modules/locale (Depends-on): Add stddef.
26658         * modules/stdio (Depends-on): Likewise.
26659         * modules/stdlib (Depends-on): Likewise.
26660         * modules/string (Depends-on): Likewise.
26661         * modules/time (Depends-on): Likewise.
26662         * modules/unistd (Depends-on): Likewise.
26663         * modules/wchar (Depends-on): Likewise.
26664         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
26665         * lib/stdlib.in.h (includes): Likewise.
26666         * lib/string.in.h (includes): Likewise.
26667         * lib/time.in.h (includes): Likewise.
26668         * lib/unistd.in.h (includes): Likewise.
26669         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
26670         replaced.
26671         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
26672         * m4/stddef_h.m4: New file.
26673         * modules/stddef: Likewise.
26674         * lib/stddef.in.h: Likewise.
26675         * modules/stddef-tests: Likewise.
26676         * tests/test-stddef.c: Likewise.
26677         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
26678         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
26679         * doc/posix-headers/locale.texi (locale.h): Likewise.
26680         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
26681         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26682         * doc/posix-headers/string.texi (string.h): Likewise.
26683         * doc/posix-headers/time.texi (time.h): Likewise.
26684         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
26685         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
26686
26687 2009-08-14  Eric Blake  <ebb9@byu.net>
26688
26689         doc: improve git diff of texinfo files
26690         * .gitattributes: Add rule for *.texi files, with hint on how to
26691         use it.
26692         Copied from m4, and based on a report by Bruno Haible.
26693
26694 2009-08-14  Bruno Haible  <bruno@clisp.org>
26695
26696         Disable multithread support by default on Cygwin 1.5.x for real.
26697         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
26698
26699 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
26700
26701         update-copyright: much ado about intervals
26702         * build-aux/update-copyright: Implement and document
26703         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
26704         of copyright year intervals.
26705         Also, document UPDATE_COPYRIGHT_YEAR.
26706         * tests/test-update-copyright.sh: Test it.
26707
26708         update-copyright: convert 2-digit to 4-digit years
26709         * build-aux/update-copyright: Implement and document.
26710         * tests/test-update-copyright.sh: Update.
26711
26712 2009-08-14  Jim Meyering  <meyering@redhat.com>
26713
26714         test-exclude: avoid coreutils "make check" failure
26715         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
26716         just as in test-argmatch.c.
26717
26718 2009-08-13  Eric Blake  <ebb9@byu.net>
26719
26720         test-dup2: fix bad assumption
26721         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
26722         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
26723
26724         test-version-etc: fix CRLF portability issue
26725         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
26726         recognize \r.
26727         * tests/test-argp-version-etc-1.sh: Likewise.
26728
26729         getopt: update client modules
26730         * modules/argp (Depends-on): Use getopt-gnu.
26731         * modules/git-merge-changelog (Depends-on): Likewise.
26732         * modules/long-options (Depends-on): Likewise.
26733         * modules/xstrtol (Depends-on): Likewise.
26734
26735 2009-08-13  Simon Josefsson  <simon@josefsson.org>
26736
26737         * tests/test-version-etc.sh: Don't fail on different
26738         project/version.  Don't fail on CRLF differences.  Rewrite to use
26739         multiple -e instead of multiple sed forks, suggested by Eric Blake
26740         <ebb9@byu.net>.
26741         * tests/test-argp-version-etc-1.sh: Likewise.
26742
26743 2009-08-13  Simon Josefsson  <simon@josefsson.org>
26744
26745         * tests/test-version-etc.sh: Don't fail on different
26746         project/version.
26747
26748 2009-08-12  Bruno Haible  <bruno@clisp.org>
26749
26750         Tests for modules 'getopt-posix', 'getopt-gnu'.
26751         * modules/getopt-posix-tests: New file.
26752         * tests/test-getopt.c: New file.
26753         * tests/test-getopt.h: New file.
26754         * tests/test-getopt_long.h: New file.
26755
26756         New modules 'getopt-posix', 'getopt-gnu'.
26757         * modules/getopt-gnu: New file, renamed from modules/getopt.
26758         * modules/getopt-posix: New file.
26759         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
26760         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
26761         (gl_GETOPT): Remove macro.
26762         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
26763         Disable the test against BSD systems that declare optreset. Test
26764         against mingw bug. Test against lack of support of optional arguments
26765         on many platforms.
26766         * doc/glibc-headers/getopt.texi: Update module name and list of
26767         relevant platforms.
26768         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
26769         'getopt-gnu' and more portability problems.
26770         * NEWS: Mention the changes.
26771
26772 2009-08-12  Bruno Haible  <bruno@clisp.org>
26773
26774         Ensure that optarg etc. get declared by <unistd.h>.
26775         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
26776         AC_USE_SYSTEM_EXTENSIONS.
26777         * modules/getopt (Depends-on): Add 'extensions'.
26778
26779 2009-08-12  Bruno Haible  <bruno@clisp.org>
26780
26781         Avoid test link errors.
26782         * modules/pipe-filter-ii-tests (Makefile.am): Define
26783         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
26784         * modules/pipe-filter-gi-tests (Makefile.am): Define
26785         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
26786         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26787
26788 2009-08-12  Bruno Haible  <bruno@clisp.org>
26789
26790         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
26791         gl_GETOPT_SUBSTITUTE before.
26792         (gl_GETOPT): Use it.
26793         * m4/argp.m4 (gl_ARGP): Update.
26794         Reported by Sergey Poznyakoff.
26795
26796         * m4/getopt.m4: Reorder macros.
26797         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
26798         (gl_GETOPT_SUBSTITUTE): Remove macro.
26799
26800 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26801
26802         Minor improvement in gitlog-to-changelog
26803
26804         * build-aux/gitlog-to-changelog: New option `--format' makes
26805         output format string configurable.
26806
26807 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26808
26809         Optimize exclude: use hash tables for non-wildcard patterns.
26810
26811         * lib/exclude.c: Include hash.h and mbuiter.h
26812         (struct exclude_pattern, exclude_segment): New data types.
26813         (struct exclude): Rewrite.
26814         (fnmatch_pattern_has_wildcards): New function.
26815         (new_exclude_segment, free_exclude_segment): New functions.
26816         (excluded_file_pattern_p, excluded_file_name_p): New functions.
26817         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
26818         * lib/exclude.h (is_fnmatch_pattern): New prototype.
26819         * modules/exclude: Depend on hash and mbuiter.
26820
26821         * modules/exclude-tests: New file.
26822         * tests/test-exclude.c: New file.
26823         * tests/test-exclude1.sh: New file.
26824         * tests/test-exclude2.sh: New file.
26825         * tests/test-exclude3.sh: New file.
26826         * tests/test-exclude4.sh: New file.
26827         * tests/test-exclude5.sh: New file.
26828         * tests/test-exclude6.sh: New file.
26829         * tests/test-exclude7.sh: New file.
26830
26831 2009-08-12  Bruno Haible  <bruno@clisp.org>
26832
26833         Ensure that getopt() gets declared by <unistd.h>.
26834         * lib/unistd.in.h: Conditionally include getopt.h.
26835         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
26836         Set GNULIB_UNISTD_H_GETOPT.
26837         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26838         GNULIB_UNISTD_H_GETOPT.
26839         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
26840
26841 2009-08-12  Bruno Haible  <bruno@clisp.org>
26842
26843         Clarify logic.
26844         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
26845         gl_replace_getopt instead of GETOPT_H.
26846
26847 2009-08-12  Bruno Haible  <bruno@clisp.org>
26848
26849         * m4/getopt.m4: Add comments.
26850
26851 2009-08-12  Bruno Haible  <bruno@clisp.org>
26852
26853         Disable multithread support by default on Cygwin 1.5.x.
26854         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
26855         set gl_use_threads=no if not specified otherwise.
26856
26857 2009-08-11  Bruno Haible  <bruno@clisp.org>
26858
26859         Avoid compilation error on NetBSD 5.0.
26860         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
26861         * tests/test-stdio.c: Likewise.
26862         * tests/test-stdlib.c: Likewise.
26863         * tests/test-string.c: Likewise.
26864         * tests/test-unistd.c: Likewise.
26865         Reported by Greg Troxel <gdt@ir.bbn.com>
26866         at <https://savannah.gnu.org/support/?106973>.
26867
26868 2009-08-11  Bruno Haible  <bruno@clisp.org>
26869
26870         * modules/dup2-tests (Depends-on): Remove close.
26871
26872         Undo 2009-07-19 commit.
26873         * modules/acl-tests (Depends-on): Remove close.
26874         * modules/binary-io-tests (Depends-on): Likewise.
26875         * modules/closein-tests (Depends-on): Likewise.
26876         * modules/flock-tests (Depends-on): Likewise.
26877         * modules/fsync-tests (Depends-on): Likewise.
26878         * modules/lseek-tests (Depends-on): Likewise.
26879         * modules/pipe-tests (Depends-on): Likewise.
26880         * modules/posix_spawn-tests (Depends-on): Likewise.
26881         * modules/posix_spawnp-tests (Depends-on): Likewise.
26882         * modules/stat-time-tests (Depends-on): Likewise.
26883         * modules/yesno-tests (Depends-on): Likewise.
26884
26885 2009-08-10  Bruno Haible  <bruno@clisp.org>
26886
26887         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
26888
26889 2009-08-10  Bruno Haible  <bruno@clisp.org>
26890
26891         Fix a gcc warning.
26892         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
26893
26894 2009-08-10  Bruno Haible  <bruno@clisp.org>
26895
26896         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
26897         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
26898         not only the first time.
26899         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
26900         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
26901         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
26902         is 1, not only the the first time.
26903
26904 2009-08-10  Bruno Haible  <bruno@clisp.org>
26905
26906         Make it possible to use module 'gethostname' without module 'close'.
26907         * lib/unistd.in.h (close): Evoke a link error only if
26908         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
26909         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26910         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26911         * modules/unistd (Makefile.am): Substitute
26912         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26913         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
26914         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
26915         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
26916         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26917         * modules/sys_ioctl (Makefile.am): Substitute
26918         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26919         * modules/socket (configure.ac): On native Windows, set
26920         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
26921         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26922         Reported by Sam Steingold <sds@gnu.org>.
26923
26924 2009-08-10  Bruno Haible  <bruno@clisp.org>
26925
26926         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
26927         * modules/ioctl (configure.ac): Likewise.
26928
26929 2009-08-10  Bruno Haible  <bruno@clisp.org>
26930
26931         Avoid collision between gnulib wrapper and libintl wrapper.
26932         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
26933         already defined in intl/printf.c.
26934         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
26935         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
26936
26937 2009-08-09  Bruno Haible  <bruno@clisp.org>
26938
26939         Make <sys/select.h> really self-contained, also on Solaris 10.
26940         * lib/sys_select.in.h: Include <string.h>.
26941         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
26942         Solaris 10 problem.
26943         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
26944         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
26945         Reported by Jim Meyering.
26946
26947 2009-08-09  Bruno Haible  <bruno@clisp.org>
26948
26949         Avoid warnings from 'aclocal' that are due to a use of macro name
26950         AM_XGETTEXT_OPTION that is not defined in automake.
26951         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
26952         automake.
26953         * modules/error (configure.ac): Likewise.
26954         * modules/propername (configure.ac): Likewise.
26955         * modules/vasprintf (configure.ac): Likewise.
26956         * modules/verror (configure.ac): Likewise.
26957         * modules/xprintf (configure.ac): Likewise.
26958         * modules/xvasprintf (configure.ac): Likewise.
26959
26960 2009-08-08  Bruno Haible  <bruno@clisp.org>
26961
26962         Avoid compilation error in C++ mode.
26963         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
26964         Reported by Sam Steingold <sds@gnu.org>.
26965
26966 2009-08-08  Bruno Haible  <bruno@clisp.org>
26967
26968         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
26969         for the various Unix platforms.
26970         * doc/posix-headers/limits.texi: Update platforms list regarding
26971         HOST_NAME_MAX.
26972         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26973
26974 2009-08-07  Jim Meyering  <meyering@redhat.com>
26975
26976         selinux-at: fix typo in a comment
26977         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
26978         Spotted by Paolo Bonzini.
26979
26980         selinux-at: remove redundant m4 code, add documentation
26981         * modules/selinux-at (configure.ac): Remove redundant code.
26982         LIB_SELINUX is already set via the dependent module, selinux-h.
26983         (Include): Add quotes around selinux-at.h.
26984         * lib/selinux-at.h: Add documentation.
26985         Reported by Bruno Haible in
26986         http://marc.info/?l=gnulib-bug&m=124958988300749
26987
26988 2009-08-07  Bruno Haible  <bruno@clisp.org>
26989
26990         Avoid link error on MacOS X 10.3 and 10.4.
26991         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
26992         on non-ELF systems.
26993         * lib/argp-pv.c (argp_program_version): Likewise.
26994         Reported by Simon Josefsson.
26995
26996 2009-08-07  Simon Josefsson  <simon@josefsson.org>
26997
26998         * tests/test-version-etc.sh: Use $EXEEXT.
26999
27000 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
27001
27002         update-copyright: update documentation to point to maint.mk
27003         * build-aux/update-copyright: Here.
27004
27005 2009-08-06  Jim Meyering  <meyering@redhat.com>
27006
27007         maint.mk: support update-copyright-local
27008         * top/maint.mk (update-copyright-local): Define place-holder.
27009         (update-copyright): Depend on $(update-copyright-local).
27010
27011 2009-08-06  Jim Meyering  <meyering@redhat.com>
27012
27013         selinux-at: new module
27014         Initially written for coreutils, this module will soon be
27015         used by findutils, too.
27016         * MODULES.html.sh [Misc]: Add selinux-at.
27017         * lib/selinux-at.h: New file, from coreutils.
27018         * lib/selinux-at.c: Likewise.
27019         * modules/selinux-at: Likewise.
27020         (License): Change from LGPL to GPL, since it depends
27021         on the GPL'd openat module.
27022
27023         doc: update README
27024         * README: Remove references to cogito.
27025         Remove cvs-repo-updating instructions from 2007.
27026         Don't imply that CVS is better if you have limited disk space.
27027
27028 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27029
27030         update-copyright: support C-style comments
27031         * build-aux/update-copyright: Implement and document.
27032         * tests/test-update-copyright.sh: Test.
27033
27034 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27035
27036         update-copyright: support omitted "(C)"
27037         * build-aux/update-copyright: Implement and document.  Also,
27038         allow variable whitespace before "(C)".
27039         * tests/test-update-copyright.sh: Test.
27040
27041 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27042
27043         update-copyright: don't trip on non-FSF copyright statements
27044         * build-aux/update-copyright: Fix so that the first correctly
27045         formatted FSF copyright statement is recognized no matter what
27046         appears before it.  Update documentation.
27047         * tests/test-update-copyright.sh: Test that.
27048
27049 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27050
27051         update-copyright: clean up code a little
27052         * build-aux/update-copyright: Append "_re" to the name of any
27053         variable holding a regular expression.
27054         Replace "old" and "new" with "stmt" in variable names.
27055         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
27056         handled correctly.
27057         Format code more consistently.
27058
27059 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27060
27061         update-copyright-tests: improve portability
27062         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
27063         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
27064
27065 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
27066
27067         update-copyright: support @copyright{} and &copy;
27068         * build-aux/update-copyright: Implement and document.
27069         * tests/test-update-copyright.sh: Test.
27070
27071 2009-08-04  Jim Meyering  <meyering@redhat.com>
27072
27073         update-copyright-tests: correctly test EOL=\r\n handling
27074         * tests/test-update-copyright.sh: Put \r at the end of some lines
27075         for the dos-eol tests.  Based on a patch by Joel E. Denny.
27076
27077         maint.mk: make update-copyright exclusion list more configurable
27078         * top/maint.mk (update-copyright): Default to excluding COPYING,
27079         but allow an override, in case someone does want to update that file.
27080
27081         maint.mk: don't update copyright date in COPYING
27082         * top/maint.mk (update-copyright): Exclude COPYING.
27083
27084         maint.mk: add a copyright-updating rule
27085         * top/maint.mk (update-copyright): New rule.
27086         Derived from coreutils/Makefile.am.
27087
27088         update-copyright: rename some variables
27089         * build-aux/update-copyright: Rename a few variables for clarity.
27090         Tweak syntax.  List Joel E. Denny as coauthor.
27091
27092 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
27093
27094         update-copyright: fix bug for 2-digit last year and add tests
27095         * build-aux/update-copyright: Fix bug.
27096         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
27097         specified.
27098         * modules/update-copyright-tests: New
27099         * tests/test-update-copyright.sh: New.
27100
27101 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27102
27103         update-copyright: handle leading tabs in line prefix
27104         * build-aux/update-copyright: Count leading tabs as 8 spaces
27105         when computing margin.  This helps with the formatting of
27106         ChangeLogs, for example.
27107         Fix documentation a little.
27108
27109 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27110
27111         update-copyright: support EOL=\r\n
27112         * build-aux/update-copyright: Implement that.
27113
27114 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27115
27116         update-copyright: automatically format copyright statements
27117         * build-aux/update-copyright: Implement that.
27118         Also, be a little more predictable and safer by always failing
27119         when the full copyright format is not perfectly recognized as an
27120         unbroken whole.  Discussed at
27121         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
27122         Rewrite documentation.
27123
27124 2009-08-03  Bruno Haible  <bruno@clisp.org>
27125
27126         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
27127
27128 2009-08-02  Bruno Haible  <bruno@clisp.org>
27129
27130         Tests for module 'uname'.
27131         * modules/uname-tests: New file.
27132         * tests/test-uname.c: New file.
27133
27134         New module 'uname'.
27135         * lib/uname.c: New file.
27136         * m4/uname.m4: New file.
27137         * modules/uname: New file.
27138         * doc/posix-functions/uname.texi: Mention the new module.
27139
27140 2009-08-02  Bruno Haible  <bruno@clisp.org>
27141
27142         Tests for module 'sys_utsname'.
27143         * modules/sys_utsname-tests: New file.
27144         * tests/test-sys_utsname.c: New file.
27145
27146         New module 'sys_utsname'.
27147         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
27148         * m4/sys_utsname_h.m4: New file.
27149         * modules/sys_utsname: New file.
27150         * doc/posix-headers/sys_utsname.texi: Mention the new module.
27151
27152 2009-08-02  Bruno Haible  <bruno@clisp.org>
27153
27154         Implicitly initialize the sockets library.
27155         * lib/gethostname.c: Include sockets.h.
27156         (rpl_gethostname): Invoke gl_sockets_startup.
27157         * lib/socket.c: Include sockets.h.
27158         (rpl_socket): Invoke gl_sockets_startup.
27159         * modules/gethostname (Depends-on): Add sockets.
27160         * modules/socket (Depends-on): Likewise.
27161         * tests/test-poll.c: Don't include sockets.h.
27162         (main): Don't invoke gl_sockets_startup.
27163         * tests/test-select.c: Don't include sockets.h.
27164         (main): Don't invoke gl_sockets_startup.
27165
27166 2009-08-02  Bruno Haible  <bruno@clisp.org>
27167
27168         Allow multiple calls to gl_sockets_startup.
27169         * lib/sockets.c (initialized_sockets_version): New variable.
27170         (gl_sockets_startup): Do nothing if already called for this or a higher
27171         version.
27172         (gl_sockets_cleanup): Reset initialized_sockets_version.
27173
27174 2009-08-03  Simon Josefsson  <simon@josefsson.org>
27175
27176         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
27177         different project/version.
27178
27179 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
27180             Bruno Haible  <bruno@clisp.org>
27181
27182         Tests for module 'pipe-filter-gi'.
27183         * modules/pipe-filter-gi-tests: New file.
27184         * tests/test-pipe-filter-gi1.sh: New file.
27185         * tests/test-pipe-filter-gi1.c: New file.
27186         * tests/test-pipe-filter-gi2.sh: New file.
27187         * tests/test-pipe-filter-gi2-main.c: New file.
27188         * tests/test-pipe-filter-gi2-child.c: New file.
27189
27190         New module 'pipe-filter-gi'.
27191         * lib/pipe-filter-gi.c: New file.
27192         * modules/pipe-filter-gi: New file.
27193
27194 2009-08-02  Bruno Haible  <bruno@clisp.org>
27195             Paolo Bonzini  <bonzini@gnu.org>
27196
27197         Tests for module 'pipe-filter-ii'.
27198         * modules/pipe-filter-ii-tests: New file.
27199         * tests/test-pipe-filter-ii1.sh: New file.
27200         * tests/test-pipe-filter-ii1.c: New file.
27201         * tests/test-pipe-filter-ii2.sh: New file.
27202         * tests/test-pipe-filter-ii2-main.c: New file.
27203         * tests/test-pipe-filter-ii2-child.c: New file.
27204
27205         New module 'pipe-filter-ii'.
27206         * lib/pipe-filter.h: New file.
27207         * lib/pipe-filter-ii.c: New file.
27208         * lib/pipe-filter-aux.h: New file.
27209         * modules/pipe-filter-ii: New file.
27210
27211 2009-08-02  Simon Josefsson  <simon@josefsson.org>
27212
27213         * lib/gc-libgcrypt.c: Change copyright to FSF.
27214         * lib/gc-gnulib.c: Likewise.
27215
27216 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
27217
27218         * lib/gethostname.c: Include limits.h.
27219
27220 2009-08-02  Simon Josefsson  <simon@josefsson.org>
27221             Bruno Haible  <bruno@clisp.org>
27222
27223         Ensure HOST_NAME_MAX as part of the gethostname module.
27224         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
27225         define also HOST_NAME_MAX.
27226         * tests/test-gethostname.c: Include <limits.h>.
27227         (main): Check also HOST_NAME_MAX.
27228         * doc/posix-headers/limits.texi: Document the mingw problem.
27229
27230 2009-08-02  Bruno Haible  <bruno@clisp.org>
27231
27232         * lib/gethostname.c (gethostname): Fix handling of large len argument.
27233         Add comments.
27234
27235 2009-03-31  Simon Josefsson  <simon@josefsson.org>
27236
27237         * lib/gethostname.c: Add Windows wrapper.
27238         * m4/gethostname.m4: Look for gethostname in -lws2_32.
27239         * modules/gethostname: Depend on sys_socket & errno, for also
27240         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
27241         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
27242
27243 2009-07-31  Jim Meyering  <meyering@redhat.com>
27244
27245         getloadavg: fix symbol name in comment
27246         * lib/getloadavg.c: Correct a typo I introduced when adding
27247         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
27248         Matt Kraai spotted the problem.
27249
27250 2009-07-29  Matt Kraai  <mkraai@beckman.com>
27251
27252         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
27253         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
27254         code also if ! defined N_NAME_POINTER.
27255         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
27256         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
27257         but the n_name member is a 12-byte array.
27258
27259 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
27260
27261         update-copyright: generalize comment handling
27262         * build-aux/update-copyright: Handle copyright statements
27263         within more comment styles.
27264         Document usage.
27265         Report any file with an external copyright holder or parse failure.
27266
27267 2009-07-29  Jim Meyering  <meyering@redhat.com>
27268
27269         mktime: correct setting of REPLACE_MKTIME
27270         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
27271
27272         update-copyright: new module
27273         * modules/update-copyright: New file.
27274         * build-aux/update-copyright: New file.
27275         * MODULES.html.sh (maint+release support): Add update-copyright.
27276
27277 2009-07-27  Bruno Haible  <bruno@clisp.org>
27278
27279         Fix compilation error when <ctime> is used and mktime is replaced.
27280         * lib/time.in.h (mktime): New declaration.
27281         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
27282         REPLACE_MKTIME instead of defining mktime in config.h.
27283         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
27284         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
27285         Reported by Ross McFarland <rwmcfa1@neces.com>.
27286
27287 2009-07-27  Bruno Haible  <bruno@clisp.org>
27288
27289         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
27290         Reported by Matt Kraai <mkraai@beckman.com>.
27291
27292 2009-07-25  Jim Meyering  <meyering@redhat.com>
27293
27294         maint.mk: avoid warnings about missing files
27295         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
27296         diagnostic when .prev-version does not exist.
27297         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
27298         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
27299         nonexistent cfg.mk.
27300         Suggestions from Simon Josefsson.
27301
27302 2009-07-25  Bruno Haible  <bruno@clisp.org>
27303
27304         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
27305         defined as macros. Needed on QNX 6.4.1.
27306         Reported by Matt Kraai <mkraai@beckman.com>.
27307
27308 2009-07-23  Jim Meyering  <meyering@redhat.com>
27309
27310         maint.mk: invoke "make dist" with a working value of XZ_OPT
27311         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
27312
27313 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
27314
27315         Make fseeko.c compile on QNX.
27316         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
27317
27318 2009-07-22  Peter Simons  <simons@cryp.to>
27319
27320         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
27321         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
27322         * lib/md4.h: Likewise.
27323         * lib/md5.h: Likewise.
27324         * lib/sha1.h: Likewise.
27325         * lib/sha256.h: Likewise.
27326         * lib/sha512.h: Likewise.
27327
27328         tests-sha1: don't assign literal string to 'char *' variable
27329         * tests/test-sha1.c (main): Declare locals with "const" to match
27330         attributes of the right hand side.
27331
27332 2009-07-21  Eric Blake  <ebb9@byu.net>
27333
27334         dup2: fix more mingw problems
27335         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
27336         fd to itself.
27337         * doc/posix-functions/dup2.texi (dup2): Document the bug.
27338         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
27339         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
27340         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
27341         care of mingw bugs.
27342
27343 2009-07-21  Jim Meyering  <meyering@redhat.com>
27344
27345         vc-list-files: avoid failure when /bin/sh is dash
27346         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
27347         On some Debian based systems, /bin/sh is a symlink to dash, and running
27348         this command would omit the "/" following each 'tests' prefix:
27349           dash -x build-aux/vc-list-files -C . tests
27350         That is because bash and dash work differently:
27351           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
27352           bash ok
27353           dash odd
27354
27355 2009-07-21  Eric Blake  <ebb9@byu.net>
27356
27357         dup2-tests: test previous patch
27358         * modules/dup2-tests: New file.
27359         * tests/test-dup2.c: Likewise.
27360         * tests/test-open.c (main): Avoid unspecified behavior.
27361         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
27362         test.
27363
27364         dup2: work around mingw and cygwin 1.5 bug
27365         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
27366         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27367         * modules/unistd (Makefile.am): Substitute it.
27368         * lib/unistd.in.h (dup2): Declare the replacement.
27369         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
27370         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
27371         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
27372         * modules/execute (Depends-on): Add dup2.
27373         * modules/fseterr (Depends-on): Likewise.
27374         * modules/pipe (Depends-on): Likewise.
27375         * modules/posix_spawn-internal (Depends-on): Likewise.
27376
27377 2009-07-21  Bruno Haible  <bruno@clisp.org>
27378
27379         * modules/.gitattributes: New file.
27380
27381 2009-07-20  Bruno Haible  <bruno@clisp.org>
27382
27383         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
27384         (main): Use it.
27385
27386 2009-07-20  Eric Blake  <ebb9@byu.net>
27387
27388         test-pipe: make a bit more robust.
27389         * tests/test-pipe.c (myerr): Allow error messages regardless of
27390         what we do to stderr.
27391         (test_pipe): Rearrange to avoid deadlock.
27392         (child_main): Try a larger read, to ensure we avoided deadlock.
27393         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
27394         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
27395         if misused.
27396
27397 2009-07-19  Jim Meyering  <meyering@redhat.com>
27398
27399         fts: avoid false-positive cycle-detection
27400         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
27401         for each new command line argument.
27402
27403 2009-07-19  Bruno Haible  <bruno@clisp.org>
27404
27405         Fix build error on mingw with the modules sys_select and unistd.
27406         * modules/acl-tests (Depends-on): Add close.
27407         * modules/binary-io-tests (Depends-on): Likewise.
27408         * modules/closein-tests (Depends-on): Likewise.
27409         * modules/flock-tests (Depends-on): Likewise.
27410         * modules/fsync-tests (Depends-on): Likewise.
27411         * modules/lseek-tests (Depends-on): Likewise.
27412         * modules/pipe-tests (Depends-on): Likewise.
27413         * modules/posix_spawn-tests (Depends-on): Likewise.
27414         * modules/posix_spawnp-tests (Depends-on): Likewise.
27415         * modules/stat-time-tests (Depends-on): Likewise.
27416         * modules/yesno-tests (Depends-on): Likewise.
27417
27418 2009-07-19  Bruno Haible  <bruno@clisp.org>
27419
27420         Unify conditionals.
27421         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
27422         macros, not at the compiler macros.
27423         * lib/pipe.c: Likewise.
27424         * lib/execute.c: Likewise.
27425         * lib/spawni.c: Likewise.
27426
27427 2009-07-19  Bruno Haible  <bruno@clisp.org>
27428
27429         Fix handling of closed stdin/stdout/stderr on mingw.
27430         * lib/w32spawn.h: Include unistd.h.
27431         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
27432         file descriptor with O_NOINHERIT flag.
27433         (fd_safer_noinherit): New function, based on fd-safer.c.
27434         (dup_safer_noinherit): New function, based on dup-safer.c.
27435         (undup_safer_noinherit): New function.
27436         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
27437         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
27438         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
27439         instead of fd_safer.
27440         * tests/test-pipe.c: Include <windows.h>.
27441         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
27442
27443         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
27444         from main.
27445         (test_pipe): Pass an extra argument for disambiguation.
27446         (main): Invoke parent_main or child_main.
27447
27448         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
27449         consistently.
27450
27451 2009-07-18  Eric Blake  <ebb9@byu.net>
27452
27453         test-pipe: fix mingw build
27454         * tests/test-pipe.c (main): Avoid fcntl on mingw.
27455
27456 2009-07-18  Bruno Haible  <bruno@clisp.org>
27457
27458         * modules/pipe-tests (Makefile.am): Fix typo.
27459
27460 2009-07-18  Eric Blake  <ebb9@byu.net>
27461
27462         error: fix mingw build
27463         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
27464         Reported by Bruno Haible.
27465
27466         error: avoid undefined use of stdout
27467         * lib/error.c (error, error_at_line): Check that fd 1 is open
27468         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
27469         is handling faults and the close_stdout module wants to report the
27470         detection of closed stdout as an error.
27471
27472 2009-07-17  Eric Blake  <ebb9@byu.net>
27473
27474         pipe: be robust in face of closed fds
27475         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
27476         should cause child to misbehave.
27477         * modules/pipe-tests: New module.
27478         * tests/test-pipe.c: New file.
27479         * tests/test-pipe.sh: New file.
27480         Reported by Akim Demaille.
27481
27482 2009-07-14  Bruno Haible  <bruno@clisp.org>
27483
27484         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
27485         Reported by anonymous kc.
27486
27487 2009-07-07  Jim Meyering  <meyering@redhat.com>
27488
27489         maint.mk: don't look for translatable strings in *.m4 or *.mk
27490         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
27491         when searching for translatable strings.
27492
27493 2009-07-05  Jim Meyering  <meyering@redhat.com>
27494
27495         remove superfluous parentheses in STREQ definition
27496         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
27497         * lib/getugroups.c (STREQ): Likewise.
27498         * lib/fnmatch.c (STREQ): Likewise.
27499         Spotted by Bruno Haible.
27500
27501 2009-07-04  Jim Meyering  <meyering@redhat.com>
27502
27503         argv-iter: new module
27504         * MODULES.html.sh: Add argv-iter.
27505         * lib/argv-iter.c, lib/argv-iter.h: New files.
27506         * modules/argv-iter: New file.
27507         * modules/argv-iter-tests: New file.
27508         * tests/test-argv-iter.c: Test it.
27509
27510 2009-07-04  Bruno Haible  <bruno@clisp.org>
27511
27512         Fix assertion.
27513         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
27514         contains more exact copies of a given entry than file2, leave the extra
27515         copies unpaired rather than aborting.
27516         Reported by Eric Blake.
27517
27518 2009-07-02  Bruno Haible  <bruno@clisp.org>
27519
27520         Speedup git-merge-changelog for git cherry-pick.
27521         * lib/git-merge-changelog.c (struct entries_mapping): New type.
27522         (entries_mapping_get): New function, extracted from compute_mapping.
27523         (entries_mapping_reverse_get): New function.
27524         (compute_mapping): Add a 'full' argument. Return the result in a
27525         'struct entries_mapping'.
27526         (main): Update. Access the mappings through entries_mapping_get.
27527         Reported by Eric Blake.
27528
27529 2009-07-02  Bruno Haible  <bruno@clisp.org>
27530
27531         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
27532         best_i.
27533
27534 2009-07-02  Bruno Haible  <bruno@clisp.org>
27535
27536         Speed up approximate search for matching ChangeLog entries.
27537         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
27538         argument. Call fstrcmp_bounded instead of fstrcmp.
27539         (compute_mapping, try_split_merged_entry, main): Update callers.
27540
27541 2009-07-02  Bruno Haible  <bruno@clisp.org>
27542
27543         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
27544
27545 2009-06-30  Bruno Haible  <bruno@clisp.org>
27546
27547         Reduce the number of uc_is_cased calls.
27548         * lib/unicase.h (casing_suffix_context_t): Add
27549         'first_char_except_ignorable' field.
27550         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
27551         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
27552         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
27553         Update initializer.
27554         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
27555         case-ignorable characters.
27556         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
27557         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
27558         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
27559         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
27560         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
27561
27562 2009-06-30  Bruno Haible  <bruno@clisp.org>
27563
27564         Tests for module 'unicase/ignorable'.
27565         * modules/unicase/ignorable-tests: New file.
27566         * tests/unicase/test-ignorable.c: New file, generated by
27567         gen-uni-tables.
27568
27569         Tests for module 'unicase/cased'.
27570         * modules/unicase/cased-tests: New file.
27571         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
27572         * tests/unicase/test-predicate-part1.h: New file, derived from
27573         tests/unictype/test-predicate-part1.h.
27574         * tests/unicase/test-predicate-part2.h: New file, same as
27575         tests/unictype/test-predicate-part2.h.
27576
27577         Fix evaluation of "Before C" condition of FINAL_SIGMA.
27578         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
27579         (output_casing_properties): New function.
27580         (main): Call it.
27581         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
27582         * lib/unicase/cased.c: Include unictype/bitmap.h.
27583         (uc_is_cased): Define through a bitmap lookup.
27584         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
27585         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
27586         (uc_is_case_ignorable): Define through a bitmap lookup.
27587         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
27588         lib/unictype/bitmap.h.
27589         (Depends-on): Add inline. Clean up.
27590         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
27591         lib/unictype/bitmap.h.
27592         (Depends-on): Add inline. Clean up.
27593         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
27594         recognition.
27595         * tests/unicase/test-u16-tolower.c (main): Likewise.
27596         * tests/unicase/test-u32-tolower.c (main): Likewise.
27597
27598 2009-06-30  Bruno Haible  <bruno@clisp.org>
27599
27600         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
27601         * lib/unicase/u16-casemap.c: Likewise.
27602         * lib/unicase/u32-casemap.c: Likewise.
27603
27604 2009-06-29  Bruno Haible  <bruno@clisp.org>
27605
27606         Define u32_casefold as a wrapper around u32_ct_casefold.
27607         * lib/unicase/u32-casefold.c: Update.
27608         * modules/unicase/u32-casefold (Depends-on): Add
27609         unicase/u32-ct-casefold, unicase/empty-prefix-context,
27610         unicase/empty-suffix-context. Clean up.
27611
27612         Define u16_casefold as a wrapper around u16_ct_casefold.
27613         * lib/unicase/u16-casefold.c: Update.
27614         * modules/unicase/u16-casefold (Depends-on): Add
27615         unicase/u16-ct-casefold, unicase/empty-prefix-context,
27616         unicase/empty-suffix-context. Clean up.
27617
27618         Define u8_casefold as a wrapper around u8_ct_casefold.
27619         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
27620         * lib/unicase/u8-casefold.c: Update.
27621         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
27622         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27623
27624         Define u32_totitle as a wrapper around u32_ct_totitle.
27625         * lib/unicase/u32-totitle.c: Update.
27626         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
27627         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27628
27629         Define u16_totitle as a wrapper around u16_ct_totitle.
27630         * lib/unicase/u16-totitle.c: Update.
27631         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
27632         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27633
27634         Define u8_totitle as a wrapper around u8_ct_totitle.
27635         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
27636         functions.
27637         (FUNC): Delegate to U_CT_TOTITLE.
27638         * lib/unicase/u8-totitle.c: Update.
27639         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
27640         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27641
27642         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
27643         invocation.
27644         * modules/unicase/u32-tolower (Depends-on): Add
27645         unicase/empty-prefix-context, unicase/empty-suffix-context.
27646
27647         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
27648         invocation.
27649         * modules/unicase/u16-tolower (Depends-on): Add
27650         unicase/empty-prefix-context, unicase/empty-suffix-context.
27651
27652         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
27653         * modules/unicase/u8-tolower (Depends-on): Add
27654         unicase/empty-prefix-context, unicase/empty-suffix-context.
27655
27656         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
27657         invocation.
27658         * modules/unicase/u32-toupper (Depends-on): Add
27659         unicase/empty-prefix-context, unicase/empty-suffix-context.
27660
27661         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
27662         invocation.
27663         * modules/unicase/u16-toupper (Depends-on): Add
27664         unicase/empty-prefix-context, unicase/empty-suffix-context.
27665
27666         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
27667         * modules/unicase/u8-toupper (Depends-on): Add
27668         unicase/empty-prefix-context, unicase/empty-suffix-context.
27669
27670         New module 'unicase/u32-ct-casefold'.
27671         * lib/unicase/u32-ct-casefold.c: New file.
27672         * modules/unicase/u32-ct-casefold: New file.
27673
27674         New module 'unicase/u16-ct-casefold'.
27675         * lib/unicase/u16-ct-casefold.c: New file.
27676         * modules/unicase/u16-ct-casefold: New file.
27677
27678         New module 'unicase/u8-ct-casefold'.
27679         * lib/unicase/u8-ct-casefold.c: New file.
27680         * lib/unicase/u-ct-casefold.h: New file, derived from
27681         lib/unicase/u-casefold.h.
27682         * modules/unicase/u8-ct-casefold: New file.
27683
27684         New module 'unicase/u32-ct-totitle'.
27685         * lib/unicase/u32-ct-totitle.c: New file.
27686         * modules/unicase/u32-ct-totitle: New file.
27687
27688         New module 'unicase/u16-ct-totitle'.
27689         * lib/unicase/u16-ct-totitle.c: New file.
27690         * modules/unicase/u16-ct-totitle: New file.
27691
27692         New module 'unicase/u8-ct-totitle'.
27693         * lib/unicase/u8-ct-totitle.c: New file.
27694         * lib/unicase/u-ct-totitle.h: New file, derived from
27695         lib/unicase/u-totitle.h.
27696         * modules/unicase/u8-ct-totitle: New file.
27697
27698         New module 'unicase/u32-ct-tolower'.
27699         * lib/unicase/u32-ct-tolower.c: New file.
27700         * modules/unicase/u32-ct-tolower: New file.
27701
27702         New module 'unicase/u16-ct-tolower'.
27703         * lib/unicase/u16-ct-tolower.c: New file.
27704         * modules/unicase/u16-ct-tolower: New file.
27705
27706         New module 'unicase/u8-ct-tolower'.
27707         * lib/unicase/u8-ct-tolower.c: New file.
27708         * modules/unicase/u8-ct-tolower: New file.
27709
27710         New module 'unicase/u32-ct-toupper'.
27711         * lib/unicase/u32-ct-toupper.c: New file.
27712         * modules/unicase/u32-ct-toupper: New file.
27713
27714         New module 'unicase/u16-ct-toupper'.
27715         * lib/unicase/u16-ct-toupper.c: New file.
27716         * modules/unicase/u16-ct-toupper: New file.
27717
27718         New module 'unicase/u8-ct-toupper'.
27719         * lib/unicase/u8-ct-toupper.c: New file.
27720         * modules/unicase/u8-ct-toupper: New file.
27721
27722         Add context arguments to u*_casemap functions.
27723         * lib/unicase/unicasemap.h: Include unicase.h.
27724         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
27725         suffix_context arguments.
27726         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
27727         functions.
27728         (FUNC): Add prefix_context and suffix_context arguments. Use
27729         uc_is_cased and uc_is_case_ignorable.
27730         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
27731         * lib/unicase/u16-casemap.c: Likewise.
27732         * lib/unicase/u32-casemap.c: Likewise.
27733         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
27734         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27735         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
27736         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27737         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
27738         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27739
27740         New module 'unicase/u32-suffix-context'.
27741         * lib/unicase/u32-suffix-context.c: New file.
27742         * modules/unicase/u32-suffix-context: New file.
27743
27744         New module 'unicase/u16-suffix-context'.
27745         * lib/unicase/u16-suffix-context.c: New file.
27746         * modules/unicase/u16-suffix-context: New file.
27747
27748         New module 'unicase/u8-suffix-context'.
27749         * lib/unicase/u8-suffix-context.c: New file.
27750         * lib/unicase/u-suffix-context.h: New file.
27751         * modules/unicase/u8-suffix-context: New file.
27752
27753         New module 'unicase/empty-suffix-context'.
27754         * lib/unicase/empty-suffix-context.c: New file.
27755         * modules/unicase/empty-suffix-context: New file.
27756
27757         New module 'unicase/u32-prefix-context'.
27758         * lib/unicase/u32-prefix-context.c: New file.
27759         * modules/unicase/u32-prefix-context: New file.
27760
27761         New module 'unicase/u16-prefix-context'.
27762         * lib/unicase/u16-prefix-context.c: New file.
27763         * modules/unicase/u16-prefix-context: New file.
27764
27765         New module 'unicase/u8-prefix-context'.
27766         * lib/unicase/u8-prefix-context.c: New file.
27767         * lib/unicase/u-prefix-context.h: New file.
27768         * lib/unicase/context.h: New file.
27769         * modules/unicase/u8-prefix-context: New file.
27770
27771         New module 'unicase/empty-prefix-context'.
27772         * lib/unicase/empty-prefix-context.c: New file.
27773         * modules/unicase/empty-prefix-context: New file.
27774
27775         New module 'unicase/ignorable'.
27776         * lib/unicase/ignorable.c: New file.
27777         * modules/unicase/ignorable: New file.
27778
27779         New module 'unicase/cased'.
27780         * lib/unicase/caseprop.h: New file.
27781         * lib/unicase/cased.c: New file.
27782         * modules/unicase/cased: New file.
27783
27784         New functions for case mapping of substrings.
27785         * lib/unicase.h (casing_prefix_context_t): New type.
27786         (unicase_empty_prefix_context): New variable.
27787         (u8_casing_prefix_context, u16_casing_prefix_context,
27788         u32_casing_prefix_context, u8_casing_prefixes_context,
27789         u16_casing_prefixes_context, u32_casing_prefixes_context): New
27790         declarations.
27791         (casing_suffix_context_t): New type.
27792         (unicase_empty_suffix_context): New variable.
27793         (u8_casing_suffix_context, u16_casing_suffix_context,
27794         u32_casing_suffix_context, u8_casing_suffixes_context,
27795         u16_casing_suffixes_context, u32_casing_suffixes_context,
27796         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
27797         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
27798         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
27799         declarations.
27800
27801 2009-06-28  Jim Meyering  <meyering@redhat.com>
27802
27803         boostrap: indent only with spaces
27804         * build-aux/bootstrap: Indent only with spaces, never TABs.
27805
27806         bootstrap: split long lines
27807         * build-aux/bootstrap: Keep line length < 80.
27808
27809         bootstrap: sync from coreutils
27810         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
27811         just as autoreconf does.  Verify a list of prerequisite
27812         package-name,version-number pairs if defined in bootstrap.conf.
27813         Refer to README-prereq, if prerequisites are not satisfied.
27814
27815 2009-06-27  Eric Blake  <ebb9@byu.net>
27816
27817         tests: add test for bogus NULL definition
27818         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
27819         * tests/test-stdlib.c: Likewise.
27820         * tests/test-string.c: Likewise.
27821         * tests/test-locale.c: Likewise.
27822         * tests/test-unistd.c: Likewise.
27823         * modules/stdio-tests (Depends-on): Add verify.
27824         * modules/stdlib-tests (Depends-on): Likewise.
27825         * modules/string-tests (Depends-on): Likewise.
27826         * modules/locale-tests (Depends-on): Likewise.
27827         * modules/unistd-tests (Depends-on): Likewise.
27828
27829 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
27830
27831         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
27832         self-explaining comment.
27833         * m4/selinux-selinux-h: Update serial.
27834         (gl_LIBSELINUX): New macro, adding a warning for missing development
27835         packages to code extracted from...
27836         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
27837         Add warning for missing development packages here, too.
27838
27839 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
27840
27841         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
27842
27843 2009-06-25  Eric Blake  <ebb9@byu.net>
27844
27845         version-etc: fix regression
27846         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
27847         gcc.
27848         (version_etc): Use it, to catch bugs with trailing NULL.
27849         * lib/version-etc.c (version_etc_arn): Delete unused argument.
27850         (version_etc_va): Fix logic bug.
27851         * modules/version-etc-tests: Add test.
27852         * tests/test-version-etc.c: New file.
27853         * tests/test-version-etc.sh: Likewise.
27854
27855 2009-06-25  Sam Steingold  <sds@gnu.org>
27856
27857         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
27858         mbtowc declaration.
27859
27860 2009-06-25  Eric Blake  <ebb9@byu.net>
27861
27862         fpurge: migrate into <stdio.h>
27863         * lib/fpurge.h: Delete...
27864         * lib/stdio.in.h (fpurge): ...and declare here, instead.
27865         * lib/fpurge.c (fpurge): Change declaring header.
27866         * modules/fpurge (Files): Drop deleted file.
27867         (Depends-on): Add stdio.
27868         (configure.ac): Set witness.
27869         * modules/stdio (Makefile.am): Support fpurge macros.
27870         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27871         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
27872         * lib/fflush.c: Update client.
27873         * tests/test-fpurge.c: Likewise.
27874         * NEWS: Mention the change.
27875
27876 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27877
27878         * lib/argp-version-etc.c (program_authors): Add const
27879         qualifier.
27880         * lib/version-etc.c: Fix typos in the comments.
27881         * modules/argp-version-etc: Depends on version-etc.
27882
27883 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27884
27885         argp-version-etc: new module.
27886
27887         * lib/argp-version-etc.c: New file.
27888         * lib/argp-version-etc.h: New file.
27889         * modules/argp-version-etc: New file.
27890         * modules/argp-version-etc-tests: New file.
27891         * tests/test-argp-version-etc.c: New test.
27892         * tests/test-argp-version-etc-1.sh: New test.
27893
27894 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27895
27896         Provide additional interfaces and documentation for version-etc
27897         module.
27898
27899         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
27900         interfaces.
27901         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
27902         prototypes.
27903
27904 2009-06-24  Bruno Haible  <bruno@clisp.org>
27905
27906         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
27907         HAVE_LIB${NAME} macro.
27908         Reported by Sam Steingold <sds@gnu.org>.
27909
27910 2009-06-23  Simon Josefsson  <simon@josefsson.org>
27911
27912         * modules/hash-tests (test_hash_LDADD): Link to libintl when
27913         needed.
27914
27915 2009-06-21  Bruno Haible  <bruno@clisp.org>
27916
27917         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
27918         work.
27919         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
27920         together with LIB${NAME}, LTLIB${NAME}.
27921         Reported by Sam Steingold <sds@gnu.org>.
27922
27923 2009-06-20  Jim Meyering  <meyering@redhat.com>
27924
27925         tests: make sc_require_test_exit_idiom more generic
27926         * top/maint.mk (Exit_witness_file): New overridable variable.
27927         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
27928         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
27929
27930 2009-06-19  Jim Meyering  <meyering@redhat.com>
27931
27932         hash: reverse order of src/dst parameters in an internal interface
27933         * lib/hash.c (transfer_entries): Reverse order of parameters to
27934         put DST before SRC.  Adjust callers.
27935
27936         tests: test-hash: avoid wholesale duplication
27937         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
27938         Instead, use a loop and add a single conditional.
27939
27940         tests: test-hash: allow seed selection via a command line argument
27941         * tests/test-hash.c (get_seed): New function.
27942         (main): Use it.
27943
27944 2009-06-19  Eric Blake  <ebb9@byu.net>
27945
27946         hash: avoid memory leak on allocation failure
27947         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
27948         failure.  Factor repeated algorithm...
27949         (transfer_entries): ...into new helper routine.
27950         (hash_delete): React to hash_rehash return value.
27951
27952         hash: reduce memory pressure in hash_rehash no-op case
27953         * lib/hash.c (next_prime): Avoid overflow.
27954         (hash_initialize): Factor bucket size computation...
27955         (compute_bucket_size): ...into new helper function.
27956         (hash_rehash): Use new function and open coding to reduce memory
27957         pressure, and avoid a memory leak in USE_OBSTACK code.
27958         Reported by Jim Meyering.
27959
27960 2009-06-18  Eric Blake  <ebb9@byu.net>
27961
27962         hash: make rotation more obvious
27963         * modules/hash (Depends-on): Add bitrotate and stdint.
27964         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
27965         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
27966         (SIZE_MAX): Rely on headers for definition.
27967         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
27968         (raw_hasher): Use rotr_sz.
27969         Suggested by Jim Meyering.
27970
27971         hash: fix memory leak in last patch
27972         * lib/hash.c (hash_rehash): Avoid memory leak.
27973
27974         hash: avoid no-op rehashing
27975         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
27976
27977         hash: provide default callback functions
27978         * lib/hash.c (raw_hasher, raw_comparator): New functions.
27979         (hash_initialize): Use them as defaults.
27980         * tests/test-hash.c (main): Test this.
27981
27982         hash: minor optimization
27983         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
27984         when possible.
27985         (hash_initialize): Document this promise.
27986         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
27987         * tests/test-hash.c (hash_compare_strings): Test this.
27988
27989 2009-06-18  Bruno Haible  <bruno@clisp.org>
27990
27991         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
27992         going to be replaced anyway.
27993
27994 2009-06-18  Bruno Haible  <bruno@clisp.org>
27995
27996         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
27997         in one place.
27998         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
27999         be replaced anyway.
28000
28001 2009-06-18  Eric Blake  <ebb9@byu.net>
28002
28003         hash: check for resize before insertion
28004         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
28005         threshold before insertion, so that a pathological hash_rehash
28006         that fills every bucket can still trigger another rehash.
28007
28008 2009-06-18  Jim Meyering  <meyering@redhat.com>
28009
28010         hash-tests: add a loop around the small tests
28011         * tests/test-hash.c (main): Repeat small tests with selected
28012         small initial table sizes.
28013
28014 2009-06-17  Eric Blake  <ebb9@byu.net>
28015
28016         hash: minor cleanups
28017         * lib/hash.h (hash_entry): Make opaque, by moving...
28018         * lib/hash.c (hash_entry): ...here.
28019         (hash_insert): Clarify restrictions on what can be inserted.
28020         (hash_get_next): Clarify when it is safe to remove an element
28021         during traversal.
28022         (check_tuning): Skip verification when tuning is known safe.
28023         (hash_initialize): Clarify restrictions on tuning.
28024
28025 2009-06-17  Jim Meyering  <jim@meyering.net>
28026         and Eric Blake  <ebb9@byu.net>
28027
28028         hash-tests: new module
28029         * modules/hash-tests: New file.
28030         * tests/test-hash.c: New file.
28031
28032 2009-06-17  Eric Blake  <ebb9@byu.net>
28033
28034         strstr-simple: document new module
28035         * MODULES.html.sh: Document new module.
28036
28037         strstr, strcasestr: replace on platforms with broken memchr
28038         * modules/strstr: Split into...
28039         * modules/strstr-simple: ...new module that does not care about
28040         performance, but does care about glibc bug.
28041         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
28042         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
28043         if platform memchr is broken, per Debian bug 521737.
28044         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
28045         memchr.
28046         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
28047         * doc/posix-functions/strstr.texi (strstr): Document the fix.
28048         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
28049         * modules/mountlist (Depends-on): Add strstr-simple.
28050         * modules/gen-uni-tables (Depends-on): Likewise.
28051         * modules/argz (Depends-on): Add strstr.
28052
28053 2009-06-17  Bruno Haible  <bruno@clisp.org>
28054
28055         * modules/posix_spawn-internal (Depends-on): Add errno.
28056
28057 2009-06-17  Bruno Haible  <bruno@clisp.org>
28058
28059         Define missing ESTALE on Interix 3.5.
28060         * lib/errno.in.h (ESTALE): Assign a value if missing.
28061         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
28062         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
28063         missing.
28064         * doc/posix-headers/errno.texi: Mention the Interix bug.
28065         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
28066
28067 2009-06-15  Eric Blake  <ebb9@byu.net>
28068
28069         memchr, memchr2: add valgrind exception
28070         * lib/memchr.valgrind: New file.
28071         * lib/memchr2.valgrind: New file.
28072         * modules/memchr (Files): Distribute valgrind file.
28073         * modules/memchr2 (Files): Likewise.
28074
28075         docs: memchr is no longer obsolete
28076         * MODULES.html.sh: Move memchr from obsolete to string.h section.
28077         * lib/string.in.h (memchr): Simplify logic.
28078
28079 2009-06-14  Jim Meyering  <meyering@redhat.com>
28080
28081         link-follow: fix the "checking..." message to not mention trailing slash
28082         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
28083         never considered trailing slashes.
28084
28085 2009-06-14  Bruno Haible  <bruno@clisp.org>
28086
28087         * m4/memchr.m4: Mention also the bug on IA-64.
28088         * doc/posix-functions/memchr.texi: Likewise.
28089
28090 2009-06-12  Eric Blake  <ebb9@byu.net>
28091
28092         memchr: detect broken x86_64 and alpha implementations
28093         * modules/memchr-tests (Depends-on): Move mmap detection...
28094         * modules/memchr (Depends-on): ...here.
28095         (configure.ac): Set indicator.
28096         * lib/string.in.h (memchr): Declare replacement.
28097         * modules/string (Makefile.am): Trigger replacement.
28098         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
28099         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
28100         bugs.
28101         * doc/posix-functions/memchr.texi (memchr): Document the bug.
28102         * modules/getpagesize (License): Relax license.
28103
28104 2009-06-11  Bruno Haible  <bruno@clisp.org>
28105
28106         * lib/idpriv.h: Add more references.
28107
28108 2009-06-08  Bruno Haible  <bruno@clisp.org>
28109
28110         Tests for module 'idpriv-droptemp'.
28111         * modules/idpriv-droptemp-tests: New file.
28112         * tests/test-idpriv-droptemp.sh: New file.
28113         * tests/test-idpriv-droptemp.su.sh: New file.
28114         * tests/test-idpriv-droptemp.c: New file.
28115
28116         New module 'idpriv-droptemp'.
28117         * lib/idpriv-droptemp.c: New file.
28118         * modules/idpriv-droptemp: New file.
28119
28120 2009-06-08  Bruno Haible  <bruno@clisp.org>
28121
28122         Tests for module 'idpriv-drop'.
28123         * modules/idpriv-drop-tests: New file.
28124         * tests/test-idpriv-drop.sh: New file.
28125         * tests/test-idpriv-drop.su.sh: New file.
28126         * tests/test-idpriv-drop.c: New file.
28127
28128         New module 'idpriv-drop'.
28129         * lib/idpriv.h: New file.
28130         * lib-idpriv-drop.c: New file.
28131         * m4/idpriv.m4: New file.
28132         * modules/idpriv-drop: New file.
28133
28134 2009-06-08  Bruno Haible  <bruno@clisp.org>
28135
28136         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
28137         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28138         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28139         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28140         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28141         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28142         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28143
28144 2009-06-08  Eric Blake  <ebb9@byu.net>
28145
28146         test-strstr: use memory fence, when possible
28147         * tests/test-strstr.c (main): Use memory fence, in order to be
28148         more likely to trigger Debian bug 521737.
28149         * modules/strstr-tests (Files): Pull in additional files.
28150
28151         memchr: no longer obsolete, for wider field testing
28152         * modules/memchr (Status, Notice): Delete, this module is no
28153         longer obsolete.
28154         * modules/vasnprintf (Depends-on): Add memchr.
28155
28156 2009-06-07  Jim Meyering  <meyering@redhat.com>
28157
28158         hash: declare some functions with the warn_unused_result attribute
28159         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
28160
28161 2009-06-07  Bruno Haible  <bruno@clisp.org>
28162
28163         * tests/test-alignof.c: Don't test int64_t if it does not exist.
28164         Reported by Eric Blake.
28165
28166 2009-06-06  Eric Blake  <ebb9@byu.net>
28167
28168         test-alignof: fix typo with long double
28169         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
28170         compiler error.
28171
28172 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
28173
28174         Escape non-texinfo { and }s.
28175         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
28176         markup error.
28177
28178 2009-06-04  Jim Meyering  <meyering@redhat.com>
28179
28180         gitlog-to-changelog: don't infloop on an empty commit log
28181         * build-aux/gitlog-to-changelog: Warn about an empty log message.
28182         Reported by Boris Petersen <transacid@centerim.org>.
28183
28184 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
28185
28186         version-etc: extend for packagers
28187         Add three new configure options, intended for packagers:
28188           --with-packager="packager name"
28189           --with-packager-version="packager-specific version"
28190           --with-packager-bug-reports="packager bug reporting"
28191         An example with coreutils:
28192           $ ./configure \
28193             --with-packager=Gentoo \
28194             --with-packager-bug-report=http://bugs.gentoo.org/ \
28195             --with-packager-version="patchset 1.6"
28196           $ ./src/ls --version | head -n2
28197           ls (GNU coreutils) 7.1-dirty
28198           Packaged by Gentoo (patchset 1.6)
28199         Note that the bug reporting info via --help doesn't show up because
28200         coreutils uses its own custom emit_bug_reporting_address() implementation
28201         in src/system.h.  If it didn't, it'd look like:
28202           $ ./src/ls --help | tail -n4
28203           Report bugs to <bug-coreutils@gnu.org>.
28204           Report Gentoo bugs to <http://bugs.gentoo.org/>.
28205           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
28206           General help using GNU software: <http://www.gnu.org/gethelp/>.
28207         * lib/version-etc.c: Print new information, if provided.
28208         * m4/version-etc.m4: New file.
28209         * modules/version-etc (Files): Add m4/version-etc.m4.
28210         (configure.ac): Add gl_VERSION_ETC.
28211
28212 2009-05-31  Bruno Haible  <bruno@clisp.org>
28213
28214         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
28215         and 'int64_t'.
28216         * modules/alignof-tests (Dependencies): Add stdint.
28217         Reported by Eric Blake.
28218
28219 2009-05-31  Bruno Haible  <bruno@clisp.org>
28220
28221         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
28222         restriction due to compiler bugs.
28223         Reported by Eric Blake.
28224
28225 2009-05-31  Simon Josefsson  <simon@josefsson.org>
28226             Bruno Haible  <bruno@clisp.org>
28227
28228         Fix test-alignof failure.
28229         * lib/alignof.h (alignof_slot): New macro.
28230         (alignof_type): New macro, with the same semantics as the previous
28231         'alignof'.
28232         (alignof): Alias to alignof_slot.
28233         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
28234         check that the results are usable as constant expressions.
28235
28236 2009-05-31  Bruno Haible  <bruno@clisp.org>
28237
28238         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
28239         * tests/test-memchr.c (main): Check that memchr does not read past the
28240         first occurrence of the byte.
28241         * tests/test-strstr.c (main): Update comment.
28242         Suggested by Eric Blake.
28243
28244 2009-05-30  Bruno Haible  <bruno@clisp.org>
28245
28246         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
28247         detail how to use dumpbin.
28248         Reported by David Byron <dbyron@dbyron.com>.
28249
28250 2009-06-02  Simon Josefsson  <simon@josefsson.org>
28251
28252         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
28253
28254 2009-06-02  Simon Josefsson  <simon@josefsson.org>
28255
28256         * m4/manywarnings.m4: Add GCC 4.4 warnings.
28257
28258 2009-05-28  Bruno Haible  <bruno@clisp.org>
28259
28260         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
28261         build-aux/ files.
28262
28263 2009-05-28  Simon Josefsson  <simon@josefsson.org>
28264
28265         * gnulib-tool (func_import): Transform license on build-aux/ files too.
28266
28267 2009-05-27  Simon Josefsson  <simon@josefsson.org>
28268
28269         * gnulib-tool (sed_transform_main_lib_file)
28270         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
28271         regexps.
28272
28273 2009-05-26  Simon Josefsson  <simon@josefsson.org>
28274
28275         * tests/test-strstr.c: Add another self-test.
28276         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
28277         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
28278
28279 2009-05-23  Bruno Haible  <bruno@clisp.org>
28280
28281         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
28282         change.
28283
28284 2009-05-21  Bruno Haible  <bruno@clisp.org>
28285
28286         Simplify use of mode_t varargs.
28287         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
28288         uses 'mode_t' or 'int'.
28289         * lib/openat.c (openat): Likewise.
28290         * lib/open-safer.c (open_safer): Likewise.
28291         * m4/mode_t.m4: New file.
28292         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
28293         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
28294         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
28295         * modules/open (Files): Add m4/mode_t.m4.
28296         * modules/openat (Files): Likewise.
28297         * modules/fcntl-safer (Files): Likewise.
28298         Suggested by Eric Blake.
28299
28300 2009-05-21  Pádraig Brady  <P@draigbrady.com>
28301
28302         * doc/glibc-functions/fallocate.texi: New file.
28303         * doc/gnulib.texi: Include it.
28304
28305 2009-05-21  Eric Blake  <ebb9@byu.net>
28306             Bruno Haible  <bruno@clisp.org>
28307
28308         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
28309         invocations.
28310         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
28311
28312 2009-05-21  Eric Blake  <ebb9@byu.net>
28313             Bruno Haible  <bruno@clisp.org>
28314
28315         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
28316         include_next. Fix of 2008-11-20 commit.
28317         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
28318         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
28319         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
28320         NEXT_MATH_H.
28321         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
28322         instead of NEXT_MATH_H.
28323
28324 2009-05-21  Bruno Haible  <bruno@clisp.org>
28325
28326         Avoid redefinition warnings for SIZE_MAX.
28327         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
28328         Reported by Simon Josefsson.
28329
28330 2009-05-21  Bruno Haible  <bruno@clisp.org>
28331
28332         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
28333         AC_CACHE_VAL.
28334
28335 2009-05-20  Bruno Haible  <bruno@clisp.org>
28336
28337         Make zeroptr.h work on mingw.
28338         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
28339         mprotect.
28340         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
28341         * modules/memchr2-tests (configure.ac): Likewise.
28342         * modules/memcmp-tests (configure.ac): Likewise.
28343         * modules/memmem-tests (configure.ac): Likewise.
28344         * modules/memrchr-tests (configure.ac): Likewise.
28345         Reported by Simon Josefsson.
28346
28347 2009-05-20  Simon Josefsson  <simon@josefsson.org>
28348
28349         * tests/test-glob.c: Include string.h for strcmp prototype.
28350
28351 2009-05-20  Simon Josefsson  <simon@josefsson.org>
28352
28353         * modules/getdelim (Depends-on): Add explicit stdint, although it
28354         was implicitly already pulled in via realloc-posix.
28355         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
28356
28357 2009-05-20  Simon Josefsson  <simon@josefsson.org>
28358
28359         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
28360         G. Christensen" <tgc@jupiterrise.com>.
28361         * m4/sys_socket_h.m4: Check for sa_family_t.
28362         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
28363         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
28364         * tests/test-sys_socket.c: Check that sa_family_t works.
28365
28366 2009-05-18  Eric Blake  <ebb9@byu.net>
28367
28368         maint.mk: allow gnulib_dir in VPATH build
28369         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
28370
28371 2009-05-15  Jim Meyering  <meyering@redhat.com>
28372
28373         maint.mk: Give gnulib_dir a default definition.
28374         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
28375         Thus, most packages no longer need to specify this variable in cfg.mk
28376
28377 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
28378
28379         rename.m4: fix typos that would make non-mingw cross-configure fail
28380         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
28381
28382 2009-05-13  Eric Blake  <ebb9@byu.net>
28383
28384         mmap-anon: avoid out-of-order autoconf expansion
28385         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
28386         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
28387         * modules/memchr-tests (Depends-on): Add extensions.
28388         * modules/memchr2-tests (Depends-on): Add extensions.
28389         * modules/memcmp-tests (Depends-on): Add extensions.
28390         * modules/memmem-tests (Depends-on): Add extensions.
28391         * modules/memrchr-tests (Depends-on): Add extensions.
28392
28393 2009-05-13  Bruno Haible  <bruno@clisp.org>
28394
28395         Make some tests ISO C 99 compliant.
28396         * tests/zerosize-ptr.h: New file.
28397         * tests/test-memchr.c: Include zerosize-ptr.h.
28398         (main): Use a zero-size object pointer instead of NULL.
28399         * tests/test-memchr2.c: Include zerosize-ptr.h.
28400         (main): Use a zero-size object pointer instead of NULL.
28401         * tests/test-memcmp.c: Include zerosize-ptr.h.
28402         (main): Use a zero-size object pointer instead of NULL.
28403         * tests/test-memmem.c: Include zerosize-ptr.h.
28404         (main): Use a zero-size object pointer instead of NULL.
28405         * tests/test-memrchr.c: Include zerosize-ptr.h.
28406         (main): Use a zero-size object pointer instead of NULL.
28407         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
28408         m4/mmap-anon.m4.
28409         (Depends-on): Add getpagesize.
28410         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28411         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
28412         m4/mmap-anon.m4.
28413         (Depends-on): Add getpagesize.
28414         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28415         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
28416         m4/mmap-anon.m4.
28417         (Depends-on): Add getpagesize.
28418         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28419         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
28420         m4/mmap-anon.m4.
28421         (Depends-on): Add getpagesize.
28422         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28423         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
28424         m4/mmap-anon.m4.
28425         (Depends-on): Add getpagesize.
28426         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28427
28428 2009-05-12  Bruno Haible  <bruno@clisp.org>
28429
28430         Tests for module 'alignof'.
28431         * modules/alignof-tests: New file.
28432         * tests/test-alignof.c: New file.
28433
28434 2009-05-12  Bruno Haible  <bruno@clisp.org>
28435
28436         Fix alignof macro.
28437         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
28438         vendor compilers that are always correct.
28439
28440 2009-05-12  Bruno Haible  <bruno@clisp.org>
28441
28442         Make the MAP_ANONYMOUS detection work on HP-UX 11.
28443         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
28444         not whether its fully works.
28445
28446 2009-05-12  Bruno Haible  <bruno@clisp.org>
28447
28448         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
28449
28450 2009-05-12  Jim Meyering  <meyering@redhat.com>
28451
28452         * top/maint.mk: Adjust backslash alignment.
28453
28454 2009-05-11  Simon Josefsson  <simon@josefsson.org>
28455
28456         * top/maint.mk: Make $(srcdir)/build-aux configurable.
28457
28458 2009-05-11  Eric Blake  <ebb9@byu.net>
28459
28460         argp: avoid undefined behavior
28461         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
28462         macros.
28463
28464 2009-05-08  Simon Josefsson  <simon@josefsson.org>
28465
28466         * tests/test-vc-list-files-git.sh: Do git config of user.email and
28467         user.name to prevent git commit from complaining.
28468
28469 2009-05-10  Bruno Haible  <bruno@clisp.org>
28470
28471         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
28472         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
28473         it rewrites every file name only once.
28474         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
28475
28476 2009-05-08  Bruno Haible  <bruno@clisp.org>
28477
28478         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
28479         instead of 'max'.
28480
28481 2009-05-08  Simon Josefsson  <simon@josefsson.org>
28482
28483         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
28484         sockaddr_storage test.
28485
28486 2009-05-07  Simon Josefsson  <simon@josefsson.org>
28487
28488         * modules/sys_socket (Makefile.am): Substitute
28489         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
28490         * m4/sys_socket_h.m4: Check for sockaddr_storage.
28491         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
28492         * tests/test-sys_socket.c: Check sockaddr_storage.
28493
28494 2009-05-08  Bruno Haible  <bruno@clisp.org>
28495
28496         New module 'alignof'.
28497         * lib/alignof.h: New file.
28498         * modules/alignof: New file.
28499
28500 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28501             Bruno Haible  <bruno@clisp.org>
28502
28503         Fix test-file-has-acl on FreeBSD.
28504         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
28505         mask is implicitly added.
28506         * tests/test-file-has-acl.c: Include <signal.h>.
28507         (main): Terminate the test after 5 seconds.
28508         * modules/acl-tests (configure.ac): Check for alarm function.
28509
28510 2009-05-04  Bruno Haible  <bruno@clisp.org>
28511
28512         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
28513         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
28514         * modules/errno (configure.ac): Drop AC_REQUIRE.
28515         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
28516         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
28517
28518 2009-05-04  Simon Josefsson  <simon@josefsson.org>
28519
28520         * modules/glob-tests: New module.
28521         * tests/test-glob.c: Add.
28522
28523 2009-05-04  Simon Josefsson  <simon@josefsson.org>
28524
28525         * modules/fnmatch-tests: New module.
28526         * tests/test-fnmatch.c: Add.
28527
28528 2009-05-04  Eric Blake  <ebb9@byu.net>
28529
28530         maint: make the new no-submodule-changes rule VPATH-safe
28531         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
28532
28533 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28534             Bruno Haible  <bruno@clisp.org>
28535
28536         acl: Fix infinite loop on FreeBSD.
28537         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
28538         of return value from acl_get_entry.
28539         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
28540         Likewise.
28541
28542 2009-05-03  Bruno Haible  <bruno@clisp.org>
28543
28544         * lib/acl-internal.h (acl_entries): Clarify return value.
28545         * lib/acl_entries.c (acl_entries): Likewise.
28546
28547 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28548
28549         Bug fix in acl module.
28550         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
28551
28552 2009-05-03  Bruno Haible  <bruno@clisp.org>
28553
28554         Create gperf-generated file in the source dir, not in the build dir.
28555         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
28556         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
28557         * modules/unicase/locale-language (unicase/locale-languages.h):
28558         Likewise.
28559         * modules/unicase/special-casing (unicase/special-casing-table.h):
28560         Likewise.
28561         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
28562         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
28563         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
28564         Reported by Ralf Wildenhues.
28565
28566 2009-05-03  Bruno Haible  <bruno@clisp.org>
28567
28568         * modules/fnmatch (Description, configure.ac): Taken from
28569         fnmatch-posix.
28570         * modules/fnmatch-posix: Turn into a symbolic reference to the
28571         'fnmatch' module, and deprecate.
28572         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
28573
28574 2009-05-03  Bruno Haible  <bruno@clisp.org>
28575
28576         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
28577         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
28578         Reported by Ralf Wildenhues.
28579
28580 2009-05-04  Simon Josefsson  <simon@josefsson.org>
28581
28582         * m4/fnmatch.m4: Fix fnmatch re-define.
28583
28584 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28585
28586         priv-set: new module and tests; adapt write-any-file
28587         * lib/priv-set.c: New file.
28588         * lib/priv-set.h: New file.
28589         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
28590         * lib/write-any-file.c: Simplify by using priv-set module.
28591         * m4/priv-set.m4: New file.
28592         * modules/priv-set: New file.
28593         * modules/unlinkdir: Add dependency on priv-set module.
28594         * modules/write-any-file: Likewise.
28595
28596         Tests for module 'priv-set'.
28597         * modules/priv-set-tests: New file.
28598         * tests/test-priv-set.c: New file.
28599
28600 2009-05-03  Jim Meyering  <meyering@redhat.com>
28601             Bruno Haible  <bruno@clisp.org>
28602
28603         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
28604         use the converted UTF-8 variant of the name instead.
28605
28606 2009-05-03  Jim Meyering  <meyering@redhat.com>
28607
28608         tests: tighten some getdate tests
28609         * tests/test-getdate.c (main): Tighten tests: require equality,
28610         not just greater than.  Set TZ envvar to UTC0.
28611
28612 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
28613
28614         getdate: correctly interpret "next monday" when run on a Monday
28615         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
28616         that e.g., "next tues" (when run on a tuesday) results in a date
28617         that is one week in the future, and not today's date.
28618         I.e., add a week when the wday is the same as the current one.
28619         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
28620         and earlier by Martin Bernreuther and Jan Minář.
28621         * tests/test-getdate.c (main): Check that "next DAY" is always in
28622         the future and that "last DAY" is always in the past.
28623
28624 2009-05-02  Jim Meyering  <meyering@redhat.com>
28625
28626         build: ensure that a release build fails when a submodule is unclean
28627         * top/maint.mk (no-submodule-changes): New rule.
28628         (alpha beta major): Depend on it.
28629
28630 2009-05-02  Bruno Haible  <bruno@clisp.org>
28631
28632         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
28633         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
28634         shell variable gl_fnmatch_required to detect which variant is
28635         requested.
28636         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
28637         gl_FUNC_FNMATCH_POSIX.
28638         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
28639         exclude fnmatch-posix.
28640
28641 2009-05-02  Bruno Haible  <bruno@clisp.org>
28642
28643         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
28644         * modules/mbsrtowcs (License): Change to LGPLv2+.
28645         * modules/strnlen1 (License): Likewise.
28646         Reported by Simon Josefsson.
28647
28648 2009-05-02  Bruno Haible  <bruno@clisp.org>
28649
28650         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
28651         "cross".
28652         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
28653         gnulib-tool was called with option --source-base=lib.
28654
28655 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28656
28657         Use automake *-local hooks without commands, for extensibility.
28658         * modules/localcharset (Makefile.am): Rename install-exec-local
28659         rule to install-exec-localcharset, and make it a prerequisite of
28660         install-exec-local.  Likewise, rename the uninstall-local rule to
28661         uninstall-localcharset, and make it a prerequisite of the former.
28662
28663 2009-05-01  Bruno Haible  <bruno@clisp.org>
28664
28665         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
28666         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
28667         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
28668         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
28669         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
28670         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
28671         m4/locale-zh.m4, m4/codeset.m4.
28672
28673         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
28674         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
28675         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
28676         m4/locale-zh.m4.
28677
28678         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
28679         REPLACE_WCRTOMB if mbstate_t must be replaced.
28680         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
28681         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
28682
28683 2009-05-01  Bruno Haible  <bruno@clisp.org>
28684
28685         Avoid compiler warnings when redefining macros defined by <libintl.h>.
28686         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
28687         dngettext, dcngettext, textdomain, bindtextdomain,
28688         bind_textdomain_codeset): Undefine before redefining.
28689
28690 2009-04-30  Bruno Haible  <bruno@clisp.org>
28691
28692         Fix bug introduced on 2009-04-25.
28693         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
28694         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
28695         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
28696         is defined.
28697         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
28698         is defined.
28699         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
28700         is defined.
28701         Reported by Elbert_Pol <elbert.pol@gmail.com>.
28702
28703 2009-04-28  Bruno Haible  <bruno@clisp.org>
28704
28705         Comment tweaks.
28706         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
28707         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
28708         * lib/unicase.h (u*_casexfrm): Likewise.
28709         Reported by Paolo Bonzini.
28710
28711 2009-04-28  Bruno Haible  <bruno@clisp.org>
28712
28713         Fix a compilation error.
28714         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
28715         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
28716         Reported by Jim Meyering.
28717
28718 2009-04-27  Bruno Haible  <bruno@clisp.org>
28719
28720         New module 'libunistring'.
28721         * modules/libunistring: New file.
28722         * m4/libunistring.m4: New file.
28723         * MODULES.html.sh (Unicode string functions): Add it.
28724
28725 2009-04-27  Eric Blake  <ebb9@byu.net>
28726
28727         maint.mk: allow package-specific header to provide <config.h>
28728         * top/maint.mk (sc_require_config_h): New variable.
28729         (sc_require_config_h, sc_require_config_h_first): Use it.
28730
28731 2009-04-27  Simon Josefsson  <simon@josefsson.org>
28732
28733         * top/maint.mk (sc_avoid_if_before_free): Except
28734         useless-if-before-free script.
28735
28736 2009-04-27  Eric Blake  <ebb9@byu.net>
28737
28738         maintainer-makefile: depend on all required helper scripts
28739         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
28740         useless-if-before-free.
28741         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
28742         version, rather than assuming gnulib checkout is available.
28743         Reported by Simen Josefsson.
28744
28745 2009-04-26  Bruno Haible  <bruno@clisp.org>
28746
28747         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
28748         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
28749         "../" or "..".
28750
28751 2009-04-26  Bruno Haible  <bruno@clisp.org>
28752
28753         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
28754         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
28755         AC_LIB_HAVE_LINKFLAGS.
28756
28757 2009-04-26  Bruno Haible  <bruno@clisp.org>
28758
28759         Simplify calling convention of u*_conv_from_encoding.
28760         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
28761         u32_conv_from_encoding): Expect a resultbuf argument and return the
28762         result directly as a pointer.
28763         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
28764         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
28765         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
28766         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
28767         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
28768         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
28769         Update.
28770         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
28771         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
28772         * lib/vasnprintf.c (VASNPRINTF): Update.
28773         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
28774         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
28775         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
28776         * NEWS: Mention the change.
28777
28778 2009-04-26  Bruno Haible  <bruno@clisp.org>
28779
28780         Simplify calling convention of u*_conv_to_encoding.
28781         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
28782         u32_conv_to_encoding): Expect a resultbuf argument and return the
28783         result directly as a pointer.
28784         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
28785         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
28786         freeing scaled_offsets if mem_iconveha failed.
28787         * lib/unicase/u-casexfrm.h (FUNC): Update.
28788         * lib/uninorm/u-normxfrm.h (FUNC): Update.
28789         * lib/vasnprintf.c (VASNPRINTF): Update.
28790         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
28791         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
28792         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
28793         * NEWS: Mention the change.
28794
28795 2009-04-26  Bruno Haible  <bruno@clisp.org>
28796
28797         Avoid test failures on AIX and OSF/1.
28798         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
28799         malloc(0).
28800         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
28801         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
28802         Likewise.
28803         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
28804         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
28805         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
28806         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
28807         * doc/posix-functions/malloc.texi: Document the portability problem
28808         related to malloc(0).
28809
28810 2009-04-26  Bruno Haible  <bruno@clisp.org>
28811
28812         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
28813         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
28814         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
28815
28816 2009-04-25  Bruno Haible  <bruno@clisp.org>
28817
28818         Avoid link error when creating a namespace clean library.
28819         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
28820         as macro with arguments if already defined as an alias.
28821         * lib/signbitf.c (gl_signbitf): Don't undefine.
28822         * lib/signbitd.c (gl_signbitd): Don't undefine.
28823         * lib/signbitl.c (gl_signbitl): Don't undefine.
28824
28825 2009-04-25  Jim Meyering  <meyering@redhat.com>
28826
28827         vc-list-files: fix another quoting bug
28828         * build-aux/vc-list-files: Avoid sed backslash expansion
28829         of pathological directory names.
28830
28831 2009-04-25  Eric Blake  <ebb9@byu.net>
28832
28833         vc-list-files: fix shell quoting error
28834         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
28835         timestamp.
28836
28837 2009-04-25  Jim Meyering  <meyering@redhat.com>
28838
28839         vc-list-files: restore lost functionality with subdir argument
28840         * build-aux/vc-list-files: When given a non-"." sub-directory
28841         argument, substitute the $dir/ prefix back onto each resulting name.
28842         Otherwise, coreutils' root_tests check would fail.
28843
28844 2009-04-24  Eric Blake  <ebb9@byu.net>
28845
28846         vc-list-files: ignore git symlinks
28847         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
28848         than ls-files, to ignore git symlinks.
28849
28850         maint.mk: import improvements from m4
28851         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
28852         (move_if_change): Delete unused macro.
28853         (news-date-check, vc-diff-check): Support VPATH builds.
28854         (announcement): Likewise.  Split --bootstrap-tools list...
28855         (boostrap-tools): ...into separate list, which can be overridden
28856         in cfg.mk.
28857         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
28858         requiring dependency on useless-if-before-free module.
28859         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
28860         Support VPATH builds.
28861
28862 2009-04-24  Jim Meyering  <meyering@redhat.com>
28863
28864         maint.mk: remove coreutils-specific rules and variables
28865         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
28866         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
28867         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
28868
28869         maint.mk: remove obsolete rule
28870         * top/maint.mk (rel-check): Remove rule.
28871         (WGET, WGETFLAGS): Remove now-unused variables.
28872
28873 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28874
28875         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
28876         consistency.
28877
28878         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
28879         '$(PATH_SEPARATOR)' instead of ':'.
28880
28881 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28882
28883         * lib/getopt1.c (main): Use 'const' for static array.
28884
28885 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28886
28887         * top/maint.mk: Sync with coreutils.
28888         * NEWS: Explain incompatibilities.
28889
28890 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28891             Bruno Haible  <bruno@clisp.org>
28892
28893         Fix cross-compilation results.
28894         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
28895         statement, as third argument of AC_TRY_RUN.
28896         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
28897         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
28898         Likewise.
28899         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28900         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
28901         Likewise.
28902         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28903         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
28904         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
28905
28906 2009-04-20  Bruno Haible  <bruno@clisp.org>
28907
28908         Avoid test failure on mingw.
28909         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
28910
28911 2009-04-20  Bruno Haible  <bruno@clisp.org>
28912
28913         Avoid compilation error on mingw.
28914         * modules/localename-tests (Depends-on): Add locale.
28915
28916 2009-04-19  Bruno Haible  <bruno@clisp.org>
28917
28918         Support for building a shared library on Windows platforms.
28919         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
28920         (main): Test the presence of UNINORM_NFC here.
28921         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
28922         (main): Test the presence of UNINORM_NFD here.
28923         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
28924         (main): Test the presence of UNINORM_NFKC here.
28925         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
28926         (main): Test the presence of UNINORM_NFKD here.
28927
28928 2009-04-19  Bruno Haible  <bruno@clisp.org>
28929
28930         Avoid a compiler warning.
28931         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
28932         Change type of variable 'sequence'.
28933
28934 2009-04-19  Bruno Haible  <bruno@clisp.org>
28935
28936         * modules/configmake (Makefile.am): When the contents of configmake.h
28937         does not change, arrange to preserve its modification time.
28938
28939 2009-04-17  Simon Josefsson  <simon@josefsson.org>
28940
28941         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
28942         gettext domain.
28943
28944 2009-04-16  Jim Meyering  <meyering@redhat.com>
28945
28946         useless-if-before-free: improve conversion code
28947         * build-aux/useless-if-before-free: Adjust code-in-comment to match
28948         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
28949
28950 2009-04-14  Bruno Haible  <bruno@clisp.org>
28951
28952         * modules/fcntl (Depends-on): Add extensions.
28953         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
28954
28955 2009-04-12  Ben Pfaff  <blp@gnu.org>
28956
28957         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
28958         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
28959
28960 2009-03-20  Ben Pfaff  <blp@gnu.org>
28961
28962         Make rename replace existing destinations on Windows.
28963         * m4/rename.m4: Add test for Mingw.
28964         * lib/rename.c: Add rename replacement that uses MoveFileEx with
28965         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
28966         * doc/posix-functions/rename.texi: Document.
28967
28968 2009-04-10  Bruno Haible  <bruno@clisp.org>
28969
28970         New include file "iconveh.h".
28971         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
28972         * lib/striconveh.h: Include it.
28973         (enum iconv_ilseq_handler): Remove definition.
28974         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
28975         striconveh.h.
28976         * lib/striconveha.c: Include striconveh.h.
28977         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
28978         * modules/striconveh (Files): Add lib/iconveh.h.
28979         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
28980         lib/striconveh.h.
28981
28982 2009-04-10  Bruno Haible  <bruno@clisp.org>
28983
28984         * lib/uniconv.h: Update comment.
28985
28986 2009-04-10  Bruno Haible  <bruno@clisp.org>
28987
28988         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
28989         always.
28990         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
28991         * lib/unistr/u16-mbtouc-aux.c: Likewise.
28992         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
28993         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
28994         "unistring-notinline.h", so that the function gets defined always.
28995         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
28996         * lib/unistr/u8-uctomb.c: Likewise.
28997         * lib/unistr/u16-mbtouc.c: Likewise.
28998         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
28999         * lib/unistr/u16-uctomb.c: Likewise.
29000         * lib/unistr/u32-mbtouc.c: Likewise.
29001         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
29002         * lib/unistr/u32-uctomb.c: Likewise.
29003
29004 2009-04-10  Bruno Haible  <bruno@clisp.org>
29005
29006         Mark 'utime' obsolete.
29007         * modules/utime (Status, Notice): New sections.
29008         Suggested by Jim Meyering.
29009
29010         Fix cross-compile guess for utime test.
29011         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
29012         autoconf.
29013         * doc/posix-functions/utime.texi: Give more precisions.
29014         Reported by Jan <ipif@ymail.com>.
29015
29016 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
29017
29018         filevercmp: correct today's change
29019         * lib/filevercmp.c: Also handle coreutils' test inputs.
29020         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
29021
29022         Fix regression in 'filevercmp' module. Thanks Sven Joachim
29023         for reporting it.
29024         * lib/filevercmp.c: Special handle for "", "." and "..".
29025         * tests/test-filevercmp.c: Enlarge the set suite.
29026
29027 2009-04-07  Jim Meyering  <meyering@redhat.com>
29028
29029         useless-if-before-free: show how to remove braced useless free, too
29030         * build-aux/useless-if-before-free: still only in a comment, though.
29031
29032 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
29033
29034         maint.mk: import changes to syntax-check macros from coreutils
29035         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
29036         Use them in the relevant macros.
29037
29038 2009-04-06  Bruno Haible  <bruno@clisp.org>
29039
29040         Fix unportable use of bit-fields.
29041         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
29042         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
29043         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
29044
29045 2009-04-06  Bruno Haible  <bruno@clisp.org>
29046
29047         Avoid test failures on AIX and OSF/1.
29048         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
29049         that malloc(0) = NULL.
29050         * tests/unicase/test-u8-tolower.c (check): Likewise.
29051         * tests/unicase/test-u8-totitle.c (check): Likewise.
29052         * tests/unicase/test-u8-toupper.c (check): Likewise.
29053         * tests/unicase/test-u16-casefold.c (check): Likewise.
29054         * tests/unicase/test-u16-tolower.c (check): Likewise.
29055         * tests/unicase/test-u16-totitle.c (check): Likewise.
29056         * tests/unicase/test-u16-toupper.c (check): Likewise.
29057         * tests/unicase/test-u32-casefold.c (check): Likewise.
29058         * tests/unicase/test-u32-tolower.c (check): Likewise.
29059         * tests/unicase/test-u32-totitle.c (check): Likewise.
29060         * tests/unicase/test-u32-toupper.c (check): Likewise.
29061         * tests/uninorm/test-u8-nfc.c (check): Likewise.
29062         * tests/uninorm/test-u8-nfd.c (check): Likewise.
29063         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
29064         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
29065         * tests/uninorm/test-u16-nfc.c (check): Likewise.
29066         * tests/uninorm/test-u16-nfd.c (check): Likewise.
29067         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
29068         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
29069         * tests/uninorm/test-u32-nfc.c (check): Likewise.
29070         * tests/uninorm/test-u32-nfd.c (check): Likewise.
29071         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
29072         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
29073
29074 2009-04-05  Bruno Haible  <bruno@clisp.org>
29075
29076         Work around an autoconf limitation.
29077         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
29078         comment line if it would be longer than 3 KB.
29079
29080 2009-04-05  Bruno Haible  <bruno@clisp.org>
29081
29082         Avoid test failure with libiconv-1.13.
29083         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
29084         of the expected test results.
29085
29086 2009-04-05  Bruno Haible  <bruno@clisp.org>
29087
29088         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
29089         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
29090         that it should be installed.
29091
29092 2009-04-05  Bruno Haible  <bruno@clisp.org>
29093
29094         * gnulib-tool: New option --copy-file.
29095         (func_usage): Document it.
29096         (func_dest_tmpfilename): Moved out of func_import.
29097         (func_add_file, func_update_file): New functions, extracted from
29098         func_import.
29099         (func_import): Update.
29100
29101 2009-04-05  Karl Berry  <karl@gnu.org>
29102
29103         * README: prominently mention gnulib-tool.
29104         Rearrange sections so getting the code is near the top.
29105
29106 2009-04-05  Bruno Haible  <bruno@clisp.org>
29107
29108         * lib/unicase.h: Mention u*_cmp2.
29109         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
29110         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
29111         * lib/unicase/ulc-casecmp.c: Likewise.
29112         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
29113         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
29114         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
29115         unistr/u8-cmp.
29116         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
29117         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
29118         unistr/u16-cmp.
29119         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
29120         unistr/u32-cmp.
29121
29122         * lib/uninorm.h: Mention u*_cmp2.
29123         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
29124         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
29125         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
29126         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
29127         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
29128         unistr/u8-cmp.
29129         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
29130         unistr/u16-cmp.
29131         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
29132         unistr/u32-cmp.
29133
29134         New module 'unistr/u32-cmp2'.
29135         * lib/unistr/u32-cmp2.c: New file.
29136         * modules/unistr/u32-cmp2: New file.
29137
29138         New module 'unistr/u16-cmp2'.
29139         * lib/unistr/u16-cmp2.c: New file.
29140         * modules/unistr/u16-cmp2: New file.
29141
29142         New module 'unistr/u8-cmp2'.
29143         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
29144         * lib/unistr/u8-cmp2.c: New file.
29145         * lib/unistr/u-cmp2.h: New file.
29146         * modules/unistr/u8-cmp2: New file.
29147
29148 2009-04-05  Bruno Haible  <bruno@clisp.org>
29149
29150         * lib/unictype.h (uc_property_is_valid): New macro.
29151         * tests/unictype/test-pr_byname.c (main): Use it.
29152
29153         * lib/unistr.h: Doc fixes.
29154         * lib/uniconv.h: Doc fixes.
29155         * lib/unictype.h: Doc fixes.
29156
29157 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
29158
29159         Port coreutils 7.2 to Solaris 8.
29160
29161         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
29162         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
29163         for Solaris 8.  This is a bit of a hack, as it means it's the
29164         caller's responsibility to add -lnsl if needed, but most likely it
29165         won't be needed since only getaddrinfo uses this and getaddrinfo
29166         isn't needed on Solaris 8.
29167
29168         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
29169         problem to Solaris 8 encountered with coreutils 7.2, which
29170         resulted in a message "fnmatch.c:292: warning: passing argument 4
29171         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
29172         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
29173
29174 2009-04-03  Simon Josefsson  <simon@josefsson.org>
29175
29176         * m4/ld-version-script.m4: Add FIXME comment.
29177
29178 2009-04-02  Simon Josefsson  <simon@josefsson.org>
29179
29180         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
29181         SOVERSION variable.
29182
29183 2009-04-02  Bruno Haible  <bruno@clisp.org>
29184
29185         * Makefile (info, html, dvi, pdf): Combine the rules.
29186         Suggested by Jim Meyering.
29187
29188 2009-04-01  Bruno Haible  <bruno@clisp.org>
29189
29190         * Makefile (info, html, dvi, pdf): New targets.
29191         Reported by Reuben Thomas <rrt@sc3d.org>.
29192
29193 2009-04-01  Bruno Haible  <bruno@clisp.org>
29194
29195         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
29196         can be put into PATH.
29197         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
29198
29199 2009-04-01  Bruno Haible  <bruno@clisp.org>
29200
29201         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
29202
29203 2009-04-01  Bruno Haible  <bruno@clisp.org>
29204
29205         Rename module 'visibility'.
29206         * modules/lib-symbol-visibility: Renamed from modules/visibility.
29207         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
29208         * doc/gnulib.texi: Update.
29209         * MODULES.html.sh (Misc): Update.
29210         * NEWS: Mention the change.
29211
29212 2009-04-01  Simon Josefsson  <simon@josefsson.org>
29213
29214         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
29215         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
29216         Eric Blake <ebb9@byu.net> for review.
29217         * MODULES.html.sh: Add lib-msvc-compat.
29218         * doc/gnulib.texi: Link to new section.
29219         * m4/ld-output-def.m4: New file.
29220         * doc/ld-output-def.texi: New file.
29221
29222 2009-04-01  Simon Josefsson  <simon@josefsson.org>
29223
29224         Rename ld-version-script to lib-symbol-versions.  Suggested by
29225         Bruno Haible <bruno@clisp.org>.
29226         * modules/ld-version-script: Renamed to lib-symbol-versions.
29227         * doc/ld-version-script.texi: Fix module name.
29228         * MODULES.html.sh: Add lib-symbol-versions.
29229
29230 2009-03-31  Simon Josefsson  <simon@josefsson.org>
29231
29232         * modules/u64-tests: New file.
29233         * tests/test-u64.c: New file.
29234
29235 2009-03-04  Simon Josefsson  <simon@josefsson.org>
29236
29237         * MODULES.html.sh: Mention u64.
29238         * modules/u64: New module.
29239         * modules/crypto/sha512: Depend on u64 module instead of providing
29240         u64.h.
29241
29242 2009-03-27  Eric Blake  <ebb9@byu.net>
29243
29244         test-strerror: make debugging EAI_SYSTEM easier
29245         * modules/getaddrinfo-tests (Depends-on): Add strerror.
29246         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
29247         failure was EAI_SYSTEM.
29248
29249 2009-03-25  Bruno Haible  <bruno@clisp.org>
29250
29251         Fix a problem with --enable-relocatable on Solaris 7.
29252         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
29253         since 2008-02-24.
29254
29255 2009-03-25  Eric Blake  <ebb9@byu.net>
29256
29257         test-sockets: avoid gcc warning
29258         * tests/test-sockets.c (main): Silence compiler warning.
29259
29260 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
29261
29262         New modules nproc, pthread, contributed by Glen Lenker.
29263
29264         * MODULES.html.sh: Add pthread, nproc.
29265         * lib/nproc.c: New file.
29266         * lib/nproc.h: New file.
29267         * lib/pthread.in.h: New file.
29268         * m4/pthread.m4: New file.
29269         * modules/nproc: New file.
29270         * modules/pthread: New file.
29271
29272 2009-03-24  Simon Josefsson  <simon@josefsson.org>
29273
29274         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
29275         New variable.
29276
29277 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
29278
29279         filevercmp: handle simple~ and numbered.~3~ backup suffixes
29280         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
29281         * tests/test-filevercmp.c: Add tests for backup suffixes.
29282
29283 2009-03-24  Simon Josefsson  <simon@josefsson.org>
29284
29285         * modules/stdlib (Depends-on): Add stdint, needed when defining
29286         struct random_data on, for example, HP-UX 10.20.  Reported by
29287         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29288
29289 2009-03-24  Simon Josefsson  <simon@josefsson.org>
29290
29291         * lib/readline.c (readline): Call fflush on stdout after printing
29292         prompt.
29293
29294 2009-03-20  Bruno Haible  <bruno@clisp.org>
29295
29296         Remove dependency from 'close' module to -lws2_32 on native Windows.
29297         * lib/close-hook.h: New file.
29298         * lib/close-hook.c: New file.
29299         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
29300         w32sock.h.
29301         (_gl_close_fd_maybe_socket): Remove function.
29302         (rpl_close): Invoke execute_all_close_hooks instead of
29303         _gl_close_fd_maybe_socket.
29304         * lib/sockets.c: Include close-hook.h, w32sock.h.
29305         (close_fd_maybe_socket): New function, essentially from lib/close.c.
29306         (close_sockets_hook): New variable.
29307         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
29308         (gl_sockets_cleanup): Unregister it.
29309         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
29310         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
29311         * modules/close-hook: New file.
29312         * modules/close (Files): Remove lib/w32sock.h.
29313         (Depends-on): Add close-hook.
29314         (Link): Remove section.
29315         * modules/sockets (Files): Add lib/w32sock.h.
29316         (Depends-on): Add close-hook.
29317         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
29318         invocation.
29319         * NEWS: Mention that LIB_CLOSE is gone.
29320
29321 2009-03-23  Eric Blake  <ebb9@byu.net>
29322
29323         signal-tests: test previous patch
29324         * tests/test-signal.c: New file.
29325         * modules/signal-tests: Likewise.
29326
29327         signal.h: always support 'volatile sig_atomic_t'
29328         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
29329         (gl_SIGNAL_H_DEFAULTS): Add a default.
29330         * modules/signal (Makefile.am): Substitute if needed.
29331         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
29332         users can blindly add volatile.
29333         * doc/posix-headers/signal.texi (signal.h): Document it.
29334         Reported by Matthew Woehlke.
29335
29336 2009-03-23  Jim Meyering  <meyering@redhat.com>
29337
29338         pathmax: PATH_MAX: use pathconf only when available
29339         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
29340         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
29341         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
29342         This avoids a link failure in a PSP cross-compilation environment
29343         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
29344
29345         * lib/vasnprintf.c (divide): Fix typo in comment.
29346
29347 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29348
29349         * gnulib-tool (func_filter_filelist): Fix comment.
29350
29351 2009-03-20  Bruno Haible  <bruno@clisp.org>
29352
29353         Make sockets.h self-contained.
29354         * lib/sockets.c: Include sockets.h first.
29355         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
29356
29357 2009-03-19  Eric Blake  <ebb9@byu.net>
29358
29359         doc: mention more functions added in cygwin 1.7.0
29360         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
29361         addition.
29362         * doc/posix-functions/log2f.texi: Likewise.
29363
29364 2009-03-19  Jim Meyering  <meyering@redhat.com>
29365
29366         fsusage: avoid syntax error due to statement-before-declaration
29367         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
29368         after all declarations.  Reported by Matthew Woehlke in
29369         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
29370
29371 2009-03-18  Eric Blake  <ebb9@byu.net>
29372
29373         build-aux/compile: sync from automake
29374         * build-aux/compile: New file, from automake.
29375         * config/srclist.txt: Mention build-aux/compile.
29376
29377 2009-03-17  Bruno Haible  <bruno@clisp.org>
29378
29379         * lib/git-merge-changelog.c: Fix typo in comment.
29380         Reported by Reuben Thomas <rrt@sc3d.org>.
29381
29382 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
29383
29384         * m4/regex.m4: update and improve help for
29385         --without-included-regex.
29386
29387 2009-03-17  Simon Josefsson  <simon@josefsson.org>
29388
29389         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
29390         failure on missing include files.
29391
29392 2009-03-17  Eric Blake  <ebb9@byu.net>
29393
29394         doc: mention more functions added in cygwin 1.7.0
29395         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
29396         addition.
29397         * doc/posix-functions/fwscanf.texi: Likewise.
29398         * doc/posix-functions/swprintf.texi: Likewise.
29399         * doc/posix-functions/swscanf.texi: Likewise.
29400         * doc/posix-functions/vfwprintf.texi: Likewise.
29401         * doc/posix-functions/vfwscanf.texi: Likewise.
29402         * doc/posix-functions/vswprintf.texi: Likewise.
29403         * doc/posix-functions/vswscanf.texi: Likewise.
29404         * doc/posix-functions/vwprintf.texi: Likewise.
29405         * doc/posix-functions/vwscanf.texi: Likewise.
29406         * doc/posix-functions/wcscasecmp.texi: Likewise.
29407         * doc/posix-functions/wcsdup.texi: Likewise.
29408         * doc/posix-functions/wcsftime.texi: Likewise.
29409         * doc/posix-functions/wcsncasecmp.texi: Likewise.
29410         * doc/posix-functions/wprintf.texi: Likewise.
29411         * doc/posix-functions/wscanf.texi: Likewise.
29412         * doc/glibc-functions/gethostbyname2.texi: Likewise.
29413
29414 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29415
29416         maint.mk: really add $(AM_MAKEFLAGS)
29417         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
29418         was inadvertently omitted in the last commit.
29419         Spotted by Bruno Haible.
29420
29421         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
29422         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
29423         $(AM_MAKEFLAGS)' rather than plain `make'.
29424
29425         gnulib-tool: execute $MAKE not make
29426         * gnulib-tool: Default $MAKE to 'make'.
29427         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
29428         than make.  Initialize $MAKE in the do-autobuild script.
29429
29430         gnulib-tool: use $MAKE not make in generated files
29431         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
29432         make, in generated files.  Initialize $MAKE in the do-autobuild
29433         script.
29434
29435         * top/GNUmakefile (_have-git-version-gen): Fix typo.
29436
29437         GNUmakefile: disable parallelism only for multiple, recursive targets
29438         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
29439         additions in the Makefile.
29440         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
29441         by Automake.
29442         (.NOTPARALLEL): Only disable parallel builds if multiple targets
29443         are listed on the command line and at least one of them is
29444         listed in $(ALL_RECURSIVE_TARGETS).
29445
29446 2009-03-14  Bruno Haible  <bruno@clisp.org>
29447
29448         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
29449         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
29450         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
29451         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
29452         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
29453         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
29454         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
29455         unistr/u8-uctomb.
29456         * modules/unistr/u8-strchr (Depends-on): Likewise.
29457         * modules/unistr/u8-strrchr (Depends-on): Likewise.
29458         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
29459         unistr/u16-uctomb.
29460         * modules/unistr/u16-strchr (Depends-on): Likewise.
29461         * modules/unistr/u16-strrchr (Depends-on): Likewise.
29462
29463 2009-03-12  Bruno Haible  <bruno@clisp.org>
29464
29465         Work around select() bug on Interix 3.5.
29466         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
29467         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
29468         * m4/select.m4: New file.
29469         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
29470         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
29471         * modules/select (Files): Add m4/select.m4.
29472         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
29473         * modules/nanosleep (Depends-on): Add select.
29474         * modules/poll (Depends-on): Likewise.
29475         * doc/posix-functions/select.texi: Mention the Interix bug.
29476         Reported by Markus Duft <mduft@gentoo.org>.
29477
29478         * lib/select.c: Renamed from lib/winsock-select.c.
29479         * modules/select (Files): Add lib/select.c, remove
29480         lib/winsock-select.c.
29481         (configure.ac): Update.
29482
29483 2009-03-12  Jim Meyering  <meyering@redhat.com>
29484
29485         avoid gcc warnings about unused macro definitions
29486         * lib/readtokens.c (STREQ): Remove unused definition.
29487         * lib/xmalloc.c (SIZE_MAX): Likewise.
29488         * lib/openat-die.c (N_): Likewise.
29489         * lib/mountlist.c (SIZE_MAX): Remove definition.
29490         Instead, include <stdint.h>.
29491         * lib/readutmp.c: Likewise.
29492         * modules/readutmp (Depends-on): Add stdint.
29493         * modules/mountlist (Depends-on): Add stdint.
29494         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
29495
29496 2009-03-10  Bruno Haible  <bruno@clisp.org>
29497
29498         Tests for module 'mbmemcasecoll'.
29499         * modules/mbmemcasecoll-tests: New file.
29500         * tests/test-mbmemcasecoll1.sh: New file.
29501         * tests/test-mbmemcasecoll2.sh: New file.
29502         * tests/test-mbmemcasecoll3.sh: New file.
29503         * tests/test-mbmemcasecoll.c: New file.
29504
29505         New module 'mbmemcasecoll'.
29506         * lib/mbmemcasecoll.h: New file.
29507         * lib/mbmemcasecoll.c: New file.
29508         * modules/mbmemcasecoll: New file.
29509
29510         * tests/test-mbmemcasecmp.h: New file, extracted from
29511         tests/test-mbmemcasecmp.c.
29512         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
29513         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
29514         (main): Update.
29515         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
29516
29517 2009-03-09  Bruno Haible  <bruno@clisp.org>
29518
29519         Tests for module 'mbmemcasecmp'.
29520         * modules/mbmemcasecmp-tests: New file.
29521         * tests/test-mbmemcasecmp1.sh: New file.
29522         * tests/test-mbmemcasecmp2.sh: New file.
29523         * tests/test-mbmemcasecmp3.sh: New file.
29524         * tests/test-mbmemcasecmp.c: New file.
29525
29526         New module 'mbmemcasecmp'.
29527         * lib/mbmemcasecmp.h: New file.
29528         * lib/mbmemcasecmp.c: New file.
29529         * modules/mbmemcasecmp: New file.
29530
29531 2009-03-09  Bruno Haible  <bruno@clisp.org>
29532
29533         Tests for module 'unicase/ulc-casecoll'.
29534         * modules/unicase/ulc-casecoll-tests: New file.
29535         * tests/unicase/test-ulc-casecoll1.sh: New file.
29536         * tests/unicase/test-ulc-casecoll2.sh: New file.
29537         * tests/unicase/test-ulc-casecoll.c: New file.
29538
29539         New module 'unicase/ulc-casecoll'.
29540         * lib/unicase.h (ulc_casecoll): New declaration.
29541         * lib/unicase/ulc-casecoll.c: New file.
29542         * modules/unicase/ulc-casecoll: New file.
29543
29544         New module 'unicase/ulc-casexfrm'.
29545         * lib/unicase.h (ulc_casexfrm): New declaration.
29546         * lib/unicase/ulc-casexfrm.c: New file.
29547         * modules/unicase/ulc-casexfrm: New file.
29548
29549 2009-03-09  Bruno Haible  <bruno@clisp.org>
29550
29551         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
29552         invocations.
29553
29554         * m4/mbscasecmp.m4: Remove file.
29555         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
29556         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
29557
29558         * m4/mbscasestr.m4: Remove file.
29559         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
29560         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
29561
29562         * m4/mbschr.m4: Remove file.
29563         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
29564         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
29565
29566         * m4/mbscspn.m4: Remove file.
29567         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
29568         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
29569
29570         * m4/mbslen.m4: Remove file.
29571         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
29572         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
29573
29574         * m4/mbsncasecmp.m4: Remove file.
29575         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
29576         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
29577
29578         * m4/mbsnlen.m4: Remove file.
29579         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
29580         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
29581
29582         * m4/mbspbrk.m4: Remove file.
29583         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
29584         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
29585
29586         * m4/mbspcasecmp.m4: Remove file.
29587         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
29588         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
29589
29590         * m4/mbsrchr.m4: Remove file.
29591         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
29592         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
29593
29594         * m4/mbssep.m4: Remove file.
29595         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
29596         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
29597
29598         * m4/mbsspn.m4: Remove file.
29599         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
29600         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
29601
29602         * m4/mbsstr.m4: Remove file.
29603         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
29604         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
29605
29606         * m4/mbstok_r.m4: Remove file.
29607         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
29608         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
29609
29610         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
29611
29612         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
29613         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
29614
29615         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
29616
29617 2009-03-08  Bruno Haible  <bruno@clisp.org>
29618
29619         Tests for module 'unicase/ulc-casecmp'.
29620         * modules/unicase/ulc-casecmp-tests: New file.
29621         * tests/unicase/test-ulc-casecmp1.sh: New file.
29622         * tests/unicase/test-ulc-casecmp2.sh: New file.
29623         * tests/unicase/test-ulc-casecmp.c: New file.
29624
29625         New module 'unicase/ulc-casecmp'.
29626         * lib/unicase.h (ulc_casecmp): New declaration.
29627         * lib/unicase/ulc-casecmp.c: New file.
29628         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
29629         'const SRC_UNIT *'.
29630         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
29631         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
29632         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
29633         * modules/unicase/ulc-casecmp: New file.
29634
29635         Tests for module 'unicase/u32-is-cased'.
29636         * modules/unicase/u32-is-cased-tests: New file.
29637         * tests/unicase/test-u32-is-cased.c: New file.
29638
29639         Tests for module 'unicase/u16-is-cased'.
29640         * modules/unicase/u16-is-cased-tests: New file.
29641         * tests/unicase/test-u16-is-cased.c: New file.
29642
29643         Tests for module 'unicase/u8-is-cased'.
29644         * modules/unicase/u8-is-cased-tests: New file.
29645         * tests/unicase/test-u8-is-cased.c: New file.
29646         * tests/unicase/test-is-cased.h: New file.
29647
29648         New module 'unicase/u32-is-cased'.
29649         * lib/unicase/u32-is-cased.c: New file.
29650         * modules/unicase/u32-is-cased: New file.
29651
29652         New module 'unicase/u16-is-cased'.
29653         * lib/unicase/u16-is-cased.c: New file.
29654         * modules/unicase/u16-is-cased: New file.
29655
29656         New module 'unicase/u8-is-cased'.
29657         * lib/unicase/u8-is-cased.c: New file.
29658         * lib/unicase/u-is-cased.h: New file.
29659         * modules/unicase/u8-is-cased: New file.
29660
29661         Tests for module 'unicase/u32-is-casefolded'.
29662         * modules/unicase/u32-is-casefolded-tests: New file.
29663         * tests/unicase/test-u32-is-casefolded.c: New file.
29664
29665         Tests for module 'unicase/u16-is-casefolded'.
29666         * modules/unicase/u16-is-casefolded-tests: New file.
29667         * tests/unicase/test-u16-is-casefolded.c: New file.
29668
29669         Tests for module 'unicase/u8-is-casefolded'.
29670         * modules/unicase/u8-is-casefolded-tests: New file.
29671         * tests/unicase/test-u8-is-casefolded.c: New file.
29672         * tests/unicase/test-is-casefolded.h: New file.
29673
29674         New module 'unicase/u32-is-casefolded'.
29675         * lib/unicase/u32-is-casefolded.c: New file.
29676         * modules/unicase/u32-is-casefolded: New file.
29677
29678         New module 'unicase/u16-is-casefolded'.
29679         * lib/unicase/u16-is-casefolded.c: New file.
29680         * modules/unicase/u16-is-casefolded: New file.
29681
29682         New module 'unicase/u8-is-casefolded'.
29683         * lib/unicase/u8-is-casefolded.c: New file.
29684         * modules/unicase/u8-is-casefolded: New file.
29685
29686         Tests for module 'unicase/u32-is-titlecase'.
29687         * modules/unicase/u32-is-titlecase-tests: New file.
29688         * tests/unicase/test-u32-is-titlecase.c: New file.
29689
29690         Tests for module 'unicase/u16-is-titlecase'.
29691         * modules/unicase/u16-is-titlecase-tests: New file.
29692         * tests/unicase/test-u16-is-titlecase.c: New file.
29693
29694         Tests for module 'unicase/u8-is-titlecase'.
29695         * modules/unicase/u8-is-titlecase-tests: New file.
29696         * tests/unicase/test-u8-is-titlecase.c: New file.
29697         * tests/unicase/test-is-titlecase.h: New file.
29698
29699         New module 'unicase/u32-is-titlecase'.
29700         * lib/unicase/u32-is-titlecase.c: New file.
29701         * modules/unicase/u32-is-titlecase: New file.
29702
29703         New module 'unicase/u16-is-titlecase'.
29704         * lib/unicase/u16-is-titlecase.c: New file.
29705         * modules/unicase/u16-is-titlecase: New file.
29706
29707         New module 'unicase/u8-is-titlecase'.
29708         * lib/unicase/u8-is-titlecase.c: New file.
29709         * modules/unicase/u8-is-titlecase: New file.
29710
29711         Tests for module 'unicase/u32-is-lowercase'.
29712         * modules/unicase/u32-is-lowercase-tests: New file.
29713         * tests/unicase/test-u32-is-lowercase.c: New file.
29714
29715         Tests for module 'unicase/u16-is-lowercase'.
29716         * modules/unicase/u16-is-lowercase-tests: New file.
29717         * tests/unicase/test-u16-is-lowercase.c: New file.
29718
29719         Tests for module 'unicase/u8-is-lowercase'.
29720         * modules/unicase/u8-is-lowercase-tests: New file.
29721         * tests/unicase/test-u8-is-lowercase.c: New file.
29722         * tests/unicase/test-is-lowercase.h: New file.
29723
29724         New module 'unicase/u32-is-lowercase'.
29725         * lib/unicase/u32-is-lowercase.c: New file.
29726         * modules/unicase/u32-is-lowercase: New file.
29727
29728         New module 'unicase/u16-is-lowercase'.
29729         * lib/unicase/u16-is-lowercase.c: New file.
29730         * modules/unicase/u16-is-lowercase: New file.
29731
29732         New module 'unicase/u8-is-lowercase'.
29733         * lib/unicase/u8-is-lowercase.c: New file.
29734         * modules/unicase/u8-is-lowercase: New file.
29735
29736         Tests for module 'unicase/u32-is-uppercase'.
29737         * modules/unicase/u32-is-uppercase-tests: New file.
29738         * tests/unicase/test-u32-is-uppercase.c: New file.
29739
29740         Tests for module 'unicase/u16-is-uppercase'.
29741         * modules/unicase/u16-is-uppercase-tests: New file.
29742         * tests/unicase/test-u16-is-uppercase.c: New file.
29743
29744         Tests for module 'unicase/u8-is-uppercase'.
29745         * modules/unicase/u8-is-uppercase-tests: New file.
29746         * tests/unicase/test-u8-is-uppercase.c: New file.
29747         * tests/unicase/test-is-uppercase.h: New file.
29748
29749         New module 'unicase/u32-is-uppercase'.
29750         * lib/unicase/u32-is-uppercase.c: New file.
29751         * modules/unicase/u32-is-uppercase: New file.
29752
29753         New module 'unicase/u16-is-uppercase'.
29754         * lib/unicase/u16-is-uppercase.c: New file.
29755         * modules/unicase/u16-is-uppercase: New file.
29756
29757         New module 'unicase/u8-is-uppercase'.
29758         * lib/unicase/u8-is-uppercase.c: New file.
29759         * modules/unicase/u8-is-uppercase: New file.
29760
29761         New module 'unicase/u32-is-invariant'.
29762         * lib/unicase/u32-is-invariant.c: New file.
29763         * modules/unicase/u32-is-invariant: New file.
29764
29765         New module 'unicase/u16-is-invariant'.
29766         * lib/unicase/u16-is-invariant.c: New file.
29767         * modules/unicase/u16-is-invariant: New file.
29768
29769         New module 'unicase/u8-is-invariant'.
29770         * lib/unicase/u8-is-invariant.c: New file.
29771         * lib/unicase/invariant.h: New file.
29772         * lib/unicase/u-is-invariant.h: New file.
29773         * modules/unicase/u8-is-invariant: New file.
29774
29775         Tests for module 'unicase/u32-casecoll'.
29776         * modules/unicase/u32-casecoll-tests: New file.
29777         * tests/unicase/test-u32-casecoll.c: New file.
29778
29779         Tests for module 'unicase/u16-casecoll'.
29780         * modules/unicase/u16-casecoll-tests: New file.
29781         * tests/unicase/test-u16-casecoll.c: New file.
29782
29783         Tests for module 'unicase/u8-casecoll'.
29784         * modules/unicase/u8-casecoll-tests: New file.
29785         * tests/unicase/test-u8-casecoll.c: New file.
29786
29787         New module 'unicase/u32-casecoll'.
29788         * lib/unicase/u32-casecoll.c: New file.
29789         * modules/unicase/u32-casecoll: New file.
29790
29791         New module 'unicase/u16-casecoll'.
29792         * lib/unicase/u16-casecoll.c: New file.
29793         * modules/unicase/u16-casecoll: New file.
29794
29795         New module 'unicase/u8-casecoll'.
29796         * lib/unicase/u8-casecoll.c: New file.
29797         * lib/unicase/u-casecoll.h: New file.
29798         * modules/unicase/u8-casecoll: New file.
29799
29800         New module 'unicase/u32-casexfrm'.
29801         * lib/unicase/u32-casexfrm.c: New file.
29802         * modules/unicase/u32-casexfrm: New file.
29803
29804         New module 'unicase/u16-casexfrm'.
29805         * lib/unicase/u16-casexfrm.c: New file.
29806         * modules/unicase/u16-casexfrm: New file.
29807
29808         New module 'unicase/u8-casexfrm'.
29809         * lib/unicase/u8-casexfrm.c: New file.
29810         * lib/unicase/u-casexfrm.h: New file.
29811         * modules/unicase/u8-casexfrm: New file.
29812
29813         Tests for module 'unicase/u32-casecmp'.
29814         * modules/unicase/u32-casecmp-tests: New file.
29815         * tests/unicase/test-u32-casecmp.c: New file.
29816
29817         Tests for module 'unicase/u16-casecmp'.
29818         * modules/unicase/u16-casecmp-tests: New file.
29819         * tests/unicase/test-u16-casecmp.c: New file.
29820
29821         Tests for module 'unicase/u8-casecmp'.
29822         * modules/unicase/u8-casecmp-tests: New file.
29823         * tests/unicase/test-u8-casecmp.c: New file.
29824         * tests/unicase/test-casecmp.h: New file.
29825
29826         New module 'unicase/u32-casecmp'.
29827         * lib/unicase/u32-casecmp.c: New file.
29828         * modules/unicase/u32-casecmp: New file.
29829
29830         New module 'unicase/u16-casecmp'.
29831         * lib/unicase/u16-casecmp.c: New file.
29832         * modules/unicase/u16-casecmp: New file.
29833
29834         New module 'unicase/u8-casecmp'.
29835         * lib/unicase/u8-casecmp.c: New file.
29836         * lib/unicase/u-casecmp.h: New file.
29837         * modules/unicase/u8-casecmp: New file.
29838
29839         Tests for module 'unicase/u32-casefold'.
29840         * modules/unicase/u32-casefold-tests: New file.
29841         * tests/unicase/test-u32-casefold.c: New file.
29842
29843         Tests for module 'unicase/u16-casefold'.
29844         * modules/unicase/u16-casefold-tests: New file.
29845         * tests/unicase/test-u16-casefold.c: New file.
29846
29847         Tests for module 'unicase/u8-casefold'.
29848         * modules/unicase/u8-casefold-tests: New file.
29849         * tests/unicase/test-u8-casefold.c: New file.
29850
29851         New module 'unicase/u32-casefold'.
29852         * lib/unicase/u32-casefold.c: New file.
29853         * modules/unicase/u32-casefold: New file.
29854
29855         New module 'unicase/u16-casefold'.
29856         * lib/unicase/u16-casefold.c: New file.
29857         * modules/unicase/u16-casefold: New file.
29858
29859         New module 'unicase/u8-casefold'.
29860         * lib/unicase/u8-casefold.c: New file.
29861         * lib/unicase/u-casefold.h: New file.
29862         * modules/unicase/u8-casefold: New file.
29863
29864         New module 'unicase/tocasefold'.
29865         * lib/unicase/casefold.h: New file.
29866         * lib/unicase/tocasefold.c: New file.
29867         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
29868         * modules/unicase/tocasefold: New file.
29869
29870         Tests for module 'unicase/u32-totitle'.
29871         * modules/unicase/u32-totitle-tests: New file.
29872         * tests/unicase/test-u32-totitle.c: New file.
29873
29874         Tests for module 'unicase/u16-totitle'.
29875         * modules/unicase/u16-totitle-tests: New file.
29876         * tests/unicase/test-u16-totitle.c: New file.
29877
29878         Tests for module 'unicase/u8-totitle'.
29879         * modules/unicase/u8-totitle-tests: New file.
29880         * tests/unicase/test-u8-totitle.c: New file.
29881
29882         New module 'unicase/u32-totitle'.
29883         * lib/unicase/u32-totitle.c: New file.
29884         * modules/unicase/u32-totitle: New file.
29885
29886         New module 'unicase/u16-totitle'.
29887         * lib/unicase/u16-totitle.c: New file.
29888         * modules/unicase/u16-totitle: New file.
29889
29890         New module 'unicase/u8-totitle'.
29891         * lib/unicase/u8-totitle.c: New file.
29892         * lib/unicase/u-totitle.h: New file.
29893         * modules/unicase/u8-totitle: New file.
29894
29895         Tests for module 'unicase/u32-tolower'.
29896         * modules/unicase/u32-tolower-tests: New file.
29897         * tests/unicase/test-u32-tolower.c: New file.
29898
29899         Tests for module 'unicase/u16-tolower'.
29900         * modules/unicase/u16-tolower-tests: New file.
29901         * tests/unicase/test-u16-tolower.c: New file.
29902
29903         Tests for module 'unicase/u8-tolower'.
29904         * modules/unicase/u8-tolower-tests: New file.
29905         * tests/unicase/test-u8-tolower.c: New file.
29906
29907         New module 'unicase/u32-tolower'.
29908         * lib/unicase/u32-tolower.c: New file.
29909         * modules/unicase/u32-tolower: New file.
29910
29911         New module 'unicase/u16-tolower'.
29912         * lib/unicase/u16-tolower.c: New file.
29913         * modules/unicase/u16-tolower: New file.
29914
29915         New module 'unicase/u8-tolower'.
29916         * lib/unicase/u8-tolower.c: New file.
29917         * modules/unicase/u8-tolower: New file.
29918
29919         Tests for module 'unicase/u32-toupper'.
29920         * modules/unicase/u32-toupper-tests: New file.
29921         * tests/unicase/test-u32-toupper.c: New file.
29922
29923         Tests for module 'unicase/u16-toupper'.
29924         * modules/unicase/u16-toupper-tests: New file.
29925         * tests/unicase/test-u16-toupper.c: New file.
29926
29927         Tests for module 'unicase/u8-toupper'.
29928         * modules/unicase/u8-toupper-tests: New file.
29929         * tests/unicase/test-u8-toupper.c: New file.
29930
29931         New module 'unicase/u32-toupper'.
29932         * lib/unicase/u32-toupper.c: New file.
29933         * modules/unicase/u32-toupper: New file.
29934
29935         New module 'unicase/u16-toupper'.
29936         * lib/unicase/u16-toupper.c: New file.
29937         * modules/unicase/u16-toupper: New file.
29938
29939         New module 'unicase/u8-toupper'.
29940         * lib/unicase/u8-toupper.c: New file.
29941         * modules/unicase/u8-toupper: New file.
29942
29943         New module 'unicase/u32-casemap'.
29944         * lib/unicase/u32-casemap.c: New file.
29945         * modules/unicase/u32-casemap: New file.
29946
29947         New module 'unicase/u16-casemap'.
29948         * lib/unicase/u16-casemap.c: New file.
29949         * modules/unicase/u16-casemap: New file.
29950
29951         New module 'unicase/u8-casemap'.
29952         * lib/unicase/unicasemap.h: New file.
29953         * lib/unicase/u8-casemap.c: New file.
29954         * lib/unicase/u-casemap.h: New file.
29955         * modules/unicase/u8-casemap: New file.
29956
29957         New module 'unicase/special-casing'.
29958         * lib/unicase/special-casing.h: New file.
29959         * lib/unicase/special-casing.c: New file.
29960         * lib/unicase/special-casing-table.gperf: New file, generated by
29961         gen-uni-tables.c.
29962         * modules/unicase/special-casing: New file.
29963
29964         Tests for module 'unicase/locale-language'.
29965         * modules/unicase/locale-language-tests: New file.
29966         * tests/unicase/test-locale-language.sh: New file.
29967         * tests/unicase/test-locale-language.c: New file.
29968
29969         New module 'unicase/locale-language'.
29970         * lib/unicase/locale-language.c: New file.
29971         * lib/unicase/locale-languages.gperf: New file.
29972         * modules/unicase/locale-language: New file.
29973
29974         Generate more tables for case conversion and case folding.
29975         * lib/gen-uni-tables.c (SCC_*): New enum items.
29976         (struct special_casing_rule): New type.
29977         (casing_rules, num_casing_rules, allocated_casing_rules): New
29978         variables.
29979         (add_casing_rule, fill_casing_rules): New functions.
29980         (struct casefold_rule): New type.
29981         (casefolding_rules, num_casefolding_rules,
29982         allocated_casefolding_rules): New variables.
29983         (fill_casefolding_rules): New function.
29984         (unicode_casefold): New variable.
29985         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
29986         sort_casing_rules, output_casing_rules): New functions.
29987         (main): Accept to more arguments: SpecialCasing.txt and
29988         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
29989         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
29990         Output mapping for casefolding.
29991
29992         * lib/unicase.h: Include stdbool.h, uninorm.h.
29993         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
29994         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
29995         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
29996         arguments.
29997         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
29998         resultp arguments.
29999         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
30000         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
30001         resultp arguments.
30002         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
30003         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
30004         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
30005         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
30006         declarations.
30007         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
30008
30009 2009-03-08  Bruno Haible  <bruno@clisp.org>
30010
30011         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
30012         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
30013         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
30014         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
30015
30016 2009-03-07  Bruno Haible  <bruno@clisp.org>
30017
30018         Adjust u*_normcmp, u*_normcoll API.
30019         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
30020         u16_normcoll, u32_normcoll): Change failure conventions.
30021         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
30022         errno and return -1.
30023         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
30024
30025 2009-03-07  Bruno Haible  <bruno@clisp.org>
30026
30027         Tests for module 'uninorm/u32-normcoll'.
30028         * modules/uninorm/u32-normcoll-tests: New file.
30029         * tests/uninorm/test-u32-normcoll.c: New file.
30030
30031         Tests for module 'uninorm/u16-normcoll'.
30032         * modules/uninorm/u16-normcoll-tests: New file.
30033         * tests/uninorm/test-u16-normcoll.c: New file.
30034
30035         Tests for module 'uninorm/u8-normcoll'.
30036         * modules/uninorm/u8-normcoll-tests: New file.
30037         * tests/uninorm/test-u8-normcoll.c: New file.
30038
30039 2009-03-07  Bruno Haible  <bruno@clisp.org>
30040
30041         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
30042         tests/uninorm/test-u32-normcmp.c.
30043         * tests/uninorm/test-u32-normcmp.c: Include it.
30044         (test_nonascii): New function, extracted from main. Add some more
30045         tests.
30046         (main): Invoke test_ascii and test_nonascii.
30047         * modules/uninorm/u32-normcmp-tests (Files): Add
30048         tests/uninorm/test-u32-normcmp.h.
30049         (Depends-on): Remove uninorm/u32-normcmp.
30050
30051         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
30052         tests/uninorm/test-u16-normcmp.c.
30053         * tests/uninorm/test-u16-normcmp.c: Include it.
30054         (test_nonascii): New function, extracted from main. Add some more
30055         tests.
30056         (main): Invoke test_ascii and test_nonascii.
30057         * modules/uninorm/u16-normcmp-tests (Files): Add
30058         tests/uninorm/test-u16-normcmp.h.
30059         (Depends-on): Remove uninorm/u16-normcmp.
30060
30061         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
30062         tests/uninorm/test-u8-normcmp.c.
30063         * tests/uninorm/test-u8-normcmp.c: Include it.
30064         (test_nonascii): New function, extracted from main. Add some more
30065         tests.
30066         (main): Invoke test_ascii and test_nonascii.
30067         * modules/uninorm/u8-normcmp-tests (Files): Add
30068         tests/uninorm/test-u8-normcmp.h.
30069         (Depends-on): Remove uninorm/u8-normcmp.
30070
30071 2009-03-07  Bruno Haible  <bruno@clisp.org>
30072
30073         New module 'uninorm/u32-normcoll'.
30074         * lib/uninorm/u32-normcoll.c: New file.
30075         * modules/uninorm/u32-normcoll: New file.
30076
30077         New module 'uninorm/u16-normcoll'.
30078         * lib/uninorm/u16-normcoll.c: New file.
30079         * modules/uninorm/u16-normcoll: New file.
30080
30081         New module 'uninorm/u8-normcoll'.
30082         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
30083         declarations.
30084         * lib/uninorm/u8-normcoll.c: New file.
30085         * lib/uninorm/u-normcoll.h: New file.
30086         * modules/uninorm/u8-normcoll: New file.
30087
30088         New module 'uninorm/u32-normxfrm'.
30089         * lib/uninorm/u32-normxfrm.c: New file.
30090         * modules/uninorm/u32-normxfrm: New file.
30091
30092         New module 'uninorm/u16-normxfrm'.
30093         * lib/uninorm/u16-normxfrm.c: New file.
30094         * modules/uninorm/u16-normxfrm: New file.
30095
30096         New module 'uninorm/u8-normxfrm'.
30097         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
30098         declarations.
30099         * lib/uninorm/u8-normxfrm.c: New file.
30100         * lib/uninorm/u-normxfrm.h: New file.
30101         * modules/uninorm/u8-normxfrm: New file.
30102
30103 2009-03-07  Bruno Haible  <bruno@clisp.org>
30104
30105         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
30106         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
30107         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
30108
30109 2009-03-07  Bruno Haible  <bruno@clisp.org>
30110
30111         New module 'memxfrm'.
30112         * lib/memxfrm.h: New file.
30113         * lib/memxfrm.c: New file.
30114         * modules/memxfrm: New file.
30115
30116 2009-03-07  Bruno Haible  <bruno@clisp.org>
30117
30118         New module 'memcmp2'.
30119         * lib/memcmp2.h: New file.
30120         * lib/memcmp2.c: New file.
30121         * modules/memcmp2: New file.
30122
30123 2009-03-07  Bruno Haible  <bruno@clisp.org>
30124
30125         Tests for module 'uninorm/decomposing-form'.
30126         * modules/uninorm/decomposing-form-tests: New file.
30127         * tests/uninorm/test-decomposing-form.c: New file.
30128
30129         New module 'uninorm/decomposing-form'.
30130         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
30131         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
30132         Add 'decomposing_variant' field.
30133         * lib/uninorm/decomposing-form.c: New file.
30134         * lib/uninorm/nfc.c (uninorm_nfc): Update.
30135         * lib/uninorm/nfd.c (uninorm_nfd): Update.
30136         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
30137         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
30138         * modules/uninorm/decomposing-form: New file.
30139         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
30140         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
30141
30142 2009-03-07  Bruno Haible  <bruno@clisp.org>
30143
30144         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
30145         strings.
30146
30147 2009-03-06  Bruno Haible  <bruno@clisp.org>
30148
30149         Tests for module 'uninorm/u32-normcmp'.
30150         * tests/uninorm/test-u32-normcmp.c: New file.
30151         * modules/uninorm/u32-normcmp-tests: New file.
30152
30153         Tests for module 'uninorm/u16-normcmp'.
30154         * tests/uninorm/test-u16-normcmp.c: New file.
30155         * modules/uninorm/u16-normcmp-tests: New file.
30156
30157         Tests for module 'uninorm/u8-normcmp'.
30158         * tests/uninorm/test-u8-normcmp.c: New file.
30159         * modules/uninorm/u8-normcmp-tests: New file.
30160
30161         New module 'uninorm/u32-normcmp'.
30162         * lib/uninorm/u32-normcmp.c: New file.
30163         * modules/uninorm/u32-normcmp: New file.
30164
30165         New module 'uninorm/u16-normcmp'.
30166         * lib/uninorm/u16-normcmp.c: New file.
30167         * modules/uninorm/u16-normcmp: New file.
30168
30169         New module 'uninorm/u8-normcmp'.
30170         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
30171         declarations.
30172         * lib/uninorm/u8-normcmp.c: New file.
30173         * lib/uninorm/u-normcmp.h: New file.
30174         * modules/uninorm/u8-normcmp: New file.
30175
30176 2009-03-06  Bruno Haible  <bruno@clisp.org>
30177
30178         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
30179         Reported by Eric Blake.
30180
30181 2009-03-06  Eric Blake  <ebb9@byu.net>
30182             Bruno Haible  <bruno@clisp.org>
30183
30184         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
30185         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
30186         condition.
30187         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
30188         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
30189         condition.
30190         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
30191
30192 2009-03-06  Eric Blake  <ebb9@byu.net>
30193
30194         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
30195         to avoid compiler warnings.
30196         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
30197
30198 2009-03-05  Bruno Haible  <bruno@clisp.org>
30199
30200         * tests/test-ftell.c (main): Disable test beyond end of file on
30201         FreeMiNT.
30202         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
30203
30204 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
30205
30206         * lib/filevercmp.c: Move hidden files up in ordering.
30207         * tests/test-filevercmp.c: Add tests for hidden files.
30208
30209 2009-03-04  Bruno Haible  <bruno@clisp.org>
30210
30211         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
30212         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
30213         AM_CFLAGS.
30214         Reported by Simon Josefsson.
30215
30216 2009-03-03  Bruno Haible  <bruno@clisp.org>
30217
30218         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
30219         Reported by Simon Josefsson.
30220
30221         * doc/ld-version-script.texi: Update node reference.
30222
30223 2009-03-03  Bruno Haible  <bruno@clisp.org>
30224
30225         * modules/visibility (License): Change to 'unlimited'.
30226         Suggested by Simon Josefsson.
30227
30228 2009-03-03  Jim Meyering  <meyering@redhat.com>
30229
30230         unlinkdir: cannot_unlink_dir may modify process state
30231         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
30232         it's neither thread-safe nor appropriate for use in a library.
30233
30234 2009-03-03  Eric Blake  <ebb9@byu.net>
30235
30236         test-closein: silence test under Darwin
30237         * tests/test-closein.sh: Ignore stderr from cat, since we don't
30238         care if it dies from EPIPE or EBADF.
30239
30240 2009-03-03  Bruno Haible  <bruno@clisp.org>
30241
30242         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
30243         earlier.
30244         * doc/visibility.texi: Fix @node and @section.
30245
30246 2009-03-03  Simon Josefsson  <simon@josefsson.org>
30247
30248         * doc/gnulib.texi: Link to sections for ld version script and
30249         visibility.
30250         * doc/visibility.texi: Add @node and @section.
30251         * modules/ld-version-script: New module.
30252         * m4/ld-version-script.m4: New file.
30253         * doc/ld-version-script.texi: New file.
30254
30255 2009-03-02  David Lutterkort  <lutter@redhat.com>
30256
30257         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
30258         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30259
30260 2009-03-02  Bruno Haible  <bruno@clisp.org>
30261
30262         * doc/visibility.texi: Mention libtool's -export-symbols option.
30263
30264 2009-03-02  Jim Meyering  <meyering@redhat.com>
30265
30266         announce-gen: new option: --no-print-checksums
30267         * build-aux/announce-gen (usage): Describe it.
30268         (print_checksums): Print a newline here, not in the [*] footnote.
30269         (main): Honor it.
30270
30271 2009-03-01  Bruno Haible  <bruno@clisp.org>
30272
30273         Use socklen_t in the native Windows replacements prototypes.
30274         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
30275         instead of 'int'.
30276         * lib/getsockopt.c (rpl_getsockopt): Likewise.
30277         * lib/setsockopt.c (rpl_setsockopt): Likewise.
30278         * modules/getsockopt (Depends-on): Add socklen.
30279         * modules/setsockopt (Depends-on): Add socklen.
30280
30281 2009-03-01  Bruno Haible  <bruno@clisp.org>
30282
30283         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
30284         least 4.2.
30285
30286 2009-03-01  Eric Blake  <ebb9@byu.net>
30287             Bruno Haible  <bruno@clisp.org>
30288
30289         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
30290         error messages.
30291         * lib/wait-process.c (wait_subprocess): Omit error message about
30292         deadly signal sent to the child of termsigp != NULL.
30293
30294 2009-03-01  Eric Blake  <ebb9@byu.net>
30295
30296         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
30297
30298 2009-03-01  Bruno Haible  <bruno@clisp.org>
30299
30300         Avoid a gcc warning.
30301         * tests/test-sched.c (b): Make global.
30302         Reported by Eric Blake.
30303
30304 2009-01-19  Martin Lambers  <marlam@marlam.de>
30305
30306         Provide POSIX semantics for socket timeout options on W32.
30307         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
30308         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
30309         * modules/setsockopt: Depend on sys_time module for struct timeval.
30310         * modules/getsockopt: Depend on sys_time module for struct timeval.
30311
30312 2009-03-01  Simon Josefsson  <simon@josefsson.org>
30313
30314         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
30315         __USE_GNU, for consistency with netdb.in.h.
30316         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30317
30318 2009-03-01  Bruno Haible  <bruno@clisp.org>
30319
30320         More support for FreeMiNT.
30321         * lib/fseeko.c (rpl_fseeko): Complete last commit.
30322         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30323
30324 2009-03-01  Bruno Haible  <bruno@clisp.org>
30325
30326         More support for FreeMiNT.
30327         * lib/fpurge.c (fpurge): Correct last commit.
30328         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30329
30330 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30331
30332         Fix unportable awk script in vc-list-files.
30333         * build-aux/vc-list-files: In the replacement awk script, use
30334         substr with a second argument of 1, not zero.
30335         Report by Simon Josefsson.
30336
30337 2009-02-28  Bruno Haible  <bruno@clisp.org>
30338
30339         More support for FreeMiNT.
30340         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
30341         to FreeMiNT today.
30342         * lib/fwriting.c (fwriting): Likewise.
30343         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
30344
30345 2009-02-28  Bruno Haible  <bruno@clisp.org>
30346
30347         * tests/test-freadseek.c (main): Disable test beyond end of file on
30348         FreeMiNT.
30349         * tests/test-ftello.c (main): Likewise.
30350         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
30351
30352 2009-02-28  Bruno Haible  <bruno@clisp.org>
30353
30354         Add tentative support for FreeMiNT.
30355         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
30356         * lib/fpurge.c (fpurge): Likewise.
30357         * lib/freadable.c (freadable): Likewise.
30358         * lib/freading.c (freading): Likewise.
30359         * lib/freadptr.c (freadptr): Likewise.
30360         * lib/freadseek.c (freadptrinc): Likewise.
30361         * lib/fseeko.c (rpl_fseeko): Likewise.
30362         * lib/fseterr.c (fseterr): Likewise.
30363         * lib/fwritable.c (fwritable): Likewise.
30364         * lib/fwriting.c (fwriting): Likewise.
30365         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
30366         Hourihane.
30367         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30368
30369 2009-02-28  Bruno Haible  <bruno@clisp.org>
30370
30371         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
30372         SIGCHLD.
30373         Reported by Jim Meyering.
30374
30375 2009-02-28  Bruno Haible  <bruno@clisp.org>
30376
30377         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
30378         Mention the results of these tests on various platforms.
30379         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
30380         order.
30381         * doc/posix-functions/printf.texi: Likewise.
30382         * doc/posix-functions/snprintf.texi: Likewise.
30383         * doc/posix-functions/sprintf.texi: Likewise.
30384         * doc/posix-functions/vfprintf.texi: Likewise.
30385         * doc/posix-functions/vprintf.texi: Likewise.
30386         * doc/posix-functions/vsnprintf.texi: Likewise.
30387         * doc/posix-functions/vsprintf.texi: Likewise.
30388         * doc/glibc-functions/obstack_printf.texi: Likewise.
30389         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
30390
30391 2009-02-28  Bruno Haible  <bruno@clisp.org>
30392
30393         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
30394         Reported by Loïc Minier <lool@dooz.org>.
30395
30396 2009-02-27  Bruno Haible  <bruno@clisp.org>
30397
30398         * gnulib-tool (func_import): Make the sed expression used to create the
30399         sed script for updating the .gitignore file POSIX compliant.
30400         Reported by Eric Blake.
30401
30402 2009-02-27  Bruno Haible  <bruno@clisp.org>
30403
30404         * gnulib-tool (sed): Don't alias as "sed --posix".
30405         Reported by Eric Blake.
30406
30407 2009-02-27  Bruno Haible  <bruno@clisp.org>
30408
30409         Avoid test link errors.
30410         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
30411         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
30412         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
30413         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
30414         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30415
30416 2009-02-27  Bruno Haible  <bruno@clisp.org>
30417
30418         Avoid spurious "(cached)" in configure output.
30419         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
30420         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
30421         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
30422         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
30423         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
30424         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
30425         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
30426         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
30427         Reported by Eric Blake.
30428
30429 2009-02-27  Eric Blake  <ebb9@byu.net>
30430
30431         printf: fix regression in previous patch
30432         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
30433
30434 2009-02-27  Bruno Haible  <bruno@clisp.org>
30435
30436         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
30437         value.
30438         * lib/stdint.in.h: Likewise.
30439         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
30440
30441 2009-02-27  Eric Blake  <ebb9@byu.net>
30442
30443         doc: mention more functions added in cygwin 1.7.0
30444         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
30445         addition.
30446         * doc/posix-functions/open_wmemstream.texi: Likewise.
30447         * doc/posix-functions/wcsnlen.texi: Likewise.
30448         * doc/posix-functions/wcsnrtombs.texi: Likewise.
30449         * doc/posix-functions/wcstod.texi: Likewise.
30450         * doc/posix-functions/wcstof.texi: Likewise.
30451         * doc/posix-functions/wcstoimax.texi: Likewise.
30452         * doc/posix-functions/wcstok.texi: Likewise.
30453         * doc/posix-functions/wcstoumax.texi: Likewise.
30454
30455         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
30456         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
30457         * doc/posix-functions/fprintf.texi: Update.
30458         * doc/posix-functions/printf.texi: Update.
30459         * doc/posix-functions/snprintf.texi: Update.
30460         * doc/posix-functions/sprintf.texi: Update.
30461         * doc/posix-functions/vfprintf.texi: Update.
30462         * doc/posix-functions/vprintf.texi: Update.
30463         * doc/posix-functions/vsnprintf.texi: Update.
30464         * doc/posix-functions/vsprintf.texi: Update.
30465         * doc/glibc-functions/obstack_printf.texi: Update.
30466         * doc/glibc-functions/obstack_vprintf.texi: Update.
30467
30468 2009-02-26  Eric Blake  <ebb9@byu.net>
30469
30470         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
30471         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
30472         compilation bug by using runtime conversion.
30473         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30474         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
30475         * modules/ceill-tests (Files): Use nan.h.
30476         * modules/floorl-tests (Files): Likewise.
30477         * modules/frexpl-tests (Files): Likewise.
30478         * modules/isnanl-tests (Files): Likewise.
30479         * modules/ldexpl-tests (Files): Likewise.
30480         * modules/roundl-tests (Files): Likewise.
30481         * modules/truncl-tests (Files): Likewise.
30482         * tests/test-ceill.c (main): Use a working NaN.
30483         * tests/test-floorl.c (main): Likewise.
30484         * tests/test-frexpl.c (main): Likewise.
30485         * tests/test-isnan.c (test_long_double): Likewise.
30486         * tests/test-isnanl.h (main): Likewise.
30487         * tests/test-ldexpl.h (main): Likewise.
30488         * tests/test-roundl.h (main): Likewise.
30489         * tests/test-truncl.h (main): Likewise.
30490         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
30491
30492 2009-02-26  Eric Blake  <ebb9@byu.net>
30493             Bruno Haible  <bruno@clisp.org>
30494
30495         Work around a *printf bug with %ls on Solaris.
30496         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
30497         precision is specified, sprintf stops converting the wide string
30498         argument when the number of bytes that have been produced by this
30499         conversion equals or exceeds the precision.
30500         * doc/posix-functions/fprintf.texi: Update.
30501         * doc/posix-functions/printf.texi: Update.
30502         * doc/posix-functions/snprintf.texi: Update.
30503         * doc/posix-functions/sprintf.texi: Update.
30504         * doc/posix-functions/vfprintf.texi: Update.
30505         * doc/posix-functions/vprintf.texi: Update.
30506         * doc/posix-functions/vsnprintf.texi: Update.
30507         * doc/posix-functions/vsprintf.texi: Update.
30508         * doc/glibc-functions/obstack_printf.texi: Update.
30509         * doc/glibc-functions/obstack_vprintf.texi: Update.
30510
30511 2009-02-26  Eric Blake  <ebb9@byu.net>
30512
30513         stdlib: favor compiler check of random.h
30514         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
30515         to avoid an ObjC random.h installed by Swarm.
30516
30517 2009-02-26  Bruno Haible  <bruno@clisp.org>
30518
30519         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
30520         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
30521         Reported by Gary V. Vaughan <gary@gnu.org>.
30522
30523 2009-02-26  Bruno Haible  <bruno@clisp.org>
30524
30525         Fix *printf behaviour regarding the %ls directive.
30526         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
30527         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
30528         NEED_PRINTF_DIRECTIVE_LS.
30529         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
30530         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30531         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30532         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
30533         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
30534         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
30535         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
30536         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30537         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30538         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30539         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30540         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
30541         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30542         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30543         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30544         * doc/posix-functions/fprintf.texi: Update.
30545         * doc/posix-functions/printf.texi: Update.
30546         * doc/posix-functions/snprintf.texi: Update.
30547         * doc/posix-functions/sprintf.texi: Update.
30548         * doc/posix-functions/vfprintf.texi: Update.
30549         * doc/posix-functions/vprintf.texi: Update.
30550         * doc/posix-functions/vsnprintf.texi: Update.
30551         * doc/posix-functions/vsprintf.texi: Update.
30552         * doc/glibc-functions/obstack_printf.texi: Update.
30553         * doc/glibc-functions/obstack_vprintf.texi: Update.
30554         Reported by Eric Blake.
30555
30556 2009-02-25  Bruno Haible  <bruno@clisp.org>
30557
30558         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
30559         with known value.
30560         Reported by Gary V. Vaughan <gary@gnu.org>.
30561
30562 2009-02-25  Bruno Haible  <bruno@clisp.org>
30563
30564         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
30565         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
30566         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
30567         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
30568         Reported by Gary V. Vaughan <gary@gnu.org>.
30569
30570 2009-02-25  Bruno Haible  <bruno@clisp.org>
30571
30572         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
30573         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
30574         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
30575         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
30576         Reported by Gary V. Vaughan <gary@gnu.org>.
30577
30578 2009-02-25  Eric Blake  <ebb9@byu.net>
30579
30580         tests: skip fseek/ftell tests if ungetc is broken
30581         * m4/ungetc.m4: New file.
30582         * modules/fseek-tests: Split test, so ungetc dependency is
30583         separate from rest of test.
30584         * modules/fseeko-tests: Likewise.
30585         * modules/ftell-tests: Likewise.
30586         * modules/ftello-tests: Likewise.
30587         * tests/test-fseek.c (main): Isolate ungetc dependency.
30588         * tests/test-fseeko.c (main): Likewise.
30589         * tests/test-ftell.c (main): Likewise.
30590         * tests/test-ftello.c (main): Likewise.
30591         * tests/test-fseek2.sh: New file.
30592         * tests/test-fseeko2.sh: Likewise.
30593         * tests/test-ftell2.sh: Likewise.
30594         * tests/test-ftello2.sh: Likewise.
30595
30596 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
30597
30598         test-getaddrinfo: fix usage of skip return code 77
30599         * tests/test-gettaddrinfo.c: Return skip code 77 only
30600         for first occurance of skip (4x77 is not 77)
30601
30602 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
30603
30604         strtod: avoid C99 decl-after-statement
30605         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
30606
30607 2009-02-24  Eric Blake  <ebb9@byu.net>
30608
30609         strtod: detect HP-UX 11.31 bug
30610         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
30611         Reported by Gary V. Vaughan.
30612
30613 2009-02-23  Bruno Haible  <bruno@clisp.org>
30614
30615         Fix invalid read past end of memory block.
30616         * lib/vasnprintf.c (DCHAR_SET): Define.
30617         (local_wcslen): Define only when needed.
30618         (local_strnlen, local_wcsnlen): New functions.
30619         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
30620         directives that involve a conversion ourselves.
30621         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
30622         wcsnlen, mbrtowc, wcrtomb.
30623         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
30624         * tests/test-vasprintf-posix.c (test_function): Likewise.
30625         * tests/test-snprintf-posix.h (test_function): Likewise.
30626         * tests/test-sprintf-posix.h (test_function): Likewise.
30627         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30628
30629 2009-02-22  Bruno Haible  <bruno@clisp.org>
30630
30631         Implement new clarified decomposition of Hangul syllables.
30632         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
30633         of type LTV, return only a pairwise decomposition.
30634         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
30635         Likewise.
30636         * tests/uninorm/test-decomposition.c (main): Updated expected result.
30637         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
30638         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
30639
30640 2009-02-22  Bruno Haible  <bruno@clisp.org>
30641
30642         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
30643         zero-length results and shrink excess allocated memory.
30644         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
30645         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
30646         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
30647         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
30648         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
30649         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
30650         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
30651         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
30652         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
30653         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
30654         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
30655         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
30656
30657 2009-02-21  Bruno Haible  <bruno@clisp.org>
30658
30659         * doc/gnulib.texi: Include safe-alloc.texi earlier.
30660         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
30661         spaces after a period. Put a space between a macro name and its
30662         argument list. Trivial rewordings.
30663         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
30664         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
30665         (main): Return 0 explicitly.
30666
30667 2009-02-21  Bruno Haible  <bruno@clisp.org>
30668
30669         Tests for module 'uninorm/filter'.
30670         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
30671         * modules/uninorm/filter-tests: New file.
30672
30673         New module 'uninorm/filter'.
30674         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
30675         uninorm_filter_flush, uninorm_filter_free): New declarations.
30676         * lib/uninorm/uninorm-filter.c: New file.
30677         * modules/uninorm/filter: New file.
30678
30679 2009-02-21  Bruno Haible  <bruno@clisp.org>
30680
30681         Tests for module 'uninorm/nfkc'.
30682         * tests/uninorm/test-nfkc.c: New file.
30683         * tests/uninorm/test-u8-nfkc.c: New file.
30684         * tests/uninorm/test-u16-nfkc.c: New file.
30685         * tests/uninorm/test-u32-nfkc.c: New file.
30686         * tests/uninorm/test-u32-nfkc-big.sh: New file.
30687         * tests/uninorm/test-u32-nfkc-big.c: New file.
30688         * modules/uninorm/nfkc-tests: New file.
30689
30690         New module 'uninorm/nfkc'.
30691         * lib/uninorm/nfkc.c: New file.
30692         * modules/uninorm/nfkc: New file.
30693
30694         Tests for module 'uninorm/nfkd'.
30695         * tests/uninorm/test-nfkd.c: New file.
30696         * tests/uninorm/test-u8-nfkd.c: New file.
30697         * tests/uninorm/test-u16-nfkd.c: New file.
30698         * tests/uninorm/test-u32-nfkd.c: New file.
30699         * tests/uninorm/test-u32-nfkd-big.sh: New file.
30700         * tests/uninorm/test-u32-nfkd-big.c: New file.
30701         * modules/uninorm/nfkd-tests: New file.
30702
30703         New module 'uninorm/nfkd'.
30704         * lib/uninorm/nfkd.c: New file.
30705         * modules/uninorm/nfkd: New file.
30706
30707         Tests for module 'uninorm/nfc'.
30708         * tests/uninorm/test-nfc.c: New file.
30709         * tests/uninorm/test-u8-nfc.c: New file.
30710         * tests/uninorm/test-u16-nfc.c: New file.
30711         * tests/uninorm/test-u32-nfc.c: New file.
30712         * tests/uninorm/test-u32-nfc-big.sh: New file.
30713         * tests/uninorm/test-u32-nfc-big.c: New file.
30714         * modules/uninorm/nfc-tests: New file.
30715
30716         New module 'uninorm/nfc'.
30717         * lib/uninorm/nfc.c: New file.
30718         * modules/uninorm/nfc: New file.
30719
30720         Tests for module 'uninorm/nfd'.
30721         * tests/uninorm/test-nfd.c: New file.
30722         * tests/uninorm/test-u8-nfd.c: New file.
30723         * tests/uninorm/test-u16-nfd.c: New file.
30724         * tests/uninorm/test-u32-nfd.c: New file.
30725         * tests/uninorm/test-u32-nfd-big.sh: New file.
30726         * tests/uninorm/test-u32-nfd-big.c: New file.
30727         * tests/uninorm/test-u32-normalize-big.h: New file.
30728         * tests/uninorm/test-u32-normalize-big.c: New file.
30729         * tests/uninorm/NormalizationTest.txt: New file, created from
30730         Unicode 5.1.0 NormalizationTest.txt.
30731         * modules/uninorm/nfd-tests: New file.
30732
30733         New module 'uninorm/nfd'.
30734         * lib/uninorm/nfd.c: New file.
30735         * modules/uninorm/nfd: New file.
30736
30737         New module 'uninorm/u32-normalize'.
30738         * lib/uninorm/u32-normalize.c: New file.
30739         * modules/uninorm/u32-normalize: New file.
30740
30741         New module 'uninorm/u16-normalize'.
30742         * lib/uninorm/u16-normalize.c: New file.
30743         * modules/uninorm/u16-normalize: New file.
30744
30745         New module 'uninorm/u8-normalize'.
30746         * lib/uninorm/u8-normalize.c: New file.
30747         * lib/uninorm/normalize-internal.h: New file.
30748         * lib/uninorm/u-normalize-internal.h: New file.
30749         * modules/uninorm/u8-normalize: New file.
30750
30751         New module 'uninorm/decompose-internal'.
30752         * lib/uninorm/decompose-internal.c: New file.
30753         * modules/uninorm/decompose-internal: New file.
30754
30755         Tests for module 'uninorm/composition'.
30756         * tests/uninorm/test-composition.c: New file.
30757         * modules/uninorm/composition-tests: New file.
30758
30759         New module 'uninorm/composition'.
30760         * lib/uninorm/composition.c: New file.
30761         * lib/uninorm/composition-table.gperf: New file, generated by
30762         gen-uni-tables.
30763         * modules/uninorm/composition: New file.
30764
30765         Tests for module 'uninorm/compat-decomposition'.
30766         * tests/uninorm/test-compat-decomposition.c: New file.
30767         * modules/uninorm/compat-decomposition-tests: New file.
30768
30769         New module 'uninorm/compat-decomposition'.
30770         * lib/uninorm/decompose-internal.h: New file.
30771         * lib/uninorm/compat-decomposition.c: New file.
30772         * modules/uninorm/compat-decomposition: New file.
30773
30774         Tests for module 'uninorm/canonical-decomposition'.
30775         * tests/uninorm/test-canonical-decomposition.c: New file.
30776         * modules/uninorm/canonical-decomposition-tests: New file.
30777
30778         New module 'uninorm/canonical-decomposition'.
30779         * lib/uninorm/canonical-decomposition.c: New file.
30780         * modules/uninorm/canonical-decomposition: New file.
30781
30782         Tests for module 'uninorm/decomposition'.
30783         * tests/uninorm/test-decomposition.c: New file.
30784         * modules/uninorm/decomposition-tests: New file.
30785
30786         New module 'uninorm/decomposition'.
30787         * lib/uninorm/decomposition.c: New file.
30788         * modules/uninorm/decomposition: New file.
30789
30790         New module 'uninorm/decomposition-table'.
30791         * lib/uninorm/decomposition-table.h: New file.
30792         * lib/uninorm/decomposition-table.c: New file.
30793         * lib/uninorm/decomposition-table1.h: New file, generated by
30794         gen-uni-tables.
30795         * lib/uninorm/decomposition-table2.h: New file, generated by
30796         gen-uni-tables.
30797         * modules/uninorm/decomposition-table: New file.
30798
30799         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
30800         (UC_DECOMP_*): New enumeration items.
30801         (get_decomposition): New function.
30802         (struct decomp_table): New type.
30803         (output_decomposition, output_decomposition_tables): New functions.
30804         (unicode_composition_exclusions): New variable.
30805         (fill_composition_exclusions, debug_output_composition_tables): New
30806         functions.
30807         (main): Accept one more argument. Invoke fill_composition_exclusions.
30808         Output decomposition and composition tables.
30809
30810         New module 'uninorm/base'.
30811         * lib/uninorm.h: New file.
30812         * lib/unictype.h: Update comment.
30813         * modules/uninorm/base: New file.
30814
30815 2009-02-21  David Lutterkort  <lutter@redhat.com>
30816
30817         Tests for module 'safe-alloc'.
30818         * tests/test-safe-alloc.c: New file.
30819         * modules/safe-alloc-tests: New file.
30820
30821         New module 'safe-alloc'.
30822         * lib/safe-alloc.h: New file.
30823         * lib/safe-alloc.c: New file.
30824         * m4/safe-alloc.m4: New file.
30825         * modules/safe-alloc: New file.
30826         * doc/safe-alloc.texi: New file.
30827         * doc/gnulib.texi: Include it.
30828         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
30829         safe-alloc.
30830
30831 2009-02-18  Bruno Haible  <bruno@clisp.org>
30832
30833         Fix link error on non-glibc systems.
30834         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
30835         variable.
30836         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30837
30838 2009-02-18  Jim Meyering  <meyering@redhat.com>
30839
30840         fts: avoid used-uninitialized error due to recent change
30841         * lib/fts.c (fts_read): Guard uses of the new member,
30842         parent->fts_n_dirs_remaining, since it's not relevant for
30843         the parent of a directory specified on the command-line.
30844
30845 2009-02-17  James Youngman  <jay@gnu.org>
30846             Bruno Haible  <bruno@clisp.org>
30847
30848         * m4/include_next.m4: Reformulate comment.
30849
30850 2009-02-16  Jim Meyering  <meyering@redhat.com>
30851
30852         fts: add #if guards so that the fts_lgpl module still builds
30853         * lib/fts.c: Guard just-added hash-table-using parts with
30854         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
30855         Reported by Simon Josefsson.
30856
30857 2009-02-15  Bruno Haible  <bruno@clisp.org>
30858
30859         * modules/array-mergesort-tests: New file.
30860         * tests/test-array-mergesort.c: New file.
30861
30862         New module 'array-mergesort'.
30863         * modules/array-mergesort: New file.
30864         * lib/array-mergesort.h: New file.
30865
30866 2009-02-15  Bruno Haible  <bruno@clisp.org>
30867
30868         Fix 2009-02-07 commit.
30869         * lib/gen-uni-tables.c (output_predicate, output_category,
30870         output_combclass, output_bidi_category, output_decimal_digit,
30871         output_digit, output_numeric, output_mirror, output_scripts,
30872         output_ident_category, output_simple_mapping): Fix format directives.
30873         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
30874
30875 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
30876
30877         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
30878         fixes are available from IBM.
30879
30880 2009-02-13  Jim Meyering  <meyering@redhat.com>
30881
30882         fts: arrange not to stat non-directories in more cases
30883         This makes GNU find (when it doesn't need to stat each file)
30884         *much* more efficient at traversing reiserfs file systems.
30885         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
30886         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
30887         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
30888         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
30889         (leaf_optimization_applies): New function.
30890         (LCO_hash, LCO_compare): New helper functions.
30891         (link_count_optimize_ok): New function.
30892         (fts_stat): Initialize new member (if dir).
30893         (fts_read): Decrement parent's fts_n_dirs_remaining count if
30894         we've just stat'ed a directory.  Skip the stat call when possible.
30895         ---
30896         Note this AFS-related exchange:
30897         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
30898         and note find's pioctl call in find/fstype.c.
30899         But that is necessary only if you want to enable the
30900         optimization for AFS, and for now, I don't.
30901
30902         fts: move a function definition "up" (no semantic change)
30903         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
30904         "up" to precede upcoming use of a related function.
30905
30906 2009-02-11  Jim Meyering  <meyering@redhat.com>
30907
30908         fts: correct internal computation of nlinks (optimization-related)
30909         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
30910         whether the current entry is a directory, so don't test it.
30911
30912 2009-02-10  Bruno Haible  <bruno@clisp.org>
30913
30914         Tests for module 'uniwbrk/ulc-wordbreaks'.
30915         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
30916         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
30917         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
30918
30919         Tests for module 'uniwbrk/u32-wordbreaks'.
30920         * modules/uniwbrk/u32-wordbreaks-tests: New file.
30921         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
30922
30923         Tests for module 'uniwbrk/u16-wordbreaks'.
30924         * modules/uniwbrk/u16-wordbreaks-tests: New file.
30925         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
30926
30927         Tests for module 'uniwbrk/u8-wordbreaks'.
30928         * modules/uniwbrk/u8-wordbreaks-tests: New file.
30929         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
30930
30931 2009-02-10  Bruno Haible  <bruno@clisp.org>
30932
30933         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
30934         property.
30935         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
30936         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
30937         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
30938
30939 2009-02-10  Simon Josefsson  <simon@josefsson.org>
30940
30941         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
30942         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
30943
30944 2009-02-10  Bruno Haible  <bruno@clisp.org>
30945
30946         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
30947         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
30948         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
30949         * lib/unilbrk/u8-possible-linebreaks.c: Update.
30950         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
30951         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
30952
30953 2009-02-09  Simon Josefsson  <simon@josefsson.org>
30954
30955         * lib/sockets.h (gl_fd_to_handle): New function.
30956
30957         * tests/test-sockets.c: Call gl_fd_to_handle.
30958
30959 2009-02-09  Bruno Haible  <bruno@clisp.org>
30960
30961         * doc/havelib.texi: Document the conventions on bi-arch systems.
30962
30963 2009-02-08  Bruno Haible  <bruno@clisp.org>
30964
30965         Document the AC_LIB_LINKFLAGS macro.
30966         * doc/havelib.texi: New file, mostly written on 2005-05-24.
30967         * doc/gnulib.texi: Include it.
30968
30969 2009-02-08  Bruno Haible  <bruno@clisp.org>
30970
30971         Fix wrong order of sections, compared to TOC.
30972         * doc/gnulib.texi: Include relocatable-maint.texi after the
30973         "Regular expressions" node, not before.
30974
30975 2009-02-08  Bruno Haible  <bruno@clisp.org>
30976
30977         Tests for module 'unicase/totitle'.
30978         * modules/unicase/totitle-tests: New file.
30979
30980         Tests for module 'unicase/tolower'.
30981         * modules/unicase/tolower-tests: New file.
30982
30983         Tests for module 'unicase/toupper'.
30984         * modules/unicase/toupper-tests: New file.
30985         * tests/unicase/test-mapping-part1.h: New file.
30986         * tests/unicase/test-mapping-part2.h: New file.
30987
30988         New module 'unicase/totitle'.
30989         * modules/unicase/totitle: New file.
30990         * lib/unicase/totitle.c: New file.
30991
30992         New module 'unicase/tolower'.
30993         * modules/unicase/tolower: New file.
30994         * lib/unicase/tolower.c: New file.
30995
30996         New module 'unicase/toupper'.
30997         * modules/unicase/toupper: New file.
30998         * lib/unicase/toupper.c: New file.
30999         * lib/unicase/simple-mapping.h: New file.
31000
31001         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
31002         (mapping_table): New structure.
31003         (output_simple_mapping): New function.
31004         (main): Invoke output_simple_mapping_test and output_simple_mapping.
31005         * modules/gen-uni-tables (Description): Update.
31006         * lib/unicase/toupper.h: New file, automatically generated by
31007         gen-uni-tables.
31008         * lib/unicase/tolower.h: New file, automatically generated by
31009         gen-uni-tables.
31010         * lib/unicase/totitle.h: New file, automatically generated by
31011         gen-uni-tables.
31012         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
31013         gen-uni-tables.
31014         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
31015         gen-uni-tables.
31016         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
31017         gen-uni-tables.
31018
31019         New module 'unicase/base'.
31020         * modules/unicase/base: New file.
31021         * lib/unicase.h: New file.
31022
31023 2009-02-08  Bruno Haible  <bruno@clisp.org>
31024
31025         New module 'uniwbrk/ulc-wordbreaks'.
31026         * modules/uniwbrk/ulc-wordbreaks: New file.
31027         * lib/uniwbrk/ulc-wordbreaks.c: New file.
31028
31029         New module 'uniwbrk/u32-wordbreaks'.
31030         * modules/uniwbrk/u32-wordbreaks: New file.
31031         * lib/uniwbrk/u32-wordbreaks.c: New file.
31032
31033         New module 'uniwbrk/u16-wordbreaks'.
31034         * modules/uniwbrk/u16-wordbreaks: New file.
31035         * lib/uniwbrk/u16-wordbreaks.c: New file.
31036
31037         New module 'uniwbrk/u8-wordbreaks'.
31038         * modules/uniwbrk/u8-wordbreaks: New file.
31039         * lib/uniwbrk/u8-wordbreaks.c: New file.
31040         * lib/uniwbrk/u-wordbreaks.h: New file.
31041
31042         New module 'uniwbrk/table'.
31043         * modules/uniwbrk/table: New file.
31044         * lib/uniwbrk/wbrktable.h: New file.
31045         * lib/uniwbrk/wbrktable.c: New file.
31046
31047         New module 'uniwbrk/wordbreak-property'.
31048         * modules/uniwbrk/wordbreak-property: New file.
31049         * lib/uniwbrk/wordbreak-property.c: New file.
31050
31051         * lib/gen-uni-tables.c (WBP_*): New enum items.
31052         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
31053         (unicode_org_wbp): New variable.
31054         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
31055         New functions.
31056         (wbp_table): New structure.
31057         (output_wbp, output_wbrk_tables): New functions.
31058         (main): Accept additional argument. Invoke fill_org_wbp,
31059         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
31060         output_wbrk_tables.
31061         * modules/gen-uni-tables (Description): Update.
31062         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
31063         gen-uni-tables.
31064
31065         New module 'uniwbrk/base'.
31066         * modules/uniwbrk/base: New file.
31067         * lib/uniwbrk.h: New file.
31068
31069 2009-02-08  Bruno Haible  <bruno@clisp.org>
31070
31071         Update to Unicode 5.1.0.
31072         * lib/gen-uni-tables.c (is_property_alphabetic): Include
31073         U+2185..U+2188.
31074         (is_property_default_ignorable_code_point): Don't include characters
31075         of category Cc or Cs and not-a-characters.
31076         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
31077         U+0D79, U+109E, U+109F, U+A60C.
31078         * lib/unictype/bidi_of.h: Regenerated.
31079         * lib/unictype/blocks.h: Regenerated.
31080         * lib/unictype/categ_C.h: Regenerated.
31081         * lib/unictype/categ_Cf.h: Regenerated.
31082         * lib/unictype/categ_Cn.h: Regenerated.
31083         * lib/unictype/categ_L.h: Regenerated.
31084         * lib/unictype/categ_Ll.h: Regenerated.
31085         * lib/unictype/categ_Lm.h: Regenerated.
31086         * lib/unictype/categ_Lo.h: Regenerated.
31087         * lib/unictype/categ_Lu.h: Regenerated.
31088         * lib/unictype/categ_M.h: Regenerated.
31089         * lib/unictype/categ_Mc.h: Regenerated.
31090         * lib/unictype/categ_Me.h: Regenerated.
31091         * lib/unictype/categ_Mn.h: Regenerated.
31092         * lib/unictype/categ_N.h: Regenerated.
31093         * lib/unictype/categ_Nd.h: Regenerated.
31094         * lib/unictype/categ_Nl.h: Regenerated.
31095         * lib/unictype/categ_No.h: Regenerated.
31096         * lib/unictype/categ_P.h: Regenerated.
31097         * lib/unictype/categ_Pd.h: Regenerated.
31098         * lib/unictype/categ_Pe.h: Regenerated.
31099         * lib/unictype/categ_Pf.h: Regenerated.
31100         * lib/unictype/categ_Pi.h: Regenerated.
31101         * lib/unictype/categ_Po.h: Regenerated.
31102         * lib/unictype/categ_Ps.h: Regenerated.
31103         * lib/unictype/categ_S.h: Regenerated.
31104         * lib/unictype/categ_Sk.h: Regenerated.
31105         * lib/unictype/categ_Sm.h: Regenerated.
31106         * lib/unictype/categ_So.h: Regenerated.
31107         * lib/unictype/categ_of.h: Regenerated.
31108         * lib/unictype/combining.h: Regenerated.
31109         * lib/unictype/ctype_alnum.h: Regenerated.
31110         * lib/unictype/ctype_alpha.h: Regenerated.
31111         * lib/unictype/ctype_graph.h: Regenerated.
31112         * lib/unictype/ctype_lower.h: Regenerated.
31113         * lib/unictype/ctype_print.h: Regenerated.
31114         * lib/unictype/ctype_punct.h: Regenerated.
31115         * lib/unictype/ctype_upper.h: Regenerated.
31116         * lib/unictype/decdigit.h: Regenerated.
31117         * lib/unictype/digit.h: Regenerated.
31118         * lib/unictype/mirror.h: Regenerated.
31119         * lib/unictype/numeric.h: Regenerated.
31120         * lib/unictype/pr_alphabetic.h: Regenerated.
31121         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
31122         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
31123         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
31124         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
31125         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
31126         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
31127         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
31128         * lib/unictype/pr_combining.h: Regenerated.
31129         * lib/unictype/pr_dash.h: Regenerated.
31130         * lib/unictype/pr_decimal_digit.h: Regenerated.
31131         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
31132         * lib/unictype/pr_deprecated.h: Regenerated.
31133         * lib/unictype/pr_diacritic.h: Regenerated.
31134         * lib/unictype/pr_extender.h: Regenerated.
31135         * lib/unictype/pr_format_control.h: Regenerated.
31136         * lib/unictype/pr_grapheme_base.h: Regenerated.
31137         * lib/unictype/pr_grapheme_extend.h: Regenerated.
31138         * lib/unictype/pr_grapheme_link.h: Regenerated.
31139         * lib/unictype/pr_id_continue.h: Regenerated.
31140         * lib/unictype/pr_id_start.h: Regenerated.
31141         * lib/unictype/pr_ideographic.h: Regenerated.
31142         * lib/unictype/pr_ignorable_control.h: Regenerated.
31143         * lib/unictype/pr_lowercase.h: Regenerated.
31144         * lib/unictype/pr_math.h: Regenerated.
31145         * lib/unictype/pr_numeric.h: Regenerated.
31146         * lib/unictype/pr_other_alphabetic.h: Regenerated.
31147         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
31148         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
31149         * lib/unictype/pr_other_id_continue.h: Regenerated.
31150         * lib/unictype/pr_other_lowercase.h: Regenerated.
31151         * lib/unictype/pr_other_math.h: Regenerated.
31152         * lib/unictype/pr_punctuation.h: Regenerated.
31153         * lib/unictype/pr_sentence_terminal.h: Regenerated.
31154         * lib/unictype/pr_soft_dotted.h: Regenerated.
31155         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
31156         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
31157         * lib/unictype/pr_unified_ideograph.h: Regenerated.
31158         * lib/unictype/pr_uppercase.h: Regenerated.
31159         * lib/unictype/pr_xid_continue.h: Regenerated.
31160         * lib/unictype/pr_xid_start.h: Regenerated.
31161         * lib/unictype/pr_zero_width.h: Regenerated.
31162         * lib/unictype/scripts.h: Regenerated.
31163         * lib/unictype/scripts_byname.gperf: Regenerated.
31164         * lib/unictype/sy_java_ident.h: Regenerated.
31165         * lib/unilbrk/lbrkprop1.h: Regenerated.
31166         * lib/unilbrk/lbrkprop2.h: Regenerated.
31167         * tests/unictype/test-categ_C.c: Regenerated.
31168         * tests/unictype/test-categ_Cf.c: Regenerated.
31169         * tests/unictype/test-categ_Cn.c: Regenerated.
31170         * tests/unictype/test-categ_L.c: Regenerated.
31171         * tests/unictype/test-categ_Ll.c: Regenerated.
31172         * tests/unictype/test-categ_Lm.c: Regenerated.
31173         * tests/unictype/test-categ_Lo.c: Regenerated.
31174         * tests/unictype/test-categ_Lu.c: Regenerated.
31175         * tests/unictype/test-categ_M.c: Regenerated.
31176         * tests/unictype/test-categ_Mc.c: Regenerated.
31177         * tests/unictype/test-categ_Me.c: Regenerated.
31178         * tests/unictype/test-categ_Mn.c: Regenerated.
31179         * tests/unictype/test-categ_N.c: Regenerated.
31180         * tests/unictype/test-categ_Nd.c: Regenerated.
31181         * tests/unictype/test-categ_Nl.c: Regenerated.
31182         * tests/unictype/test-categ_No.c: Regenerated.
31183         * tests/unictype/test-categ_P.c: Regenerated.
31184         * tests/unictype/test-categ_Pd.c: Regenerated.
31185         * tests/unictype/test-categ_Pe.c: Regenerated.
31186         * tests/unictype/test-categ_Pf.c: Regenerated.
31187         * tests/unictype/test-categ_Pi.c: Regenerated.
31188         * tests/unictype/test-categ_Po.c: Regenerated.
31189         * tests/unictype/test-categ_Ps.c: Regenerated.
31190         * tests/unictype/test-categ_S.c: Regenerated.
31191         * tests/unictype/test-categ_Sk.c: Regenerated.
31192         * tests/unictype/test-categ_Sm.c: Regenerated.
31193         * tests/unictype/test-categ_So.c: Regenerated.
31194         * tests/unictype/test-ctype_alnum.c: Regenerated.
31195         * tests/unictype/test-ctype_alpha.c: Regenerated.
31196         * tests/unictype/test-ctype_graph.c: Regenerated.
31197         * tests/unictype/test-ctype_lower.c: Regenerated.
31198         * tests/unictype/test-ctype_print.c: Regenerated.
31199         * tests/unictype/test-ctype_punct.c: Regenerated.
31200         * tests/unictype/test-ctype_upper.c: Regenerated.
31201         * tests/unictype/test-decdigit.h: Regenerated.
31202         * tests/unictype/test-digit.h: Regenerated.
31203         * tests/unictype/test-numeric.h: Regenerated.
31204         * tests/unictype/test-pr_alphabetic.c: Regenerated.
31205         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
31206         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
31207         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
31208         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
31209         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
31210         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
31211         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
31212         * tests/unictype/test-pr_combining.c: Regenerated.
31213         * tests/unictype/test-pr_dash.c: Regenerated.
31214         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
31215         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
31216         * tests/unictype/test-pr_deprecated.c: Regenerated.
31217         * tests/unictype/test-pr_diacritic.c: Regenerated.
31218         * tests/unictype/test-pr_extender.c: Regenerated.
31219         * tests/unictype/test-pr_format_control.c: Regenerated.
31220         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
31221         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
31222         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
31223         * tests/unictype/test-pr_id_continue.c: Regenerated.
31224         * tests/unictype/test-pr_id_start.c: Regenerated.
31225         * tests/unictype/test-pr_ideographic.c: Regenerated.
31226         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
31227         * tests/unictype/test-pr_lowercase.c: Regenerated.
31228         * tests/unictype/test-pr_math.c: Regenerated.
31229         * tests/unictype/test-pr_numeric.c: Regenerated.
31230         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
31231         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
31232         Regenerated.
31233         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
31234         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
31235         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
31236         * tests/unictype/test-pr_other_math.c: Regenerated.
31237         * tests/unictype/test-pr_punctuation.c: Regenerated.
31238         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
31239         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
31240         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
31241         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
31242         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
31243         * tests/unictype/test-pr_uppercase.c: Regenerated.
31244         * tests/unictype/test-pr_xid_continue.c: Regenerated.
31245         * tests/unictype/test-pr_xid_start.c: Regenerated.
31246         * tests/unictype/test-pr_zero_width.c: Regenerated.
31247
31248         Update to Unicode 5.1.0.
31249         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
31250         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
31251         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
31252         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
31253         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
31254         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
31255         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
31256         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
31257         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
31258         (nonspacing_table_ind): Update.
31259         * tests/uniwidth/test-uc_width2.sh: Update expected result.
31260
31261         Update to Unicode 5.1.0.
31262         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
31263         code transform.
31264         * lib/uniname/uniname.c (unicode_character_name,
31265         unicode_name_character): Add the range 0x1Fxxx to the code transform.
31266         * lib/uniname/uninames.h: Regenerated.
31267         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
31268
31269 2009-02-07  Bruno Haible  <bruno@clisp.org>
31270
31271         Merge gen-ctype and gen-lbrk into a single program.
31272         * lib/gen-uni-tables.c: New file, incorporating
31273         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
31274         Add directory prefixes to the names of the generated files.
31275         * lib/unictype/gen-ctype.c: Remove file.
31276         * lib/unilbrk/gen-lbrk.c: Remove file.
31277         * modules/gen-uni-tables: New file.
31278         * modules/unictype/gen-ctype: Remove file.
31279         * modules/unilbrk/gen-lbrk: Remove file.
31280
31281 2009-02-07  Bruno Haible  <bruno@clisp.org>
31282
31283         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
31284
31285         New module 'unistr/u32-strcoll'.
31286         * modules/unistr/u32-strcoll: New file.
31287         * lib/unistr/u32-strcoll.c: New file.
31288
31289         New module 'unistr/u16-strcoll'.
31290         * modules/unistr/u16-strcoll: New file.
31291         * lib/unistr/u16-strcoll.c: New file.
31292
31293         New module 'unistr/u8-strcoll'.
31294         * modules/unistr/u8-strcoll: New file.
31295         * lib/unistr/u8-strcoll.c: New file.
31296         * lib/unistr/u-strcoll.h: New file.
31297
31298 2009-02-07  Bruno Haible  <bruno@clisp.org>
31299
31300         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
31301         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
31302         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
31303         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
31304         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
31305         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
31306
31307 2009-02-07  Bruno Haible  <bruno@clisp.org>
31308
31309         Make 64-bit clean.
31310         * lib/unictype/gen-ctype.c (output_predicate, output_category,
31311         output_combclass, output_bidi_category, output_decimal_digit,
31312         output_digit, output_numeric, output_mirror, output_scripts,
31313         output_ident_category): Use proper width specifier in format strings.
31314
31315 2009-02-07  Bruno Haible  <bruno@clisp.org>
31316
31317         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
31318         failure behaviour.
31319
31320 2009-02-07  Jim Meyering  <meyering@redhat.com>
31321
31322         regex: avoid compilation failure with upcoming gcc-4.4
31323         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
31324         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
31325         "... error: integer overflow in preprocessor expression".
31326
31327 2009-02-05  Ben Pfaff  <blp@gnu.org>
31328
31329         Fix link errors on Windows when close module is used.
31330         * modules/close: Add $(LIB_CLOSE) to Link section.
31331         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
31332         $(LIB_CLOSE) on Windows.
31333
31334 2009-02-05  Jim Meyering  <meyering@redhat.com>
31335
31336         still avoid unused-parameter warnings, but do it cleanly
31337         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
31338         (get_fs_usage): Cast to void instead.
31339         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
31340         (dev_from_mount_options, read_file_system_list): Cast to void.
31341         Prompted by Bruno Haible.
31342
31343 2009-02-04  Jim Meyering  <meyering@redhat.com>
31344
31345         fsusage.c: correct copyright year
31346         * lib/fsusage.c: Reflect year in which the change is pushed into
31347
31348         avoid misc. warnings
31349         * lib/fsusage.c (UNUSED_PARAM): Define.
31350         (get_fs_usage): Mark parameter "disk" as unused.
31351         * lib/getugroups.c (getgrent): Use "void" in prototype.
31352         * lib/mountlist.c: Mark unused parameters.
31353         (read_file_system_list): Declare a local with "const".
31354         * lib/nanosleep.c (getnow): Declare static.
31355         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
31356
31357         dirfd: set errno upon failure
31358         * lib/dirfd.c: Include <errno.h>.
31359         Set errno to ENOTSUP when returning -1.
31360         * modules/dirfd (Depends-on): Add errno.
31361         Suggested by John Kodis <kodis@comcast.net>.
31362
31363 2009-02-01  Bruno Haible  <bruno@clisp.org>
31364
31365         Don't assume sizeof (long) >= sizeof (void *).
31366         * lib/memcmp.c: Include stdint.h.
31367         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
31368         srcp2 to 'const byte *'.
31369         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
31370         types to uintptr_t.
31371         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
31372         * modules/memcmp (Depends-on): Add stdint.
31373         Reported by Ozkan Sezer <sezeroz@gmail.com>.
31374
31375 2009-01-30  Eric Blake  <ebb9@byu.net>
31376
31377         fix more require-before-expand issues
31378         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
31379         expand, AC_PROG_AWK.
31380         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
31381
31382 2009-01-28  Eric Blake  <ebb9@byu.net>
31383
31384         version-etc: use consistent URL formatting
31385         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
31386         Improve formatting.  Use fputs for string without %.
31387
31388 2009-01-28  Jim Meyering  <meyering@redhat.com>
31389
31390         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
31391         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
31392         "underquoted definition of NAME" from autoconf-2.59.
31393
31394 2009-01-28  Bruno Haible  <bruno@clisp.org>
31395
31396         * doc/gnulib.texi: Add "Obsolete modules" to index.
31397
31398 2009-01-28  Jim Meyering  <meyering@redhat.com>
31399
31400         useless-if-before-free: recognize more variants
31401         * build-aux/useless-if-before-free: Also recognize e.g.,
31402         if (NULL != p) free (p);
31403
31404 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
31405
31406         test-getaddrinfo: skip (don't fail) this test when there's no network
31407         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
31408         on the presumption that it means you lack network access.
31409
31410 2009-01-26  Jim Meyering  <meyering@redhat.com>
31411
31412         fflush: avoid warnings on modern systems
31413         * lib/fflush.c (rpl_fflush): Move declarations of locals,
31414         pos and result, into scopes where they're used.
31415
31416 2009-01-26  Eric Blake  <ebb9@byu.net>
31417
31418         Silence warning reintroduced by recent extensions patch.
31419         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
31420         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
31421         autoconf.
31422
31423         Backport improved autoconf semantics of AC_DEFUN_ONCE.
31424         * m4/00gnulib.m4: New file.
31425         * gnulib-tool (func_get_filelist): Always use it.
31426         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
31427         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
31428
31429 2009-01-25  Bruno Haible  <bruno@clisp.org>
31430
31431         Make test-quotearg work on MacOS X and AIX.
31432         * tests/test-quotearg.sh: New file.
31433         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
31434         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
31435         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
31436         include <libintl.h>.
31437         (fake_locale): Remove variable.
31438         (gettext, dgettext, dcgettext): Remove functions.
31439         (main): Instead of setting a fake locale, set a real locale. Call
31440         textdomain and bindtextdomain.
31441         * modules/quotearg-tests (Files): Add the new files.
31442         (Depends-on): Add gettext, setenv, unsetenv.
31443         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
31444         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
31445         Augment TESTS_ENVIRONMENT.
31446
31447 2009-01-25  Bruno Haible  <bruno@clisp.org>
31448
31449         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
31450         fr_FR.ISO8859-1 locale on MacOS X.
31451         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
31452         ja_JP.eucJP locale on MacOS X.
31453         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
31454         zh_CN.GB18030 locale on MacOS X.
31455
31456 2009-01-25  Bruno Haible  <bruno@clisp.org>
31457
31458         Avoid link errors on MacOS X 10.3.
31459         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
31460         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
31461
31462 2009-01-25  Bruno Haible  <bruno@clisp.org>
31463
31464         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
31465         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
31466         * modules/pipe (Files): Remove m4/posix_spawn.m4.
31467         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
31468         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
31469         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
31470         posix_spawnattr_init, posix_spawnattr_setsigmask,
31471         posix_spawnattr_setflags, posix_spawnattr_destroy.
31472
31473         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
31474         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
31475         * modules/execute (Files): Remove m4/posix_spawn.m4.
31476         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
31477         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
31478         posix_spawnattr_init, posix_spawnattr_setsigmask,
31479         posix_spawnattr_setflags, posix_spawnattr_destroy.
31480
31481 2009-01-25  Bruno Haible  <bruno@clisp.org>
31482
31483         * lib/glthread/threadlib.c: Include <stdlib.h>.
31484
31485 2009-01-25  Bruno Haible  <bruno@clisp.org>
31486
31487         * lib/glthread/threadlib.c (dummy): New declaration.
31488
31489 2009-01-25  Bruno Haible  <bruno@clisp.org>
31490
31491         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
31492         multibyte characters also for the GB18030 encoding. Don't crash when
31493         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
31494
31495 2009-01-25  Bruno Haible  <bruno@clisp.org>
31496
31497         Avoid redefining 'struct random_data' on OSF/1 5.1.
31498         * lib/stdlib.in.h: Include <random.h> if it exists.
31499         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
31500         HAVE_RANDOM_H. Include <random.h> when testing whether
31501         'struct random_data' exists.
31502         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
31503
31504 2009-01-25  Bruno Haible  <bruno@clisp.org>
31505
31506         Don't install charset.alias on MacOS X >= 10.3.
31507         * lib/localcharset.c (DARWIN7): New macro.
31508         (get_charset_aliases): Hardcode the result for Darwin7.
31509         * modules/localcharset (install-exec-local): Don't install
31510         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
31511
31512 2009-01-25  Bruno Haible  <bruno@clisp.org>
31513
31514         Don't install charset.alias on mingw and Cygwin.
31515         * modules/localcharset (install-exec-local): Don't install
31516         charset.alias on mingw and Cygwin, if the file does not yet exist.
31517         The result for these platforms is hardcoded in localcharset.c.
31518
31519 2009-01-25  Bruno Haible  <bruno@clisp.org>
31520
31521         Make it possible again to use AC_GNU_SOURCE together with gnulib.
31522         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
31523         before requiring AC_USE_SYSTEM_EXTENSIONS.
31524
31525 2009-01-25  Jim Meyering  <meyering@redhat.com>
31526
31527         c-strtod: avoid warnings
31528         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
31529         "assignment discards qualifiers from pointer target type" warnings.
31530
31531 2009-01-24  Bruno Haible  <bruno@clisp.org>
31532
31533         Add support for non-UTF-8 locales on MacOS X.
31534         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
31535         canonical encodings. For Darwin 7 and newer, don't map traditional
31536         encodings to UTF-8.
31537         Reported by Vincent Lefevre <vincent@vinc17.org>
31538         at <http://savannah.gnu.org/bugs/?25235>.
31539
31540 2009-01-24  Bruno Haible  <bruno@clisp.org>
31541
31542         * doc/gnulib.texi (Obsolete modules): New section.
31543         Reported by Mike Frysinger <vapier@gentoo.org>.
31544
31545 2009-01-24  Bruno Haible  <bruno@clisp.org>
31546
31547         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
31548         (%.dvi): New rule.
31549
31550 2009-01-24  Bruno Haible  <bruno@clisp.org>
31551
31552         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
31553         Reported by Eric Blake.
31554
31555 2009-01-24  Bruno Haible  <bruno@clisp.org>
31556
31557         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
31558         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
31559         Reported by Gary V. Vaughan <gary@gnu.org>.
31560
31561 2009-01-24  Bruno Haible  <bruno@clisp.org>
31562
31563         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
31564
31565 2009-01-23  Bruno Haible  <bruno@clisp.org>
31566
31567         Make c-strtod, c-strtold usable in libraries.
31568         * lib/c-strtod.c: Include string.h instead of xalloc.h.
31569         (C_STRTOD): Call strdup instead of xstrdup.
31570         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
31571         * modules/c-strtold (Depends-on): Likewise.
31572         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
31573         * NEWS: Mention the change.
31574         Reported by Michael Gold <mgold@ncf.ca>.
31575
31576 2009-01-23  Jim Meyering  <meyering@redhat.com>
31577
31578         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
31579         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
31580         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
31581
31582 2009-01-23  Simon Josefsson  <simon@josefsson.org>
31583
31584         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
31585         GNU CoreUtils.
31586         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
31587         * modules/version-etc (Description): Update.
31588
31589 2009-01-22  Bruno Haible  <bruno@clisp.org>
31590
31591         Cache the C locale object.
31592         * lib/c-strtod.c (c_locale_cache): New variable.
31593         (c_locale): New function.
31594         (C_STRTOD): Use it, and don't call freelocale.
31595         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
31596         Suggested by Paolo Bonzini.
31597
31598 2009-01-21  Bruno Haible  <bruno@clisp.org>
31599
31600         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
31601         conditions other than overflow.
31602
31603 2009-01-21  Bruno Haible  <bruno@clisp.org>
31604
31605         * lib/c-strtod.c: Include errno.h.
31606         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
31607         value from STRTOD_L and STRTOD.
31608
31609 2009-01-21  Bruno Haible  <bruno@clisp.org>
31610         and Jim Meyering  <meyering@redhat.com>
31611
31612         nanosleep: skip configure test (fail it) for apple universal builds
31613         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
31614         universal builds, assume that nanosleep does not work.
31615         * modules/nanosleep (Depends-on): Add multiarch.
31616
31617         mktime: skip configure test (fail it) for apple universal builds
31618         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
31619         universal builds, assume that mktime does not work.
31620         * modules/mktime (Depends-on): Add multiarch.
31621
31622 2009-01-21  Eric Blake  <ebb9@byu.net>
31623
31624         multiarch: avoid expand-before-require warning
31625         * modules/multiarch (configure.ac): Require, rather than expand,
31626         gl_MULTIARCH.
31627         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
31628         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
31629         enforce that all clients require it.  Partial reversion of
31630         2008-12-29 patch.
31631
31632         error: avoid expand-before-require warning
31633         * modules/errno (configure.ac): Require, rather than expand,
31634         gl_HEADER_ERRNO_H.
31635         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
31636         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
31637         enforce that all clients require it.
31638
31639         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
31640         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
31641         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
31642         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
31643
31644 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
31645
31646         Revert:
31647         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
31648
31649         regex: do not depend on obsolete modules.
31650         * modules/regex: Remove memcmp and memmove.
31651
31652 2009-01-20  Bruno Haible  <bruno@clisp.org>
31653
31654         Make the 'link' module link on Windows NT 4.
31655         * lib/link.c (_WIN32_WINNT): Don't define.
31656         (CreateHardLinkFuncType): New type.
31657         (CreateHardLinkFunc, initialized): New variables.
31658         (initialize): New function.
31659         (link): Invoke CreateHardLink indirectly through the function pointer.
31660
31661 2009-01-20  Bruno Haible  <bruno@clisp.org>
31662
31663         Fix compilation failure on mingw.
31664         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
31665
31666 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
31667
31668         * doc/c-strtod.texi: Mention a couple of restrictions.
31669
31670 2009-01-20  Jim Meyering  <meyering@redhat.com>
31671
31672         gettimeofday: move more declarations out of functions
31673         * lib/gettimeofday.c: Move extern declarations of tzset and
31674         gmtime out of containing functions.  Prompted by Bruno Haible.
31675
31676 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
31677
31678         regex: do not depend on obsolete modules.
31679         * modules/regex: Remove memcmp and memmove.
31680
31681 2009-01-19  Bruno Haible  <bruno@clisp.org>
31682
31683         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
31684         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
31685         gl_BIGENDIAN, not AC_C_BIGENDIAN.
31686         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
31687         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
31688
31689 2009-01-19  Bruno Haible  <bruno@clisp.org>
31690
31691         * tests/test-link.c: Include <errno.h>.
31692         (main): Exit with code 77 when a hard link cannot be created due to
31693         the file system.
31694         * tests/test-link.sh: Skip test when a hard link cannot be created due
31695         to the file system.
31696         Suggested by Eric Blake.
31697
31698 2009-01-19  Martin Lambers  <marlam@marlam.de>
31699
31700         * modules/link-tests: New file.
31701         * tests/test-link.sh: New file.
31702         * tests/test-link.c: New file.
31703
31704 2009-01-19  Eric Blake  <ebb9@byu.net>
31705
31706         doc: mention another function added in cygwin 1.7.0
31707         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
31708         Another new function in cygwin 1.7.
31709
31710 2009-01-19  Bruno Haible  <bruno@clisp.org>
31711
31712         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
31713         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
31714         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
31715         gl_BIGENDIAN, not AC_C_BIGENDIAN.
31716         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
31717         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
31718         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31719         * m4/md4.m4 (gl_MD4): Likewise.
31720         * m4/md5.m4 (gl_MD5): Likewise.
31721         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
31722         * m4/sha1.m4 (gl_SHA1): Likewise.
31723         * m4/sha256.m4 (gl_SHA256): Likewise.
31724         * m4/sha512.m4 (gl_SHA512): Likewise.
31725
31726 2009-01-19  Bruno Haible  <bruno@clisp.org>
31727
31728         * modules/uniname/uniname-tests (Depends-on): Add progname.
31729         * tests/uniname/test-uninames.c: Include progname.h.
31730         (main): Call set_program_name.
31731
31732         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
31733         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
31734         (main): Call set_program_name.
31735
31736         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
31737         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
31738         (main): Call set_program_name.
31739
31740         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
31741         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
31742         (main): Call set_program_name.
31743
31744         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
31745         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
31746         (main): Call set_program_name.
31747
31748         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
31749         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
31750         (main): Call set_program_name.
31751
31752         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
31753         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
31754         (main): Call set_program_name.
31755
31756         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
31757         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
31758         (main): Call set_program_name.
31759
31760         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
31761         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
31762         (main): Call set_program_name.
31763
31764 2009-01-19  Eric Blake  <ebb9@byu.net>
31765
31766         test-unistd: test previous patch
31767         * tests/test-unistd.c: Test *_FILENO macros.
31768
31769         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
31770         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31771         Guarantee a definition.
31772         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
31773         * modules/unistd-safer (Depends-on): Add dependency on unistd.
31774         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
31775         * lib/dup-safer.c (STDERR_FILENO): Likewise.
31776         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31777         Likewise.
31778         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
31779         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
31780         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31781         Likewise.
31782         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
31783         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
31784         (STDERR_FILENO): Likewise.
31785         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
31786         (STDERR_FILENO): Likewise.
31787         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
31788         (STDERR_FILENO): Likewise.
31789         Reported by Elbert Pol.
31790
31791 2009-01-19  Eric Blake  <ebb9@byu.net>
31792
31793         doc: mention more functions added in cygwin 1.7.0
31794         * doc/posix-functions/abort.texi (abort): Update wording related
31795         to cygwin.
31796         * doc/posix-functions/daylight.texi (daylight): Likewise.
31797         * doc/posix-functions/optarg.texi (optarg): Likewise.
31798         * doc/posix-functions/optarg.texi (opterr): Likewise.
31799         * doc/posix-functions/optarg.texi (optind): Likewise.
31800         * doc/posix-functions/optarg.texi (optopt): Likewise.
31801         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
31802         worked in 1.5.x, and was withdrawn in 1.7.
31803         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
31804         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
31805         cygwin versions.
31806         * doc/posix-functions/perror.texi (perror): Likewise.
31807         * doc/posix-functions/printf.texi (printf): Likewise.
31808         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
31809         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
31810         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
31811         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
31812         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
31813         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
31814         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
31815         Likewise.
31816         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
31817         Likewise.
31818         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
31819         this function.
31820         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
31821         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
31822         Likewise.
31823         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
31824         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
31825         * doc/posix-functions/confstr.texi (confstr): Likewise.
31826         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
31827         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
31828         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
31829         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
31830         * doc/posix-functions/fputws.texi (fputws): Likewise.
31831         * doc/posix-functions/fwide.texi (fwide): Likewise.
31832         * doc/posix-functions/getwc.texi (getwc): Likewise.
31833         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
31834         * doc/posix-functions/putwc.texi (putwc): Likewise.
31835         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
31836         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
31837         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
31838         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
31839         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
31840         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
31841         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
31842         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
31843         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
31844         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
31845         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
31846
31847 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
31848
31849         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
31850         * lib/ioctl.c: Include <sys/ioctl.h>.
31851
31852 2009-01-19  Simon Josefsson  <simon@josefsson.org>
31853
31854         * modules/getdate-tests (Depends-on): Add progname.
31855         * tests/test-getdate.c: Use progname module, to avoid link errors
31856         on non-glibc systems.
31857
31858 2009-01-18  Simon Josefsson  <simon@josefsson.org>
31859
31860         * modules/filenamecat-tests (Depends-on): Add progname.
31861         * modules/fstrcmp-tests (Depends-on): Likewise.
31862
31863         * tests/test-filenamecat.c: Use progname module, to avoid link
31864         errors on non-glibc systems.
31865         * tests/test-fstrcmp.c: Likewise.
31866
31867 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
31868
31869         gettimeofday: avoid warning: nested extern declaration of 'localtime'
31870         * lib/gettimeofday.c: Move extern declaration out of function.
31871
31872 2009-01-18  Bruno Haible  <bruno@clisp.org>
31873
31874         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
31875         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
31876         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
31877
31878 2009-01-18  Bruno Haible  <bruno@clisp.org>
31879
31880         * lib/strftime.c (MEMPCPY): Remove unused macro.
31881         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
31882
31883 2009-01-18  Martin Lambers  <marlam@marlam.de>
31884
31885         New module 'link'.
31886         * lib/unistd.in.h (link): New declaration.
31887         * lib/link.c: New file.
31888         * m4/link.m4: New file.
31889         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
31890         HAVE_LINK.
31891         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
31892         * modules/link: New file.
31893         * doc/posix-functions/link.texi: Mention the new module.
31894
31895 2009-01-18  Bruno Haible  <bruno@clisp.org>
31896
31897         * tests/test-avltree_list.c (main): Call set_program_name.
31898         * tests/test-avltree_oset.c (main): Likewise.
31899         * tests/test-obstack-printf.c: Include progname.h.
31900         (main): Call set_program_name.
31901         * tests/test-quotearg.c: Include progname.h.
31902         (main): Call set_program_name.
31903         * tests/test-xmemdup0.c: Include progname.h.
31904         (main): Call set_program_name.
31905
31906 2009-01-18  Bruno Haible  <bruno@clisp.org>
31907
31908         New module 'alphasort'.
31909         * lib/dirent.in.h (alphasort): New declaration.
31910         * lib/alphasort.c: New file, from glibc with modifications.
31911         * m4/alphasort.m4: New file.
31912         * modules/alphasort: New file.
31913         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
31914         HAVE_ALPHASORT.
31915         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
31916         HAVE_ALPHASORT.
31917         * doc/posix-functions/alphasort.texi: Mention the new module and the
31918         portability problems.
31919
31920 2009-01-18  Bruno Haible  <bruno@clisp.org>
31921
31922         New module 'scandir'.
31923         * lib/dirent.in.h (scandir): New declaration.
31924         * lib/scandir.c: New file, from glibc with modifications.
31925         * m4/scandir.m4: New file.
31926         * modules/scandir: New file.
31927         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
31928         HAVE_SCANDIR.
31929         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
31930         HAVE_SCANDIR.
31931         * doc/posix-functions/scandir.texi: Mention the new module and the
31932         portability problems.
31933
31934 2009-01-17  Bruno Haible  <bruno@clisp.org>
31935
31936         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
31937         Update documentation.
31938         (func_remove_suffix): Escape all dots in the suffix. Update
31939         documentation.
31940         (func_filter_filelist): Update documentation.
31941         Reported by Ralf Wildenhues.
31942
31943 2009-01-17  Bruno Haible  <bruno@clisp.org>
31944
31945         * modules/dprintf-posix-tests: New file.
31946         * tests/test-dprintf-posix.sh: New file.
31947         * tests/test-dprintf-posix.c: New file.
31948
31949         New modules 'dprintf', 'dprintf-posix'.
31950         * lib/stdio.in.h (dprintf): New declaration.
31951         * lib/dprintf.c: New file.
31952         * m4/dprintf.m4: New file.
31953         * m4/dprintf-posix.m4: New file.
31954         * modules/dprintf: New file.
31955         * modules/dprintf-posix: New file.
31956         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
31957         HAVE_DPRINTF, REPLACE_DPRINTF.
31958         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
31959         HAVE_DPRINTF, REPLACE_DPRINTF.
31960         * doc/posix-functions/dprintf.texi: Mention the new modules.
31961
31962 2009-01-17  Bruno Haible  <bruno@clisp.org>
31963
31964         * modules/vdprintf-posix-tests: New file.
31965         * tests/test-vdprintf-posix.sh: New file.
31966         * tests/test-vdprintf-posix.c: New file.
31967
31968         New modules 'vdprintf', 'vdprintf-posix'.
31969         * lib/stdio.in.h (vdprintf): New declaration.
31970         * lib/vdprintf.c: New file.
31971         * m4/vdprintf.m4: New file.
31972         * m4/vdprintf-posix.m4: New file.
31973         * modules/vdprintf: New file.
31974         * modules/vdprintf-posix: New file.
31975         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
31976         HAVE_VDPRINTF, REPLACE_VDPRINTF.
31977         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
31978         HAVE_VDPRINTF, REPLACE_VDPRINTF.
31979         * doc/posix-functions/vdprintf.texi: Mention the new modules.
31980
31981 2009-01-17  Bruno Haible  <bruno@clisp.org>
31982
31983         Fix replacement of fopen on mingw.
31984         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
31985         mingw.
31986
31987 2009-01-17  Bruno Haible  <bruno@clisp.org>
31988
31989         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
31990         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
31991
31992 2009-01-17  Bruno Haible  <bruno@clisp.org>
31993
31994         Avoid test-fflush2.sh failure on mingw.
31995         * tests/test-fflush2.c: Include binary-io.h.
31996         (main): Put standard input into binary mode.
31997         * modules/fflush-tests (Depends-on): Add binary-io.
31998
31999 2009-01-17  Bruno Haible  <bruno@clisp.org>
32000
32001         * lib/wchar.in.h: In another particular situation, include only the
32002         system's <wchar.h> file.
32003         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
32004         Reported by Albert Chin-A-Young <china@thewrittenword.com>
32005         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
32006
32007 2009-01-17  Bruno Haible  <bruno@clisp.org>
32008
32009         Support for stripping executables in --enable-relocatable.
32010         * build-aux/install-reloc: Expect one more argument, or an environment
32011         variable RELOC_STRIP_PROG. If set, strip the destination program and
32012         its wrapper.
32013         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
32014         RELOC_STRIP_PROG.
32015         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
32016         to set RELOCATABLE_STRIP.
32017         * NEWS: Mention the new Makefile requirement.
32018
32019 2009-01-17  Bruno Haible  <bruno@clisp.org>
32020
32021         * build-aux/install-reloc: Remove debugging information left over by
32022         C compiler on MacOS X.
32023
32024 2009-01-17  Bruno Haible  <bruno@clisp.org>
32025
32026         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
32027         * lib/progreloc.c (find_executable): Fix type of pointer passed to
32028         _NSGetExecutablePath.
32029
32030 2009-01-16  Jim Meyering  <meyering@redhat.com>
32031
32032         strerror: avoid warnings about discarding "const"
32033         * lib/strerror.c (rpl_strerror): Instead of returning a const
32034         string from each and every "case", use a variable, and add a single
32035         cast after the switch.
32036
32037 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
32038
32039         * lib/arpa_inet.in.h: Add extern "C" block for C++.
32040
32041 2009-01-16  Bruno Haible  <bruno@clisp.org>
32042
32043         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
32044         array initializer syntax that also works in C++ mode.
32045         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32046
32047 2009-01-16  Jim Meyering  <meyering@redhat.com>
32048
32049         poll: suppress a warning
32050         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
32051         to ignore "...unsigned expression < 0 is always false" warnings.
32052
32053 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
32054
32055         poll: remove declarations of unused variables
32056         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
32057         sockbuf and optlen.
32058
32059 2009-01-15  Bruno Haible  <bruno@clisp.org>
32060
32061         Make fflush-after-ungetc POSIX compliant on BSD systems.
32062         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
32063         (clear_ungetc_buffer): Implement also for other systems.
32064         (rpl_fflush): On glibc systems, invoke
32065         clear_ungetc_buffer_preserving_position. Otherwise, invoke
32066         clear_ungetc_buffer after fetching the stream's position, not before.
32067
32068 2009-01-15  Bruno Haible  <bruno@clisp.org>
32069
32070         Make fflush-after-ungetc POSIX compliant on glibc systems.
32071         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
32072         after ungetc.
32073         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
32074         (rpl_fflush): On glibc systems, simply call the system's fflush
32075         function after clearing the ungetc buffer.
32076         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
32077         Instead, lseek only to the end of file, then use the system's fseeko
32078         for the rest. On glibc systems, reset the EOF indicator bit.
32079
32080 2009-01-15  Jim Meyering  <meyering@redhat.com>
32081
32082         openmp.m4: revert quote-adding change, for portability to older autoconf
32083         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
32084         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
32085         Simon Josefsson noticed the problem when using autoconf-2.61.
32086
32087 2009-01-15  Bruno Haible  <bruno@clisp.org>
32088
32089         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
32090         * tests/test-fflush2.c (ASSERT): Always fail.
32091         (main): Add two tests for fflush() after ungetc(), taking into account
32092         the Austin Group's clarification.
32093         Suggested by Eric Blake.
32094
32095 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
32096
32097         mktime.m4: remove K&R-style function prototypes
32098         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
32099         for the Sun C++ compiler.
32100
32101 2009-01-14  Bruno Haible  <bruno@clisp.org>
32102
32103         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
32104         while including <wchar.h>.
32105         * lib/wchar.in.h: In two particular situations on HP-UX, include only
32106         the system's <wchar.h> file.
32107         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32108
32109 2009-01-14  Bruno Haible  <bruno@clisp.org>
32110
32111         * m4/csharp.m4: Don't mention gettext on the serial number line.
32112         * m4/csharpexec.m4: Likewise.
32113         * m4/eaccess.m4: Likewise.
32114         * m4/javaexec.m4: Likewise.
32115         * m4/sig_atomic_t.m4: Likewise.
32116         * m4/tmpdir.m4: Likewise.
32117         * m4/intldir.m4: Bump gettext version.
32118         * m4/lib-ld.m4: Likewise.
32119
32120 2009-01-14  Bruno Haible  <bruno@clisp.org>
32121
32122         * lib/progname.c (set_program_name): Add more comments.
32123         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
32124
32125 2009-01-14  Simon Josefsson  <simon@josefsson.org>
32126
32127         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
32128         were sys/stat.h does not define it.
32129
32130 2009-01-14  Jim Meyering  <meyering@redhat.com>
32131
32132         many *.m4 files: improve m4 quoting
32133         99% of this change was performed by running the following commands:
32134         git ls-files | grep '\.m4$' | xargs perl -pi \
32135           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
32136           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
32137           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
32138           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
32139         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
32140         The remainder were to add Copyright dates, increment serial numbers,
32141         undo some changes in comments, exclude m4/intl.m4, and add quotes
32142         around the "1" in ",1" where the unusual spacing prohibited the
32143         above regexps from doing the job.  For more details, see
32144         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
32145         * m4/acl.m4: Modified.
32146         * m4/afs.m4: Likewise.
32147         * m4/alloca.m4: Likewise.
32148         * m4/argp.m4: Likewise.
32149         * m4/argz.m4: Likewise.
32150         * m4/atexit.m4: Likewise.
32151         * m4/bison-i18n.m4: Likewise.
32152         * m4/bison.m4: Likewise.
32153         * m4/byteswap.m4: Likewise.
32154         * m4/c-stack.m4: Likewise.
32155         * m4/c-strtod.m4: Likewise.
32156         * m4/calloc.m4: Likewise.
32157         * m4/canonicalize-lgpl.m4: Likewise.
32158         * m4/chown.m4: Likewise.
32159         * m4/clock_time.m4: Likewise.
32160         * m4/codeset.m4: Likewise.
32161         * m4/copy-file.m4: Likewise.
32162         * m4/csharp.m4: Likewise.
32163         * m4/csharpcomp.m4: Likewise.
32164         * m4/csharpexec.m4: Likewise.
32165         * m4/d-ino.m4: Likewise.
32166         * m4/d-type.m4: Likewise.
32167         * m4/dirfd.m4: Likewise.
32168         * m4/double-slash-root.m4: Likewise.
32169         * m4/eaccess.m4: Likewise.
32170         * m4/eealloc.m4: Likewise.
32171         * m4/environ.m4: Likewise.
32172         * m4/errno_h.m4: Likewise.
32173         * m4/euidaccess.m4: Likewise.
32174         * m4/execute.m4: Likewise.
32175         * m4/fatal-signal.m4: Likewise.
32176         * m4/fchdir.m4: Likewise.
32177         * m4/fcntl_h.m4: Likewise.
32178         * m4/fileblocks.m4: Likewise.
32179         * m4/filenamecat.m4: Likewise.
32180         * m4/findprog.m4: Likewise.
32181         * m4/flexmember.m4: Likewise.
32182         * m4/fnmatch.m4: Likewise.
32183         * m4/fopen.m4: Likewise.
32184         * m4/fpending.m4: Likewise.
32185         * m4/fprintf-posix.m4: Likewise.
32186         * m4/free.m4: Likewise.
32187         * m4/frexp.m4: Likewise.
32188         * m4/frexpl.m4: Likewise.
32189         * m4/fsusage.m4: Likewise.
32190         * m4/ftruncate.m4: Likewise.
32191         * m4/gc-camellia.m4: Likewise.
32192         * m4/gc-random.m4: Likewise.
32193         * m4/gc.m4: Likewise.
32194         * m4/getaddrinfo.m4: Likewise.
32195         * m4/getcwd-abort-bug.m4: Likewise.
32196         * m4/getcwd-path-max.m4: Likewise.
32197         * m4/getdate.m4: Likewise.
32198         * m4/getdomainname.m4: Likewise.
32199         * m4/getgroups.m4: Likewise.
32200         * m4/gethostname.m4: Likewise.
32201         * m4/gethrxtime.m4: Likewise.
32202         * m4/getline.m4: Likewise.
32203         * m4/getloadavg.m4: Likewise.
32204         * m4/getndelim2.m4: Likewise.
32205         * m4/getpass.m4: Likewise.
32206         * m4/gettext.m4: Likewise.
32207         * m4/gettime.m4: Likewise.
32208         * m4/gettimeofday.m4: Likewise.
32209         * m4/gnulib-common.m4: Likewise.
32210         * m4/group-member.m4: Likewise.
32211         * m4/host-os.m4: Likewise.
32212         * m4/iconv.m4: Likewise.
32213         * m4/iconv_open.m4: Likewise.
32214         * m4/inet_ntop.m4: Likewise.
32215         * m4/inet_pton.m4: Likewise.
32216         * m4/inline.m4: Likewise.
32217         * m4/intldir.m4: Likewise.
32218         * m4/intlmacosx.m4: Likewise.
32219         * m4/intmax.m4: Likewise.
32220         * m4/intmax_t.m4: Likewise.
32221         * m4/inttypes.m4: Likewise.
32222         * m4/inttypes_h.m4: Likewise.
32223         * m4/inttypes-pri.m4: Likewise.
32224         * m4/isapipe.m4: Likewise.
32225         * m4/isnand.m4: Likewise.
32226         * m4/isnanf.m4: Likewise.
32227         * m4/isnanl.m4: Likewise.
32228         * m4/javacomp.m4: Likewise.
32229         * m4/javaexec.m4: Likewise.
32230         * m4/jm-winsz1.m4: Likewise.
32231         * m4/jm-winsz2.m4: Likewise.
32232         * m4/lchown.m4: Likewise.
32233         * m4/lcmessage.m4: Likewise.
32234         * m4/ldexpl.m4: Likewise.
32235         * m4/lib-ld.m4: Likewise.
32236         * m4/lib-link.m4: Likewise.
32237         * m4/libsigsegv.m4: Likewise.
32238         * m4/link-follow.m4: Likewise.
32239         * m4/localcharset.m4: Likewise.
32240         * m4/locale-fr.m4: Likewise.
32241         * m4/locale-ja.m4: Likewise.
32242         * m4/locale-tr.m4: Likewise.
32243         * m4/locale-zh.m4: Likewise.
32244         * m4/lock.m4: Likewise.
32245         * m4/longlong.m4: Likewise.
32246         * m4/ls-mntd-fs.m4: Likewise.
32247         * m4/lstat.m4: Likewise.
32248         * m4/malloc.m4: Likewise.
32249         * m4/mathl.m4: Likewise.
32250         * m4/mbrtowc.m4: Likewise.
32251         * m4/mbstate_t.m4: Likewise.
32252         * m4/mbswidth.m4: Likewise.
32253         * m4/memchr.m4: Likewise.
32254         * m4/memcmp.m4: Likewise.
32255         * m4/memcpy.m4: Likewise.
32256         * m4/memmem.m4: Likewise.
32257         * m4/memmove.m4: Likewise.
32258         * m4/mempcpy.m4: Likewise.
32259         * m4/memrchr.m4: Likewise.
32260         * m4/memset.m4: Likewise.
32261         * m4/minmax.m4: Likewise.
32262         * m4/mkdir-slash.m4: Likewise.
32263         * m4/mkdtemp.m4: Likewise.
32264         * m4/mktime.m4: Likewise.
32265         * m4/mmap-anon.m4: Likewise.
32266         * m4/mountlist.m4: Likewise.
32267         * m4/nanosleep.m4: Likewise.
32268         * m4/nls.m4: Likewise.
32269         * m4/nocrash.m4: Likewise.
32270         * m4/open.m4: Likewise.
32271         * m4/openat.m4: Likewise.
32272         * m4/openmp.m4: Likewise.
32273         * m4/pathmax.m4: Likewise.
32274         * m4/perl.m4: Likewise.
32275         * m4/physmem.m4: Likewise.
32276         * m4/pipe.m4: Likewise.
32277         * m4/po.m4: Likewise.
32278         * m4/poll.m4: Likewise.
32279         * m4/posixtm.m4: Likewise.
32280         * m4/posixver.m4: Likewise.
32281         * m4/printf-frexp.m4: Likewise.
32282         * m4/printf-frexpl.m4: Likewise.
32283         * m4/printf-posix.m4: Likewise.
32284         * m4/printf-posix-rpl.m4: Likewise.
32285         * m4/printf.m4: Likewise.
32286         * m4/progtest.m4: Likewise.
32287         * m4/putenv.m4: Likewise.
32288         * m4/readline.m4: Likewise.
32289         * m4/readlink.m4: Likewise.
32290         * m4/readutmp.m4: Likewise.
32291         * m4/realloc.m4: Likewise.
32292         * m4/regex.m4: Likewise.
32293         * m4/relocatable.m4: Likewise.
32294         * m4/relocatable-lib.m4: Likewise.
32295         * m4/rename-dest-slash.m4: Likewise.
32296         * m4/rename.m4: Likewise.
32297         * m4/rmdir-errno.m4: Likewise.
32298         * m4/rmdir.m4: Likewise.
32299         * m4/roundf.m4: Likewise.
32300         * m4/roundl.m4: Likewise.
32301         * m4/rpmatch.m4: Likewise.
32302         * m4/save-cwd.m4: Likewise.
32303         * m4/selinux-selinux-h.m4: Likewise.
32304         * m4/setenv.m4: Likewise.
32305         * m4/settime.m4: Likewise.
32306         * m4/sig2str.m4: Likewise.
32307         * m4/sig_atomic_t.m4: Likewise.
32308         * m4/signalblocking.m4: Likewise.
32309         * m4/signbit.m4: Likewise.
32310         * m4/sigpipe.m4: Likewise.
32311         * m4/sockets.m4: Likewise.
32312         * m4/sockpfaf.m4: Likewise.
32313         * m4/st_dm_mode.m4: Likewise.
32314         * m4/stat-time.m4: Likewise.
32315         * m4/stdbool.m4: Likewise.
32316         * m4/stdint.m4: Likewise.
32317         * m4/stdint_h.m4: Likewise.
32318         * m4/stpcpy.m4: Likewise.
32319         * m4/stpncpy.m4: Likewise.
32320         * m4/strcase.m4: Likewise.
32321         * m4/strchrnul.m4: Likewise.
32322         * m4/strcspn.m4: Likewise.
32323         * m4/strdup.m4: Likewise.
32324         * m4/strftime.m4: Likewise.
32325         * m4/strndup.m4: Likewise.
32326         * m4/strnlen.m4: Likewise.
32327         * m4/strpbrk.m4: Likewise.
32328         * m4/strptime.m4: Likewise.
32329         * m4/strsep.m4: Likewise.
32330         * m4/strtod.m4: Likewise.
32331         * m4/strtoimax.m4: Likewise.
32332         * m4/strtok_r.m4: Likewise.
32333         * m4/strtol.m4: Likewise.
32334         * m4/strtoll.m4: Likewise.
32335         * m4/strtoul.m4: Likewise.
32336         * m4/strtoull.m4: Likewise.
32337         * m4/strtoumax.m4: Likewise.
32338         * m4/strverscmp.m4: Likewise.
32339         * m4/threadlib.m4: Likewise.
32340         * m4/timegm.m4: Likewise.
32341         * m4/tm_gmtoff.m4: Likewise.
32342         * m4/tmpdir.m4: Likewise.
32343         * m4/tmpfile.m4: Likewise.
32344         * m4/tzset.m4: Likewise.
32345         * m4/uintmax_t.m4: Likewise.
32346         * m4/unlinkdir.m4: Likewise.
32347         * m4/unlocked-io.m4: Likewise.
32348         * m4/uptime.m4: Likewise.
32349         * m4/userspec.m4: Likewise.
32350         * m4/utimbuf.m4: Likewise.
32351         * m4/utime.m4: Likewise.
32352         * m4/utimes-null.m4: Likewise.
32353         * m4/utimes.m4: Likewise.
32354         * m4/vararrays.m4: Likewise.
32355         * m4/vasnprintf.m4: Likewise.
32356         * m4/vfprintf-posix.m4: Likewise.
32357         * m4/vprintf-posix.m4: Likewise.
32358         * m4/wait-process.m4: Likewise.
32359         * m4/wchar_t.m4: Likewise.
32360         * m4/wint_t.m4: Likewise.
32361         * m4/write-any-file.m4: Likewise.
32362         * m4/yield.m4: Likewise.
32363
32364 2009-01-13  Bruno Haible  <bruno@clisp.org>
32365
32366         Avoid test-copy-file.sh failures when ACL support insufficient.
32367         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
32368         TESTS_ENVIRONMENT.
32369         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
32370         Reported by Jim Meyering.
32371
32372 2009-01-13  Bruno Haible  <bruno@clisp.org>
32373
32374         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
32375         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
32376         * modules/unistdio/u8-printf-parse (Files): Likewise.
32377         * modules/unistdio/u32-printf-parse (Files): Likewise.
32378         * modules/unistdio/ulc-printf-parse (Files): Likewise.
32379
32380 2009-01-13  Simon Josefsson  <simon@josefsson.org>
32381
32382         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
32383         and m4/inttypes_h.m4 too.
32384
32385 2009-01-12  Eric Blake  <ebb9@byu.net>
32386
32387         tests: IRIX 6.2 cc can't compile -0.0 into .data
32388         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
32389         rather than at compile-time.
32390         * tests/test-floorl.c (minus_zero): Likewise.
32391         * tests/test-frexpl.c (minus_zero): Likewise.
32392         * tests/test-isnan.c (minus_zerol): Likewise.
32393         * tests/test-isnanl.h (minus_zero): Likewise.
32394         * tests/test-ldexpl.c (minus_zero): Likewise.
32395         * tests/test-roundl.c (minus_zero): Likewise.
32396         * tests/test-signbit.c (minus_zerol): Likewise.
32397         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
32398         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
32399         * tests/test-truncl.c (minus_zero): Likewise.
32400         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
32401         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
32402         Reported by Tom G. Christensen and Nelson H. F. Beebe.
32403
32404 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
32405
32406         regex: fix glibc bug 9697
32407         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
32408         handling.
32409
32410 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
32411
32412         regex: fix glibc bug 697
32413         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
32414         being NULL also if there are no backreferences.
32415
32416 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
32417
32418         regex: merge glibc changes
32419         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
32420         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
32421         re_string_skip_chars, re_string_reconstruct): Likewise.
32422         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
32423
32424 2009-01-07  Jim Meyering  <meyering@redhat.com>
32425
32426         poll: filter through cppi
32427         * lib/poll.c: Indent cpp directives to reflect nesting.
32428
32429 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
32430
32431         poll: don't return uninitialized
32432         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
32433
32434 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
32435
32436         avoid compile failure on AIX 6.1
32437         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
32438         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
32439
32440 2009-01-04  Jim Meyering  <meyering@redhat.com>
32441
32442         remove duplicate inclusion of <stdio.h>
32443         * tests/test-fprintf-posix.c: Likewise.
32444         * tests/test-printf-posix.c: Likewise.
32445         * tests/test-snprintf-posix.c: Likewise.
32446         * tests/test-sprintf-posix.c: Likewise.
32447         * tests/test-vasprintf-posix.c: Likewise.
32448         * tests/test-vfprintf-posix.c: Likewise.
32449         * tests/test-vprintf-posix.c: Likewise.
32450         * tests/test-vsnprintf-posix.c: Likewise.
32451         * tests/test-vsprintf-posix.c: Likewise.
32452
32453 2009-01-03  Jim Meyering  <meyering@redhat.com>
32454
32455         gnulib-tool: fix sed-based filtering
32456         * gnulib-tool (func_filter_filelist): Remove extra backslash
32457         in sed_fff_filter definition.
32458
32459 2009-01-02  Jim Meyering  <meyering@redhat.com>
32460
32461         strftime: avoid compilation failure on Solaris 2.6
32462         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
32463         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
32464         Don't #define mbrlen or mbsinit, since now they're guaranteed to
32465         be available.  Reported by Tom G. Christensen.  Details in
32466         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
32467
32468 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32469             Bruno Haible  <bruno@clisp.org>
32470
32471         Speed up gnulib-tool by doing more string processing through shell
32472         built-ins.
32473         * gnulib-tool (fast_func_append): New variable.
32474         (func_remove_prefix, func_remove_suffix): New functions.
32475         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
32476         (func_filter_filelist): New function.
32477         (func_get_dependencies): Use func_remove_suffix instead of sed.
32478         (func_get_automake_snippet): Use func_filter_filelist instead of a
32479         subshell and sed invocation.
32480
32481 2009-01-01  Bruno Haible  <bruno@clisp.org>
32482
32483         Fix a security bug.
32484         * gnulib-tool (func_import, import, update): Don't allow the characters
32485         '"', '$', '`', '\' in macro arguments that become part of commands that
32486         are evaluated.
32487
32488 2009-01-01  Bruno Haible  <bruno@clisp.org>
32489
32490         * gnulib-tool (func_reset_sigpipe): Add more comments.
32491
32492 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32493
32494         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
32495         func_emit_tests_Makefile_am, func_import): Abort loops early if we
32496         already know the answer.
32497
32498 2009-01-01  Jim Meyering  <meyering@redhat.com>
32499
32500         * lib/version-etc.c (version_etc_va): Update copyright year.
32501
32502 2008-12-30  Bruno Haible  <bruno@clisp.org>
32503
32504         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
32505         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
32506         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
32507
32508 2008-12-29  Eric Blake  <ebb9@byu.net>
32509
32510         multiarch: avoid autoconf AC_REQUIRE bug
32511         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
32512         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
32513         2.63 and older.
32514         Reported by Bruno Haible, and analyzed in
32515         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
32516
32517 2008-12-29  Bruno Haible  <bruno@clisp.org>
32518
32519         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
32520         files in subdirectories correctly.
32521         Reported by Ralf Wildenhues.
32522
32523 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32524
32525         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
32526         rather than 'join FILE -', for Solaris join.
32527
32528 2008-12-29  Bruno Haible  <bruno@clisp.org>
32529
32530         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
32531         quoting.
32532         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
32533         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
32534         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
32535         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
32536         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
32537         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
32538         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
32539         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
32540         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
32541         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
32542         * m4/nls.m4 (AM_NLS): Likewise.
32543         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
32544         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
32545         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
32546         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
32547         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
32548         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
32549         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
32550         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
32551         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
32552         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
32553         * m4/xsize.m4 (gl_XSIZE): Likewise.
32554         Suggested by Jim Meyering.
32555
32556 2008-11-17  Bruce Korb  <bkorb@gnu.org>
32557
32558         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
32559         * lib/parse-duration.c: use a switch instead of cascading if's.
32560
32561 2008-12-29  Eric Blake  <ebb9@byu.net>
32562
32563         wchar.h: supply WEOF on Irix 5.3
32564         * lib/wchar.in.h (wint_t): Also supply WEOF.
32565         * lib/wctype.in.h (wint_t): Likewise.
32566         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
32567         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
32568         Reported by Tom G. Christensen.
32569
32570 2008-12-26  Bruno Haible  <bruno@clisp.org>
32571
32572         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
32573         i486, i586, i686.
32574
32575 2008-12-26  Bruno Haible  <bruno@clisp.org>
32576
32577         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
32578
32579 2008-12-26  Bruno Haible  <bruno@clisp.org>
32580
32581         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
32582         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
32583         not __STDC_CONSTANT_MACROS.
32584         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
32585
32586 2008-12-25  Bruno Haible  <bruno@clisp.org>
32587
32588         Add support for universal builds to vasnprintf.
32589         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
32590         universal builds, guess no.
32591         * modules/vasnprintf-posix (Depends-on): Add multiarch.
32592         * modules/vasprintf-posix (Depends-on): Likewise.
32593         * modules/fprintf-posix (Depends-on): Likewise.
32594         * modules/vfprintf-posix (Depends-on): Likewise.
32595         * modules/snprintf-posix (Depends-on): Likewise.
32596         * modules/vsnprintf-posix (Depends-on): Likewise.
32597         * modules/sprintf-posix (Depends-on): Likewise.
32598         * modules/vsprintf-posix (Depends-on): Likewise.
32599         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
32600         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32601         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32602         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32603         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32604         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32605         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32606
32607         Add support for universal builds to <inttypes.h>.
32608         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
32609         _SCNu64_PREFIX): In Apple
32610         universal builds, define directly, using _LP64.
32611         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
32612         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
32613         * modules/inttypes (Depends-on): Add multiarch.
32614         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
32615
32616         Add support for universal builds to <stdint.h>.
32617         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
32618         universal builds, define directly, using _LP64.
32619         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
32620         Apple universal builds, don't test for the size and suffix of ptrdiff_t
32621         and size_t.
32622         * modules/stdint (Depends-on): Add multiarch.
32623         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
32624
32625         New module 'multiarch'.
32626         * modules/multiarch: New file.
32627         * m4/multiarch.m4: New file.
32628
32629 2008-12-25  Bruno Haible  <bruno@clisp.org>
32630
32631         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
32632
32633 2008-12-25  Bruno Haible  <bruno@clisp.org>
32634
32635         * modules/btowc (License): Relicense under LGPLv2+.
32636         * modules/mbsinit (License): Likewise.
32637         * modules/mbrtowc (License): Likewise.
32638         * modules/wcrtomb (License): Likewise.
32639         * modules/streq (License): Likewise.
32640         Reported by David Lutterkort <lutter@redhat.com>.
32641
32642 2008-12-23  Bruno Haible  <bruno@clisp.org>
32643
32644         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
32645
32646 2008-12-23  Bruno Haible  <bruno@clisp.org>
32647
32648         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
32649         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
32650         GETADDRINFO_LIB, not in LIBS.
32651         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
32652         * modules/canon-host (Link): Likewise.
32653         * NEWS: Mention the change.
32654         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
32655         GETADDRINFO_LIB.
32656
32657 2008-12-22  Bruno Haible  <bruno@clisp.org>
32658
32659         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
32660         * doc/posix-functions/iswalpha_l.texi: Likewise.
32661         * doc/posix-functions/iswblank_l.texi: Likewise.
32662         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32663         * doc/posix-functions/iswctype_l.texi: Likewise.
32664         * doc/posix-functions/iswdigit_l.texi: Likewise.
32665         * doc/posix-functions/iswgraph_l.texi: Likewise.
32666         * doc/posix-functions/iswlower_l.texi: Likewise.
32667         * doc/posix-functions/iswprint_l.texi: Likewise.
32668         * doc/posix-functions/iswpunct_l.texi: Likewise.
32669         * doc/posix-functions/iswspace_l.texi: Likewise.
32670         * doc/posix-functions/iswupper_l.texi: Likewise.
32671         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32672         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
32673         * doc/posix-functions/open_wmemstream.texi: Likewise.
32674         * doc/posix-functions/swscanf.texi: Likewise.
32675         * doc/posix-functions/towctrans_l.texi: Likewise.
32676         * doc/posix-functions/towlower.texi: Likewise.
32677         * doc/posix-functions/towlower_l.texi: Likewise.
32678         * doc/posix-functions/towupper.texi: Likewise.
32679         * doc/posix-functions/towupper_l.texi: Likewise.
32680         * doc/posix-functions/vfwprintf.texi: Likewise.
32681         * doc/posix-functions/vfwscanf.texi: Likewise.
32682         * doc/posix-functions/vswscanf.texi: Likewise.
32683         * doc/posix-functions/vwprintf.texi: Likewise.
32684         * doc/posix-functions/vwscanf.texi: Likewise.
32685         * doc/posix-functions/wcpcpy.texi: Likewise.
32686         * doc/posix-functions/wcpncpy.texi: Likewise.
32687         * doc/posix-functions/wcscasecmp.texi: Likewise.
32688         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
32689         * doc/posix-functions/wcscoll_l.texi: Likewise.
32690         * doc/posix-functions/wcsdup.texi: Likewise.
32691         * doc/posix-functions/wcsncasecmp.texi: Likewise.
32692         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
32693         * doc/posix-functions/wcsnlen.texi: Likewise.
32694         * doc/posix-functions/wcsnrtombs.texi: Likewise.
32695         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32696         * doc/posix-functions/wctrans_l.texi: Likewise.
32697         * doc/posix-functions/wctype_l.texi: Likewise.
32698         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
32699         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
32700         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
32701         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
32702         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
32703         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
32704         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
32705         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
32706         * doc/glibc-functions/wcschrnul.texi: Likewise.
32707         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32708         * doc/glibc-functions/wcstod_l.texi: Likewise.
32709         * doc/glibc-functions/wcstof_l.texi: Likewise.
32710         * doc/glibc-functions/wcstol_l.texi: Likewise.
32711         * doc/glibc-functions/wcstold_l.texi: Likewise.
32712         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32713         * doc/glibc-functions/wcstoq.texi: Likewise.
32714         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32715         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32716         * doc/glibc-functions/wcstouq.texi: Likewise.
32717         * doc/glibc-functions/wmempcpy.texi: Likewise.
32718
32719 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
32720             Eric Blake  <ebb9@byu.net>
32721             Paolo Bonzini  <bonzini@gnu.org>
32722             Bruno Haible  <bruno@clisp.org>
32723
32724         Make c-stack work on Haiku.
32725         * lib/c-stack.c (SA_ONSTACK): Define fallback.
32726         (c_stack_action): Use SA_ONSTACK flag.
32727
32728 2008-12-22  Bruno Haible  <bruno@clisp.org>
32729
32730         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
32731
32732 2008-12-22  Bruno Haible  <bruno@clisp.org>
32733
32734         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
32735         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
32736         being overridden.
32737         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
32738         New macros.
32739         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
32740         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
32741         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
32742         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
32743
32744 2008-12-22  Bruno Haible  <bruno@clisp.org>
32745
32746         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
32747         from test code.
32748
32749 2008-12-22  Eric Blake  <ebb9@byu.net>
32750
32751         Avoid gcc warnings on cygwin.
32752         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
32753         Avoid unused variable.
32754         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
32755         Likewise.
32756
32757 2008-12-22  Bruno Haible  <bruno@clisp.org>
32758
32759         Remove HAVE_MBRTOWC conditionals.
32760         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
32761         (mbscasecmp): Assume mbrtowc function.
32762         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
32763         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
32764         * lib/mbschr.c: Include mbuiter.h unconditionally.
32765         (mbschr): Assume mbrtowc function.
32766         * lib/mbscspn.c: Include mbuiter.h unconditionally.
32767         (mbscspn): Assume mbrtowc function.
32768         * lib/mbslen.c: Include mbuiter.h unconditionally.
32769         (mbslen): Assume mbrtowc function.
32770         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
32771         (mbsncasecmp): Assume mbrtowc function.
32772         * lib/mbsnlen.c: Include mbiter.h unconditionally.
32773         (mbsnlen): Assume mbrtowc function.
32774         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
32775         (mbspbrk): Assume mbrtowc function.
32776         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
32777         (mbspcasecmp): Assume mbrtowc function.
32778         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
32779         (mbsrchr): Assume mbrtowc function.
32780         * lib/mbssep.c: Include mbuiter.h unconditionally.
32781         (mbssep): Assume mbrtowc function.
32782         * lib/mbsspn.c: Include mbuiter.h unconditionally.
32783         (mbsspn): Assume mbrtowc function.
32784         * lib/mbsstr.c: Include mbuiter.h unconditionally.
32785         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
32786         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
32787         (mbstok_r): Assume mbrtowc function.
32788         * lib/propername.c: Include mbuiter.h unconditionally.
32789         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
32790         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
32791         (trim2): Assume mbrtowc function.
32792         * lib/mbswidth.c (mbsinit): Remove fallback definition.
32793         (mbsnwidth): Assume mbrtowc function.
32794         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
32795         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
32796         fallback definitions.
32797         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
32798
32799 2008-12-22  Bruno Haible  <bruno@clisp.org>
32800
32801         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
32802
32803 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
32804
32805         * modules/regex: Request emulations for the mb*/wc* functions we need.
32806         * m4/regex.m4: Don't look for those functions here.
32807         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
32808
32809 2008-12-22  Bruno Haible  <bruno@clisp.org>
32810
32811         * modules/fnmatch (Depends-on): Remove duplicated dependency.
32812
32813 2008-12-21  Bruno Haible  <bruno@clisp.org>
32814
32815         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
32816         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
32817         (Include): Remove conditionalization.
32818         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
32819         (Include): Remove conditionalization.
32820         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
32821         (Include): Remove conditionalization.
32822         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
32823         * m4/mbfile.m4 (gl_MBFILE): Likewise.
32824         * NEWS: Mention the change.
32825         Reported by Alan Hourihane <alanh@fairlite.co.uk>
32826         via Sergey Poznyakoff <gray@gnu.org.ua>.
32827
32828 2008-12-21  Bruno Haible  <bruno@clisp.org>
32829
32830         * MODULES.html.sh (Extended multibyte and wide character utilities
32831         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
32832         wcrtomb, wcsrtombs.
32833         (Support for systems lacking POSIX:2008): Add accept, bind, close,
32834         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
32835         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
32836         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
32837
32838 2008-12-21  Bruno Haible  <bruno@clisp.org>
32839
32840         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
32841
32842 2008-12-21  Bruno Haible  <bruno@clisp.org>
32843
32844         * modules/wcsnrtombs-tests: New file.
32845         * tests/test-wcsnrtombs1.sh: New file.
32846         * tests/test-wcsnrtombs2.sh: New file.
32847         * tests/test-wcsnrtombs3.sh: New file.
32848         * tests/test-wcsnrtombs4.sh: New file.
32849         * tests/test-wcsnrtombs.c: New file.
32850
32851         New module 'wcsnrtombs'.
32852         * lib/wchar.in.h (wcsnrtombs): New declaration.
32853         * lib/wcsnrtombs.c: New file.
32854         * lib/wcsrtombs-state.c: New file.
32855         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
32856         (internal_state): Remove variable.
32857         * m4/wcsnrtombs.m4: New file.
32858         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
32859         compilation units.
32860         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
32861         HAVE_WCSNRTOMBS.
32862         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
32863         HAVE_WCSNRTOMBS.
32864         * modules/wcsnrtombs: New file.
32865         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
32866         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
32867
32868 2008-12-21  Bruno Haible  <bruno@clisp.org>
32869
32870         * modules/wcsrtombs-tests: New file.
32871         * tests/test-wcsrtombs1.sh: New file.
32872         * tests/test-wcsrtombs2.sh: New file.
32873         * tests/test-wcsrtombs3.sh: New file.
32874         * tests/test-wcsrtombs4.sh: New file.
32875         * tests/test-wcsrtombs.c: New file.
32876
32877         New module 'wcsrtombs'.
32878         * lib/wchar.in.h (wcsrtombs): New declaration.
32879         * lib/wcsrtombs.c: New file.
32880         * m4/wcsrtombs.m4: New file.
32881         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
32882         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
32883         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
32884         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
32885         * modules/wcsrtombs: New file.
32886         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
32887         bugs.
32888
32889 2008-12-21  Bruno Haible  <bruno@clisp.org>
32890
32891         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
32892         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
32893         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
32894         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
32895         if not correct.
32896         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
32897         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
32898         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
32899         m4/locale-zh.m4, m4/codeset.m4.
32900         * doc/posix-functions/wcrtomb.texi: Document the bug.
32901
32902 2008-12-21  Bruno Haible  <bruno@clisp.org>
32903
32904         Work around a btowc() bug on IRIX 6.5.
32905         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
32906         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
32907         REPLACE_WTOBC if not.
32908         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
32909         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
32910         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
32911
32912 2008-12-21  Bruno Haible  <bruno@clisp.org>
32913
32914         * modules/wcrtomb-tests: New file.
32915         * tests/test-wcrtomb.sh: New file.
32916         * tests/test-wcrtomb.c: New file.
32917
32918         New module 'wcrtomb'.
32919         * lib/wchar.in.h (wcrtomb): New declaration.
32920         * lib/wcrtomb.c: New file.
32921         * m4/wcrtomb.m4: New file.
32922         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
32923         HAVE_WCRTOMB.
32924         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
32925         HAVE_WCRTOMB.
32926         * modules/wcrtomb: New file.
32927         * doc/posix-functions/wcrtomb.texi: Mention the new module.
32928
32929 2008-12-21  Bruno Haible  <bruno@clisp.org>
32930
32931         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
32932         * modules/mbsrtowcs (Files): Likewise.
32933         * modules/wctob (Files): Likewise.
32934         * modules/c-strcase-tests (Files): Likewise.
32935         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
32936         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
32937         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
32938         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
32939         * modules/vasnprintf-posix-tests (Files): Likewise.
32940
32941 2008-12-21  William Pursell  <bill.pursell@gmail.com>
32942
32943         gitlog-to-changelog: pass all command-line arguments to git-log
32944         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
32945         it is sometimes convenient to filter the commits in various ways.
32946         gitlog-to-changelog only allows --since to specify a start date,
32947         but git-log itself supports many other filtering mechanisms.
32948         At the moment, I want to filter by branch name.  Rather than
32949         adding a --branch option to gitlog-to-changelog, it seems more
32950         flexible to simply pass all options directly to git-log and let
32951         git do the work.  Notice that this effectively makes --since a
32952         redundant option for gitlog-to-changelog, but removing it would
32953         require current usage to change since calls would then require
32954         an additional '--'.
32955
32956 2008-12-21  Bruno Haible  <bruno@clisp.org>
32957
32958         * modules/mbsnrtowcs-tests: New file.
32959         * tests/test-mbsnrtowcs1.sh: New file.
32960         * tests/test-mbsnrtowcs2.sh: New file.
32961         * tests/test-mbsnrtowcs3.sh: New file.
32962         * tests/test-mbsnrtowcs4.sh: New file.
32963         * tests/test-mbsnrtowcs.c: New file.
32964
32965         New module 'mbsnrtowcs'.
32966         * lib/wchar.in.h (mbsnrtowcs): New declaration.
32967         * lib/mbsnrtowcs.c: New file.
32968         * lib/mbsrtowcs-state.c: New file.
32969         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
32970         (internal_state): Remove variable.
32971         * m4/mbsnrtowcs.m4: New file.
32972         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
32973         compilation units.
32974         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
32975         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
32976         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
32977         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
32978         * modules/mbsnrtowcs: New file.
32979         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
32980         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
32981         portability problem.
32982
32983 2008-12-21  Bruno Haible  <bruno@clisp.org>
32984
32985         Work around mbsrtowcs bug.
32986         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
32987         (gl_FUNC_MBSRTOWCS): Invoke it.
32988         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
32989         m4/locale-zh.m4.
32990         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
32991
32992 2008-12-21  Bruno Haible  <bruno@clisp.org>
32993
32994         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
32995
32996 2008-12-21  Bruno Haible  <bruno@clisp.org>
32997
32998         Update doc for AIX.
32999         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
33000         16-bit wchar_t type.
33001         * doc/posix-functions/btowc.texi: Likewise.
33002         * doc/posix-functions/fgetwc.texi: Likewise.
33003         * doc/posix-functions/fgetws.texi: Likewise.
33004         * doc/posix-functions/fputwc.texi: Likewise.
33005         * doc/posix-functions/fputws.texi: Likewise.
33006         * doc/posix-functions/fwide.texi: Likewise.
33007         * doc/posix-functions/fwprintf.texi: Likewise.
33008         * doc/posix-functions/fwscanf.texi: Likewise.
33009         * doc/posix-functions/getwchar.texi: Likewise.
33010         * doc/posix-functions/getwc.texi: Likewise.
33011         * doc/posix-functions/iswalnum.texi: Likewise.
33012         * doc/posix-functions/iswalpha.texi: Likewise.
33013         * doc/posix-functions/iswblank.texi: Likewise.
33014         * doc/posix-functions/iswcntrl.texi: Likewise.
33015         * doc/posix-functions/iswctype.texi: Likewise.
33016         * doc/posix-functions/iswdigit.texi: Likewise.
33017         * doc/posix-functions/iswgraph.texi: Likewise.
33018         * doc/posix-functions/iswlower.texi: Likewise.
33019         * doc/posix-functions/iswprint.texi: Likewise.
33020         * doc/posix-functions/iswpunct.texi: Likewise.
33021         * doc/posix-functions/iswspace.texi: Likewise.
33022         * doc/posix-functions/iswupper.texi: Likewise.
33023         * doc/posix-functions/iswxdigit.texi: Likewise.
33024         * doc/posix-functions/mbrtowc.texi: Likewise.
33025         * doc/posix-functions/mbsrtowcs.texi: Likewise.
33026         * doc/posix-functions/mbstowcs.texi: Likewise.
33027         * doc/posix-functions/mbtowc.texi: Likewise.
33028         * doc/posix-functions/putwchar.texi: Likewise.
33029         * doc/posix-functions/putwc.texi: Likewise.
33030         * doc/posix-functions/swprintf.texi: Likewise.
33031         * doc/posix-functions/tolower.texi: Likewise.
33032         * doc/posix-functions/toupper.texi: Likewise.
33033         * doc/posix-functions/towctrans.texi: Likewise.
33034         * doc/posix-functions/ungetwc.texi: Likewise.
33035         * doc/posix-functions/vswprintf.texi: Likewise.
33036         * doc/posix-functions/wcrtomb.texi: Likewise.
33037         * doc/posix-functions/wcscat.texi: Likewise.
33038         * doc/posix-functions/wcschr.texi: Likewise.
33039         * doc/posix-functions/wcscmp.texi: Likewise.
33040         * doc/posix-functions/wcscoll.texi: Likewise.
33041         * doc/posix-functions/wcscpy.texi: Likewise.
33042         * doc/posix-functions/wcscspn.texi: Likewise.
33043         * doc/posix-functions/wcsftime.texi: Likewise.
33044         * doc/posix-functions/wcslen.texi: Likewise.
33045         * doc/posix-functions/wcsncat.texi: Likewise.
33046         * doc/posix-functions/wcsncmp.texi: Likewise.
33047         * doc/posix-functions/wcsncpy.texi: Likewise.
33048         * doc/posix-functions/wcspbrk.texi: Likewise.
33049         * doc/posix-functions/wcsrchr.texi: Likewise.
33050         * doc/posix-functions/wcsrtombs.texi: Likewise.
33051         * doc/posix-functions/wcsspn.texi: Likewise.
33052         * doc/posix-functions/wcsstr.texi: Likewise.
33053         * doc/posix-functions/wcstod.texi: Likewise.
33054         * doc/posix-functions/wcstof.texi: Likewise.
33055         * doc/posix-functions/wcstoimax.texi: Likewise.
33056         * doc/posix-functions/wcstok.texi: Likewise.
33057         * doc/posix-functions/wcstold.texi: Likewise.
33058         * doc/posix-functions/wcstoll.texi: Likewise.
33059         * doc/posix-functions/wcstol.texi: Likewise.
33060         * doc/posix-functions/wcstombs.texi: Likewise.
33061         * doc/posix-functions/wcstoull.texi: Likewise.
33062         * doc/posix-functions/wcstoul.texi: Likewise.
33063         * doc/posix-functions/wcstoumax.texi: Likewise.
33064         * doc/posix-functions/wcswidth.texi: Likewise.
33065         * doc/posix-functions/wcsxfrm.texi: Likewise.
33066         * doc/posix-functions/wctob.texi: Likewise.
33067         * doc/posix-functions/wctomb.texi: Likewise.
33068         * doc/posix-functions/wctrans.texi: Likewise.
33069         * doc/posix-functions/wctype.texi: Likewise.
33070         * doc/posix-functions/wcwidth.texi: Likewise.
33071         * doc/posix-functions/wmemchr.texi: Likewise.
33072         * doc/posix-functions/wmemcmp.texi: Likewise.
33073         * doc/posix-functions/wmemcpy.texi: Likewise.
33074         * doc/posix-functions/wmemmove.texi: Likewise.
33075         * doc/posix-functions/wmemset.texi: Likewise.
33076         * doc/posix-functions/wprintf.texi: Likewise.
33077         * doc/posix-functions/wscanf.texi: Likewise.
33078
33079 2008-12-21  Bruno Haible  <bruno@clisp.org>
33080
33081         Update doc for HP-UX 11.11.
33082         * doc/posix-functions/btowc.texi: Clarify that the function is missing
33083         in HP-UX version 11.00, not in all versions of HP-UX 11.
33084         * doc/posix-functions/fwide.texi: Likewise.
33085         * doc/posix-functions/fwprintf.texi: Likewise.
33086         * doc/posix-functions/fwscanf.texi: Likewise.
33087         * doc/posix-functions/inet_ntop.texi: Likewise.
33088         * doc/posix-functions/inet_pton.texi: Likewise.
33089         * doc/posix-functions/mbrlen.texi: Likewise.
33090         * doc/posix-functions/mbrtowc.texi: Likewise.
33091         * doc/posix-functions/mbsinit.texi: Likewise.
33092         * doc/posix-functions/mbsrtowcs.texi: Likewise.
33093         * doc/posix-functions/swprintf.texi: Likewise.
33094         * doc/posix-functions/swscanf.texi: Likewise.
33095         * doc/posix-functions/towctrans.texi: Likewise.
33096         * doc/posix-functions/vfwprintf.texi: Likewise.
33097         * doc/posix-functions/vswprintf.texi: Likewise.
33098         * doc/posix-functions/vwprintf.texi: Likewise.
33099         * doc/posix-functions/wcrtomb.texi: Likewise.
33100         * doc/posix-functions/wcsrtombs.texi: Likewise.
33101         * doc/posix-functions/wcsstr.texi: Likewise.
33102         * doc/posix-functions/wctob.texi: Likewise.
33103         * doc/posix-functions/wctrans.texi: Likewise.
33104         * doc/posix-functions/wmemchr.texi: Likewise.
33105         * doc/posix-functions/wmemcmp.texi: Likewise.
33106         * doc/posix-functions/wmemcpy.texi: Likewise.
33107         * doc/posix-functions/wmemmove.texi: Likewise.
33108         * doc/posix-functions/wmemset.texi: Likewise.
33109         * doc/posix-functions/wprintf.texi: Likewise.
33110         * doc/posix-functions/wscanf.texi: Likewise.
33111
33112 2008-12-21  Bruno Haible  <bruno@clisp.org>
33113
33114         Work around a portability problem.
33115         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
33116         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
33117
33118 2008-12-20  Bruno Haible  <bruno@clisp.org>
33119
33120         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
33121         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
33122         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
33123         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
33124         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
33125
33126         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
33127         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
33128         set.
33129         (GNULIB_defined_mbstate_t): New macro.
33130         (mbsinit): Redefine if REPLACE_MBSINIT is set.
33131         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
33132         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
33133         reuses the system's mbrtowc function but works around the bugs.
33134         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
33135         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
33136         macros.
33137         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
33138         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
33139         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
33140         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
33141         REPLACE_MBSINIT if mbsinit needs to be overridden.
33142         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
33143         REPLACE_MBSINIT, REPLACE_MBRTOWC.
33144         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
33145         REPLACE_MBSINIT, REPLACE_MBRTOWC.
33146         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33147         m4/locale-zh.m4.
33148         (Depends): Add mbsinit.
33149         * modules/mbsinit (Depends): Add mbrtowc.
33150         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
33151
33152 2008-12-20  Bruno Haible  <bruno@clisp.org>
33153
33154         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
33155         so that there are no conversion errors on AIX.
33156         * tests/test-mbsrtowcs.c (main): LIkewise.
33157
33158 2008-12-20  Bruno Haible  <bruno@clisp.org>
33159
33160         Work around wctob bug on Solaris <= 9.
33161         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
33162         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
33163         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
33164         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
33165         * modules/wctob (Files): Add m4/locale-fr.m4.
33166         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
33167
33168 2008-12-20  Bruno Haible  <bruno@clisp.org>
33169
33170         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
33171         /dev/null.
33172         * tests/test-select-in.sh: Likewise.
33173         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33174
33175 2008-12-20  Bruno Haible  <bruno@clisp.org>
33176
33177         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
33178         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
33179         Cygwin 1.5.x.
33180
33181 2008-12-20  Bruno Haible  <bruno@clisp.org>
33182
33183         Ensure mbstate_t is defined on HP-UX 11.11.
33184         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
33185         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
33186         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
33187         AC_USE_SYSTEM_EXTENSIONS.
33188         * modules/fnmatch (Depends-on): Add extensions.
33189         * modules/mbrlen (Depends-on): Likewise.
33190         * modules/mbrtowc (Depends-on): Likewise.
33191         * modules/mbsinit (Depends-on): Likewise.
33192         * modules/mbsrtowcs (Depends-on): Likewise.
33193         * modules/mbswidth (Depends-on): Likewise.
33194         * modules/quotearg (Depends-on): Likewise.
33195         * modules/strftime (Depends-on): Likewise.
33196
33197 2008-12-20  Bruno Haible  <bruno@clisp.org>
33198
33199         Ensure wctob is declared on IRIX 6.5.
33200         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
33201         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
33202         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
33203         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
33204         of HAVE_WCTOB.
33205         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
33206         HAVE_WCTOB.
33207         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
33208
33209 2008-12-19  Bruno Haible  <bruno@clisp.org>
33210
33211         * modules/mbsrtowcs-tests: New file.
33212         * tests/test-mbsrtowcs1.sh: New file.
33213         * tests/test-mbsrtowcs2.sh: New file.
33214         * tests/test-mbsrtowcs3.sh: New file.
33215         * tests/test-mbsrtowcs4.sh: New file.
33216         * tests/test-mbsrtowcs.c: New file.
33217
33218         New module 'mbsrtowcs'.
33219         * lib/wchar.in.h (mbsrtowcs): New declaration.
33220         * lib/mbsrtowcs.c: New file.
33221         * m4/mbsrtowcs.m4: New file.
33222         * modules/mbsrtowcs: New file.
33223         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
33224         HAVE_MBSRTOWCS.
33225         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
33226         HAVE_MBSRTOWCS.
33227         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
33228
33229 2008-12-19  Bruno Haible  <bruno@clisp.org>
33230
33231         New module 'mbrlen'.
33232         * lib/wchar.in.h (mbrlen): New declaration.
33233         * lib/mbrlen.c: New file.
33234         * m4/mbrlen.m4: New file.
33235         * modules/mbrlen: New file.
33236         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
33237         HAVE_MBRLEN.
33238         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
33239         HAVE_MBRLEN.
33240         * doc/posix-functions/mbrlen.texi: Document the new module.
33241
33242 2008-12-19  Bruno Haible  <bruno@clisp.org>
33243
33244         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
33245         * modules/mbrtowc (Depends-on): Add verify.
33246         Suggested by Paul Eggert.
33247
33248 2008-12-18  Bruno Haible  <bruno@clisp.org>
33249
33250         * modules/mbsinit-tests: New file.
33251         * tests/test-mbsinit.sh: New file.
33252         * tests/test-mbsinit.c: New file.
33253
33254 2008-12-18  Bruno Haible  <bruno@clisp.org>
33255
33256         * modules/mbrtowc-tests: New file.
33257         * tests/test-mbrtowc1.sh: New file.
33258         * tests/test-mbrtowc2.sh: New file.
33259         * tests/test-mbrtowc3.sh: New file.
33260         * tests/test-mbrtowc4.sh: New file.
33261         * tests/test-mbrtowc.c: New file.
33262
33263         New module 'mbrtowc'.
33264         * lib/wchar.in.h (mbstate_t): Override when the system does not have
33265         mbsinit and mbrtowc.
33266         (mbrtowc): New declaration.
33267         * lib/mbrtowc.c: New file.
33268         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
33269         * modules/mbrtowc: New file.
33270         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
33271         HAVE_MBRTOWC.
33272         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
33273         HAVE_MBRTOWC.
33274         * doc/posix-functions/mbrtowc.texi: Document the new module.
33275
33276 2008-12-18  Bruno Haible  <bruno@clisp.org>
33277
33278         New module 'wctob'.
33279         * lib/wchar.in.h (wctob): New declaration.
33280         * lib/wctob.c: New file.
33281         * m4/wctob.m4: New file.
33282         * modules/wctob: New file.
33283         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
33284         HAVE_WCTOB.
33285         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
33286         * doc/posix-functions/wctob.texi: Document the new module.
33287
33288 2008-12-18  Bruno Haible  <bruno@clisp.org>
33289
33290         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
33291         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
33292
33293 2008-12-18  Simon Josefsson  <simon@josefsson.org>
33294
33295         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
33296         G. Christensen" <tgc@jupiterrise.com>.
33297
33298         * lib/flock.c: Need to include errno.h.  Reported by "Tom
33299         G. Christensen" <tgc@jupiterrise.com>.
33300
33301         * lib/flock.c: Need to include string.h.  Reported by "Tom
33302         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
33303         <ebb9@byu.net>.
33304
33305 2008-12-18  Bruno Haible  <bruno@clisp.org>
33306
33307         * m4/locale-ja.m4: New file, from GNU gettext.
33308
33309 2008-12-17  Bruno Haible  <bruno@clisp.org>
33310
33311         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
33312         Suggested by Eric Blake.
33313
33314 2008-12-17  Bruno Haible  <bruno@clisp.org>
33315
33316         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
33317
33318 2008-12-17  Bruno Haible  <bruno@clisp.org>
33319
33320         * lib/mbsinit.c: Include verify.h. Verify an assumption.
33321         * modules/mbsinit (Depends-on): Add verify.
33322         Suggested by Paul Eggert.
33323
33324 2008-12-17  Bruno Haible  <bruno@clisp.org>
33325
33326         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
33327         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
33328         gl_FUNC_MBRTOWC.
33329         * m4/mbiter.m4 (gl_MBITER): LIkewise.
33330         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
33331         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
33332         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
33333         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
33334         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
33335         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
33336         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
33337         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
33338         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
33339         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
33340         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
33341         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
33342         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
33343         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
33344         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
33345         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
33346         * modules/trim (configure.ac): Likewise.
33347
33348 2008-12-17  Bruno Haible  <bruno@clisp.org>
33349
33350         * modules/btowc-tests: New file.
33351         * tests/test-btowc1.sh: New file.
33352         * tests/test-btowc2.sh: New file.
33353         * tests/test-btowc.c: New file.
33354
33355         New module 'btowc'.
33356         * lib/wchar.in.h (btowc): New declaration.
33357         * lib/btowc.c: New file.
33358         * m4/btowc.m4: New file.
33359         * modules/btowc: New file.
33360         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
33361         HAVE_BTOWC.
33362         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
33363         * doc/posix-functions/btowc.texi: Document the new module.
33364
33365 2008-12-17  Bruno Haible  <bruno@clisp.org>
33366
33367         New module 'mbsinit'.
33368         * lib/wchar.in.h (mbsinit): New declaration.
33369         * lib/mbsinit.c: New file.
33370         * m4/mbsinit.m4: New file.
33371         * modules/mbsinit: New file.
33372         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
33373         HAVE_MBSINIT.
33374         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
33375         HAVE_MBSINIT.
33376         * doc/posix-functions/mbsinit.texi: Document the new module.
33377
33378 2008-12-16  Bruno Haible  <bruno@clisp.org>
33379
33380         * lib/unistd.in.h: Add comment.
33381         * tests/test-environ.c: Don't include <stdlib.h>.
33382
33383 2008-12-16  Bruno Haible  <bruno@clisp.org>
33384
33385         * lib/parse-duration.h (parse_duration): Document return value
33386         convention.
33387         * lib/parse-duration.c: Include specification header first. Add
33388         comments.
33389         (_): Remove macro.
33390         (parse_year_month_day, parse_hour_minute_second): Move side effects
33391         outside of strchr call.
33392         (parse_non_iso8601): Move side effects outside of isspace call.
33393         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
33394         call.
33395
33396 2008-12-16  Bruno Haible  <bruno@clisp.org>
33397
33398         * tests/test-parse-duration.sh: Produce no output when the test
33399         succeeds.
33400
33401 2008-12-16  Bruno Haible  <bruno@clisp.org>
33402
33403         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
33404         expressions.
33405
33406 2008-12-15  Bruno Haible  <bruno@clisp.org>
33407
33408         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
33409         * doc/glibc-functions/flistxattr.texi: Likewise.
33410         * doc/glibc-functions/fopencookie.texi: Likewise.
33411         * doc/glibc-functions/fremovexattr.texi: Likewise.
33412         * doc/glibc-functions/fsetxattr.texi: Likewise.
33413         * doc/glibc-functions/getxattr.texi: Likewise.
33414         * doc/glibc-functions/lgetxattr.texi: Likewise.
33415         * doc/glibc-functions/listxattr.texi: Likewise.
33416         * doc/glibc-functions/llistxattr.texi: Likewise.
33417         * doc/glibc-functions/lremovexattr.texi: Likewise.
33418         * doc/glibc-functions/lsetxattr.texi: Likewise.
33419         * doc/glibc-functions/removexattr.texi: Likewise.
33420         * doc/glibc-functions/setxattr.texi: Likewise.
33421         * doc/posix-functions/open_memstream.texi: Likewise.
33422
33423 2008-12-15  Eric Blake  <ebb9@byu.net>
33424
33425         Update doc for cygwin 1.7.
33426         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
33427         functions.
33428         * doc/posix-functions/fchmodat.texi: Likewise.
33429         * doc/posix-functions/fchownat.texi: Likewise.
33430         * doc/posix-functions/fdopendir.texi: Likewise.
33431         * doc/posix-functions/fmemopen.texi: Likewise.
33432         * doc/posix-functions/freeaddrinfo.texi: Likewise.
33433         * doc/posix-functions/fstatat.texi: Likewise.
33434         * doc/posix-functions/futimens.texi: Likewise.
33435         * doc/posix-functions/gai_strerror.texi: Likewise.
33436         * doc/posix-functions/getaddrinfo.texi: Likewise.
33437         * doc/posix-functions/getnameinfo.texi: Likewise.
33438         * doc/posix-functions/if_freenameindex.texi: Likewise.
33439         * doc/posix-functions/if_indextoname.texi: Likewise.
33440         * doc/posix-functions/if_nameindex.texi: Likewise.
33441         * doc/posix-functions/if_nametoindex.texi: Likewise.
33442         * doc/posix-functions/insque.texi: Likewise.
33443         * doc/posix-functions/linkat.texi: Likewise.
33444         * doc/posix-functions/llrint.texi: Likewise.
33445         * doc/posix-functions/llrintf.texi: Likewise.
33446         * doc/posix-functions/llrintl.texi: Likewise.
33447         * doc/posix-functions/lockf.texi: Likewise.
33448         * doc/posix-functions/lrintl.texi: Likewise.
33449         * doc/posix-functions/mkdirat.texi: Likewise.
33450         * doc/posix-functions/mkfifoat.texi: Likewise.
33451         * doc/posix-functions/mknodat.texi: Likewise.
33452         * doc/posix-functions/mq_close.texi: Likewise.
33453         * doc/posix-functions/mq_getattr.texi: Likewise.
33454         * doc/posix-functions/mq_notify.texi: Likewise.
33455         * doc/posix-functions/mq_open.texi: Likewise.
33456         * doc/posix-functions/mq_receive.texi: Likewise.
33457         * doc/posix-functions/mq_send.texi: Likewise.
33458         * doc/posix-functions/mq_setattr.texi: Likewise.
33459         * doc/posix-functions/mq_timedreceive.texi: Likewise.
33460         * doc/posix-functions/mq_timedsend.texi: Likewise.
33461         * doc/posix-functions/mq_unlink.texi: Likewise.
33462         * doc/posix-functions/open_memstream.texi: Likewise.
33463         * doc/posix-functions/openat.texi: Likewise.
33464         * doc/posix-functions/posix_fadvise.texi: Likewise.
33465         * doc/posix-functions/posix_fallocate.texi: Likewise.
33466         * doc/posix-functions/posix_madvise.texi: Likewise.
33467         * doc/posix-functions/posix_memalign.texi: Likewise.
33468         * doc/posix-functions/posix_openpt.texi: Likewise.
33469         * doc/posix-functions/readlinkat.texi: Likewise.
33470         * doc/posix-functions/remque.texi: Likewise.
33471         * doc/posix-functions/renameat.texi: Likewise.
33472         * doc/posix-functions/rintl.texi: Likewise.
33473         * doc/posix-functions/sem_unlink.texi: Likewise.
33474         * doc/posix-functions/shm_open.texi: Likewise.
33475         * doc/posix-functions/shm_unlink.texi: Likewise.
33476         * doc/posix-functions/signgam.texi: Likewise.
33477         * doc/posix-functions/sigset.texi: Likewise.
33478         * doc/posix-functions/stpcpy.texi: Likewise.
33479         * doc/posix-functions/stpncpy.texi: Likewise.
33480         * doc/posix-functions/strerror.texi: Likewise.
33481         * doc/posix-functions/strtod.texi: Likewise.
33482         * doc/posix-functions/symlinkat.texi: Likewise.
33483         * doc/posix-functions/unlinkat.texi: Likewise.
33484         * doc/posix-functions/utimensat.texi: Likewise.
33485         * doc/glibc-functions/bindresvport.texi: Likewise.
33486         * doc/glibc-functions/dn_expand.texi: Likewise.
33487         * doc/glibc-functions/exp10.texi: Likewise.
33488         * doc/glibc-functions/exp10f.texi: Likewise.
33489         * doc/glibc-functions/fgetxattr.texi: Likewise.
33490         * doc/glibc-functions/flistxattr.texi: Likewise.
33491         * doc/glibc-functions/fopencookie.texi: Likewise.
33492         * doc/glibc-functions/freeifaddrs.texi: Likewise.
33493         * doc/glibc-functions/fremovexattr.texi: Likewise.
33494         * doc/glibc-functions/fsetxattr.texi: Likewise.
33495         * doc/glibc-functions/getifaddrs.texi: Likewise.
33496         * doc/glibc-functions/getxattr.texi: Likewise.
33497         * doc/glibc-functions/lgetxattr.texi: Likewise.
33498         * doc/glibc-functions/listxattr.texi: Likewise.
33499         * doc/glibc-functions/llistxattr.texi: Likewise.
33500         * doc/glibc-functions/lremovexattr.texi: Likewise.
33501         * doc/glibc-functions/lsetxattr.texi: Likewise.
33502         * doc/glibc-functions/pow10.texi: Likewise.
33503         * doc/glibc-functions/pow10f.texi: Likewise.
33504         * doc/glibc-functions/rcmd_af.texi: Likewise.
33505         * doc/glibc-functions/removexattr.texi: Likewise.
33506         * doc/glibc-functions/res_init.texi: Likewise.
33507         * doc/glibc-functions/res_mkquery.texi: Likewise.
33508         * doc/glibc-functions/res_query.texi: Likewise.
33509         * doc/glibc-functions/res_querydomain.texi: Likewise.
33510         * doc/glibc-functions/res_send.texi: Likewise.
33511         * doc/glibc-functions/rresvport_af.texi: Likewise.
33512         * doc/glibc-functions/setxattr.texi: Likewise.
33513         * doc/glibc-functions/strcasestr.texi: Likewise.
33514
33515 2008-12-15  Bruno Haible  <bruno@clisp.org>
33516
33517         Fix compilation error on OSF/1 4.0.
33518         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
33519         <sys/time.h>, simply delegate to the system header.
33520         Reported by Daniel Richard G. <oss@teragram.com>.
33521
33522 2008-12-15  Bruno Haible  <bruno@clisp.org>
33523
33524         * doc/posix-functions/openat.texi: Mention the 'openat' module.
33525         * doc/posix-functions/fchmodat.texi: Likewise.
33526         * doc/posix-functions/fchownat.texi: Likewise.
33527         * doc/posix-functions/fdopendir.texi: Likewise.
33528         * doc/posix-functions/fstatat.texi: Likewise.
33529         * doc/posix-functions/mkdirat.texi: Likewise.
33530         * doc/posix-functions/unlinkat.texi: Likewise.
33531
33532 2008-12-14  Bruno Haible  <bruno@clisp.org>
33533
33534         Update doc for POSIX:2008.
33535         * doc/posix-functions/faccessat.texi: New file.
33536         * doc/posix-functions/fchmodat.texi: New file.
33537         * doc/posix-functions/fchownat.texi: New file.
33538         * doc/posix-functions/fdopendir.texi: New file.
33539         * doc/posix-functions/fstatat.texi: New file.
33540         * doc/posix-functions/futimens.texi: New file.
33541         * doc/posix-functions/linkat.texi: New file.
33542         * doc/posix-functions/mkdirat.texi: New file.
33543         * doc/posix-functions/mkfifoat.texi: New file.
33544         * doc/posix-functions/mknodat.texi: New file.
33545         * doc/posix-functions/open_wmemstream.texi: New file.
33546         * doc/posix-functions/openat.texi: New file.
33547         * doc/posix-functions/psiginfo.texi: New file.
33548         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
33549         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
33550         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
33551         * doc/posix-functions/readlinkat.texi: New file.
33552         * doc/posix-functions/renameat.texi: New file.
33553         * doc/posix-functions/strerror_l.texi: New file.
33554         * doc/posix-functions/symlinkat.texi: New file.
33555         * doc/posix-functions/unlinkat.texi: New file.
33556         * doc/posix-functions/utimensat.texi: New file.
33557         * doc/gnulib.texi (Function Substitutes): Add these subsections.
33558
33559 2008-12-14  Bruno Haible  <bruno@clisp.org>
33560
33561         Update doc for POSIX:2008.
33562         * doc/posix-functions/alphasort.texi: Renamed from
33563         doc/glibc-functions/alphasort.texi.
33564         * doc/posix-functions/dirfd.texi: Renamed from
33565         doc/glibc-functions/dirfd.texi.
33566         * doc/posix-functions/dprintf.texi: Renamed from
33567         doc/glibc-functions/dprintf.texi.
33568         * doc/posix-functions/duplocale.texi: Renamed from
33569         doc/glibc-functions/duplocale.texi.
33570         * doc/posix-functions/fexecve.texi: Renamed from
33571         doc/glibc-functions/fexecve.texi.
33572         * doc/posix-functions/fmemopen.texi: Renamed from
33573         doc/glibc-functions/fmemopen.texi.
33574         * doc/posix-functions/freelocale.texi: Renamed from
33575         doc/glibc-functions/freelocale.texi.
33576         * doc/posix-functions/getdate_err.texi: Renamed from
33577         doc/glibc-functions/getdate_err.texi.
33578         * doc/posix-functions/isalnum_l.texi: Renamed from
33579         doc/glibc-functions/isalnum_l.texi.
33580         * doc/posix-functions/isalpha_l.texi: Renamed from
33581         doc/glibc-functions/isalpha_l.texi.
33582         * doc/posix-functions/isblank_l.texi: Renamed from
33583         doc/glibc-functions/isblank_l.texi.
33584         * doc/posix-functions/iscntrl_l.texi: Renamed from
33585         doc/glibc-functions/iscntrl_l.texi.
33586         * doc/posix-functions/isdigit_l.texi: Renamed from
33587         doc/glibc-functions/isdigit_l.texi.
33588         * doc/posix-functions/isgraph_l.texi: Renamed from
33589         doc/glibc-functions/isgraph_l.texi.
33590         * doc/posix-functions/islower_l.texi: Renamed from
33591         doc/glibc-functions/islower_l.texi.
33592         * doc/posix-functions/isprint_l.texi: Renamed from
33593         doc/glibc-functions/isprint_l.texi.
33594         * doc/posix-functions/ispunct_l.texi: Renamed from
33595         doc/glibc-functions/ispunct_l.texi.
33596         * doc/posix-functions/isspace_l.texi: Renamed from
33597         doc/glibc-functions/isspace_l.texi.
33598         * doc/posix-functions/isupper_l.texi: Renamed from
33599         doc/glibc-functions/isupper_l.texi.
33600         * doc/posix-functions/iswalnum_l.texi: Renamed from
33601         doc/glibc-functions/iswalnum_l.texi.
33602         * doc/posix-functions/iswalpha_l.texi: Renamed from
33603         doc/glibc-functions/iswalpha_l.texi.
33604         * doc/posix-functions/iswblank_l.texi: Renamed from
33605         doc/glibc-functions/iswblank_l.texi.
33606         * doc/posix-functions/iswcntrl_l.texi: Renamed from
33607         doc/glibc-functions/iswcntrl_l.texi.
33608         * doc/posix-functions/iswctype_l.texi: Renamed from
33609         doc/glibc-functions/iswctype_l.texi.
33610         * doc/posix-functions/iswdigit_l.texi: Renamed from
33611         doc/glibc-functions/iswdigit_l.texi.
33612         * doc/posix-functions/iswgraph_l.texi: Renamed from
33613         doc/glibc-functions/iswgraph_l.texi.
33614         * doc/posix-functions/iswlower_l.texi: Renamed from
33615         doc/glibc-functions/iswlower_l.texi.
33616         * doc/posix-functions/iswprint_l.texi: Renamed from
33617         doc/glibc-functions/iswprint_l.texi.
33618         * doc/posix-functions/iswpunct_l.texi: Renamed from
33619         doc/glibc-functions/iswpunct_l.texi.
33620         * doc/posix-functions/iswspace_l.texi: Renamed from
33621         doc/glibc-functions/iswspace_l.texi.
33622         * doc/posix-functions/iswupper_l.texi: Renamed from
33623         doc/glibc-functions/iswupper_l.texi.
33624         * doc/posix-functions/iswxdigit_l.texi: Renamed from
33625         doc/glibc-functions/iswxdigit_l.texi.
33626         * doc/posix-functions/isxdigit_l.texi: Renamed from
33627         doc/glibc-functions/isxdigit_l.texi.
33628         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
33629         doc/glibc-functions/mbsnrtowcs.texi.
33630         * doc/posix-functions/mkdtemp.texi: Renamed from
33631         doc/glibc-functions/mkdtemp.texi.
33632         * doc/posix-functions/newlocale.texi: Renamed from
33633         doc/glibc-functions/newlocale.texi.
33634         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
33635         doc/glibc-functions/nl_langinfo_l.texi.
33636         * doc/posix-functions/open_memstream.texi: Renamed from
33637         doc/glibc-functions/open_memstream.texi.
33638         * doc/posix-functions/opterr.texi: Renamed from
33639         doc/glibc-functions/opterr.texi.
33640         * doc/posix-functions/optind.texi: Renamed from
33641         doc/glibc-functions/optind.texi.
33642         * doc/posix-functions/optopt.texi: Renamed from
33643         doc/glibc-functions/optopt.texi.
33644         * doc/posix-functions/psignal.texi: Renamed from
33645         doc/glibc-functions/psignal.texi.
33646         * doc/posix-functions/scandir.texi: Renamed from
33647         doc/glibc-functions/scandir.texi.
33648         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
33649         doc/glibc-functions/sched_get_priority_min.texi.
33650         * doc/posix-functions/signgam.texi: Renamed from
33651         doc/glibc-functions/signgam.texi.
33652         * doc/posix-functions/stpcpy.texi: Renamed from
33653         doc/glibc-functions/stpcpy.texi.
33654         * doc/posix-functions/stpncpy.texi: Renamed from
33655         doc/glibc-functions/stpncpy.texi.
33656         * doc/posix-functions/strcasecmp_l.texi: Renamed from
33657         doc/glibc-functions/strcasecmp_l.texi.
33658         * doc/posix-functions/strcoll_l.texi: Renamed from
33659         doc/glibc-functions/strcoll_l.texi.
33660         * doc/posix-functions/strfmon_l.texi: Renamed from
33661         doc/glibc-functions/strfmon_l.texi.
33662         * doc/posix-functions/strftime_l.texi: Renamed from
33663         doc/glibc-functions/strftime_l.texi.
33664         * doc/posix-functions/strncasecmp_l.texi: Renamed from
33665         doc/glibc-functions/strncasecmp_l.texi.
33666         * doc/posix-functions/strndup.texi: Renamed from
33667         doc/glibc-functions/strndup.texi.
33668         * doc/posix-functions/strnlen.texi: Renamed from
33669         doc/glibc-functions/strnlen.texi.
33670         * doc/posix-functions/strsignal.texi: Renamed from
33671         doc/glibc-functions/strsignal.texi.
33672         * doc/posix-functions/strxfrm_l.texi: Renamed from
33673         doc/glibc-functions/strxfrm_l.texi.
33674         * doc/posix-functions/timer_gettime.texi: Renamed from
33675         doc/glibc-functions/timer_gettime.texi.
33676         * doc/posix-functions/tolower_l.texi: Renamed from
33677         doc/glibc-functions/tolower_l.texi.
33678         * doc/posix-functions/toupper_l.texi: Renamed from
33679         doc/glibc-functions/toupper_l.texi.
33680         * doc/posix-functions/towctrans_l.texi: Renamed from
33681         doc/glibc-functions/towctrans_l.texi.
33682         * doc/posix-functions/towlower_l.texi: Renamed from
33683         doc/glibc-functions/towlower_l.texi.
33684         * doc/posix-functions/towupper_l.texi: Renamed from
33685         doc/glibc-functions/towupper_l.texi.
33686         * doc/posix-functions/uselocale.texi: Renamed from
33687         doc/glibc-functions/uselocale.texi.
33688         * doc/posix-functions/vdprintf.texi: Renamed from
33689         doc/glibc-functions/vdprintf.texi.
33690         * doc/posix-functions/wcpcpy.texi:
33691         Renamed from doc/glibc-functions/wcpcpy.texi.
33692         * doc/posix-functions/wcpncpy.texi: Renamed from
33693         doc/glibc-functions/wcpncpy.texi.
33694         * doc/posix-functions/wcscasecmp.texi: Renamed from
33695         doc/glibc-functions/wcscasecmp.texi.
33696         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
33697         doc/glibc-functions/wcscasecmp_l.texi.
33698         * doc/posix-functions/wcscoll_l.texi: Renamed from
33699         doc/glibc-functions/wcscoll_l.texi.
33700         * doc/posix-functions/wcsdup.texi: Renamed from
33701         doc/glibc-functions/wcsdup.texi.
33702         * doc/posix-functions/wcsncasecmp.texi: Renamed from
33703         doc/glibc-functions/wcsncasecmp.texi.
33704         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
33705         doc/glibc-functions/wcsncasecmp_l.texi.
33706         * doc/posix-functions/wcsnlen.texi: Renamed from
33707         doc/glibc-functions/wcsnlen.texi.
33708         * doc/posix-functions/wcsnrtombs.texi: Renamed from
33709         doc/glibc-functions/wcsnrtombs.texi.
33710         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
33711         doc/glibc-functions/wcsxfrm_l.texi.
33712         * doc/posix-functions/wctrans_l.texi: Renamed from
33713         doc/glibc-functions/wctrans_l.texi.
33714         * doc/posix-functions/wctype_l.texi: Renamed from
33715         doc/glibc-functions/wctype_l.texi.
33716         * doc/gnulib.texi (Function Substitutes): Add these subsections.
33717         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
33718         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
33719         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
33720         these subsections.
33721         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
33722         Remove sections.
33723
33724 2008-12-14  Bruno Haible  <bruno@clisp.org>
33725
33726         Update doc for POSIX:2008.
33727         * doc/posix-functions/*.texi: Update URL of POSIX specification.
33728
33729 2008-12-14  Bruno Haible  <bruno@clisp.org>
33730
33731         Update doc for POSIX:2008.
33732         * doc/pastposix-functions/bcmp.texi: Renamed from
33733         doc/posix-functions/bcmp.texi.
33734         * doc/pastposix-functions/bcopy.texi: Renamed from
33735         doc/posix-functions/bcopy.texi.
33736         * doc/pastposix-functions/bsd_signal.texi: Renamed from
33737         doc/posix-functions/bsd_signal.texi.
33738         * doc/pastposix-functions/bzero.texi: Renamed from
33739         doc/posix-functions/bzero.texi.
33740         * doc/pastposix-functions/ecvt.texi: Renamed from
33741         doc/posix-functions/ecvt.texi.
33742         * doc/pastposix-functions/fcvt.texi: Renamed from
33743         doc/posix-functions/fcvt.texi.
33744         * doc/pastposix-functions/ftime.texi: Renamed from
33745         doc/posix-functions/ftime.texi.
33746         * doc/pastposix-functions/gcvt.texi: Renamed from
33747         doc/posix-functions/gcvt.texi.
33748         * doc/pastposix-functions/getcontext.texi: Renamed from
33749         doc/posix-functions/getcontext.texi.
33750         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
33751         doc/posix-functions/gethostbyaddr.texi.
33752         * doc/pastposix-functions/gethostbyname.texi: Renamed from
33753         doc/posix-functions/gethostbyname.texi.
33754         * doc/pastposix-functions/getwd.texi: Renamed from
33755         doc/posix-functions/getwd.texi.
33756         * doc/pastposix-functions/h_errno.texi: Renamed from
33757         doc/posix-functions/h_errno.texi.
33758         * doc/pastposix-functions/index.texi: Renamed from
33759         doc/posix-functions/index.texi.
33760         * doc/pastposix-functions/makecontext.texi: Renamed from
33761         doc/posix-functions/makecontext.texi.
33762         * doc/pastposix-functions/mktemp.texi: Renamed from
33763         doc/posix-functions/mktemp.texi.
33764         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
33765         doc/posix-functions/pthread_attr_getstackaddr.texi.
33766         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
33767         doc/posix-functions/pthread_attr_setstackaddr.texi.
33768         * doc/pastposix-functions/rindex.texi: Renamed from
33769         doc/posix-functions/rindex.texi.
33770         * doc/pastposix-functions/scalb.texi: Renamed from
33771         doc/posix-functions/scalb.texi.
33772         * doc/pastposix-functions/setcontext.texi: Renamed from
33773         doc/posix-functions/setcontext.texi.
33774         * doc/pastposix-functions/swapcontext.texi: Renamed from
33775         doc/posix-functions/swapcontext.texi.
33776         * doc/pastposix-functions/ualarm.texi: Renamed from
33777         doc/posix-functions/ualarm.texi.
33778         * doc/pastposix-functions/usleep.texi: Renamed from
33779         doc/posix-functions/usleep.texi.
33780         * doc/pastposix-functions/vfork.texi: Renamed from
33781         doc/posix-functions/vfork.texi.
33782         * doc/pastposix-functions/wcswcs.texi: Renamed from
33783         doc/posix-functions/wcswcs.texi.
33784         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
33785         (Function Substitutes): Update.
33786
33787 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33788
33789         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
33790         m4/strerror.m4.
33791
33792 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33793             Bruno Haible  <bruno@clisp.org>
33794
33795         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
33796
33797 2008-12-13  Bruno Haible  <bruno@clisp.org>
33798
33799         * modules/strtoull (Depends-on): Remove unistd.
33800
33801 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33802
33803         * modules/strtoull (Depends-on): Add stdlib.
33804
33805 2008-12-11  Simon Josefsson  <simon@josefsson.org>
33806
33807         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
33808
33809 2008-12-10  Jim Meyering  <meyering@redhat.com>
33810
33811         gl_ASSERT: don't say assertions are disabled when they're not
33812         * m4/assert.m4 (gl_ASSERT): Do not make configure report
33813         "checking whether to enable assertions... no", when they are in
33814         fact enabled.  This is solely a bug in the output of configure.
33815         In spite of saying "no", NDEBUG was not defined in that case.
33816         Also, as noted by Eric Blake, leave assertions enabled upon
33817         --enable-assert=INVALID.
33818
33819 2008-12-10  Bruno Haible  <bruno@clisp.org>
33820
33821         Change MODULES.html to refer to POSIX:2008 where possible.
33822         * MODULES.html.sh (POSIX2008_URL): New variable.
33823         (posix_headers): Remove sys/timeb, ucontext.
33824         (posix2001_headers): New variable.
33825         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
33826         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
33827         index, makecontext, mktemp, pthread_attr_getstackaddr,
33828         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
33829         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
33830         (posix2001_functions): New variable.
33831         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
33832         otherwise.
33833
33834 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33835
33836         add missing include to parse-duration.c
33837         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
33838         * modules/parse-duration (Depends-on): Add xalloc.
33839
33840         fix sed script reading maint.mk
33841         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
33842         (syntax-check-rules): Use it.
33843
33844 2008-12-09  Bruno Haible  <bruno@clisp.org>
33845
33846         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
33847         MacOS X 10.4/PowerPC.
33848         Reported by Simon Josefsson.
33849
33850 2008-12-08  Jim Meyering  <meyering@redhat.com>
33851
33852         work around mingw's lack of some S_IF definitions
33853         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
33854         Reported by Simon Josefsson.
33855
33856 2008-12-08  Bruno Haible  <bruno@clisp.org>
33857
33858         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
33859         applied to variables. Needed on MacOS X 10.4/PowerPC.
33860         Reported by Simon Josefsson.
33861
33862 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
33863         and Eric Blake  <ebb9@byu.net>
33864
33865         assert: honor --enable-assert
33866         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
33867         order to honor --enable-assert, rather than treating it as a
33868         synonym for --disable-assert.
33869
33870 2008-12-08  Jim Meyering  <meyering@redhat.com>
33871
33872         * lib/posixtm.c: Remove now-useless declaration of mktime.
33873
33874         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
33875
33876 2008-12-07  Bruno Haible  <bruno@clisp.org>
33877
33878         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
33879         test_once): Mark functions as static.
33880         * tests/test-tls.c (test_tls): Likewise.
33881
33882 2008-12-07  Bruno Haible  <bruno@clisp.org>
33883
33884         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
33885         iconv_register_autodetect.
33886
33887 2008-12-07  Jim Meyering  <meyering@redhat.com>
33888
33889         posixtm.c: avoid a warning
33890         * lib/posixtm.c (posixtime): Don't initialize tm0.
33891         It's no longer needed to placate gcc4's -Wuninitialized,
33892         and the attempt to placate would elicit a new warning.
33893
33894         unicodeio.c: mark unused parameters
33895         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
33896         (fallback_failure_callback): Likewise.
33897
33898 2008-12-07  Bruno Haible  <bruno@clisp.org>
33899
33900         * gnulib-tool (func_create_testdir): When building the tests
33901         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
33902         Reported by Simon Josefsson.
33903
33904 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33905
33906         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
33907
33908 2008-12-06  Bruno Haible  <bruno@clisp.org>
33909
33910         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
33911         Suggested by Eric Blake.
33912
33913 2008-12-06  Bruno Haible  <bruno@clisp.org>
33914
33915         Fix a c-stack test failure on MacOS X.
33916         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
33917         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
33918         handler for SIGBUS as well.
33919         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
33920         install a signal handler for SIGBUS as well.
33921         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
33922
33923 2008-12-06  Bruno Haible  <bruno@clisp.org>
33924
33925         Advocacy documentation.
33926         * doc/gnulib-intro.texi (Benefits): New section.
33927         * doc/gnulib.texi: Update.
33928
33929 2008-12-06  Bruno Haible  <bruno@clisp.org>
33930
33931         Document the 'manywarnings' module.
33932         * doc/manywarnings.texi: New file.
33933         * doc/gnulib.texi: Include it.
33934
33935 2008-12-05  Eric Blake  <ebb9@byu.net>
33936
33937         tests: silence some gcc warnings
33938         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
33939         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
33940         type mismatches.
33941
33942 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33943             Bruno Haible  <bruno@clisp.org>
33944
33945         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
33946
33947 2008-11-29  Jim Meyering  <meyering@redhat.com>
33948
33949         unicodeio.c: mark unused parameters
33950         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
33951         (fallback_failure_callback): Likewise.
33952
33953         fts: fix a thinko
33954         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
33955         (set_stat_type): Return S_IF*-valued "type" directly.
33956         Prompted by James Youngman's spotting a related bug.
33957         Confirmed by further testing through find.
33958
33959         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
33960         * lib/fts.c (D_TYPE): Define.
33961         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
33962         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
33963         (s_ifmt_shift_bits): New function.
33964         (set_stat_type): New function.
33965         (fts_build): When not calling fts_stat, call set_stat_type
33966         to propagate dirent.d_type info to fts_read caller.
33967         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
33968         fts_statp->st_mode type information may be valid.
33969
33970 2008-11-28  Simon Josefsson  <simon@josefsson.org>
33971
33972         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
33973         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
33974         <sds@gnu.org>.
33975
33976 2008-11-20  Bruno Haible  <bruno@clisp.org>
33977
33978         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
33979         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
33980         INCLUDE_NEXT.
33981         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
33982         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
33983         * modules/math (Makefile.am): Substitute
33984         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
33985         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33986
33987 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
33988             Bruno Haible  <bruno@clisp.org>
33989
33990         * lib/stdint.in.h: Define all type macros so that their expansion is
33991         a single typedef'ed token. Fixes a compilation failure in Boost which
33992         does "using ::int8_t;".
33993
33994 2008-11-18  Simon Josefsson  <simon@josefsson.org>
33995
33996         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
33997         gl_MANYWARN_ALL_GCC.
33998         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
33999         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
34000         * modules/manywarnings: New file.
34001         * MODULES.html.sh: Mention manywarnings module.
34002
34003 2008-11-18  Bruno Haible  <bruno@clisp.org>
34004
34005         * doc/gnulib-tool.texi (Unit tests): New section.
34006
34007 2008-11-18  Simon Josefsson  <simon@josefsson.org>
34008
34009         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
34010         paths like 'lib/po/foo.po'.
34011
34012 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34013
34014         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
34015         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
34016
34017 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34018
34019         * m4/warnings.m4: Use CPPFLAGS to really check whether the
34020         parameter works.
34021
34022 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34023
34024         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
34025
34026 2008-11-17  Bruce Korb  <bkorb@gnu.org>
34027
34028         * modules/parse-duration-tests: New file.
34029         * tests/test-parse-duration.sh: New file.
34030         * tests/test-parse-duration.c: New file.
34031
34032         New module 'parse-duration'.
34033         * lib/parse-duration.h: New file.
34034         * lib/parse-duration.c: New file.
34035         * modules/parse-duration: New file.
34036
34037 2008-11-17  Bruno Haible  <bruno@clisp.org>
34038
34039         * tests/test-select-out.sh: Comment out the first pipe test.
34040         Reported by Simon Josefsson.
34041
34042 2008-11-17  Bruno Haible  <bruno@clisp.org>
34043
34044         * modules/getaddrinfo (Depends-on): Add servent, hostent.
34045         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
34046         gl_HOSTENT.
34047
34048 2008-11-17  Bruno Haible  <bruno@clisp.org>
34049
34050         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
34051         -lnetwork and -lnet. Needed for Haiku and BeOS.
34052
34053 2008-11-16  Bruno Haible  <bruno@clisp.org>
34054
34055         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
34056
34057 2008-11-16  Bruno Haible  <bruno@clisp.org>
34058
34059         Avoid test failure on Haiku.
34060         * tests/test-fsync.c: Include <errno.h>.
34061         (main): Don't require that fsync (0) fails.
34062
34063 2008-11-15  Bruno Haible  <bruno@clisp.org>
34064
34065         New module 'hostent'.
34066         * modules/hostent: New file.
34067         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
34068
34069 2008-11-15  Bruno Haible  <bruno@clisp.org>
34070
34071         New module 'servent'.
34072         * modules/servent: New file.
34073         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
34074
34075 2008-11-15  Bruno Haible  <bruno@clisp.org>
34076
34077         Avoid generating same test program with two different rules.
34078         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
34079         test-frexp to test-frexp-nolibm.
34080         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
34081         test-frexpl to test-frexpl-nolibm.
34082
34083 2008-11-15  Bruno Haible  <bruno@clisp.org>
34084
34085         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
34086         $(FREXPL_LIBM).
34087
34088 2008-11-15  Bruno Haible  <bruno@clisp.org>
34089
34090         * lib/netdb.in.h: Activate the definitions also when the system's
34091         <netdb.h> has 'struct addrinfo'.
34092         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
34093         EAI_OVERFLOW or AI_NUMERICSERV.
34094         * doc/posix-headers/netdb.texi: Document the problem.
34095
34096 2008-11-15  Bruno Haible  <bruno@clisp.org>
34097
34098         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
34099
34100         Make the 'sched' module work on platforms where <sched.h> exists but
34101         is incomplete (such as Haiku).
34102         * lib/sched.in.h; Include the system's <sched.h> if it exists.
34103         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
34104         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
34105         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
34106         HAVE_STRUCT_SCHED_PARAM.
34107         * modules/sched (Depends-on): Add include_next.
34108         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
34109         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
34110         * doc/posix-headers/sched.texi: Document the issue.
34111
34112 2008-11-13  Jim Meyering  <meyering@redhat.com>
34113
34114         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
34115         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
34116         test would fail due to the difference in the Report bugs to ...
34117         line.  The expected address is empty, "<>", while the actual
34118         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
34119
34120 2008-11-12  Bruno Haible  <bruno@clisp.org>
34121
34122         lstat: don't compile lstat.c on systems lacking lstat
34123         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
34124         which don't have lstat; this is handled by lib/sys_stat.in.h already.
34125         Reported by Daniel P. Berrange via Jim Meyering.
34126
34127 2008-11-12  Jim Meyering  <meyering@redhat.com>
34128
34129         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
34130
34131 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34132
34133         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
34134         instead.
34135
34136 2008-11-12  Bruno Haible  <bruno@clisp.org>
34137
34138         * lib/unicodeio.c: Include unistr.h.
34139         (utf8_wctomb): Remove function.
34140         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
34141
34142 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34143
34144         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
34145         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
34146         <bruno@clisp.org>.
34147         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
34148
34149 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34150
34151         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
34152         * doc/gnulib.texi: Add section for warnings.
34153
34154 2008-11-11  Bruno Haible  <bruno@clisp.org>
34155
34156         * lib/sockets.h: Add a comment.
34157
34158 2008-11-11  Karl Berry  <karl@gnu.org>
34159
34160         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
34161
34162 2008-11-11  Eric Blake  <ebb9@byu.net>
34163
34164         fdl.texi: avoid git symlinks
34165         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
34166
34167 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34168
34169         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
34170
34171 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34172
34173         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
34174         (gl_WARN_ADD): Substitute $2 if literal.
34175
34176 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34177
34178         * m4/warning.m4: Remove.
34179
34180 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34181
34182         * m4/warnings.m4: Almost complete rewrite. :-)
34183
34184 2008-11-10  Simon Josefsson  <simon@josefsson.org>
34185
34186         * modules/warnings: New module.
34187         * m4/warnings.m4: New file.
34188         * MODULES.html.sh: Mention warnings module.
34189         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
34190         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34191
34192 2008-11-10  Eric Blake  <ebb9@byu.net>
34193
34194         fdl.texi: make a symlink to the latest version
34195         * doc/standards.texi: Revert today's earlier change.
34196         * doc/fdl-1.2.texi: Rename from old fdl.texi...
34197         * doc/fdl.texi: ...and replace this with a symlink to the newer
34198         fdl-1.3.texi.
34199
34200 2008-11-10  Bruno Haible  <bruno@clisp.org>
34201
34202         * tests/test-select-fd.c (main): Accept the result file name as fourth
34203         argument.
34204         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
34205         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
34206
34207 2008-11-10  Bruno Haible  <bruno@clisp.org>
34208
34209         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
34210         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
34211         as autoconf-substituted macros.
34212         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
34213         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
34214         gl_NETDB_H_DEFAULTS. Set these variables.
34215         * modules/netdb (Makefile.am): Substitute these variables.
34216
34217 2008-11-10  Eric Blake  <ebb9@byu.net>
34218
34219         standards.texi: include correct file for FDL 1.3
34220         * doc/standards.texi (GNU Free Documentation License): Change
34221         include file to pull in FDL 1.3, not 1.2.
34222
34223         fdl.texi: revert accidental change to license
34224         * doc/fdl.texi: This is FDL 1.2, not 1.3.
34225
34226 2008-11-10  Bruno Haible  <bruno@clisp.org>
34227
34228         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
34229         cross-compiling guesses also when the native compile gives no result.
34230
34231 2008-11-10  Bruno Haible  <bruno@clisp.org>
34232
34233         * lib/spawni.c (__spawni): Force variable into the stack.
34234
34235 2008-11-10  Bruno Haible  <bruno@clisp.org>
34236
34237         Add support for Haiku.
34238         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
34239         glibc and BeOS, but also on Haiku.
34240         * lib/fpurge.c (fpurge): Likewise.
34241         * lib/freadable.c (freadable): Likewise.
34242         * lib/freadahead.c (freadahead): Likewise.
34243         * lib/freading.c (freading): Likewise.
34244         * lib/freadptr.c (freadptr): Likewise.
34245         * lib/freadseek.c (freadptrinc): Likewise.
34246         * lib/fseeko.c (rpl_fseeko): Likewise.
34247         * lib/fseterr.c (fseterr): Likewise.
34248         * lib/fwritable.c (fwritable): Likewise.
34249         * lib/fwriting.c (fwriting): Likewise.
34250         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
34251
34252 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
34253
34254         * lib/config.charset: Treat Haiku like BeOS.
34255
34256 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
34257
34258         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
34259         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
34260
34261 2008-11-08  Bruno Haible  <bruno@clisp.org>
34262
34263         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
34264         AC_CACHE_CHECK.
34265
34266 2008-11-08  Bruno Haible  <bruno@clisp.org>
34267
34268         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
34269
34270 2008-11-08  Bruno Haible  <bruno@clisp.org>
34271
34272         * tests/test-select-fd.c: New file.
34273         * tests/test-select-in.sh: New file.
34274         * tests/test-select-out.sh: New file.
34275         * tests/test-select-stdin.c: New file.
34276         * modules/select-tests (Files): Add the new files.
34277         (Depends-on): Add gettimeofday.
34278         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
34279         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
34280         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
34281
34282 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
34283             Bruno Haible  <bruno@clisp.org>
34284
34285         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
34286
34287 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
34288
34289         * build-aux/pmccabe2html: Added support for C++ source files.
34290
34291 2008-11-05  Ben Pfaff  <blp@gnu.org>
34292
34293         Fix lib/close.c build on Windows.
34294         * modules/close (Files): Add lib/w32sock.h.
34295
34296 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
34297
34298         Accept Bison's NEWS format.
34299         * build-aux/announce-gen (print_news_deltas): Tweak
34300         $re_prefix.
34301
34302 2008-11-04  Bruno Haible  <bruno@clisp.org>
34303
34304         * modules/random_r (Maintainer): Add glibc.
34305
34306 2008-11-04  Simon Josefsson  <simon@josefsson.org>
34307
34308         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
34309         by karl@freefriends.org (Karl Berry).
34310         * doc/alloca.texi: Likewise.
34311         * doc/c-ctype.texi: Likewise.
34312         * doc/c-strcase.texi: Likewise.
34313         * doc/c-strcaseeq.texi: Likewise.
34314         * doc/c-strcasestr.texi: Likewise.
34315         * doc/c-strstr.texi: Likewise.
34316         * doc/c-strtod.texi: Likewise.
34317         * doc/c-strtold.texi: Likewise.
34318         * doc/ctime.texi: Likewise.
34319         * doc/error.texi: Likewise.
34320         * doc/fdl.texi: Likewise.
34321         * doc/gcd.texi: Likewise.
34322         * doc/getdate.texi: Likewise.
34323         * doc/gnulib-intro.texi: Likewise.
34324         * doc/gnulib-tool.texi: Likewise.
34325         * doc/gnulib.texi: Likewise.
34326         * doc/inet_ntoa.texi: Likewise.
34327         * doc/maintain.texi: Likewise.
34328         * doc/make-stds.texi: Likewise.
34329         * doc/quote.texi: Likewise.
34330         * doc/regexprops-generic.texi: Likewise.
34331         * doc/standards.texi: Likewise.
34332         * doc/verify.texi: Likewise.
34333         * doc/visibility.texi: Likewise.
34334         * doc/gnulib.texi (GNU Free Documentation License): Include
34335         fdl-1.3.texi instead of fdl.texi.
34336
34337 2008-11-04  Simon Josefsson  <simon@josefsson.org>
34338
34339         * doc/fdl-1.3.texi: New file, from
34340         <http://www.gnu.org/licenses/fdl-1.3.texi>.
34341         * modules/fdl-1.3: Add.
34342         * MODULES.html.sh: Add fdl-1.3.
34343
34344 2008-11-03  Bruno Haible  <bruno@clisp.org>
34345
34346         Make determination of absolute name of header file work with AIX xlc.
34347         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
34348         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
34349         preprocessing.
34350         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34351         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
34352
34353 2008-11-03  Simon Josefsson  <simon@josefsson.org>
34354
34355         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
34356         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
34357         <ludo@gnu.org>.
34358
34359 2008-11-02  Bruno Haible  <bruno@clisp.org>
34360
34361         Mark 'strpbrk' obsolete.
34362         * modules/strpbrk (Status, Notice): New sections.
34363         * modules/strtok_r (Depends-on): Add strpbrk.
34364
34365 2008-11-02  Bruno Haible  <bruno@clisp.org>
34366
34367         Mark 'strdup' obsolete.
34368         * modules/strdup (Status, Notice): New sections.
34369         * modules/findprog (Depends-on): Add strdup.
34370         * modules/getaddrinfo (Depends-on): Likewise.
34371         * modules/localename (Depends-on): Likewise.
34372         * modules/relocatable-lib (Depends-on): Likewise.
34373         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
34374         * modules/relocatable-prog (Depends-on): Likewise.
34375         * modules/trim (Depends-on): Likewise.
34376         * modules/unictype/gen-ctype (Depends-on): Likewise.
34377         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
34378
34379 2008-11-02  Bruno Haible  <bruno@clisp.org>
34380
34381         Mark 'strcspn' obsolete.
34382         * modules/strcspn (Status, Notice): New sections.
34383
34384 2008-11-02  Bruno Haible  <bruno@clisp.org>
34385
34386         Mark 'rmdir' obsolete.
34387         * modules/rmdir (Status, Notice): New sections.
34388         * modules/clean-temp (Depends-on): Add rmdir.
34389         * modules/openat (Depends-on): Likewise.
34390
34391 2008-11-02  Bruno Haible  <bruno@clisp.org>
34392
34393         Mark 'raise' obsolete.
34394         * modules/raise (Status, Notice): New sections.
34395         (Include): Specify <signal.h>.
34396         * modules/stdio (Depends-on): Add raise.
34397         * modules/write (Depends-on): Likewise.
34398
34399 2008-11-02  Bruno Haible  <bruno@clisp.org>
34400
34401         Mark 'memset' obsolete.
34402         * modules/memset (Status, Notice): New sections.
34403
34404 2008-11-02  Bruno Haible  <bruno@clisp.org>
34405
34406         Mark 'memmove' obsolete.
34407         * modules/memmove (Status, Notice): New sections.
34408         * modules/argp (Depends-on): Add memmove.
34409         * modules/argz (Depends-on): Likewise.
34410         * modules/canonicalize (Depends-on): Likewise.
34411         * modules/canonicalize-lgpl (Depends-on): Likewise.
34412         * modules/fts (Depends-on): Likewise.
34413         * modules/getcwd (Depends-on): Likewise.
34414         * modules/human (Depends-on): Likewise.
34415         * modules/regex (Depends-on): Likewise.
34416         * modules/striconveh (Depends-on): Likewise.
34417         * modules/trim (Depends-on): Likewise.
34418         * modules/unistr/u8-move (Depends-on): Likewise.
34419         * modules/unistr/u16-move (Depends-on): Likewise.
34420         * modules/unistr/u32-move (Depends-on): Likewise.
34421
34422 2008-11-02  Bruno Haible  <bruno@clisp.org>
34423
34424         Mark 'memcpy' obsolete.
34425         * modules/memcpy (Status, Notice): New sections.
34426
34427 2008-11-02  Bruno Haible  <bruno@clisp.org>
34428
34429         Mark 'memcmp' obsolete.
34430         * modules/memcmp (Status, Notice): New sections.
34431         * modules/argmatch (Depends-on): Add memchr.
34432         * modules/backupfile (Depends-on): Likewise.
34433         * modules/c-strcasestr (Depends-on): Likewise.
34434         * modules/crypto/des (Depends-on): Likewise.
34435         * modules/csharpcomp (Depends-on): Likewise.
34436         * modules/fnmatch (Depends-on): Likewise.
34437         * modules/git-merge-changelog (Depends-on): Likewise.
34438         * modules/isnand (Depends-on): Likewise.
34439         * modules/isnand-nolibm (Depends-on): Likewise.
34440         * modules/isnanf (Depends-on): Likewise.
34441         * modules/isnanf-nolibm (Depends-on): Likewise.
34442         * modules/isnanl (Depends-on): Likewise.
34443         * modules/isnanl-nolibm (Depends-on): Likewise.
34444         * modules/mbchar (Depends-on): Likewise.
34445         * modules/memcoll (Depends-on): Likewise.
34446         * modules/quotearg (Depends-on): Likewise.
34447         * modules/regex (Depends-on): Likewise.
34448         * modules/relocatable-prog (Depends-on): Likewise.
34449         * modules/same (Depends-on): Likewise.
34450         * modules/signbit (Depends-on): Likewise.
34451         * modules/strcasestr-simple (Depends-on): Likewise.
34452         * modules/unictype/gen-ctype (Depends-on): Likewise.
34453         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
34454         * modules/uniname/uniname (Depends-on): Likewise.
34455         * modules/unistr/u8-cmp (Depends-on): Likewise.
34456
34457 2008-11-02  Bruno Haible  <bruno@clisp.org>
34458
34459         Mark 'memchr' obsolete.
34460         * modules/memchr (Status, Notice): New sections.
34461         * modules/argp (Depends-on): Add memchr.
34462         * modules/base64 (Depends-on): Likewise.
34463         * modules/c-strcasestr (Depends-on): Likewise.
34464         * modules/chdir-long (Depends-on): Likewise.
34465         * modules/fnmatch (Depends-on): Likewise.
34466         * modules/getsubopt (Depends-on): Likewise.
34467         * modules/git-merge-changelog (Depends-on): Likewise.
34468         * modules/glob (Depends-on): Likewise.
34469         * modules/strcasestr-simple (Depends-on): Likewise.
34470         * modules/strnlen (Depends-on): Likewise.
34471
34472 2008-11-02  Bruno Haible  <bruno@clisp.org>
34473
34474         Mark 'atexit' obsolete.
34475         * modules/atexit (Status, Notice): New sections.
34476         * modules/chdir-long (Depends-on): Add atexit.
34477         * modules/wait-process (Depends-on): Likewise.
34478
34479 2008-11-02  Bruno Haible  <bruno@clisp.org>
34480
34481         * gnulib-tool: New option --with-obsolete.
34482         (func_usage): Document it.
34483         (func_modules_transitive_closure): Drop obsolete dependencies if
34484         incobsolete is not true.
34485         (func_import): Read and save the incobsolete variable to the cache.
34486
34487 2008-11-02  Bruno Haible  <bruno@clisp.org>
34488
34489         * modules/TEMPLATE-EXTENDED: New field 'Status'.
34490         * gnulib-tool: New option --extract-status.
34491         (func_usage): Document it.
34492         (sed_extract_prog): Recognize it.
34493         (func_get_status): New function.
34494
34495 2008-10-30  Simon Josefsson  <simon@josefsson.org>
34496
34497         * modules/sockets (License): Change from LGPL to LGPLv2+.
34498
34499 2008-10-28  Simon Josefsson  <simon@josefsson.org>
34500
34501         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
34502
34503 2008-10-28  Simon Josefsson  <simon@josefsson.org>
34504
34505         * MODULES.html.sh (Support for systems lacking POSIX:2001):
34506         Mention times and sys_times.
34507         * modules/sys_times, modules/sys_times-tests: New modules.
34508         * modules/times, modules/times-tests: Likewise
34509         * m4/sys_times_h.m4: New file.
34510         * lib/sys_times.in.h: Likewise
34511         * lib/times.c: Likewise.
34512         * tests/test-sys_times.c: Likewise.
34513         * tests/test-times.c: Likewise.
34514         * doc/posix-headers/sys_times.texi: Update.
34515         * doc/posix-functions/times.texi: Update.
34516
34517 2008-10-28  Jim Meyering  <meyering@redhat.com>
34518
34519         * modules/tempname (Depends-on): Add lstat.
34520
34521         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
34522
34523 2008-10-28  Simon Josefsson  <simon@josefsson.org>
34524
34525         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
34526         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
34527         using idiom used elsewhere in gnulib.
34528
34529 2008-10-27  Jim Meyering  <meyering@redhat.com>
34530
34531         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
34532
34533 2008-10-27  Simon Josefsson  <simon@josefsson.org>
34534
34535         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
34536         TESTS_ENVIRONMENT, for shell scripts that needs to call built
34537         programs.
34538         * tests/test-argp-2.sh: Use $EXEEXT when needed.
34539
34540 2008-10-27  Simon Josefsson  <simon@josefsson.org>
34541
34542         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
34543
34544 2008-10-27  Bruno Haible  <bruno@clisp.org>
34545
34546         * tests/test-lstat.c: Include <stdio.h>.
34547
34548 2008-10-27  Simon Josefsson  <simon@josefsson.org>
34549
34550         * modules/lstat-tests: New module.
34551         * tests/test-lstat.c: New file.
34552
34553 2008-10-26  Jim Meyering  <meyering@redhat.com>
34554
34555         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
34556
34557 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34558             Bruno Haible  <bruno@clisp.org>
34559
34560         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
34561         * modules/configmake (Include): Add a note that the include must come
34562         after all system headers.
34563         * lib/javaversion.c: Include configmake.h after all other includes.
34564
34565 2008-10-26  Bruno Haible  <bruno@clisp.org>
34566
34567         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
34568         HAVE_STRUCT_RANDOM_DATA to 1.
34569         (gl_STDLIB_H): Simplify.
34570
34571 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34572
34573         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
34574         substitute HAVE_STRUCT_RANDOM_DATA.
34575         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
34576         random_data.
34577         * modules/stdlib (Makefile.am): Substitute
34578         HAVE_STRUCT_RANDOM_DATA.
34579
34580 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34581
34582         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
34583         * doc/gnulib-intro.texi (Copyright): Likewise.
34584
34585 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34586
34587         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
34588         findings.
34589
34590 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
34591             Bruno Haible  <bruno@clisp.org>
34592
34593         * lib/unistd.in.h: Include <winsock2.h>.
34594         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
34595         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
34596         Provide dummy declarations.
34597         (gethostname): Override.
34598         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
34599         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
34600         gl_PREREQ_SYS_H_WINSOCK2.
34601         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
34602         * doc/posix-functions/gethostname.texi: More details.
34603
34604 2008-10-25  Bruno Haible  <bruno@clisp.org>
34605
34606         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
34607         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
34608         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
34609
34610         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
34611         here ...
34612         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
34613         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
34614         gl_UNISTD_H_DEFAULTS.
34615
34616 2008-10-25  Eric Blake  <ebb9@byu.net>
34617
34618         signbit: avoid spurious compiler failure
34619         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
34620         declarations inside function.
34621
34622 2008-10-24  Simon Josefsson  <simon@josefsson.org>
34623             Bruno Haible  <bruno@clisp.org>
34624
34625         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
34626         * modules/random_r (Depends-on): Add stdint.
34627
34628 2008-10-24  Bruno Haible  <bruno@clisp.org>
34629
34630         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
34631         Eggert.
34632         * modules/strerror (License): Likewise.
34633
34634 2008-10-24  Jim Meyering  <meyering@redhat.com>
34635
34636         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
34637         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
34638
34639 2008-10-24  Eric Blake  <ebb9@byu.net>
34640
34641         getgroups: fix compilation when getgroups is available
34642         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
34643         but with <config.h> override of getgroups disabled.
34644
34645 2008-10-24  Simon Josefsson  <simon@josefsson.org>
34646
34647         * doc/gnulib.texi (Header files): Add note about C++ problems.
34648         Explained by Bruno Haible <bruno@clisp.org>.
34649
34650 2008-10-23  Bruno Haible  <bruno@clisp.org>
34651
34652         Define a dummy SA_NODEFER macro on Interix.
34653         * lib/signal.in.h (SA_NODEFER): Define fallback.
34654         Reported by Aleksey Cheusov <cheusov@tut.by> via
34655         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
34656
34657 2008-10-23  Bruno Haible  <bruno@clisp.org>
34658
34659         * modules/freadahead (License): Change to LGPLv2+.
34660         Suggested by Simon Josefsson.
34661
34662 2008-10-23  Jim Meyering  <meyering@redhat.com>
34663
34664         random_r: new module
34665         * modules/random_r: New file.
34666         * m4/random_r.m4: New file.
34667         * lib/random_r.c: New file, from glibc.
34668         * modules/random_r-tests: New file.
34669         * tests/test-random_r.c: New file.
34670         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
34671          Declare.
34672         (RAND_MAX): Define.
34673         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
34674         * modules/stdlib: Substitute them, too.
34675         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
34676         * doc/glibc-functions/initstate_r.texi: Mention the new module.
34677         * doc/glibc-functions/random_r.texi: Likewise.
34678         * doc/glibc-functions/setstate_r.texi: Likewise.
34679         * doc/glibc-functions/srandom_r.texi: Likewise.
34680         * config/srclist.txt: Mention it.
34681
34682 2008-10-23  David Lutterkort  <lutter@redhat.com>
34683
34684         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
34685         link requirement
34686
34687 2008-10-23  Jim Meyering  <meyering@redhat.com>
34688
34689         selinux-h: mark parameters of stub functions as intentionally unused
34690         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
34691         * lib/se-context.in.h: Likewise.
34692
34693 2008-10-22  Simon Josefsson  <simon@josefsson.org>
34694
34695         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
34696
34697 2008-10-22  Simon Josefsson  <simon@josefsson.org>
34698
34699         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
34700
34701 2008-10-22  Eric Blake  <ebb9@byu.net>
34702
34703         glthread/thread: avoid compiler warning
34704         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
34705         Add unreachable abort to silence compiler.
34706
34707 2008-10-22  Eric Blake  <ebb9@byu.net>
34708
34709         netdb: also supply struct addrinfo for cygwin 1.5.x
34710         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
34711         older cygwin.
34712         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
34713         cygwin.
34714         * doc/posix-headers/netdb.texi (netdb.h): Document this.
34715
34716 2008-10-22  Bruno Haible  <bruno@clisp.org>
34717
34718         * users.txt: Update entry about pspp.
34719
34720 2008-10-21  Bruno Haible  <bruno@clisp.org>
34721
34722         Simplification.
34723         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
34724         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
34725
34726         Simplification.
34727         * lib/ioctl.c (ioctl): Don't undefine.
34728         * lib/socket.c (socket): Don't undefine.
34729
34730         Remove unused module indicator macros.
34731         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
34732         GNULIB_$1 as a C macro.
34733
34734         * doc/posix-functions/close.texi: Undo last change.
34735         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
34736         Windows platforms.
34737
34738 2008-10-21  Bruno Haible  <bruno@clisp.org>
34739
34740         Add gethostname() declaration to <unistd.h>.
34741         * lib/unistd.in.h (gethostname): New declaration.
34742         * lib/gethostname.c: Include <unistd.h>.
34743         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
34744         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
34745         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
34746         and HAVE_GETHOSTNAME.
34747         * modules/gethostname (Depends-on): Add unistd.
34748         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34749         (Include): Specify <unistd.h>.
34750         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
34751         HAVE_GETHOSTNAME.
34752         * tests/test-gethostname.c: Include <unistd.h> first.
34753
34754 2008-10-21  Bruno Haible  <bruno@clisp.org>
34755
34756         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
34757         * modules/select-tests (Depends-on): Likewise.
34758         Reported by Simon Josefsson.
34759
34760 2008-10-21  Simon Josefsson  <simon@josefsson.org>
34761
34762         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
34763         * lib/accept.c: New file, based on winsock.c.
34764         * lib/bind.c: New file, based on winsock.c.
34765         * lib/connect.c: New file, based on winsock.c.
34766         * lib/getpeername.c: New file, based on winsock.c.
34767         * lib/getsockname.c: New file, based on winsock.c.
34768         * lib/getsockopt.c: New file, based on winsock.c.
34769         * lib/ioctl.c: New file, based on winsock.c.
34770         * lib/listen.c: New file, based on winsock.c.
34771         * lib/recv.c: New file, based on winsock.c.
34772         * lib/recvfrom.c: New file, based on winsock.c.
34773         * lib/send.c: New file, based on winsock.c.
34774         * lib/sendto.c: New file, based on winsock.c.
34775         * lib/setsockopt.c: New file, based on winsock.c.
34776         * lib/shutdown.c: New file, based on winsock.c.
34777         * lib/socket.c: New file, based on winsock.c.
34778         * lib/w32sock.h: New file, based on winsock.c.
34779         * lib/winsock.c: Remove file.
34780         * modules/accept: Likewise.
34781         * modules/bind: Likewise.
34782         * modules/connect: Likewise.
34783         * modules/getpeername: Likewise.
34784         * modules/getsockname: Likewise.
34785         * modules/getsockopt: Likewise.
34786         * modules/ioctl: Likewise.
34787         * modules/listen: Likewise.
34788         * modules/recv: Likewise.
34789         * modules/recvfrom: Likewise.
34790         * modules/send: Likewise.
34791         * modules/sendto: Likewise.
34792         * modules/setsockopt: Likewise.
34793         * modules/shutdown: Likewise.
34794         * modules/socket: Use socket.c instead of winsock.c.
34795         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
34796         * doc/posix-functions/accept.texi: Doc fix.
34797         * doc/posix-functions/bind.texi: Doc fix.
34798         * doc/posix-functions/close.texi: Doc fix.
34799         * doc/posix-functions/connect.texi: Doc fix.
34800         * doc/posix-functions/getpeername.texi: Doc fix.
34801         * doc/posix-functions/getsockname.texi: Doc fix.
34802         * doc/posix-functions/getsockopt.texi: Doc fix.
34803         * doc/posix-functions/ioctl.texi: Doc fix.
34804         * doc/posix-functions/listen.texi: Doc fix.
34805         * doc/posix-functions/recv.texi: Doc fix.
34806         * doc/posix-functions/recvfrom.texi: Doc fix.
34807         * doc/posix-functions/send.texi: Doc fix.
34808         * doc/posix-functions/sendto.texi: Doc fix.
34809         * doc/posix-functions/setsockopt.texi: Doc fix.
34810         * doc/posix-functions/shutdown.texi: Doc fix.
34811         * doc/posix-functions/socket.texi: Doc fix.
34812
34813 2008-10-20  Bruno Haible  <bruno@clisp.org>
34814
34815         Take into account the role of SIGABRT_COMPAT on Windows 2008.
34816         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
34817         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
34818         as an alias for SIGABRT.
34819         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
34820         (sigaction): Map it to SIGABRT.
34821         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
34822
34823 2008-10-20  Bruno Haible  <bruno@clisp.org>
34824
34825         * lib/fts.c: Don't include lstat.h.
34826         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
34827
34828         Move the lstat() declaration to <sys/stat.h>.
34829         * lib/lstat.h: Remove file.
34830         * lib/sys_stat.in.h: Add special invocation convention.
34831         (lstat): New declaration.
34832         * lib/lstat.c (orig_lstat): New function.
34833         (rpl_lstat): Use orig_lstat instead of lstat.
34834         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
34835         AC_C_INLINE. Set REPLACE_LSTAT.
34836         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
34837         and REPLACE_LSTAT.
34838         * modules/lstat (Files): Remove lib/lstat.h.
34839         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
34840         (Include): Specify <sys/stat.h> instead of lstat.h.
34841         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
34842         REPLACE_LSTAT.
34843         * NEWS: Mention the change.
34844
34845 2008-10-20  Bruno Haible  <bruno@clisp.org>
34846
34847         * modules/posix_spawn-tests: New file.
34848         * tests/test-posix_spawn3.c: New file.
34849
34850 2008-10-20  Bruno Haible  <bruno@clisp.org>
34851
34852         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
34853         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
34854         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
34855         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
34856         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
34857
34858 2008-10-20  Bruno Haible  <bruno@clisp.org>
34859
34860         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
34861         of posix_spawn on AIX 5.3.
34862
34863 2008-10-20  Bruno Haible  <bruno@clisp.org>
34864
34865         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
34866
34867 2008-10-20  Bruno Haible  <bruno@clisp.org>
34868
34869         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
34870         of AC_LANG_PROGRAM.
34871
34872 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34873
34874         * lib/netdb.in.h: Don't define GNU specific constants until they
34875         are supported or needed.  Reported by Bruno Haible
34876         <bruno@clisp.org>.
34877
34878 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34879
34880         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
34881
34882 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34883
34884         * lib/getaddrinfo.h: Remove file.
34885         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
34886         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
34887         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
34888         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
34889         * modules/netdb: Substitute GNULIB_GETADDRINFO.
34890         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
34891         * tests/test-getaddrinfo.c: Likewise.
34892         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
34893         * NEWS: Mention change.
34894
34895 2008-10-19  Bruno Haible  <bruno@clisp.org>
34896
34897         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
34898
34899 2008-10-19  Bruno Haible  <bruno@clisp.org>
34900
34901         * lib/wait-process.c: Include simply <sys/wait.h>.
34902         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
34903         WIFSTOPPED): Remove fallback definitions.
34904         * modules/wait-process (Depends-on): Add sys_wait.
34905
34906         New module 'sys_wait'.
34907         * modules/sys_wait: New file.
34908         * lib/sys_wait.in.h: New file, partially copied from
34909         lib/wait-process.c.
34910         * m4/sys_wait_h.m4: New file.
34911         * doc/posix-headers/sys_wait.texi: Mention the new module.
34912
34913 2008-10-19  Bruno Haible  <bruno@clisp.org>
34914
34915         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
34916
34917 2008-10-19  Bruno Haible  <bruno@clisp.org>
34918
34919         Assume that waitpid() fills an 'int' status, not a 'union wait'.
34920         * lib/wait-process.c (WAIT_T): Remove type.
34921         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
34922         (wait_subprocess): Update.
34923
34924 2008-10-19  Bruno Haible  <bruno@clisp.org>
34925
34926         New module 'atoll'.
34927         * modules/atoll: New file.
34928         * lib/stdlib.in.h (atoll): New declaration.
34929         * lib/atoll.c: New file, from glibc with modifications.
34930         * m4/atoll.m4: New file.
34931         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
34932         HAVE_ATOLL.
34933         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
34934         * doc/posix-functions/atoll.texi: Mention the new module.
34935
34936 2008-10-19  Bruno Haible  <bruno@clisp.org>
34937
34938         Add strtoull() declaration to <stdlib.h>.
34939         * lib/stdlib.in.h (strtoull): New declaration.
34940         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
34941         Set HAVE_STRTOULL.
34942         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
34943         HAVE_STRTOULL.
34944         * modules/strtoull (Depends-on): Add stdlib.
34945         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34946         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
34947         HAVE_STRTOULL.
34948
34949 2008-10-19  Bruno Haible  <bruno@clisp.org>
34950
34951         Add strtoll() declaration to <stdlib.h>.
34952         * lib/stdlib.in.h (strtoll): New declaration.
34953         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
34954         Set HAVE_STRTOLL.
34955         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
34956         HAVE_STRTOLL.
34957         * modules/strtoll (Depends-on): Add stdlib.
34958         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34959         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
34960
34961 2008-10-19  Bruno Haible  <bruno@clisp.org>
34962
34963         * modules/bcopy (Depends-on): Add strings.
34964         (Include): Specify <strings.h>.
34965
34966 2008-10-19  Bruno Haible  <bruno@clisp.org>
34967
34968         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
34969
34970 2008-10-19  Bruno Haible  <bruno@clisp.org>
34971
34972         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
34973         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
34974         mingw.
34975
34976 2008-10-19  Bruno Haible  <bruno@clisp.org>
34977
34978         * lib/atanl.c: Don't include isnanl.h.
34979         * lib/cosl.c: Likewise.
34980         * lib/ldexpl.c: Likewise.
34981         * lib/logl.c: Likewise.
34982         * lib/sinl.c: Likewise.
34983         * lib/sqrtl.c: Likewise.
34984         * lib/tanl.c: Likewise.
34985
34986         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
34987         * lib/isnanf.h: Remove file.
34988         * lib/isnand.h: Remove file.
34989         * lib/isnanl.h: Remove file.
34990         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
34991         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
34992         macros.
34993         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
34994         HAVE_ISNANF, don't define it as a C macro.
34995         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
34996         HAVE_ISNAND, don't define it as a C macro.
34997         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
34998         HAVE_ISNANL, don't define it as a C macro.
34999         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
35000         HAVE_ISNAN[FDL].
35001         * modules/isnanf (Files): Remove lib/isnanf.h.
35002         (Depends-on): Add math.
35003         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35004         (Include): Specify <math.h> instead of isnanf.h.
35005         * modules/isnand (Files): Remove lib/isnand.h.
35006         (Depends-on): Add math.
35007         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35008         (Include): Specify <math.h> instead of isnand.h.
35009         * modules/isnanl (Files): Remove lib/isnanl.h.
35010         (Depends-on): Add math.
35011         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35012         (Include): Specify <math.h> instead of isnanl.h.
35013         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
35014         HAVE_ISNAN[FDL].
35015         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
35016         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
35017         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
35018         * NEWS: Mention the change.
35019
35020 2008-10-18  Bruno Haible  <bruno@clisp.org>
35021
35022         Add getusershell(), setusershell(), endusershell() declarations to
35023         <unistd.h>.
35024         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
35025         declarations.
35026         * lib/getusershell.c: Include unistd.h.
35027         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
35028         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
35029         HAVE_GETUSERSHELL.
35030         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
35031         and HAVE_GETUSERSHELL.
35032         * modules/getusershell (Depends-on): Add unistd, extensions.
35033         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35034         (Include): Specify <unistd.h>.
35035         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
35036         HAVE_GETUSERSHELL.
35037
35038 2008-10-18  Bruno Haible  <bruno@clisp.org>
35039
35040         Add a getloadavg() declaration to <stdlib.h>.
35041         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
35042         getloadavg declaration.
35043         (getloadavg): New declaration.
35044         * lib/getloadavg.c: Include <stdlib.h> first.
35045         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
35046         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
35047         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
35048         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
35049         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
35050         * modules/getloadavg (Depends-on): Add stdlib, extensions.
35051         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35052         (Include): Specify <stdlib.h>.
35053         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
35054         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
35055
35056 2008-10-18  Bruno Haible  <bruno@clisp.org>
35057
35058         * lib/dirchownmod.c: Don't include lchmod.h.
35059
35060         Move the lchmod() declaration to <sys/stat.h>.
35061         * lib/lchmod.h: Remove file.
35062         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
35063         (lchmod): New declaration, moved here from lib/lchown.h.
35064         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
35065         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
35066         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
35067         and HAVE_LCHMOD.
35068         * modules/lchmod (Files): Remove lib/lchmod.h.
35069         (Depends-on): Add sys_stat, extensions.
35070         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
35071         (Include): Specify <sys/stat.h> instead of lchmod.h.
35072         * modules/sys_stat (Depends-on): Add link-warning.
35073         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
35074         definition of GL_LINK_WARNING.
35075         * NEWS: Mention the change.
35076
35077 2008-10-18  Bruno Haible  <bruno@clisp.org>
35078
35079         * lib/fchdir.c: Don't include dirfd.h.
35080         * lib/fts.c: Likewise.
35081         * lib/getcwd.c: Likewise.
35082         * lib/glob.c: Likewise.
35083
35084         Move the dirfd() declaration to <dirent.h>.
35085         * lib/dirfd.h: Remove file.
35086         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
35087         (dirfd): New declaration.
35088         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
35089         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
35090         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
35091         HAVE_DECL_DIRFD.
35092         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
35093         HAVE_DECL_DIRFD.
35094         * modules/dirfd (Files): Remove lib/dirfd.h.
35095         (Depends-on): Add dirent, extensions.
35096         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
35097         (Include): Specify <dirent.h> instead of dirfd.h.
35098         * modules/dirent (Depends-on): Add link-warning.
35099         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
35100         definition of GL_LINK_WARNING.
35101         * NEWS: Mention the change.
35102
35103 2008-10-18  Bruno Haible  <bruno@clisp.org>
35104
35105         Move the euidaccess() declaration to <unistd.h>.
35106         * lib/euidaccess.h: Remove file.
35107         * lib/unistd.in.h (euidaccess): New declaration.
35108         * lib/euidaccess.c: Don't include euidaccess.h.
35109         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
35110         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
35111         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
35112         and HAVE_EUIDACCESS.
35113         * modules/euidaccess (Files): Remove lib/euidaccess.h.
35114         (Depends-on): Add unistd.
35115         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35116         (Include): Specify <unistd.h> instead of euidaccess.h.
35117         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
35118         HAVE_EUIDACCESS.
35119         * NEWS: Mention the change.
35120
35121 2008-10-18  Bruno Haible  <bruno@clisp.org>
35122
35123         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
35124
35125         Move the getdomainname() declaration to <unistd.h>.
35126         * lib/getdomainname.h: Remove file.
35127         * lib/unistd.in.h (getdomainname): New declaration.
35128         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
35129         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
35130         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
35131         HAVE_GETDOMAINNAME.
35132         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35133         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
35134         * modules/getdomainname (Files): Remove lib/getdomainname.h.
35135         (Depends-on): Add unistd, extensions.
35136         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35137         (Includes): Specify <unistd.h> instead of getdomainname.h.
35138         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
35139         HAVE_GETDOMAINNAME.
35140         * NEWS: Mention the change.
35141
35142 2008-10-18  Bruno Haible  <bruno@clisp.org>
35143
35144         * modules/dirent: New file.
35145         * m4/dirent_h.m4: New file.
35146         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
35147         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
35148         * modules/fchdir (Files): Remove lib/dirent.in.h.
35149         (Depends-on): Add dirent.
35150         (Makefile.am): Move rules to modules/dirent.
35151         * doc/posix-headers/dirent.texi: Mention the new module.
35152
35153 2008-10-18  Bruno Haible  <bruno@clisp.org>
35154
35155         Avoid -Wunused-parameter warnings in public gnulib header files.
35156         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
35157         macro.
35158         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
35159
35160 2008-10-18  Bruno Haible  <bruno@clisp.org>
35161
35162         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
35163         * doc/glibc-functions/error.texi: Mention the module 'error'.
35164         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
35165         * doc/glibc-functions/getdomainname.texi: Mention the module
35166         'getdomainname'.
35167         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
35168         * doc/glibc-functions/getpagesize.texi: Mention the module
35169         'getpagesize'.
35170         * doc/glibc-functions/getusershell.texi: Mention the module
35171         'getusershell'.
35172         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
35173         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
35174         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
35175         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
35176         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
35177         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
35178         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
35179         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
35180         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
35181         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
35182         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
35183         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
35184         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
35185         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
35186
35187 2008-10-17  Bruno Haible  <bruno@clisp.org>
35188
35189         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
35190         HP-UX and IRIX, use -0.0L.
35191         * tests/test-ceill.c (minus_zero): Likewise.
35192         * tests/test-floorl.c (minus_zero): Likewise.
35193         * tests/test-frexpl.c (minus_zero): Likewise.
35194         * tests/test-isnan.c (minus_zerol): Likewise.
35195         * tests/test-isnanl.h (minus_zero): Likewise.
35196         * tests/test-ldexpl.c (minus_zero): Likewise.
35197         * tests/test-roundl.c (minus_zero): Likewise.
35198         * tests/test-signbit.c (minus_zerol): Likewise.
35199         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
35200         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
35201         * tests/test-truncl.c (minus_zero): Likewise.
35202         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
35203         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
35204         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
35205         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
35206
35207 2008-10-17  Bruno Haible  <bruno@clisp.org>
35208
35209         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
35210         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
35211         that it gets activated only for gcc >= 3.0.
35212         * lib/dirent.in.h: Likewise.
35213         * lib/errno.in.h: Likewise.
35214         * lib/fcntl.in.h: Likewise.
35215         * lib/float.in.h: Likewise.
35216         * lib/iconv.in.h: Likewise.
35217         * lib/inttypes.in.h: Likewise.
35218         * lib/locale.in.h: Likewise.
35219         * lib/math.in.h: Likewise.
35220         * lib/netdb.in.h: Likewise.
35221         * lib/netinet_in.in.h: Likewise.
35222         * lib/search.in.h: Likewise.
35223         * lib/signal.in.h: Likewise.
35224         * lib/spawn.in.h: Likewise.
35225         * lib/stdarg.in.h: Likewise.
35226         * lib/stdint.in.h: Likewise.
35227         * lib/stdio.in.h: Likewise.
35228         * lib/stdlib.in.h: Likewise.
35229         * lib/string.in.h: Likewise.
35230         * lib/strings.in.h: Likewise.
35231         * lib/sys_file.in.h: Likewise.
35232         * lib/sys_ioctl.in.h: Likewise.
35233         * lib/sys_select.in.h: Likewise.
35234         * lib/sys_socket.in.h: Likewise.
35235         * lib/sys_stat.in.h: Likewise.
35236         * lib/sys_time.in.h: Likewise.
35237         * lib/sysexits.in.h: Likewise.
35238         * lib/time.in.h: Likewise.
35239         * lib/unistd.in.h: Likewise.
35240         * lib/wchar.in.h: Likewise.
35241         * lib/wctype.in.h: Likewise.
35242         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35243
35244 2008-10-17  Jim Meyering  <meyering@redhat.com>
35245
35246         ignore-value: don't depend on inline module
35247         * modules/ignore-value (Depends-on): Remove 'inline'.
35248         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
35249         Suggestion from Bruno Haible.
35250
35251 2008-10-17  Bruno Haible  <bruno@clisp.org>
35252
35253         New implementation of condition variables for Win32.
35254         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
35255         (gl_linked_waitqueue_t): New type.
35256         (gl_cond_t): Use it.
35257         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
35258         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
35259         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
35260         (glthread_cond_init_func, glthread_cond_wait_func,
35261         glthread_cond_timedwait_func, glthread_cond_signal_func,
35262         glthread_cond_broadcast_func, glthread_cond_destroy_func):
35263         Reimplemented on the basis of gl_linked_waitqueue_t.
35264         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
35265         gl_waitqueue_t.
35266         (gl_rwlock_t): Update.
35267         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
35268
35269 2008-10-17  Simon Josefsson  <simon@josefsson.org>
35270
35271         * modules/recvfrom (Depends-on): Add dependency on getpeername.
35272         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
35273
35274 2008-10-17  Jim Meyering  <meyering@redhat.com>
35275
35276         ignore-value: new module
35277         * modules/ignore-value: New file.
35278         * lib/ignore-value.h: New file.
35279         * MODULES.html.sh (Compiler warning management): New section,
35280         just for this module.  More to come.
35281
35282 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35283
35284         open-safer.c: avoid 'signed and unsigned in conditional...' warning
35285         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
35286         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
35287
35288 2008-10-16  Jim Meyering  <meyering@redhat.com>
35289
35290         openat-die.c: avoid 'no previous prototype' warning
35291         * lib/openat-die.c: Include "openat.h".
35292         Reported by Reuben Thomas <rrt@sc3d.org>.
35293
35294 2008-10-16  Simon Josefsson  <simon@josefsson.org>
35295
35296         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
35297         * lib/netdb.in.h: Fix typo.
35298         Reported by Bruno Haible  <bruno@clisp.org>
35299
35300         * lib/netdb.in.h: Include sys/socket.h for platforms without
35301         netdb.h, to get structures like hostent on MinGW.
35302         * modules/netdb (Depends-on): Add sys_socket.
35303
35304 2008-10-15  Simon Josefsson  <simon@josefsson.org>
35305
35306         * modules/netdb, modules/netdb-tests: New file.
35307         * m4/netdb_h.m4: New file.
35308         * lib/netdb.in.h: Add, currently just an empty file pending
35309         definitions.
35310         * tests/test-netdb.c: New file.
35311         * doc/posix-headers/netdb.texi: Mention that we replace it if
35312         needed.
35313         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35314         netdb.
35315
35316 2008-10-15  Simon Josefsson  <simon@josefsson.org>
35317
35318         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
35319         with code.
35320
35321 2008-10-13  Bruno Haible  <bruno@clisp.org>
35322
35323         * lib/glthread/cond.c (glthread_cond_wait_func,
35324         glthread_cond_timedwait_func): Add a comment.
35325
35326 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35327
35328         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
35329         * tests/test-select.c: Likewise,
35330
35331 2008-10-13  Bruno Haible  <bruno@clisp.org>
35332
35333         * lib/glthread/cond.c (glthread_cond_wait_func,
35334         glthread_cond_timedwait_func): Fix variable name.
35335         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
35336
35337 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
35338
35339         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
35340         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
35341         struct sockaddr.sa_len.
35342         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
35343
35344 2008-10-13  Simon Josefsson  <simon@josefsson.org>
35345
35346         * build-aux/pmccabe2html: Add css and css_url parameters.
35347
35348 2008-10-12  Bruno Haible  <bruno@clisp.org>
35349
35350         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
35351         calling aclx_get.
35352         Reported by Rainer Tammer <tammer@tammer.net>.
35353
35354 2008-10-12  Bruno Haible  <bruno@clisp.org>
35355
35356         Use msvcrt aware primitives for creation/termination of Win32 threads.
35357         * lib/glthread/thread.c: Include <process.h>.
35358         (glthread_create_func): Use _beginthreadex instead of CreateThread.
35359         (wrapper_func): Update signature.
35360         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
35361
35362 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35363             Bruno Haible  <bruno@clisp.org>
35364
35365         Provide a Win32 implementation of the 'cond' module.
35366         * lib/glthread/cond.h [USE_WIN32]: New implementation.
35367         * lib/glthread/cond.c (glthread_cond_init_func,
35368         glthread_cond_wait_func, glthread_cond_timedwait_func,
35369         glthread_cond_signal_func, glthread_cond_broadcast_func,
35370         glthread_cond_destroy_func) [USE_WIN32]: New functions.
35371         * modules/cond (Dependencies): Add gettimeofday.
35372
35373 2008-10-11  Bruno Haible  <bruno@clisp.org>
35374
35375         Make sleep work on older versions of mingw.
35376         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
35377         only whether it exists.
35378         * doc/posix-functions/sleep.texi: Mention the problem with older
35379         versions of mingw.
35380
35381 2008-10-11  Bruno Haible  <bruno@clisp.org>
35382
35383         New module 'shutdown'.
35384         * modules/shutdown: New file.
35385         * lib/sys_socket.in.h (shutdown): New declaration.
35386         * lib/winsock.c (shutdown): New function.
35387         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
35388         GNULIB_SHUTDOWN.
35389         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
35390         * doc/posix-functions/shutdown.texi: Document the new module.
35391
35392 2008-10-11  Jim Meyering  <meyering@redhat.com>
35393
35394         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
35395
35396 2008-10-11  Bruno Haible  <bruno@clisp.org>
35397
35398         New module 'fclose'.
35399         * modules/fclose: New file.
35400         * lib/stdio.in.h (fclose): New declaration.
35401         * lib/fclose.c: New file.
35402         * m4/fclose.m4: New file.
35403         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
35404         REPLACE_FCLOSE.
35405         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
35406         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
35407         REPLACE_FCLOSE.
35408         * modules/close (Depends-on): fclose.
35409         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
35410
35411 2008-10-11  Bruno Haible  <bruno@clisp.org>
35412
35413         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
35414         set errno and don't call _close.
35415
35416 2008-10-10  Bruno Haible  <bruno@clisp.org>
35417
35418         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
35419         ACL, not afterwards. Fixes test failure on Cygwin.
35420
35421 2008-10-09  Ben Pfaff  <blp@gnu.org>
35422
35423         * build-aux/announce-gen: Fix gnulib version related part of usage
35424         message.  Die with a useful error message if no tarballs are
35425         found.
35426
35427 2008-10-10  Jim Meyering  <meyering@redhat.com>
35428
35429         bootstrap: use git's --depth=N option only if it's supported
35430         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
35431         recognize the --depth option.  Reported by Pádraig Brady.
35432
35433 2008-10-09  Bruno Haible  <bruno@clisp.org>
35434
35435         New module 'ioctl'.
35436         * modules/ioctl: New file.
35437         * lib/sys_socket.in.h (ioctl): Remove declaration.
35438         * lib/winsock.c: Include <sys/ioctl.h>.
35439         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
35440         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
35441         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
35442         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
35443         * doc/posix-functions/ioctl.texi: Mention the new module.
35444
35445 2008-10-09  Bruno Haible  <bruno@clisp.org>
35446
35447         New module 'sys_ioctl'.
35448         * lib/sys_ioctl.in.h: New file.
35449         * m4/sys_ioctl_h.m4: New file.
35450         * modules/sys_ioctl: New file.
35451         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
35452
35453 2008-10-09  Bruno Haible  <bruno@clisp.org>
35454
35455         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
35456         * lib/winsock.c: Include <stdarg.h>.
35457         (rpl_ioctl): Change to second argument 'int' and then varargs.
35458
35459 2008-10-09  Bruno Haible  <bruno@clisp.org>
35460
35461         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
35462         when the sys_socket module is present and the system has <winsock2.h>.
35463
35464 2008-10-09  Bruno Haible  <bruno@clisp.org>
35465
35466         * doc/posix-functions/close.texi: Mention module 'close' instead of
35467         module 'sys_socket'.
35468
35469 2008-10-09  Bruno Haible  <bruno@clisp.org>
35470
35471         * doc/glibc-headers/sys_ioctl.texi: New file.
35472         * doc/gnulib.texi: Include it.
35473
35474 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35475             Bruno Haible  <bruno@clisp.org>
35476
35477         Combine the two replacements of 'close'.
35478         * lib/sys_socket.in.h (close): Define to a reminder to include
35479         <unistd.h>.
35480         (_gl_close_fd_maybe_socket): New declaration.
35481         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
35482         * lib/winsock.c (close): Remove undefinition.
35483         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
35484         needed for the gnulib module 'close'.
35485         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
35486         define to an error symbol or to a warning, if suitable.
35487         * lib/close.c: Include <sys/socket.h>.
35488         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
35489         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
35490         UNISTD_H_HAVE_WINSOCK2_H.
35491         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
35492         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35493         UNISTD_H_HAVE_WINSOCK2_H.
35494         * modules/sys_socket (Files): Add m4/unistd_h.m4.
35495         (configure.ac): Set a module indicator.
35496         (Makefile.am): Substitute GNULIB_CLOSE.
35497         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
35498         * modules/poll-tests (Depends-on): Add close.
35499         * modules/select-tests (Depends-on): Likewise.
35500
35501 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35502             Bruno Haible  <bruno@clisp.org>
35503
35504         New module 'close'.
35505         * modules/close: New file.
35506         * lib/unistd.in.h (close): Move declaration out of the
35507         FCHDIR_REPLACEMENT scope.
35508         (_gl_unregister_fd): New declaration.
35509         * lib/close.c: New file.
35510         * lib/fchdir.c (rpl_close): Remove function.
35511         * m4/close.m4: New file.
35512         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
35513         close.
35514         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
35515         REPLACE_CLOSE.
35516         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
35517         REPLACE_CLOSE.
35518         * modules/fchdir (Depends-on): Add close.
35519
35520 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35521             Bruno Haible  <bruno@clisp.org>
35522
35523         * lib/fcntl.in.h (open): Simplify conditionals.
35524         (_gl_register_fd): New declaration.
35525         * lib/fchdir.c (rpl_open): Remove function.
35526         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
35527         also.
35528         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
35529         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
35530         open.
35531
35532 2008-10-09  Jim Meyering  <meyering@redhat.com>
35533
35534         GNUmakefile: use the more name-space-friendly "_version"
35535         * top/GNUmakefile (_dummy): Update.
35536         (_version): Rename from "version".
35537
35538 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35539             Bruno Haible  <bruno@clisp.org>
35540
35541         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
35542         rpl_close.
35543         (_gl_register_fd): New function, extracted from rpl_open.
35544         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
35545         (rpl_open, rpl_opendir): Use _gl_register_fd.
35546
35547 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35548
35549         Fix organization of 'open' replacement.
35550         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
35551         (gl_FUNC_OPEN): Use it.
35552         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
35553
35554 2008-10-08  Bruno Haible  <bruno@clisp.org>
35555
35556         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
35557
35558 2008-10-08  Simon Josefsson  <simon@josefsson.org>
35559
35560         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
35561         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
35562         listen).
35563
35564 2008-10-08  Eric Blake  <ebb9@byu.net>
35565
35566         GNUmakefile: add 'make version' target
35567         * top/GNUmakefile (_curr-ver): Split version update rules...
35568         (version): ...into a target.
35569
35570 2008-10-07  Bruno Haible  <bruno@clisp.org>
35571
35572         Use a more portable replacement expression for -0.0L.
35573         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
35574         instead of -0.0L. Fix m4 quotation.
35575
35576         * tests/test-signbit.c: Include <float.h>.
35577         (minus_zero): New variable.
35578         (test_signbitl): Use minus_zero instead of -zero.
35579         * modules/signbit-tests (Depends-on): Add float.
35580
35581         * tests/test-ceill.c: Include <float.h>.
35582         (zero): Remove variable.
35583         (minus_zero): New variable.
35584         (main): Use minus_zero instead of -zero.
35585         * modules/ceill-tests (Depends-on): Add float.
35586
35587         * tests/test-floorl.c: Include <float.h>.
35588         (zero): Remove variable.
35589         (minus_zero): New variable.
35590         (main): Use minus_zero instead of -zero.
35591         * modules/floorl-tests (Depends-on): Add float.
35592
35593         * tests/test-roundl.c: Include <float.h>.
35594         (zero): Remove variable.
35595         (minus_zero): New variable.
35596         (main): Use minus_zero instead of -zero.
35597         * modules/roundl-tests (Depends-on): Add float.
35598
35599         * tests/test-truncl.c: Include <float.h>.
35600         (zero): Remove variable.
35601         (minus_zero): New variable.
35602         (main): Use minus_zero instead of -zero.
35603         * modules/truncl-tests (Depends-on): Add float.
35604
35605         * tests/test-frexpl.c (zero): Remove variable.
35606         (minus_zero): New variable.
35607         (main): Use minus_zero instead of -zero.
35608         * modules/frexpl-tests (Depends-on): Add float.
35609
35610         * tests/test-isnan.c (zerol): Remove variable.
35611         (minus_zerol): New variable.
35612         (test_long_double): Use minus_zerol instead of -zerol.
35613         * modules/isnan-tests (Depends-on): Add float.
35614
35615         * tests/test-isnanl.h (zero): Remove variable.
35616         (minus_zero): New variable.
35617         (main): Use minus_zero instead of -zero.
35618         * modules/isnanl-nolibm-tests (Depends-on): Add float.
35619         * modules/isnanl-tests (Depends-on): Add float.
35620
35621         * tests/test-ldexpl.c (zero): Remove variable.
35622         (minus_zero): New variable.
35623         (main): Use minus_zero instead of -zero.
35624         * modules/ldexpl-tests (Depends-on): Add float.
35625
35626         * tests/test-snprintf-posix.h (zerol): Remove variable.
35627         (minus_zerol): New variable.
35628         (test_function): Use minus_zerol instead of -zerol.
35629         * modules/snprintf-posix-tests (Depends-on): Add float.
35630         * modules/vsnprintf-posix-tests (Depends-on): Add float.
35631
35632         * tests/test-sprintf-posix.h (zerol): Remove variable.
35633         (minus_zerol): New variable.
35634         (test_function): Use minus_zerol instead of -zerol.
35635         * modules/sprintf-posix-tests (Depends-on): Add float.
35636         * modules/vsprintf-posix-tests (Depends-on): Add float.
35637
35638         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
35639         (minus_zerol): New variable.
35640         (test_function): Use minus_zerol instead of -zerol.
35641         * modules/vasnprintf-posix-tests (Depends-on): Add float.
35642
35643         * tests/test-vasprintf-posix.c (zerol): Remove variable.
35644         (minus_zerol): New variable.
35645         (test_function): Use minus_zerol instead of -zerol.
35646         * modules/vasprintf-posix-tests (Depends-on): Add float.
35647
35648 2008-10-07  Simon Josefsson  <simon@josefsson.org>
35649
35650         * MODULES.html.sh (Support for building documentation): Mention
35651         pmccabe2html.  Sort entries.
35652
35653         Add pmccabe2html module, from gnupdf.
35654         * build-aux/pmccabe.css: New file.
35655         * build-aux/pmccabe2html: New file.
35656         * m4/pmccabe2html.m4: New file.
35657         * modules/pmccabe2html: New file.
35658
35659 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
35660
35661         flock: new module
35662         * MODULES.html.sh: Add to list of modules.
35663         * lib/flock.c: flock implementation for Windows and Unix systems
35664         which have fcntl.
35665         * doc/glibc-functions/flock.texi: Update documentation.
35666         * lib/sys_file.in.h: <sys/file.h> header file.
35667         * m4/flock.m4: M4 macros.
35668         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
35669         * modules/flock: flock module.
35670         * modules/flock-tests: flock tests module.
35671         * modules/sys_file: sys/file.h module.
35672         * tests/test-flock.c: test suite for flock.
35673
35674 2008-10-06  Jim Meyering  <meyering@redhat.com>
35675
35676         bootstrap: check for LT_INIT more portably still ;-)
35677         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
35678         Spotted by Bruno Haible.
35679
35680 2008-10-06  Eric Blake  <ebb9@byu.net>
35681
35682         test-signbit: avoid tripping Irix cc bug on -0.0L
35683         * tests/test-signbit.c (minus_zerol): Delete, and replace with
35684         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
35685         entire testsuite consistent and avoids an Irix 6.2 bug.
35686
35687 2008-10-05  Bruno Haible  <bruno@clisp.org>
35688             Jim Meyering  <jim@meyering.net>
35689
35690         Add an option for ignoring EPIPE during close_stdout.
35691         * lib/closeout.h: Include <stdbool.h>.
35692         (close_stdout_set_ignore_EPIPE): New declaration.
35693         * lib/closeout.c: Include <stdbool.h>.
35694         (ignore_EPIPE): New variable.
35695         (close_stdout_set_ignore_EPIPE): New function.
35696         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
35697         * lib/close-stream.c (close_stream): Mention the possible EPIPE
35698         failure.
35699         * modules/closeout (Depends-on): Add stdbool.
35700
35701 2008-10-05  Bruno Haible  <bruno@clisp.org>
35702
35703         * modules/accept: New file.
35704         * modules/bind: New file.
35705         * modules/connect: New file.
35706         * modules/getpeername: New file.
35707         * modules/getsockname: New file.
35708         * modules/getsockopt: New file.
35709         * modules/listen: New file.
35710         * modules/recv: New file.
35711         * modules/recvfrom: New file.
35712         * modules/send: New file.
35713         * modules/sendto: New file.
35714         * modules/setsockopt: New file.
35715         * modules/socket: New file.
35716         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
35717         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
35718         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
35719         the particular module is requested. Add a link warning when the
35720         particular module is not requested.
35721         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
35722         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
35723         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
35724         the particular module is requested.
35725         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
35726         gl_SYS_SOCKET_H_DEFAULTS): New macros.
35727         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
35728         * modules/sys_socket (Depends-on): Add link-warning.
35729         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
35730         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
35731         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
35732         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
35733         GL_LINK_WARNING.
35734         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
35735         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
35736         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
35737         * doc/posix-functions/getpeername.texi: Mention the new module
35738         'getpeername'.
35739         * doc/posix-functions/getsockname.texi: Mention the new module
35740         'getsockname'.
35741         * doc/posix-functions/getsockopt.texi: Mention the new module
35742         'getsockopt'.
35743         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
35744         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
35745         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
35746         * doc/posix-functions/send.texi: Mention the new module 'send'.
35747         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
35748         * doc/posix-functions/setsockopt.texi: Mention the new module
35749         'setsockopt'.
35750         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
35751         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
35752         listen, connect, accept.
35753         * modules/select-tests (Depends-on): Likewise.
35754
35755 2008-10-05  Bruno Haible  <bruno@clisp.org>
35756
35757         * lib/winsock.c (strerror): Remove unused #undef.
35758         (rpl_close): Remove unused local variable.
35759
35760         * modules/sys_socket (Depends-on); Add errno.
35761
35762 2008-10-05  Bruno Haible  <bruno@clisp.org>
35763
35764         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
35765         (select): Add a link warning when the 'select' module is not used.
35766         * modules/sys_select (Depends-on): Add link-warning.
35767         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
35768         Suggested by Paolo Bonzini.
35769
35770 2008-10-05  Jim Meyering  <meyering@redhat.com>
35771
35772         bootstrap: check for LT_INIT more portably
35773         * build-aux/bootstrap: Avoid using grep -E, since it's not
35774         portable enough.  Suggestion from Bruno Haible.
35775
35776 2008-10-05  Bruno Haible  <bruno@clisp.org>
35777
35778         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
35779         as being fixed by gnulib.
35780
35781 2008-10-05  Bruno Haible  <bruno@clisp.org>
35782
35783         * modules/select-tests: New file, mostly copied from
35784         modules/sys_select-tests.
35785         * tests/test-select.c: New file, mostly copied from
35786         tests/test-sys_select.c.
35787         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
35788         * modules/sys_select-tests (Depends-on): Remove all dependencies.
35789         (Makefile.am): Remove test_sys_select_LDADD.
35790
35791         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
35792         to an undefined symbol, for an error message.
35793         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
35794         (gl_SYS_SELECT_H_DEFAULTS): New macro.
35795         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
35796         winsock-select.c here.
35797         * modules/sys_select (Files): Remove lib/winsock-select.c.
35798         (Depends-on): Remove alloca.
35799         (Makefile.am): Substitute GNULIB_SELECT.
35800         * modules/select: New file.
35801         * doc/posix-functions/select.texi: Update.
35802
35803 2008-10-05  Bruno Haible  <bruno@clisp.org>
35804
35805         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
35806         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
35807         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
35808         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
35809         getdtablesize.
35810         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
35811         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
35812
35813 2008-10-05  Bruno Haible  <bruno@clisp.org>
35814
35815         * modules/getdtablesize-tests: New file.
35816         * tests/test-getdtablesize.c: New file.
35817
35818         New module 'getdtablesize'.
35819         * lib/unistd.in.h (getdtablesize): New declaration.
35820         * lib/getdtablesize.c: New file.
35821         * m4/getdtablesize.m4: New file.
35822         * modules/getdtablesize: New file.
35823         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35824         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
35825         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
35826         HAVE_GETDTABLESIZE.
35827         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
35828
35829 2008-10-05  Bruno Haible  <bruno@clisp.org>
35830
35831         * modules/sched (Makefile.am): Fix typo.
35832         Reported by Simon Josefsson.
35833
35834 2008-10-05  Jim Meyering  <meyering@redhat.com>
35835
35836         bootstrap: check for LT_INIT, too
35837         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
35838         are deprecated.  Suggestion from Ralf Wildenhues.
35839
35840 2008-10-05  Bruno Haible  <bruno@clisp.org>
35841
35842         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
35843         overriding them by ours.
35844         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
35845
35846 2008-10-05  Jim Meyering  <meyering@redhat.com>
35847
35848         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
35849         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
35850         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
35851
35852 2008-10-04  Bruno Haible  <bruno@clisp.org>
35853
35854         * modules/dup2 (License): Change to LGPLv2+.
35855         * modules/sleep (License): Likewise.
35856         * modules/perror (License): Likewise.
35857         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
35858         Blake.
35859         * modules/signal (License): Likewise.
35860         * modules/sigprocmask (License): Likewise.
35861         * modules/raise (License): Change to LGPLv2+, with approval by Jim
35862         Meyering.
35863
35864 2008-10-04  Bruno Haible  <bruno@clisp.org>
35865
35866         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
35867         Reported by Rainer Tammer <tammer@tammer.net>.
35868
35869 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
35870             Bruno Haible  <bruno@clisp.org>
35871
35872         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
35873         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
35874         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
35875
35876 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
35877
35878         filevercmp: new module
35879         * lib/filevercmp.h: New function filevercmp comparing version strings.
35880         * lib/filevercmp.c: Implementation of filevercmp function.
35881         * modules/filevercmp: Module metadata.
35882         * tests/test-filevercmp.c: Unit test for new module.
35883         * modules/filevercmp-tests: Unit test metadata.
35884         * MODULES.html.sh: Add filevercmp module.
35885
35886 2008-10-03  Bruno Haible  <bruno@clisp.org>
35887
35888         * lib/c-ctype.h: Add comment.
35889         Reported by Jim Meyering.
35890
35891 2008-10-02  Bruno Haible  <bruno@clisp.org>
35892
35893         * modules/posix_spawn-internal (Depends-on): Add 'open'.
35894
35895 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35896
35897         * build-aux/bootstrap: Allow renaming bootstrap, and change the
35898         name of bootstrap.conf accordingly.
35899
35900 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35901
35902         * build-aux/bootstrap: Install git-merge-changelog configuration
35903         items into .gitconfig if needed.
35904
35905 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35906
35907         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
35908         git repository, and initialize/update it accordingly.
35909
35910 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
35911
35912         * modules/fsync-tests: New file.
35913         * tests/test-fsync.c: New file.
35914
35915         New module 'fsync'.
35916         * lib/fsync.c: New file.
35917         * m4/fsync.m4: New file.
35918         * modules/fsync: New file.
35919         * lib/unistd.in.h (fsync): New declaration.
35920         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
35921         GNULIB_FSYNC and HAVE_FSYNC.
35922         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
35923         * MODULES.html.sh (posix_functions): Add fsync.
35924         * doc/posix-functions/fsync.texi: Mention the new module.
35925
35926 2008-10-02  Jim Meyering  <meyering@redhat.com>
35927
35928         fts.c: sync with similar code from coreutils' remove.c
35929         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
35930         Guard also with "#if defined __linux__", since for now at least,
35931         this code is Linux-kernel-specific.
35932
35933 2008-10-02  Jim Meyering  <meyering@redhat.com>
35934
35935         fts: bug fixes
35936         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
35937         Include <sys/vfs.h>, not <sys/statfs.h>.
35938
35939         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
35940         Include <sys/vfs.h>, not <sys/statfs.h>.
35941
35942 2008-10-01  Bruno Haible  <bruno@clisp.org>
35943
35944         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
35945         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
35946         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
35947         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
35948         * doc/posix-functions/posix_spawnp.texi: Likewise.
35949         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
35950         whether posix_spawn actually works.
35951         * m4/pipe.m4 (gl_PIPE): Likewise.
35952         * modules/execute (Files): Add m4/posix_spawn.m4.
35953         * modules/pipe (Files): Add m4/posix_spawn.m4.
35954         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
35955
35956 2008-10-01  Jim Meyering  <meyering@redhat.com>
35957
35958         remove trailing spaces
35959         * NEWS: Likewise.
35960         * lib/poll.c (poll): Likewise.
35961         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
35962         * lib/winsock.c (rpl_close): Likewise.
35963         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
35964         * modules/yield: Likewise.
35965         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
35966         * tests/test-sys_select.c (connect_to_socket): Likewise.
35967
35968         fts.c: adjust a new interface to be more generally useful
35969         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
35970         (fts_build): Adjust caller.
35971
35972 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35973
35974         * modules/cond-tests: New file.
35975         * tests/test-cond.c: New file.
35976
35977 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35978             Bruno Haible  <bruno@clisp.org>
35979
35980         * modules/cond (Dependencies): Add errno, time.
35981         * lib/glthread/cond.h: Include <time.h>.
35982         (gl_cond_define, gl_cond_define_initialized): Use the same definition
35983         across platforms.
35984
35985 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35986             Bruno Haible  <bruno@clisp.org>
35987
35988         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
35989
35990 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35991             Bruno Haible  <bruno@clisp.org>
35992
35993         * modules/tls-tests (Depends-on): Add thread, yield.
35994         (configure.ac): Remove all checks.
35995         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
35996         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
35997         gl_thread_self): Remove definitions. Include glthread/thread.h and
35998         glthread/yield.h instead.
35999         (test_tls): Pass an additional NULL argument to gl_thread_join.
36000
36001 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36002             Bruno Haible  <bruno@clisp.org>
36003
36004         * modules/lock-tests (Depends-on): Add thread, yield.
36005         (configure.ac): Remove all checks.
36006         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
36007         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
36008         gl_thread_self): Remove definitions. Include glthread/thread.h and
36009         glthread/yield.h instead.
36010         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
36011         additional NULL argument to gl_thread_join.
36012
36013 2008-09-30  Bruno Haible  <bruno@clisp.org>
36014
36015         Fix the Win32 implementation of the 'thread' module.
36016         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
36017         pointer type.
36018         (gl_thread_self): Invoke gl_thread_self_func.
36019         (gl_thread_self_func): New declaration.
36020         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
36021         (do_init_self_key, init_self_key): New functions.
36022         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
36023         Remove some fields.
36024         (running_threads, running_lock): Remove variables.
36025         (get_current_thread_handle): New function.
36026         (gl_thread_self_func, wrapper_func, glthread_create_func,
36027         glthread_join_func, gl_thread_exit_func): Largely rewritten and
36028         simplified.
36029
36030 2008-09-30  Bruno Haible  <bruno@clisp.org>
36031
36032         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
36033         files.
36034
36035 2008-09-30  Jim Meyering  <meyering@redhat.com>
36036
36037         fts.m4: correct the test for statfs.f_type
36038         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
36039         when checking for statfs.f_type.
36040
36041 2008-09-15  Simon Josefsson  <simon@josefsson.org>
36042
36043         tests: avoid some compiler warnings
36044         * tests/test-memchr.c (main): Pass NULL indirectly.
36045         * tests/test-getdate.c (main): Remove unused variable 'ret'.
36046
36047 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
36048
36049         getdate.y: disallow countable dayshifts like "4 yesterday ago"
36050         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
36051         exactly specified dayshifts.
36052         (dayshift): New rule.
36053         (rel): Add dayshift.
36054         (relative_time_table) [tomorrow, yesterday, today, now]:
36055         Use tDAY_SHIFT in place of tDAY_UNIT.
36056         * tests/test-getdate.c: Add tests for now-disallowed countable
36057         dayshifts, e.g., "4 yesterday ago".
36058
36059 2008-09-29  Bruno Haible  <bruno@clisp.org>
36060
36061         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
36062         * tests/test-posix_spawn1.in.sh: Renamed from
36063         tests/test-posix_spawn.in.sh.
36064         * tests/test-posix_spawn2.c: New file.
36065         * tests/test-posix_spawn2.in.sh: New file.
36066         * modules/posix_spawnp-tests (Files): Update.
36067         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
36068
36069 2008-09-29  Bruno Haible  <bruno@clisp.org>
36070
36071         Propagate effects of putenv/setenv/unsetenv to child processes.
36072         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
36073         * lib/pipe.c (create_pipe): Likewise.
36074
36075 2008-09-29  Bruno Haible  <bruno@clisp.org>
36076
36077         Enable use of shell scripts as executables in mingw.
36078         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
36079         run the program as a shell script.
36080         * lib/pipe.c (create_pipe): Likewise.
36081         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
36082         resulting array.
36083
36084 2008-09-29  Eric Blake  <ebb9@byu.net>
36085
36086         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
36087
36088 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
36089
36090         * doc/posix-functions/accept.texi: Update mingw problems.
36091         * doc/posix-functions/bind.texi: Update mingw problems.
36092         * doc/posix-functions/close.texi: Update mingw problems.
36093         * doc/posix-functions/connect.texi: Update mingw problems.
36094         * doc/posix-functions/getpeername.texi: Update mingw problems.
36095         * doc/posix-functions/getsockname.texi: Update mingw problems.
36096         * doc/posix-functions/getsockopt.texi: Update mingw problems.
36097         * doc/posix-functions/ioctl.texi: Update mingw problems.
36098         * doc/posix-functions/listen.texi: Update mingw problems.
36099         * doc/posix-functions/recv.texi: Update mingw problems.
36100         * doc/posix-functions/recvfrom.texi: Update mingw problems.
36101         * doc/posix-functions/select.texi: Update mingw problems.
36102         * doc/posix-functions/send.texi: Update mingw problems.
36103         * doc/posix-functions/sendto.texi: Update mingw problems.
36104         * doc/posix-functions/setsockopt.texi: Update mingw problems.
36105         * doc/posix-functions/socket.texi: Update mingw problems.
36106
36107 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
36108             Bruno Haible  <bruno@clisp.org>
36109
36110         * lib/sys_select.in.h: Include sys/time.h.
36111         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
36112         * modules/sys_select: Depend on sys_time.
36113         * tests/test-sys_select.c: Test that sys/select.h defines struct
36114         timeval fully.
36115
36116 2008-09-29  Bruno Haible  <bruno@clisp.org>
36117
36118         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
36119         * lib/sys_select.in.h: Likewise.
36120
36121 2008-09-29  Bruno Haible  <bruno@clisp.org>
36122
36123         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
36124
36125 2008-09-29  Bruno Haible  <bruno@clisp.org>
36126
36127         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
36128         Set LIBSOCKET instead of augmenting LIBS.
36129         * modules/sockets (Link): New section.
36130         * modules/sockets-tests (test_sockets_LDADD): New variable.
36131         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
36132         * modules/poll-tests (test_poll_LDADD): New variable.
36133         * NEWS: Document the change.
36134
36135 2008-09-29  Bruno Haible  <bruno@clisp.org>
36136
36137         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
36138         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
36139         ARPA_INET_H directly.
36140         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
36141
36142 2008-09-28  Bruno Haible  <bruno@clisp.org>
36143
36144         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
36145         from gl_HEADER_SYS_SOCKET.
36146         (gl_HEADER_SYS_SOCKET): Invoke it.
36147         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36148
36149 2008-09-28  Bruno Haible  <bruno@clisp.org>
36150
36151         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
36152         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
36153         Needed on OSF/1 4.0.
36154
36155 2008-09-28  Bruno Haible  <bruno@clisp.org>
36156
36157         Override open more carefully.
36158         * lib/open.c (orig_open): New function.
36159         (rpl_open): Use orig_open instead of open.
36160         * lib/fcntl.in.h: Add special invocation convention.
36161         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
36162         (gl_FUNC_OPEN): Invoke it.
36163
36164         Override freopen more carefully.
36165         * lib/freopen.c (orig_freopen): New function.
36166         (rpl_freopen): Use orig_freopen instead of freopen.
36167         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
36168         (gl_FUNC_FREOPEN): Invoke it.
36169
36170         Override fopen more carefully.
36171         * lib/fopen.c (orig_fopen): New function.
36172         (rpl_fopen): Use orig_fopen instead of fopen.
36173         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
36174         (gl_FUNC_FOPEN): Invoke it.
36175         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
36176
36177 2008-09-28  Bruno Haible  <bruno@clisp.org>
36178
36179         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
36180         SIGPIPE.
36181
36182 2008-09-28  Bruno Haible  <bruno@clisp.org>
36183
36184         * tests/test-sigaction.c (handler, main): Disable the check whether
36185         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
36186         glibc systems with LinuxThreads.
36187
36188 2008-09-28  Bruno Haible  <bruno@clisp.org>
36189
36190         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
36191
36192         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
36193         with AIX xlc.
36194         * lib/fcntl.in.h (open): Likewise.
36195         Reported by Rainer Tammer <tammer@tammer.net>.
36196
36197 2008-09-28  Bruno Haible  <bruno@clisp.org>
36198
36199         * modules/posix_spawnp-tests: New file.
36200         * tests/test-posix_spawn.c: New file.
36201         * tests/test-posix_spawn.in.sh: New file.
36202
36203         New module 'posix_spawnp'.
36204         * modules/posix_spawnp: New file.
36205         * lib/spawnp.c: New file, from GNU libc with modifications.
36206         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
36207
36208         New module 'posix_spawn'.
36209         * modules/posix_spawn: New file.
36210         * lib/spawn.c: New file, from GNU libc with modifications.
36211         * doc/posix-functions/posix_spawn.texi: Mention the new module.
36212
36213         New module 'posix_spawnattr_destroy'.
36214         * modules/posix_spawnattr_destroy: New file.
36215         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
36216         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
36217         module.
36218
36219         New module 'posix_spawnattr_setsigmask'.
36220         * modules/posix_spawnattr_setsigmask: New file.
36221         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
36222         modifications.
36223         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
36224         new module.
36225
36226         New module 'posix_spawnattr_getsigmask'.
36227         * modules/posix_spawnattr_getsigmask: New file.
36228         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
36229         modifications.
36230         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
36231         new module.
36232
36233         New module 'posix_spawnattr_setsigdefault'.
36234         * modules/posix_spawnattr_setsigdefault: New file.
36235         * lib/spawnattr_setdefault.c: New file, from GNU libc with
36236         modifications.
36237         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
36238         new module.
36239
36240         New module 'posix_spawnattr_getsigdefault'.
36241         * modules/posix_spawnattr_getsigdefault: New file.
36242         * lib/spawnattr_getdefault.c: New file, from GNU libc with
36243         modifications.
36244         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
36245         new module.
36246
36247         New module 'posix_spawnattr_setschedpolicy'.
36248         * modules/posix_spawnattr_setschedpolicy: New file.
36249         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
36250         modifications.
36251         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
36252         new module.
36253
36254         New module 'posix_spawnattr_getschedpolicy'.
36255         * modules/posix_spawnattr_getschedpolicy: New file.
36256         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
36257         modifications.
36258         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
36259         new module.
36260
36261         New module 'posix_spawnattr_setschedparam'.
36262         * modules/posix_spawnattr_setschedparam: New file.
36263         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
36264         modifications.
36265         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
36266         new module.
36267
36268         New module 'posix_spawnattr_getschedparam'.
36269         * modules/posix_spawnattr_getschedparam: New file.
36270         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
36271         modifications.
36272         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
36273         new module.
36274
36275         New module 'posix_spawnattr_setpgroup'.
36276         * modules/posix_spawnattr_setpgroup: New file.
36277         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
36278         modifications.
36279         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
36280         module.
36281
36282         New module 'posix_spawnattr_getpgroup'.
36283         * modules/posix_spawnattr_getpgroup: New file.
36284         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
36285         modifications.
36286         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
36287         module.
36288
36289         New module 'posix_spawnattr_setflags'.
36290         * modules/posix_spawnattr_setflags: New file.
36291         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
36292         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
36293         module.
36294
36295         New module 'posix_spawnattr_getflags'.
36296         * modules/posix_spawnattr_getflags: New file.
36297         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
36298         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
36299         module.
36300
36301         New module 'posix_spawnattr_init'.
36302         * modules/posix_spawnattr_init: New file.
36303         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
36304         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
36305         module.
36306
36307         New module 'posix_spawn_file_actions_destroy'.
36308         * modules/posix_spawn_file_actions_destroy: New file.
36309         * lib/spawn_faction_destroy.c: New file, from GNU libc with
36310         modifications.
36311         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
36312         the new module.
36313
36314         New module 'posix_spawn_file_actions_addopen'.
36315         * modules/posix_spawn_file_actions_addopen: New file.
36316         * lib/spawn_faction_addopen.c: New file, from GNU libc with
36317         modifications.
36318         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
36319         the new module.
36320
36321         New module 'posix_spawn_file_actions_adddup2'.
36322         * modules/posix_spawn_file_actions_adddup2: New file.
36323         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
36324         modifications.
36325         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
36326         the new module.
36327
36328         New module 'posix_spawn_file_actions_addclose'.
36329         * modules/posix_spawn_file_actions_addclose: New file.
36330         * lib/spawn_faction_addclose.c: New file, from GNU libc with
36331         modifications.
36332         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
36333         the new module.
36334
36335         New module 'posix_spawn_file_actions_init'.
36336         * modules/posix_spawn_file_actions_init: New file.
36337         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
36338         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
36339         new module.
36340
36341         New module 'posix_spawn-internal'.
36342         * modules/posix_spawn-internal: New file.
36343         * lib/spawn_int.h: New file, from GNU libc with modifications.
36344         * lib/spawni.c: New file, from GNU libc with modifications.
36345         * m4/posix_spawn.m4: New file.
36346
36347         New module 'spawn'.
36348         * modules/spawn: New file.
36349         * lib/spawn.in.h: New file, from GNU libc with modifications.
36350         * m4/spawn_h.m4: New file.
36351         * doc/posix-headers/spawn.texi: Mention the new module.
36352
36353 2008-09-28  Bruno Haible  <bruno@clisp.org>
36354
36355         * modules/sched-tests: New file.
36356         * tests/test-sched.c: New file.
36357
36358         New module 'sched'.
36359         * modules/sched: New file.
36360         * lib/sched.in.h: New file.
36361         * m4/sched_h.m4: New file.
36362         * doc/posix-headers/sched.texi: Mention the new module.
36363
36364 2008-09-27  Eric Blake  <ebb9@byu.net>
36365
36366         Fix previous patch, and tweak references to $0.
36367         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
36368         (func_version, func_gnulib_dir): Don't call this program
36369         gnulib-tool.
36370         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
36371         with using $0 in function.
36372         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
36373         (func_fatal_error): Reuse the name the user invoked us with.
36374
36375 2008-09-27  Bruno Haible  <bruno@clisp.org>
36376
36377         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
36378         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
36379         (gl_ICONV_H): Not here.
36380         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
36381         instead of assigning ICONV_H directly.
36382
36383         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
36384         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
36385         WCHAR_H directly.
36386
36387 2008-09-27  Bruno Haible  <bruno@clisp.org>
36388
36389         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
36390         * modules/arpa_inet (Depends-on): Add link-warning.
36391         (Makefile.am): Insert the definition of GL_LINK-WARNING.
36392         * modules/unistd (Makefile.am): Likewise.
36393
36394 2008-09-26  Bruno Haible  <bruno@clisp.org>
36395
36396         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
36397         variables.
36398         (func_version): Essentially copied from gnulib-tool.
36399         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
36400         func_readlink): Copied from gnulib-tool.
36401
36402 2008-09-26  Bruno Haible  <bruno@clisp.org>
36403
36404         * gnulib-tool (func_version): Change directory to $gnulib_dir before
36405         invoking git-version-gen.
36406
36407 2008-09-26  Bruno Haible  <bruno@clisp.org>
36408
36409         * posix-modules: Update to directory names changed on 2008-01-19.
36410         Remove commas in output before splitting into words. No more need to
36411         avoid 'ftruncate' since 2007-02-19.
36412
36413 2008-09-26  Bruno Haible  <bruno@clisp.org>
36414
36415         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
36416
36417 2008-09-26  Bruno Haible  <bruno@clisp.org>
36418
36419         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
36420         * modules/fwriteerror (Depends-on): Add errno.
36421
36422 2008-09-26  Bruno Haible  <bruno@clisp.org>
36423
36424         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
36425         * tests/test-vc-list-files-cvs.sh: Likewise.
36426
36427 2008-09-26  Bruno Haible  <bruno@clisp.org>
36428
36429         * doc/posix-headers/sys_resource.texi: Reorder items.
36430
36431 2008-09-26  Jim Meyering  <meyering@redhat.com>
36432
36433         fts: tweak inode comparison function
36434         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
36435         inode numbers, as documented.
36436
36437         fts: sort dirent entries on inode number before traversing
36438         This avoids a quadratic, seek-related performance penalty when
36439         operating on a directory containing many entries (measurable at 10k;
36440         3.5 hours at 2 million entries with a cold cache) on certain types
36441         of file systems, including ext3 and ext4, but not tmpfs.
36442         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
36443         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
36444         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
36445         (fs_handles_readdir_ordered_dirents_efficiently): New function.
36446         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
36447         (fts_build): Set the stat.st_ino member from D_INO.
36448         If it is likely to be useful, sort dirent entries on inode number.
36449
36450         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
36451         and the struct statfs.f_type member.
36452         * modules/fts (Depends-on): Add d-ino.
36453
36454 2008-09-26  Bruno Haible  <bruno@clisp.org>
36455
36456         * modules/sigpipe-die (Depends-on): Add sigpipe.
36457
36458         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
36459         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
36460         and GNULIB_STDIO_H_SIGPIPE are set.
36461         * lib/stdio-write.c: New file.
36462         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
36463         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
36464         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
36465         REPLACE_STDIO_WRITE_FUNCS.
36466         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
36467         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
36468         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
36469         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
36470         * modules/stdio (Files): Add lib/stdio-write.c.
36471         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
36472         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
36473         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
36474         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
36475         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
36476         REPLACE_FPRINTF_POSIX.
36477         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
36478         REPLACE_PRINTF_POSIX.
36479         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
36480         REPLACE_VFPRINTF_POSIX.
36481         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
36482         REPLACE_VPRINTF_POSIX.
36483         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
36484         SIGPIPE issue.
36485         * doc/posix-functions/fputc.texi: Likewise.
36486         * doc/posix-functions/fputs.texi: Likewise.
36487         * doc/posix-functions/fwrite.texi: Likewise.
36488         * doc/posix-functions/printf.texi: Likewise.
36489         * doc/posix-functions/putc.texi: Likewise.
36490         * doc/posix-functions/putchar.texi: Likewise.
36491         * doc/posix-functions/puts.texi: Likewise.
36492         * doc/posix-functions/vfprintf.texi: Likewise.
36493         * doc/posix-functions/vprintf.texi: Likewise.
36494
36495         * modules/safe-write (Depends-on): Add write.
36496
36497         * modules/sigpipe-tests: New file.
36498         * tests/test-sigpipe.c: New file.
36499         * tests/test-sigpipe.sh: New file.
36500
36501         * modules/write: New file.
36502         * lib/unistd.in.h: Include <sys/types.h>.
36503         (write): New declaration.
36504         * lib/write.c: New file.
36505         * m4/write.m4: New file.
36506         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36507         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
36508         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
36509         GNULIB_WRITE, REPLACE_WRITE.
36510         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
36511         and the SIGPIPE issue.
36512
36513         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
36514         (raise): New declaration.
36515         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
36516         (ext_signal): New function.
36517         (rpl_raise): New function.
36518         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
36519         GNULIB_SIGNAL_H_SIGPIPE.
36520         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
36521         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
36522
36523         * modules/sigpipe: New file.
36524         * m4/sigpipe.m4: New file.
36525
36526 2008-09-25  Derek Price  <derek@ximbiot.com>
36527             Bruno Haible  <bruno@clisp.org>
36528
36529         * gnulib-tool (func_import): Report all license incompatibilities, not
36530         just the first one.
36531
36532 2008-09-25  Bruno Haible  <bruno@clisp.org>
36533
36534         * gnulib-tool (func_import): When computing the edits, consider not
36535         only the Makefile.ams that exist but also those that will be generated.
36536
36537 2008-09-25  Simon Josefsson  <simon@josefsson.org>
36538
36539         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
36540         fixes gnulib-tool --test warning about duplicate dependency.
36541
36542 2008-09-25  Bruno Haible  <bruno@clisp.org>
36543
36544         * gnulib-tool: Don't ask the user to perform edits in the generated
36545         Makefile.ams.
36546         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
36547         apply to the Makefile.am being generated.
36548         (func_emit_tests_Makefile_am): Execute edits that apply to the
36549         Makefile.am being generated.
36550         (func_import): Setup list of Makefile.am edits before emitting the
36551         Makefile.ams, not at the end.
36552         (func_create_testdir): Update.
36553         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36554
36555 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36556
36557         * gnulib-tool (func_import): Store the --tests-base option in the
36558         comment in gnulib-cache.m4.
36559
36560 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
36561
36562         * NEWS: Document increased portability that sys_select now provides.
36563
36564         * lib/sys_select.in.h: Install select wrapper.
36565         * lib/sys_socket.in.h: Use more descriptive name when there is no
36566         select wrapper.
36567         * lib/winsock-select.c: New.
36568         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
36569         Require gl_HEADER_SYS_SOCKET.
36570         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
36571         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
36572         * tests/test-sys_select.c: Add functional tests.
36573
36574 2008-09-24  Eric Blake  <ebb9@byu.net>
36575
36576         open, fopen: close fd leak in last patch
36577         * lib/open.c (rpl_open): Close fd before returning error.
36578         * lib/fopen.c (rpl_fopen): Close fd before returning error.
36579         * doc/posix-functions/open.texi (open): Document that Irix also
36580         has the bug.
36581         * doc/posix-functions/fopen.texi (fopen): Likewise.
36582         Reported by Paolo Bonzini.
36583
36584 2008-09-24  Bruno Haible  <bruno@clisp.org>
36585
36586         Ensure that a filename ending in a slash cannot be used to access a
36587         non-directory.
36588         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
36589         to check whether it's really a directory.
36590         * lib/fopen.c: Include fcntl.h, unistd.h.
36591         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
36592         and fdopen().
36593         * modules/fopen (Depends-on): Add unistd.
36594         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
36595         * tests/test-fopen.c (main): Likewise.
36596         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
36597         * doc/posix-functions/fopen.texi: Likewise.
36598         Reported by Eric Blake.
36599
36600 2008-09-23  Eric Blake  <ebb9@byu.net>
36601
36602         c-stack: avoid compiler optimizations when provoking overflow
36603         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
36604         recursion harder to optimize, to ensure a stack overflow occurs.
36605         * tests/test-c-stack.c (recurse): Likewise.
36606         Borrowed from libsigsegv.
36607
36608         c-stack: work around Irix sigaltstack bug
36609         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
36610         whether sigaltstack uses wrong end of stack_t (copied in part from
36611         libsigsegv).
36612         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
36613         Irix bug, without requiring an over-allocation.
36614         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
36615         bug.
36616
36617         fopen: document mingw bug on directories
36618         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
36619         not allowing a stream visiting a directory, even though reading
36620         from such a stream is not portable.
36621
36622 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
36623
36624         * lib/poll.c: Rewrite.
36625         * modules/poll: Depend on alloca.
36626
36627 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
36628
36629         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
36630         instead define prototypes for a full set of wrappers.  Ensure
36631         that Cygwin does not use the compatibility code, which is only
36632         for MinGW.
36633         * lib/winsock.c: New.
36634         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
36635         * modules/sys_socket: Add lib/winsock.c.
36636
36637         * modules/poll-tests: Add errno and perror.
36638         * tests/test-poll.c: Use ioctl, not ioctlsocket.
36639
36640 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
36641
36642         * tests/test-poll.c: Downgrade minimum needed Winsock version.
36643
36644 2008-09-23  Bruno Haible  <bruno@clisp.org>
36645
36646         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
36647         * doc/glibc-functions/*: Likewise.
36648
36649 2008-09-23  Simon Josefsson  <simon@josefsson.org>
36650
36651         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
36652         success.
36653
36654 2008-09-22  Eric Blake  <ebb9@byu.net>
36655             Bruno Haible  <bruno@clisp.org>
36656
36657         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
36658         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
36659         supply %A but mishandle pseudo-NaN.
36660         Reported by Simon Josefsson.
36661
36662 2008-09-21  Bruno Haible  <bruno@clisp.org>
36663
36664         * tests/test-lock.c (main): Tweak skip message.
36665         * tests/test-tls.c (main): Likewise.
36666
36667 2008-09-21  Bruno Haible  <bruno@clisp.org>
36668
36669         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
36670         whether 'struct sigaction' has sa_sigaction here...
36671         (gl_PREREQ_SIG_HANDLER_H): ... not here.
36672         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
36673
36674 2008-09-21  Bruno Haible  <bruno@clisp.org>
36675
36676         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
36677         section.
36678         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
36679         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
36680         the new section.
36681         (Support for obsolete systems lacking POSIX:2001): New section.
36682         (String handling <string.h>): Move strdup to the new section.
36683         Suggested by Simon Josefsson and Paolo Bonzini.
36684
36685 2008-09-21  Bruno Haible  <bruno@clisp.org>
36686
36687         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
36688         exponents in %e and %g results on 'long double'. Needed for mingw's
36689         improved *printf functions.
36690         * tests/test-vasprintf-posix.c (test_function): Likewise.
36691         * tests/test-snprintf-posix.h (test_function): Likewise.
36692         * tests/test-sprintf-posix.h (test_function): Likewise.
36693         Reported by Eric Blake.
36694
36695 2008-09-21  Bruno Haible  <bruno@clisp.org>
36696
36697         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
36698         * tests/test-sprintf-posix.h (test_function): Likewise.
36699
36700 2008-09-21  Bruno Haible  <bruno@clisp.org>
36701
36702         * modules/getpass (Depends-on): Add strdup-posix.
36703
36704         New module 'strdup-posix'.
36705         * modules/strdup-posix: New file.
36706         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
36707         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
36708         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36709         REPLACE_STRDUP.
36710         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
36711         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
36712         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36713         strdup-posix.
36714
36715         * modules/strdup (Depends-on): Remove malloc-posix.
36716
36717 2008-09-20  Bruno Haible  <bruno@clisp.org>
36718
36719         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
36720         Wildenhues.
36721
36722 2008-09-20  Bruno Haible  <bruno@clisp.org>
36723
36724         Ensure that wint_t gets defined on IRIX 5.3.
36725         * lib/wchar.in.h (wint_t): Define if not defined by the system.
36726         * lib/wctype.in.h (wint_t): Likewise.
36727         (__wctype_wint_t): Remove type.
36728         (isw*): Use wint_t instead of __wctype_wint_t.
36729         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
36730         * modules/wchar (Files): Add m4/wint_t.m4.
36731         (Makefile.am): Substitute HAVE_WINT_T.
36732         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
36733         * tests/test-wctype.c: Check that wint_t is defined.
36734         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
36735         * doc/posix-headers/wctype.texi: Likewise.
36736         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36737
36738 2008-09-18  Bruno Haible  <bruno@clisp.org>
36739
36740         * gnulib-tool (func_exit): Update comment.
36741
36742 2008-09-18  Simon Josefsson  <simon@josefsson.org>
36743
36744         * modules/getaddrinfo (Depends-on): Remove strdup, this module
36745         assumes strdup exists and does not depend on strdup to return
36746         ENOMEM on out of memory conditions.
36747
36748 2008-09-18  Bruno Haible  <bruno@clisp.org>
36749
36750         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
36751         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
36752         digits for the exponent.
36753
36754 2008-09-18  Jim Meyering  <meyering@redhat.com>
36755             Bruno Haible  <bruno@clisp.org>
36756
36757         * lib/vasnprintf.c (decimal_point_char): Define also if
36758         NEED_PRINTF_INFINITE_LONG_DOUBLE.
36759
36760 2008-09-16  Bruno Haible  <bruno@clisp.org>
36761         and Eric Blake  <ebb9@byu.net>
36762
36763         vasnprintf: support Irix 5.3
36764         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
36765         that mishandle long double infinity.
36766         Reported by Tom G. Christensen.
36767
36768 2008-09-16  Bruno Haible  <bruno@clisp.org>
36769
36770         * doc/glibc-functions/scandir.texi: Mention the function is missing on
36771         Solaris 9.
36772         * doc/glibc-functions/alphasort.texi: Likewise.
36773         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
36774
36775 2008-09-16  Jim Meyering  <meyering@redhat.com>
36776
36777         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
36778         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
36779         a umask modification leak out of a subshell.  Otherwise, the
36780         opensolaris /bin/sh would be accepted and thus cause unwarranted
36781         failures in the coreutils test suite.
36782
36783 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
36784
36785         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
36786         to succeed.
36787
36788 2008-09-16  Jim Meyering  <meyering@redhat.com>
36789
36790         avoid spurious test failure when library is built without ACL support
36791         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
36792         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
36793         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
36794         * tests/test-copy-acl.sh: Likewise.
36795
36796 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36797
36798         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
36799         based on character occurrence counts.
36800
36801 2008-09-15  Eric Blake  <ebb9@byu.net>
36802
36803         tests: avoid some compiler warnings
36804         * tests/test-memchr.c (main): Pass NULL indirectly.
36805         * tests/test-closein.c (main): Avoid unused variable.
36806
36807 2008-09-15  Bruno Haible  <bruno@clisp.org>
36808
36809         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
36810         are missing on OpenBSD 4.0 individually.
36811         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36812
36813 2008-09-15  Bruno Haible  <bruno@clisp.org>
36814
36815         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
36816         * doc/posix-functions/strerror.texi: Mention also Cygwin.
36817         * doc/posix-functions/perror.texi: Likewise.
36818         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
36819         is missing.
36820         Reported by Eric Blake.
36821
36822         * lib/errno.in.h: Use replacement values >= 2000.
36823         Reported by Eric Blake.
36824
36825 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36826
36827         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
36828         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
36829         limit.
36830         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
36831         compareseq was aborted.
36832
36833 2008-09-14  Bruno Haible  <bruno@clisp.org>
36834
36835         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
36836         yvec_edit_count.
36837         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
36838         (fstrcmp_bounded): Simplify result computation accordingly.
36839
36840 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36841
36842         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
36843         (fstrcmp): Define in terms of fstrcmp_bounded.
36844         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
36845         lower_bound argument.
36846         Return quickly if the result is certainly < lower_bound.
36847         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
36848
36849 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36850
36851         * lib/diffseq.h (EARLY_ABORT): New macro.
36852         (compareseq): Change return type to bool. Return true when EARLY_ABORT
36853         evaluates to true.
36854
36855 2008-09-14  Bruno Haible  <bruno@clisp.org>
36856
36857         * modules/perror-tests: New file.
36858         * tests/test-perror.sh: New file.
36859         * tests/test-perror.c: New file.
36860
36861         New module 'perror'.
36862         * lib/stdio.in.h (perror): New declaration.
36863         * lib/perror.c: New file.
36864         * m4/perror.m4: New file.
36865         * modules/perror: New file.
36866         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
36867         * doc/posix-functions/perror.texi: Mention the perror module.
36868         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
36869         REPLACE_PERROR.
36870         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
36871         REPLACE_PERROR.
36872
36873 2008-09-14  Bruno Haible  <bruno@clisp.org>
36874
36875         * modules/stdio (Makefile.am): Reorder to match the order in
36876         lib/stdio.in.h.
36877         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36878
36879 2008-09-13  Bruno Haible  <bruno@clisp.org>
36880
36881         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
36882
36883 2008-09-13  Bruno Haible  <bruno@clisp.org>
36884
36885         Extend strerror to cover the added errno values.
36886         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
36887         (rpl_strerror): Provide error messages for the added errno values and
36888         for the WSA* values.
36889         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
36890         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
36891         strerror.
36892         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
36893         * modules/strerror (Depends-on): Add errno.
36894         * doc/posix-functions/strerror.texi: Document the change.
36895         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
36896         and EOVERFLOW.
36897
36898 2008-09-13  Bruno Haible  <bruno@clisp.org>
36899
36900         * modules/EOVERFLOW: Remove file.
36901         * m4/eoverflow.m4: Remove file.
36902         * modules/EOVERFLOW-tests: Remove file.
36903         * tests/test-EOVERFLOW.c: Remove file.
36904         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
36905         * modules/ftell (Depends-on): Likewise.
36906         * modules/getdelim (Depends-on): Likewise.
36907         * modules/getugroups (Depends-on): Likewise.
36908         * modules/poll (Depends-on): Likewise.
36909         * modules/snprintf (Depends-on): Likewise.
36910         * modules/sprintf-posix (Depends-on): Likewise.
36911         * modules/vasnprintf (Depends-on): Likewise.
36912         * modules/vasprintf (Depends-on): Likewise.
36913         * modules/vfprintf-posix (Depends-on): Likewise.
36914         * modules/vsnprintf (Depends-on): Likewise.
36915         * modules/vsprintf-posix (Depends-on): Likewise.
36916         * modules/xvasprintf (Depends-on): Likewise.
36917         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
36918         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
36919         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
36920         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
36921         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36922         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
36923         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
36924         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
36925         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36926         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
36927         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
36928         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
36929         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36930         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
36931         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
36932         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
36933         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36934         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
36935         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
36936         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
36937         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36938         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
36939         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
36940         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
36941         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
36942         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36943         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
36944         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
36945         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
36946         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
36947         * MODULES.html.sh: Remove EOVERFLOW.
36948         * NEWS: Mention the change.
36949
36950 2008-09-13  Bruno Haible  <bruno@clisp.org>
36951
36952         * modules/errno-tests: New file.
36953         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
36954
36955         * lib/errno.in.h: New file.
36956         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
36957         * modules/errno: New file.
36958         * doc/posix-headers/errno.texi: Update documentation.
36959         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
36960
36961 2008-09-13  Bruno Haible  <bruno@clisp.org>
36962
36963         * tests/test-poll.c: Use #if for native Windows, rather than testing
36964         __MSVCRT__.
36965
36966 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36967             Bruno Haible  <bruno@clisp.org>
36968
36969         * lib/glob.c: Don't include <pwd.h> on native Windows.
36970         (WINDOWS32): New macro.
36971         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
36972
36973 2008-09-13  Bruno Haible  <bruno@clisp.org>
36974
36975         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
36976         (ETIMEDOUT): Remove macro.
36977         (glthread_cond_timedwait_multithreaded): New declaration.
36978         (glthread_cond_timedwait): Use it.
36979         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
36980         (glthread_cond_timedwait_multithreaded): New function.
36981
36982 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
36983
36984         * modules/poll-tests: Do not check for io.h.
36985         * tests/test-poll.c: Check for __MSVCRT__ instead.
36986
36987 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
36988
36989         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
36990         * modules/poll-tests: Add inet_pton, stdbool, sockets.
36991         * tests/test-poll.c: Use them.  Use _pipe on Windows.
36992
36993 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
36994
36995         * modules/poll-tests: New.
36996         * tests/test-poll.c: New.
36997
36998 2008-09-12  Eric Blake  <ebb9@byu.net>
36999
37000         frexp: test for NetBSD failure on -0.0
37001         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
37002         not all, bugs from NetBSD 3.0 have been fixed.
37003         * doc/posix-functions/frexp.texi (frexp): Document bug.
37004         Reported by Thomas Klausner.
37005
37006         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
37007         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
37008         literal -0.0.
37009         Reported by Jonathan C. Patschke <jp@centtech.com>.
37010
37011 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37012
37013         * lib/glthread/cond.h: Use dummy implementation also if
37014         USE_WIN32_THREADS.
37015
37016 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37017
37018         * modules/fnmatch-posix (License): Change to LGPLv2+.
37019         * modules/fnmatch-gnu (License): Likewise.
37020
37021 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37022
37023         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
37024
37025 2008-09-11  Jim Meyering  <meyering@redhat.com>
37026
37027         * users.txt: Add gtk-vnc.
37028
37029 2008-09-08  Simon Josefsson  <simon@josefsson.org>
37030
37031         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
37032         rotate amounts.
37033
37034         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
37035         required for 16-bit and 8-bit rotates.
37036         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
37037         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
37038         UINT8_MAX instead of hard-coded constants.
37039         Suggested by Paul Eggert.
37040
37041 2008-09-07  Bruno Haible  <bruno@clisp.org>
37042
37043         * tests/test-striconveh.c (main): Check behaviour when converting from
37044         UTF-7.
37045
37046         Make striconveh work better with stateful encodings.
37047         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
37048         that iconv does not increment the inptr when returning -1/EINVAL.
37049
37050 2008-09-07  Bruno Haible  <bruno@clisp.org>
37051
37052         * build-aux/config.rpath: Update according to libtool-2.2.6.
37053         * build-aux/config.libpath: Likewise.
37054
37055 2008-09-06  Bruno Haible  <bruno@clisp.org>
37056
37057         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
37058         * lib/freadptr.c (freadptr): Likewise.
37059         * lib/freadseek.c (freadptrinc): Likewise.
37060         Reported by Simon Josefsson.
37061
37062 2008-09-06  Bruno Haible  <bruno@clisp.org>
37063
37064         * modules/freadptr (License): Change to LGPLv2+.
37065         * modules/freadseek (License): Likewise.
37066         Suggested by Eric Blake.
37067
37068         * modules/memchr2 (License): Change to LGPLv2+.
37069         Approved by Eric Blake.
37070
37071 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37072             Bruno Haible  <bruno@clisp.org>
37073
37074         Make gnulib-tool work with native 'sed' on AIX.
37075         * gnulib-tool (sed_noop): New variable.
37076         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
37077         func_add_or_update, func_create_testdir): Use it to initialize sed
37078         script variables.
37079         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37080
37081 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
37082             Bruno Haible  <bruno@clisp.org>
37083
37084         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
37085         also works after #include directives.
37086
37087 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
37088
37089         getdate.y: reject an out-of-range timezone value
37090         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
37091         the range [-24...+24].  When specified with only one or two digits,
37092         * tests/test-getdate.c: Tests for the fix.
37093         * doc/getdate.texi: Document this change.
37094
37095 2008-09-03  Bruno Haible  <bruno@clisp.org>
37096
37097         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
37098
37099 2008-09-02  Simon Josefsson  <simon@josefsson.org>
37100
37101         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
37102         <bruce.korb@gmail.com> with ideas from Ben Pfaff
37103         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
37104         Blake <ebb9@byu.net>.
37105
37106         * tests/test-bitrotate.c: Add more test vectors.
37107
37108 2008-09-02  Eric Blake  <ebb9@byu.net>
37109
37110         vasnprintf-posix: handle large precision via %.*d
37111         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
37112         when handling it ourselves.
37113         * tests/test-vasnprintf-posix.c (test_function): Add test.
37114         * tests/test-snprintf-posix.h (test_function): Likewise.
37115         * tests/test-sprintf-posix.h (test_function): Likewise.
37116         * tests/test-vasprintf-posix.c (test_function): Likewise.
37117         Reported by Alain Guibert.
37118
37119 2008-09-01  Eric Blake  <ebb9@byu.net>
37120
37121         c-stack: make configure-time check more robust
37122         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
37123         successful sigaction call.
37124         Reported by Tom G. Christensen.
37125
37126 2008-09-01  Bruno Haible  <bruno@clisp.org>
37127
37128         New module 'findprog-lgpl'.
37129         * modules/findprog-lgpl: New file.
37130         * lib/findprog-lgpl.c: New file.
37131         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
37132         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
37133         to decide whether to use strdup or xstrdup, concatenated_filename or
37134         xconcatenated_filename.
37135
37136 2008-09-01  Bruno Haible  <bruno@clisp.org>
37137
37138         Split module 'concat-filename' into 'concat-filename' (LGPL) and
37139         'xconcat-filename' (GPL).
37140         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
37141         (License): Change to LGPLv2+.
37142         * modules/xconcat-filename: New file.
37143         * lib/concat-filename.h (concatenated_filename): Change specification.
37144         (xconcatenated_filename): New declaration.
37145         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
37146         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
37147         memory situations.
37148         * lib/xconcat-filename.c: New file.
37149         * NEWS: Mention the change.
37150         * lib/findprog.c: Include concat-filename.h, not filename.h.
37151         (find_in_path): Use xconcatenated_filename instead of
37152         concatenated_filename.
37153         * lib/javacomp.c: Include concat-filename.h, not filename.h.
37154         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
37155         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
37156         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
37157         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
37158         instead of concatenated_filename.
37159         * lib/javaexec.c: Include concat-filename.h, not filename.h.
37160         (execute_java_class): Use xconcatenated_filename instead of
37161         concatenated_filename.
37162         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
37163         * modules/javacomp (Depends-on): Likewise.
37164         * modules/javaexec (Depends-on): Likewise.
37165
37166 2008-09-01  Bruno Haible  <bruno@clisp.org>
37167
37168         Split module 'filename' into 'filename' and 'concat-filename'.
37169         * modules/filename: Keep only lib/filename.h.
37170         (License): Change to LGPLv2+.
37171         * modules/concat-filename: New file, extracted from modules/filename.
37172         * lib/filename.h (concatenated_filename): Remove declaration.
37173         * lib/concat-filename.h: New file, extracted from lib/filename.h.
37174         * lib/concat-filename.c: Include concat-filename.h.
37175         * NEWS: Mention the change.
37176
37177 2008-09-01  Simon Josefsson  <simon@josefsson.org>
37178
37179         * lib/bitrotate.h (rotl8, rotr8): Add.
37180
37181         * modules/bitrotate (configure.ac): Need
37182         AC_REQUIRE([AC_C_INLINE]).
37183         (Description): Mention stdint.h.  Reported by Bruno Haible
37184         <bruno@clisp.org>.
37185
37186         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
37187         Paolo Bonzini <bonzini@gnu.org>.
37188
37189 2008-08-31  Bruno Haible  <bruno@clisp.org>
37190
37191         Assume Solaris specific bi-arch conventions on Solaris systems.
37192         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
37193         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
37194         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
37195         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
37196         like acl_libdirstem.
37197         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
37198         acl_libdirstem.
37199         * NEWS: Mention the change.
37200         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
37201
37202 2008-08-31  Jim Meyering  <meyering@redhat.com>
37203
37204         * lib/strftime.h: Add comments describing the two added arguments.
37205
37206         remove duplicate #include directives
37207         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
37208         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
37209
37210 2008-08-31  Bruno Haible  <bruno@clisp.org>
37211
37212         New module 'sigpipe-die'.
37213         * modules/sigpipe-die: New file.
37214         * lib/sigpipe-die.h: New file.
37215         * lib/sigpipe-die.c: New file.
37216         * MODULES.html.sh (Signal handling): Add sigpipe-die.
37217
37218 2008-08-31  Bruno Haible  <bruno@clisp.org>
37219
37220         Don't override previously installed signal handlers.
37221         * lib/fatal-signal.c (saved_sigactions): New variable.
37222         (uninstall_handlers): Reset the signal to the saved handler, not
37223         to SIG_DFL (except when ignored).
37224         (install_handlers): Save the previous handlers.
37225
37226 2008-08-30  Bruno Haible  <bruno@clisp.org>
37227
37228         * gnulib-tool (func_reset_sigpipe): New function.
37229         (func_get_automake_snippet, func_modules_transitive_closure,
37230         func_import): Invoke it before a join command that reads from stdin,
37231         to avoid "echo: write error: Broken pipe" error messages on stderr.
37232         Reported by Sam Steingold <sds@gnu.org>.
37233
37234 2008-08-30  Bruno Haible  <bruno@clisp.org>
37235
37236         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
37237         Code copied from m4/open.m4.
37238         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
37239         access and the filename ends in a slash. Code copied from lib/open.c.
37240         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
37241         * tests/test-fopen.c (main): Check against bug with trailing slash.
37242
37243 2008-08-29  Bruno Haible  <bruno@clisp.org>
37244
37245         Avoid some "gcc -pedantic" warnings.
37246         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
37247         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
37248         * lib/dirent.in.h: Likewise.
37249         * lib/fcntl.in.h: Likewise.
37250         * lib/float.in.h: Likewise.
37251         * lib/iconv.in.h: Likewise.
37252         * lib/inttypes.in.h: Likewise.
37253         * lib/locale.in.h: Likewise.
37254         * lib/math.in.h: Likewise.
37255         * lib/netinet_in.in.h: Likewise.
37256         * lib/search.in.h: Likewise.
37257         * lib/signal.in.h: Likewise.
37258         * lib/stdarg.in.h: Likewise.
37259         * lib/stdint.in.h: Likewise.
37260         * lib/stdio.in.h: Likewise.
37261         * lib/stdlib.in.h: Likewise.
37262         * lib/string.in.h: Likewise.
37263         * lib/strings.in.h: Likewise.
37264         * lib/sys_select.in.h: Likewise.
37265         * lib/sys_socket.in.h: Likewise.
37266         * lib/sys_stat.in.h: Likewise.
37267         * lib/sys_time.in.h: Likewise.
37268         * lib/sysexits.in.h: Likewise.
37269         * lib/time.in.h: Likewise.
37270         * lib/unistd.in.h: Likewise.
37271         * lib/wchar.in.h: Likewise.
37272         * lib/wctype.in.h: Likewise.
37273         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
37274         * modules/fchdir (Makefile.am): Likewise.
37275         * modules/fcntl (Makefile.am): Likewise.
37276         * modules/float (Makefile.am): Likewise.
37277         * modules/iconv_open (Makefile.am): Likewise.
37278         * modules/inttypes (Makefile.am): Likewise.
37279         * modules/locale (Makefile.am): Likewise.
37280         * modules/math (Makefile.am): Likewise.
37281         * modules/netinet_in (Makefile.am): Likewise.
37282         * modules/search (Makefile.am): Likewise.
37283         * modules/signal (Makefile.am): Likewise.
37284         * modules/stdarg (Makefile.am): Likewise.
37285         * modules/stdint (Makefile.am): Likewise.
37286         * modules/stdio (Makefile.am): Likewise.
37287         * modules/stdlib (Makefile.am): Likewise.
37288         * modules/string (Makefile.am): Likewise.
37289         * modules/strings (Makefile.am): Likewise.
37290         * modules/sys_select (Makefile.am): Likewise.
37291         * modules/sys_socket (Makefile.am): Likewise.
37292         * modules/sys_stat (Makefile.am): Likewise.
37293         * modules/sys_time (Makefile.am): Likewise.
37294         * modules/sysexits (Makefile.am): Likewise.
37295         * modules/time (Makefile.am): Likewise.
37296         * modules/unistd (Makefile.am): Likewise.
37297         * modules/wchar (Makefile.am): Likewise.
37298         * modules/wctype (Makefile.am): Likewise.
37299         Reported by Reuben Thomas <rrt@sc3d.org>.
37300
37301 2008-08-29  Bruno Haible  <bruno@clisp.org>
37302
37303         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
37304         any more.
37305
37306 2008-08-29  Simon Josefsson  <simon@josefsson.org>
37307
37308         * MODULES.html.sh (Misc): Add bitrotate.
37309
37310         * modules/bitrotate: New file.
37311
37312         * lib/bitrotate.h: New file.
37313
37314         * modules/bitrotate-tests: New file.
37315
37316         * tests/test-bitrotate.c: New file.
37317
37318         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
37319         on the bitrotate module.
37320
37321         * lib/arctwo.c: Use new bitrotate module.
37322
37323 2008-08-29  Jim Meyering  <meyering@redhat.com>
37324
37325         bootstrap: merge changes from coreutils
37326         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
37327         of copied files.  Remove a kludge, now that this is fixed.
37328         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
37329         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
37330         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
37331
37332 2008-08-29  Bruno Haible  <bruno@clisp.org>
37333
37334         * MODULES.html.sh: Remove --cvs-urls option.
37335
37336 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
37337
37338         maint.mk: adjust to file name change
37339         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
37340
37341 2008-08-28  Jim Meyering  <meyering@redhat.com>
37342
37343         * modules/getndelim2 (License): Relicense to LGPLv2+.
37344         Approved by Richard Stallman for the version of 1995, and by
37345         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
37346
37347 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
37348
37349         * lib/getdelim.c (flockfile, funlockfile): Make all of them
37350         dummy if one is not available.  Do not touch them if
37351         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
37352         (getc_maybe_unlocked): New.
37353         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
37354
37355 2008-08-26  Eric Blake  <ebb9@byu.net>
37356
37357         doc/INSTALL: resync from autoconf
37358         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
37359         (INSTALL_PRELUDE): Delete; this is done more efficiently by
37360         moving...
37361         * install.texi [!autoconf]: ...here.  Resync from autoconf.
37362         * INSTALL: Regenerate.
37363         * INSTALL.ISO: New file.
37364         * INSTALL.UTF-8: Likewise.
37365
37366 2008-08-26  Jim Meyering  <meyering@redhat.com>
37367
37368         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
37369         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
37370         these definitions conditional, so that they may be overridden, too.
37371
37372 2008-08-26  Bruno Haible  <bruno@clisp.org>
37373
37374         Generate INSTALL file variants with prettier quotes.
37375         * doc/Makefile (INSTALL_PRELUDE): New macro.
37376         (INSTALL): Use it.
37377         (INSTALL.ISO, INSTALL.UTF-8): New rules.
37378
37379 2008-08-26  Bruno Haible  <bruno@clisp.org>
37380
37381         Run makeinfo in an English locale.
37382         * doc/Makefile (MAKEINFO): New variable.
37383
37384 2008-08-26  Bruno Haible  <bruno@clisp.org>
37385
37386         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
37387         Suggested by Eric Blake.
37388
37389 2008-08-25  Bruno Haible  <bruno@clisp.org>
37390
37391         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
37392
37393 2008-08-25  Eric Blake  <ebb9@byu.net>
37394
37395         c-stack: test that stack overflow can be caught
37396         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
37397         that platform allows handling stack overflow; at least OS/2 EMX
37398         has sigaltstack, but crashes before transferring control to
37399         handler on stack overflow.
37400         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
37401         check for HAVE_STACK_OVERFLOW_HANDLING.
37402         Reported by Elbert Pol.
37403
37404 2008-08-25  Bruno Haible  <bruno@clisp.org>
37405
37406         * doc/posix-functions/strftime.texi: Fix description of strftime
37407         module.
37408
37409 2008-08-24  Bruno Haible  <bruno@clisp.org>
37410
37411         * tests/uniwidth/test-uc_width2.c: New file.
37412         * tests/uniwidth/test-uc_width2.sh: New file.
37413         * modules/uniwidth/width-tests (Files): Add the new files.
37414         (TESTS): Add uniwidth/test-uc_width2.sh.
37415         (TESTS_ENVIRONMENT): New variable.
37416         (check_PROGRAMS): Add test-uc_width2.
37417         (test_uc_width2_SOURCES): New variable.
37418
37419         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
37420         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
37421         not 0x00AB.
37422         Reported by Alexander V. Lukyanov <lav@netis.ru>.
37423
37424 2008-08-22  Eric Blake  <ebb9@byu.net>
37425
37426         test-lock, test-tls: mention why a test is skipped
37427         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
37428         skipped.
37429         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
37430
37431         count-one-bits: relax license
37432         * modules/count-one-bits (License): Relicense to LGPLv2+.
37433         Suggested by Ludovic Courtès, approved by Ben Pfaff.
37434
37435 2008-08-22  Andreas Schwab  <schwab@suse.de>
37436
37437         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
37438         Remove spurious space in assignment.
37439
37440 2008-08-21  Simon Josefsson  <simon@josefsson.org>
37441
37442         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
37443         Paul Eggert <eggert@CS.UCLA.EDU>.
37444
37445 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
37446
37447         * modules/gettext: Add m4/threadlib.m4.
37448
37449 2008-08-19  Eric Blake  <ebb9@byu.net>
37450
37451         test-c-stack: fix compilation failure on FreeBSD 5.0
37452         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
37453         headers before <sys/resource.h>.
37454         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
37455         the bug.
37456         Reported by Nelson H. F. Beebe.
37457
37458         strverscmp: migrate from "strverscmp.h" to <string.h>
37459         * modules/string (Makefile.am): Add new hooks.
37460         * modules/strverscmp (Files): Remove strverscmp.h.
37461         (Depends-on): Add string.
37462         (configure.ac): Add indicator.
37463         (Include): Mention new header.
37464         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
37465         defaults.
37466         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
37467         results.
37468         * lib/strverscmp.h: Delete.
37469         * lib/string.in.h (strverscmp): Provide declaration, when needed.
37470         * tests/test-strverscmp.c (includes): Adjust client.
37471         * lib/check-version.c (includes): Likewise.
37472         * NEWS: Document the change.
37473
37474         strverscmp: add unit test
37475         * modules/strverscmp-tests: New file.
37476         * tests/test-strverscmp.c: Likewise.
37477
37478 2008-08-19  Simon Josefsson  <simon@josefsson.org>
37479
37480         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
37481         regarding Windows crypto stuff, from Mono.
37482
37483 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
37484
37485         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
37486         if present, for intel RND.  Return error on failures.
37487
37488 2008-08-18  Ben Pfaff  <blp@gnu.org>
37489
37490         gitlog-to-changelog: give better diagnostic for failed pipe-open
37491         * build-aux/gitlog-to-changelog: Improve error message: suggest
37492         that the version of Git may be too old.
37493
37494 2008-08-18  Simon Josefsson  <simon@josefsson.org>
37495
37496         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
37497         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
37498
37499 2008-08-18  Bruno Haible  <bruno@clisp.org>
37500
37501         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
37502         pthread_in_use().
37503
37504 2008-08-18  Bruno Haible  <bruno@clisp.org>
37505
37506         * lib/glthread/threadlib.c: Include <pthread.h>.
37507
37508 2008-08-18  Bruno Haible  <bruno@clisp.org>
37509
37510         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
37511         glthread_recursive_lock_* macros.
37512         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
37513         Fix syntax error.
37514
37515 2008-08-18  Bruno Haible  <bruno@clisp.org>
37516
37517         * lib/glthread/thread.c: Avoid forcing a context switch right after
37518         thread creation.
37519
37520 2008-08-17  Bruno Haible  <bruno@clisp.org>
37521
37522         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
37523         * lib/glthread/thread.h: Provide Win32 specific implementation.
37524         * modules/thread (Files): Add lib/glthread/thread.c.
37525         (Depends-on): Add lock.
37526         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
37527
37528 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37529
37530         New module 'yield'.
37531         * modules/yield: New file.
37532         * lib/glthread/yield.h: New file.
37533         * m4/yield.m4: New file.
37534         * MODULES.html.sh (Multithreading): Add yield.
37535
37536 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37537
37538         New module 'thread'.
37539         * modules/thread: New file.
37540         * lib/glthread/thread.h: New file.
37541         * m4/thread.m4: New file.
37542         * MODULES.html.sh (Multithreading): Add thread.
37543
37544 2008-08-17  Bruno Haible  <bruno@clisp.org>
37545
37546         * lib/glthread/lock.h: Include <stdlib.h> always.
37547         * lib/glthread/tls.h: Likewise.
37548         * lib/glthread/cond.h: Likewise.
37549
37550 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37551
37552         New module 'cond'.
37553         * modules/cond: New file.
37554         * lib/glthread/cond.h: New file.
37555         * lib/glthread/cond.c: New file.
37556         * m4/cond.m4: New file.
37557         * MODULES.html.sh (Multithreading): Add cond.
37558
37559 2008-08-16  Eric Blake  <ebb9@byu.net>
37560
37561         c-stack: fix regression on Irix 5.3 from 2008-06-21
37562         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
37563         sa_sigaction...
37564         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
37565         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
37566         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
37567         * modules/signal (Makefile.am): Use the value.
37568         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
37569         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
37570         * doc/posix-headers/signal.texi (signal.h): Document this
37571         portability issue.
37572         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
37573         Reported by Tom G. Christensen.
37574
37575 2008-08-17  Bruno Haible  <bruno@clisp.org>
37576
37577         New module 'threadlib'.
37578         * modules/threadlib: New file.
37579         * lib/glthread/threadlib.c: New file, extracted from
37580         lib/glthread/lock.c.
37581         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
37582         functions.
37583         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
37584         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
37585         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
37586         macros.
37587         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
37588         (gl_DISABLE_THREADS): Remove macro.
37589         * modules/lock (Files): Remove build-aux/config.rpath.
37590         (Depends-on): Remove havelib. Add threadlib.
37591         (configure.ac-early): Remove section.
37592         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
37593         * modules/tls (Depends-on): Remove lock. Add threadlib.
37594         (Link): New section, copied from threadlib.
37595         * MODULES.html.sh (Multithreading): Add threadlib.
37596
37597 2008-08-14  Bruno Haible  <bruno@clisp.org>
37598
37599         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
37600         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
37601         glthread_rwlock_unlock, glthread_rwlock_destroy,
37602         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
37603         glthread_recursive_lock_destroy): Define as macros always.
37604         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
37605         glthread_lock_lock.
37606         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
37607         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
37608         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
37609         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
37610         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
37611         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
37612         (glthread_recursive_lock_lock_func): Renamed from
37613         glthread_recursive_lock_lock.
37614         (glthread_recursive_lock_unlock_func): Renamed from
37615         glthread_recursive_lock_unlock.
37616         (glthread_recursive_lock_destroy_func): Renamed from
37617         glthread_recursive_lock_destroy.
37618
37619 2008-08-14  Bruno Haible  <bruno@clisp.org>
37620
37621         * lib/glthread/lock.h: Renamed from lib/lock.h.
37622         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
37623         * lib/glthread/tls.h: Renamed from lib/tls.h.
37624         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
37625         * lib/fstrcmp.c: Update includes.
37626         * lib/strsignal.c: Update includes.
37627         * modules/lock (Files, Makefile.am): Update.
37628         (Include): Change to "glthread/lock.h".
37629         * modules/tls (Files, Makefile.am): Update.
37630         (Include): Change to "glthread/tls.h".
37631         * tests/test-lock.c: Update includes.
37632         * tests/test-tls.c: Update includes.
37633         * NEWS: Mention the renamed header files.
37634
37635 2008-08-11  Jim Meyering  <meyering@redhat.com>
37636
37637         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
37638
37639 2008-08-11  Eric Blake  <ebb9@byu.net>
37640
37641         test-c-stack: avoid C99-ism
37642         * tests/test-c-stack.c (main): Fix whitespace, move declaration
37643         before statement.
37644         Reported by Alain Guibert.
37645
37646 2008-08-10  Jim Meyering  <meyering@redhat.com>
37647
37648         ensure that return value of uinttostr et al are not ignored
37649         * lib/inttostr.h (__GNUC_PREREQ): Define.
37650         (__attribute_warn_unused_result__): Define.
37651         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
37652
37653 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
37654
37655         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
37656         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
37657
37658 2008-08-07  Jim Meyering  <meyering@redhat.com>
37659
37660         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
37661
37662         * modules/mkstemp (License): Relicense under LGPLv2+.
37663         * modules/tempname (License): Likewise.
37664
37665 2008-08-06  Bruno Haible  <bruno@clisp.org>
37666
37667         * lib/poll.c (poll): Further micro-optimization.
37668
37669 2008-08-06  Jim Meyering  <meyering@redhat.com>
37670
37671         inet_pton.c: use locale-independent tolower
37672         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
37673         (inet_pton6): Use c_tolower rather than tolower.
37674         * modules/inet_pton (Depends-on): Add c-ctype.
37675
37676 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
37677
37678         * lib/poll.c (poll): Avoid division when timeout is 0, cache
37679         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
37680
37681 2008-08-06  Jim Meyering  <meyering@redhat.com>
37682
37683         * modules/inet_pton (License): Relicense under LGPLv2+.
37684
37685 2008-08-03  Bruno Haible  <bruno@clisp.org>
37686
37687         Additional non-aborting API for lock and tls.
37688         * lib/lock.h: Include <errno.h>.
37689         (glthread_lock_init): New macro/function.
37690         (gl_lock_init): Define as wrapper around glthread_lock_init.
37691         (glthread_lock_lock): New macro/function.
37692         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
37693         (glthread_lock_unlock): New macro/function.
37694         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
37695         (glthread_lock_destroy): New macro/function.
37696         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
37697         (glthread_rwlock_init): New macro/function.
37698         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
37699         (glthread_rwlock_rdlock): New macro/function.
37700         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
37701         (glthread_rwlock_wrlock): New macro/function.
37702         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
37703         (glthread_rwlock_unlock): New macro/function.
37704         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
37705         (glthread_rwlock_destroy): New macro/function.
37706         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
37707         (glthread_recursive_lock_init): New macro/function.
37708         (gl_recursive_lock_init): Define as wrapper around
37709         glthread_recursive_lock_init.
37710         (glthread_recursive_lock_lock): New macro/function.
37711         (gl_recursive_lock_lock): Define as wrapper around
37712         glthread_recursive_lock_lock.
37713         (glthread_recursive_lock_unlock): New macro/function.
37714         (gl_recursive_lock_unlock): Define as wrapper around
37715         glthread_recursive_lock_unlock.
37716         (glthread_recursive_lock_destroy): New macro/function.
37717         (gl_recursive_lock_destroy): Define as wrapper around
37718         glthread_recursive_lock_destroy.
37719         (glthread_once): New macro/function.
37720         (gl_once): Define as wrapper around glthread_once.
37721         Update function declarations.
37722         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
37723         glthread_rwlock_init. Return error code.
37724         (glthread_rwlock_rdlock_multithreaded): Renamed from
37725         glthread_rwlock_rdlock. Return error code.
37726         (glthread_rwlock_wrlock_multithreaded): Renamed from
37727         glthread_rwlock_wrlock. Return error code.
37728         (glthread_rwlock_unlock_multithreaded): Renamed from
37729         glthread_rwlock_unlock. Return error code.
37730         (glthread_rwlock_destroy_multithreaded): Renamed from
37731         glthread_rwlock_destroy. Return error code.
37732         (glthread_recursive_lock_init_multithreaded): Renamed from
37733         glthread_recursive_lock_init. Return error code.
37734         (glthread_recursive_lock_lock_multithreaded): Renamed from
37735         glthread_recursive_lock_lock. Return error code.
37736         (glthread_recursive_lock_unlock_multithreaded): Renamed from
37737         glthread_recursive_lock_unlock. Return error code.
37738         (glthread_recursive_lock_destroy_multithreaded): Renamed from
37739         glthread_recursive_lock_destroy. Return error code.
37740         (glthread_once_call): Make static.
37741         (glthread_once_multithreaded): Renamed from glthread_once.
37742         * lib/tls.h: Include <errno.h>.
37743         (glthread_tls_key_init): New macro/function.
37744         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
37745         (glthread_tls_set): New macro/function.
37746         (gl_tls_set): Define as wrapper around glthread_tls_set.
37747         (glthread_tls_key_destroy): New macro/function.
37748         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
37749         Update function declarations.
37750         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
37751         glthread_tls_get.
37752         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
37753
37754 2008-08-04  Eric Blake  <ebb9@byu.net>
37755
37756         gnumakefile: use space, not TAB, outside of targets
37757         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
37758
37759 2008-08-02  Jim Meyering  <meyering@redhat.com>
37760
37761         getdate.y: avoid locale-dependent date parsing failure
37762         In Turkish locales, getdate would fail to recognize keywords
37763         containing a lowercase "i".  The solution is not to rely on
37764         locale-sensitive case-conversion.
37765         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
37766         (lookup_word): Use c_toupper in place of toupper.
37767         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
37768         Reported by Vefa Bicakci <bicave@superonline.com> in
37769         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
37770         * modules/getdate (Depends-on): Add c-ctype.
37771
37772 2008-08-02  Bruno Haible  <bruno@clisp.org>
37773
37774         * gnulib-tool (func_import): When updating or creating a .gitignore
37775         file, prepend each added line with a slash, and ignore leading slashes
37776         from the existing lines.
37777         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
37778
37779 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37780
37781         Portability fix for GNU make 3.79.1.
37782         * top/GNUmakefile: Avoid 'else COND', which older GNU make
37783         versions do not understand.
37784
37785 2008-08-01  Bruno Haible  <bruno@clisp.org>
37786
37787         Work around bug of HP-UX 10.20 cc with -0.0 literal.
37788         * tests/test-isnanf.h (zero): New variable.
37789         (main): Avoid literal -0.0f.
37790         * tests/test-isnand.h (zero): New variable.
37791         (main): Avoid literal -0.0.
37792         * tests/test-isnanl.h (zero): New variable.
37793         (main): Avoid literal -0.0L.
37794         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
37795         (test_float, test_double, test_long_double): Avoid literals -0.0f,
37796         -0.0, -0.0L.
37797         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
37798         (test_signbitd): Avoid literal -0.0.
37799         (test_signbitl): Avoid literal -0.0L.
37800         * tests/test-ceilf1.c (zero): New variable.
37801         (main): Avoid literal -0.0f.
37802         * tests/test-ceill.c (zero): New variable.
37803         (main): Avoid literal -0.0L.
37804         * tests/test-floorf1.c (zero): New variable.
37805         (main): Avoid literal -0.0f.
37806         * tests/test-floorl.c (zero): New variable.
37807         (main): Avoid literal -0.0L.
37808         * tests/test-roundf1.c (zero): New variable.
37809         (main): Avoid literal -0.0f.
37810         * tests/test-round1.c (zero): New variable.
37811         (main): Avoid literal -0.0.
37812         * tests/test-roundl.c (zero): New variable.
37813         (main): Avoid literal -0.0L.
37814         * tests/test-truncf1.c (zero): New variable.
37815         (main): Avoid literal -0.0f.
37816         * tests/test-trunc1.c (zero): New variable.
37817         (main): Avoid literal -0.0.
37818         * tests/test-truncl.c (zero): New variable.
37819         (main): Avoid literal -0.0L.
37820         * tests/test-frexp.c (zero): New variable.
37821         (main): Avoid literal -0.0.
37822         * tests/test-frexpl.c (zero): New variable.
37823         (main): Avoid literal -0.0L.
37824         * tests/test-ldexpl.c (zero): New variable.
37825         (main): Avoid literal -0.0L.
37826         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
37827         (zerod, zerol): New variables.
37828         (test_function): Avoid literals -0.0, -0.0L.
37829         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
37830         (zerod, zerol): New variables.
37831         (test_function): Avoid literals -0.0, -0.0L.
37832         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
37833         (zerod, zerol): New variables.
37834         (test_function): Avoid literals -0.0, -0.0L.
37835         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
37836         (zerod, zerol): New variables.
37837         (test_function): Avoid literals -0.0, -0.0L.
37838         * tests/test-strtod.c (zero): New variable.
37839         (main): Avoid literal -0.0.
37840         Reported by Jonathan C. Patschke <jp@centtech.com>.
37841
37842 2008-07-31  Jim Meyering  <meyering@redhat.com>
37843
37844         sha256.h: correct definition of SHA224_DIGEST_SIZE
37845         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
37846         Reported by Paulie Pena IV <paulie4@gmail.com>.
37847         Define as 224 / 8, rather than as a literal.
37848         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
37849         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
37850         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
37851
37852 2008-07-31  Bruno Haible  <bruno@clisp.org>
37853
37854         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
37855         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
37856         Reported by Jonathan Patschke <jp@centtech.com>.
37857
37858 2008-07-31  Bruno Haible  <bruno@clisp.org>
37859
37860         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
37861         Reported by Paolo Bonzini <bonzini@gnu.org>.
37862
37863 2008-07-30  Eric Blake  <ebb9@byu.net>
37864
37865         test-strtod: allow compilation without -lm
37866         * tests/test-strtod.c (main): Avoid link dependence on fabs.
37867         Reported by Dennis Clarke <blastwave@gmail.com>.
37868
37869 2008-07-28  Jim Meyering  <meyering@redhat.com>
37870
37871         bootstrap: work also when there are no .po files in po/
37872         * build-aux/bootstrap (update_po_files): Complete the change
37873         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
37874
37875 2008-07-27  Jim Meyering  <meyering@redhat.com>
37876
37877         * users.txt: Add zile.
37878
37879 2008-07-26  Ben Pfaff  <blp@gnu.org>
37880
37881         Add missing dependencies on new m4/exponent[fdl].m4 files.
37882         * modules/isnanf-nolibm: Add m4/exponentf.m4.
37883         * modules/isnand-nolibm: Add m4/exponentd.m4.
37884         * modules/isnanl-nolibm: Add m4/exponentl.m4.
37885         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
37886         m4/isnan[fdl].m4, because the macros actually used moved.
37887         Reported by Jim Meyering.
37888
37889 2008-07-14  Ben Pfaff  <blp@gnu.org>
37890
37891         Add isinf module.
37892         * lib/isinf.c: New file.
37893         * lib/math.in.h: Define isinf macro if we have decided to replace
37894         it.
37895         * m4/isinf.m4: New file.
37896         * m4/math_h.m4: Initialize and substitute variables for isinf
37897         module.
37898         * modules/isinf: New file.
37899         * modules/isinf-tests: New file.
37900         * modules/math: Add substitutions for new module.
37901         * tests/test-isinf.c: New file.
37902         * doc/posix-functions/isinf.texi: Mention new module.
37903         * MODULES.html.sh: Mention new module.
37904
37905 2008-07-14  Ben Pfaff  <blp@gnu.org>
37906
37907         Factor out some macros for use by additional modules.
37908         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
37909         exponentf.m4.
37910         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
37911         exponentd.m4.
37912         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
37913         file exponentl.m4.
37914         * m4/exponentf.m4: New file.
37915         * m4/exponentd.m4: New file.
37916         * m4/exponentl.m4: New file.
37917         * modules/isnanf: Use new file m4/exponentf.m4.
37918         * modules/isnand: Use new file m4/exponentd.m4.
37919         * modules/isnanl: Use new file m4/exponentl.m4.
37920
37921 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
37922
37923         mktime.c: normalize tp->tm_isdst value to -1/0/1.
37924         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
37925         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
37926         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
37927
37928         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
37929         readlink on platforms without PATH_MAX.
37930
37931 2008-07-21  Eric Blake  <ebb9@byu.net>
37932
37933         Warn, not fail, on stale version.
37934         * top/GNUmakefile (_curr-ver): Tone down previous patch.
37935
37936         Don't allow installation with stale devel version number.
37937         * top/GNUmakefile (_is-install-target): New macro.
37938         (_curr-ver): Forbid installation with stale version number.
37939
37940 2008-07-20  Bruno Haible  <bruno@clisp.org>
37941
37942         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
37943         TESTS_ENVIRONMENT.
37944         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
37945
37946 2008-07-20  Bruno Haible  <bruno@clisp.org>
37947
37948         * lib/c-stack.h (c_stack_action): Add documentation.
37949         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
37950
37951 2008-07-20  Bruno Haible  <bruno@clisp.org>
37952
37953         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
37954         * modules/readlink (License): Likewise.
37955
37956 2008-07-17  Eric Blake  <ebb9@byu.net>
37957
37958         * modules/c-stack (Link): Fix typo.
37959
37960         Make c-stack use libsigsegv, when available.
37961         * modules/c-stack (Depends-on): Add libsigsegv.
37962         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
37963         needed.
37964         * lib/c-stack.c (SIGSTKSZ): Define fallback.
37965         (segv_handler, overflow_handler, c_stack_action)
37966         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
37967         implementation when libsigsegv is available, but only when using
37968         the library is necessary.
37969         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
37970         comment, explaining why XSI check fails on Linux.
37971         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
37972         * tests/test-c-stack2.sh: Tweak skip message.
37973         * NEWS: Document new link-time requirements.
37974
37975 2008-07-16  Eric Blake  <ebb9@byu.net>
37976
37977         c-stack: Expose false positives when not using libsigsegv.
37978         * modules/c-stack-tests (Files): Expand test.
37979         * tests/test-c-stack.c (main): Add means to conditionally trigger
37980         non-overflow SIGSEGV.
37981         * tests/test-c-stack2.sh: New file.
37982
37983 2008-07-14  Bruno Haible  <bruno@clisp.org>
37984
37985         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
37986         Reported by Eric Blake.
37987
37988 2008-07-14  Sam Steingold  <sds@gnu.org>
37989             Bruno Haible  <bruno@clisp.org>
37990
37991         New module libsigsegv.
37992         * modules/libsigsegv: New file.
37993         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
37994         modifications.
37995         * MODULES.html.sh (Signal handling): New section.
37996
37997 2008-07-14  Bruno Haible  <bruno@clisp.org>
37998
37999         * modules/unictype/ctype-* (Description): Add the word "function".
38000         Improves the resulting doc in MODULES.html.
38001
38002 2008-07-12  Ben Pfaff  <blp@gnu.org>
38003
38004         Add longlong module.
38005         * modules/longlong: New file.
38006
38007 2008-07-12  Bruno Haible  <bruno@clisp.org>
38008
38009         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
38010         to empty.
38011
38012 2008-07-10  Ben Pfaff  <blp@gnu.org>
38013
38014         Add isnan module.
38015         * doc/posix-functions/isnan.texi: Mention new module.
38016         * lib/math.in.h: Define isnan macro if we have decided to replace
38017         it.
38018         * m4/isnan.m4: New file.
38019         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
38020         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
38021         also.
38022         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
38023         redundancy.
38024         * m4/math_h.m4: Initialize and substitute variables for isnan
38025         module.
38026         * modules/isnan: New file.
38027         * modules/isnan-tests: New file.
38028         * modules/math: Add substitutions for new module.
38029         * tests/test-isnan.c: New file.
38030         * MODULES.html.sh: Mention new module.
38031
38032 2008-07-10  Ben Pfaff  <blp@gnu.org>
38033
38034         Add isnanf module.
38035         * lib/isnanf.m4: New file.
38036         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
38037         (gl_HAVE_ISNANF_IN_LIBM): New macro.
38038         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
38039         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
38040         * modules/isnanf: New file.
38041         * modules/isnanf-tests: New file.
38042         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
38043         files.
38044         * tests/test-isnanf-nolibm.c: factored most of its contents into
38045         new file tests/test-isnanf.h.
38046         * tests/test-isnanf.h: New file.
38047         * tests/test-isnanf.c: New file.
38048         * MODULES.html.sh: Mention new module.
38049         * doc/glibc-functions/isnanf.texi: Mention new module.
38050
38051 2008-07-10  Ben Pfaff  <blp@gnu.org>
38052
38053         Add isnand module.
38054         * lib/isnand.h: New file.
38055         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
38056         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
38057         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
38058         functionality also.
38059         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
38060         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
38061         (gl_HAVE_ISNAND_IN_LIBM): New macro.
38062         * modules/isnand: New file.
38063         * modules/isnand-tests: New file.
38064         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
38065         files.
38066         * tests/test-isnand-nolibm.c: factored most of its contents into
38067         new file tests/test-isnand.h.
38068         * tests/test-isnand.h: New file.
38069         * tests/test-isnand.c: New file.
38070         * MODULES.html.sh: Mention new module.
38071
38072 2008-07-10  Ben Pfaff  <blp@gnu.org>
38073
38074         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
38075         * lib/isnand.h: Rename lib/isnand-nolibm.h.
38076         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
38077         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
38078         * modules/isnanf-nolibm: Update references to renamed files.
38079         * modules/isnand-nolibm: Likewise.
38080         * modules/isnanf-nolibm-tests: Likewise.
38081         * modules/isnand-nolibm-tests: Likewise.
38082         * lib/frexp.c: Likewise.
38083         * lib/isfinite.c: Likewise.
38084         * lib/signbitd.c: Likewise.
38085         * lib/signbitf.c: Likewise.
38086         * lib/vasnprintf.c: Likewise.
38087         * tests/test-ceilf1.c: Likewise.
38088         * tests/test-ceilf2.c: Likewise.
38089         * tests/test-floorf1.c: Likewise.
38090         * tests/test-floorf2.c: Likewise.
38091         * tests/test-frexp.c: Likewise.
38092         * tests/test-round1.c: Likewise.
38093         * tests/test-round2.c: Likewise.
38094         * tests/test-roundf1.c: Likewise.
38095         * tests/test-strtod.c: Likewise.
38096         * tests/test-trunc1.c: Likewise.
38097         * tests/test-trunc2.c: Likewise.
38098         * tests/test-truncf1.c: Likewise.
38099         * tests/test-truncf2.c: Likewise.
38100         * NEWS: Mention the renamed header files.
38101
38102 2008-07-11  Jim Meyering  <meyering@redhat.com>
38103
38104         vc-list-files: make the last-resort awk code more portable
38105         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
38106         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
38107         does not support it.
38108
38109 2008-07-10  Eric Blake  <ebb9@byu.net>
38110
38111         Work with tar's bootstrap.
38112         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
38113         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
38114         an m4 comment.
38115
38116 2008-07-09  Jim Meyering  <meyering@redhat.com>
38117
38118         posix-shell.m4: fix typo that made this test malfunction
38119         * m4/posix-shell.m4: Remove capitalization in variable name.
38120
38121 2008-07-08  Bruno Haible  <bruno@clisp.org>
38122
38123         * m4/onceonly.m4: Update comments.
38124         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38125
38126 2008-07-04  Jim Meyering  <meyering@redhat.com>
38127
38128         * users.txt: Add vc-dwim.
38129         (bison, coreutils): Use the gitweb URL.
38130
38131 2008-07-03  Jim Meyering  <meyering@redhat.com>
38132
38133         * users.txt: Add libffcall.  From Sam Steingold.
38134
38135 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
38136
38137         getdate.y: do not ignore TZ with relative day, month or year offset
38138         * lib/getdate.y (get_date): Move the tz-handling block to follow the
38139         relative-date-handling, since otherwise, the latter would clobber the
38140         sole output (an updated Start value) of the tz-handling block.
38141         * tests/test-getdate.c: Tests for the fix
38142
38143 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38144
38145         Recognize 'foo_LIBRARIES += libgnu.a'.
38146         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
38147         makefile snippet has already specified an installation location,
38148         also using '+='.
38149
38150 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
38151
38152         getdate.y: factor out common actions
38153         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
38154         Use them in place of open-coded actions.
38155
38156 2008-07-01  Simon Josefsson  <simon@josefsson.org>
38157
38158         Add self-test for getdate module.
38159         * modules/getdate-tests: New file.
38160         * tests/test-getdate.c: New file.
38161
38162 2008-06-29  Bruno Haible  <bruno@clisp.org>
38163
38164         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
38165         .gitignore.
38166         Reported by Sylvain Beucler <beuc@beuc.net>.
38167
38168 2008-06-29  Bruno Haible  <bruno@clisp.org>
38169
38170         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
38171         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
38172
38173 2008-06-29  Bruno Haible  <bruno@clisp.org>
38174
38175         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
38176         EXTRA_DIST.
38177         Reported by Sylvain Beucler <beuc@beuc.net>.
38178
38179 2008-06-26  Jim Meyering  <meyering@redhat.com>
38180
38181         make several modules depend on the "open" module
38182         This provides slightly increased consistency when opening-for-write
38183         the name of a non-directory spelled with a trailing slash.
38184         * modules/chdir-safer: Likewise.
38185         * modules/chown: Likewise.
38186         * modules/clean-temp: Likewise.
38187         * modules/copy-file: Likewise.
38188         * modules/fchdir: Likewise.
38189         * modules/fcntl-safer: Likewise.
38190         * modules/pipe: Likewise.
38191         * modules/utime: Likewise.
38192         Prompted by Eric Blake and Bruno Haible.
38193
38194 2008-06-24  Andreas Schwab  <schwab@suse.de>
38195
38196         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
38197         literals can be used as initializers for global variables.
38198
38199 2008-06-23  Eric Blake  <ebb9@byu.net>
38200
38201         Make gnulib-cache.m4 easier to diff.
38202         * gnulib-tool (func_import): Allow newlines when reading cached
38203         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
38204
38205 2008-06-23  Bruno Haible  <bruno@clisp.org>
38206
38207         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
38208         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
38209         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
38210         m4/signalblocking.m4.
38211         (gl_PREREQ_SIGACTION): Don't invoke it.
38212         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
38213         gl_PREREQ_SIG_HANDLER_H.
38214         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38215         Don't check for sigaction here.
38216
38217 2008-06-23  Bruno Haible  <bruno@clisp.org>
38218
38219         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
38220         (install_handlers): Don't set the SA_RESETHAND flag.
38221
38222 2008-06-23  Bruno Haible  <bruno@clisp.org>
38223
38224         * m4/sigaction.m4: Comment fixes.
38225         * lib/signal.in.h: Likewise.
38226
38227 2008-06-23  Eric Blake  <ebb9@byu.net>
38228
38229         Fix typo.
38230         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
38231
38232         Avoid SA_ namespace.
38233         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
38234         Reported by Ralf Wildenhues.
38235
38236         Avoid test failure due to SA_RESTORER.
38237         * tests/test-sigaction.c (SA_MASK): New macro.
38238         (main): Avoid failing due to extension flags being set.
38239         Reported by Jim Meyering.
38240
38241         Revert use of sig-handler.h in sigprocmask.c.
38242         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
38243         it requires the existence of struct sigaction.
38244         * lib/sigprocmask.c (handler_t): Restore typedef.
38245         (rpl_signal, old_handlers): Use local type.
38246
38247 2008-06-22  Bruno Haible  <bruno@clisp.org>
38248
38249         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
38250         conditionally.
38251         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38252
38253 2008-06-22  Bruno Haible  <bruno@clisp.org>
38254
38255         * doc/posix-functions/siginterrupt.texi: Move note.
38256
38257         * lib/signal.in.h (SA_RESTART): New macro.
38258         * lib/sigaction.c: Update comment.
38259
38260         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
38261
38262         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
38263         (gl_PREREQ_SIGPROCMASK): Invoke it.
38264         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
38265
38266         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
38267
38268         * lib/sigprocmask.c: Update a comment.
38269
38270 2008-06-21  Eric Blake  <ebb9@byu.net>
38271
38272         Use sigaction module rather than signal().
38273         * modules/c-stack (Depends-on): Add sigaction.
38274         * modules/fatal-signal (Depends-on): Likewise.
38275         * modules/nanosleep (Depends-on): Likewise.
38276         * modules/sigprocmask (Files): Add sig-handler.h.
38277         * modules/sigaction (Files): Likewise.
38278         * lib/sig-handler.h (get_handler): New file, suggested by Paul
38279         Eggert.
38280         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
38281         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
38282         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
38283         (init_fatal_signals): Likewise.
38284         * lib/nanosleep.c (rpl_nanosleep): Likewise.
38285         (siginterrupt): Delete fallback.
38286         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
38287         instead.
38288         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
38289         siginterrupt.
38290
38291         New module sigaction, for mingw.
38292         * modules/sigaction: New module...
38293         * modules/sigaction-tests: ...and its test.
38294         * m4/sigaction.m4: New file.
38295         * lib/sigaction.c: Likewise.
38296         * tests/test-sigaction.c: Likewise.
38297         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
38298         * modules/signal (Makefile.am): Likewise.
38299         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
38300         needed.
38301         * doc/posix-headers/signal.texi (signal.h): Mention provided
38302         types.
38303         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
38304         that sigaction is preferable.
38305         * doc/posix-functions/sigaction.texi (sigaction): Mention new
38306         module.
38307         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38308         sigaction.
38309
38310         Improve robustness of sigprocmask by overriding signal.
38311         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
38312         is in use.
38313         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
38314         (SIGKILL, SIGSTOP): Provide fallbacks.
38315         (rpl_signal): Implement.
38316         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
38317         signal can be called inside handlers.
38318
38319         Fix nanosleep module on mingw.
38320         * modules/nanosleep (Depends-on): Add sys_select.
38321         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
38322
38323         Fix licensing of sigprocmask.
38324         * modules/raise (License): Relicense as LGPL.
38325
38326 2008-06-21  Bruno Haible  <bruno@clisp.org>
38327
38328         * lib/propername.c (proper_name_utf8): Don't use the transliterated
38329         result if it contains question marks.
38330         Reported by Michael Geng <linux@michaelgeng.de>.
38331
38332 2008-06-19  Bruno Haible  <bruno@clisp.org>
38333
38334         Fix CVS-ism.
38335         * doc/gnulib.texi: Include updated-stamp.texi.
38336         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
38337         (updated-stamp.texi): New rule.
38338         (gnulib.info): Depend on it.
38339         * doc/.gitignore: Add updated-stamp.texi.
38340         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
38341
38342 2008-06-19  Bruno Haible  <bruno@clisp.org>
38343
38344         * doc/Makefile (gnulib.info): Update and simplify dependencies.
38345         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
38346
38347 2008-06-19  Eric Blake  <ebb9@byu.net>
38348
38349         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
38350         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
38351         Reported by Stepan Kasal.
38352
38353 2008-06-18  Bruno Haible  <bruno@clisp.org>
38354
38355         * lib/fatal-signal.c (init_fatal_signals): Add comment.
38356         Reported by Eric Blake.
38357
38358 2008-06-18  Eric Blake  <ebb9@byu.net>
38359
38360         Work around cygwin 1.5.25 strsignal bug.
38361         * tests/test-strsignal.c: Allow for const char *.
38362         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
38363
38364 2008-06-18  Simon Josefsson  <simon@josefsson.org>
38365
38366         * users.txt: Update URL to article and add author/date
38367         information.
38368
38369 2008-06-17  Bruno Haible  <bruno@clisp.org>
38370
38371         New macro gl_DISABLE_THREADS.
38372         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
38373         if the user did not pass --enable-threads or --disable-threads option.
38374         (gl_DISABLE_THREADS): New macro.
38375         Reported by Eric Blake <ebb9@byu.net>.
38376
38377 2008-06-17  Bruno Haible  <bruno@clisp.org>
38378
38379         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
38380         when the macro ignores it.
38381         Based on a patch by Eric Blake <ebb9@byu.net>.
38382
38383 2008-06-17  Bruno Haible  <bruno@clisp.org>
38384
38385         * modules/tls (License): Change to LGPLv2+.
38386         Reported by Eric Blake.
38387
38388 2008-06-17  Eric Blake  <ebb9@byu.net>
38389
38390         Simplify c-stack prerequisites.
38391         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
38392         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
38393         no longer requires <ucontext.h> to exist.  Optimize setrlimit
38394         check.
38395         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
38396         <sys/resource.h>.
38397
38398         Move c-stack test into testsuite.
38399         * modules/c-stack-tests: New file.
38400         * lib/c-stack.c [DEBUG]: Move test program...
38401         * tests/test-c-stack.c: ...into this new file.  Skip rather than
38402         fail test if sigaltstack is lacking.
38403         * tests/test-c-stack.sh: New driver file.
38404
38405 2008-06-16  Eric Blake  <ebb9@byu.net>
38406
38407         Use raise module consistently.
38408         * modules/fatal-signal (Depends-on): Add raise.
38409         * modules/sigprocmask (Depends-on): Likewise.
38410         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
38411         * lib/sigprocmask.c (sigprocmask): Likewise.
38412         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38413         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
38414
38415         Fix compliance bug in sigpending.
38416         * lib/sigprocmask.c (sigpending): Return pending array via
38417         parameter, not return value.
38418
38419 2008-06-14  Eric Blake  <ebb9@byu.net>
38420
38421         Improve obstack-printf test code.
38422         * tests/test-obstack-printf.c (test_function): Fix comment, and
38423         simplify usage of obstack_* in macros.  Add a test for coverage.
38424         Reported by Bruno Haible.
38425
38426 2008-06-14  Bruno Haible  <bruno@clisp.org>
38427
38428         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
38429         array size as a constant, not as a const variable.
38430         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
38431         AC_USE_SYSTEM_EXTENSIONS.
38432         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
38433         Test whether the obstack_printf function actually exists.
38434         * modules/obstack-printf (Depends-on): Add extensions.
38435         (Include): Remove obstack.h.
38436         * modules/obstack-printf-posix (Depends-on): Add extensions.
38437         (Include): Remove obstack.h.
38438
38439 2008-06-13  Eric Blake  <ebb9@byu.net>
38440
38441         Add obstack-printf and obstack-printf-posix modules.
38442         * modules/obstack-printf: New file.
38443         * modules/obstack-printf-posix: Likewise.
38444         * MODULES.html.sh (Misc): Mention them.
38445         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
38446         Likewise.
38447         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
38448         Likewise.
38449         * modules/stdio (Makefile.am): Accomodate new modules.
38450         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38451         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
38452         Declare.
38453         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
38454         functions.
38455         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
38456         (gl_REPLACE_OBSTACK_PRINTF): New macros
38457         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
38458         * tests/test-obstack-printf.c: New file.
38459         * modules/obstack-printf-tests: Likewise.
38460         * modules/obstack-printf-posix-tests: Likewise.
38461
38462 2008-06-11  Bruno Haible  <bruno@clisp.org>
38463
38464         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
38465         * lib/open.c: Include errno.h.
38466         (open): Fail when attempting to write to a file that has a trailing
38467         slash.
38468         * tests/test-open.c (main): Test against trailing slash bug.
38469         * doc/posix-functions/open.texi: Mention the trailing slash bug.
38470
38471 2008-06-10  Bruno Haible  <bruno@clisp.org>
38472
38473         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
38474         for $? to work inside the trap command, with various /bin/sh-s.
38475         * tests/test-vc-list-files-cvs.sh: Likewise.
38476
38477 2008-06-10  Bruno Haible  <bruno@clisp.org>
38478
38479         * lib/acl-internal.h: Don't include gettext.h here.
38480         * lib/set-mode-acl.c: Include gettext.h here.
38481         * lib/copy-acl.c: Likewise.
38482
38483 2008-06-10  Bruno Haible  <bruno@clisp.org>
38484
38485         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
38486         * lib/wait-process.c (wait_subprocess): Likewise.
38487         * lib/execute.h (execute): Add termsigp argument.
38488         * lib/execute.c (execute): Likewise.
38489         * lib/csharpcomp.c (compile_csharp_using_pnet,
38490         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
38491         * lib/csharpexec.c (execute_csharp_using_pnet,
38492         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
38493         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
38494         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
38495         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
38496         is_jikes_present): Update.
38497         * lib/javaexec.c (execute_java_class): Update.
38498         * lib/javaversion.c (execute_and_read_line): Update.
38499         * NEWS: Document the changes.
38500         Reported by Eric Blake.
38501
38502 2008-06-10  Eric Blake  <ebb9@byu.net>
38503
38504         Add missing include.
38505         * tests/test-strstr.c (includes): Add <signal.h>.
38506         * tests/test-strcasestr.c (includes): Likewise.
38507         * tests/test-memmem.c (includes): Likewise.
38508
38509 2008-06-10  Bruno Haible  <bruno@clisp.org>
38510
38511         * lib/wait-process.c (wait_subprocess): Add an assertion.
38512
38513 2008-06-10  Bruno Haible  <bruno@clisp.org>
38514
38515         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
38516
38517 2008-06-10  Bruno Haible  <bruno@clisp.org>
38518
38519         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
38520         using alarm().
38521         * tests/test-strcasestr.c (main): Likewise.
38522         * tests/test-strstr.c (main): Likewise.
38523
38524 2008-06-09  Bruno Haible  <bruno@clisp.org>
38525
38526         Work around the Solaris 10 ACE ACLs ABI change.
38527         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
38528         declare if ACL_NO_TRIVIAL is present.
38529         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
38530         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
38531         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
38532         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
38533         define if ACL_NO_TRIVIAL is present.
38534         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
38535         and use the current ABI.
38536         (file_has_acl): Use same #if condition as elsewhere.
38537         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
38538         in use, and use the current ABI.
38539         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
38540         Reported by Jim Meyering.
38541
38542 2008-06-09  Eric Blake  <ebb9@byu.net>
38543
38544         Work around environments that (stupidly) ignore SIGALRM.
38545         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
38546         before using alarm().
38547         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38548         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
38549         Reported by Ian Beckwith <ianb@erislabs.net>.
38550
38551         Produce autobuild blurb earlier in log.
38552         * modules/autobuild (configure.ac-early): Move AB_INIT here.
38553
38554 2008-06-09  Jim Meyering  <meyering@redhat.com>
38555         and Ondřej Vašík  <ovasik@redhat.com>
38556
38557         utimens.c: correct kernel bug work-around
38558         Ondřej Vašík found that the invalid return value of 280 indicates
38559         failure, not success, and the kernel bug we're trying to work
38560         around affects not just the utimensat call, but also the fallback
38561         futimens call.
38562         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
38563         not success.
38564         [HAVE_FUTIMENS]: Use the same work-around, here.
38565
38566 2008-06-09  Jim Meyering  <meyering@redhat.com>
38567
38568         add more guards around definition of ACE_-related code
38569         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
38570         ALLOW and ACE_OWNER are also defined.
38571
38572 2008-06-08  Bruno Haible  <bruno@clisp.org>
38573
38574         * lib/acl-internal.h: Add me as co-author.
38575         * lib/file-has-acl.c: Likewise.
38576         * lib/set-mode-acl.c: Likewise.
38577         * lib/copy-acl.c: Likewise.
38578
38579 2008-06-08  Bruno Haible  <bruno@clisp.org>
38580
38581         Add support for AIX ACLs.
38582         * lib/acl-internal.h (acl_nontrivial): New declaration.
38583         * lib/file-has-acl.c (acl_nontrivial): New function.
38584         (file_has_acl): Add implementation using AIX 4 ACL API.
38585         * lib/set-mode-acl.c (qset_acl): Likewise.
38586         * lib/copy-acl.c (qcopy_acl): Likewise.
38587
38588 2008-06-08  Bruno Haible  <bruno@clisp.org>
38589
38590         Add support for HP-UX ACLs.
38591         * lib/acl-internal.h (acl_nontrivial): New declaration.
38592         * lib/file-has-acl.c (acl_nontrivial): New function.
38593         (file_has_acl): Add implementation using HP-UX 11 ACL API.
38594         * lib/set-mode-acl.c (qset_acl): Likewise.
38595         * lib/copy-acl.c (qcopy_acl): Likewise.
38596
38597 2008-06-08  Bruno Haible  <bruno@clisp.org>
38598
38599         Add support for Cygwin ACLs.
38600         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
38601         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
38602         the chmod_or_fchmod call.
38603         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
38604
38605 2008-06-08  Bruno Haible  <bruno@clisp.org>
38606
38607         Fix bug with setuid modes in Solaris 10+ code.
38608         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
38609         succeeded, when the mode contains some special bits.
38610
38611 2008-06-08  Bruno Haible  <bruno@clisp.org>
38612
38613         Add support for Solaris 7..10 ACLs.
38614         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
38615         declarations.
38616         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
38617         functions.
38618         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
38619         * lib/set-mode-acl.c (qset_acl): Likewise.
38620         * lib/copy-acl.c (qcopy_acl): Likewise.
38621
38622 2008-06-08  Bruno Haible  <bruno@clisp.org>
38623
38624         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
38625         declaration.
38626         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
38627         (acl_access_nontrivial): Remove MacOS X case.
38628         (file_has_acl): Use acl_extended_nontrivial.
38629         * lib/copy-acl.c (qcopy_acl): Likewise.
38630
38631 2008-06-08  Bruno Haible  <bruno@clisp.org>
38632
38633         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
38634
38635 2008-06-08  Jim Meyering  <meyering@redhat.com>
38636
38637         * modules/acl (Maintainer): Add Bruno Haible.
38638
38639 2008-06-07  Bruno Haible  <bruno@clisp.org>
38640
38641         Improve support for Tru64 ACLs.
38642         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
38643         ACL on OSF/1.
38644
38645 2008-06-07  Bruno Haible  <bruno@clisp.org>
38646
38647         Add support for MacOS X ACLs.
38648         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
38649         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
38650         * lib/set-mode-acl.c (qset_acl): Likewise.
38651         * lib/copy-acl.c (qcopy_acl): Likewise.
38652
38653 2008-06-07  Bruno Haible  <bruno@clisp.org>
38654
38655         Fix memory leak introduced on 2008-05-22.
38656         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
38657         use.
38658
38659 2008-06-07  Bruno Haible  <bruno@clisp.org>
38660
38661         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
38662         to construct an empty ACL.
38663
38664 2008-06-07  Bruno Haible  <bruno@clisp.org>
38665
38666         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
38667         precisely.
38668         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
38669
38670 2008-06-07  Bruno Haible  <bruno@clisp.org>
38671
38672         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
38673         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
38674
38675 2008-06-07  Bruno Haible  <bruno@clisp.org>
38676
38677         * doc/posix-functions/_setjmp.texi: Explain the use of this function
38678         regardless of POSIX.
38679         * doc/posix-functions/_longjmp.texi: Likewise.
38680         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
38681         SystemV platform in this case.
38682
38683 2008-06-06  Eric Blake  <ebb9@byu.net>
38684
38685         Document abort() bugs.
38686         * doc/posix-functions/abort.texi (abort): Mention anomalies.
38687
38688         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
38689         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
38690         sigsetjmp.
38691         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
38692         siglongjmp, but only as a macro.
38693         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
38694         is obsolete.
38695         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
38696
38697         Tweak documentation to cover cygwin argz bugs.
38698         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
38699         argz bug fix; no code change needed since no cygwin releases
38700         occurred between the last fix and the bug being tested.
38701         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
38702         module and recently fixed cygwin bugs.
38703         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
38704         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
38705         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
38706         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
38707         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
38708         Likewise.
38709         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
38710         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
38711         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
38712         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
38713         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
38714         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
38715         Likewise.
38716
38717         Avoid gcc warning on cygwin.
38718         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
38719         !ACL_NO_TRIVIAL]: Avoid unused variable.
38720
38721 2008-06-05  Eric Blake  <ebb9@byu.net>
38722
38723         Be tolerant of UNKNOWN version in gnulib-tool test dir.
38724         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
38725         git-version-gen fails to come up with a version.
38726         Reported by Simon Josefsson.
38727
38728 2008-06-05  Jim Meyering  <meyering@redhat.com>
38729             Paul Eggert  <eggert@cs.ucla.edu>
38730
38731         utimens.c: work around a probable Linux kernel bug
38732         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
38733         appears to be a kernel bug that causes utimensat to return 280
38734         instead of 0, indicating success.
38735
38736 2008-06-04  Bruno Haible  <bruno@clisp.org>
38737
38738         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
38739         2008-06-01 commit.
38740
38741 2008-06-04  Bruno Haible  <bruno@clisp.org>
38742
38743         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
38744         * lib/file-has-acl.c (acl_access_nontrivial): New function.
38745         (file_has_acl): Use it. Save errno afterwards.
38746         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
38747
38748 2008-06-03  Bruno Haible  <bruno@clisp.org>
38749
38750         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
38751         draft code. Simplify #ifs.
38752         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
38753         Put Solaris code after POSIX-draft code. Fix comments regarding
38754         Solaris 10, HP-UX. Mention Cygwin.
38755         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
38756
38757 2008-06-03  Eric Blake  <ebb9@byu.net>
38758
38759         Provide fallback for older kernels.
38760         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
38761         Provide runtime fallback if kernel lacks support.
38762         Reported by Mike Frysinger.
38763
38764 2008-06-02  Bruno Haible  <bruno@clisp.org>
38765
38766         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
38767         it exists.
38768
38769 2008-06-02  Bruno Haible  <bruno@clisp.org>
38770
38771         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
38772         * lib/copy-acl.c (qcopy_acl): Update comment.
38773
38774 2008-06-02  Bruno Haible  <bruno@clisp.org>
38775
38776         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
38777         like ACL APIs.
38778
38779 2008-06-02  Bruno Haible  <bruno@clisp.org>
38780
38781         * tests/test-file-has-acl.sh: Use different code for Cygwin.
38782         * tests/test-set-mode-acl.sh: Likewise.
38783         * tests/test-copy-acl.sh: Likewise.
38784         * tests/test-copy-file.sh: Likewise.
38785
38786 2008-06-02  Bruno Haible  <bruno@clisp.org>
38787
38788         * tests/test-file-has-acl.sh: Remove unused code.
38789
38790 2008-06-01  Bruno Haible  <bruno@clisp.org>
38791
38792         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
38793         (copy_acl): Just a wrapper around qcopy_acl that emits the error
38794         messages.
38795         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
38796
38797 2008-06-01  Bruno Haible  <bruno@clisp.org>
38798
38799         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
38800         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
38801         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
38802         APIs.
38803         * modules/acl-tests (configure.ac): Remove tests now contained in
38804         m4/acl.m4.
38805
38806 2008-06-02  Jim Meyering  <meyering@redhat.com>
38807
38808         announce-gen: use a better key-server host name
38809         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
38810         it may be more consistently reliable.  Suggested by Werner Koch
38811         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
38812
38813 2008-06-01  Bruno Haible  <bruno@clisp.org>
38814
38815         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
38816         Reported by Voroskoi Andras <voroskoi@gmail.com>.
38817
38818 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
38819
38820         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
38821
38822 2008-06-01  Bruno Haible  <bruno@clisp.org>
38823
38824         New ACL tests.
38825         * tests/test-file-has-acl.sh: New file.
38826         * tests/test-file-has-acl.c: New file.
38827         * tests/test-set-mode-acl.sh: New file.
38828         * tests/test-set-mode-acl.c: New file.
38829         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
38830         * tests/test-copy-acl.c: New file.
38831         * modules/acl-tests: New file, based on modules/copy-file-tests.
38832         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
38833         (Depends-on): Add acl-tests.
38834         (configure.ac): Remove checks.
38835         (Makefile.am): Don't create test-sameacls program here any more.
38836
38837 2008-06-01  Bruno Haible  <bruno@clisp.org>
38838
38839         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
38840         * tests/test-sameacls.c: Include progname.h.
38841         (main): Invoke set_program_name. Portability fixes for MacOS X,
38842         Solaris, HP-UX.
38843
38844 2008-06-01  Bruno Haible  <bruno@clisp.org>
38845
38846         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
38847         function.
38848         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
38849
38850 2008-06-01  Bruno Haible  <bruno@clisp.org>
38851
38852         * modules/rpmatch (Depends-on): Add strdup.
38853
38854 2008-06-01  Bruno Haible  <bruno@clisp.org>
38855
38856         * lib/pipe.c: Include unistd-safer.h.
38857         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
38858         * modules/pipe (Depends-on): Add unistd-safer.
38859
38860 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38861
38862         * modules/autobuild (configure.ac): Call AB_INIT.
38863
38864 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38865
38866         * tests/test-getaddrinfo.c: Don't print debug messages by default.
38867         Suggested by Bruno Haible <bruno@clisp.org>.
38868
38869 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38870
38871         * tests/test-base64.c: Cast size_t to unsigned long when invoking
38872         printf.  Use %lu instead of %d.  Reported by Bruno Haible
38873         <bruno@clisp.org>.
38874
38875 2008-05-29  Eric Blake  <ebb9@byu.net>
38876
38877         Prefer new POSIX 200x interfaces over futimesat.
38878         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
38879         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
38880         when available.
38881         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
38882
38883 2008-05-28  Bruno Haible  <bruno@clisp.org>
38884
38885         * modules/stpcpy (License): Change to LGPLv2+.
38886         Requested by David Lutterkort <dlutter@redhat.com>.
38887
38888 2008-05-27  Bruno Haible  <bruno@clisp.org>
38889
38890         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
38891         current mingw.
38892         Reported by Jose E. Marchesi <jemarch@gnu.org>.
38893
38894 2008-05-27  Bruno Haible  <bruno@clisp.org>
38895
38896         * modules/iconv_open (Link): New section, from module 'iconv'.
38897         * modules/striconv (Link): Likewise.
38898         * modules/striconveh (Link): Likewise.
38899         * modules/xstriconv (Link): Likewise.
38900         * modules/unicodeio (Link): Likewise.
38901         * modules/propername (Link): Likewise.
38902         Reported by Jim Meyering.
38903
38904 2008-05-26  Jim Meyering  <meyering@redhat.com>
38905
38906         sha256: do not artificially restrict buffer length to be < 2^32
38907         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
38908         uint32_t to size_t.
38909         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
38910         to match.
38911
38912         avoid unaligned access errors, e.g., on sparc
38913         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
38914         direct access through a possibly-unaligned uint64* pointer.
38915         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
38916         direct access through a possibly-unaligned uint32* pointer.
38917         Prompted by this patch from Tom "spot" Callaway:
38918         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
38919
38920         sha512.c: fix typo in comment
38921         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
38922
38923 2008-05-25  Bruno Haible  <bruno@clisp.org>
38924
38925         * lib/set-mode-acl.c: Renamed from lib/acl.c.
38926         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
38927         (Makefile.am): Update lib_SOURCES.
38928
38929 2008-05-25  Bruno Haible  <bruno@clisp.org>
38930
38931         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
38932
38933 2008-05-25  Jim Meyering  <meyering@redhat.com>
38934
38935         useless-if-before-free: freed expr may have white-space differences
38936         * build-aux/useless-if-before-free: Recognize cases in which the
38937         freed expression differs from the tested one in embedded white
38938         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
38939         $1 was used, so we can't make any regexp shy.  Improved tests now
38940         detect this.
38941
38942         useless-if-before-free: accept white space in the expression.
38943         * build-aux/useless-if-before-free: For now, any white space
38944         in the expression must be identical in the free argument.
38945
38946         useless-if-before-free: efficiency tweak
38947         * build-aux/useless-if-before-free: Make the expression-matching
38948         regexp "shy".
38949         Make the *outer* regexp shy, not the expr-matching one.
38950
38951         update code-in-comment to accept cast of free arg
38952         * build-aux/useless-if-before-free: Update regexp.
38953
38954 2008-05-25  Bruno Haible  <bruno@clisp.org>
38955
38956         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
38957         * modules/copy-file-tests (Files, Makefile.am): Update.
38958         * tests/test-copy-file.c (func_test_copy): Update.
38959
38960 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
38961
38962         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
38963
38964 2008-05-23  Bruno Haible  <bruno@clisp.org>
38965
38966         Improve support for ACLs on OSF/1.
38967         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
38968         Remove fallback for unknown flavors of ACLs.
38969
38970 2008-05-22  Bruno Haible  <bruno@clisp.org>
38971
38972         Add support for ACLs on OSF/1.
38973         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
38974         replacements.
38975         (acl_free_text): New macro fallback.
38976         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
38977         acl_free.
38978         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
38979         acl_free_text function. Require AC_C_INLINE.
38980
38981 2008-05-22  Bruno Haible  <bruno@clisp.org>
38982
38983         Make copy_acl work on MacOS X 10.5.
38984         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
38985         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
38986         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
38987         If MODE_INSIDE_ACL, don't assume that every system has the same text
38988         representation for ACLs as FreeBSD.
38989         * lib/copy-acl.c (copy_acl): Add support for platforms with
38990         !MODE_INSIDE_ACL.
38991         * lib/file-has-acl.c (file_has_acl): Likewise.
38992         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
38993         FreeBSD, MacOS X, or IRIX, respectively.
38994
38995 2008-05-22  Bruno Haible  <bruno@clisp.org>
38996
38997         * lib/acl.h: Don't include <sys/acl.h>.
38998         (GETACLCNT): Move fallback to lib/acl-internal.h.
38999         * lib/acl-internal.h: Include <sys/acl.h> here.
39000         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
39001
39002 2008-05-22  Bruno Haible  <bruno@clisp.org>
39003
39004         Split off copy_acl function to separate file.
39005         * lib/copy-acl.c: New file, extracted from lib/acl.c.
39006         * lib/acl.c (copy_acl): Moved function to separate file.
39007         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
39008         * modules/acl (Files): Add lib/copy-acl.c.
39009         (Makefiles.am): Augment lib_SOURCES.
39010
39011 2008-05-22  Bruno Haible  <bruno@clisp.org>
39012
39013         * modules/copy-file-tests: New file.
39014         * tests/test-copy-file.sh: New file.
39015         * tests/test-copy-file.c: New file.
39016         * tests/test-copy-file-sameacls.c: New file.
39017
39018 2008-05-22  Eric Blake  <ebb9@byu.net>
39019
39020         Avoid gcc warning.
39021         * tests/test-memcmp.c (main): Pass NULL indirectly.
39022
39023 2008-05-21  Bruno Haible  <bruno@clisp.org>
39024
39025         Add reference doc about ACLs.
39026         * doc/acl-resources.txt: New file.
39027         * doc/acl-cygwin.txt: New file.
39028
39029 2008-05-21  Bruno Haible  <bruno@clisp.org>
39030
39031         Avoid one more warning from gcc.
39032         * lib/vasnprintf.c (IF_LINT): Update comments.
39033         (VASNPRINTF): Use it also for the 'prefix' array initializer.
39034
39035 2008-05-21  Jim Meyering  <meyering@redhat.com>
39036
39037         avoid a warning from gcc
39038         * lib/vasnprintf.c (IF_LINT): Define.
39039         (scale10_round_decimal_long_double):
39040         Use it to avoid a "may be used uninitialized" warning.
39041         (scale10_round_decimal_double): Likewise.
39042
39043 2008-05-21  Simon Josefsson  <simon@josefsson.org>
39044
39045         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
39046         declared.
39047
39048 2008-05-20  Bruno Haible  <bruno@clisp.org>
39049
39050         * tests/test-memcmp.c (main): Test also the sign of the result. Test
39051         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
39052
39053 2008-05-20  Simon Josefsson  <simon@josefsson.org>
39054
39055         * modules/memcmp-tests: New file.
39056         * tests/test-memcmp.c: New file.
39057
39058 2008-05-19  Bruno Haible  <bruno@clisp.org>
39059
39060         * modules/propername (Notice, configure.ac): Put quoted "..." into
39061         --keyword option.
39062         * lib/propername.h: Update comments accordingly.
39063         Reported by Eric Blake.
39064
39065 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
39066
39067         * modules/getpass-gnu (Depends-on): Add fseeko.
39068
39069 2008-05-19  Simon Josefsson  <simon@josefsson.org>
39070
39071         * modules/base64-tests: New file.
39072
39073 2008-05-19  Bo Borgerson <gigabo@gmail.com>
39074
39075         * lib/base64.c (base64_decode_ctx): If a decode context structure
39076         was passed in use it to ignore newlines.  If a context structure
39077         was _not_ passed in, continue to treat newlines as garbage (this
39078         is the historical behavior).  Formerly base64_decode.
39079         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
39080         takes a decode context structure.
39081         * lib/base64.h (base64_decode): Macro for four-argument calls.
39082         (base64_decode_alloc): Likewise.
39083         * lib/base64.c (base64_decode_ctx): If a decode context structure
39084         was passed in use it to ignore newlines.  If a context structure
39085         was _not_ passed in, continue to treat newlines as garbage (this
39086         is the historical behavior).  Formerly base64_decode.
39087         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
39088         takes a decode context structure.
39089         * lib/base64.h (base64_decode): Macro for four-argument calls.
39090         (base64_decode_alloc): Likewise.
39091
39092 2008-05-19  Jim Meyering  <meyering@redhat.com>
39093
39094         avoid a warning from gcc
39095         * lib/trim.c (IF_LINT): Define.
39096         (trim2): Use it to avoid a "may be used uninitialized" warning.
39097
39098         Fix doc typo.
39099         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
39100
39101 2008-05-19  Bruno Haible  <bruno@clisp.org>
39102
39103         * doc/glibc-functions/getpass.texi: Document limits of other
39104         implementations.
39105
39106 2008-05-19  Simon Josefsson  <simon@josefsson.org>
39107             Bruno Haible <bruno@clisp.org>
39108
39109         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
39110
39111 2008-05-18  Bruno Haible  <bruno@clisp.org>
39112
39113         * modules/propername: New file, from GNU gettext.
39114         * lib/propername.h: New file, from GNU gettext.
39115         * lib/propername.c: New file, from GNU gettext.
39116         * MODULES.html.sh (Internationalization functions): Add propername.
39117
39118 2008-05-16  Jim Meyering  <meyering@redhat.com>
39119             Bruno Haible  <bruno@clisp.org>
39120
39121         Avoid some warnings from "gcc -Wshadow".
39122         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
39123
39124 2008-05-15  Eric Blake  <ebb9@byu.net>
39125
39126         Extend previous patch to cygwin 1.7.0.
39127         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
39128         fast implementation in cygwin >= 1.7.0.
39129         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39130         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39131
39132 2008-05-15  Bruno Haible  <bruno@clisp.org>
39133
39134         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
39135         implementation in glibc >= 2.9.
39136         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39137         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39138
39139 2008-05-15  Bruno Haible  <bruno@clisp.org>
39140
39141         * MODULES.html.sh (Internationalization functions): Remove linebreak.
39142         (Unicode string functions): Add unilbrk/*.
39143         Reported by Karl Berry.
39144
39145 2008-05-15  Eric Blake  <ebb9@byu.net>
39146
39147         Fix violation of <stdbool.h> replacement in regex.
39148         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
39149         * lib/regexec.c (re_search_internal): Likewise.
39150         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
39151
39152 2008-05-15  Jim Meyering  <meyering@redhat.com>
39153
39154         avoid distracting test output when git or cvs is not found
39155         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
39156         * tests/test-vc-list-files-git.sh: Likewise.
39157
39158 2008-05-15  Eric Blake  <ebb9@byu.net>
39159
39160         Glibc finally accepted the memmem speedup code, bugzilla #5514.
39161         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
39162         glibc version.
39163         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
39164         * doc/posix-functions/strstr.texi (strstr): Likewise.
39165         * lib/str-two-way.h (MAX): Sychronize with glibc.
39166
39167 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
39168
39169         * lib/regcomp.c (optimize_utf8): Add a note on why we test
39170         opr.ctx_type.
39171         (calc_first): Initialize constraint field.
39172         (duplicate_node_closure): Use it instead of special casing ANCHORS.
39173         Fix grammar.
39174         (duplicate_node): Merge constraint field for all node types.
39175         (calc_eclosure_iter): Look at constraint field for all node types.
39176         * lib/regex_internal.c (create_cd_newstate): Don't look at
39177         opr.ctx_type.
39178
39179 2008-05-14  Bruno Haible  <bruno@clisp.org>
39180
39181         Help GCC to do better code generation.
39182         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
39183         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
39184         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
39185         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
39186         Declare with attribute 'malloc' if supported.
39187
39188 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
39189
39190         use "echo STR|wc -c" rather than unportable "expr length STR"
39191         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
39192         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
39193
39194 2008-05-14  Jim Meyering  <meyering@redhat.com>
39195
39196         use dd ibs=$n count=1 ... rather than less-portable head -c$n
39197         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
39198         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
39199         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
39200         via Collin Lasse.
39201
39202 2008-05-14  Eric Blake  <ebb9@byu.net>
39203
39204         Avoid quadratic growth in gl_LIBSOURCES.
39205         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
39206         Suggested by Bruno Haible.
39207
39208         Test xmemdup0.
39209         * modules/xmemdup0-tests: New file.
39210         * tests/test-xmemdup0.c: Likewise.
39211
39212 2008-05-13  Eric Blake  <ebb9@byu.net>
39213
39214         Split xmemdup0 into its own module.
39215         * modules/xmemdup0: New file.
39216         * lib/xmemdup0.h: Likewise.
39217         * lib/xmemdup0.c: Likewise.
39218         * MODULES.html.sh (Memory management functions): Add xmemdup0.
39219         * lib/xalloc.h (xmemdup0): Remove.
39220         * lib/xmalloc.c (xmemdup0): Likewise.
39221
39222 2008-05-13  Eric Blake  <ebb9@byu.net>
39223             Bruno Haible  <bruno@clisp.org>
39224
39225         Reduce number of forks required during autoconf.
39226         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
39227         and gl_LIBSOURCES_DIR.
39228         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
39229         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
39230         m4_syscmd per file.
39231         <m4_foreach_w>: Move...
39232         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
39233
39234 2008-05-13  Eric Blake  <ebb9@byu.net>
39235
39236         * gnulib-tool: Fix various comment typos.
39237
39238 2008-05-12  Bruno Haible  <bruno@clisp.org>
39239
39240         Tailor the linebreaking algorithm.
39241         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
39242
39243 2008-05-12  Bruno Haible  <bruno@clisp.org>
39244
39245         Update to Unicode 5.0.0.
39246         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
39247         LBP_JV, LBP_JT. Redistribute values.
39248         (unilbrk_table): Change size.
39249         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
39250         Unicode TR#14 rev. 22.
39251         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
39252         LBP_JV, LBP_JT. Redistribute values.
39253         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
39254         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
39255         Update.
39256         * lib/unilbrk/lbrkprop1.h: Regenerated.
39257         * lib/unilbrk/lbrkprop2.h: Regenerated.
39258         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
39259         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
39260         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
39261         Likewise.
39262         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
39263         Likewise.
39264         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
39265         result.
39266         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
39267         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
39268         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
39269         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
39270         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
39271         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
39272
39273 2008-05-11  Bruno Haible  <bruno@clisp.org>
39274
39275         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
39276
39277 2008-05-11  Bruno Haible  <bruno@clisp.org>
39278
39279         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
39280         * modules/unilbrk/gen-lbrk: New file.
39281
39282 2008-05-11  Bruno Haible  <bruno@clisp.org>
39283
39284         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
39285         * m4/sha512.m4 (gl_SHA512): Likewise.
39286
39287 2008-05-11  Jim Meyering  <meyering@redhat.com>
39288
39289         New modules: crypto/sha256, crypto/sha512 (from coreutils)
39290         * modules/crypto/sha256: New file.
39291         * modules/crypto/sha512: Likewise.
39292         * lib/sha256.c: Likewise.
39293         * lib/sha256.h: Likewise.
39294         * lib/sha512.c: Likewise.
39295         * lib/sha512.h: Likewise.
39296         * lib/u64.h: Likewise.
39297         * m4/sha256.m4: Likewise.
39298         * m4/sha512.m4: Likewise.
39299         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
39300
39301 2008-05-10  Bruno Haible  <bruno@clisp.org>
39302
39303         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
39304         (Input/Output <stdio.h>): Add xprintf.
39305         (Signal handling <signal.h>): Add strsignal.
39306         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
39307         (Core language properties): Add func.
39308         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
39309         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
39310         strings.
39311         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
39312         (Input/output): New section.
39313         (File system functions): Add openat-die, stat-macros.
39314         (Networking functions): Add sockets.
39315         (Unicode string functions): Add unictype/*.
39316         (Support for building libraries and executables): Add gperf.
39317         (Support for building documentation): Add agpl-3.0.
39318         (Misc): Add nocrash.
39319
39320 2008-05-10  Bruno Haible  <bruno@clisp.org>
39321
39322         * modules/unictype/gen-ctype: New file.
39323
39324 2008-05-10  Jim Meyering  <meyering@redhat.com>
39325
39326         Make chdir-safer.c more efficient on a system with no symlinks.
39327         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
39328         also if ELOOP is zero.  Suggested by Bruno Haible.
39329
39330         Make chdir-safer.c slightly safer.
39331         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
39332         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
39333
39334         Avoid compile failure on systems without ELOOP (like mingw).
39335         * lib/chdir-safer.c (ELOOP): Define if not already defined.
39336         Reported by Bruno Haible.
39337
39338 2008-05-10  Bruno Haible  <bruno@clisp.org>
39339
39340         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
39341         (is_utf8_encoding): Use a case-insensitive comparison.
39342         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
39343         streq.
39344
39345 2008-05-10  Bruno Haible  <bruno@clisp.org>
39346
39347         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
39348         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
39349         * lib/unilbrk/ulc-common.h (iconv_string_length,
39350         iconv_string_keeping_offsets): Remove declarations.
39351         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
39352         Don't include <iconv.h>, streq.h, xsize.h.
39353         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
39354         conversion.
39355         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
39356         <iconv.h>, streq.h, xsize.h.
39357         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
39358         conversion.
39359         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
39360         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
39361         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
39362         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
39363
39364 2008-05-10  Bruno Haible  <bruno@clisp.org>
39365
39366         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
39367         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
39368
39369         * modules/unilbrk/u32-width-linebreaks-tests: New file.
39370         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
39371
39372         * modules/unilbrk/u16-width-linebreaks-tests: New file.
39373         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
39374
39375         * modules/unilbrk/u8-width-linebreaks-tests: New file.
39376         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
39377
39378         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
39379         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
39380
39381         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
39382         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
39383
39384         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
39385         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
39386
39387         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
39388         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
39389
39390 2008-05-10  Bruno Haible  <bruno@clisp.org>
39391
39392         Split up 'linebreak' module.
39393         * lib/unilbrk.h: New file, based on lib/linebreak.h.
39394         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
39395         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
39396         modifications.
39397         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
39398         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
39399         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
39400         lib/linebreak.c.
39401         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
39402         lib/linebreak.c.
39403         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
39404         lib/linebreak.c.
39405         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
39406         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
39407         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
39408         lib/linebreak.c.
39409         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
39410         lib/linebreak.c.
39411         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
39412         lib/linebreak.c.
39413         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
39414         lib/linebreak.c.
39415         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
39416         lib/linebreak.c.
39417         * modules/unilbrk/base: New file.
39418         * modules/unilbrk/tables: New file.
39419         * modules/unilbrk/u8-possible-linebreaks: New file.
39420         * modules/unilbrk/u16-possible-linebreaks: New file.
39421         * modules/unilbrk/u32-possible-linebreaks: New file.
39422         * modules/unilbrk/ulc-common: New file.
39423         * modules/unilbrk/ulc-possible-linebreaks: New file.
39424         * modules/unilbrk/u8-width-linebreaks: New file.
39425         * modules/unilbrk/u16-width-linebreaks: New file.
39426         * modules/unilbrk/u32-width-linebreaks: New file.
39427         * modules/unilbrk/ulc-width-linebreaks: New file.
39428         * lib/linebreak.h: Remove file.
39429         * lib/linebreak.c: Remove file.
39430         * m4/linebreak.m4: Remove file.
39431         * modules/linebreak: Remove file.
39432         * NEWS: Mention the changes.
39433
39434 2008-05-09  Eric Blake  <ebb9@byu.net>
39435
39436         Add xmemdup0.
39437         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
39438         implementation.
39439         * lib/xmalloc.c (xmemdup0): New C implementation.
39440
39441 2008-05-08  Bruno Haible  <bruno@clisp.org>
39442
39443         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
39444
39445 2008-05-07  Eric Blake  <ebb9@byu.net>
39446
39447         Support cross-compilation of <wctype.h>.
39448         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
39449         AC_CACHE_CHECK.
39450
39451 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
39452
39453         * build-aux/vc-list-files: Add support for bzr.
39454
39455 2008-05-03  Jim Meyering  <meyering@redhat.com>
39456
39457         avoid failed assertion with tight malloc
39458         * tests/test-getndelim2.c: Correct an off-by-one assertion.
39459
39460 2008-05-03  Simon Josefsson  <simon@josefsson.org>
39461
39462         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
39463         are needed from arpa/inet.h.
39464         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
39465         Reported by Bruno Haible.
39466
39467 2008-05-02  Jim Meyering  <meyering@redhat.com>
39468
39469         avoid compilation error on FreeBSD 6
39470         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
39471
39472 2008-05-01  Jim Meyering  <meyering@redhat.com>
39473
39474         useless-if-before-free: correct --help's exit status description
39475         * build-aux/useless-if-before-free (usage): Like grep, exit 0
39476         for one or more matches, etc.  Reported by Bruno Haible.
39477
39478         vc-list-files: make the stand-alone gnulib test work
39479         * modules/vc-list-files-tests (configure.ac):
39480         Define and AC_SUBST abs_aux_dir.
39481         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
39482         $(abs_top_srcdir) to each script and having each of them
39483         duplicate the work of setting PATH, set PATH here, using
39484         the new variable, abs_aux_dir instead.
39485         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
39486         * tests/test-vc-list-files-git.sh: Likewise.
39487         Reported by Bruno Haible.
39488
39489 2008-05-01  Bruno Haible  <bruno@clisp.org>
39490
39491         * lib/getndelim2.c (getndelim2): Fix newsize computation during
39492         reallocation. Rename 'done' to 'found_delimiter'.
39493
39494 2008-05-01  Jim Meyering  <meyering@redhat.com>
39495
39496         vc-list-files: accommodate /bin/sh like the one from Solaris 10
39497         * build-aux/vc-list-files: Use `...`, not $(...).
39498
39499 2008-04-30  Jim Meyering  <meyering@redhat.com>
39500
39501         add tests for vc-list-files
39502         * modules/vc-list-files-tests: New module.
39503         * tests/test-vc-list-files-cvs.sh: New file.
39504         * tests/test-vc-list-files-git.sh: New file.
39505
39506         avoid a warning from gcc
39507         * lib/getndelim2.c (IF_LINT): Define.
39508         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
39509
39510         vc-list-files: work properly with build-aux/cvsu, too
39511         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
39512         to all cvs-based clauses.
39513
39514         vc-list-files: work properly in the CVS+awk case, too
39515         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
39516
39517         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
39518         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
39519         take more than one file argument, so .  Add quotes, just in case $dir
39520         ever contains a shell meta-character.  Prompted by Soren Hansen in
39521         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
39522
39523 2008-04-29  Eric Blake  <ebb9@byu.net>
39524
39525         Optimize getndelim2 to use block operations when possible.
39526         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
39527         freadseek, and memchr2.
39528         * lib/getndelim2.c (getndelim2): Use them for block reads.
39529
39530 2008-04-29  Bruno Haible  <bruno@clisp.org>
39531
39532         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
39533         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39534         * modules/inet_ntop (Depends-on): Add extensions.
39535         * modules/inet_pton (Depends-on): Likewise.
39536         Reported by Simon Josefsson.
39537
39538 2008-04-29  Jim Meyering  <meyering@redhat.com>
39539
39540         When the is more than one match in a block, match all of them.
39541         * build-aux/useless-if-before-free: Iterate through each block
39542         until there are no more matches.
39543
39544         Fix broken useless-if-before-free script.
39545         * build-aux/useless-if-before-free: Fix typo: missing "?" after
39546         the expression to match cast of argument to free-like function.
39547
39548 2008-04-29  Eric Blake  <ebb9@byu.net>
39549
39550         Use new header.
39551         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
39552
39553 2008-04-29  Jim Meyering  <meyering@redhat.com>
39554
39555         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
39556         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
39557         by gnulib to exist and to declare e.g., inet_ntop.
39558         Don't include "inet_ntop.h", now removed.
39559
39560         * m4/arpa_inet_h.m4: Remove trailing blanks.
39561
39562 2008-04-29  Eric Blake  <ebb9@byu.net>
39563
39564         Silence valgrind on safe reads beyond potential array bounds.
39565         * lib/rawmemchr.valgrind: New file.
39566         * lib/strchrnul.valgrind: Likewise.
39567         * modules/rawmemchr (Files): Distribute new file.
39568         * modules/strchrnul (Files): Likewise.
39569         Suggested by Bruno Haible.
39570
39571 2008-04-29  Bruno Haible  <bruno@clisp.org>
39572
39573         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
39574         (inet_ntop, inet_pton): Change portability warning's wording.
39575         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
39576         Invoke gl_CHECK_NEXT_HEADERS.
39577         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
39578         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
39579         set ARPA_INET_H.
39580         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39581         * modules/arpa_inet (Description): No longer only for systems that
39582         lack it.
39583         (Depends-on): Add include_next.
39584         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
39585         HAVE_ARPA_INET_H.
39586
39587 2008-04-29  Jim Meyering  <meyering@redhat.com>
39588
39589         * modules/mkdir (License): Re-license as LGPLv2+.
39590
39591 2008-04-29  Bruno Haible  <bruno@clisp.org>
39592
39593         * modules/rawmemchr (Maintainer): Set to Eric.
39594         * modules/strchrnul (Maintainer): Likewise.
39595
39596 2008-04-29  Simon Josefsson  <simon@josefsson.org>
39597
39598         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
39599         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
39600
39601         * modules/arpa_inet (arpa/inet.h): Use them.
39602
39603 2008-04-28  Eric Blake  <ebb9@byu.net>
39604
39605         Test getndelim2.
39606         * modules/getndelim2-tests: New file.
39607         * tests/test-getndelim2.c: Likewise.
39608         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
39609         stream.
39610         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
39611
39612         * MODULES.html.sh: Document new module.
39613
39614 2008-04-20  Bruno Haible  <bruno@clisp.org>
39615
39616         * lib/c-stack.c (die): Use raise.
39617         * modules/c-stack (Depends-on): Add raise.
39618
39619 2008-04-28  Bruno Haible  <bruno@clisp.org>
39620
39621         Expect rpmatch to be declared.
39622         * lib/yesno.c (rpmatch): Remove declaration.
39623
39624         Declare rpmatch.
39625         * lib/stdlib.in.h (rpmatch): New declaration.
39626         * lib/rpmatch.c: Include <stdlib.h> first.
39627         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
39628         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
39629         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
39630         HAVE_RPMATCH.
39631         * modules/rpmatch (Depends-on): Add stdlib, extensions.
39632         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39633         (Include): Set to <stdlib.h>.
39634         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
39635         HAVE_RPMATCH.
39636         * NEWS: Document the change.
39637
39638 2008-04-28  Bruno Haible  <bruno@clisp.org>
39639
39640         Change rpmatch to use nl_langinfo when appropriate.
39641         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
39642         (N_): New macro.
39643         (localized_pattern): New function/macro.
39644         (try): Remove match, nomatch arguments. Copy the pattern into safe
39645         memory before caching it.
39646         (rpmatch): Use localized_pattern. Add translator comments.
39647         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
39648         Suggested by Eric Blake.
39649         * modules/rpmatch (Depends-on): Add stdbool.
39650
39651 2008-04-28  Eric Blake  <ebb9@byu.net>
39652
39653         Add rawmemchr module, matching glibc.
39654         * modules/string (Makefile.am): New indicator.
39655         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
39656         * lib/string.in.h (rawmemchr): Declare when appropriate.
39657         * modules/rawmemchr: New file.
39658         * m4/rawmemchr.m4: Likewise.
39659         * lib/rawmemchr.c: Likewise.
39660         * modules/rawmemchr-tests: Likewise.
39661         * tests/test-rawmemchr.c: Likewise.
39662         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
39663         module.
39664         * modules/strchrnul (Depends-on): Add rawmemchr.
39665         * lib/strchrnul.c (strchrnul): Optimize a corner case.
39666
39667         Whitespace cleanup.
39668         * tests/test-strchrnul.c: Reindent.
39669         * lib/strchrnul.c: Likewise.
39670
39671         Optimize and test strchrnul.
39672         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
39673         * modules/strchrnul-tests: New file.
39674         * tests/test-strchrnul.c: Likewise.
39675
39676         Remove intprops dependency.
39677         * modules/memchr (Depends-on): Remove intprops.
39678         * modules/memrchr (Depends-on): Likewise.
39679         * modules/memchr2 (Depends-on): Likewise.
39680         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
39681         * lib/memrchr.c (__memrchr): Likewise.
39682         * lib/memrchr2.c (memchr2): Likewise.
39683         Reported by Simon Josefsson.
39684
39685 2008-04-28  Simon Josefsson  <simon@josefsson.org>
39686
39687         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
39688         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39689
39690 2008-04-28  Simon Josefsson  <simon@josefsson.org>
39691
39692         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
39693
39694         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
39695
39696         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
39697
39698         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
39699         declarations.
39700         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
39701
39702         * m4/inet_pton.m4: Don't check for header files.
39703
39704         * m4/inet_ntop.m4: Don't check for header files.
39705
39706 2008-04-28  Simon Josefsson  <simon@josefsson.org>
39707
39708         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
39709         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
39710         trigger for cygwin).
39711         Reported by Bruno Haible  <bruno@clisp.org>.
39712
39713 2008-04-28  Bruno Haible  <bruno@clisp.org>
39714
39715         * doc/posix-functions/strdup.texi: Mention mingw problem.
39716
39717 2008-04-27  Bruno Haible  <bruno@clisp.org>
39718
39719         * modules/stat-time-tests (Depends-on): Add sleep.
39720         * tests/test-stat-time.c (force_unlink): New function.
39721         (cleanup): Use it.
39722         (test_mtime): Remove the ctime related tests.
39723         (test_ctime): New function, containing the ctime related tests.
39724         (main): Call test_ctime, except on native Windows platforms.
39725
39726 2008-04-27  Bruno Haible  <bruno@clisp.org>
39727
39728         * lib/rpmatch.c (rpmatch): Add some comments.
39729         Reported by James Youngman <jay@gnu.org>.
39730
39731 2008-04-27  Bruno Haible  <bruno@clisp.org>
39732
39733         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
39734         quiet NaNs.
39735
39736 2008-04-27  Bruno Haible  <bruno@clisp.org>
39737
39738         Make test-yesno.sh work on mingw.
39739         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
39740         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
39741         (main): Set stdin to binary mode.
39742         * modules/yesno-tests (Depends-on): Add binary-io.
39743
39744 2008-04-27  Bruno Haible  <bruno@clisp.org>
39745
39746         Fix 'isfinite' on x86, x86_64, ia64 platforms.
39747         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
39748         argument that lie outside the IEEE 854 domain.
39749         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
39750         (gl_ISFINITE): Use it.
39751         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
39752
39753 2008-04-27  Bruno Haible  <bruno@clisp.org>
39754
39755         Allow local renaming in config.h.
39756         * lib/memrchr.c (memrchr): Don't undefine outside libc.
39757
39758 2008-04-27  Bruno Haible  <bruno@clisp.org>
39759
39760         * lib/memchr.c (__memchr): Change type of 'i'.
39761         * lib/memchr2.c (memchr2): Likewise.
39762
39763 2008-04-26  Eric Blake  <ebb9@byu.net>
39764         and Bruno Haible  <bruno@clisp.org>
39765
39766         Optimize and test memrchr.
39767         * modules/memrchr (Depends-on): Add intprops.
39768         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
39769         * modules/memrchr-tests: New file.
39770         * tests/test-memrchr.c: New file.
39771
39772 2008-04-26  Bruno Haible  <bruno@clisp.org>
39773
39774         Add tentative support for DragonFly BSD.
39775         * lib/stdio-impl.h: Add macros for DragonFly BSD.
39776         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
39777         fp.
39778         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
39779         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
39780         * lib/fpurge.c (fpurge): Likewise.
39781         * lib/freadable.c (freaadable): Likewise.
39782         * lib/freadahead.c (freadahead): Likewise.
39783         * lib/freading.c (freading): Likewise.
39784         * lib/freadptr.c (freadptr): Likewise.
39785         * lib/freadseek.c (freadptrinc): Likewise.
39786         * lib/fseeko.c (fseeko): Likewise.
39787         * lib/fseterr.c (fseterr): Likewise.
39788         * lib/fwritable.c (fwritable): Likewise.
39789         * lib/fwriting.c (fwriting): Likewise.
39790
39791 2008-04-26  Bruno Haible  <bruno@clisp.org>
39792
39793         * lib/stdio-impl.h: New file.
39794         * lib/fbufmode.c: Include stdio-impl.h.
39795         (fbufmode): Use fp_, remove redundant #defines.
39796         * lib/fflush.c: Include stdio-impl.h.
39797         (clear_ungetc_buffer): Remove redundant #defines.
39798         * lib/fpurge.c: Include stdio-impl.h.
39799         (fpurge): Remove redundant #defines.
39800         * lib/freadable.c: Include stdio-impl.h.
39801         (freadable): Remove redundant #defines.
39802         * lib/freadahead.c: Include stdio-impl.h.
39803         (freadahead): Remove redundant #defines.
39804         * lib/freading.c: Include stdio-impl.h.
39805         (freading): Remove redundant #defines.
39806         * lib/freadptr.c: Include stdio-impl.h.
39807         (freadptr): Remove redundant #defines.
39808         * lib/freadseek.c: Include stdio-impl.h.
39809         (freadptrinc): Remove redundant #defines.
39810         * lib/fseeko.c: Include stdio-impl.h.
39811         (rpl_fseeko): Remove redundant #defines.
39812         * lib/fseterr.c: Include stdio-impl.h.
39813         (fseterr): Remove redundant #defines.
39814         * lib/fwritable.c: Include stdio-impl.h.
39815         (fwritable: Remove redundant #defines.
39816         * lib/fwriting.c: Include stdio-impl.h.
39817         (fwriting): Remove redundant #defines.
39818         * modules/fbufmode (Files): Add lib/stdio-impl.h.
39819         * modules/fflush (Files): Likewise.
39820         * modules/fpurge (Files): Likewise.
39821         * modules/freadable (Files): Likewise.
39822         * modules/freadahead (Files): Likewise.
39823         * modules/freading (Files): Likewise.
39824         * modules/freadptr (Files): Likewise.
39825         * modules/freadseek (Files): Likewise.
39826         * modules/fseeko (Files): Likewise.
39827         * modules/fseterr (Files): Likewise.
39828         * modules/fwritable (Files): Likewise.
39829         * modules/fwriting (Files): Likewise.
39830
39831 2008-04-26  Bruno Haible  <bruno@clisp.org>
39832
39833         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
39834         restore_seek_optimization, update_fpos_cache): New functions, extracted
39835         from rpl_fflush.
39836         (rpl_fflush): Use them.
39837         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
39838         (gl_REPLACE_FFLUSH): Use it.
39839
39840 2008-04-26  Bruno Haible  <bruno@clisp.org>
39841
39842         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
39843         on Solaris.
39844         * tests/test-xstrtoimax.sh: Likewise.
39845         * tests/test-xstrtoumax.sh: Likewise.
39846         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39847
39848 2008-04-26  Bruno Haible  <bruno@clisp.org>
39849
39850         * modules/memchr-tests: New file.
39851         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
39852
39853 2008-04-26  Eric Blake  <ebb9@byu.net>
39854             Bruno Haible  <bruno@clisp.org>
39855
39856         * lib/memchr.c: Include intprops.h.
39857         (__memchr): Optimize parallel detection of matching bytes. Rename local
39858         variables. Add explanatory comments.
39859
39860 2008-04-26  Bruno Haible  <bruno@clisp.org>
39861
39862         Fix module 'memchr', broken since 2000-10-28.
39863         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
39864
39865 2008-04-26  Bruno Haible  <bruno@clisp.org>
39866
39867         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
39868         comments.
39869
39870 2008-04-25  Eric Blake  <ebb9@byu.net>
39871
39872         Use native fstatat on cygwin 1.7.0.
39873         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
39874         first.
39875
39876 2008-04-23  Eric Blake  <ebb9@byu.net>
39877
39878         Improve memchr2 performance.
39879         * lib/memchr2.c (memchr2): Further optimize parallel detection of
39880         NUL bytes.
39881         * modules/memchr2 (Depends-on): Use intprops.h.
39882
39883 2008-04-23  Simon Josefsson  <simon@josefsson.org>
39884
39885         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
39886         an inline function instead of a CPP macro.  Patch by Ben Pfaff
39887         <blp@cs.stanford.edu>.
39888
39889 2008-04-23  Simon Josefsson  <simon@josefsson.org>
39890
39891         * lib/arpa_inet.in.h: New file.
39892
39893         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
39894         (Makefile.am): Sed in substitute header file.
39895
39896         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
39897         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
39898
39899         * modules/inet_ntop (configure.ac): Use
39900         gl_ARPA_INET_MODULE_INDICATOR.
39901
39902         * modules/inet_pton (configure.ac): Use
39903         gl_ARPA_INET_MODULE_INDICATOR.
39904
39905 2008-04-22  Jim Meyering  <meyering@redhat.com>
39906
39907         * modules/verify (License): Re-license as LGPLv2+.
39908
39909 2008-04-22  Simon Josefsson  <simon@josefsson.org>
39910
39911         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
39912         parameter to void* as per POSIX standard (MinGW uses char*).
39913
39914 2008-04-21  Bruno Haible  <bruno@clisp.org>
39915
39916         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
39917         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
39918         Define to replacements if REPLACE_ISWCNTRL is 1.
39919         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
39920         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
39921         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
39922         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
39923         what it fixes.
39924         * doc/posix-functions/iswalpha.texi: Likewise.
39925         * doc/posix-functions/iswblank.texi: Likewise.
39926         * doc/posix-functions/iswcntrl.texi: Likewise.
39927         * doc/posix-functions/iswdigit.texi: Likewise.
39928         * doc/posix-functions/iswgraph.texi: Likewise.
39929         * doc/posix-functions/iswlower.texi: Likewise.
39930         * doc/posix-functions/iswprint.texi: Likewise.
39931         * doc/posix-functions/iswpunct.texi: Likewise.
39932         * doc/posix-functions/iswspace.texi: Likewise.
39933         * doc/posix-functions/iswupper.texi: Likewise.
39934         * doc/posix-functions/iswxdigit.texi: Likewise.
39935         Reported by Alain Guibert.
39936
39937 2008-04-21  Bruno Haible  <bruno@clisp.org>
39938
39939         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
39940         Patch by Alain Guibert.
39941
39942 2008-04-21  Bruno Haible  <bruno@clisp.org>
39943
39944         Fix test failures on mingw.
39945         * tests/test-xstrtol.c (print_no_progname): New function.
39946         (main): Install it in error_print_progname hook.
39947         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
39948         * tests/test-xstrtoimax.sh: Likewise.
39949         * tests/test-xstrtoumax.sh: Likewise.
39950
39951 2008-04-21  Bruno Haible  <bruno@clisp.org>
39952
39953         Fix test failure on mingw.
39954         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
39955
39956 2008-04-21  Bruno Haible  <bruno@clisp.org>
39957
39958         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
39959         Actually assign a value.
39960
39961 2008-04-20  Bruno Haible  <bruno@clisp.org>
39962
39963         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
39964         take 2.
39965         * lib/canonicalize.c (canonicalize_file_name): Elide if the
39966         'canonicalize-lgpl' module is also used.
39967         * lib/canonicalize-lgpl.c: Undo last change.
39968         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
39969
39970 2008-04-20  Bruno Haible  <bruno@clisp.org>
39971
39972         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
39973         config.h. Provide _mkdir based fallback for mingw.
39974         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
39975         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
39976         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
39977         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
39978         rather than defining mkdir in config.h.
39979         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
39980         (gl_SYS_STAT_H_DEFAULTS): New macro.
39981         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
39982         HAVE_IO_H any more.
39983         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
39984         HAVE_DECL_MKDIR and HAVE_IO_H.
39985
39986 2008-04-20  Bruno Haible  <bruno@clisp.org>
39987
39988         * lib/isapipe.c: Port to native Windows platforms.
39989
39990 2008-04-20  Bruno Haible  <bruno@clisp.org>
39991
39992         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
39993
39994 2008-04-21  Eric Blake  <ebb9@byu.net>
39995
39996         Work around preprocessors that don't handle UINTMAX_MAX.
39997         * lib/memchr2.c (memchr2): Avoid embedded #if.
39998         Reported by Alain Guibert, fix suggested by Bruno Haible.
39999
40000 2008-04-21  Simon Josefsson  <simon@josefsson.org>
40001
40002         * doc/posix-functions/strftime.texi (strftime): Explain better
40003         Windows incompatibility.  Suggested by Micah Cowan
40004         <micah@cowan.name>.
40005
40006 2008-04-20  Bruno Haible  <bruno@clisp.org>
40007
40008         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
40009         unistr/u8-mblen.
40010
40011 2008-04-20  Bruno Haible  <bruno@clisp.org>
40012
40013         Fix test failure on platforms with non-GNU iconv.
40014         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
40015         (U_TO_U8): Use it, rather than u16_to_u8.
40016         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
40017         units at the end of the input string.
40018         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
40019
40020 2008-04-20  Bruno Haible  <bruno@clisp.org>
40021
40022         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
40023         when the resulting length is 0.
40024         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
40025
40026 2008-04-20  Bruno Haible  <bruno@clisp.org>
40027
40028         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
40029         works.
40030         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
40031
40032 2008-04-20  Bruno Haible  <bruno@clisp.org>
40033
40034         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
40035         * modules/tsearch-tests (configure.ac): Test for initstate function.
40036
40037 2008-04-20  Bruno Haible  <bruno@clisp.org>
40038
40039         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
40040         for nlink_t if missing.
40041         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
40042
40043 2008-04-19  Bruno Haible  <bruno@clisp.org>
40044
40045         Work around snprintf bug on Linux libc5.
40046         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
40047         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40048         gl_SNPRINTF_SIZE1.
40049         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40050         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
40051         that test failed.
40052         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
40053         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
40054         * modules/snprintf (Files): Add m4/printf.m4.
40055         * modules/vsnprintf (Files): Likewise.
40056         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
40057         * doc/posix-functions/vsnprintf.texi: Likewise.
40058
40059 2008-04-19  Bruno Haible  <bruno@clisp.org>
40060
40061         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
40062         from 0.0058 to less than 10^-7.
40063
40064 2008-04-19  Bruno Haible  <bruno@clisp.org>
40065
40066         Fix rounding when a precision is given.
40067         * lib/vasnprintf.c (is_borderline): New function.
40068         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
40069         9...9x.
40070         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
40071         %e, %g.
40072         * tests/test-vasprintf-posix.c (test_function): Likewise.
40073         * tests/test-snprintf-posix.h (test_function): Likewise.
40074         * tests/test-sprintf-posix.h (test_function): Likewise.
40075         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
40076         * tests/test-printf-posix.h (test_function): Likewise.
40077         * tests/test-printf-posix.output: Update.
40078         Reported by John Darrington <john@darrington.wattle.id.au> via
40079         Ben Pfaff <blp@cs.stanford.edu>.
40080
40081 2008-04-18  Simon Josefsson  <simon@josefsson.org>
40082
40083         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
40084         Suggested by Bruno Haible <bruno@clisp.org>.
40085
40086 2008-04-17  Bruno Haible  <bruno@clisp.org>
40087
40088         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
40089         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
40090         implementation.
40091         Patch by Bruce Merry <bmerry@gmail.com>.
40092
40093 2008-04-17  Simon Josefsson  <simon@josefsson.org>
40094
40095         * doc/posix-functions/strftime.texi (strftime): Mention that %e
40096         doesn't work under Windows.
40097
40098 2008-04-16  Bruno Haible  <bruno@clisp.org>
40099
40100         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
40101         New macros.
40102         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
40103         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
40104         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
40105         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
40106         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
40107         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
40108         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
40109         macros.
40110         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
40111         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
40112         Northern Sotho, Uighur.
40113
40114 2008-04-16  Bruno Haible  <bruno@clisp.org>
40115
40116         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
40117         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
40118         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
40119         Reported by Daniel Bergström <daniel@octocode.com>.
40120
40121 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
40122             Bruno Haible  <bruno@clisp.org>
40123
40124         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
40125         function.
40126         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
40127         New functions, mostly extracted from gl_locale_name_default.
40128         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
40129
40130 2008-04-16  Eric Blake  <ebb9@byu.net>
40131
40132         Adjust strtod detection to catch glibc 2.7 bug.
40133         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
40134         Reported by John Gatewood Ham.
40135
40136 2008-04-16  Bruno Haible  <bruno@clisp.org>
40137
40138         Add tentative support for Linux libc5.
40139         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
40140         * lib/fpurge.c (fpurge): Likewise.
40141         * lib/freadable.c (freadable): Likewise.
40142         * lib/freadahead.c (freadahead): Likewise.
40143         * lib/freading.c (freading): Likewise.
40144         * lib/freadptr.c (freadptr): Likewise.
40145         * lib/freadseek.c (freadptrinc): Likewise.
40146         * lib/fseeko.c (rpl_fseeko): Likewise.
40147         * lib/fseterr.c (fseterr): Likewise.
40148         * lib/fwritable.c (fwritable): Likewise.
40149         * lib/fwriting.c (fwriting): Likewise.
40150         Reported by Alain Guibert <alguibert+bts@free.fr>.
40151
40152 2008-04-15  Bruno Haible  <bruno@clisp.org>
40153
40154         * modules/mathl (configure.ac): Define module indicator.
40155
40156 2008-04-15  Bruno Haible  <bruno@clisp.org>
40157
40158         * lib/logl.c (logl): Remove unused variables.
40159
40160 2008-04-15  Bruno Haible  <bruno@clisp.org>
40161
40162         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
40163         fails.
40164
40165 2008-04-15  Bruno Haible  <bruno@clisp.org>
40166
40167         * lib/trim.c (trim2): Fix argument of isspace() macro.
40168
40169 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
40170
40171         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
40172         to 0.
40173         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
40174
40175 2008-04-14  Bruno Haible  <bruno@clisp.org>
40176
40177         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
40178         AC_LANG_PROGRAM argument.
40179         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
40180         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
40181         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40182         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40183         * m4/math_h.m4 (gl_MATH_H): Likewise.
40184         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
40185         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
40186         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
40187         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
40188         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
40189         * m4/regex.m4 (gl_REGEX): Likewise.
40190         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
40191         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
40192         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40193         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
40194         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
40195         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40196         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40197         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
40198
40199 2008-04-14  Jim Meyering  <meyering@redhat.com>
40200
40201         test-strtod: fix typos: s/abs/fabs/
40202         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
40203
40204 2008-04-13  Bruno Haible  <bruno@clisp.org>
40205
40206         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
40207         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
40208         module is also used and while not building the reloc-wrapper.
40209
40210 2008-04-13  Bruno Haible  <bruno@clisp.org>
40211
40212         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
40213
40214 2008-04-13  Bruno Haible  <bruno@clisp.org>
40215
40216         Fix AIX compilation failure introduced on 2008-04-02.
40217         * tests/test-frexp.c (exp): Undefine before redefining.
40218         * tests/test-frexpl.c (exp): Likewise.
40219
40220 2008-04-13  Bruno Haible  <bruno@clisp.org>
40221
40222         Work around a HP-UX stdio bug.
40223         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
40224         * tests/test-ftello.c (main): Likewise.
40225         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
40226         * doc/posix-functions/ftello.texi: Likewise.
40227
40228 2008-04-13  Bruno Haible  <bruno@clisp.org>
40229
40230         Make test-signbit pass on HP-UX/hppa.
40231         * tests/test-signbit.c (minus_zerol): New variable.
40232         (test_signbitl): Use it.
40233
40234 2008-04-13  Bruno Haible  <bruno@clisp.org>
40235
40236         Make truncl work on OSF/1 4.0.
40237         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
40238         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
40239         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
40240         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
40241         HAVE_DECL_TRUNCL.
40242         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
40243         HAVE_DECL_TRUNCL.
40244         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
40245
40246 2008-04-13  Bruno Haible  <bruno@clisp.org>
40247
40248         * lib/unictype.h: Remove trailing comma from enumeration definitions.
40249
40250 2008-04-13  Bruno Haible  <bruno@clisp.org>
40251
40252         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
40253         expression, so as to avoid HP-UX 11 cc compiler bug.
40254
40255 2008-04-13  Bruno Haible  <bruno@clisp.org>
40256
40257         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
40258
40259 2008-04-13  Bruno Haible  <bruno@clisp.org>
40260
40261         * lib/git-merge-changelog.c: Remove empty declaration outside of
40262         functions.
40263
40264 2008-04-13  Bruno Haible  <bruno@clisp.org>
40265
40266         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
40267
40268 2008-04-13  Bruno Haible  <bruno@clisp.org>
40269
40270         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
40271         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
40272         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
40273         also if it exists but lacks definitions of the SHUT_* macros.
40274         * modules/sys_socket (Description): Update.
40275         Reported by Elbert Pol <e.pol@chello.nl>.
40276
40277 2008-04-13  Bruno Haible  <bruno@clisp.org>
40278
40279         * lib/localcharset.c (OS2): Don't redefine if already defined.
40280         Reported by Elbert Pol <e.pol@chello.nl>.
40281
40282 2008-04-13  Bruno Haible  <bruno@clisp.org>
40283
40284         * lib/binary-io.h [__EMX__]: Include <io.h>.
40285         Reported by Elbert Pol <e.pol@chello.nl>.
40286
40287 2008-04-12  Bruno Haible  <bruno@clisp.org>
40288
40289         * lib/fpucw.h: Enable the definitions also for x86_64.
40290         Needed for NetBSD/x86_64.
40291         Reported by Thomas Klausner <tk@giga.or.at>.
40292
40293 2008-04-12  Bruno Haible  <bruno@clisp.org>
40294
40295         * tests/test-strtod.c: Include isnand.h.
40296         (main): Use isnand instead of isnan.
40297         Reported by Jim Meyering.
40298
40299 2008-04-12  Bruno Haible  <bruno@clisp.org>
40300
40301         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
40302         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40303
40304 2008-04-12  Jim Meyering  <meyering@redhat.com>
40305
40306         * m4/math_h.m4 (gl_MATH_H): Fix typos.
40307
40308 2008-04-12  Bruno Haible  <bruno@clisp.org>
40309
40310         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
40311         Reported by Elbert Pol <e.pol@chello.nl>.
40312
40313 2008-04-12  Eric Blake  <ebb9@byu.net>
40314
40315         Work around Solaris 10 math.h bug.
40316         * m4/math_h.m4 (gl_MATH_H): Check for bug.
40317         (gl_MATH_H_DEFAULTS): Set up default.
40318         * modules/math (Makefile.am): Replace new indicators.
40319         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
40320         * tests/test-math.c (main): Test this.
40321         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
40322         * doc/posix-headers/math.texi (math.h): Mention bug.
40323         Reported by Nelson H. F. Beebe and Jim Meyering.
40324
40325 2008-04-11  Bruno Haible  <bruno@clisp.org>
40326
40327         Adapt to future versions of Apple GCC.
40328         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
40329         Reported by Peter O'Gorman <peter@pogma.com>.
40330
40331 2008-04-11  Bruno Haible  <bruno@clisp.org>
40332
40333         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
40334
40335 2008-04-11  Bruno Haible  <bruno@clisp.org>
40336
40337         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
40338
40339         * modules/getaddrinfo-tests (Makefile.am): Define
40340         test_getaddrinfo_LDADD.
40341
40342 2008-04-11  Bruno Haible  <bruno@clisp.org>
40343
40344         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
40345         (init): Fix syntax error.
40346         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
40347         is declared.
40348
40349 2008-04-11  Bruno Haible  <bruno@clisp.org>
40350
40351         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
40352         * modules/glob (Depends-on): Add stdbool.
40353
40354 2008-04-11  Bruno Haible  <bruno@clisp.org>
40355
40356         * lib/trim.c: Include <string.h>.
40357
40358 2008-04-11  Eric Blake  <ebb9@byu.net>
40359
40360         Avoid compile failure on OS/2.
40361         * lib/regex_internal.h (internal_function): Disable optimization
40362         on OS/2 (__EMX__), where it caused compiler error.
40363         Reported by Elbert Pol.
40364
40365 2008-04-11  Bruno Haible  <bruno@clisp.org>
40366
40367         Flush the standard error stream before aborting. Needed on mingw.
40368         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
40369         * tests/test-array_list.c (ASSERT): Likewise.
40370         * tests/test-array_oset.c (ASSERT): Likewise.
40371         * tests/test-avltree_list.c (ASSERT): Likewise.
40372         * tests/test-avltree_oset.c (ASSERT): Likewise.
40373         * tests/test-avltreehash_list.c (ASSERT): Likewise.
40374         * tests/test-binary-io.c (ASSERT): Likewise.
40375         * tests/test-byteswap.c (ASSERT): Likewise.
40376         * tests/test-c-ctype.c (ASSERT): Likewise.
40377         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
40378         * tests/test-c-strcasestr.c (ASSERT): Likewise.
40379         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
40380         * tests/test-c-strstr.c (ASSERT): Likewise.
40381         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
40382         * tests/test-canonicalize.c (ASSERT): Likewise.
40383         * tests/test-carray_list.c (ASSERT): Likewise.
40384         * tests/test-ceilf1.c (ASSERT): Likewise.
40385         * tests/test-ceilf2.c (ASSERT): Likewise.
40386         * tests/test-ceill.c (ASSERT): Likewise.
40387         * tests/test-count-one-bits.c (ASSERT): Likewise.
40388         * tests/test-fbufmode.c (ASSERT): Likewise.
40389         * tests/test-fflush2.c (ASSERT): Likewise.
40390         * tests/test-floorf1.c (ASSERT): Likewise.
40391         * tests/test-floorf2.c (ASSERT): Likewise.
40392         * tests/test-floorl.c (ASSERT): Likewise.
40393         * tests/test-fopen.c (ASSERT): Likewise.
40394         * tests/test-fpending.c (ASSERT): Likewise.
40395         * tests/test-fprintf-posix.c (ASSERT): Likewise.
40396         * tests/test-fpurge.c (ASSERT): Likewise.
40397         * tests/test-freadable.c (ASSERT): Likewise.
40398         * tests/test-freadahead.c (ASSERT): Likewise.
40399         * tests/test-freading.c (ASSERT): Likewise.
40400         * tests/test-freadptr.c (ASSERT): Likewise.
40401         * tests/test-freadptr2.c (ASSERT): Likewise.
40402         * tests/test-freadseek.c (ASSERT): Likewise.
40403         * tests/test-freopen.c (ASSERT): Likewise.
40404         * tests/test-frexp.c (ASSERT): Likewise.
40405         * tests/test-frexpl.c (ASSERT): Likewise.
40406         * tests/test-fseek.c (ASSERT): Likewise.
40407         * tests/test-fseeko.c (ASSERT): Likewise.
40408         * tests/test-fstrcmp.c (ASSERT): Likewise.
40409         * tests/test-ftell.c (ASSERT): Likewise.
40410         * tests/test-ftello.c (ASSERT): Likewise.
40411         * tests/test-func.c (ASSERT): Likewise.
40412         * tests/test-fwritable.c (ASSERT): Likewise.
40413         * tests/test-fwriting.c (ASSERT): Likewise.
40414         * tests/test-getdelim.c (ASSERT): Likewise.
40415         * tests/test-getline.c (ASSERT): Likewise.
40416         * tests/test-i-ring.c (ASSERT): Likewise.
40417         * tests/test-iconv-utf.c (ASSERT): Likewise.
40418         * tests/test-iconv.c (ASSERT): Likewise.
40419         * tests/test-isfinite.c (ASSERT): Likewise.
40420         * tests/test-isnand.c (ASSERT): Likewise.
40421         * tests/test-isnanf.c (ASSERT): Likewise.
40422         * tests/test-isnanl.h (ASSERT): Likewise.
40423         * tests/test-ldexpl.c (ASSERT): Likewise.
40424         * tests/test-linked_list.c (ASSERT): Likewise.
40425         * tests/test-linkedhash_list.c (ASSERT): Likewise.
40426         * tests/test-localename.c (ASSERT): Likewise.
40427         * tests/test-lseek.c (ASSERT): Likewise.
40428         * tests/test-mbscasecmp.c (ASSERT): Likewise.
40429         * tests/test-mbscasestr1.c (ASSERT): Likewise.
40430         * tests/test-mbscasestr2.c (ASSERT): Likewise.
40431         * tests/test-mbscasestr3.c (ASSERT): Likewise.
40432         * tests/test-mbscasestr4.c (ASSERT): Likewise.
40433         * tests/test-mbschr.c (ASSERT): Likewise.
40434         * tests/test-mbscspn.c (ASSERT): Likewise.
40435         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
40436         * tests/test-mbspbrk.c (ASSERT): Likewise.
40437         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
40438         * tests/test-mbsrchr.c (ASSERT): Likewise.
40439         * tests/test-mbsspn.c (ASSERT): Likewise.
40440         * tests/test-mbsstr1.c (ASSERT): Likewise.
40441         * tests/test-mbsstr2.c (ASSERT): Likewise.
40442         * tests/test-mbsstr3.c (ASSERT): Likewise.
40443         * tests/test-memchr2.c (ASSERT): Likewise.
40444         * tests/test-memmem.c (ASSERT): Likewise.
40445         * tests/test-open.c (ASSERT): Likewise.
40446         * tests/test-printf-frexp.c (ASSERT): Likewise.
40447         * tests/test-printf-frexpl.c (ASSERT): Likewise.
40448         * tests/test-printf-posix.c (ASSERT): Likewise.
40449         * tests/test-quotearg.c (ASSERT): Likewise.
40450         * tests/test-rbtree_list.c (ASSERT): Likewise.
40451         * tests/test-rbtree_oset.c (ASSERT): Likewise.
40452         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
40453         * tests/test-round1.c (ASSERT): Likewise.
40454         * tests/test-roundf1.c (ASSERT): Likewise.
40455         * tests/test-roundl.c (ASSERT): Likewise.
40456         * tests/test-signbit.c (ASSERT): Likewise.
40457         * tests/test-sleep.c (ASSERT): Likewise.
40458         * tests/test-snprintf-posix.c (ASSERT): Likewise.
40459         * tests/test-snprintf.c (ASSERT): Likewise.
40460         * tests/test-sprintf-posix.c (ASSERT): Likewise.
40461         * tests/test-stat-time.c (ASSERT): Likewise.
40462         * tests/test-strcasestr.c (ASSERT): Likewise.
40463         * tests/test-strerror.c (ASSERT): Likewise.
40464         * tests/test-striconv.c (ASSERT): Likewise.
40465         * tests/test-striconveh.c (ASSERT): Likewise.
40466         * tests/test-striconveha.c (ASSERT): Likewise.
40467         * tests/test-strsignal.c (ASSERT): Likewise.
40468         * tests/test-strstr.c (ASSERT): Likewise.
40469         * tests/test-strtod.c (ASSERT): Likewise.
40470         * tests/test-trunc1.c (ASSERT): Likewise.
40471         * tests/test-trunc2.c (ASSERT): Likewise.
40472         * tests/test-truncf1.c (ASSERT): Likewise.
40473         * tests/test-truncf2.c (ASSERT): Likewise.
40474         * tests/test-truncl.c (ASSERT): Likewise.
40475         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
40476         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
40477         * tests/test-vasnprintf.c (ASSERT): Likewise.
40478         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
40479         * tests/test-vasprintf.c (ASSERT): Likewise.
40480         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
40481         * tests/test-vprintf-posix.c (ASSERT): Likewise.
40482         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
40483         * tests/test-vsnprintf.c (ASSERT): Likewise.
40484         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
40485         * tests/test-wcwidth.c (ASSERT): Likewise.
40486         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
40487         * tests/test-xprintf-posix.c (ASSERT): Likewise.
40488         * tests/test-xvasprintf.c (ASSERT): Likewise.
40489         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
40490         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
40491         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
40492         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
40493         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
40494         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
40495         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
40496         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
40497         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
40498         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
40499         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
40500         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
40501         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
40502         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
40503         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
40504         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
40505         * tests/unictype/test-block_list.c (ASSERT): Likewise.
40506         * tests/unictype/test-block_of.c (ASSERT): Likewise.
40507         * tests/unictype/test-block_test.c (ASSERT): Likewise.
40508         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
40509         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
40510         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
40511         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
40512         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
40513         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
40514         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
40515         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
40516         * tests/unictype/test-combining.c (ASSERT): Likewise.
40517         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
40518         * tests/unictype/test-digit.c (ASSERT): Likewise.
40519         * tests/unictype/test-mirror.c (ASSERT): Likewise.
40520         * tests/unictype/test-numeric.c (ASSERT): Likewise.
40521         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
40522         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
40523         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
40524         * tests/unictype/test-scripts.c (ASSERT): Likewise.
40525         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
40526         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
40527         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
40528         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
40529         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
40530         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
40531         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
40532         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
40533         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
40534         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
40535         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
40536         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
40537         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
40538         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
40539         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
40540         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
40541         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
40542         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
40543         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
40544         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
40545         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
40546         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
40547         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
40548         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
40549         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
40550         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
40551         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
40552         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
40553         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
40554         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
40555         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
40556         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
40557         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
40558         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
40559         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
40560         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
40561         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
40562         Reported by Eric Blake.
40563
40564 2008-04-11  Bruno Haible  <bruno@clisp.org>
40565
40566         * lib/wchar.in.h: Tweak comment.
40567
40568 2008-04-11  Bruno Haible  <bruno@clisp.org>
40569
40570         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
40571         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
40572         gl_COMMON.
40573         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
40574
40575 2008-04-11  Bruno Haible  <bruno@clisp.org>
40576
40577         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
40578
40579 2008-04-11  Simon Josefsson  <simon@josefsson.org>
40580
40581         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
40582         of attempting to use non-existing /dev/*random.  Based on patch
40583         from Adam Strzelecki <ono@java.pl> in
40584         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
40585
40586 2008-04-08  Bruno Haible  <bruno@clisp.org>
40587
40588         Add tentative support for emx+gcc.
40589         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
40590         * lib/fpurge.c (fpurge): Likewise.
40591         * lib/freadable.c (freadable): Likewise.
40592         * lib/freadahead.c (freadahead): Likewise.
40593         * lib/freading.c (freading): Likewise.
40594         * lib/freadptr.c (freadptr): Likewise.
40595         * lib/freadseek.c (freadptrinc): Likewise.
40596         * lib/fseeko.c (rpl_fseeko): Likewise.
40597         * lib/fseterr.c (fseterr): Likewise.
40598         * lib/fwritable.c (fwritable): Likewise.
40599         * lib/fwriting.c (fwriting): Likewise.
40600         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
40601
40602 2008-04-09  Eric Blake  <ebb9@byu.net>
40603
40604         Avoid some autoconf warnings.
40605         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
40606         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
40607         * m4/afs.m4 (gl_AFS): Likewise.
40608         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
40609         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
40610         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40611         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
40612         (gl_INTEGER_TYPE_SUFFIX): Likewise.
40613         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
40614         (AC_CHECK_DECLS_ONCE): Likewise.
40615         Rename file...
40616         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
40617         gnulib-tool requires autoconf 2.59 or better.
40618         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
40619
40620 2008-04-08  Eric Blake  <ebb9@byu.net>
40621
40622         Use 'git describe --match' if present (added in git 1.5.5).
40623         * build-aux/git-version-gen: Limit result to tags that match 'v*'
40624         if possible.
40625
40626 2008-04-08  Bruno Haible  <bruno@clisp.org>
40627
40628         Add tentative support for OpenServer.
40629         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
40630         _ptr, _cnt.
40631         * lib/fpurge.c (fpurge): Likewise.
40632         * lib/freadable.c (freadable): Likewise.
40633         * lib/freadahead.c (freadahead): Likewise.
40634         * lib/freading.c (freading): Likewise.
40635         * lib/freadptr.c (freadptr): Likewise.
40636         * lib/freadseek.c (freadptrinc): Likewise.
40637         * lib/fseeko.c (rpl_fseeko): Likewise.
40638         * lib/fseterr.c (fseterr): Likewise.
40639         * lib/fwritable.c (fwritable): Likewise.
40640         * lib/fwriting.c (fwriting): Likewise.
40641         Reported by Roger Cornelius <rac@tenzing.org> and
40642         Brian K. White <brian@aljex.com>.
40643
40644 2008-04-06  Jim Meyering  <meyering@redhat.com>
40645
40646         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
40647
40648 2008-04-06  Bruno Haible  <bruno@clisp.org>
40649
40650         Avoid possible error with non-ASCII bytes in UTF-8 locales.
40651         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
40652         * tests/test-printf-posix.sh: Likewise.
40653         * tests/test-vfprintf-posix.sh: Likewise.
40654         * tests/test-vprintf-posix.sh: Likewise.
40655         * tests/test-xprintf-posix.sh: Likewise.
40656
40657 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40658
40659         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
40660         hide error from 'ls', needed on OS/2.
40661         Report by Elbert Pol <elbert.pol@gmail.com>.
40662
40663 2008-04-04  Eric Blake  <ebb9@byu.net>
40664
40665         Make test-fseeko.c failures meaningful.
40666         * tests/test-fseeko.c: Print line number on failure.
40667         * tests/test-fseek.c: Likewise.
40668         Reported by Nelson H. F. Beebe.
40669
40670         Improve strtod bug detection check.
40671         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
40672         required for Solaris 10.
40673         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
40674
40675 2008-04-04  Bruno Haible  <bruno@clisp.org>
40676
40677         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
40678         by m4/setenv.m4.
40679
40680 2008-04-03  Eric Blake  <ebb9@byu.net>
40681
40682         Ensure sane .version contents.
40683         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
40684         version string.
40685         * build-aux/git-version-gen: Improve documentation.
40686
40687         Make GNU make output nicer.
40688         * top/GNUmakefile [!_have-Makefile]: Add dependency on
40689         MAKECMDGOALS to enforce message for all command line targets.  Set
40690         srcdir for use in maint.mk.
40691
40692         Another maintainer tweak.
40693         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
40694         a target that regenerates version.
40695
40696 2008-04-03  Jim Meyering  <meyering@redhat.com>
40697
40698         vc-list-files: don't cause coreutils "make po-check" failure
40699         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
40700
40701 2008-04-03  Eric Blake  <ebb9@byu.net>
40702
40703         Allow VPATH usage of vc-list-files.
40704         * build-aux/vc-list-files (scriptversion): Add timestamp.
40705         (options): Add --help, --version, -C.
40706         (CVS): Support installed cvsu.
40707
40708 2008-04-02  Bruno Haible  <bruno@clisp.org>
40709
40710         Avoid some "statement with no effect" warnings from gcc.
40711         * tests/test-wctype.c (main): Explicitly ignore unused values.
40712         Reported by Jim Meyering.
40713
40714 2008-04-02  Jim Meyering  <meyering@redhat.com>
40715
40716         Avoid some warnings from "gcc -Wshadow".
40717         * tests/test-frexp.c (exp): Define to a different identifier.
40718         * tests/test-frexpl.c (exp): Likewise.
40719
40720 2008-04-03  Jim Meyering  <meyering@redhat.com>
40721
40722         bootstrap: remove dangling *.[ch] symlinks from lib
40723         * build-aux/bootstrap [dangling symlink removal]: Move find's
40724         -depth option to precede all others, to avoid a warning.
40725         Remove *.[ch] files too, and from "$source_base" (usually lib/).
40726
40727 2008-04-02  Bruno Haible  <bruno@clisp.org>
40728
40729         Avoid some warnings from "gcc -Wshadow".
40730         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
40731         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
40732         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
40733         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
40734         Reported by Jim Meyering.
40735
40736 2008-04-01  Bruno Haible  <bruno@clisp.org>
40737
40738         Fix test to work on IRIX 6.5 with cc.
40739         * tests/test-math.c (numeric_equal): New function.
40740         (main): Use it.
40741
40742 2008-04-01  Bruno Haible  <bruno@clisp.org>
40743
40744         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
40745
40746 2008-04-01  Bruno Haible  <bruno@clisp.org>
40747
40748         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
40749         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40750         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
40751         (Depends-on): Remove math.
40752
40753         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
40754         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40755         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
40756         (Depends-on): Remove math.
40757
40758         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
40759         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40760         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
40761         (Depends-on): Remove math.
40762         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
40763         (Depends-on): Remove math.
40764
40765         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
40766         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40767         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
40768         (Depends-on): Remove math.
40769         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
40770         (Depends-on): Remove math.
40771
40772         * tests/test-round1.c: Include nan.h.
40773         (main): Use NaNd instead of NAN.
40774         * modules/round-tests (Files): Add tests/nan.h.
40775
40776         * tests/test-trunc1.c: Include nan.h.
40777         (main): Use NaNd instead of NAN.
40778         * modules/trunc-tests (Files): Add tests/nan.h.
40779
40780         * tests/test-roundf1.c: Include nan.h.
40781         (main): Use NaNf instead of NAN.
40782         * modules/roundf-tests (Files): Add tests/nan.h.
40783
40784         * tests/test-truncf1.c: Include nan.h.
40785         (main): Use NaNf instead of NAN.
40786         * modules/truncf-tests (Files): Add tests/nan.h.
40787
40788         * tests/test-ceilf1.c: Include nan.h.
40789         (main): Use NaNf instead of NAN.
40790         * modules/ceilf-tests (Files): Add tests/nan.h.
40791
40792         * tests/test-floorf1.c: Include nan.h.
40793         (main): Use NaNf instead of NAN.
40794         * modules/floorf-tests (Files): Add tests/nan.h.
40795
40796         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
40797         (main): Use NaNf instead of NAN.
40798         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
40799
40800         * tests/test-isnand.c: Include nan.h instead of <math.h>.
40801         (main): Use NaNd instead of NAN.
40802         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
40803
40804         * tests/test-frexp.c: Include nan.h.
40805         (main): Use NaNd instead of NAN.
40806         * modules/frexp-tests (Files): Add tests/nan.h.
40807
40808         * lib/isnan.c: Don't include <math.h>.
40809         (FUNC): Don't use NAN macro.
40810         * modules/isnand-nolibm (Depends-on): Remove math.
40811         * modules/isnanf-nolibm (Depends-on): Remove math.
40812         * modules/isnanl (Depends-on): Remove math.
40813         * modules/isnanl-nolibm (Depends-on): Remove math.
40814
40815         * tests/nan.h: New file.
40816
40817 2008-04-01  Eric Blake  <ebb9@byu.net>
40818
40819         Fix typos.
40820         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
40821         values to be the right type.
40822
40823         For now, cater to gnulib strtod inaccuracies.
40824         * tests/test-strtod.c (main): Allow 1-ulp error on expected
40825         fractional results.  While not as nice from a QoI perspective, it
40826         is a quicker patch than correctly implementing decimal to binary
40827         rounding.
40828
40829 2008-03-31  Eric Blake  <ebb9@byu.net>
40830
40831         Guarantee a definition of NAN.
40832         * lib/math.in.h (NAN): Define if missing.
40833         * tests/test-math.c (main): Test it.
40834         * doc/posix-headers/math.texi (math.h): Document this.
40835         * lib/isnan.c (rpl_isnand): Use it.
40836         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
40837         * tests/test-floorf1.c (NaN): Likewise.
40838         * tests/test-frexp.c (NaN): Likewise.
40839         * tests/test-isnand.c (NaN): Likewise.
40840         * tests/test-isnanf.c (NaN): Likewise.
40841         * tests/test-round1.c (NaN): Likewise.
40842         * tests/test-roundf1.c (NaN): Likewise.
40843         * tests/test-snprintf-posix.h (NaN): Likewise.
40844         * tests/test-sprintf-posix.h (NaN): Likewise.
40845         * tests/test-trunc1.c (NaN): Likewise.
40846         * tests/test-truncf1.c (NaN): Likewise.
40847         * tests/test-vasnprintf-posix.c (NaN): Likewise.
40848         * tests/test-vasprintf-posix.c (NaN): Likewise.
40849         * modules/isnand-nolibm (Depends-on): Add math.
40850         * modules/isnanf-nolibm (Depends-on): Likewise.
40851         * modules/isnanl (Depends-on): Likewise.
40852         * modules/isnanl-nolibm (Depends-on): Likewise.
40853         * modules/snprintf-posix-tests (Depends-on): Likewise.
40854         * modules/sprintf-posix-tests (Depends-on): Likewise.
40855         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
40856         * modules/vsprintf-posix-tests (Depends-on): Likewise.
40857         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
40858         * modules/vasprintf-posix-tests (Depends-on): Likewise.
40859
40860 2008-03-31  Bruno Haible  <bruno@clisp.org>
40861
40862         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
40863         * doc/posix-functions/strtod.texi: Likewise.
40864
40865 2008-03-31  Bruno Haible  <bruno@clisp.org>
40866
40867         * tests/test-strtod.c (main): Don't use C99 syntax.
40868
40869 2008-03-31  Bruno Haible  <bruno@clisp.org>
40870
40871         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
40872         Reported by Eric Blake.
40873
40874 2008-03-31  Jim Meyering  <meyering@redhat.com>
40875
40876         Don't compare actual signbit return values.
40877         * tests/test-strtod.c (main): Rather, compare only their
40878         zero/non-zero nature.
40879
40880 2008-03-31  Eric Blake  <ebb9@byu.net>
40881
40882         More strtod documentation.
40883         * doc/posix-functions/strtod.texi (strtod): Interpret more test
40884         failures as distinct bugs.
40885
40886 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
40887
40888         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
40889         Problem reported by Erik Benada in
40890         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
40891
40892 2008-03-30  Bruno Haible  <bruno@clisp.org>
40893
40894         * tests/test-strtod.c: Add comments about which assertion fails on which
40895         platform.
40896         * doc/posix-functions/strtod.texi: Add info about many more platforms.
40897
40898 2008-03-30  Eric Blake  <ebb9@byu.net>
40899
40900         Test signbit behavior on zeros.
40901         * tests/test-signbit.c (test_signbitf): Add tests for zero.
40902         (test_signbitd, test_signbitl): Likewise.
40903
40904         More strtod touchups.
40905         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
40906         sign of negative underflow, for now.  Use .5, not .1.
40907         * doc/posix-functions/strtod.texi (strtod): Mention these
40908         limitations.
40909         Reported by Jim Meyering.
40910
40911 2008-03-30  Bruno Haible  <bruno@clisp.org>
40912
40913         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
40914         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
40915
40916 2008-03-30  Bruno Haible  <bruno@clisp.org>
40917
40918         Avoid failure when attempting to return empty iconv results on some
40919         platforms.
40920         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
40921         allocation, don't report ENOMEM when the resulting string is empty.
40922
40923 2008-03-30  Bruno Haible  <bruno@clisp.org>
40924
40925         Fix buffer overrun.
40926         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
40927         Don't consider the width for tmp_length. Check count against tmp_length
40928         before doing the padding. Ensure enough allocation during padding.
40929
40930 2008-03-30  Eric Blake  <ebb9@byu.net>
40931
40932         strtod touchups.
40933         * lib/strtod.c (strtod): Avoid compiler warnings.
40934         Reported by Jim Meyering.
40935
40936 2008-03-30  Bruno Haible  <bruno@clisp.org>
40937
40938         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
40939         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
40940         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
40941         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
40942         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
40943         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
40944         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
40945         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
40946
40947         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
40948         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
40949         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
40950         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
40951         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
40952         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
40953         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
40954         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
40955
40956         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
40957         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
40958         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
40959         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
40960         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
40961         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
40962         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
40963         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
40964
40965         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
40966         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
40967
40968         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
40969         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
40970
40971         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
40972         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
40973
40974         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
40975         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
40976         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
40977
40978         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
40979         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
40980         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
40981
40982         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
40983         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
40984         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
40985
40986         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
40987         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
40988         * modules/vasprintf (Depends-on): Add EOVERFLOW.
40989
40990         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
40991         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
40992         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
40993         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
40994         (Depends-on): Add EOVERFLOW.
40995         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
40996         (Depends-on): Add EOVERFLOW.
40997         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
40998         (Depends-on): Add EOVERFLOW.
40999         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
41000         (Depends-on): Add EOVERFLOW.
41001         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
41002         (Depends-on): Add EOVERFLOW.
41003         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
41004         (Depends-on): Add EOVERFLOW.
41005         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
41006         (Depends-on): Add EOVERFLOW.
41007         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
41008         (Depends-on): Add EOVERFLOW.
41009
41010         * lib/sprintf.c (EOVERFLOW): Remove fallback.
41011         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
41012         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
41013
41014         * lib/snprintf.c (EOVERFLOW): Remove fallback.
41015         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
41016         * modules/snprintf (Depends-on): Add EOVERFLOW.
41017
41018         * lib/poll.c (EOVERFLOW): Remove fallback.
41019         * modules/poll (Depends-on): Add EOVERFLOW.
41020
41021         * lib/getugroups.c (EOVERFLOW): Remove fallback.
41022         * modules/getugroups (Depends-on): Add EOVERFLOW.
41023
41024         * lib/getdelim.c (EOVERFLOW): Remove fallback.
41025         * modules/getdelim (Depends-on): Add EOVERFLOW.
41026
41027         * lib/ftell.c (EOVERFLOW): Remove fallback.
41028         * modules/ftell (Depends-on): Add EOVERFLOW.
41029
41030         * lib/fprintf.c (EOVERFLOW): Remove fallback.
41031         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
41032         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
41033
41034         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
41035
41036         * modules/EOVERFLOW-tests: New file.
41037         * tests/test-EOVERFLOW.c: New file.
41038
41039         * modules/EOVERFLOW: New file.
41040         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
41041
41042 2008-03-30  Bruno Haible  <bruno@clisp.org>
41043
41044         Fix bug introduced on 2007-06-10.
41045         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
41046         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
41047
41048 2008-03-30  Bruno Haible  <bruno@clisp.org>
41049
41050         Improve freadseek's efficiency after ungetc.
41051         * lib/freadseek.c: Include freadahead.h.
41052         (freadptrinc): New function, extracted from freadseek.
41053         (freadseek): Use it in a loop. Use freadahead to determine the number
41054         of loop iterations.
41055         * modules/freadseek (Depends-on): Add freadahead.
41056         (configure.ac): Require AC_C_INLINE.
41057
41058 2008-03-30  Bruno Haible  <bruno@clisp.org>
41059
41060         * lib/freadseek.c (freadseek): Don't ignore the return value of
41061         freadptr.
41062
41063 2008-03-29  Eric Blake  <ebb9@byu.net>
41064
41065         Add hex float support.
41066         * modules/strtod (Depends-on): Add c-ctype.
41067         (Link): Mention POW_LIB.
41068         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
41069         whitespace between 'e' and exponent.
41070         * tests/test-strtod.c (main): Enable hex float tests.
41071         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
41072         now provides.
41073
41074         Document various strtod bugs, with some fixes.
41075         * doc/posix-functions/strtod.texi (strtod): Document bugs with
41076         "-0x", "inf", "nan", and hex constants.
41077         * doc/posix-functions/atof.texi (atof): Likewise.
41078         * modules/stdlib (Makefile.am): Support strtod.
41079         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41080         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
41081         detect additional strtod bugs.
41082         * lib/stdlib.in.h (rpl_strtod): Add declarations.
41083         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
41084         bool where appropriate.  Parse 'inf' and 'nan'.
41085         * tests/test-strtod.c: New file.
41086         * modules/strtod (Depends-on): Add stdbool, stdlib.
41087         (configure.ac): Turn on module indicator.
41088         * modules/strtod-tests: New module.
41089
41090 2008-03-29  Eric Blake  <ebb9@byu.net>
41091
41092         Fix ftell on mingw.
41093         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
41094         * modules/ftell-tests (Depends-on): Add binary-io.
41095         * modules/ftello-tests (Depends-on): Likewise.
41096         * tests/test-ftell.c (main): Enhance test to cover behavior after
41097         ungetc.  Enforce binary mode.
41098         * tests/test-ftello.c (main): Likewise.
41099
41100         Pass test-freadseek on cygwin.
41101         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
41102         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
41103         ungetc buffer.
41104
41105         * tests/test-fflush2.c (main): Fix typo.
41106
41107 2008-03-29  Bruno Haible  <bruno@clisp.org>
41108
41109         * tests/test-fflush2.c (main): Temporarily disable the contents of
41110         this test.
41111         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
41112         Reported by Eric Blake.
41113
41114 2008-03-28  Simon Josefsson  <simon@josefsson.org>
41115
41116         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
41117         (GC_SHA224_DIGEST_SIZE): Add.
41118
41119         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
41120         (gc_hash_digest_length): Likewise.
41121         (gc_hash_buffer): Likewise.
41122
41123 2008-03-25  Bruno Haible  <bruno@clisp.org>
41124
41125         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
41126         detail which gettext release to use.
41127         Reported by Simon Josefsson.
41128
41129 2008-03-26  Jim Meyering  <meyering@redhat.com>
41130
41131         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
41132         * modules/gnumakefile (clean-GNUmakefile): Also, use
41133         test ... && ... || : syntax rather than if-then ... fi.
41134
41135         gnumakefile: Don't double-quote-expand $(VPATH) value.
41136         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
41137
41138 2008-03-24  Eric Blake  <ebb9@byu.net>
41139
41140         Alter GNUmakefile to install into top directory.
41141         * modules/maintainer-makefile: Split, and add dependency...
41142         * modules/gnumakefile: to this new module.
41143         * build-aux/GNUmakefile: Move...
41144         * top/GNUmakefile: ...here.
41145         * build-aux/maint.mk: Move...
41146         * top/maint.mk: ...here.
41147         * MODULES.html.sh (Support for maintaining...): Document new
41148         module.
41149
41150 2008-03-23  Bruno Haible  <bruno@clisp.org>
41151
41152         * gnulib-tool: New options --vc-files, --no-vc-files.
41153         (func_usage): Document them.
41154         (vc_files): New variable.
41155         (func_import): Consider vc_files.
41156         (func_create_testdir): Set vc_files to empty.
41157         Suggested by Jim Meyering and Karl Berry.
41158
41159 2008-03-23  Bruno Haible  <bruno@clisp.org>
41160
41161         Fix regex compilation error on HP-UX 11.
41162         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
41163         * modules/regex (Files): Add m4/mbstate_t.m4.
41164         Reported by Ton Voon <ton.voon@altinity.com>.
41165
41166 2008-03-23  Bruno Haible  <bruno@clisp.org>
41167
41168         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
41169
41170 2008-03-23  Eric Blake  <ebb9@byu.net>
41171             Bruno Haible  <bruno@clisp.org>
41172
41173         Install files from top/ in the destination directory.
41174         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
41175         augmentation also for the files from top/.
41176         (func_import, func_create_testdir): Rewrite file names:
41177         top/filename -> filename.
41178
41179 2008-03-23  Bruno Haible  <bruno@clisp.org>
41180
41181         Tweak "gnulib --version" output.
41182         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
41183
41184 2008-03-23  Bruno Haible  <bruno@clisp.org>
41185
41186         Tweak "gnulib --version" output.
41187         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
41188         rather than contents of ChangeLog, when possible.
41189
41190 2008-03-21  Eric Blake  <ebb9@byu.net>
41191
41192         More --version tweaks.
41193         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
41194         date of last ChangeLog entry.
41195
41196 2008-03-21  Jim Meyering  <meyering@redhat.com>
41197
41198         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
41199
41200 2008-03-20  Eric Blake  <ebb9@byu.net>
41201
41202         VPATH fix.
41203         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
41204
41205 2008-03-20  Simon Josefsson  <simon@josefsson.org>
41206
41207         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
41208         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
41209
41210 2008-03-20  Eric Blake  <ebb9@byu.net>
41211
41212         Sync GNUmakefile with coreutils.
41213         * build-aux/GNUmakefile (have-Makefile): Rename...
41214         (_have-Makefile): ...to this, for namespace consideration.
41215         (GNUmakefile.cfg): Include, if present.
41216         (_autoreconf): Define a default.
41217         (_is-dist-target): New rule for rebuilds to pick up intra-release
41218         version.
41219         (maint-cfg.mk): Rename...
41220         (cfg.mk): ...to this.
41221
41222 2008-03-18  Jim Meyering  <meyering@redhat.com>
41223
41224         New script and module: mktempd
41225         * MODULES.html.sh (maint+release support): Add mktempd.
41226         * build-aux/mktempd: New file.
41227         * modules/mktempd: New file.
41228
41229 2008-03-15  Jim Meyering  <meyering@redhat.com>
41230
41231         Undo last change.
41232         * lib/sha1.c, lib/md5.c: 63 != ~63.
41233         Reported by Andreas Schwab.
41234
41235         sha1.c, md5.c: Hoist a redundant expression.
41236         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
41237         "ctx->buflen" only once, before calling *_process_block.
41238         * lib/md5.c (md5_process_bytes): Likewise.
41239
41240 2008-03-14  Eric Blake  <ebb9@byu.net>
41241
41242         Bump copyright year in files generated by gnulib-tool.
41243         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
41244         gnulib-tool, rather than hard-coding it.
41245
41246         Fix 'gnulib-tool --version' output to work with git.
41247         * gnulib-tool (func_gnulib_dir): New function, extracted from...
41248         (startup): ...here.
41249         (func_version): Use it to invoke git-version-gen, rather than
41250         relying on CVS keyword expansion.  Modernize wording.
41251         (cvsdatestamp, last_checkin_date, version): Kill unused
41252         variables.
41253
41254 2008-03-12  Jim Meyering  <meyering@redhat.com>
41255
41256         Recognize optional cast of the argument to free.
41257         * build-aux/useless-if-before-free: Update regexps.
41258
41259         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
41260
41261 2008-03-11  Bruno Haible  <bruno@clisp.org>
41262
41263         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
41264         by a single package.
41265         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
41266         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
41267         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
41268         Reported by Sam Steingold <sds@gnu.org>.
41269
41270 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41271
41272         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
41273         repositories.
41274
41275 2008-03-11  Bruno Haible  <bruno@clisp.org>
41276
41277         Avoid conflicts between local macro definitions.
41278         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
41279         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
41280
41281 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
41282             Bruno Haible  <bruno@clisp.org>
41283
41284         Make va_copy work with some version of xlc on AIX 5.1.
41285         * lib/stdarg.in.h: New file.
41286         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
41287         On AIX, use a <stdarg.h> file substitute.
41288         * modules/stdarg (Files): Add lib/stdarg.in.h.
41289         (Depends-on): Add include_next.
41290         (Makefile.am): Build a stdarg.h substitute if requested.
41291         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
41292
41293 2008-03-10  Bruno Haible  <bruno@clisp.org>
41294
41295         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
41296         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41297         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
41298
41299 2008-03-10  Bruno Haible  <bruno@clisp.org>
41300
41301         * modules/stdlib (Depends-on): Add include_next, remove
41302         absolute-header.
41303
41304 2008-03-09  Bruno Haible  <bruno@clisp.org>
41305
41306         * lib/freadahead.h (freadahead): Document more precisely.
41307         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
41308         the sum of both buffer sizes.
41309         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
41310         * NEWS: Document the change.
41311
41312 2008-03-09  Bruno Haible  <bruno@clisp.org>
41313
41314         Extend freadptr to return also the buffer size.
41315         * lib/freadptr.h (freadptr): Add sizep argument.
41316         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
41317         (freadptr): Add sizep argument. Determine buffer size like freadahead
41318         does.
41319         * tests/test-freadptr.c: Don't include freadahead.h.
41320         (main): Adapt for new calling convention of freadptr.
41321         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
41322         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
41323         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
41324         tests/test-freadptr2.sh.
41325         (Depends): Remove freadahead.
41326         (TESTS): Add test-freadptr2.sh.
41327         (check_PROGRAMS): Add test-freadptr2.
41328
41329 2008-03-09  Bruno Haible  <bruno@clisp.org>
41330
41331         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
41332         Report and solution by Simon Josefsson.
41333
41334 2008-03-06  Bruno Haible  <bruno@clisp.org>
41335
41336         Make fflush after ungetc work on BSD platforms.
41337         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
41338         * tests/test-fflush2.c: New file.
41339         * tests/test-fflush2.sh: New file.
41340         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
41341         tests/test-fflush2.c.
41342         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
41343         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
41344
41345 2008-03-06  Eric Blake  <ebb9@byu.net>
41346
41347         Likewise for ftello.
41348         * modules/ftello (Dependencies): Add extensions.
41349         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
41350
41351 2008-03-06  Bruno Haible  <bruno@clisp.org>
41352
41353         * modules/fseeko (Dependencies): Add extensions.
41354         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
41355         Needed on glibc systems.
41356
41357 2008-03-06  Bruno Haible  <bruno@clisp.org>
41358
41359         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
41360         email address.
41361         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
41362
41363 2008-03-06  Bruno Haible  <bruno@clisp.org>
41364
41365         * users.txt: Add libgnupdf.
41366
41367 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
41368
41369         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
41370         (Header File Substitutes, Function Substitutes,
41371         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
41372         (Build robot for gnulib): Fix typo.
41373
41374 2008-03-06  Bruno Haible  <bruno@clisp.org>
41375
41376         * doc/gnulib-tool.texi (VCS Issues): Small updates.
41377         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
41378
41379 2008-03-06  Bruno Haible  <bruno@clisp.org>
41380
41381         * doc/func.texi: New file, extracted from doc/gnulib.texi.
41382         * doc/gnulib.texi: Include it.
41383
41384 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41385
41386         * modules/func (License): Change license to unlimited; there was
41387         no LGPL parts in the module anyway.
41388
41389 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41390
41391         * modules/__func__: Renamed to modules/func.
41392         * modules/__func__-tests: Renamed to modules/func-tests.
41393         * tests/test-__func__.c: Renamed to tests/test-func.c.
41394         * m4/__func__.m4: Renamed to m4/func.m4.
41395         * doc/gnulib.texi (__func__): Section renamed to func.
41396         Suggested by Eric Blake <ebb9@byu.net>.
41397
41398 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41399
41400         * doc/gnulib.texi (__func__): Use C99 terminology when talking
41401         about __func__.  Make example self-contained.  Suggested by Eric
41402         Blake <ebb9@byu.net>.
41403
41404         * tests/test-__func__.c (main): Avoid extraneous () around __func.
41405         Suggested by Eric Blake <ebb9@byu.net>.
41406
41407 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41408
41409         * modules/__func__: New file.
41410         * modules/__func__-tests: New file.
41411         * tests/test-__func__.c: New file.
41412         * m4/__func__.m4: New file.
41413         * doc/gnulib.texi (__func__): Document __func__ module.
41414
41415 2008-03-05  Simon Josefsson  <simon@josefsson.org>
41416
41417         * modules/byteswap (License): Re-license as LGPLv2+.
41418
41419 2008-03-05  Simon Josefsson  <simon@josefsson.org>
41420
41421         * doc/Makefile: Add pdf target.
41422
41423 2008-03-05  Simon Josefsson  <simon@josefsson.org>
41424
41425         * modules/inline (License): Use 'unlimited', since there are only
41426         *.m4 files in this module.
41427
41428 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
41429             Bruno Haible  <bruno@clisp.org>
41430
41431         Add support for HP C 7.1 on OpenVMS 8.3.
41432         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
41433
41434 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
41435
41436         Update VMS specifics.
41437         * lib/getopt.c [VMS]: Remove include of unixlib.h.
41438
41439 2008-03-02  Jim Meyering  <meyering@redhat.com>
41440
41441         Remove the last dependency on the "free" module.
41442         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
41443         Reported by Bob Proulx.
41444
41445         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
41446
41447         Remove useless "if" tests before free.  Deprecate "free" module.
41448         * doc/posix-functions/free.texi: Mention that this
41449         module is no longer useful.
41450         * modules/free (Notice): Say this module is obsolete.
41451         * modules/readutmp (Depends-on): Remove free.
41452         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
41453         * lib/putenv.c (putenv): Likewise.
41454         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
41455         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
41456         * tests/test-c-strcasestr.c (main): Likewise.
41457         * tests/test-c-strstr.c (main): Likewise.
41458         * tests/test-mbscasestr1.c (main): Likewise.
41459         * tests/test-mbscasestr2.c (main): Likewise.
41460         * tests/test-mbsstr1.c (main): Likewise.
41461         * tests/test-mbsstr2.c (main): Likewise.
41462         * tests/test-memmem.c (main): Likewise.
41463         * tests/test-strcasestr.c (main): Likewise.
41464         * tests/test-striconv.c (main): Likewise.
41465         * tests/test-striconveh.c (main): Likewise.
41466         * tests/test-striconveha.c (main): Likewise.
41467         * tests/test-strstr.c (main): Likewise.
41468
41469         * build-aux/git-version-gen: Adjust a comment and the Usage string.
41470
41471         bootstrap: sync from coreutils again
41472         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
41473
41474 2008-03-01  Jim Meyering  <meyering@redhat.com>
41475
41476         bootstrap: sync from coreutils
41477         * build-aux/bootstrap (update_po_files): Copy a .po file into place
41478         also when the target doesn't exist.
41479
41480 2008-03-01  Eric Blake  <ebb9@byu.net>
41481
41482         Fix bugs in last patch.
41483         * lib/memchr2.c (memchr2): Fix typo.
41484         * tests/test-memchr2.c: Test previous bug, and don't use GNU
41485         extension.
41486         Reported by Bruce Korb.
41487
41488         New module 'memchr2'.
41489         * modules/memchr2: New file.
41490         * modules/memchr2-tests: Likewise.
41491         * lib/memchr2.h: Likewise.
41492         * lib/memchr2.c: Likewise, based on memchr.c.
41493         * tests/test-memchr2.c: New test.
41494         * MODULES.html.sh (String handling): Add memchr2.
41495
41496 2008-02-29  Bruno Haible  <bruno@clisp.org>
41497
41498         * modules/freadseek-tests: New file.
41499         * tests/test-freadseek.sh: New file.
41500         * tests/test-freadseek.c: New file.
41501
41502         New module 'freadseek'.
41503         * modules/freadseek: New file.
41504         * lib/freadseek.h: New file.
41505         * lib/freadseek.c: New file.
41506         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
41507
41508 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
41509
41510         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
41511         wydawca.
41512
41513         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
41514         program_invocation_name and program_invocation_short_name are
41515         present.
41516
41517 2008-02-28  Bruno Haible  <bruno@clisp.org>
41518
41519         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
41520         * tests/test-freadptr.sh: Also test non-seekable stdin.
41521
41522 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
41523
41524         * build-aux/bootstrap (source_base, m4_base)
41525         (doc_base, tests_base): New variables.
41526         (gnulib_tool_options): Do not hardcode base directories, use
41527         the above variables instead.
41528
41529 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
41530
41531         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
41532
41533 2008-02-28  Bruno Haible  <bruno@clisp.org>
41534
41535         * modules/freadptr-tests: New file.
41536         * tests/test-freadptr.sh: New file.
41537         * tests/test-freadptr.c: New file.
41538
41539         New module 'freadptr'.
41540         * modules/freadptr: New file.
41541         * lib/freadptr.h: New file.
41542         * lib/freadptr.c: New file.
41543         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
41544
41545 2008-02-26  Karl Berry  <karl@freefriends.org>
41546
41547         Sync from Libtool:
41548         * libltdl/argz.c (argz_add, argz_count): New functions.
41549         * libltdl/argz.in.h: Declare them.
41550         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
41551
41552 2008-02-22  Bruno Haible  <bruno@clisp.org>
41553
41554         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
41555         is a pointer type.  Needed for HP-UX 10.
41556         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
41557         * doc/posix-functions/gmtime_r.texi: Likewise.
41558         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
41559
41560 2008-02-24  Bruno Haible  <bruno@clisp.org>
41561
41562         * modules/environ-tests: New file.
41563         * tests/test-environ.c: New file.
41564
41565         New module 'environ'.
41566         * modules/environ: New file.
41567         * lib/unistd.in.h (environ): New declaration.
41568         * m4/environ.m4: New file.
41569         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
41570         after use.
41571         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
41572         HAVE_DECL_ENVIRON.
41573         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
41574         HAVE_DECL_ENVIRON.
41575         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
41576         wrong claim that 'environ' is missing on some systems.
41577         * modules/execute (Depends-on): Add environ.
41578         * lib/execute.c (environ): Remove fallback declaration.
41579         * modules/pipe (Depends-on): Add environ.
41580         * lib/pipe.c (environ): Remove fallback declaration.
41581         * modules/setenv (Depends-on): Add environ.
41582         * lib/setenv.c (environ): Remove fallback declaration.
41583         * modules/unsetenv (Depends-on): Add environ.
41584         * lib/unsetenv.c (environ): Remove fallback declaration.
41585         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
41586         m4/environ.m4.
41587         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
41588         (gl_PREREQ_UNSETENV): Likewise.
41589
41590 2008-02-24  Bruno Haible  <bruno@clisp.org>
41591
41592         * doc/posix-functions/environ.texi: Document the MacOS X problem.
41593
41594 2008-02-20  Bob Proulx  <bob@proulx.com>
41595
41596         Enable use of older two part flavor 'git describe'.
41597         * build-aux/git-version-gen: If using the older two part flavor of
41598         git version then recreate the third part now present in the
41599         newer three part flavor of git describe.
41600
41601 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
41602
41603         * lib/fts.c (fts_build): Typo correction to comment.
41604
41605 2008-02-17  Bruno Haible  <bruno@clisp.org>
41606
41607         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
41608         generating no-op conflicts.
41609
41610 2008-02-17  Bruno Haible  <bruno@clisp.org>
41611
41612         Speed up by 10%.
41613         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
41614         result_entries, rather than an index-based loop.
41615
41616 2008-02-17  Bruno Haible  <bruno@clisp.org>
41617
41618         Speed up by 25%.
41619         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
41620         'hashcode_cached'.
41621         (entry_create): New function.
41622         (entry_hashcode): Use the cached hashcode if possible.
41623         (read_changelog_file, try_split_merged_entry): Use entry_create.
41624
41625 2008-02-17  Bruno Haible  <bruno@clisp.org>
41626
41627         Speed up from O(n^2) to O(n) for long ChangeLog files.
41628         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
41629         (read_changelog_file): Change implementation of entries_reversed list
41630         to rbtreehash.
41631         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
41632
41633 2008-02-17  Bruno Haible  <bruno@clisp.org>
41634
41635         New option --split-merged-entry.
41636         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
41637         (find_paragraph_end, try_split_merged_entry): New functions.
41638         (long_options): Add option --split-merged-entry.
41639         (usage): Document option --split-merged-entry.
41640         (main): Implement option --split-merged-entry.
41641         Reported by Eric Blake.
41642
41643 2008-02-17  Bruno Haible  <bruno@clisp.org>
41644
41645         * lib/git-merge-changelog.c: Include c-strstr.h.
41646         (main): Support the "git pull --rebase" situation.
41647         * modules/git-merge-changelog (Depends-on): Add c-strstr.
41648         Reported by Eric Blake.
41649
41650 2008-02-16  Eric Blake  <ebb9@byu.net>
41651
41652         Avoid doubling \ in common case of "c-maybe" quoting style.
41653         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
41654         eliding outer quotes.
41655         * lib/quotearg.h: Document this.
41656         * tests/test-quotearg.c (result_strings, inputs, results_g)
41657         (flag_results, locale_results): Test it by adding a new string to
41658         each test group.
41659         (compare_strings): Test new string.
41660
41661 2008-02-13  Eric Blake  <ebb9@byu.net>
41662
41663         Avoid trigraph quoting in default output.
41664         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
41665         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
41666         unless explicitly requested.
41667         * tests/test-quotearg.c (flag_results, main): Add additional tests.
41668
41669 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
41670
41671         Don't rely on signed integer overflowing to negative value.
41672         * lib/getugroups.c (getugroups): Include <limits.h>.
41673         Instead, compare against INT_MAX, and increment only if the test passes.
41674
41675 2008-02-13  Jim Meyering  <meyering@redhat.com>
41676         and Eric Blake  <ebb9@byu.net>
41677
41678         Avoid shadowing warning and compile errors on Linux.
41679         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
41680         forwarding macros on Linux.
41681         (dcgettext): Define a stub, for Linux.
41682         (results_g, main): Avoid warnings.
41683
41684 2008-02-12  Eric Blake  <ebb9@byu.net>
41685
41686         Silence warning in last patch.
41687         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
41688
41689         Quotearg part 4: add tests, fix c-maybe colon quoting.
41690         * lib/quotearg.h: Improve documentation.
41691         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
41692         escapes when adding outer quotes.  When quoting trigraphs, use
41693         valid C notation.  When quoting NUL, omit extra characters if next
41694         character is not digit.  Alter prototype.
41695         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
41696         callers.
41697         * modules/quotearg-tests: New module.
41698         * tests/test-quotearg.c: New test.
41699
41700 2008-02-07  Eric Blake  <ebb9@byu.net>
41701
41702         Quotearg part 3: add flag to control outer quote elision.
41703         * lib/quotearg.h (c_maybe_quoting_style): New style.
41704         (enum quoting_flags): Better documentation of flags.
41705         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
41706         c-maybe style.
41707         (quotearg_buffer_restyled): Handle new flag to elide outer
41708         quotes.
41709
41710         Quotearg part 2: add flag that can control NUL elision.
41711         * lib/quotearg.h (set_quoting_flags): New prototype.
41712         * lib/quotearg.c (struct quoting_options): Add flag field.
41713         (set_quoting_flags): New function.
41714         (quotearg_buffer_restyled): Add flags parameter.
41715         (quotearg_alloc_mem): Set the flag if length cannot be returned.
41716         (quotearg_n_options): Set the flag, since length cannot be
41717         returned.
41718         (quoting_options_from_style): Default flags correctly.
41719
41720         Quotearg part 1: more wrappers, restore quotearg_char state.
41721         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
41722         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
41723         (quotearg_colon_mem): New wrappers.
41724         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
41725         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
41726         functions.
41727         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
41728         (quotearg_colon_mem): New functions.
41729
41730 2008-02-11  Bruno Haible  <bruno@clisp.org>
41731
41732         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
41733         library in the current directory: it does not work with parallel make.
41734         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41735
41736 2008-02-11  Bruno Haible  <bruno@clisp.org>
41737
41738         * .gitattributes: New file.
41739
41740 2008-02-11  Jim Meyering  <meyering@redhat.com>
41741
41742         useless-if-before-free: Fix reversed exit values.
41743         * build-aux/useless-if-before-free: Use correct values
41744         for EXIT_MATCH and EXIT_NO_MATCH.
41745
41746         * build-aux/useless-if-before-free: Close stdout carefully.
41747
41748 2008-02-10  Bruno Haible  <bruno@clisp.org>
41749
41750         New module 'git-merge-changelog'.
41751         * modules/git-merge-changelog: New file.
41752         * lib/git-merge-changelog.c: New file.
41753
41754 2008-02-10  Jim Meyering  <meyering@redhat.com>
41755
41756         useless-if-before-free: New option: --list (-l).
41757
41758         useless-if-before-free: Don't exit immediately upon open failure.
41759         * build-aux/useless-if-before-free: Exit 2 for errors.
41760         Upon failure to open a file, don't exit immediately.
41761         Rather, just warn and continue with any remaining files.
41762
41763 2008-02-10  Bruno Haible  <bruno@clisp.org>
41764
41765         New abstract list operation 'node_set_value'.
41766         * lib/gl_list.h (gl_list_node_set_value): New function.
41767         (struct gl_list_implementation): New field node_set_value.
41768         * lib/gl_list.c (gl_list_node_set_value): New function.
41769         * lib/gl_array_list.c (gl_array_node_set_value): New function.
41770         (gl_array_list_implementation): Update.
41771         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
41772         (gl_carray_list_implementation): Update.
41773         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
41774         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41775         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41776         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
41777         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41778         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41779         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41780         Update.
41781         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
41782         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
41783         (gl_sublist_list_implementation): Update.
41784
41785 2008-02-10  Bruno Haible  <bruno@clisp.org>
41786
41787         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
41788         Needed when ELEMENT is #defined to 'some_type *'.
41789
41790 2008-02-10  Jim Meyering  <meyering@redhat.com>
41791
41792         New script and module: useless-if-before-free
41793         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
41794         * build-aux/useless-if-before-free: New file.
41795         * modules/useless-if-before-free: New file.
41796
41797         * build-aux/gitlog-to-changelog: Use committer date, not author date.
41798
41799         xstrtol_error: Fix typo.
41800         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
41801         s/exit_failure/exit_status/.
41802
41803 2008-02-09  Jim Meyering  <meyering@redhat.com>
41804
41805         New script and module: gitlog-to-changelog
41806         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
41807         * modules/gitlog-to-changelog: New file.
41808         * build-aux/gitlog-to-changelog: New file.
41809
41810 2008-02-08  Jim Meyering  <meyering@redhat.com>
41811
41812         Avoid two "parameter unused" warnings.
41813         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
41814         Mark "st" as used.
41815
41816         Use "git COMMAND", not "git-COMMAND".
41817         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
41818         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
41819         * build-aux/git-version-gen: Use "git status", not "git-status".
41820
41821 2008-02-07  Bruno Haible  <bruno@clisp.org>
41822
41823         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
41824         Avoids a crash on Windows Vista.
41825         Reported by Adam Strzelecki <ono@java.pl> via
41826         Simon Josefsson <simon@josefsson.org>.
41827
41828 2008-02-06  Bruno Haible  <bruno@clisp.org>
41829
41830         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
41831         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
41832         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
41833         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
41834         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41835         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41836         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
41837         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
41838         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41839         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41840         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41841         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41842         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41843         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41844         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41845         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
41846         left-adjust flag.
41847         * tests/test-snprintf-posix.h (test_function): Likewise.
41848         * tests/test-sprintf-posix.h (test_function): Likewise.
41849         * tests/test-vasprintf-posix.c (test_function): Likewise.
41850         * doc/posix-functions/fprintf.texi: Update.
41851         * doc/posix-functions/printf.texi: Update.
41852         * doc/posix-functions/snprintf.texi: Update.
41853         * doc/posix-functions/sprintf.texi: Update.
41854         * doc/posix-functions/vfprintf.texi: Update.
41855         * doc/posix-functions/vprintf.texi: Update.
41856         * doc/posix-functions/vsnprintf.texi: Update.
41857         * doc/posix-functions/vsprintf.texi: Update.
41858         Reported by Peter Fales <psfales@alcatel-lucent.com>.
41859
41860 2008-02-06  Bruno Haible  <bruno@clisp.org>
41861
41862         Fix bug introduced on 2008-01-26.
41863         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
41864
41865 2008-02-06  Bruno Haible  <bruno@clisp.org>
41866
41867         Fix bug introduced on 2007-06-10.
41868         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
41869         !NEED_PRINTF_FLAG_ZERO.
41870
41871 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
41872
41873         getloadavg: use libperfstat on AIX5
41874         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
41875
41876 2008-02-03  Bruno Haible  <bruno@clisp.org>
41877
41878         * lib/diffseq.h: Add comments about required #includes.
41879         Reported by Michael Biggs <gnulib@doubleplum.net>.
41880
41881 2008-02-01  Bruno Haible  <bruno@clisp.org>
41882
41883         * users.txt: Add gnuit.
41884
41885 2008-01-31  Bruno Haible  <bruno@clisp.org>
41886
41887         * lib/md4.c (set_uint32): Mark as inline.
41888         * lib/md5.c (set_uint32): Likewise.
41889         * lib/sha1.c (set_uint32): Likewise.
41890         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
41891         * m4/md5.m4 (gl_MD5): Likewise.
41892         * m4/sha1.m4 (gl_SHA1): Likewise.
41893
41894 2008-01-31  Jim Meyering  <meyering@redhat.com>
41895
41896         Use "sizeof VAR", rather than a literal "4".
41897         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
41898         * lib/md4.c (md4_read_ctx): Likewise.
41899         * lib/sha1.c (sha1_read_ctx): Likewise.
41900
41901 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41902
41903         * tests/test-sha1.c: New file, based on test-md5.c.
41904
41905         * modules/crypto/sha1-tests: New file.
41906
41907 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41908
41909         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
41910
41911 2008-01-31  Jim Meyering  <meyering@redhat.com>
41912
41913         Prefer "sizeof v" over the equivalent "4".
41914         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
41915         * lib/md5.c (set_uint32): Likewise.
41916         * lib/sha1.c (set_uint32): Likewise.
41917
41918 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41919
41920         * lib/sha1.c (set_uint32): Mark function as static.
41921
41922 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41923
41924         md2: clarify comments to say that alignment is not required.
41925         * lib/md2.h: Remove warning about alignment in comment.
41926         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
41927         never been required.
41928
41929 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41930
41931         md4: adapt alignment constraint fix from sha1.
41932         * lib/md4.c (set_uint32): New function, from sha1.c
41933         (md4_read_ctx): Use it.
41934         (md4_finish_ctx): Doc fix.
41935         * lib/md4.h: Doc fix.
41936
41937 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41938
41939         md5: adapt alignment constraint fix from sha1.
41940         * lib/md5.c (set_uint32): New function, from sha1.c
41941         (md5_read_ctx): Use it.
41942         (md5_finish_ctx): Doc fix.
41943         * lib/md5.h: Doc fix.
41944
41945 2008-01-30  Peter Palfrader  <weasel@debian.org>
41946
41947         sha1: remove the result buffer alignment constraint
41948         * lib/sha1.c (set_uint32): New function.
41949         (sha1_read_ctx): Rewrite to remove the result buffer alignment
41950         constraint.
41951         (sha1_finish_ctx): Remove comment warning about alignment constraint.
41952         * lib/sha1.h: Likewise.
41953
41954 2008-01-30  Andreas Schwab  <schwab@suse.de>
41955             Bruno Haible  <bruno@clisp.org>
41956
41957         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
41958         correct definition of LDBL_MIN_EXP.
41959
41960 2008-01-30  Karl Berry  <karl@gnu.org>
41961
41962         * config/srclist-update: try to preserve x bit on updates.
41963         * config/srclistvars.sh: update for karl.
41964
41965 2008-01-29  Jim Meyering  <meyering@redhat.com>
41966
41967         vasnprintf.c: Avoid warning about unused label
41968         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
41969         "overflow" label definition and associated code with the
41970         same cpp condition that guards the sole use of that label.
41971
41972 2008-01-26  Bruno Haible  <bruno@clisp.org>
41973
41974         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
41975         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
41976         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
41977         * lib/isnanl-nolibm.h (isnanl): Likewise.
41978         Reported by Paul Eggert <eggert@cs.ucla.edu>.
41979
41980 2008-01-26  Bruno Haible  <bruno@clisp.org>
41981
41982         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
41983         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
41984
41985 2008-01-26  Bruno Haible  <bruno@clisp.org>
41986
41987         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
41988         GCC >= 4.0 built-in.
41989         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
41990
41991 2008-01-26  Bruno Haible  <bruno@clisp.org>
41992
41993         Rename isnan, applicable to 'double' only, to isnand.
41994         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
41995         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
41996         (configure.ac): Update.
41997         (Include): Replace "isnan.h" with "isnand.h".
41998         * m4/isnand.m4: Renamed from m4/isnan.m4.
41999         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
42000         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
42001         instead of isnan.c.
42002         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
42003         instead of HAVE_ISNAN_IN_LIBC.
42004         (isnand): Renamed from isnan.
42005         * lib/isnand.c: New file.
42006         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
42007         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
42008         (Makefile.am): Update.
42009         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
42010         Include isnand.h instead of isnan.h.
42011         (main): Test isnand instead of isnan.
42012         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
42013         isnan-nolibm.
42014         * modules/frexp (Depends-on): Likewise.
42015         * modules/frexp-tests (Depends-on): Likewise.
42016         * modules/frexp-nolibm (Depends-on): Likewise.
42017         * modules/frexp-nolibm-tests (Depends-on): Likewise.
42018         * modules/isfinite (Depends-on): Likewise.
42019         * modules/round-tests (Depends-on): Likewise.
42020         * modules/signbit (Depends-on): Likewise.
42021         * modules/signbit-tests (Depends-on): Likewise.
42022         * modules/snprintf-posix (Depends-on): Likewise.
42023         * modules/sprintf-posix (Depends-on): Likewise.
42024         * modules/trunc-tests (Depends-on): Likewise.
42025         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42026         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42027         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42028         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42029         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42030         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42031         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42032         * modules/vasnprintf-posix (Depends-on): Likewise.
42033         * modules/vasprintf-posix (Depends-on): Likewise.
42034         * modules/vfprintf-posix (Depends-on): Likewise.
42035         * modules/vsnprintf-posix (Depends-on): Likewise.
42036         * modules/vsprintf-posix (Depends-on): Likewise.
42037         * lib/frexp.c: Include isnand.h instead of isnan.h.
42038         (ISNAN): Set to isnand instead of isnan.
42039         * lib/isfinite.c: Include isnand.h instead of isnan.h.
42040         (gl_isfinited): Use isnand instead of isnan.
42041         * lib/signbitd.c: Include isnand.h instead of isnan.h.
42042         (gl_signbitd): Use isnand instead of isnan.
42043         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
42044         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
42045         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
42046         (main): Use isnand instead of isnan.
42047         * tests/test-round1.c: Include isnand.h.
42048         (main): Use isnand instead of isnan.
42049         * tests/test-round2.c: Include isnand.h instead of isnan.h.
42050         (ISNAN): Set to isnand instead of isnan.
42051         * tests/test-trunc1.c: Include isnand.h.
42052         (main): Use isnand instead of isnan.
42053         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
42054         (equal): Use isnand instead of isnan.
42055         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
42056         isnand-nolibm.
42057         * NEWS: Mention the change.
42058
42059 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
42060             Bruno Haible  <bruno@clisp.org>
42061
42062         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
42063         the GCC builtins for signbits are present and set
42064         REPLACE_SIGNBIT_USING_GCC if so.
42065         * lib/math.in.h (signbit): Define using GCC builtins if
42066         REPLACE_SIGNBIT_USING_GCC is set.
42067         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
42068         REPLACE_SIGNBIT_USING_GCC.
42069         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
42070
42071 2008-01-25  Jim Meyering  <meyering@redhat.com>
42072
42073         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
42074         * lib/poll.c: Include <config.h>, not "config.h".
42075         * tests/test-getaddrinfo.c: Likewise.
42076
42077 2008-01-25  Simon Josefsson  <simon@josefsson.org>
42078
42079         * modules/sockets-tests: New file.
42080
42081 2008-01-24  Simon Josefsson  <simon@josefsson.org>
42082
42083         * modules/sockets: New module, can be used to call WSA_Startup and
42084         WSA_Cleanup when needed.
42085
42086         * lib/sockets.h, lib/sockets.c: New files.
42087
42088         * m4/sockets.m4: New file.
42089
42090         * tests/test-sockets.c: New file.
42091
42092 2008-01-19  Bruno Haible  <bruno@clisp.org>
42093
42094         * doc/posix-headers: Renamed from doc/headers.
42095         * doc/posix-functions: Renamed from doc/functions.
42096         * doc/gnulib.texi: Update.
42097
42098 2008-01-19  Bruno Haible  <bruno@clisp.org>
42099
42100         * doc/glibc-functions/strcasestr.texi: Include contents of
42101         doc/functions/strcasestr.texi, fixing the list of platforms.
42102         * doc/functions/strcasestr.texi: Remove file.
42103
42104 2008-01-19  Bruno Haible  <bruno@clisp.org>
42105
42106         * doc/glibc-functions/memmem.texi: Include contents of
42107         doc/functions/memmem.texi.
42108         * doc/functions/memmem.texi: Remove file.
42109
42110 2008-01-18  Bruno Haible  <bruno@clisp.org>
42111
42112         * doc/glibc-functions/*.texi: New files.
42113         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
42114         to use the new files.
42115
42116 2008-01-17  Bruno Haible  <bruno@clisp.org>
42117
42118         * tests/test-gethostname.c (main): Fix printf statement.
42119
42120 2008-01-17  Simon Josefsson  <simon@josefsson.org>
42121
42122         * modules/gethostname-tests: New file.
42123
42124         * tests/test-gethostname.c: New file.
42125
42126 2008-01-17  Simon Josefsson  <simon@josefsson.org>
42127
42128         * lib/gethostname.c: Include string.h unconditionally, strncpy is
42129         used by the UNAME case.  Reported by Bruno Haible
42130         <bruno@clisp.org>.
42131
42132 2008-01-17  Eric Blake  <ebb9@byu.net>
42133
42134         Convert c-strcasestr to be more efficient.
42135         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
42136         (Depends-on): Add c-strcase, remove malloca, strnlen.
42137         * tests/test-c-strcasestr.c (main): Enhance test.
42138         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
42139
42140 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
42141
42142         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
42143         Use it in creating po/Makevars.
42144
42145 2008-01-15  Simon Josefsson  <simon@josefsson.org>
42146
42147         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
42148         Applications that requires it should initialize libgcrypt
42149         manually.
42150
42151 2008-01-16  Simon Josefsson  <simon@josefsson.org>
42152
42153         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
42154
42155 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
42156
42157         Fix problem with getdate on mingw32 reported by Simon Josefsson
42158         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
42159         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
42160         tzname", when deciding whether to declare tzname.
42161         * lib/strftime.c (tzname): Likewise.
42162
42163 2008-01-15  Bruno Haible  <bruno@clisp.org>
42164
42165         Work around a MacOS X 10.5 bug in frexpl().
42166         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
42167         * doc/functions/frexpl.texi: Document the bug.
42168         Reported by Elias Pipping <pipping@gentoo.org>.
42169
42170 2008-01-14  Eric Blake  <ebb9@byu.net>
42171
42172         Touch up previous patch.
42173         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
42174         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
42175
42176         Convert strcasestr module to use Two-Way algorithm.
42177         * modules/strcasestr-simple: New module, based on the old
42178         strcasestr, but with Two-Way rather than KMP.
42179         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
42180         * lib/string.in.h (rpl_strcasestr): Declare.
42181         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
42182         performance.
42183         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
42184         * modules/string (Makefile.am): Support strcasestr.
42185         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
42186         * modules/strcasestr-tests (Depends-on): Check for alarm.
42187         * tests/test-strcasestr.c: Augment test.
42188         * lib/str-two-way.h: Clean up stray macro.
42189         * NEWS: Document new module.
42190         * MODULES.html.sh (string handling): Likewise.
42191         * doc/functions/strcasestr.texi: New file.
42192         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
42193         here, since it is not a POSIX function.
42194
42195 2008-01-14  Colin Watson  <cjwatson@debian.org>
42196             Bruno Haible  <bruno@clisp.org>
42197
42198         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
42199         works fine; if not, set REPLACE_STRSIGNAL.
42200         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
42201         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42202         REPLACE_STRSIGNAL.
42203         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
42204         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
42205         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
42206
42207 2008-01-14  Bruno Haible  <bruno@clisp.org>
42208
42209         * modules/strsignal (Include): Change to <string.h>.
42210
42211 2008-01-14  Colin Watson  <cjwatson@debian.org>
42212
42213         * modules/argp (Notice): Add a notice recommending to change
42214         XGETTEXT_OPTIONS.
42215         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
42216
42217 2008-01-13  Colin Watson  <cjwatson@debian.org>
42218
42219         * modules/strsignal-tests: New file.
42220         * tests/test-strsignal.c: New file.
42221
42222         * lib/strsignal.c: New file, from glibc with modifications.
42223         * lib/siglist.h: New file, from glibc with modifications.
42224         * lib/string.in.h (strsignal): New declaration.
42225         * m4/strsignal.m4: New file.
42226         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42227         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
42228         * modules/strsignal: New file.
42229         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
42230         HAVE_DECL_STRSIGNAL.
42231
42232 2008-01-13  Bruno Haible  <bruno@clisp.org>
42233
42234         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
42235         locale encoding is not ASCII. Needed for OpenBSD 4.0.
42236         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
42237         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
42238
42239 2008-01-13  Bruno Haible  <bruno@clisp.org>
42240
42241         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
42242         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
42243         * lib/argp.h (__attribute__): Likewise.
42244         * lib/c-stack.c (__attribute__): Likewise.
42245         * lib/error.h (__attribute__): Likewise.
42246         * lib/fts.c (__attribute__): Likewise.
42247         * lib/openat.h (__attribute__): Likewise.
42248         * lib/stdio.in.h (__attribute__): Likewise.
42249         * lib/string.in.h (__attribute__): Likewise.
42250         * lib/utimens.c (__attribute__): Likewise.
42251         * lib/vasnprintf.h (__attribute__): Likewise.
42252         * lib/xalloc.h (__attribute__): Likewise.
42253         * lib/xprintf.h (__attribute__): Likewise.
42254         * lib/xstrtol.h (__attribute__): Likewise.
42255         * lib/xvasprintf.h (__attribute__): Likewise.
42256
42257 2008-01-12  Bruno Haible  <bruno@clisp.org>
42258
42259         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
42260         * doc/glibc-headers/a.out.texi: New file.
42261         * doc/glibc-headers/aliases.texi: New file.
42262         * doc/glibc-headers/alloca.texi: New file.
42263         * doc/glibc-headers/ar.texi: New file.
42264         * doc/glibc-headers/argp.texi: New file.
42265         * doc/glibc-headers/argz.texi: New file.
42266         * doc/glibc-headers/byteswap.texi: New file.
42267         * doc/glibc-headers/crypt.texi: New file.
42268         * doc/glibc-headers/endian.texi: New file.
42269         * doc/glibc-headers/envz.texi: New file.
42270         * doc/glibc-headers/err.texi: New file.
42271         * doc/glibc-headers/error.texi: New file.
42272         * doc/glibc-headers/execinfo.texi: New file.
42273         * doc/glibc-headers/fpu_control.texi: New file.
42274         * doc/glibc-headers/fstab.texi: New file.
42275         * doc/glibc-headers/fts.texi: New file.
42276         * doc/glibc-headers/getopt.texi: New file.
42277         * doc/glibc-headers/ieee754.texi: New file.
42278         * doc/glibc-headers/ifaddrs.texi: New file.
42279         * doc/glibc-headers/libintl.texi: New file.
42280         * doc/glibc-headers/mcheck.texi: New file.
42281         * doc/glibc-headers/mntent.texi: New file.
42282         * doc/glibc-headers/obstack.texi: New file.
42283         * doc/glibc-headers/paths.texi: New file.
42284         * doc/glibc-headers/printf.texi: New file.
42285         * doc/glibc-headers/pty.texi: New file.
42286         * doc/glibc-headers/resolv.texi: New file.
42287         * doc/glibc-headers/shadow.texi: New file.
42288         * doc/glibc-headers/sysexits.texi: New file.
42289         * doc/glibc-headers/ttyent.texi: New file.
42290
42291 2008-01-12  Jim Meyering  <meyering@redhat.com>
42292
42293         announce-gen: emit Gnulib's git-based version string.
42294         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
42295         New option --gnulib-version=V, where V is expected to be
42296         the output of running git describe in the gnulib directory.
42297         (get_tool_versions): Request feedback on xdelta.  I suspect it's
42298         not useful, and plan to stop publishing an xdelta file with each
42299         coreutils release.
42300
42301         * build-aux/announce-gen: Also check for lzma-compressed files.
42302
42303 2008-01-11  Bruno Haible  <bruno@clisp.org>
42304
42305         * tests/test-memmem.c (main): Increase maximum allowed time.
42306         * tests/test-strstr.c (main): Likewise.
42307
42308 2008-01-11  Bruno Haible  <bruno@clisp.org>
42309
42310         * doc/functions/memmem.texi: Add more precisions about platforms.
42311         * doc/functions/strstr.texi: Likewise.
42312
42313 2008-01-10  Eric Blake  <ebb9@byu.net>
42314
42315         * m4/strstr.m4: Delete cruft from copy-n-paste.
42316         Reported by Bruno Haible.
42317
42318 2008-01-10  Bruno Haible  <bruno@clisp.org>
42319
42320         Make c-strstr rely on strstr.
42321         * lib/c-strstr.c: Don't include str-kmp.h.
42322         (c_strstr): Define in terms of strstr.
42323         * modules/c-strstr (Files): Remove lib/str-kmp.h.
42324         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
42325
42326 2008-01-10  Bruno Haible  <bruno@clisp.org>
42327
42328         * doc/gnulib.texi (String Functions in C Locale): New section.
42329         * doc/c-ctype.texi: New file.
42330         * doc/c-strcase.texi: New file.
42331         * doc/c-strcaseeq.texi: New file.
42332         * doc/c-strcasestr.texi: New file.
42333         * doc/c-strstr.texi: New file.
42334         * doc/c-strtod.texi: New file.
42335         * doc/c-strtold.texi: New file.
42336
42337 2008-01-10  Eric Blake  <ebb9@byu.net>
42338
42339         * lib/relocatable.h: Fix a comment.
42340
42341 2008-01-10  Eric Blake  <ebb9@byu.net>
42342
42343         Share two-way algorithm.
42344         * lib/str-two-way.h: New file, merged from...
42345         * lib/memmem.c: ...here...
42346         * lib/strstr.c: ...and here.
42347         * modules/memmem (Files): Use it.
42348         * modules/strstr (Files): Likewise.
42349
42350         Avoid quadratic strstr implementations.
42351         * lib/strstr.c: New file.
42352         * m4/strstr.m4: Likewise.
42353         * modules/strstr: Likewise.
42354         * modules/strstr-tests: Likewise.
42355         * tests/test-strstr.c: Likewise.
42356         * lib/string.in.h (rpl_strstr): Declare.
42357         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
42358         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
42359         * modules/string (Makefile.am): Likewise.
42360         * MODULES.html.sh (string handling): Mention new module.
42361         * doc/functions/strstr.texi (strstr): Document the bug.
42362
42363 2008-01-10  Bruno Haible  <bruno@clisp.org>
42364
42365         * lib/relocatable.h (relocate): State whether result is freshly
42366         allocated or not.
42367         * lib/relocatable.c (relocate): Return a freshly allocated string
42368         instead of a pointer to a privately held string.
42369         Reported by Sylvain Beucler <beuc@gnu.org>.
42370
42371 2008-01-10  Colin Watson  <cjwatson@debian.org>
42372
42373         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
42374         s/S_ISNLK/S_ISLNK/.
42375
42376 2008-01-09  Bruno Haible  <bruno@clisp.org>
42377
42378         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
42379         and other files.
42380         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
42381         if it's only a guess.
42382         * modules/memmem: Simplify by depending on memmem-simple.
42383
42384 2008-01-09  Bruno Haible  <bruno@clisp.org>
42385
42386         Work around OpenBSD 4.0 tdelete() bug.
42387         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
42388         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
42389         macros and don't redefine the enum values.
42390         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
42391         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
42392         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
42393
42394 2008-01-09  Bruno Haible  <bruno@clisp.org>
42395
42396         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
42397         (main): Don't perform the tests if setlocale did not install a UTF-8
42398         locale. Needed on OpenBSD 4.0.
42399         * modules/wcwidth-tests (Depends-on): Add localcharset.
42400
42401 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
42402
42403         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
42404         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
42405         * NEWS: announce this.
42406         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
42407
42408 2008-01-09  Simon Josefsson  <simon@josefsson.org>
42409         and Eric Blake  <ebb9@byu.net>
42410
42411         Add memmem-simple module.
42412         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
42413         (gl_FUNC_MEMMEM): Separate performance from presence checks.
42414         * modules/memmem-simple: New file.
42415         * modules/memmem (Description): Tweak.
42416         * MODULES.html.sh (string handling): Mention new module.
42417         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
42418         addressed by memmem-simple.
42419         * NEWS: Document the difference.
42420
42421 2008-01-09  Eric Blake  <ebb9@byu.net>
42422
42423         Give gcc some memmem optimization hints.
42424         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
42425         (strcasestr): Declare as pure.
42426         * modules/memmem (Maintainer): Claim my implementation.
42427
42428 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42429
42430         Support AIX 6.1 and higher.
42431         * build-aux/config.libpath: Likewise.
42432         * build-aux/config.rpath: Likewise.
42433
42434 2008-01-08  Jim Meyering  <meyering@redhat.com>
42435             Bruno Haible  <bruno@clisp.org>
42436
42437         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
42438         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
42439         Reported by Peter Fales in
42440         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
42441
42442 2008-01-08  Bruno Haible  <bruno@clisp.org>
42443
42444         * modules/unictype/category-of (Depends-on): Add
42445         unictype/category-none.
42446         * modules/unictype/category-and-tests (Depends-on): Add
42447         unictype/category-{L,N,Lu,Nd}.
42448         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
42449         * modules/unictype/category-or-tests (Depends-on): Add
42450         unictype/category-{L,N}.
42451         * modules/unictype/category-name-tests (Depends-on): Add
42452         unictype/category-{Z,Nl}.
42453         Reported by Simon Josefsson.
42454
42455 2008-01-08  Bruno Haible  <bruno@clisp.org>
42456
42457         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
42458         convention better.
42459         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
42460         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
42461         Reported by Peter Miller <millerp@canb.auug.org.au>.
42462
42463 2008-01-08  Eric Blake  <ebb9@byu.net>
42464
42465         Rewrite memmem to guarantee linear complexity without malloc.
42466         * lib/memmem.c (memmem): Use Two-Way rather than
42467         Knuth-Morris-Pratt, to allow O(1) space usage.
42468         (critical_factorization, two_way_short_needle)
42469         (two_way_long_needle): New functions.
42470         (knuth_morris_pratt): Delete.
42471         * modules/memmem (Depends-on): No longer need malloca or stdbool.
42472         Add stdint.
42473         * tests/test-memmem.c (main): Add tests for periodic needle and
42474         sublinear performance.
42475         * doc/functions/memmem.texi (memmem): Document other deficiencies
42476         in cygwin and older glibc.
42477
42478 2008-01-08  Bruno Haible  <bruno@clisp.org>
42479
42480         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
42481         augmentation.
42482
42483 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
42484
42485         Add a configure time option: --disable-acl.
42486         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
42487         AC_ARG_ENABLE(acl).
42488
42489 2008-01-06  Simon Josefsson  <simon@josefsson.org>
42490
42491         * tests/test-localename.c: Don't include obsolete "setenv.h".
42492
42493         * modules/localename-tests (Depends-on): Need unsetenv.
42494
42495 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42496
42497         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
42498
42499 2008-01-06  Colin Watson  <cjwatson@debian.org>
42500
42501         * users.txt: Add man-db.
42502
42503 2008-01-07  Bruno Haible  <bruno@clisp.org>
42504
42505         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
42506         previous section name.
42507
42508 2008-01-07  Bruno Haible  <bruno@clisp.org>
42509
42510         * lib/progname.c (set_program_name): Don't strip off a leading
42511         "lt-" prefix outside a .libs directory.
42512         Suggested by Paul Eggert.
42513
42514 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
42515             Bruno Haible  <bruno@clisp.org>
42516
42517         Improve memory cleanup in 'relocatable' module.
42518         * lib/relocatable.h (compute_curr_prefix): Change return type to
42519         'char *'.
42520         * lib/relocatable.c (compute_curr_prefix): Change return type to
42521         'char *'. Free curr_installdir after use.
42522         (relocate): Free curr_prefix_better after use.
42523         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
42524
42525 2008-01-01  Bruno Haible  <bruno@clisp.org>
42526
42527         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
42528         failure on older glibc systems.
42529         Reported by Peter Fales <psfales@alcatel-lucent.com>.
42530
42531 2008-01-05  Eric Blake  <ebb9@byu.net>
42532
42533         Avoid quadratic system memmem.
42534         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
42535         Reported by Ralf Wildenhues.
42536
42537         Fix memmem test for mingw.
42538         * modules/memmem-tests (configure.ac): Check for alarm.
42539         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
42540         it.
42541         * doc/functions/memmem.texi: New file.
42542         * doc/gnulib.texi (Function Substitutes): Add memmem.
42543         Reported by Bruno Haible.
42544
42545 2008-01-04  Bruno Haible  <bruno@clisp.org>
42546
42547         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
42548         Require gl_HEADER_STRINGS_H_DEFAULTS, not
42549         gl_HEADER_STRING_H_DEFAULTS.
42550
42551 2008-01-04  Eric Blake  <ebb9@byu.net>
42552
42553         Shorten duration of memmem test.
42554         * tests/test-memmem.c (main): Use alarm to declare failure if test
42555         is taking too long.
42556         Reported by Ralf Wildenhues.
42557
42558 2007-12-21  Simon Josefsson  <simon@josefsson.org>
42559
42560         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
42561         string, needed by strerror.
42562
42563 2008-01-03  Colin Watson  <cjwatson@debian.org>
42564             Bruno Haible  <bruno@clisp.org>
42565
42566         * doc/gnulib-tool.texi (Localization): New section.
42567
42568 2008-01-02  Bruno Haible  <bruno@clisp.org>
42569
42570         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
42571         variables to 'unsigned char *' type.
42572         Reported by Paul Eggert.
42573
42574 2008-01-02  Jim Meyering  <jim@meyering.net>
42575
42576         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
42577
42578 2007-12-31  Jim Meyering  <jim@meyering.net>
42579
42580         Avoid use of private FTS type name.
42581         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
42582
42583 2007-12-30  Karl Berry  <karl@gnu.org>
42584
42585         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
42586         work around defect in Texinfo and/or the standalone Info browser.
42587
42588 2007-12-30  Bruno Haible  <bruno@clisp.org>
42589
42590         Unify 5 copies of the KMP code.
42591         * lib/str-kmp.h: New file.
42592         * lib/c-strcasestr.c: Include str-kmp.h.
42593         (knuth_morris_pratt): Remove function.
42594         (c_strcasestr): Update.
42595         * lib/c-strstr.c: Include str-kmp.h.
42596         (knuth_morris_pratt): Remove function.
42597         (c_strcasestr): Update.
42598         * lib/mbscasestr.c: Include str-kmp.h.
42599         (knuth_morris_pratt_unibyte): Remove function.
42600         * lib/mbsstr.c: Include str-kmp.h.
42601         (knuth_morris_pratt_unibyte): Remove function.
42602         * lib/strcasestr.c: Include str-kmp.h.
42603         (knuth_morris_pratt): Remove function.
42604         (strcasestr): Update.
42605         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
42606         * modules/c-strstr (Files): Likewise.
42607         * modules/mbscasestr (Files): Likewise.
42608         * modules/mbsstr (Files): Likewise.
42609         * modules/strcasestr (Files): Likewise.
42610         Suggested by Paul Eggert.
42611
42612 2007-12-30  Bruno Haible  <bruno@clisp.org>
42613
42614         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
42615         defined.
42616
42617 2007-12-30  Bruno Haible  <bruno@clisp.org>
42618
42619         * lib/xmalloca.h: Include xalloc.h.
42620         (xnmalloca): New macro.
42621
42622 2007-12-30  Bruno Haible  <bruno@clisp.org>
42623
42624         * lib/malloca.h (nmalloca): New macro.
42625         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
42626         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
42627         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
42628         knuth_morris_pratt_multibyte): Likewise.
42629         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
42630         knuth_morris_pratt_multibyte): Likewise.
42631         * lib/memmem.c (knuth_morris_pratt): Likewise.
42632         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
42633
42634 2007-12-25  Bruno Haible  <bruno@clisp.org>
42635
42636         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
42637         * lib/glob.c: Don't include openat.h.
42638         (link_exists2_p): Add back the code that deals with the
42639         !GLOB_ALTDIRFUNC case.
42640         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
42641         let it do the filename concatenation.
42642         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
42643         * modules/glob (Depends-on): Remove openat.
42644
42645 2007-12-31  Bruno Haible  <bruno@clisp.org>
42646
42647         * modules/dirfd (License): Change to LGPLv2+.
42648         Approved by Jim Meyering.
42649
42650 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
42651
42652         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
42653         when multiplying M by sizeof (size_t).
42654
42655 2007-12-10  Martin Lambers  <marlam@marlam.de>
42656
42657         Override getpagesize on mingw.
42658         * lib/getpagesize.c: New file.
42659         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
42660         * modules/getpagesize (Files): Add lib/getpagesize.c.
42661         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
42662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42663         REPLACE_GETPAGESIZE.
42664         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
42665
42666 2007-12-25  Bruno Haible  <bruno@clisp.org>
42667
42668         * modules/localcharset (Notice): New field.
42669         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
42670         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
42671
42672 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
42673             Bruno Haible  <bruno@clisp.org>
42674
42675         Avoid using the syntax symbol() in formatted documentation.
42676         * MODULES.html.sh (func_module): When replacing symbol() with a
42677         hyperlink, remove the parentheses. Show an error if some remain.
42678         Recognize and render the '...' syntax.
42679         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
42680         Rework. Add paragraph about GCC's inlining.
42681         * doc/alloca.texi: Likewise.
42682         * doc/error.texi: Remove parentheses from symbol reference.
42683         * doc/gnulib-intro.texi: Likewise.
42684         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
42685         * modules/fnmatch (Description): Reword to say "the ... function".
42686         * modules/full-read (Description): Likewise.
42687         * modules/full-write (Description): Likewise.
42688         * modules/safe-read (Description): Likewise.
42689         * modules/safe-write (Description): Likewise.
42690         * modules/strchrnul (Description): Likewise.
42691         * modules/trim (Description): Likewise.
42692         * modules/error (Description): Remove parentheses from symbol
42693         references.
42694         * modules/verror (Description): Likewise.
42695         Reported by Karl Berry.
42696
42697 2007-12-25  Bruno Haible  <bruno@clisp.org>
42698
42699         Fixup after 2007-10-16 commit.
42700         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
42701
42702 2007-12-24  Bruno Haible  <bruno@clisp.org>
42703
42704         Make --enable-relocatable work with DESTDIR.
42705         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
42706         to compute installdir from destprog.
42707         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
42708         also set the RELOC_DESTDIR variable.
42709         Reported by Левашев Иван <octagram@bluebottle.com>.
42710
42711 2007-12-24  Bruno Haible  <bruno@clisp.org>
42712
42713         Fix link error due to xalloc_die().
42714         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
42715         of xreadlink.
42716         * lib/relocwrapper.c: Update comments.
42717         * build-aux/install-reloc: Remove xreadlink.c from file list.
42718         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
42719         xreadlink.c.
42720         Reported by Левашев Иван <octagram@bluebottle.com>.
42721
42722 2007-12-24  Bruno Haible  <bruno@clisp.org>
42723
42724         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
42725         * lib/setenv.h: Remove file.
42726         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
42727         lib/setenv.h.
42728         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
42729         (Depends-on): Add stdlib.
42730         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
42731         gl_FUNC_UNSETENV.
42732         (Include): Replace setenv.h with <stdlib.h>.
42733         * modules/unsetenv: New file.
42734         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
42735         * lib/unsetenv.c: Include <stdlib.h> first.
42736         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
42737         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
42738         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
42739         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
42740         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
42741         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
42742         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
42743         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
42744         * doc/functions/unsetenv.texi: Update.
42745         * modules/xsetenv (Depends-on): Add unsetenv.
42746         * modules/getdate (Depends-on): Likewise.
42747         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
42748         * lib/xsetenv.c: Don't include setenv.h.
42749         * lib/getdate.y: Likewise.
42750         * lib/relocwrapper.c: Likewise.
42751         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
42752         (Depends-on): Add stdlib.
42753         * NEWS: Mention the changes.
42754         Reported by Левашев Иван <octagram@bluebottle.com>.
42755
42756 2007-12-23  Bruno Haible  <bruno@clisp.org>
42757
42758         * lib/memmem.c (memmem): Use lowercase variable names. Tab
42759         indentation.
42760
42761 2007-12-23  Bruno Haible  <bruno@clisp.org>
42762
42763         * lib/c-strcasestr.c: Add more comments.
42764         * lib/c-strstr.c: Likewise.
42765         * lib/mbscasestr.c: Likewise.
42766         * lib/mbsstr.c: Likewise.
42767         * lib/strcasestr.c: Likewise.
42768         * lib/memmem.c: Likewise.
42769
42770 2007-12-23  Bruno Haible  <bruno@clisp.org>
42771
42772         * tests/test-memmem.c: Include <string.h> first.
42773
42774 2007-12-22  Bruno Haible  <bruno@clisp.org>
42775
42776         * gnulib-tool (func_create_testdir): Change $auxdir while generating
42777         the contents of $testsbase.
42778         Reported by Ralf Wildenhues.
42779
42780 2007-12-22  Bruno Haible  <bruno@clisp.org>
42781
42782         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
42783         two variables local_ldadd_before, local_ldadd_last.
42784
42785 2007-12-20  Eric Blake  <ebb9@byu.net>
42786
42787         Work around circular library issue when cross-compiling.
42788         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
42789         that progname.o does not need to pull in rpl_memcmp.
42790
42791 2007-12-19  Eric Blake  <ebb9@byu.net>
42792
42793         Fix memmem to avoid O(n^2) worst-case complexity.
42794         * lib/memmem.c (knuth_morris_pratt): New function.
42795         (memmem): Use it if first few naive iterations fail.
42796         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
42797         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
42798         * modules/memchr (License): Likewise.
42799         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
42800         malloca.
42801         * tests/test-memmem.c: Rewrite, borrowing ideas from
42802         test-mbsstr1.c; the old version wouldn't even compile!
42803         * modules/memmem-tests: New file.
42804         * lib/string.in.h (rpl_memmem): Add declaration.
42805         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
42806         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
42807         REPLACE_MEMMEM.
42808
42809 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
42810
42811         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
42812         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
42813         before any system include files, and undef after them all.  This
42814         should fix a problem on VMS reported by John E. Malmberg in
42815         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
42816
42817 2007-12-17  Eric Blake  <ebb9@byu.net>
42818
42819         Revert addition of verify, for BSD/OS.
42820         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
42821         can't handle large files, for the sake of obsolete platforms.
42822         * modules/fseeko (Depends-on): Remove verify.
42823         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
42824         * doc/functions/ftello.texi (ftello): Likewise.
42825         * doc/functions/fgetpos.texi (fgetpos): Likewise.
42826         Reported by Larry Jones.
42827
42828 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
42829
42830         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
42831         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
42832
42833 2007-12-17  Jim Meyering  <meyering@redhat.com>
42834
42835         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
42836         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
42837         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
42838         * modules/getcwd (Depends-on): Add openat.
42839         Reported by Petr Salinger.
42840
42841 2007-12-17  Bruno Haible  <bruno@clisp.org>
42842
42843         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
42844         avoid a segmentation fault of the configure test on x86_64 systems.
42845
42846 2007-12-15  Jim Meyering  <meyering@redhat.com>
42847
42848         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
42849
42850 2007-12-13  Eric Blake  <ebb9@byu.net>
42851
42852         Another fseek test.
42853         * tests/test-fseek.c (main): Also test ungetc handling.
42854         * tests/test-fseeko.c (main): Likewise.
42855         * modules/fseeko (Depends-on): Add verify.
42856         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
42857         large.
42858         Reported by Larry Jones.
42859
42860         Fix fseeko on mingw.
42861         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
42862         seek.
42863
42864         Beef up fseek tests.
42865         * tests/test-fseek.c (main): Also test eof handling.
42866         * tests/test-fseeko.c (main): Likewise.
42867         Reported by Larry Jones.
42868
42869 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
42870
42871         Fix fseeko on BSD-based platforms.
42872         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
42873         successful seek.
42874
42875 2007-12-12  Eric Blake  <ebb9@byu.net>
42876
42877         Allow circular dependency of separate libtests.a
42878         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
42879         when use_libtests.
42880
42881 2007-12-11  Eric Blake  <ebb9@byu.net>
42882
42883         Fix bug with -0.0L in previous patch.
42884         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
42885         * tests/test-isnan.c (main): Also test on zeroes.
42886         * tests/test-isnanf.c (main): Likewise.
42887         * tests/test-isnanl.h (main): Likewise.
42888
42889         Detect pseudo-denormals on x86 even when cross-compiling.
42890         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
42891         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
42892         invalid bit patterns that happen to satisfy ==.
42893
42894         Avoid link failures with separate libtests.a.
42895         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
42896         last, to satisfy circular dependencies.
42897
42898 2007-12-11  Eric Blake  <ebb9@byu.net>
42899         and Bruno Haible  <bruno@clisp.org>
42900
42901         Fix OpenBSD 4.0 <float.h> handling of long double.
42902         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
42903         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
42904         * doc/headers/float.texi (float.h): Document OpenBSD bug.
42905
42906 2007-12-11  Jim Meyering  <meyering@redhat.com>
42907
42908         * users.txt: Add libvirt.
42909
42910         Support versions of autoconf prior to 2.59c.
42911         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
42912         if it is not already defined.
42913
42914 2007-12-09  Bruno Haible  <bruno@clisp.org>
42915
42916         Let 'gnulib-tool --import' collect sources needed for the tests in
42917         tests/ rather than in lib/.
42918         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
42919         argument. If true, add rules to generate libtests.a, and put libtests.a
42920         into $(LDADD). Consider source files in subdirectories and set
42921         uses_subdirs.
42922         (func_emit_initmacro_start, func_emit_initmacro_end,
42923         func_emit_initmacro_done): Pass all arguments explicitly.
42924         (func_import): Determine two module lists main_modules,
42925         testsrelated_modules. Determine use_libtests. Determine two variables
42926         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
42927         instead of just sed_transform_lib_file. Determine two variables
42928         main_files and testsrelated_files. Compute 'files' as the union of
42929         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
42930         func_add_or_update. In the generated gnulib-comp.m4, collect the
42931         object files for tests/ in different variables than those for lib/.
42932         Substitute LIBTESTS_LIBDEPS.
42933         (func_create_testdir): Combine the uses_subdirs results from
42934         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
42935
42936 2007-12-09  Bruno Haible  <bruno@clisp.org>
42937
42938         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
42939         the build-aux directory.
42940
42941 2007-12-09  Bruno Haible  <bruno@clisp.org>
42942
42943         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
42944         introduced on 2006-09-09.
42945
42946 2007-12-07  Jim Meyering  <meyering@redhat.com>
42947
42948         Let these macros work also with autoconf-2.59.
42949         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
42950         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
42951         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
42952
42953 2007-12-06  Jim Meyering  <meyering@redhat.com>
42954
42955         Avoid a configure-time syntax error in gl_FUNC_ACL.
42956         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
42957         function in each branch, before testing the cache variable.
42958
42959 2007-12-04  Eric Blake  <ebb9@byu.net>
42960
42961         Make scripts executable.
42962         * build-aux/config.guess: Add execute permissions.
42963         * build-aux/config.sub: Likewise.
42964         * build-aux/gendocs.sh: Likewise.
42965
42966         Fix frexp on mingw.
42967         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
42968         cross-compiling.
42969         * doc/functions/frexp.texi (frexp): Document the bug.
42970
42971         Make cygwin fseeko check more reliable.
42972         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
42973         version numbers, rather than unrelated feature check.
42974         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
42975         * doc/functions/ftello.texi (ftello): Likewise.
42976         Reported by Bruno Haible.
42977
42978         * m4/strerror.m4: Bump version number.
42979
42980 2007-12-03  Bruno Haible  <bruno@clisp.org>
42981
42982         * doc/functions/mprotect.texi: Mention the mingw problem.
42983
42984 2007-12-03  Eric Blake  <ebb9@byu.net>
42985
42986         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
42987         REPLACE_STRERROR is initialized before this macro.
42988
42989 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
42990
42991         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
42992         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
42993         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
42994         put -lsec in even for programs other than 'ls'.  This fixes a problem
42995         for gettext reported by Bruno Haible in
42996         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
42997         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
42998         Add support for Solaris 10.  This isn't efficient, but should get the
42999         job done for now.
43000
43001 2007-12-03  James Youngman  <jay@gnu.org>
43002
43003         * doc/regexprops-generic.texi: change "an close-group" to "a
43004         close-group" and "illegal" to "not allowed".
43005
43006 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43007
43008         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
43009         pr_byname.h. Needed for the rare case when the maintainer has done
43010         "make maintainer-clean" in the source directory and then attempts a
43011         build outside the source directory.
43012         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
43013         scripts_byname.h.
43014
43015 2007-12-02  Martin Lambers <marlam@marlam.de>
43016             Bruno Haible  <bruno@clisp.org>
43017
43018         * lib/getpagesize.h: Remove file.
43019         * lib/unistd.in.h: Include declaration of getpagesize here.
43020         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
43021         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
43022         HAVE_SYS_PARAM_H.
43023         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
43024         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
43025         * modules/getpagesize (Files): Remove lib/getpagesize.h.
43026         (Depends-on): Add unistd.
43027         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43028         (Include): Use <unistd.h> instead of getpagesize.h.
43029         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
43030         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
43031         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
43032         gl_GETPAGESIZE invocation, already handled by module dependency.
43033         * lib/pagealign_alloc.c: Don't include getpagesize.h.
43034
43035 2007-12-02  Bruno Haible  <bruno@clisp.org>
43036
43037         * modules/strings-tests: New file.
43038         * tests/test-strings.c: New file.
43039
43040         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
43041         * lib/strings.in.h: New file.
43042         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
43043         * m4/strings_h.m4: New file.
43044         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
43045         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
43046         * modules/strings: New file.
43047         * modules/string (Makefile.am): Update.
43048         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
43049         Reported by Karl Berry.
43050
43051 2007-12-01  Eric Blake  <ebb9@byu.net>
43052
43053         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
43054         accomodate fix in cygwin 1.5.25.
43055
43056 2007-12-01  Jim Meyering  <meyering@redhat.com>
43057
43058         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
43059         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
43060         that would inhibit utf8-optimization of a regexp containing line-
43061         or buffer-anchors, e.g., `^', `$'.
43062
43063 2007-11-30  Bruno Haible  <bruno@clisp.org>
43064
43065         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
43066         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
43067         glthread_recursive_lock_init.
43068         * lib/lock.c (glthread_recursive_lock_init)
43069         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
43070         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43071
43072 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
43073
43074         New function qset_acl, like set_acl but with syscall semantics.
43075         * lib/acl.h (qset_acl): New decl.
43076         * lib/acl.c (qset_acl): New function.
43077         (set_acl): Use new function.  Use more-consistent diagnostics.
43078
43079 2007-11-28  Jim Meyering  <meyering@redhat.com>
43080
43081         * modules/physmem (License): Change from GPL to LGPLv2+.
43082
43083 2007-11-26  Bruno Haible  <bruno@clisp.org>
43084
43085         * lib/vasnprintf.c (decode_long_double): Don't abort if the
43086         'long double' type has excess precision.
43087         Reported by Jim Meyering in
43088         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
43089
43090 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43091
43092         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
43093         Sync from <http://gnu.org/licenses>.
43094         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
43095         with license text from same location.
43096         * doc/maintain.texi, doc/standards.texi:  Sync from
43097         <http://savannah.gnu.org/projects/gnustandards>.
43098
43099 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
43100         and Jim Meyering  <meyering@redhat.com>
43101
43102         Adjust getdate' grammar to accept a slightly more regular language.
43103         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
43104         Before, the former was rejected.
43105         * lib/getdate.y (digits_to_date_time): New function, factored
43106         out of ...
43107         (number): ...here.  Just call digits_to_date_time.
43108         (hybrid): New non-terminal to handle an <unsigned number,
43109         signed relative offset> sequence consistently.
43110
43111 2007-11-18  Jim Meyering  <meyering@redhat.com>
43112
43113         Pull my changes from coreutils:
43114         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
43115         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
43116         use of $gnulib_tool_option_extras, so that it's separated from the
43117         preceding argument.
43118
43119         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
43120         * build-aux/bootstrap (cp_mark_as_generated): Create any required
43121         parent destination directories before copying a file into place.
43122
43123 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
43124
43125         bootstrap: work also with 4-argument variant of AC_INIT
43126         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
43127
43128 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
43129
43130         Port test-getaddrinfo to Solaris.
43131         Problem reported by Bruno Haible in
43132         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
43133         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
43134         explanation of setting 'hints'.
43135         Don't reject an implementation merely because it returns EAI_SERVICE.
43136         (EAI_SERVICE): Define to 0 if not defined.
43137
43138 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
43139
43140         The license of gnu-make and posix-shell is now "GPLed build tool".
43141         * modules/gnu-make (License): Likewise.
43142         * modules/posix-shell (License): Likewise.
43143
43144         New module posix-shell, for determining a POSIX shell
43145         or perhaps something that is close enough to a POSIX shell.
43146         * m4/posix-shell.m4: New file.
43147         * modules/posix-shell: New file.
43148
43149         * MODULES.html.sh: Mention new module.
43150
43151         New module gnu-make, for determining whether we're using GNU Make.
43152         * m4/gnu-make.m4: New file.
43153         * modules/gnu-make: New file.
43154         * MODULES.html.sh: Mention new module.
43155
43156 2007-11-14  Jim Meyering  <meyering@redhat.com>
43157
43158         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
43159         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
43160         use this macro to create a function _definition_.
43161         Remove useless "#undef ARGMATCH_DIE".
43162
43163 2007-11-14  Bruno Haible  <bruno@clisp.org>
43164
43165         * lib/config.charset: Update for OpenBSD 4.1.
43166         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
43167
43168 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
43169
43170         Document 64-bit #if problems in stdint.texi.
43171         * doc/headers/stdint.texi (stdint.h): Mention problems with
43172         64-bit-#if, and how to work around them.
43173
43174         Don't insist on 'long long int' support in the preprocessor.  It
43175         breaks too many things.  For example, PRIdMAX still uses a 'long
43176         long int' format with the latest Sun compiler, even though
43177         HAVE_LONG_LONG_INT isn't defined due to that compiler's
43178         preprocessor problem.  This causes the latest coreutils to dump
43179         core on Solaris 10 sparc with the Sun C compiler.
43180         Instead, fix the 2007-10-16 problem in a different way, by evaluating
43181         the troublesome expressions at configure-time, not at #if-time.
43182         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
43183         preprocessor.
43184         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
43185         compile-time C checks, done at 'configure'-time.
43186         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
43187         * modules/inttypes (Makefile): Substitute the new symbols that
43188         gl_INTTYPES_H now generates.
43189         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
43190
43191 2007-11-12  Bruno Haible  <bruno@clisp.org>
43192
43193         Tests for Unicode character classification functions.
43194
43195         * modules/unictype/bidicategory-byname-tests: New file.
43196         * modules/unictype/bidicategory-name-tests: New file.
43197         * modules/unictype/bidicategory-of-tests: New file.
43198         * modules/unictype/bidicategory-test-tests: New file.
43199         * modules/unictype/block-list-tests: New file.
43200         * modules/unictype/block-of-tests: New file.
43201         * modules/unictype/block-test-tests: New file.
43202         * modules/unictype/category-C-tests: New file.
43203         * modules/unictype/category-Cc-tests: New file.
43204         * modules/unictype/category-Cf-tests: New file.
43205         * modules/unictype/category-Cn-tests: New file.
43206         * modules/unictype/category-Co-tests: New file.
43207         * modules/unictype/category-Cs-tests: New file.
43208         * modules/unictype/category-L-tests: New file.
43209         * modules/unictype/category-Ll-tests: New file.
43210         * modules/unictype/category-Lm-tests: New file.
43211         * modules/unictype/category-Lo-tests: New file.
43212         * modules/unictype/category-Lt-tests: New file.
43213         * modules/unictype/category-Lu-tests: New file.
43214         * modules/unictype/category-M-tests: New file.
43215         * modules/unictype/category-Mc-tests: New file.
43216         * modules/unictype/category-Me-tests: New file.
43217         * modules/unictype/category-Mn-tests: New file.
43218         * modules/unictype/category-N-tests: New file.
43219         * modules/unictype/category-Nd-tests: New file.
43220         * modules/unictype/category-Nl-tests: New file.
43221         * modules/unictype/category-No-tests: New file.
43222         * modules/unictype/category-P-tests: New file.
43223         * modules/unictype/category-Pc-tests: New file.
43224         * modules/unictype/category-Pd-tests: New file.
43225         * modules/unictype/category-Pe-tests: New file.
43226         * modules/unictype/category-Pf-tests: New file.
43227         * modules/unictype/category-Pi-tests: New file.
43228         * modules/unictype/category-Po-tests: New file.
43229         * modules/unictype/category-Ps-tests: New file.
43230         * modules/unictype/category-S-tests: New file.
43231         * modules/unictype/category-Sc-tests: New file.
43232         * modules/unictype/category-Sk-tests: New file.
43233         * modules/unictype/category-Sm-tests: New file.
43234         * modules/unictype/category-So-tests: New file.
43235         * modules/unictype/category-Z-tests: New file.
43236         * modules/unictype/category-Zl-tests: New file.
43237         * modules/unictype/category-Zp-tests: New file.
43238         * modules/unictype/category-Zs-tests: New file.
43239         * modules/unictype/category-and-not-tests: New file.
43240         * modules/unictype/category-and-tests: New file.
43241         * modules/unictype/category-byname-tests: New file.
43242         * modules/unictype/category-name-tests: New file.
43243         * modules/unictype/category-none-tests: New file.
43244         * modules/unictype/category-of-tests: New file.
43245         * modules/unictype/category-or-tests: New file.
43246         * modules/unictype/category-test-withtable-tests: New file.
43247         * modules/unictype/combining-class-tests: New file.
43248         * modules/unictype/ctype-alnum-tests: New file.
43249         * modules/unictype/ctype-alpha-tests: New file.
43250         * modules/unictype/ctype-blank-tests: New file.
43251         * modules/unictype/ctype-cntrl-tests: New file.
43252         * modules/unictype/ctype-digit-tests: New file.
43253         * modules/unictype/ctype-graph-tests: New file.
43254         * modules/unictype/ctype-lower-tests: New file.
43255         * modules/unictype/ctype-print-tests: New file.
43256         * modules/unictype/ctype-punct-tests: New file.
43257         * modules/unictype/ctype-space-tests: New file.
43258         * modules/unictype/ctype-upper-tests: New file.
43259         * modules/unictype/ctype-xdigit-tests: New file.
43260         * modules/unictype/decimal-digit-tests: New file.
43261         * modules/unictype/digit-tests: New file.
43262         * modules/unictype/mirror-tests: New file.
43263         * modules/unictype/numeric-tests: New file.
43264         * modules/unictype/property-alphabetic-tests: New file.
43265         * modules/unictype/property-ascii-hex-digit-tests: New file.
43266         * modules/unictype/property-bidi-arabic-digit-tests: New file.
43267         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
43268         * modules/unictype/property-bidi-block-separator-tests: New file.
43269         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
43270         * modules/unictype/property-bidi-common-separator-tests: New file.
43271         * modules/unictype/property-bidi-control-tests: New file.
43272         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
43273         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
43274         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
43275         * modules/unictype/property-bidi-european-digit-tests: New file.
43276         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
43277         * modules/unictype/property-bidi-left-to-right-tests: New file.
43278         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
43279         * modules/unictype/property-bidi-other-neutral-tests: New file.
43280         * modules/unictype/property-bidi-pdf-tests: New file.
43281         * modules/unictype/property-bidi-segment-separator-tests: New file.
43282         * modules/unictype/property-bidi-whitespace-tests: New file.
43283         * modules/unictype/property-byname-tests: New file.
43284         * modules/unictype/property-combining-tests: New file.
43285         * modules/unictype/property-composite-tests: New file.
43286         * modules/unictype/property-currency-symbol-tests: New file.
43287         * modules/unictype/property-dash-tests: New file.
43288         * modules/unictype/property-decimal-digit-tests: New file.
43289         * modules/unictype/property-default-ignorable-code-point-tests: New file.
43290         * modules/unictype/property-deprecated-tests: New file.
43291         * modules/unictype/property-diacritic-tests: New file.
43292         * modules/unictype/property-extender-tests: New file.
43293         * modules/unictype/property-format-control-tests: New file.
43294         * modules/unictype/property-grapheme-base-tests: New file.
43295         * modules/unictype/property-grapheme-extend-tests: New file.
43296         * modules/unictype/property-grapheme-link-tests: New file.
43297         * modules/unictype/property-hex-digit-tests: New file.
43298         * modules/unictype/property-hyphen-tests: New file.
43299         * modules/unictype/property-id-continue-tests: New file.
43300         * modules/unictype/property-id-start-tests: New file.
43301         * modules/unictype/property-ideographic-tests: New file.
43302         * modules/unictype/property-ids-binary-operator-tests: New file.
43303         * modules/unictype/property-ids-trinary-operator-tests: New file.
43304         * modules/unictype/property-ignorable-control-tests: New file.
43305         * modules/unictype/property-iso-control-tests: New file.
43306         * modules/unictype/property-join-control-tests: New file.
43307         * modules/unictype/property-left-of-pair-tests: New file.
43308         * modules/unictype/property-line-separator-tests: New file.
43309         * modules/unictype/property-logical-order-exception-tests: New file.
43310         * modules/unictype/property-lowercase-tests: New file.
43311         * modules/unictype/property-math-tests: New file.
43312         * modules/unictype/property-non-break-tests: New file.
43313         * modules/unictype/property-not-a-character-tests: New file.
43314         * modules/unictype/property-numeric-tests: New file.
43315         * modules/unictype/property-other-alphabetic-tests: New file.
43316         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
43317         * modules/unictype/property-other-grapheme-extend-tests: New file.
43318         * modules/unictype/property-other-id-continue-tests: New file.
43319         * modules/unictype/property-other-id-start-tests: New file.
43320         * modules/unictype/property-other-lowercase-tests: New file.
43321         * modules/unictype/property-other-math-tests: New file.
43322         * modules/unictype/property-other-uppercase-tests: New file.
43323         * modules/unictype/property-paired-punctuation-tests: New file.
43324         * modules/unictype/property-paragraph-separator-tests: New file.
43325         * modules/unictype/property-pattern-syntax-tests: New file.
43326         * modules/unictype/property-pattern-white-space-tests: New file.
43327         * modules/unictype/property-private-use-tests: New file.
43328         * modules/unictype/property-punctuation-tests: New file.
43329         * modules/unictype/property-quotation-mark-tests: New file.
43330         * modules/unictype/property-radical-tests: New file.
43331         * modules/unictype/property-sentence-terminal-tests: New file.
43332         * modules/unictype/property-soft-dotted-tests: New file.
43333         * modules/unictype/property-space-tests: New file.
43334         * modules/unictype/property-terminal-punctuation-tests: New file.
43335         * modules/unictype/property-test-tests: New file.
43336         * modules/unictype/property-titlecase-tests: New file.
43337         * modules/unictype/property-unassigned-code-value-tests: New file.
43338         * modules/unictype/property-unified-ideograph-tests: New file.
43339         * modules/unictype/property-uppercase-tests: New file.
43340         * modules/unictype/property-variation-selector-tests: New file.
43341         * modules/unictype/property-white-space-tests: New file.
43342         * modules/unictype/property-xid-continue-tests: New file.
43343         * modules/unictype/property-xid-start-tests: New file.
43344         * modules/unictype/property-zero-width-tests: New file.
43345         * modules/unictype/scripts-tests: New file.
43346         * modules/unictype/syntax-c-ident-tests: New file.
43347         * modules/unictype/syntax-c-whitespace-tests: New file.
43348         * modules/unictype/syntax-java-ident-tests: New file.
43349         * modules/unictype/syntax-java-whitespace-tests: New file.
43350         * tests/unictype/test-bidi_byname.c: New file.
43351         * tests/unictype/test-bidi_name.c: New file.
43352         * tests/unictype/test-bidi_of.c: New file.
43353         * tests/unictype/test-bidi_test.c: New file.
43354         * tests/unictype/test-block_list.c: New file.
43355         * tests/unictype/test-block_of.c: New file.
43356         * tests/unictype/test-block_test.c: New file.
43357         * tests/unictype/test-categ_and.c: New file.
43358         * tests/unictype/test-categ_and_not.c: New file.
43359         * tests/unictype/test-categ_byname.c: New file.
43360         * tests/unictype/test-categ_name.c: New file.
43361         * tests/unictype/test-categ_none.c: New file.
43362         * tests/unictype/test-categ_of.c: New file.
43363         * tests/unictype/test-categ_or.c: New file.
43364         * tests/unictype/test-categ_test_withtable.c: New file.
43365         * tests/unictype/test-combining.c: New file.
43366         * tests/unictype/test-decdigit.c: New file.
43367         * tests/unictype/test-digit.c: New file.
43368         * tests/unictype/test-mirror.c: New file.
43369         * tests/unictype/test-numeric.c: New file.
43370         * tests/unictype/test-pr_byname.c: New file.
43371         * tests/unictype/test-pr_test.c: New file.
43372         * tests/unictype/test-predicate-part1.h: New file.
43373         * tests/unictype/test-predicate-part2.h: New file.
43374         * tests/unictype/test-scripts.c: New file.
43375         * tests/unictype/test-sy_c_ident.c: New file.
43376         * tests/unictype/test-sy_java_ident.c: New file.
43377
43378         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
43379         for Unicode 5.0.0.
43380         * tests/unictype/test-categ_Cc.c: Likewise.
43381         * tests/unictype/test-categ_Cf.c: Likewise.
43382         * tests/unictype/test-categ_Cn.c: Likewise.
43383         * tests/unictype/test-categ_Co.c: Likewise.
43384         * tests/unictype/test-categ_Cs.c: Likewise.
43385         * tests/unictype/test-categ_L.c: Likewise.
43386         * tests/unictype/test-categ_Ll.c: Likewise.
43387         * tests/unictype/test-categ_Lm.c: Likewise.
43388         * tests/unictype/test-categ_Lo.c: Likewise.
43389         * tests/unictype/test-categ_Lt.c: Likewise.
43390         * tests/unictype/test-categ_Lu.c: Likewise.
43391         * tests/unictype/test-categ_M.c: Likewise.
43392         * tests/unictype/test-categ_Mc.c: Likewise.
43393         * tests/unictype/test-categ_Me.c: Likewise.
43394         * tests/unictype/test-categ_Mn.c: Likewise.
43395         * tests/unictype/test-categ_N.c: Likewise.
43396         * tests/unictype/test-categ_Nd.c: Likewise.
43397         * tests/unictype/test-categ_Nl.c: Likewise.
43398         * tests/unictype/test-categ_No.c: Likewise.
43399         * tests/unictype/test-categ_P.c: Likewise.
43400         * tests/unictype/test-categ_Pc.c: Likewise.
43401         * tests/unictype/test-categ_Pd.c: Likewise.
43402         * tests/unictype/test-categ_Pe.c: Likewise.
43403         * tests/unictype/test-categ_Pf.c: Likewise.
43404         * tests/unictype/test-categ_Pi.c: Likewise.
43405         * tests/unictype/test-categ_Po.c: Likewise.
43406         * tests/unictype/test-categ_Ps.c: Likewise.
43407         * tests/unictype/test-categ_S.c: Likewise.
43408         * tests/unictype/test-categ_Sc.c: Likewise.
43409         * tests/unictype/test-categ_Sk.c: Likewise.
43410         * tests/unictype/test-categ_Sm.c: Likewise.
43411         * tests/unictype/test-categ_So.c: Likewise.
43412         * tests/unictype/test-categ_Z.c: Likewise.
43413         * tests/unictype/test-categ_Zl.c: Likewise.
43414         * tests/unictype/test-categ_Zp.c: Likewise.
43415         * tests/unictype/test-categ_Zs.c: Likewise.
43416         * tests/unictype/test-ctype_alnum.c: Likewise.
43417         * tests/unictype/test-ctype_alpha.c: Likewise.
43418         * tests/unictype/test-ctype_blank.c: Likewise.
43419         * tests/unictype/test-ctype_cntrl.c: Likewise.
43420         * tests/unictype/test-ctype_digit.c: Likewise.
43421         * tests/unictype/test-ctype_graph.c: Likewise.
43422         * tests/unictype/test-ctype_lower.c: Likewise.
43423         * tests/unictype/test-ctype_print.c: Likewise.
43424         * tests/unictype/test-ctype_punct.c: Likewise.
43425         * tests/unictype/test-ctype_space.c: Likewise.
43426         * tests/unictype/test-ctype_upper.c: Likewise.
43427         * tests/unictype/test-ctype_xdigit.c: Likewise.
43428         * tests/unictype/test-decdigit.h: Likewise.
43429         * tests/unictype/test-digit.h: Likewise.
43430         * tests/unictype/test-numeric.h: Likewise.
43431         * tests/unictype/test-pr_alphabetic.c: Likewise.
43432         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
43433         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
43434         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
43435         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
43436         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
43437         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
43438         * tests/unictype/test-pr_bidi_control.c: Likewise.
43439         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
43440         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
43441         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
43442         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
43443         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
43444         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
43445         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
43446         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
43447         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
43448         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
43449         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
43450         * tests/unictype/test-pr_combining.c: Likewise.
43451         * tests/unictype/test-pr_composite.c: Likewise.
43452         * tests/unictype/test-pr_currency_symbol.c: Likewise.
43453         * tests/unictype/test-pr_dash.c: Likewise.
43454         * tests/unictype/test-pr_decimal_digit.c: Likewise.
43455         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
43456         * tests/unictype/test-pr_deprecated.c: Likewise.
43457         * tests/unictype/test-pr_diacritic.c: Likewise.
43458         * tests/unictype/test-pr_extender.c: Likewise.
43459         * tests/unictype/test-pr_format_control.c: Likewise.
43460         * tests/unictype/test-pr_grapheme_base.c: Likewise.
43461         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
43462         * tests/unictype/test-pr_grapheme_link.c: Likewise.
43463         * tests/unictype/test-pr_hex_digit.c: Likewise.
43464         * tests/unictype/test-pr_hyphen.c: Likewise.
43465         * tests/unictype/test-pr_id_continue.c: Likewise.
43466         * tests/unictype/test-pr_id_start.c: Likewise.
43467         * tests/unictype/test-pr_ideographic.c: Likewise.
43468         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
43469         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
43470         * tests/unictype/test-pr_ignorable_control.c: Likewise.
43471         * tests/unictype/test-pr_iso_control.c: Likewise.
43472         * tests/unictype/test-pr_join_control.c: Likewise.
43473         * tests/unictype/test-pr_left_of_pair.c: Likewise.
43474         * tests/unictype/test-pr_line_separator.c: Likewise.
43475         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
43476         * tests/unictype/test-pr_lowercase.c: Likewise.
43477         * tests/unictype/test-pr_math.c: Likewise.
43478         * tests/unictype/test-pr_non_break.c: Likewise.
43479         * tests/unictype/test-pr_not_a_character.c: Likewise.
43480         * tests/unictype/test-pr_numeric.c: Likewise.
43481         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
43482         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
43483         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
43484         * tests/unictype/test-pr_other_id_continue.c: Likewise.
43485         * tests/unictype/test-pr_other_id_start.c: Likewise.
43486         * tests/unictype/test-pr_other_lowercase.c: Likewise.
43487         * tests/unictype/test-pr_other_math.c: Likewise.
43488         * tests/unictype/test-pr_other_uppercase.c: Likewise.
43489         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
43490         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
43491         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
43492         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
43493         * tests/unictype/test-pr_private_use.c: Likewise.
43494         * tests/unictype/test-pr_punctuation.c: Likewise.
43495         * tests/unictype/test-pr_quotation_mark.c: Likewise.
43496         * tests/unictype/test-pr_radical.c: Likewise.
43497         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
43498         * tests/unictype/test-pr_soft_dotted.c: Likewise.
43499         * tests/unictype/test-pr_space.c: Likewise.
43500         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
43501         * tests/unictype/test-pr_titlecase.c: Likewise.
43502         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
43503         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
43504         * tests/unictype/test-pr_uppercase.c: Likewise.
43505         * tests/unictype/test-pr_variation_selector.c: Likewise.
43506         * tests/unictype/test-pr_white_space.c: Likewise.
43507         * tests/unictype/test-pr_xid_continue.c: Likewise.
43508         * tests/unictype/test-pr_xid_start.c: Likewise.
43509         * tests/unictype/test-pr_zero_width.c: Likewise.
43510         * tests/unictype/test-sy_c_whitespace.c: Likewise.
43511         * tests/unictype/test-sy_java_whitespace.c: Likewise.
43512
43513 2007-11-12  Bruno Haible  <bruno@clisp.org>
43514
43515         Unicode character classification functions.
43516         * lib/unictype.h: New file.
43517         * modules/unictype/base: New file.
43518         * modules/unictype/category-L: New file.
43519         * modules/unictype/category-Lu: New file.
43520         * modules/unictype/category-Ll: New file.
43521         * modules/unictype/category-Lt: New file.
43522         * modules/unictype/category-Lm: New file.
43523         * modules/unictype/category-Lo: New file.
43524         * modules/unictype/category-M: New file.
43525         * modules/unictype/category-Mn: New file.
43526         * modules/unictype/category-Mc: New file.
43527         * modules/unictype/category-Me: New file.
43528         * modules/unictype/category-N: New file.
43529         * modules/unictype/category-Nd: New file.
43530         * modules/unictype/category-Nl: New file.
43531         * modules/unictype/category-No: New file.
43532         * modules/unictype/category-P: New file.
43533         * modules/unictype/category-Pc: New file.
43534         * modules/unictype/category-Pd: New file.
43535         * modules/unictype/category-Ps: New file.
43536         * modules/unictype/category-Pe: New file.
43537         * modules/unictype/category-Pi: New file.
43538         * modules/unictype/category-Pf: New file.
43539         * modules/unictype/category-Po: New file.
43540         * modules/unictype/category-S: New file.
43541         * modules/unictype/category-Sm: New file.
43542         * modules/unictype/category-Sc: New file.
43543         * modules/unictype/category-Sk: New file.
43544         * modules/unictype/category-So: New file.
43545         * modules/unictype/category-Z: New file.
43546         * modules/unictype/category-Zs: New file.
43547         * modules/unictype/category-Zl: New file.
43548         * modules/unictype/category-Zp: New file.
43549         * modules/unictype/category-C: New file.
43550         * modules/unictype/category-Cc: New file.
43551         * modules/unictype/category-Cf: New file.
43552         * modules/unictype/category-Cs: New file.
43553         * modules/unictype/category-Co: New file.
43554         * modules/unictype/category-Cn: New file.
43555         * modules/unictype/category-or: New file.
43556         * modules/unictype/category-of: New file.
43557         * modules/unictype/category-test: New file.
43558         * modules/unictype/category-test-withtable: New file.
43559         * modules/unictype/category-byname: New file.
43560         * modules/unictype/category-none: New file.
43561         * modules/unictype/category-and: New file.
43562         * modules/unictype/category-and-not: New file.
43563         * modules/unictype/category-name: New file.
43564         * modules/unictype/combining-class: New file.
43565         * modules/unictype/category-all: New file.
43566         * modules/unictype/bidicategory-all: New file.
43567         * modules/unictype/bidicategory-byname: New file.
43568         * modules/unictype/bidicategory-name: New file.
43569         * modules/unictype/bidicategory-of: New file.
43570         * modules/unictype/bidicategory-test: New file.
43571         * modules/unictype/decimal-digit: New file.
43572         * modules/unictype/digit: New file.
43573         * modules/unictype/numeric: New file.
43574         * modules/unictype/mirror: New file.
43575         * modules/unictype/property-white-space: New file.
43576         * modules/unictype/property-alphabetic: New file.
43577         * modules/unictype/property-other-alphabetic: New file.
43578         * modules/unictype/property-not-a-character: New file.
43579         * modules/unictype/property-default-ignorable-code-point: New file.
43580         * modules/unictype/property-other-default-ignorable-code-point: New
43581         file.
43582         * modules/unictype/property-deprecated: New file.
43583         * modules/unictype/property-logical-order-exception: New file.
43584         * modules/unictype/property-variation-selector: New file.
43585         * modules/unictype/property-private-use: New file.
43586         * modules/unictype/property-unassigned-code-value: New file.
43587         * modules/unictype/property-uppercase: New file.
43588         * modules/unictype/property-other-uppercase: New file.
43589         * modules/unictype/property-lowercase: New file.
43590         * modules/unictype/property-other-lowercase: New file.
43591         * modules/unictype/property-titlecase: New file.
43592         * modules/unictype/property-soft-dotted: New file.
43593         * modules/unictype/property-id-start: New file.
43594         * modules/unictype/property-other-id-start: New file.
43595         * modules/unictype/property-id-continue: New file.
43596         * modules/unictype/property-other-id-continue: New file.
43597         * modules/unictype/property-xid-start: New file.
43598         * modules/unictype/property-xid-continue: New file.
43599         * modules/unictype/property-pattern-white-space: New file.
43600         * modules/unictype/property-pattern-syntax: New file.
43601         * modules/unictype/property-join-control: New file.
43602         * modules/unictype/property-grapheme-base: New file.
43603         * modules/unictype/property-grapheme-extend: New file.
43604         * modules/unictype/property-other-grapheme-extend: New file.
43605         * modules/unictype/property-grapheme-link: New file.
43606         * modules/unictype/property-bidi-control: New file.
43607         * modules/unictype/property-bidi-left-to-right: New file.
43608         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
43609         * modules/unictype/property-bidi-arabic-right-to-left: New file.
43610         * modules/unictype/property-bidi-european-digit: New file.
43611         * modules/unictype/property-bidi-eur-num-separator: New file.
43612         * modules/unictype/property-bidi-eur-num-terminator: New file.
43613         * modules/unictype/property-bidi-arabic-digit: New file.
43614         * modules/unictype/property-bidi-common-separator: New file.
43615         * modules/unictype/property-bidi-block-separator: New file.
43616         * modules/unictype/property-bidi-segment-separator: New file.
43617         * modules/unictype/property-bidi-whitespace: New file.
43618         * modules/unictype/property-bidi-non-spacing-mark: New file.
43619         * modules/unictype/property-bidi-boundary-neutral: New file.
43620         * modules/unictype/property-bidi-pdf: New file.
43621         * modules/unictype/property-bidi-embedding-or-override: New file.
43622         * modules/unictype/property-bidi-other-neutral: New file.
43623         * modules/unictype/property-hex-digit: New file.
43624         * modules/unictype/property-ascii-hex-digit: New file.
43625         * modules/unictype/property-ideographic: New file.
43626         * modules/unictype/property-unified-ideograph: New file.
43627         * modules/unictype/property-radical: New file.
43628         * modules/unictype/property-ids-binary-operator: New file.
43629         * modules/unictype/property-ids-trinary-operator: New file.
43630         * modules/unictype/property-zero-width: New file.
43631         * modules/unictype/property-space: New file.
43632         * modules/unictype/property-non-break: New file.
43633         * modules/unictype/property-iso-control: New file.
43634         * modules/unictype/property-format-control: New file.
43635         * modules/unictype/property-dash: New file.
43636         * modules/unictype/property-hyphen: New file.
43637         * modules/unictype/property-punctuation: New file.
43638         * modules/unictype/property-line-separator: New file.
43639         * modules/unictype/property-paragraph-separator: New file.
43640         * modules/unictype/property-quotation-mark: New file.
43641         * modules/unictype/property-sentence-terminal: New file.
43642         * modules/unictype/property-terminal-punctuation: New file.
43643         * modules/unictype/property-currency-symbol: New file.
43644         * modules/unictype/property-math: New file.
43645         * modules/unictype/property-other-math: New file.
43646         * modules/unictype/property-paired-punctuation: New file.
43647         * modules/unictype/property-left-of-pair: New file.
43648         * modules/unictype/property-combining: New file.
43649         * modules/unictype/property-composite: New file.
43650         * modules/unictype/property-decimal-digit: New file.
43651         * modules/unictype/property-numeric: New file.
43652         * modules/unictype/property-diacritic: New file.
43653         * modules/unictype/property-extender: New file.
43654         * modules/unictype/property-ignorable-control: New file.
43655         * modules/unictype/property-test: New file.
43656         * modules/unictype/property-byname: New file.
43657         * modules/unictype/property-all: New file.
43658         * modules/unictype/scripts: New file.
43659         * modules/unictype/scripts-all: New file.
43660         * modules/unictype/block-of: New file.
43661         * modules/unictype/block-test: New file.
43662         * modules/unictype/block-list: New file.
43663         * modules/unictype/block-all: New file.
43664         * modules/unictype/syntax-c-whitespace: New file.
43665         * modules/unictype/syntax-java-whitespace: New file.
43666         * modules/unictype/syntax-c-ident: New file.
43667         * modules/unictype/syntax-java-ident: New file.
43668         * modules/unictype/ctype-alnum: New file.
43669         * modules/unictype/ctype-alpha: New file.
43670         * modules/unictype/ctype-cntrl: New file.
43671         * modules/unictype/ctype-digit: New file.
43672         * modules/unictype/ctype-graph: New file.
43673         * modules/unictype/ctype-lower: New file.
43674         * modules/unictype/ctype-print: New file.
43675         * modules/unictype/ctype-punct: New file.
43676         * modules/unictype/ctype-space: New file.
43677         * modules/unictype/ctype-upper: New file.
43678         * modules/unictype/ctype-xdigit: New file.
43679         * modules/unictype/ctype-blank: New file.
43680         * lib/unictype/bidi_byname.c: New file.
43681         * lib/unictype/bidi_name.c: New file.
43682         * lib/unictype/bidi_of.c: New file.
43683         * lib/unictype/bidi_test.c: New file.
43684         * lib/unictype/bitmap.h: New file.
43685         * lib/unictype/block_test.c: New file.
43686         * lib/unictype/blocks.c: New file.
43687         * lib/unictype/categ_C.c: New file.
43688         * lib/unictype/categ_Cc.c: New file.
43689         * lib/unictype/categ_Cf.c: New file.
43690         * lib/unictype/categ_Cn.c: New file.
43691         * lib/unictype/categ_Co.c: New file.
43692         * lib/unictype/categ_Cs.c: New file.
43693         * lib/unictype/categ_L.c: New file.
43694         * lib/unictype/categ_Ll.c: New file.
43695         * lib/unictype/categ_Lm.c: New file.
43696         * lib/unictype/categ_Lo.c: New file.
43697         * lib/unictype/categ_Lt.c: New file.
43698         * lib/unictype/categ_Lu.c: New file.
43699         * lib/unictype/categ_M.c: New file.
43700         * lib/unictype/categ_Mc.c: New file.
43701         * lib/unictype/categ_Me.c: New file.
43702         * lib/unictype/categ_Mn.c: New file.
43703         * lib/unictype/categ_N.c: New file.
43704         * lib/unictype/categ_Nd.c: New file.
43705         * lib/unictype/categ_Nl.c: New file.
43706         * lib/unictype/categ_No.c: New file.
43707         * lib/unictype/categ_P.c: New file.
43708         * lib/unictype/categ_Pc.c: New file.
43709         * lib/unictype/categ_Pd.c: New file.
43710         * lib/unictype/categ_Pe.c: New file.
43711         * lib/unictype/categ_Pf.c: New file.
43712         * lib/unictype/categ_Pi.c: New file.
43713         * lib/unictype/categ_Po.c: New file.
43714         * lib/unictype/categ_Ps.c: New file.
43715         * lib/unictype/categ_S.c: New file.
43716         * lib/unictype/categ_Sc.c: New file.
43717         * lib/unictype/categ_Sk.c: New file.
43718         * lib/unictype/categ_Sm.c: New file.
43719         * lib/unictype/categ_So.c: New file.
43720         * lib/unictype/categ_Z.c: New file.
43721         * lib/unictype/categ_Zl.c: New file.
43722         * lib/unictype/categ_Zp.c: New file.
43723         * lib/unictype/categ_Zs.c: New file.
43724         * lib/unictype/categ_and.c: New file.
43725         * lib/unictype/categ_and_not.c: New file.
43726         * lib/unictype/categ_byname.c: New file.
43727         * lib/unictype/categ_name.c: New file.
43728         * lib/unictype/categ_none.c: New file.
43729         * lib/unictype/categ_of.c: New file.
43730         * lib/unictype/categ_or.c: New file.
43731         * lib/unictype/categ_test.c: New file.
43732         * lib/unictype/combining.c: New file.
43733         * lib/unictype/ctype_alnum.c: New file.
43734         * lib/unictype/ctype_alpha.c: New file.
43735         * lib/unictype/ctype_blank.c: New file.
43736         * lib/unictype/ctype_cntrl.c: New file.
43737         * lib/unictype/ctype_digit.c: New file.
43738         * lib/unictype/ctype_graph.c: New file.
43739         * lib/unictype/ctype_lower.c: New file.
43740         * lib/unictype/ctype_print.c: New file.
43741         * lib/unictype/ctype_punct.c: New file.
43742         * lib/unictype/ctype_space.c: New file.
43743         * lib/unictype/ctype_upper.c: New file.
43744         * lib/unictype/ctype_xdigit.c: New file.
43745         * lib/unictype/decdigit.c: New file.
43746         * lib/unictype/digit.c: New file.
43747         * lib/unictype/identsyntaxmap.h: New file.
43748         * lib/unictype/mirror.c: New file.
43749         * lib/unictype/numeric.c: New file.
43750         * lib/unictype/pr_alphabetic.c: New file.
43751         * lib/unictype/pr_ascii_hex_digit.c: New file.
43752         * lib/unictype/pr_bidi_arabic_digit.c: New file.
43753         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
43754         * lib/unictype/pr_bidi_block_separator.c: New file.
43755         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
43756         * lib/unictype/pr_bidi_common_separator.c: New file.
43757         * lib/unictype/pr_bidi_control.c: New file.
43758         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
43759         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
43760         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
43761         * lib/unictype/pr_bidi_european_digit.c: New file.
43762         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
43763         * lib/unictype/pr_bidi_left_to_right.c: New file.
43764         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
43765         * lib/unictype/pr_bidi_other_neutral.c: New file.
43766         * lib/unictype/pr_bidi_pdf.c: New file.
43767         * lib/unictype/pr_bidi_segment_separator.c: New file.
43768         * lib/unictype/pr_bidi_whitespace.c: New file.
43769         * lib/unictype/pr_byname.c: New file.
43770         * lib/unictype/pr_byname.gperf: New file.
43771         * lib/unictype/pr_combining.c: New file.
43772         * lib/unictype/pr_composite.c: New file.
43773         * lib/unictype/pr_currency_symbol.c: New file.
43774         * lib/unictype/pr_dash.c: New file.
43775         * lib/unictype/pr_decimal_digit.c: New file.
43776         * lib/unictype/pr_default_ignorable_code_point.c: New file.
43777         * lib/unictype/pr_deprecated.c: New file.
43778         * lib/unictype/pr_diacritic.c: New file.
43779         * lib/unictype/pr_extender.c: New file.
43780         * lib/unictype/pr_format_control.c: New file.
43781         * lib/unictype/pr_grapheme_base.c: New file.
43782         * lib/unictype/pr_grapheme_extend.c: New file.
43783         * lib/unictype/pr_grapheme_link.c: New file.
43784         * lib/unictype/pr_hex_digit.c: New file.
43785         * lib/unictype/pr_hyphen.c: New file.
43786         * lib/unictype/pr_id_continue.c: New file.
43787         * lib/unictype/pr_id_start.c: New file.
43788         * lib/unictype/pr_ideographic.c: New file.
43789         * lib/unictype/pr_ids_binary_operator.c: New file.
43790         * lib/unictype/pr_ids_trinary_operator.c: New file.
43791         * lib/unictype/pr_ignorable_control.c: New file.
43792         * lib/unictype/pr_iso_control.c: New file.
43793         * lib/unictype/pr_join_control.c: New file.
43794         * lib/unictype/pr_left_of_pair.c: New file.
43795         * lib/unictype/pr_line_separator.c: New file.
43796         * lib/unictype/pr_logical_order_exception.c: New file.
43797         * lib/unictype/pr_lowercase.c: New file.
43798         * lib/unictype/pr_math.c: New file.
43799         * lib/unictype/pr_non_break.c: New file.
43800         * lib/unictype/pr_not_a_character.c: New file.
43801         * lib/unictype/pr_numeric.c: New file.
43802         * lib/unictype/pr_other_alphabetic.c: New file.
43803         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
43804         * lib/unictype/pr_other_grapheme_extend.c: New file.
43805         * lib/unictype/pr_other_id_continue.c: New file.
43806         * lib/unictype/pr_other_id_start.c: New file.
43807         * lib/unictype/pr_other_lowercase.c: New file.
43808         * lib/unictype/pr_other_math.c: New file.
43809         * lib/unictype/pr_other_uppercase.c: New file.
43810         * lib/unictype/pr_paired_punctuation.c: New file.
43811         * lib/unictype/pr_paragraph_separator.c: New file.
43812         * lib/unictype/pr_pattern_syntax.c: New file.
43813         * lib/unictype/pr_pattern_white_space.c: New file.
43814         * lib/unictype/pr_private_use.c: New file.
43815         * lib/unictype/pr_punctuation.c: New file.
43816         * lib/unictype/pr_quotation_mark.c: New file.
43817         * lib/unictype/pr_radical.c: New file.
43818         * lib/unictype/pr_sentence_terminal.c: New file.
43819         * lib/unictype/pr_soft_dotted.c: New file.
43820         * lib/unictype/pr_space.c: New file.
43821         * lib/unictype/pr_terminal_punctuation.c: New file.
43822         * lib/unictype/pr_test.c: New file.
43823         * lib/unictype/pr_titlecase.c: New file.
43824         * lib/unictype/pr_unassigned_code_value.c: New file.
43825         * lib/unictype/pr_unified_ideograph.c: New file.
43826         * lib/unictype/pr_uppercase.c: New file.
43827         * lib/unictype/pr_variation_selector.c: New file.
43828         * lib/unictype/pr_white_space.c: New file.
43829         * lib/unictype/pr_xid_continue.c: New file.
43830         * lib/unictype/pr_xid_start.c: New file.
43831         * lib/unictype/pr_zero_width.c: New file.
43832         * lib/unictype/scripts.c: New file.
43833         * lib/unictype/sy_c_ident.c: New file.
43834         * lib/unictype/sy_c_whitespace.c: New file.
43835         * lib/unictype/sy_java_ident.c: New file.
43836         * lib/unictype/sy_java_whitespace.c: New file.
43837
43838         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
43839         Unicode 5.0.0.
43840         * lib/unictype/blocks.h: Likewise.
43841         * lib/unictype/categ_C.h: Likewise.
43842         * lib/unictype/categ_Cc.h: Likewise.
43843         * lib/unictype/categ_Cf.h: Likewise.
43844         * lib/unictype/categ_Cn.h: Likewise.
43845         * lib/unictype/categ_Co.h: Likewise.
43846         * lib/unictype/categ_Cs.h: Likewise.
43847         * lib/unictype/categ_L.h: Likewise.
43848         * lib/unictype/categ_Ll.h: Likewise.
43849         * lib/unictype/categ_Lm.h: Likewise.
43850         * lib/unictype/categ_Lo.h: Likewise.
43851         * lib/unictype/categ_Lt.h: Likewise.
43852         * lib/unictype/categ_Lu.h: Likewise.
43853         * lib/unictype/categ_M.h: Likewise.
43854         * lib/unictype/categ_Mc.h: Likewise.
43855         * lib/unictype/categ_Me.h: Likewise.
43856         * lib/unictype/categ_Mn.h: Likewise.
43857         * lib/unictype/categ_N.h: Likewise.
43858         * lib/unictype/categ_Nd.h: Likewise.
43859         * lib/unictype/categ_Nl.h: Likewise.
43860         * lib/unictype/categ_No.h: Likewise.
43861         * lib/unictype/categ_P.h: Likewise.
43862         * lib/unictype/categ_Pc.h: Likewise.
43863         * lib/unictype/categ_Pd.h: Likewise.
43864         * lib/unictype/categ_Pe.h: Likewise.
43865         * lib/unictype/categ_Pf.h: Likewise.
43866         * lib/unictype/categ_Pi.h: Likewise.
43867         * lib/unictype/categ_Po.h: Likewise.
43868         * lib/unictype/categ_Ps.h: Likewise.
43869         * lib/unictype/categ_S.h: Likewise.
43870         * lib/unictype/categ_Sc.h: Likewise.
43871         * lib/unictype/categ_Sk.h: Likewise.
43872         * lib/unictype/categ_Sm.h: Likewise.
43873         * lib/unictype/categ_So.h: Likewise.
43874         * lib/unictype/categ_Z.h: Likewise.
43875         * lib/unictype/categ_Zl.h: Likewise.
43876         * lib/unictype/categ_Zp.h: Likewise.
43877         * lib/unictype/categ_Zs.h: Likewise.
43878         * lib/unictype/categ_of.h: Likewise.
43879         * lib/unictype/combining.h: Likewise.
43880         * lib/unictype/ctype_alnum.h: Likewise.
43881         * lib/unictype/ctype_alpha.h: Likewise.
43882         * lib/unictype/ctype_blank.h: Likewise.
43883         * lib/unictype/ctype_cntrl.h: Likewise.
43884         * lib/unictype/ctype_digit.h: Likewise.
43885         * lib/unictype/ctype_graph.h: Likewise.
43886         * lib/unictype/ctype_lower.h: Likewise.
43887         * lib/unictype/ctype_print.h: Likewise.
43888         * lib/unictype/ctype_punct.h: Likewise.
43889         * lib/unictype/ctype_space.h: Likewise.
43890         * lib/unictype/ctype_upper.h: Likewise.
43891         * lib/unictype/ctype_xdigit.h: Likewise.
43892         * lib/unictype/decdigit.h: Likewise.
43893         * lib/unictype/digit.h: Likewise.
43894         * lib/unictype/mirror.h: Likewise.
43895         * lib/unictype/numeric.h: Likewise.
43896         * lib/unictype/pr_alphabetic.h: Likewise.
43897         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
43898         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
43899         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
43900         * lib/unictype/pr_bidi_block_separator.h: Likewise.
43901         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
43902         * lib/unictype/pr_bidi_common_separator.h: Likewise.
43903         * lib/unictype/pr_bidi_control.h: Likewise.
43904         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
43905         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
43906         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
43907         * lib/unictype/pr_bidi_european_digit.h: Likewise.
43908         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
43909         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
43910         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
43911         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
43912         * lib/unictype/pr_bidi_pdf.h: Likewise.
43913         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
43914         * lib/unictype/pr_bidi_whitespace.h: Likewise.
43915         * lib/unictype/pr_combining.h: Likewise.
43916         * lib/unictype/pr_composite.h: Likewise.
43917         * lib/unictype/pr_currency_symbol.h: Likewise.
43918         * lib/unictype/pr_dash.h: Likewise.
43919         * lib/unictype/pr_decimal_digit.h: Likewise.
43920         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
43921         * lib/unictype/pr_deprecated.h: Likewise.
43922         * lib/unictype/pr_diacritic.h: Likewise.
43923         * lib/unictype/pr_extender.h: Likewise.
43924         * lib/unictype/pr_format_control.h: Likewise.
43925         * lib/unictype/pr_grapheme_base.h: Likewise.
43926         * lib/unictype/pr_grapheme_extend.h: Likewise.
43927         * lib/unictype/pr_grapheme_link.h: Likewise.
43928         * lib/unictype/pr_hex_digit.h: Likewise.
43929         * lib/unictype/pr_hyphen.h: Likewise.
43930         * lib/unictype/pr_id_continue.h: Likewise.
43931         * lib/unictype/pr_id_start.h: Likewise.
43932         * lib/unictype/pr_ideographic.h: Likewise.
43933         * lib/unictype/pr_ids_binary_operator.h: Likewise.
43934         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
43935         * lib/unictype/pr_ignorable_control.h: Likewise.
43936         * lib/unictype/pr_iso_control.h: Likewise.
43937         * lib/unictype/pr_join_control.h: Likewise.
43938         * lib/unictype/pr_left_of_pair.h: Likewise.
43939         * lib/unictype/pr_line_separator.h: Likewise.
43940         * lib/unictype/pr_logical_order_exception.h: Likewise.
43941         * lib/unictype/pr_lowercase.h: Likewise.
43942         * lib/unictype/pr_math.h: Likewise.
43943         * lib/unictype/pr_non_break.h: Likewise.
43944         * lib/unictype/pr_not_a_character.h: Likewise.
43945         * lib/unictype/pr_numeric.h: Likewise.
43946         * lib/unictype/pr_other_alphabetic.h: Likewise.
43947         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
43948         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
43949         * lib/unictype/pr_other_id_continue.h: Likewise.
43950         * lib/unictype/pr_other_id_start.h: Likewise.
43951         * lib/unictype/pr_other_lowercase.h: Likewise.
43952         * lib/unictype/pr_other_math.h: Likewise.
43953         * lib/unictype/pr_other_uppercase.h: Likewise.
43954         * lib/unictype/pr_paired_punctuation.h: Likewise.
43955         * lib/unictype/pr_paragraph_separator.h: Likewise.
43956         * lib/unictype/pr_pattern_syntax.h: Likewise.
43957         * lib/unictype/pr_pattern_white_space.h: Likewise.
43958         * lib/unictype/pr_private_use.h: Likewise.
43959         * lib/unictype/pr_punctuation.h: Likewise.
43960         * lib/unictype/pr_quotation_mark.h: Likewise.
43961         * lib/unictype/pr_radical.h: Likewise.
43962         * lib/unictype/pr_sentence_terminal.h: Likewise.
43963         * lib/unictype/pr_soft_dotted.h: Likewise.
43964         * lib/unictype/pr_space.h: Likewise.
43965         * lib/unictype/pr_terminal_punctuation.h: Likewise.
43966         * lib/unictype/pr_titlecase.h: Likewise.
43967         * lib/unictype/pr_unassigned_code_value.h: Likewise.
43968         * lib/unictype/pr_unified_ideograph.h: Likewise.
43969         * lib/unictype/pr_uppercase.h: Likewise.
43970         * lib/unictype/pr_variation_selector.h: Likewise.
43971         * lib/unictype/pr_white_space.h: Likewise.
43972         * lib/unictype/pr_xid_continue.h: Likewise.
43973         * lib/unictype/pr_xid_start.h: Likewise.
43974         * lib/unictype/pr_zero_width.h: Likewise.
43975         * lib/unictype/scripts.h: Likewise.
43976         * lib/unictype/scripts_byname.gperf: Likewise.
43977         * lib/unictype/sy_c_ident.h: Likewise.
43978         * lib/unictype/sy_c_whitespace.h: Likewise.
43979         * lib/unictype/sy_java_ident.h: Likewise.
43980         * lib/unictype/sy_java_whitespace.h: Likewise.
43981
43982         * lib/unictype/Makefile: New file.
43983         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
43984         glibc.
43985         * lib/unictype/3level.h: New file, copied from glibc.
43986         * lib/unictype/3levelbit.h: New file.
43987
43988 2007-11-11  Bruno Haible  <bruno@clisp.org>
43989
43990         * modules/gperf: New file.
43991         * modules/iconv_open (Depends-on): Add it.
43992         (Makefile.am): Remove the GPERF definition.
43993
43994 2007-11-11  Bruno Haible  <bruno@clisp.org>
43995
43996         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
43997         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
43998
43999 2007-11-11  Bruno Haible  <bruno@clisp.org>
44000
44001         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
44002         (usage): Remove function.
44003
44004 2007-11-11  Bruno Haible  <bruno@clisp.org>
44005
44006         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
44007         gl_FUNC_CEILF_LIBS.
44008         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
44009         gl_FUNC_CEIL_LIBS.
44010         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
44011         gl_FUNC_CEILL_LIBS.
44012         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
44013         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
44014         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
44015
44016 2007-11-11  Bruno Haible  <bruno@clisp.org>
44017
44018         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
44019         roundf were declared but do not exist on functions.
44020         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
44021         roundl were declared but do not exist on functions.
44022         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
44023         HAVE_FLOORL_AND_CEILL, respectively.
44024         Needed for Sun C on Solaris 10.
44025
44026 2007-11-11  Bruno Haible  <bruno@clisp.org>
44027
44028         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
44029         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
44030         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
44031         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
44032         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
44033         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
44034         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
44035         HAVE_DECL_ROUNDF.
44036         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
44037         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
44038         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
44039         of HAVE_DECL_ROUND*.
44040         * modules/math (Makefile.am): Update.
44041
44042 2007-11-10  Bruno Haible  <bruno@clisp.org>
44043
44044         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
44045         ptrdiff_t as m4/intl.m4.
44046
44047 2007-11-10  Jim Meyering  <meyering@redhat.com>
44048
44049         Avoid link failure for the argmatch test.
44050         * tests/test-argmatch.c (usage): Define function to avoid a link
44051         failure: argmatch_die requires a usage function.
44052
44053 2007-11-09  Bruno Haible  <bruno@clisp.org>
44054
44055         * doc/functions/snprintf.texi: Mention BeOS deficiency.
44056         * doc/functions/vsnprintf.texi: Likewise.
44057         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
44058         with a size argument < 2.
44059
44060 2007-11-09  Bruno Haible  <bruno@clisp.org>
44061
44062         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
44063         buffer. Fixes an inefficiency introduced on 2007-11-03.
44064
44065 2007-11-09  Bruno Haible  <bruno@clisp.org>
44066
44067         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
44068         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
44069
44070 2007-11-08  Jim Meyering  <meyering@redhat.com>
44071
44072         Change cache variable name prefix "jm_" to "gl_" everywhere.
44073         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
44074         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
44075         * m4/uptime.m4: s/gl_/jm_/
44076
44077 2007-11-07  Bruno Haible  <bruno@clisp.org>
44078
44079         Update to GNU gettext 0.17.
44080         * m4/intl.m4: Update to GNU gettext 0.17.
44081         * m4/po.m4: Likewise.
44082         * modules/gettext (Files): Remove m4/ulonglong.m4.
44083         (configure.ac): Require gettext infrastructure from version 0.17.
44084
44085 2007-11-06  Bruno Haible  <bruno@clisp.org>
44086
44087         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
44088         symbolic values are not defined in a public header.
44089         * lib/freadable.c (freadable) [QNX]: Likewise.
44090         * lib/freadahead.c (freadahead) [QNX]: Likewise.
44091         * lib/freading.c (freading) [QNX]: Likewise.
44092         * lib/fseterr.c (fseterr) [QNX]: Likewise.
44093         * lib/fwritable.c (fwritable) [QNX]: Likewise.
44094         * lib/fwriting.c (fwriting) [QNX]: Likewise.
44095         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
44096         Reported by Alain Magloire.
44097
44098         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
44099
44100 2007-11-05  Bruno Haible  <bruno@clisp.org>
44101
44102         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
44103         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
44104         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
44105         Reported by Eric Blake.
44106
44107 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44108             Bruno Haible  <bruno@clisp.org>
44109
44110         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
44111         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
44112         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
44113         (malloc): Undefine also before including <stdlib.h>.
44114         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
44115         Needed on OSF/1 4.0.
44116
44117 2007-11-05  Jim Meyering  <meyering@redhat.com>
44118
44119         git-version-gen: sync from coreutils.
44120         * build-aux/git-version-gen: Add comments.
44121         Change the first '-' to '.' in the snapshot version string,
44122         e.g., 6.9-377-08144 -> 6.9.377-08144
44123         Remove first parameter.
44124         Don't declare a version "-dirty" merely because a time
44125         stamp has changed.
44126
44127 2007-11-04  Bruno Haible  <bruno@clisp.org>
44128
44129         * lib/lock.h: Protect all macro definitions containing an 'if'
44130         statement through a "do { ... } while (0)".
44131         * lib/tls.h: Likewise.
44132
44133 2007-11-04  Bruno Haible  <bruno@clisp.org>
44134
44135         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
44136
44137 2007-11-04  Bruno Haible  <bruno@clisp.org>
44138
44139         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
44140         * modules/fprintf-posix (Depends-on): Add nocrash.
44141         * modules/snprintf-posix (Depends-on): Likewise.
44142         * modules/sprintf-posix (Depends-on): Likewise.
44143         * modules/vasnprintf-posix (Depends-on): Likewise.
44144         * modules/vasprintf-posix (Depends-on): Likewise.
44145         * modules/vfprintf-posix (Depends-on): Likewise.
44146         * modules/vsnprintf-posix (Depends-on): Likewise.
44147         * modules/vsprintf-posix (Depends-on): Likewise.
44148         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44149         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44150         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44151         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44152         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44153         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44154         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44155
44156 2007-11-04  Bruno Haible  <bruno@clisp.org>
44157
44158         * modules/nocrash: New file.
44159         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
44160         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
44161
44162 2007-11-04  Bruno Haible  <bruno@clisp.org>
44163
44164         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
44165         precision handling.
44166         * tests/test-vasprintf-posix.c (test_function): Likewise.
44167         * tests/test-snprintf-posix.h (test_function): Likewise.
44168         * tests/test-sprintf-posix.h (test_function): Likewise.
44169
44170         Fix *printf behaviour for large precisions on mingw and BeOS.
44171         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
44172         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
44173         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
44174         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44175         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44176         gl_PRINTF_PRECISION and test its result. Invoke
44177         gl_PREREQ_VASNPRINTF_PRECISION.
44178         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44179         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44180         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44181         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44182         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44183         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44184         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44185         * doc/functions/fprintf.texi: Update.
44186         * doc/functions/printf.texi: Update.
44187         * doc/functions/snprintf.texi: Update.
44188         * doc/functions/sprintf.texi: Update.
44189         * doc/functions/vfprintf.texi: Update.
44190         * doc/functions/vprintf.texi: Update.
44191         * doc/functions/vsnprintf.texi: Update.
44192         * doc/functions/vsprintf.texi: Update.
44193
44194 2007-11-04  Bruno Haible  <bruno@clisp.org>
44195
44196         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
44197
44198 2007-11-04  Bruno Haible  <bruno@clisp.org>
44199
44200         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
44201         Reported by Sylvain Beucler <beuc@gnu.org>.
44202
44203 2007-11-03  Bruno Haible  <bruno@clisp.org>
44204
44205         * tests/test-fprintf-posix2.sh: New file.
44206         * tests/test-fprintf-posix2.c: New file.
44207         * modules/fprintf-posix-tests (Files): Add them.
44208         (TESTS): Add test-fprintf-posix2.sh.
44209         (configure.ac): Check for getrlimit and setrlimit.
44210         (check_PROGRAMS): Add test-fprintf-posix2.
44211
44212         * tests/test-printf-posix2.sh: New file.
44213         * tests/test-printf-posix2.c: New file.
44214         * modules/printf-posix-tests (Files): Add them.
44215         (TESTS): Add test-printf-posix2.sh.
44216         (configure.ac): Check for getrlimit and setrlimit.
44217         (check_PROGRAMS): Add test-printf-posix2.
44218
44219         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
44220         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
44221         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
44222         (decode_double): New function, copied from decode_long_double.
44223         (scale10_round_decimal_decoded): New function, extracted from
44224         scale10_round_decimal_long_double.
44225         (scale10_round_decimal_long_double): Use it.
44226         (scale10_round_decimal_double): New function.
44227         (floorlog10): New function.
44228         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
44229         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
44230         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44231         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44232         gl_PRINTF_ENOMEM and test its result. Invoke
44233         gl_PREREQ_VASNPRINTF_ENOMEM.
44234         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44235         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44236         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44237         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44238         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44239         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44240         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44241         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
44242         * modules/snprintf-posix (Depends-on): Likewise.
44243         * modules/sprintf-posix (Depends-on): Likewise.
44244         * modules/vasnprintf-posix (Depends-on): Likewise.
44245         * modules/vasprintf-posix (Depends-on): Likewise.
44246         * modules/vfprintf-posix (Depends-on): Likewise.
44247         * modules/vsnprintf-posix (Depends-on): Likewise.
44248         * modules/vsprintf-posix (Depends-on): Likewise.
44249         * doc/functions/fprintf.texi: Update.
44250         * doc/functions/printf.texi: Update.
44251         * doc/functions/snprintf.texi: Update.
44252         * doc/functions/sprintf.texi: Update.
44253         * doc/functions/vfprintf.texi: Update.
44254         * doc/functions/vprintf.texi: Update.
44255         * doc/functions/vsnprintf.texi: Update.
44256         * doc/functions/vsprintf.texi: Update.
44257
44258 2007-11-03  Bruno Haible  <bruno@clisp.org>
44259
44260         * modules/frexp-nolibm-tests: New file.
44261
44262         * modules/frexp-nolibm: New file.
44263         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
44264
44265 2007-11-03  Bruno Haible  <bruno@clisp.org>
44266
44267         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
44268         value is C99 compliant.
44269         Needed for OSF/1 5.1.
44270
44271 2007-11-03  Bruno Haible  <bruno@clisp.org>
44272
44273         Fix out-of-memory handling of vasnprintf.
44274         * lib/printf-parse.c: Include <errno.h>.
44275         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
44276         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
44277         is already set.
44278
44279 2007-11-02  Eric Blake  <ebb9@byu.net>
44280
44281         Fix tests on cygwin.
44282         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
44283
44284 2007-11-01  Bruno Haible  <bruno@clisp.org>
44285
44286         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
44287         warning.
44288         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
44289         needed for POSIX compatibility.
44290
44291 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
44292
44293         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
44294         for compatibility with GNU.
44295
44296 2007-11-01  Bruno Haible  <bruno@clisp.org>
44297
44298         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
44299         (putenv): Renamed from rpl_putenv. Change argument type from
44300         'const char *' to 'char *'.
44301         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
44302         of defining putenv in config.h, just set REPLACE_PUTENV.
44303         * modules/putenv (Depends-on): Add stdlib.
44304         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44305         (Include): Use <stdlib.h>.
44306         * lib/stdlib.in.h (putenv): New declaration.
44307         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
44308         REPLACE_PUTENV.
44309         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
44310         REPLACE_PUTENV.
44311         Needed for MacOS X 10.5.0.
44312         Reported by Peter O'Gorman <peter@pogma.com>.
44313
44314 2007-11-01  Jim Meyering  <meyering@redhat.com>
44315
44316         Treat an empty date string exactly like "0".
44317         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
44318         if the remaining date string (to be parsed) is empty, use "0".
44319         Reported by Mischa Molhoek and discussed in this thread:
44320         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
44321
44322 2007-10-31  Bruno Haible  <bruno@clisp.org>
44323
44324         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
44325         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
44326         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
44327         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
44328         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
44329         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
44330
44331 2007-10-31  Bruno Haible  <bruno@clisp.org>
44332
44333         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
44334         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
44335         (AC_TYPE_LONG_LONG_INT): Use it.
44336         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
44337         it as well.
44338         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
44339         to m4/longlong.m4.
44340         * modules/stdint (Files): Remove m4/ulonglong.m4.
44341         * modules/strtoull (Files): Use m4/longlong.m4 instead of
44342         m4/ulonglong.m4.
44343         * modules/strtoumax (Files): Likewise.
44344
44345 2007-10-30  Bruno Haible  <bruno@clisp.org>
44346
44347         * modules/xvasprintf-posix: New file.
44348         Suggested by Eric Blake.
44349
44350 2007-10-30  Bruno Haible  <bruno@clisp.org>
44351
44352         * modules/xprintf-posix-tests: New file.
44353         * tests/test-xprintf-posix.sh: New file.
44354         * tests/test-xprintf-posix.c: New file.
44355         * tests/test-xfprintf-posix.c: New file.
44356
44357         * modules/xprintf-posix: New file.
44358
44359 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44360
44361         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
44362         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
44363         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
44364
44365 2007-10-29  Bruno Haible  <bruno@clisp.org>
44366
44367         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
44368         contain the special marker '_cv_'.
44369         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
44370         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
44371         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
44372         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
44373         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
44374         Reported by Ralf Wildenhues.
44375
44376 2007-10-29  Bruno Haible  <bruno@clisp.org>
44377
44378         * gnulib-tool (func_import): When --lgpl is not specified, set
44379         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
44380         GPLv3.
44381         Reported by Simon Josefsson.
44382
44383 2007-10-28  Bruno Haible  <bruno@clisp.org>
44384
44385         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
44386         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
44387         HAVE_DECL_ISFINITE.
44388         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
44389         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
44390         HAVE_DECL_ISFINITE.
44391
44392 2007-10-28  Bruno Haible  <bruno@clisp.org>
44393
44394         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
44395         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
44396
44397 2007-10-28  Bruno Haible  <bruno@clisp.org>
44398
44399         Fix link errors with Sun C 5.0 on Solaris 10.
44400         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
44401         function is declared but not present in the compiler's libm.
44402         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
44403         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
44404         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
44405         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
44406         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
44407         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
44408         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
44409         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
44410         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
44411         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
44412         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
44413         HAVE_DECL_FLOORL.
44414
44415 2007-10-28  Bruno Haible  <bruno@clisp.org>
44416
44417         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
44418         gl_FUNC_FLOORL. Cache the result.
44419         (gl_FUNC_FLOORL): Use it.
44420         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
44421         gl_FUNC_CEILL. Cache the result.
44422         (gl_FUNC_CEILL): Use it.
44423
44424         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
44425         gl_FUNC_FLOOR. Cache the result.
44426         (gl_FUNC_FLOOR): Use it.
44427         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
44428         gl_FUNC_CEIL. Cache the result.
44429         (gl_FUNC_CEIL): Use it.
44430
44431         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
44432         gl_FUNC_FLOORF. Cache the result.
44433         (gl_FUNC_FLOORF): Use it.
44434         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
44435         gl_FUNC_CEILF. Cache the result.
44436         (gl_FUNC_CEILF): Use it.
44437
44438 2007-10-28  Bruno Haible  <bruno@clisp.org>
44439
44440         * gnulib-tool: Allow specifying the LGPL version number through
44441         --lgpl=2 or --lgpl=3.
44442         (func_usage): Document --lgpl with argument.
44443         Handle --lgpl=... arguments.
44444         (func_import): Recognize also gl_LGPL calls with an argument. When
44445         --lgpl=2 is used and the module's license is just LGPL, report an
44446         error. Set sed_transform_lib_file according to the lgpl variable. In
44447         the generated files, use --lgpl or gl_LGPL invocations with argument,
44448         if necessary.
44449         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
44450         an LGPv2+ license.
44451         * doc/gnulib-tool.texi (Modified imports): Update explanation of
44452         gl_LGPL macro.
44453
44454 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44455             Bruno Haible  <bruno@clisp.org>
44456
44457         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
44458         (u16_uctomb_aux): Likewise.
44459         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
44460         !HAVE_INLINE.
44461         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
44462
44463 2007-10-28  Bruno Haible  <bruno@clisp.org>
44464
44465         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
44466         Invoke AM_GETTEXT_OPTION if it exists.
44467         * modules/vasprintf: Likewise.
44468         * modules/verror: Likewise.
44469         * modules/xprintf: Likewise.
44470         * modules/xvasprintf: Likewise.
44471
44472 2007-10-27  Ben Pfaff  <blp@gnu.org>
44473
44474         * lib/math.in.h: Define isfinite macro and prototypes for
44475         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
44476         implementations.
44477         * m4/math_h.m4: New substitutions for isfinite module.
44478         * lib/isfinite.c: New file.
44479         * m4/isfinite.m4: New file.
44480         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
44481         * modules/isfinite: New file.
44482         * modules/isfinite-tests: New file.
44483         * tests/tests-isfinite.c: New file.
44484         * doc/functions/isfinite.texi: Mention isfinite module.
44485         * MODULES.html.sh: Mention new module.
44486
44487 2007-10-27  Ben Pfaff  <blp@gnu.org>
44488
44489         Ralf Wildenhues reported that Tru64 4.0D declares the round
44490         functions but does not have definitions.
44491         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
44492         cannot be found in any library, set the output variable to
44493         "missing" instead of "".
44494         * m4/round.m4: Also use our substitute if we cannot find round in
44495         any library, even if it is declared.
44496         * m4/roundf.m4: Likewise for roundf.
44497         * m4/roundl.m4: Likewise for roundl.
44498         * lib/math.in.h: Undefine roundf, round, roundl before defining
44499         their replacements, to allow for hypothetical systems where these
44500         may be defined as macros but not available in libraries.
44501
44502 2007-10-27  Bruno Haible  <bruno@clisp.org>
44503
44504         * doc/gnulib.texi: Invoke @firstparagraphindent.
44505         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
44506         changes in gnulib.
44507         (Source changes): New section.
44508
44509 2007-10-26  Bruno Haible  <bruno@clisp.org>
44510
44511         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
44512         borrowed from autoconf.
44513
44514 2007-10-26  Bruno Haible  <bruno@clisp.org>
44515
44516         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
44517         strerror returned the empty string. Needed on HP-UX 11.00.
44518
44519 2007-10-24  Micah Cowan  <micah@cowan.name>
44520
44521         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
44522         * build-aux/bootstrap: Remove support for now-unnecessary option,
44523         --cvs-user, and envvars CVS_USER, CVS_RSH.
44524
44525 2007-10-24  Jim Meyering  <meyering@redhat.com>
44526
44527         Avoid diagnostics from sha1sum when there is no cached checksum.
44528         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
44529         if the po.s1 file hasn't been created yet.
44530
44531         * build-aux/bootstrap: Sync from coreutils:
44532         2007-10-24  Jim Meyering  <meyering@redhat.com>
44533         Get gnulib from the git repository, not from an obsolete cvs one.
44534         * build-aux/bootstrap: Suggestion from Micah Cowan.
44535         2007-10-04  Jim Meyering  <jim@meyering.net>
44536         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
44537         (update_po_files): Work also when there are no .po files in po/.
44538
44539 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
44540
44541         * README: Append ".git" to git and cg examples.
44542         Problem reported by Benoit Sigoure.
44543
44544 2007-10-23  Micah Cowan  <micah@cowan.name>
44545
44546         * users.txt: Add wget.
44547
44548 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44549
44550         Fix linking of some unistdio tests on FreeBSD.
44551         * modules/unistdio/u16-vsnprintf-tests
44552         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
44553         * modules/unistdio/u16-vsprintf-tests
44554         (test_u16_vsnprintf1_LDADD): Likewise.
44555         * modules/unistdio/u32-vsnprintf-tests
44556         (test_u32_vsnprintf1_LDADD): Likewise.
44557         * modules/unistdio/u32-vsprintf-tests
44558         (test_u32_vsprintf1_LDADD): Likewise.
44559         * modules/unistdio/u8-vsnprintf-tests
44560         (test_u8_vsnprintf1_LDADD): Likewise.
44561         * modules/unistdio/u8-vsprintf-tests
44562         (test_u8_vsprintf1_LDADD): Likewise.
44563         * modules/unistdio/ulc-vsnprintf-tests
44564         (test_ulc_vsnprintf1_LDADD): Likewise.
44565         * modules/unistdio/ulc-vsprintf-tests
44566         (test_ulc_vsprintf1_LDADD): Likewise.
44567
44568         Fix linking of some uniconv tests on FreeBSD.
44569         * modules/uniconv/u16-conv-from-enc-tests
44570         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
44571         * modules/uniconv/u16-conv-to-enc-tests
44572         (test_u16_conv_to_enc_LDADD): Likewise.
44573         * modules/uniconv/u16-strconv-from-enc-tests
44574         (test_u16_strconv_from_enc_LDADD): Likewise.
44575         * modules/uniconv/u16-strconv-to-enc-tests
44576         (test_u16_strconv_to_enc_LDADD): Likewise.
44577         * modules/uniconv/u32-conv-from-enc-tests
44578         (test_u32_conv_from_enc_LDADD): Likewise.
44579         * modules/uniconv/u32-conv-to-enc-tests
44580         (test_u32_conv_to_enc_LDADD): Likewise.
44581         * modules/uniconv/u32-strconv-from-enc-tests
44582         (test_u32_strconv_from_enc_LDADD): Likewise.
44583         * modules/uniconv/u32-strconv-to-enc-tests
44584         (test_u32_strconv_to_enc_LDADD): Likewise.
44585         * modules/uniconv/u8-conv-from-enc-tests
44586         (test_u8_conv_from_enc_LDADD): Likewise.
44587         * modules/uniconv/u8-conv-to-enc-tests
44588         (test_u8_conv_to_enc_LDADD): Likewise.
44589         * modules/uniconv/u8-strconv-from-enc-tests
44590         (test_u8_strconv_from_enc_LDADD): Likewise.
44591         * modules/uniconv/u8-strconv-to-enc-tests
44592         (test_u8_strconv_to_enc_LDADD): Likewise.
44593
44594 2007-10-22  Bruno Haible  <bruno@clisp.org>
44595
44596         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
44597         size.
44598
44599 2007-10-22  Eric Blake  <ebb9@byu.net>
44600
44601         Tweak x*printf documentation.
44602         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
44603         variable name and comments.
44604         Suggested by Bruno Haible.
44605
44606 2007-10-22  Bruno Haible  <bruno@clisp.org>
44607
44608         * lib/acl.c (copy_acl): Fix file name in comment.
44609
44610 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
44611
44612         Fix Tru64 problem with stdbool.h.
44613         * lib/stdbool.in.h (false, true):
44614         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
44615         Don't declare as an enum in this situation; it runs afoul of Tru64.
44616         Problem reported by Steven M. Schweda in
44617         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
44618
44619 2007-10-22  Eric Blake  <ebb9@byu.net>
44620
44621         Also wrap vf?printf.
44622         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
44623         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
44624         (xvprintf, xvfprintf): New functions.
44625
44626 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44627
44628         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
44629         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
44630
44631         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
44632         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
44633
44634 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
44635
44636         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
44637         by Bruno Haible.
44638
44639 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44640
44641         * lib/getloadavg.c
44642         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
44643         Undef `sys' after including sys/table.h, for Tru64 4.0D.
44644
44645         * tests/test-i-ring.c: Work for C89.
44646
44647 2007-10-22  Bruno Haible  <bruno@clisp.org>
44648
44649         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
44650         -1u, in preprocessor expression, so that we don't test for the bug
44651         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
44652         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
44653
44654 2007-10-22  Eric Blake  <ebb9@byu.net>
44655
44656         * tests/test-yesno.sh: Silence stderr during test.
44657
44658 2007-10-22  Simon Josefsson  <simon@josefsson.org>
44659
44660         * modules/crypto/gc-camellia: New file.
44661
44662         * m4/gc-camellia.m4: New file.
44663
44664         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
44665
44666         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
44667
44668 2007-10-22  Simon Josefsson  <simon@josefsson.org>
44669
44670         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
44671         --help to stdout.  Reported by sms@antinode.org (Steven
44672         M. Schweda).
44673
44674 2007-10-22  Simon Josefsson  <simon@josefsson.org>
44675
44676         * users.txt: Fix link to libksba.
44677
44678 2007-10-21  Ben Pfaff  <blp@gnu.org>
44679
44680         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
44681         round.c roundf implementation that depends on floorf and ceilf to
44682         be tested unconditionally.
44683
44684 2007-10-21  Ben Pfaff  <blp@gnu.org>
44685
44686         * m4/check-libm-func.m4: Removed.
44687         * m4/check-math-lib.m4: New file.
44688         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
44689         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
44690         definition and lack of AC_LIBOBJ([roundf]).
44691         * m4/roundl.m4: Ditto, and similarly for roundl.
44692         * modules/round: Reference new m4 file.
44693         * modules/roundf: Ditto.
44694         * modules/roundl: Ditto.
44695         * tests/test-round2.c (main): Use ROUND instead of round.
44696         Bug report from Bruno Haible.
44697
44698 2007-10-21  Bruno Haible  <bruno@clisp.org>
44699
44700         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
44701         context.
44702
44703 2007-10-21  Bruno Haible  <bruno@clisp.org>
44704
44705         * tests/test-wcwidth.c (main): Allow negative result for some control
44706         characters.
44707
44708         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
44709         Needed on OSF/1 5.1.
44710
44711 2007-10-21  Bruno Haible  <bruno@clisp.org>
44712
44713         * tests/test-floorf1.c: Include isnanf.h.
44714         (main): Use isnanf() instead of isnan().
44715         * tests/test-ceilf1.c: Include isnanf.h.
44716         (main): Use isnanf() instead of isnan().
44717         * tests/test-truncf1.c: Include isnanf.h.
44718         (main): Use isnanf() instead of isnan().
44719         * tests/test-roundf1.c: Include isnanf.h.
44720         (main): Use isnanf() instead of isnan().
44721
44722 2007-10-21  Eric Blake  <ebb9@byu.net>
44723
44724         * users.txt: Update URL for m4.
44725
44726 2007-10-21  Bruno Haible  <bruno@clisp.org>
44727
44728         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
44729
44730 2007-10-21  Bruno Haible  <bruno@clisp.org>
44731
44732         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
44733         Git's management files if the CVS files are not present.
44734
44735 2007-10-20  Bruno Haible  <bruno@clisp.org>
44736
44737         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
44738         gcc-3.4.x.
44739
44740 2007-10-20  Ben Pfaff  <blp@gnu.org>
44741
44742         * lib/math.in.h: Declare round, roundf, roundl if we are providing
44743         implementations.
44744         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
44745         * lib/round.c: New file.
44746         * lib/roundf.c: New file.
44747         * lib/roundl.c: New file.
44748         * m4/round.m4: New file.
44749         * m4/roundf.m4: New file.
44750         * m4/roundl.m4: New file.
44751         * m4/check-libm-func-m4: New file.
44752         * modules/math: Replace round, roundf, roundl related @VARS@ in
44753         math.in.h.
44754         * modules/round: New file.
44755         * modules/round-tests: New file.
44756         * modules/roundf: New file.
44757         * modules/roundf-tests: New file.
44758         * modules/roundl: New file.
44759         * modules/roundl-tests: New file.
44760         * tests/test-round1.c: New file.
44761         * tests/test-round2.c: New file.
44762         * tests/test-roundf1.c: New file.
44763         * tests/test-roundf2.c: New file.
44764         * tests/test-roundl.c: New file.
44765         * doc/functions/round.texi: Mention round module.
44766         * doc/functions/roundf.texi: Mention roundf module.
44767         * doc/functions/roundl.texi: Mention roundl module.
44768         * MODULES.html.sh: Mention new modules.
44769         Thanks to Bruno Haible for suggestions.
44770
44771 2007-10-20  Jim Meyering  <meyering@redhat.com>
44772
44773         * lib/xprintf.c: Include <config.h> unconditionally.
44774
44775         Change xprintf's license to GPL.
44776         * modules/xprintf (License): s/LGPL/GPL/, since this module
44777         depends on modules (exit and exitfail) which are GPL.
44778         Suggestion from Bruno Haible.
44779
44780         xprintf fixes.
44781         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
44782         Use a clearer diagnostic.
44783         Patch from Bruno Haible.
44784
44785 2007-10-20  Bruno Haible  <bruno@clisp.org>
44786
44787         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
44788         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
44789         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44790
44791 2007-10-20  Bruno Haible  <bruno@clisp.org>
44792
44793         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
44794         precision in the comparison result > x - 1 or similar.
44795         * tests/test-ceilf2.c (correct_result_p): Likewise.
44796         * tests/test-truncf2.c (correct_result_p): Likewise.
44797         * tests/test-trunc2.c (correct_result_p): Likewise.
44798         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44799
44800 2007-10-20  Bruno Haible  <bruno@clisp.org>
44801
44802         * modules/ceil: New file.
44803         * m4/ceil.m4: New file.
44804         * doc/functions/ceil.texi: Mention the 'ceil' module.
44805
44806 2007-10-20  Bruno Haible  <bruno@clisp.org>
44807
44808         * modules/floor: New file.
44809         * m4/floor.m4: New file.
44810         * doc/functions/floor.texi: Mention the 'floor' module.
44811
44812 2007-10-20  Bruno Haible  <bruno@clisp.org>
44813
44814         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
44815         of %a.
44816         * modules/floorf-tests (Depends-on): Likewise.
44817         * modules/truncf-tests (Depends-on): Likewise.
44818         * modules/trunc-tests (Depends-on): Likewise.
44819         Reported by Ben Pfaff.
44820
44821 2007-10-19  Jim Meyering  <meyering@redhat.com>
44822
44823         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
44824         Don't bother testing specific errno values.  Just test ferror.
44825
44826         New module: xprintf
44827         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
44828
44829 2007-10-19  Bruno Haible  <bruno@clisp.org>
44830
44831         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
44832         syntax.
44833         * modules/javaexec (Makefile.am): Likewise.
44834         * modules/relocatable-prog (Makefile.am): Likewise.
44835         Suggested by Jim Meyering.
44836
44837 2007-10-18  Bruno Haible  <bruno@clisp.org>
44838
44839         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
44840         Reported by Jim Meyering.
44841
44842 2007-10-18  Eric Blake  <ebb9@byu.net>
44843
44844         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
44845
44846 2007-10-18  Bruno Haible  <bruno@clisp.org>
44847
44848         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
44849         the format string into writable memory. Needed in Fortify conditions.
44850
44851 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
44852             Bruno Haible  <bruno@clisp.org>
44853
44854         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
44855         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
44856         * modules/trim (Depends-on): Add mbchar.
44857         (configure.ac): Add gl_FUNC_MBRTOWC.
44858         (Makefile.am): Augment lib_SOURCES.
44859
44860 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
44861
44862         Modify glob.c to use fstatat and dirfd, to simplify it.
44863         Suggested by Eric Blake.
44864         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
44865         Don't include <stdbool.h>; not used.
44866         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
44867         (link_exists_p): Simplify implementation, since we can now assume
44868         dirfd and fstatat.
44869         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
44870
44871 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44872
44873         * gnulib-tool (func_get_dependencies): Fix sed script to
44874         match only tests.
44875
44876 2007-10-17  Bruno Haible  <bruno@clisp.org>
44877
44878         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
44879         allow locale names without encoding suffix.
44880         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
44881         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44882
44883 2007-10-16  Bruno Haible  <bruno@clisp.org>
44884
44885         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
44886         * lib/getgroups.c (getgroups): Likewise.
44887         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
44888
44889 2007-10-16  Bruno Haible  <bruno@clisp.org>
44890
44891         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
44892         * modules/malloc-posix (License): Likewise.
44893         * modules/realloc-posix (License): Likewise.
44894         * modules/calloc-posix (License): Likewise.
44895         * modules/intprops (License): Change from GPL to LGPL, with
44896         Paul Eggert's approval.
44897
44898 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44899
44900         Merge glibc changes into lib/glob.c.
44901
44902         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
44903         2007-10-15 04:59:03 UTC.  Here are the changes:
44904
44905         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
44906
44907         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
44908
44909         * lib/glob.c: Add some branch prediction throughout.
44910
44911         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
44912
44913         [BZ #5103]
44914         * lib/glob.c (glob): Recognize patterns starting \/.
44915
44916         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
44917
44918         [BZ #3996]
44919         * lib/glob.c (attribute_hidden): Define if not defined.
44920         (glob): Unescape dirname, filename or username when needed and not
44921         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
44922         is NULL.  Handle unescaped [ in pattern without closing ].
44923         Don't pass GLOB_CHECK down to recursive glob for directories.
44924         (__glob_pattern_type): New function.
44925         (__glob_pattern_p): Implement using __glob_pattern_type.
44926         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
44927         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
44928         Remove unreachable code.
44929
44930         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
44931
44932         * lib/glob.c (glob_in_dir): Add some comments and asserts to
44933         explain why there are no leaks.
44934
44935         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
44936
44937         [BZ #3253]
44938         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
44939         time, rather allocate increasingly bigger arrays of pointers, if
44940         possible with alloca, if too large with malloc.
44941
44942 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44943
44944         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
44945         Problem reported by H.Merijn Brand in
44946         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
44947         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
44948         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
44949
44950 2007-10-15  Bruno Haible  <bruno@clisp.org>
44951
44952         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
44953         with explicit rpl_ prefix.
44954         * lib/fopen.c (fopen): Likewise.
44955         * lib/freopen.c (freopen): Likewise.
44956         * lib/iconv.c (iconv): Likewise.
44957         * lib/iconv_close.c (iconv_close): Likewise.
44958
44959 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44960
44961         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
44962
44963 2007-10-15  Bruno Haible  <bruno@clisp.org>
44964
44965         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
44966         <stddef.h> instead of <stdlib.h> since we only need NULL.
44967         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44968
44969 2007-10-15  Bruno Haible  <bruno@clisp.org>
44970
44971         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
44972         Replace paragraph talking about LIBOBJS.
44973         Reported by Colin Watson <cjwatson@debian.org>.
44974
44975 2007-10-15  Bruno Haible  <bruno@clisp.org>
44976
44977         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
44978         <stdlib.h> before using NULL.
44979
44980 2007-10-15  Simon Josefsson  <simon@josefsson.org>
44981
44982         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
44983         Reported by Albert Chin <china@thewrittenword.com>.
44984
44985 2007-10-14  Bruno Haible  <bruno@clisp.org>
44986
44987         * modules/iconv_open-utf-tests: New file.
44988         * tests/test-iconv-utf.c: New file.
44989
44990         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
44991         * modules/iconv_open-utf: New file.
44992         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
44993         (iconv, iconv_close): New declarations.
44994         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
44995         be defined.
44996         (iconv_open): Add special handling of conversion between UTF-8 and
44997         UTF-{16,32}{BE,LE}.
44998         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
44999         * lib/iconv_close.c: New file.
45000         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
45001         gl_FUNC_ICONV_OPEN.
45002         (gl_FUNC_ICONV_OPEN): Use it.
45003         (gl_FUNC_ICONV_OPEN_UTF): New macro.
45004         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
45005         and REPLACE_ICONV_UTF.
45006         * modules/iconv_open (Depends-on): Add c-strcase.
45007         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
45008         ICONV_CONST.
45009         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
45010
45011 2007-10-13  Albert Chin  <china@thewrittenword.com>
45012             Bruno Haible  <bruno@clisp.org>
45013
45014         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
45015         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
45016
45017 2007-10-13  Bruno Haible  <bruno@clisp.org>
45018
45019         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
45020         defined, use the ISO C99 inline semantics.
45021         * lib/argp.h (ARGP_EI): Likewise.
45022
45023 2007-10-13  Bruno Haible  <bruno@clisp.org>
45024
45025         Handle 'inline' change in gcc 4.3.0.
45026         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
45027         argp_fmtstream_write, argp_fmtstream_set_lmargin,
45028         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
45029         argp_fmtstream_point): Disable 'extern' declaration if the function
45030         definition is going to be provided inline.
45031         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
45032         semantics, not the ISO C99 inline semantics.
45033         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
45034         'extern' declaration if the function definition is going to be provided
45035         inline.
45036         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
45037         the GNU C inline semantics, not the ISO C99 inline semantics. With
45038         GCC 4.2, avoid a warning.
45039
45040 2007-10-13  Bruno Haible  <bruno@clisp.org>
45041
45042         * lib/freading.h (freading): Enable the use of __freading for
45043         glibc >= 2.7.
45044         * lib/freading.c (freading): Likewise.
45045
45046 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
45047
45048         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
45049         "warning: C99 inline functions are not supported; using GNU89".
45050
45051 2007-10-12  Bruno Haible  <bruno@clisp.org>
45052
45053         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
45054         of 2.
45055         * tests/test-ceilf2.c: New file.
45056         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
45057
45058         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
45059         * modules/ceilf-tests: Update.
45060
45061 2007-10-12  Bruno Haible  <bruno@clisp.org>
45062
45063         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
45064         of 2.
45065         * tests/test-floorf2.c: New file.
45066         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
45067
45068         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
45069         * modules/floorf-tests: Update.
45070
45071 2007-10-12  Bruno Haible  <bruno@clisp.org>
45072
45073         * tests/test-trunc2.c: New file.
45074         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
45075
45076         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
45077         * modules/trunc-tests: Update.
45078
45079 2007-10-12  Bruno Haible  <bruno@clisp.org>
45080
45081         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
45082         of 2.
45083         * tests/test-truncf2.c: New file.
45084         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
45085
45086         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
45087         * modules/truncf-tests: Update.
45088
45089 2007-10-11  Eric Blake  <ebb9@byu.net>
45090
45091         Don't claim strerror is broken on Interix.
45092         * doc/functions/strerror.texi (strerror): Known broken systems are
45093         now Solaris 8, and not Interix.
45094         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
45095         Interix on cross-compile.
45096         Reported by Martin Koeppe in
45097         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
45098
45099 2007-10-11  Bruno Haible  <bruno@clisp.org>
45100
45101         * modules/i-ring-tests: New file.
45102         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
45103         instead of assert.
45104
45105 2007-10-11  Bruno Haible  <bruno@clisp.org>
45106
45107         * modules/filenamecat-tests: New file.
45108         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
45109         * lib/filenamecat.c: Remove test code.
45110
45111 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
45112
45113         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
45114
45115         * lib/strerror.c: Include <string.h> always, to test interface,
45116         and to remove the need for the dummy.
45117         Include intprops.h to compute width instead of doing it ourselves
45118         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
45119         (strerror): Define it to return NULL if there's no system strerror.
45120         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
45121         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
45122         ancient pre-strerror Unix systems well any more.  Saying "unknown
45123         system error" is enough.
45124         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
45125         simpler strerror.c implementation.
45126         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
45127         Simplify the tests to reflect the simpler strerror implementation.
45128         * modules/strerror (Depends-on): Add intprops.
45129
45130 2007-10-09  Eric Blake  <ebb9@byu.net>
45131
45132         Silence test-fpending.
45133         * modules/fpending-tests (Files): Add wrapper script.
45134         * tests/test-fpending.sh: New file.
45135
45136 2007-10-09  Bruno Haible  <bruno@clisp.org>
45137
45138         * MODULES.html.sh (func_module): Don't create a hyperlink for
45139         function names like 'printf_frexp'.
45140         (Misc): Add crc, memxor.
45141         (Characteristics of floating types): New section.
45142         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
45143         isnanf-nolibm, signbit, trunc, truncf, truncl.
45144         (Enhancements for ISO C 99 functions): New subsection Input/output.
45145         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
45146         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
45147         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
45148         (Compatibility checks for POSIX:2001 functions): Add clock-time.
45149         (Enhancements for POSIX:2001 functions): Add chdir-long.
45150         (File system functions): Add areadlink, chdir-safer, read-file.
45151         Remove cycle-check.
45152         (File system as inode set): New section.
45153         (Date and time): Add gethrxtime.
45154         (Multithreading): Add openmp.
45155         (Internationalization functions): Add localename.
45156         (Unicode string functions): Add unistr/u*-mbsnlen.
45157         (Support for maintaining and releasing projects): Add git-version-gen.
45158         (Lone files): Remove directories.
45159
45160 2007-10-08  Ben Pfaff  <blp@gnu.org>
45161
45162         * lib/xmalloca.h: Fix typo in comment.
45163
45164 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
45165
45166         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
45167         when avoiding problems with integer overflow.  Use a portable test
45168         instead.
45169
45170 2007-10-08  Simon Josefsson  <simon@josefsson.org>
45171
45172         * modules/dummy (License): Change to LGPLv2+.
45173         * modules/float (License): Likewise
45174         * modules/realloc (License): Likewise
45175         * modules/stdlib (License): Likewise
45176
45177 2007-10-07  Bruno Haible  <bruno@clisp.org>
45178
45179         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
45180         * floor.c (TWO_MANT_DIG): Likewise.
45181         * ceil.c (TWO_MANT_DIG): Likewise.
45182         Reported by Ben Pfaff.
45183
45184 2007-10-07  Bruno Haible  <bruno@clisp.org>
45185
45186         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
45187         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
45188         * lib/frexp.c (FUNC): Likewise.
45189         * lib/printf-frexp.h (printf_frexp): Likewise.
45190         * lib/printf-frexpl.h (printf_frexpl): Likewise.
45191         * lib/printf-frexp.c (FUNC): Likewise.
45192         Suggested by Jim Meyering.
45193
45194 2007-10-07  Jim Meyering  <meyering@redhat.com>
45195
45196         Make xnanosleep's integer overflow test more robust.
45197         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
45198         so that gcc-4.3.0 doesn't optimize away this test for overflow.
45199
45200 2007-10-07  Bruno Haible  <bruno@clisp.org>
45201
45202         * NEWS: Mention the license change.
45203
45204         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
45205         abbreviations in the modules files.
45206
45207         Change copyright notice from GPLv2+ to GPLv3+.
45208         * README: Change copyright notice.
45209         * MODULES.html.sh: Likewise.
45210         * build-aux/bootstrap.conf: Likewise.
45211         * build-aux/config.libpath: Likewise.
45212         * build-aux/csharpcomp.sh.in: Likewise.
45213         * build-aux/csharpexec.sh.in: Likewise.
45214         * build-aux/install-reloc: Likewise.
45215         * build-aux/javacomp.sh.in: Likewise.
45216         * build-aux/javaexec.sh.in: Likewise.
45217         * build-aux/ldd.sh.in: Likewise.
45218         * build-aux/reloc-ldflags: Likewise.
45219         * build-aux/relocatable.sh.in: Likewise.
45220         * build-aux/x-to-1.in: Likewise.
45221         * check-module: Likewise.
45222         * config/srclistvars.sh: Likewise.
45223         * gnulib-tool: Likewise.
45224         * lib/acl-internal.h: Likewise.
45225         * lib/acl.c: Likewise.
45226         * lib/acl.h: Likewise.
45227         * lib/acl_entries.c: Likewise.
45228         * lib/areadlink-with-size.c: Likewise.
45229         * lib/areadlink.c: Likewise.
45230         * lib/areadlink.h: Likewise.
45231         * lib/argmatch.c: Likewise.
45232         * lib/argmatch.h: Likewise.
45233         * lib/argp-ba.c: Likewise.
45234         * lib/argp-eexst.c: Likewise.
45235         * lib/argp-fmtstream.c: Likewise.
45236         * lib/argp-fmtstream.h: Likewise.
45237         * lib/argp-fs-xinl.c: Likewise.
45238         * lib/argp-help.c: Likewise.
45239         * lib/argp-namefrob.h: Likewise.
45240         * lib/argp-parse.c: Likewise.
45241         * lib/argp-pin.c: Likewise.
45242         * lib/argp-pv.c: Likewise.
45243         * lib/argp-pvh.c: Likewise.
45244         * lib/argp-xinl.c: Likewise.
45245         * lib/argp.h: Likewise.
45246         * lib/at-func.c: Likewise.
45247         * lib/atanl.c: Likewise.
45248         * lib/backupfile.c: Likewise.
45249         * lib/backupfile.h: Likewise.
45250         * lib/basename.c: Likewise.
45251         * lib/binary-io.h: Likewise.
45252         * lib/byteswap.in.h: Likewise.
45253         * lib/c-stack.c: Likewise.
45254         * lib/c-stack.h: Likewise.
45255         * lib/c-strcasestr.c: Likewise.
45256         * lib/c-strcasestr.h: Likewise.
45257         * lib/c-strstr.c: Likewise.
45258         * lib/c-strstr.h: Likewise.
45259         * lib/c-strtod.c: Likewise.
45260         * lib/calloc.c: Likewise.
45261         * lib/canon-host.c: Likewise.
45262         * lib/canon-host.h: Likewise.
45263         * lib/canonicalize-lgpl.c: Likewise.
45264         * lib/canonicalize.c: Likewise.
45265         * lib/canonicalize.h: Likewise.
45266         * lib/ceil.c: Likewise.
45267         * lib/ceilf.c: Likewise.
45268         * lib/ceill.c: Likewise.
45269         * lib/chdir-long.c: Likewise.
45270         * lib/chdir-long.h: Likewise.
45271         * lib/chdir-safer.c: Likewise.
45272         * lib/chdir-safer.h: Likewise.
45273         * lib/chown.c: Likewise.
45274         * lib/classpath.c: Likewise.
45275         * lib/classpath.h: Likewise.
45276         * lib/clean-temp.c: Likewise.
45277         * lib/clean-temp.h: Likewise.
45278         * lib/cloexec.c: Likewise.
45279         * lib/close-stream.c: Likewise.
45280         * lib/closein.c: Likewise.
45281         * lib/closein.h: Likewise.
45282         * lib/closeout.c: Likewise.
45283         * lib/closeout.h: Likewise.
45284         * lib/concat-filename.c: Likewise.
45285         * lib/copy-file.c: Likewise.
45286         * lib/copy-file.h: Likewise.
45287         * lib/count-one-bits.h: Likewise.
45288         * lib/crc.c: Likewise.
45289         * lib/crc.h: Likewise.
45290         * lib/creat-safer.c: Likewise.
45291         * lib/csharpcomp.c: Likewise.
45292         * lib/csharpcomp.h: Likewise.
45293         * lib/csharpexec.c: Likewise.
45294         * lib/csharpexec.h: Likewise.
45295         * lib/cycle-check.c: Likewise.
45296         * lib/cycle-check.h: Likewise.
45297         * lib/diacrit.c: Likewise.
45298         * lib/diacrit.h: Likewise.
45299         * lib/diffseq.h: Likewise.
45300         * lib/dirchownmod.c: Likewise.
45301         * lib/dirent.in.h: Likewise.
45302         * lib/dirfd.c: Likewise.
45303         * lib/dirfd.h: Likewise.
45304         * lib/dirname.c: Likewise.
45305         * lib/dirname.h: Likewise.
45306         * lib/dummy.c: Likewise.
45307         * lib/dup-safer.c: Likewise.
45308         * lib/dup2.c: Likewise.
45309         * lib/eealloc.h: Likewise.
45310         * lib/error.c: Likewise.
45311         * lib/error.h: Likewise.
45312         * lib/euidaccess.c: Likewise.
45313         * lib/exclude.c: Likewise.
45314         * lib/exclude.h: Likewise.
45315         * lib/execute.c: Likewise.
45316         * lib/execute.h: Likewise.
45317         * lib/exitfail.c: Likewise.
45318         * lib/exitfail.h: Likewise.
45319         * lib/expl.c: Likewise.
45320         * lib/fatal-signal.c: Likewise.
45321         * lib/fatal-signal.h: Likewise.
45322         * lib/fbufmode.c: Likewise.
45323         * lib/fbufmode.h: Likewise.
45324         * lib/fchdir.c: Likewise.
45325         * lib/fchmodat.c: Likewise.
45326         * lib/fchownat.c: Likewise.
45327         * lib/fcntl--.h: Likewise.
45328         * lib/fcntl-safer.h: Likewise.
45329         * lib/fcntl.in.h: Likewise.
45330         * lib/fd-safer.c: Likewise.
45331         * lib/fflush.c: Likewise.
45332         * lib/file-has-acl.c: Likewise.
45333         * lib/file-set.c: Likewise.
45334         * lib/file-type.c: Likewise.
45335         * lib/file-type.h: Likewise.
45336         * lib/fileblocks.c: Likewise.
45337         * lib/filemode.c: Likewise.
45338         * lib/filemode.h: Likewise.
45339         * lib/filename.h: Likewise.
45340         * lib/filenamecat.c: Likewise.
45341         * lib/filenamecat.h: Likewise.
45342         * lib/findprog.c: Likewise.
45343         * lib/findprog.h: Likewise.
45344         * lib/float.in.h: Likewise.
45345         * lib/floor.c: Likewise.
45346         * lib/floorf.c: Likewise.
45347         * lib/floorl.c: Likewise.
45348         * lib/fopen-safer.c: Likewise.
45349         * lib/fopen.c: Likewise.
45350         * lib/fpending.c: Likewise.
45351         * lib/fpending.h: Likewise.
45352         * lib/fprintf.c: Likewise.
45353         * lib/fprintftime.h: Likewise.
45354         * lib/fpucw.h: Likewise.
45355         * lib/fpurge.c: Likewise.
45356         * lib/fpurge.h: Likewise.
45357         * lib/freadable.c: Likewise.
45358         * lib/freadable.h: Likewise.
45359         * lib/freadahead.c: Likewise.
45360         * lib/freadahead.h: Likewise.
45361         * lib/freading.c: Likewise.
45362         * lib/freading.h: Likewise.
45363         * lib/free.c: Likewise.
45364         * lib/freopen.c: Likewise.
45365         * lib/frexp.c: Likewise.
45366         * lib/frexpl.c: Likewise.
45367         * lib/fseek.c: Likewise.
45368         * lib/fseterr.c: Likewise.
45369         * lib/fseterr.h: Likewise.
45370         * lib/fstatat.c: Likewise.
45371         * lib/fstrcmp.c: Likewise.
45372         * lib/fstrcmp.h: Likewise.
45373         * lib/fsusage.c: Likewise.
45374         * lib/fsusage.h: Likewise.
45375         * lib/ftell.c: Likewise.
45376         * lib/ftello.c: Likewise.
45377         * lib/fts-cycle.c: Likewise.
45378         * lib/fts.c: Likewise.
45379         * lib/fts_.h: Likewise.
45380         * lib/full-read.c: Likewise.
45381         * lib/full-read.h: Likewise.
45382         * lib/full-write.c: Likewise.
45383         * lib/full-write.h: Likewise.
45384         * lib/fwritable.c: Likewise.
45385         * lib/fwritable.h: Likewise.
45386         * lib/fwriteerror.c: Likewise.
45387         * lib/fwriteerror.h: Likewise.
45388         * lib/fwriting.c: Likewise.
45389         * lib/fwriting.h: Likewise.
45390         * lib/gcd.c: Likewise.
45391         * lib/gcd.h: Likewise.
45392         * lib/getcwd.c: Likewise.
45393         * lib/getdate.h: Likewise.
45394         * lib/getdate.y: Likewise.
45395         * lib/getdomainname.c: Likewise.
45396         * lib/getdomainname.h: Likewise.
45397         * lib/getgroups.c: Likewise.
45398         * lib/gethostname.c: Likewise.
45399         * lib/gethrxtime.c: Likewise.
45400         * lib/gethrxtime.h: Likewise.
45401         * lib/getloadavg.c: Likewise.
45402         * lib/getndelim2.c: Likewise.
45403         * lib/getndelim2.h: Likewise.
45404         * lib/getnline.c: Likewise.
45405         * lib/getnline.h: Likewise.
45406         * lib/getopt.c: Likewise.
45407         * lib/getopt.in.h: Likewise.
45408         * lib/getopt1.c: Likewise.
45409         * lib/getopt_int.h: Likewise.
45410         * lib/getpagesize.h: Likewise.
45411         * lib/getsubopt.c: Likewise.
45412         * lib/gettime.c: Likewise.
45413         * lib/getugroups.c: Likewise.
45414         * lib/getugroups.h: Likewise.
45415         * lib/getusershell.c: Likewise.
45416         * lib/gl_anyavltree_list1.h: Likewise.
45417         * lib/gl_anyavltree_list2.h: Likewise.
45418         * lib/gl_anyhash_list1.h: Likewise.
45419         * lib/gl_anyhash_list2.h: Likewise.
45420         * lib/gl_anylinked_list1.h: Likewise.
45421         * lib/gl_anylinked_list2.h: Likewise.
45422         * lib/gl_anyrbtree_list1.h: Likewise.
45423         * lib/gl_anyrbtree_list2.h: Likewise.
45424         * lib/gl_anytree_list1.h: Likewise.
45425         * lib/gl_anytree_list2.h: Likewise.
45426         * lib/gl_anytree_oset.h: Likewise.
45427         * lib/gl_anytreehash_list1.h: Likewise.
45428         * lib/gl_anytreehash_list2.h: Likewise.
45429         * lib/gl_array_list.c: Likewise.
45430         * lib/gl_array_list.h: Likewise.
45431         * lib/gl_array_oset.c: Likewise.
45432         * lib/gl_array_oset.h: Likewise.
45433         * lib/gl_avltree_list.c: Likewise.
45434         * lib/gl_avltree_list.h: Likewise.
45435         * lib/gl_avltree_oset.c: Likewise.
45436         * lib/gl_avltree_oset.h: Likewise.
45437         * lib/gl_avltreehash_list.c: Likewise.
45438         * lib/gl_avltreehash_list.h: Likewise.
45439         * lib/gl_carray_list.c: Likewise.
45440         * lib/gl_carray_list.h: Likewise.
45441         * lib/gl_linked_list.c: Likewise.
45442         * lib/gl_linked_list.h: Likewise.
45443         * lib/gl_linkedhash_list.c: Likewise.
45444         * lib/gl_linkedhash_list.h: Likewise.
45445         * lib/gl_list.c: Likewise.
45446         * lib/gl_list.h: Likewise.
45447         * lib/gl_oset.c: Likewise.
45448         * lib/gl_oset.h: Likewise.
45449         * lib/gl_rbtree_list.c: Likewise.
45450         * lib/gl_rbtree_list.h: Likewise.
45451         * lib/gl_rbtree_oset.c: Likewise.
45452         * lib/gl_rbtree_oset.h: Likewise.
45453         * lib/gl_rbtreehash_list.c: Likewise.
45454         * lib/gl_rbtreehash_list.h: Likewise.
45455         * lib/gl_sublist.c: Likewise.
45456         * lib/gl_sublist.h: Likewise.
45457         * lib/group-member.c: Likewise.
45458         * lib/group-member.h: Likewise.
45459         * lib/hard-locale.c: Likewise.
45460         * lib/hard-locale.h: Likewise.
45461         * lib/hash-pjw.c: Likewise.
45462         * lib/hash-pjw.h: Likewise.
45463         * lib/hash-triple.c: Likewise.
45464         * lib/hash.c: Likewise.
45465         * lib/hash.h: Likewise.
45466         * lib/human.c: Likewise.
45467         * lib/human.h: Likewise.
45468         * lib/i-ring.c: Likewise.
45469         * lib/i-ring.h: Likewise.
45470         * lib/idcache.c: Likewise.
45471         * lib/imaxabs.c: Likewise.
45472         * lib/imaxdiv.c: Likewise.
45473         * lib/inet_pton.c: Likewise.
45474         * lib/inet_pton.h: Likewise.
45475         * lib/intprops.h: Likewise.
45476         * lib/inttostr.c: Likewise.
45477         * lib/inttostr.h: Likewise.
45478         * lib/inttypes.in.h: Likewise.
45479         * lib/isapipe.c: Likewise.
45480         * lib/isdir.c: Likewise.
45481         * lib/isnan.c: Likewise.
45482         * lib/isnan.h: Likewise.
45483         * lib/isnanf.c: Likewise.
45484         * lib/isnanf.h: Likewise.
45485         * lib/isnanl-nolibm.h: Likewise.
45486         * lib/isnanl.c: Likewise.
45487         * lib/isnanl.h: Likewise.
45488         * lib/javacomp.c: Likewise.
45489         * lib/javacomp.h: Likewise.
45490         * lib/javaexec.c: Likewise.
45491         * lib/javaexec.h: Likewise.
45492         * lib/javaversion.c: Likewise.
45493         * lib/javaversion.h: Likewise.
45494         * lib/javaversion.java: Likewise.
45495         * lib/lbrkprop.h: Likewise.
45496         * lib/lchmod.h: Likewise.
45497         * lib/lchown.c: Likewise.
45498         * lib/ldexpl.c: Likewise.
45499         * lib/linebreak.c: Likewise.
45500         * lib/linebreak.h: Likewise.
45501         * lib/linebuffer.c: Likewise.
45502         * lib/linebuffer.h: Likewise.
45503         * lib/locale.in.h: Likewise.
45504         * lib/logl.c: Likewise.
45505         * lib/long-options.c: Likewise.
45506         * lib/long-options.h: Likewise.
45507         * lib/lstat.c: Likewise.
45508         * lib/lstat.h: Likewise.
45509         * lib/math.in.h: Likewise.
45510         * lib/mbchar.c: Likewise.
45511         * lib/mbchar.h: Likewise.
45512         * lib/mbfile.h: Likewise.
45513         * lib/mbiter.h: Likewise.
45514         * lib/mbscasecmp.c: Likewise.
45515         * lib/mbscasestr.c: Likewise.
45516         * lib/mbschr.c: Likewise.
45517         * lib/mbscspn.c: Likewise.
45518         * lib/mbslen.c: Likewise.
45519         * lib/mbsncasecmp.c: Likewise.
45520         * lib/mbsnlen.c: Likewise.
45521         * lib/mbspbrk.c: Likewise.
45522         * lib/mbspcasecmp.c: Likewise.
45523         * lib/mbsrchr.c: Likewise.
45524         * lib/mbssep.c: Likewise.
45525         * lib/mbsspn.c: Likewise.
45526         * lib/mbsstr.c: Likewise.
45527         * lib/mbstok_r.c: Likewise.
45528         * lib/mbswidth.c: Likewise.
45529         * lib/mbswidth.h: Likewise.
45530         * lib/mbuiter.h: Likewise.
45531         * lib/memcasecmp.c: Likewise.
45532         * lib/memcasecmp.h: Likewise.
45533         * lib/memchr.c: Likewise.
45534         * lib/memcmp.c: Likewise.
45535         * lib/memcoll.c: Likewise.
45536         * lib/memcoll.h: Likewise.
45537         * lib/memcpy.c: Likewise.
45538         * lib/memrchr.c: Likewise.
45539         * lib/mkancesdirs.c: Likewise.
45540         * lib/mkdir-p.c: Likewise.
45541         * lib/mkdir-p.h: Likewise.
45542         * lib/mkdir.c: Likewise.
45543         * lib/mkdirat.c: Likewise.
45544         * lib/mkdtemp.c: Likewise.
45545         * lib/mkstemp-safer.c: Likewise.
45546         * lib/mkstemp.c: Likewise.
45547         * lib/modechange.c: Likewise.
45548         * lib/modechange.h: Likewise.
45549         * lib/mountlist.c: Likewise.
45550         * lib/mountlist.h: Likewise.
45551         * lib/mpsort.c: Likewise.
45552         * lib/nanosleep.c: Likewise.
45553         * lib/obstack.c: Likewise.
45554         * lib/obstack.h: Likewise.
45555         * lib/open-safer.c: Likewise.
45556         * lib/open.c: Likewise.
45557         * lib/openat-die.c: Likewise.
45558         * lib/openat-priv.h: Likewise.
45559         * lib/openat-proc.c: Likewise.
45560         * lib/openat.c: Likewise.
45561         * lib/openat.h: Likewise.
45562         * lib/pagealign_alloc.c: Likewise.
45563         * lib/pagealign_alloc.h: Likewise.
45564         * lib/physmem.c: Likewise.
45565         * lib/physmem.h: Likewise.
45566         * lib/pipe-safer.c: Likewise.
45567         * lib/pipe.c: Likewise.
45568         * lib/pipe.h: Likewise.
45569         * lib/posixtm.c: Likewise.
45570         * lib/posixtm.h: Likewise.
45571         * lib/posixver.c: Likewise.
45572         * lib/printf-frexp.c: Likewise.
45573         * lib/printf-frexp.h: Likewise.
45574         * lib/printf-frexpl.c: Likewise.
45575         * lib/printf-frexpl.h: Likewise.
45576         * lib/printf.c: Likewise.
45577         * lib/progname.c: Likewise.
45578         * lib/progname.h: Likewise.
45579         * lib/progreloc.c: Likewise.
45580         * lib/putenv.c: Likewise.
45581         * lib/quote.c: Likewise.
45582         * lib/quote.h: Likewise.
45583         * lib/quotearg.c: Likewise.
45584         * lib/quotearg.h: Likewise.
45585         * lib/raise.c: Likewise.
45586         * lib/readline.c: Likewise.
45587         * lib/readline.h: Likewise.
45588         * lib/readlink.c: Likewise.
45589         * lib/readtokens.c: Likewise.
45590         * lib/readtokens.h: Likewise.
45591         * lib/readtokens0.c: Likewise.
45592         * lib/readtokens0.h: Likewise.
45593         * lib/readutmp.c: Likewise.
45594         * lib/readutmp.h: Likewise.
45595         * lib/realloc.c: Likewise.
45596         * lib/relocwrapper.c: Likewise.
45597         * lib/rename-dest-slash.c: Likewise.
45598         * lib/rename.c: Likewise.
45599         * lib/rmdir.c: Likewise.
45600         * lib/rpmatch.c: Likewise.
45601         * lib/safe-read.c: Likewise.
45602         * lib/safe-read.h: Likewise.
45603         * lib/safe-write.c: Likewise.
45604         * lib/safe-write.h: Likewise.
45605         * lib/same-inode.h: Likewise.
45606         * lib/same.c: Likewise.
45607         * lib/same.h: Likewise.
45608         * lib/save-cwd.c: Likewise.
45609         * lib/save-cwd.h: Likewise.
45610         * lib/savedir.c: Likewise.
45611         * lib/savedir.h: Likewise.
45612         * lib/savewd.c: Likewise.
45613         * lib/savewd.h: Likewise.
45614         * lib/search.in.h: Likewise.
45615         * lib/setenv.c: Likewise.
45616         * lib/setenv.h: Likewise.
45617         * lib/settime.c: Likewise.
45618         * lib/sh-quote.c: Likewise.
45619         * lib/sh-quote.h: Likewise.
45620         * lib/sig2str.c: Likewise.
45621         * lib/sig2str.h: Likewise.
45622         * lib/signal.in.h: Likewise.
45623         * lib/signbitd.c: Likewise.
45624         * lib/signbitf.c: Likewise.
45625         * lib/signbitl.c: Likewise.
45626         * lib/sigprocmask.c: Likewise.
45627         * lib/sincosl.c: Likewise.
45628         * lib/sleep.c: Likewise.
45629         * lib/sprintf.c: Likewise.
45630         * lib/sqrtl.c: Likewise.
45631         * lib/stat-time.h: Likewise.
45632         * lib/stdio--.h: Likewise.
45633         * lib/stdio-safer.h: Likewise.
45634         * lib/stdlib--.h: Likewise.
45635         * lib/stdlib-safer.h: Likewise.
45636         * lib/stdlib.in.h: Likewise.
45637         * lib/stpcpy.c: Likewise.
45638         * lib/stpncpy.c: Likewise.
45639         * lib/strchrnul.c: Likewise.
45640         * lib/strcspn.c: Likewise.
45641         * lib/strerror.c: Likewise.
45642         * lib/strftime.c: Likewise.
45643         * lib/strftime.h: Likewise.
45644         * lib/striconveh.c: Likewise.
45645         * lib/striconveh.h: Likewise.
45646         * lib/striconveha.c: Likewise.
45647         * lib/striconveha.h: Likewise.
45648         * lib/stripslash.c: Likewise.
45649         * lib/strnlen1.c: Likewise.
45650         * lib/strnlen1.h: Likewise.
45651         * lib/strtod.c: Likewise.
45652         * lib/strtoimax.c: Likewise.
45653         * lib/strtok_r.c: Likewise.
45654         * lib/strtol.c: Likewise.
45655         * lib/strtoll.c: Likewise.
45656         * lib/strtoul.c: Likewise.
45657         * lib/strtoull.c: Likewise.
45658         * lib/sysexits.in.h: Likewise.
45659         * lib/tempname.c: Likewise.
45660         * lib/tempname.h: Likewise.
45661         * lib/timespec.h: Likewise.
45662         * lib/tls.c: Likewise.
45663         * lib/tls.h: Likewise.
45664         * lib/tmpdir.c: Likewise.
45665         * lib/tmpdir.h: Likewise.
45666         * lib/tmpfile-safer.c: Likewise.
45667         * lib/tmpfile.c: Likewise.
45668         * lib/trigl.c: Likewise.
45669         * lib/trigl.h: Likewise.
45670         * lib/trim.c: Likewise.
45671         * lib/trim.h: Likewise.
45672         * lib/trunc.c: Likewise.
45673         * lib/truncf.c: Likewise.
45674         * lib/truncl.c: Likewise.
45675         * lib/tsearch.c: Likewise.
45676         * lib/unicodeio.c: Likewise.
45677         * lib/unicodeio.h: Likewise.
45678         * lib/unistd--.h: Likewise.
45679         * lib/unistd-safer.h: Likewise.
45680         * lib/unistdio/ulc-fprintf.c: Likewise.
45681         * lib/unistdio/ulc-vfprintf.c: Likewise.
45682         * lib/unlinkdir.c: Likewise.
45683         * lib/unlinkdir.h: Likewise.
45684         * lib/unlocked-io.h: Likewise.
45685         * lib/unsetenv.c: Likewise.
45686         * lib/userspec.c: Likewise.
45687         * lib/utime.c: Likewise.
45688         * lib/utimecmp.c: Likewise.
45689         * lib/utimecmp.h: Likewise.
45690         * lib/utimens.c: Likewise.
45691         * lib/verify.h: Likewise.
45692         * lib/verror.c: Likewise.
45693         * lib/verror.h: Likewise.
45694         * lib/version-etc-fsf.c: Likewise.
45695         * lib/version-etc.c: Likewise.
45696         * lib/version-etc.h: Likewise.
45697         * lib/vfprintf.c: Likewise.
45698         * lib/vprintf.c: Likewise.
45699         * lib/vsprintf.c: Likewise.
45700         * lib/w32spawn.h: Likewise.
45701         * lib/wait-process.c: Likewise.
45702         * lib/wait-process.h: Likewise.
45703         * lib/wcwidth.c: Likewise.
45704         * lib/write-any-file.c: Likewise.
45705         * lib/xalloc-die.c: Likewise.
45706         * lib/xalloc.h: Likewise.
45707         * lib/xasprintf.c: Likewise.
45708         * lib/xgetcwd.c: Likewise.
45709         * lib/xgetcwd.h: Likewise.
45710         * lib/xgetdomainname.c: Likewise.
45711         * lib/xgetdomainname.h: Likewise.
45712         * lib/xgethostname.c: Likewise.
45713         * lib/xmalloc.c: Likewise.
45714         * lib/xmalloca.c: Likewise.
45715         * lib/xmalloca.h: Likewise.
45716         * lib/xmemcoll.c: Likewise.
45717         * lib/xnanosleep.c: Likewise.
45718         * lib/xreadlink.c: Likewise.
45719         * lib/xreadlink.h: Likewise.
45720         * lib/xsetenv.c: Likewise.
45721         * lib/xsetenv.h: Likewise.
45722         * lib/xstriconv.c: Likewise.
45723         * lib/xstriconv.h: Likewise.
45724         * lib/xstrndup.c: Likewise.
45725         * lib/xstrndup.h: Likewise.
45726         * lib/xstrtod.c: Likewise.
45727         * lib/xstrtod.h: Likewise.
45728         * lib/xstrtol-error.c: Likewise.
45729         * lib/xstrtol.c: Likewise.
45730         * lib/xstrtol.h: Likewise.
45731         * lib/xtime.h: Likewise.
45732         * lib/xvasprintf.c: Likewise.
45733         * lib/xvasprintf.h: Likewise.
45734         * lib/yesno.c: Likewise.
45735         * lib/yesno.h: Likewise.
45736         * posix-modules: Likewise.
45737         * tests/test-alloca-opt.c: Likewise.
45738         * tests/test-arcfour.c: Likewise.
45739         * tests/test-arctwo.c: Likewise.
45740         * tests/test-argmatch.c: Likewise.
45741         * tests/test-argp-2.sh: Likewise.
45742         * tests/test-argp.c: Likewise.
45743         * tests/test-arpa_inet.c: Likewise.
45744         * tests/test-array_list.c: Likewise.
45745         * tests/test-array_oset.c: Likewise.
45746         * tests/test-atexit.c: Likewise.
45747         * tests/test-avltree_list.c: Likewise.
45748         * tests/test-avltree_oset.c: Likewise.
45749         * tests/test-avltreehash_list.c: Likewise.
45750         * tests/test-base64.c: Likewise.
45751         * tests/test-binary-io.c: Likewise.
45752         * tests/test-byteswap.c: Likewise.
45753         * tests/test-c-ctype.c: Likewise.
45754         * tests/test-c-strcasecmp.c: Likewise.
45755         * tests/test-c-strcasestr.c: Likewise.
45756         * tests/test-c-strncasecmp.c: Likewise.
45757         * tests/test-c-strstr.c: Likewise.
45758         * tests/test-canonicalize-lgpl.c: Likewise.
45759         * tests/test-canonicalize.c: Likewise.
45760         * tests/test-carray_list.c: Likewise.
45761         * tests/test-ceilf.c: Likewise.
45762         * tests/test-ceill.c: Likewise.
45763         * tests/test-count-one-bits.c: Likewise.
45764         * tests/test-crc.c: Likewise.
45765         * tests/test-dirname.c: Likewise.
45766         * tests/test-fbufmode.c: Likewise.
45767         * tests/test-fcntl.c: Likewise.
45768         * tests/test-fflush.c: Likewise.
45769         * tests/test-floorf.c: Likewise.
45770         * tests/test-floorl.c: Likewise.
45771         * tests/test-fopen.c: Likewise.
45772         * tests/test-fprintf-posix.c: Likewise.
45773         * tests/test-fprintf-posix.h: Likewise.
45774         * tests/test-fpurge.c: Likewise.
45775         * tests/test-freadable.c: Likewise.
45776         * tests/test-freadahead.c: Likewise.
45777         * tests/test-freading.c: Likewise.
45778         * tests/test-freopen.c: Likewise.
45779         * tests/test-frexp.c: Likewise.
45780         * tests/test-frexpl.c: Likewise.
45781         * tests/test-fseek.c: Likewise.
45782         * tests/test-fseeko.c: Likewise.
45783         * tests/test-fseterr.c: Likewise.
45784         * tests/test-fstrcmp.c: Likewise.
45785         * tests/test-ftell.c: Likewise.
45786         * tests/test-ftello.c: Likewise.
45787         * tests/test-fwritable.c: Likewise.
45788         * tests/test-fwriting.c: Likewise.
45789         * tests/test-getaddrinfo.c: Likewise.
45790         * tests/test-getpass.c: Likewise.
45791         * tests/test-gettimeofday.c: Likewise.
45792         * tests/test-hmac-md5.c: Likewise.
45793         * tests/test-hmac-sha1.c: Likewise.
45794         * tests/test-iconv.c: Likewise.
45795         * tests/test-iconvme.c: Likewise.
45796         * tests/test-inttypes.c: Likewise.
45797         * tests/test-isnan.c: Likewise.
45798         * tests/test-isnanf.c: Likewise.
45799         * tests/test-isnanl-nolibm.c: Likewise.
45800         * tests/test-isnanl.c: Likewise.
45801         * tests/test-isnanl.h: Likewise.
45802         * tests/test-ldexpl.c: Likewise.
45803         * tests/test-linked_list.c: Likewise.
45804         * tests/test-linkedhash_list.c: Likewise.
45805         * tests/test-locale.c: Likewise.
45806         * tests/test-localename.c: Likewise.
45807         * tests/test-lock.c: Likewise.
45808         * tests/test-lseek.c: Likewise.
45809         * tests/test-malloca.c: Likewise.
45810         * tests/test-math.c: Likewise.
45811         * tests/test-mbscasecmp.c: Likewise.
45812         * tests/test-mbscasestr1.c: Likewise.
45813         * tests/test-mbscasestr2.c: Likewise.
45814         * tests/test-mbscasestr3.c: Likewise.
45815         * tests/test-mbscasestr4.c: Likewise.
45816         * tests/test-mbschr.c: Likewise.
45817         * tests/test-mbscspn.c: Likewise.
45818         * tests/test-mbsncasecmp.c: Likewise.
45819         * tests/test-mbspbrk.c: Likewise.
45820         * tests/test-mbspcasecmp.c: Likewise.
45821         * tests/test-mbsrchr.c: Likewise.
45822         * tests/test-mbsspn.c: Likewise.
45823         * tests/test-mbsstr1.c: Likewise.
45824         * tests/test-mbsstr2.c: Likewise.
45825         * tests/test-mbsstr3.c: Likewise.
45826         * tests/test-md5.c: Likewise.
45827         * tests/test-memmem.c: Likewise.
45828         * tests/test-netinet_in.c: Likewise.
45829         * tests/test-open.c: Likewise.
45830         * tests/test-printf-frexp.c: Likewise.
45831         * tests/test-printf-frexpl.c: Likewise.
45832         * tests/test-printf-posix.c: Likewise.
45833         * tests/test-printf-posix.h: Likewise.
45834         * tests/test-rbtree_list.c: Likewise.
45835         * tests/test-rbtree_oset.c: Likewise.
45836         * tests/test-rbtreehash_list.c: Likewise.
45837         * tests/test-read-file.c: Likewise.
45838         * tests/test-rijndael.c: Likewise.
45839         * tests/test-search.c: Likewise.
45840         * tests/test-signbit.c: Likewise.
45841         * tests/test-sleep.c: Likewise.
45842         * tests/test-snprintf-posix.c: Likewise.
45843         * tests/test-snprintf-posix.h: Likewise.
45844         * tests/test-snprintf.c: Likewise.
45845         * tests/test-sprintf-posix.c: Likewise.
45846         * tests/test-sprintf-posix.h: Likewise.
45847         * tests/test-stat-time.c: Likewise.
45848         * tests/test-stdbool.c: Likewise.
45849         * tests/test-stdint.c: Likewise.
45850         * tests/test-stdio.c: Likewise.
45851         * tests/test-stdlib.c: Likewise.
45852         * tests/test-stpncpy.c: Likewise.
45853         * tests/test-strcasestr.c: Likewise.
45854         * tests/test-striconv.c: Likewise.
45855         * tests/test-striconveh.c: Likewise.
45856         * tests/test-striconveha.c: Likewise.
45857         * tests/test-string.c: Likewise.
45858         * tests/test-sys_select.c: Likewise.
45859         * tests/test-sys_socket.c: Likewise.
45860         * tests/test-sys_stat.c: Likewise.
45861         * tests/test-sys_time.c: Likewise.
45862         * tests/test-sysexits.c: Likewise.
45863         * tests/test-time.c: Likewise.
45864         * tests/test-tls.c: Likewise.
45865         * tests/test-trunc.c: Likewise.
45866         * tests/test-truncf.c: Likewise.
45867         * tests/test-truncl.c: Likewise.
45868         * tests/test-unistd.c: Likewise.
45869         * tests/test-vasnprintf-posix.c: Likewise.
45870         * tests/test-vasnprintf-posix2.c: Likewise.
45871         * tests/test-vasnprintf.c: Likewise.
45872         * tests/test-vasprintf-posix.c: Likewise.
45873         * tests/test-vasprintf.c: Likewise.
45874         * tests/test-verify.c: Likewise.
45875         * tests/test-vfprintf-posix.c: Likewise.
45876         * tests/test-vprintf-posix.c: Likewise.
45877         * tests/test-vsnprintf-posix.c: Likewise.
45878         * tests/test-vsnprintf.c: Likewise.
45879         * tests/test-vsprintf-posix.c: Likewise.
45880         * tests/test-wchar.c: Likewise.
45881         * tests/test-wctype.c: Likewise.
45882         * tests/test-wcwidth.c: Likewise.
45883         * tests/test-xstrtol.c: Likewise.
45884         * tests/test-xvasprintf.c: Likewise.
45885         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
45886         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
45887         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
45888         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
45889         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
45890         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
45891         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
45892         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
45893         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
45894         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
45895         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
45896         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
45897         * tests/uniname/test-uninames.c: Likewise.
45898         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
45899         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
45900         * tests/unistdio/test-u16-printf1.h: Likewise.
45901         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
45902         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
45903         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
45904         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
45905         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
45906         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
45907         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
45908         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
45909         * tests/unistdio/test-u32-printf1.h: Likewise.
45910         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
45911         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
45912         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
45913         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
45914         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
45915         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
45916         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
45917         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
45918         * tests/unistdio/test-u8-printf1.h: Likewise.
45919         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
45920         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
45921         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
45922         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
45923         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
45924         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
45925         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
45926         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
45927         * tests/unistdio/test-ulc-printf1.h: Likewise.
45928         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
45929         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
45930         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
45931         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
45932         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
45933         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
45934         * tests/uniwidth/test-u16-strwidth.c: Likewise.
45935         * tests/uniwidth/test-u16-width.c: Likewise.
45936         * tests/uniwidth/test-u32-strwidth.c: Likewise.
45937         * tests/uniwidth/test-u32-width.c: Likewise.
45938         * tests/uniwidth/test-u8-strwidth.c: Likewise.
45939         * tests/uniwidth/test-u8-width.c: Likewise.
45940         * tests/uniwidth/test-uc_width.c: Likewise.
45941         * config/srclist-update: Likewise.
45942         (fixlicense): Update to GPLv3+.
45943
45944         Change copyright notice from LGPLv2.1+ to LGPLv3+.
45945         * tests/test-tsearch.c: Change copyright notice.
45946
45947         Change copyright notice from LGPLv2.0+ to LGPLv3+.
45948         * lib/c-strcaseeq.h: Change copyright notice.
45949         * lib/streq.h: Likewise.
45950         * lib/uniconv.h: Likewise.
45951         * lib/uniconv/u-conv-from-enc.h: Likewise.
45952         * lib/uniconv/u-conv-to-enc.h: Likewise.
45953         * lib/uniconv/u-strconv-from-enc.h: Likewise.
45954         * lib/uniconv/u-strconv-to-enc.h: Likewise.
45955         * lib/uniconv/u16-conv-from-enc.c: Likewise.
45956         * lib/uniconv/u16-conv-to-enc.c: Likewise.
45957         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
45958         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
45959         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
45960         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
45961         * lib/uniconv/u32-conv-from-enc.c: Likewise.
45962         * lib/uniconv/u32-conv-to-enc.c: Likewise.
45963         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
45964         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
45965         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
45966         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
45967         * lib/uniconv/u8-conv-from-enc.c: Likewise.
45968         * lib/uniconv/u8-conv-to-enc.c: Likewise.
45969         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
45970         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
45971         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
45972         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
45973         * lib/uniname.h: Likewise.
45974         * lib/uniname/uniname.c: Likewise.
45975         * lib/unistdio.h: Likewise.
45976         * lib/unistdio/u-asnprintf.h: Likewise.
45977         * lib/unistdio/u-asprintf.h: Likewise.
45978         * lib/unistdio/u-printf-args.c: Likewise.
45979         * lib/unistdio/u-printf-args.h: Likewise.
45980         * lib/unistdio/u-printf-parse.h: Likewise.
45981         * lib/unistdio/u-snprintf.h: Likewise.
45982         * lib/unistdio/u-sprintf.h: Likewise.
45983         * lib/unistdio/u-vasprintf.h: Likewise.
45984         * lib/unistdio/u-vsnprintf.h: Likewise.
45985         * lib/unistdio/u-vsprintf.h: Likewise.
45986         * lib/unistdio/u16-asnprintf.c: Likewise.
45987         * lib/unistdio/u16-asprintf.c: Likewise.
45988         * lib/unistdio/u16-printf-parse.c: Likewise.
45989         * lib/unistdio/u16-snprintf.c: Likewise.
45990         * lib/unistdio/u16-sprintf.c: Likewise.
45991         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
45992         * lib/unistdio/u16-u16-asprintf.c: Likewise.
45993         * lib/unistdio/u16-u16-snprintf.c: Likewise.
45994         * lib/unistdio/u16-u16-sprintf.c: Likewise.
45995         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
45996         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
45997         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
45998         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
45999         * lib/unistdio/u16-vasnprintf.c: Likewise.
46000         * lib/unistdio/u16-vasprintf.c: Likewise.
46001         * lib/unistdio/u16-vsnprintf.c: Likewise.
46002         * lib/unistdio/u16-vsprintf.c: Likewise.
46003         * lib/unistdio/u32-asnprintf.c: Likewise.
46004         * lib/unistdio/u32-asprintf.c: Likewise.
46005         * lib/unistdio/u32-printf-parse.c: Likewise.
46006         * lib/unistdio/u32-snprintf.c: Likewise.
46007         * lib/unistdio/u32-sprintf.c: Likewise.
46008         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
46009         * lib/unistdio/u32-u32-asprintf.c: Likewise.
46010         * lib/unistdio/u32-u32-snprintf.c: Likewise.
46011         * lib/unistdio/u32-u32-sprintf.c: Likewise.
46012         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
46013         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
46014         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
46015         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
46016         * lib/unistdio/u32-vasnprintf.c: Likewise.
46017         * lib/unistdio/u32-vasprintf.c: Likewise.
46018         * lib/unistdio/u32-vsnprintf.c: Likewise.
46019         * lib/unistdio/u32-vsprintf.c: Likewise.
46020         * lib/unistdio/u8-asnprintf.c: Likewise.
46021         * lib/unistdio/u8-asprintf.c: Likewise.
46022         * lib/unistdio/u8-printf-parse.c: Likewise.
46023         * lib/unistdio/u8-snprintf.c: Likewise.
46024         * lib/unistdio/u8-sprintf.c: Likewise.
46025         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
46026         * lib/unistdio/u8-u8-asprintf.c: Likewise.
46027         * lib/unistdio/u8-u8-snprintf.c: Likewise.
46028         * lib/unistdio/u8-u8-sprintf.c: Likewise.
46029         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
46030         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
46031         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
46032         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
46033         * lib/unistdio/u8-vasnprintf.c: Likewise.
46034         * lib/unistdio/u8-vasprintf.c: Likewise.
46035         * lib/unistdio/u8-vsnprintf.c: Likewise.
46036         * lib/unistdio/u8-vsprintf.c: Likewise.
46037         * lib/unistdio/ulc-asnprintf.c: Likewise.
46038         * lib/unistdio/ulc-asprintf.c: Likewise.
46039         * lib/unistdio/ulc-printf-parse.c: Likewise.
46040         * lib/unistdio/ulc-snprintf.c: Likewise.
46041         * lib/unistdio/ulc-sprintf.c: Likewise.
46042         * lib/unistdio/ulc-vasnprintf.c: Likewise.
46043         * lib/unistdio/ulc-vasprintf.c: Likewise.
46044         * lib/unistdio/ulc-vsnprintf.c: Likewise.
46045         * lib/unistdio/ulc-vsprintf.c: Likewise.
46046         * lib/unistr.h: Likewise.
46047         * lib/unistr/u-cpy-alloc.h: Likewise.
46048         * lib/unistr/u-cpy.h: Likewise.
46049         * lib/unistr/u-endswith.h: Likewise.
46050         * lib/unistr/u-move.h: Likewise.
46051         * lib/unistr/u-set.h: Likewise.
46052         * lib/unistr/u-startswith.h: Likewise.
46053         * lib/unistr/u-stpcpy.h: Likewise.
46054         * lib/unistr/u-stpncpy.h: Likewise.
46055         * lib/unistr/u-strcat.h: Likewise.
46056         * lib/unistr/u-strcpy.h: Likewise.
46057         * lib/unistr/u-strcspn.h: Likewise.
46058         * lib/unistr/u-strdup.h: Likewise.
46059         * lib/unistr/u-strlen.h: Likewise.
46060         * lib/unistr/u-strncat.h: Likewise.
46061         * lib/unistr/u-strncpy.h: Likewise.
46062         * lib/unistr/u-strnlen.h: Likewise.
46063         * lib/unistr/u-strpbrk.h: Likewise.
46064         * lib/unistr/u-strspn.h: Likewise.
46065         * lib/unistr/u-strstr.h: Likewise.
46066         * lib/unistr/u-strtok.h: Likewise.
46067         * lib/unistr/u16-check.c: Likewise.
46068         * lib/unistr/u16-chr.c: Likewise.
46069         * lib/unistr/u16-cmp.c: Likewise.
46070         * lib/unistr/u16-cpy-alloc.c: Likewise.
46071         * lib/unistr/u16-cpy.c: Likewise.
46072         * lib/unistr/u16-endswith.c: Likewise.
46073         * lib/unistr/u16-mblen.c: Likewise.
46074         * lib/unistr/u16-mbsnlen.c: Likewise.
46075         * lib/unistr/u16-mbtouc-aux.c: Likewise.
46076         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
46077         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
46078         * lib/unistr/u16-mbtouc.c: Likewise.
46079         * lib/unistr/u16-mbtoucr.c: Likewise.
46080         * lib/unistr/u16-move.c: Likewise.
46081         * lib/unistr/u16-next.c: Likewise.
46082         * lib/unistr/u16-prev.c: Likewise.
46083         * lib/unistr/u16-set.c: Likewise.
46084         * lib/unistr/u16-startswith.c: Likewise.
46085         * lib/unistr/u16-stpcpy.c: Likewise.
46086         * lib/unistr/u16-stpncpy.c: Likewise.
46087         * lib/unistr/u16-strcat.c: Likewise.
46088         * lib/unistr/u16-strchr.c: Likewise.
46089         * lib/unistr/u16-strcmp.c: Likewise.
46090         * lib/unistr/u16-strcpy.c: Likewise.
46091         * lib/unistr/u16-strcspn.c: Likewise.
46092         * lib/unistr/u16-strdup.c: Likewise.
46093         * lib/unistr/u16-strlen.c: Likewise.
46094         * lib/unistr/u16-strmblen.c: Likewise.
46095         * lib/unistr/u16-strmbtouc.c: Likewise.
46096         * lib/unistr/u16-strncat.c: Likewise.
46097         * lib/unistr/u16-strncmp.c: Likewise.
46098         * lib/unistr/u16-strncpy.c: Likewise.
46099         * lib/unistr/u16-strnlen.c: Likewise.
46100         * lib/unistr/u16-strpbrk.c: Likewise.
46101         * lib/unistr/u16-strrchr.c: Likewise.
46102         * lib/unistr/u16-strspn.c: Likewise.
46103         * lib/unistr/u16-strstr.c: Likewise.
46104         * lib/unistr/u16-strtok.c: Likewise.
46105         * lib/unistr/u16-to-u32.c: Likewise.
46106         * lib/unistr/u16-to-u8.c: Likewise.
46107         * lib/unistr/u16-uctomb-aux.c: Likewise.
46108         * lib/unistr/u16-uctomb.c: Likewise.
46109         * lib/unistr/u32-check.c: Likewise.
46110         * lib/unistr/u32-chr.c: Likewise.
46111         * lib/unistr/u32-cmp.c: Likewise.
46112         * lib/unistr/u32-cpy-alloc.c: Likewise.
46113         * lib/unistr/u32-cpy.c: Likewise.
46114         * lib/unistr/u32-endswith.c: Likewise.
46115         * lib/unistr/u32-mblen.c: Likewise.
46116         * lib/unistr/u32-mbsnlen.c: Likewise.
46117         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
46118         * lib/unistr/u32-mbtouc.c: Likewise.
46119         * lib/unistr/u32-mbtoucr.c: Likewise.
46120         * lib/unistr/u32-move.c: Likewise.
46121         * lib/unistr/u32-next.c: Likewise.
46122         * lib/unistr/u32-prev.c: Likewise.
46123         * lib/unistr/u32-set.c: Likewise.
46124         * lib/unistr/u32-startswith.c: Likewise.
46125         * lib/unistr/u32-stpcpy.c: Likewise.
46126         * lib/unistr/u32-stpncpy.c: Likewise.
46127         * lib/unistr/u32-strcat.c: Likewise.
46128         * lib/unistr/u32-strchr.c: Likewise.
46129         * lib/unistr/u32-strcmp.c: Likewise.
46130         * lib/unistr/u32-strcpy.c: Likewise.
46131         * lib/unistr/u32-strcspn.c: Likewise.
46132         * lib/unistr/u32-strdup.c: Likewise.
46133         * lib/unistr/u32-strlen.c: Likewise.
46134         * lib/unistr/u32-strmblen.c: Likewise.
46135         * lib/unistr/u32-strmbtouc.c: Likewise.
46136         * lib/unistr/u32-strncat.c: Likewise.
46137         * lib/unistr/u32-strncmp.c: Likewise.
46138         * lib/unistr/u32-strncpy.c: Likewise.
46139         * lib/unistr/u32-strnlen.c: Likewise.
46140         * lib/unistr/u32-strpbrk.c: Likewise.
46141         * lib/unistr/u32-strrchr.c: Likewise.
46142         * lib/unistr/u32-strspn.c: Likewise.
46143         * lib/unistr/u32-strstr.c: Likewise.
46144         * lib/unistr/u32-strtok.c: Likewise.
46145         * lib/unistr/u32-to-u16.c: Likewise.
46146         * lib/unistr/u32-to-u8.c: Likewise.
46147         * lib/unistr/u32-uctomb.c: Likewise.
46148         * lib/unistr/u8-check.c: Likewise.
46149         * lib/unistr/u8-chr.c: Likewise.
46150         * lib/unistr/u8-cmp.c: Likewise.
46151         * lib/unistr/u8-cpy-alloc.c: Likewise.
46152         * lib/unistr/u8-cpy.c: Likewise.
46153         * lib/unistr/u8-endswith.c: Likewise.
46154         * lib/unistr/u8-mblen.c: Likewise.
46155         * lib/unistr/u8-mbsnlen.c: Likewise.
46156         * lib/unistr/u8-mbtouc-aux.c: Likewise.
46157         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
46158         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
46159         * lib/unistr/u8-mbtouc.c: Likewise.
46160         * lib/unistr/u8-mbtoucr.c: Likewise.
46161         * lib/unistr/u8-move.c: Likewise.
46162         * lib/unistr/u8-next.c: Likewise.
46163         * lib/unistr/u8-prev.c: Likewise.
46164         * lib/unistr/u8-set.c: Likewise.
46165         * lib/unistr/u8-startswith.c: Likewise.
46166         * lib/unistr/u8-stpcpy.c: Likewise.
46167         * lib/unistr/u8-stpncpy.c: Likewise.
46168         * lib/unistr/u8-strcat.c: Likewise.
46169         * lib/unistr/u8-strchr.c: Likewise.
46170         * lib/unistr/u8-strcmp.c: Likewise.
46171         * lib/unistr/u8-strcpy.c: Likewise.
46172         * lib/unistr/u8-strcspn.c: Likewise.
46173         * lib/unistr/u8-strdup.c: Likewise.
46174         * lib/unistr/u8-strlen.c: Likewise.
46175         * lib/unistr/u8-strmblen.c: Likewise.
46176         * lib/unistr/u8-strmbtouc.c: Likewise.
46177         * lib/unistr/u8-strncat.c: Likewise.
46178         * lib/unistr/u8-strncmp.c: Likewise.
46179         * lib/unistr/u8-strncpy.c: Likewise.
46180         * lib/unistr/u8-strnlen.c: Likewise.
46181         * lib/unistr/u8-strpbrk.c: Likewise.
46182         * lib/unistr/u8-strrchr.c: Likewise.
46183         * lib/unistr/u8-strspn.c: Likewise.
46184         * lib/unistr/u8-strstr.c: Likewise.
46185         * lib/unistr/u8-strtok.c: Likewise.
46186         * lib/unistr/u8-to-u16.c: Likewise.
46187         * lib/unistr/u8-to-u32.c: Likewise.
46188         * lib/unistr/u8-uctomb-aux.c: Likewise.
46189         * lib/unistr/u8-uctomb.c: Likewise.
46190         * lib/unitypes.h: Likewise.
46191         * lib/uniwidth.h: Likewise.
46192         * lib/uniwidth/cjk.h: Likewise.
46193         * lib/uniwidth/u16-strwidth.c: Likewise.
46194         * lib/uniwidth/u16-width.c: Likewise.
46195         * lib/uniwidth/u32-strwidth.c: Likewise.
46196         * lib/uniwidth/u32-width.c: Likewise.
46197         * lib/uniwidth/u8-strwidth.c: Likewise.
46198         * lib/uniwidth/u8-width.c: Likewise.
46199         * lib/uniwidth/width.c: Likewise.
46200
46201 2007-10-07  Bruno Haible  <bruno@clisp.org>
46202
46203         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
46204         The file is still under LGPL (see modules/inttypes).
46205
46206 2007-10-06  Bruno Haible  <bruno@clisp.org>
46207
46208         * modules/trunc (Dependencies): Add 'extensions'.
46209         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
46210         Reported by Ben Pfaff <blp@gnu.org>.
46211
46212 2007-10-06  Bruno Haible  <bruno@clisp.org>
46213
46214         * modules/freopen-tests: New file.
46215         * tests/test-freopen.c: New file.
46216
46217         * modules/fopen-tests: New file.
46218         * tests/test-fopen.c: New file.
46219
46220         * modules/fopen: New file.
46221         * lib/fopen.c: New file.
46222         * m4/fopen.m4: New file.
46223         * modules/freopen: New file.
46224         * lib/freopen.c: New file.
46225         * m4/freopen.m4: New file.
46226         * lib/stdio.in.h (fopen, freopen): New declarations.
46227         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
46228         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
46229         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
46230         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
46231         * doc/functions/fopen.texi: Mention the 'fopen' module.
46232         * doc/functions/freopen.texi: Mention the 'freopen' module.
46233
46234 2007-10-06  Bruno Haible  <bruno@clisp.org>
46235
46236         * modules/open-tests: New file.
46237         * tests/test-open.c: New file.
46238
46239         * modules/open: New file.
46240         * lib/open.c: New file.
46241         * m4/open.m4: New file.
46242         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
46243         lib/open.c does.
46244         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
46245         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
46246         macros.
46247         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
46248         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
46249         REPLACE_OPEN.
46250         * doc/functions/open.texi: Mention the 'open' module.
46251
46252 2007-10-04  Bruno Haible  <bruno@clisp.org>
46253
46254         * modules/ceill-tests: New file.
46255         * tests/test-ceill.c: New file.
46256
46257         * modules/ceill: New file.
46258         * lib/ceill.c: Replace entire file.
46259         * m4/ceill.m4: New file.
46260         * lib/math.in.h (ceill): Replace declaration.
46261         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
46262         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
46263         * doc/functions/ceill.texi: Mention the 'ceill' module.
46264         * modules/mathl (Files): Remove lib/ceill.c.
46265         (Depends-on): Add ceill.
46266
46267 2007-10-04  Bruno Haible  <bruno@clisp.org>
46268
46269         * modules/ceilf-tests: New file.
46270         * tests/test-ceilf.c: New file.
46271
46272         * modules/ceilf: New file.
46273         * lib/ceil.c: New file.
46274         * lib/ceilf.c: New file.
46275         * m4/ceilf.m4: New file.
46276         * lib/math.in.h (ceilf): New declaration.
46277         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
46278         HAVE_DECL_CEILF.
46279         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
46280         HAVE_DECL_CEILF.
46281         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
46282
46283 2007-10-04  Bruno Haible  <bruno@clisp.org>
46284
46285         * modules/floorl-tests: New file.
46286         * tests/test-floorl.c: New file.
46287
46288         * modules/floorl: New file.
46289         * lib/floorl.c: Replace entire file.
46290         * m4/floorl.m4: New file.
46291         * lib/math.in.h (floorl): Replace declaration.
46292         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
46293         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
46294         * doc/functions/floorl.texi: Mention the 'floorl' module.
46295         * modules/mathl (Files): Remove lib/floorl.c.
46296         (Depends-on): Add floorl.
46297
46298 2007-10-04  Bruno Haible  <bruno@clisp.org>
46299
46300         * modules/floorf-tests: New file.
46301         * tests/test-floorf.c: New file.
46302
46303         * modules/floorf: New file.
46304         * lib/floor.c: New file.
46305         * lib/floorf.c: New file.
46306         * m4/floorf.m4: New file.
46307         * lib/math.in.h (floorf): New declaration.
46308         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
46309         HAVE_DECL_FLOORF.
46310         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
46311         HAVE_DECL_FLOORF.
46312         * doc/functions/floorf.texi: Mention the 'floorf' module.
46313
46314 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
46315             Bruno Haible  <bruno@clisp.org>
46316
46317         Advertise for the Git server instead of the CVS server.
46318         * doc/gnulib-intro.texi (Steady Development): Mention the Git
46319         repository instead of the CVS one.
46320         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
46321         about all VCS systems generically.
46322         * doc/gnulib.texi (Introduction): Capitalize `Git'.
46323
46324 2007-10-04  Bruno Haible  <bruno@clisp.org>
46325
46326         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
46327         means.
46328         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
46329
46330 2007-10-04  Bruno Haible  <bruno@clisp.org>
46331
46332         * modules/truncl-tests: New file.
46333         * tests/test-truncl.c: New file.
46334
46335         * modules/truncl: New file.
46336         * lib/truncl.c: New file.
46337         * m4/truncl.m4: New file.
46338         * lib/math.in.h (truncl): New declaration.
46339         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
46340         HAVE_DECL_TRUNCL.
46341         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
46342         HAVE_DECL_TRUNCL.
46343         * doc/functions/truncl.texi: Mention the 'truncl' module.
46344
46345 2007-10-04  Bruno Haible  <bruno@clisp.org>
46346
46347         * modules/truncf-tests: New file.
46348         * tests/test-truncf.c: New file.
46349
46350         * modules/truncf: New file.
46351         * lib/trunc.c: Make paramerizable through USE_* macros.
46352         * lib/truncf.c: New file.
46353         * m4/truncf.m4: New file.
46354         * lib/math.in.h (truncf): New declaration.
46355         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
46356         HAVE_DECL_TRUNCF.
46357         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
46358         HAVE_DECL_TRUNCF.
46359         * doc/functions/truncf.texi: Mention the 'truncf' module.
46360
46361 2007-10-03  Bruno Haible  <bruno@clisp.org>
46362
46363         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
46364         augmentation also for tests modules.
46365         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
46366         * modules/atexit-tests (Makefile.am): Likewise.
46367         * modules/binary-io-tests (Makefile.am): Likewise.
46368         * modules/c-strcase-tests (Makefile.am): Likewise.
46369         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
46370         * modules/canonicalize-tests (Makefile.am): Likewise.
46371         * modules/closein-tests (Makefile.am): Likewise.
46372         * modules/fprintf-posix-tests (Makefile.am): Likewise.
46373         * modules/freadahead-tests (Makefile.am): Likewise.
46374         * modules/fseek-tests (Makefile.am): Likewise.
46375         * modules/fseeko-tests (Makefile.am): Likewise.
46376         * modules/ftell-tests (Makefile.am): Likewise.
46377         * modules/ftello-tests (Makefile.am): Likewise.
46378         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
46379         * modules/isnanl-tests (Makefile.am): Likewise.
46380         * modules/lseek-tests (Makefile.am): Likewise.
46381         * modules/mbscasecmp-tests (Makefile.am): Likewise.
46382         * modules/mbscasestr-tests (Makefile.am): Likewise.
46383         * modules/mbschr-tests (Makefile.am): Likewise.
46384         * modules/mbscspn-tests (Makefile.am): Likewise.
46385         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
46386         * modules/mbspbrk-tests (Makefile.am): Likewise.
46387         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
46388         * modules/mbsrchr-tests (Makefile.am): Likewise.
46389         * modules/mbsspn-tests (Makefile.am): Likewise.
46390         * modules/mbsstr-tests (Makefile.am): Likewise.
46391         * modules/printf-posix-tests (Makefile.am): Likewise.
46392         * modules/snprintf-posix-tests (Makefile.am): Likewise.
46393         * modules/sprintf-posix-tests (Makefile.am): Likewise.
46394         * modules/tsearch-tests (Makefile.am): Likewise.
46395         * modules/uniname/uniname-tests (Makefile.am): Likewise.
46396         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
46397         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
46398         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
46399         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
46400         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
46401         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
46402         * modules/vprintf-posix-tests (Makefile.am): Likewise.
46403         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
46404         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
46405         * modules/xstrtoimax-tests (Makefile.am): Likewise.
46406         * modules/xstrtol-tests (Makefile.am): Likewise.
46407         * modules/xstrtoumax-tests (Makefile.am): Likewise.
46408         * modules/yesno-tests (Makefile.am): Likewise.
46409
46410 2007-10-03  Bruno Haible  <bruno@clisp.org>
46411
46412         * modules/trunc-tests: New file.
46413         * tests/test-trunc.c: New file.
46414
46415         * modules/trunc: New file.
46416         * lib/trunc.c: New file.
46417         * m4/trunc.m4: New file.
46418         * lib/math.in.h (trunc): New declaration.
46419         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
46420         HAVE_DECL_TRUNC.
46421         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
46422         HAVE_DECL_TRUNC.
46423         * doc/functions/trunc.texi: Mention the 'trunc' module.
46424
46425 2007-10-03  Bruno Haible  <bruno@clisp.org>
46426
46427         * tests/test-fpending.c: New file, mostly copied
46428         from coreutils/lib/t-fpending.c.
46429         * modules/fpending-tests: New file.
46430
46431 2007-10-03  Bruno Haible  <bruno@clisp.org>
46432
46433         Port the stdio extensions to QNX (untested).
46434         * lib/fseterr.c (fseterr): Add support for QNX.
46435         * lib/fbufmode.c (fbufmode): Likewise.
46436         * lib/freadable.c (freadable): Likewise.
46437         * lib/fwritable.c (fwritable): Likewise.
46438         * lib/freading.c (freading): Likewise.
46439         * lib/fwriting.c (fwriting): Likewise.
46440         * lib/freadahead.c (freadahed): Likewise.
46441         * lib/fpurge.c (fpurge): Likewise.
46442         * lib/fseeko.c (rpl_fseeko): Likewise.
46443
46444 2007-10-03  Bruno Haible  <bruno@clisp.org>
46445             Jim Meyering  <jim@meyering.net>
46446             Eric Blake  <ebb9@byu.net>
46447
46448         * doc/relocatable.texi: Use @command instead of @program.
46449
46450 2007-10-02  Jim Meyering  <jim@meyering.net>
46451
46452         Perform one more "_.h" -> ".in.h" substitution.
46453         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
46454         instead of unistd_.h here, too.
46455
46456 2007-10-01  Bruno Haible  <bruno@clisp.org>
46457
46458         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
46459         Needed for the alloca-opt module.
46460
46461 2007-09-30  Bruno Haible  <bruno@clisp.org>
46462
46463         * lib/alloca.in.h: Renamed from lib/alloca_.h.
46464         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
46465         alloca_.h.
46466         * lib/argz.in.h: Renamed from lib/argz_.h.
46467         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
46468         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
46469         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
46470         byteswap_.h.
46471         * lib/dirent.in.h: Renamed from lib/dirent_.h.
46472         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
46473         dirent_.h.
46474         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
46475         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
46476         fcntl_.h.
46477         * lib/float.in.h: Renamed from lib/float_.h.
46478         * modules/float (Files, Makefile.am): Use float.in.h instead of
46479         float_.h.
46480         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
46481         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
46482         fnmatch_.h.
46483         * lib/getopt.in.h: Renamed from lib/getopt_.h.
46484         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
46485         getopt_.h.
46486         * lib/glob.in.h: Renamed from lib/glob_.h.
46487         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
46488         * lib/iconv.in.h: Renamed from lib/iconv_.h.
46489         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
46490         iconv_.h.
46491         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
46492         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
46493         inttypes_.h.
46494         * lib/locale.in.h: Renamed from lib/locale_.h.
46495         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
46496         locale_.h.
46497         * lib/math.in.h: Renamed from lib/math_.h.
46498         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
46499         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
46500         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
46501         of netinet_in_.h. Add dependency.
46502         * lib/poll.in.h: Renamed from lib/poll_.h.
46503         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
46504         * lib/search.in.h: Renamed from lib/search_.h.
46505         * modules/search (Files, Makefile.am): Use search.in.h instead of
46506         search_.h.
46507         * lib/signal.in.h: Renamed from lib/signal_.h.
46508         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
46509         _signal.h.
46510         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
46511         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
46512         stdbool_.h.
46513         * lib/stdint.in.h: Renamed from lib/stdint_.h.
46514         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
46515         stdint_.h.
46516         * lib/stdio.in.h: Renamed from lib/stdio_.h.
46517         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
46518         stdio_.h.
46519         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
46520         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
46521         stdlib_.h.
46522         * lib/string.in.h: Renamed from lib/string_.h.
46523         * modules/string (Files, Makefile.am): Use string.in.h instead of
46524         string_.h.
46525         * doc/gnulib-tool.texi (Initial import): Update.
46526         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
46527         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
46528         of sys_select_.h. Add dependency.
46529         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
46530         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
46531         of sys_socket_.h.
46532         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
46533         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
46534         sys_stat_.h.
46535         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
46536         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
46537         sys_time_.h.
46538         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
46539         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
46540         sysexits_.h.
46541         * lib/time.in.h: Renamed from lib/time_.h.
46542         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
46543         * lib/unistd.in.h: Renamed from lib/unistd_.h.
46544         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
46545         unistd_.h.
46546         * lib/wchar.in.h: Renamed from lib/wchar_.h.
46547         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
46548         wchar_.h.
46549         * lib/wctype.in.h: Renamed from lib/wctype_.h.
46550         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
46551         wctype_.h.
46552         * build-aux/bootstrap (slurp): Update.
46553         * lib/.cppi-disable: Update.
46554
46555 2007-09-30  Bruno Haible  <bruno@clisp.org>
46556
46557         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
46558         Needed on BeOS.
46559
46560 2007-09-30  Bruno Haible  <bruno@clisp.org>
46561
46562         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
46563
46564 2007-09-29  Bruno Haible  <bruno@clisp.org>
46565
46566         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
46567
46568 2007-09-29  Bruno Haible  <bruno@clisp.org>
46569
46570         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
46571         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
46572         * build-aux/install-reloc: Compile also areadlink.c.
46573         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
46574
46575 2007-09-29  Bruno Haible  <bruno@clisp.org>
46576
46577         * gnulib-tool (func_emit_initmacro_done): Indentation.
46578
46579 2007-09-29  Bruno Haible  <bruno@clisp.org>
46580
46581         * README: Add CVS checkout update instructions.
46582         Info from Bob Proulx <bob@proulx.com>.
46583
46584 2007-09-28  Eric Blake  <ebb9@byu.net>
46585
46586         Provide move-if-change.
46587         * build-aux/move-if-change: New file, based on best practice
46588         rather than any canonical upstream location.
46589
46590 2007-09-28  Jim Meyering  <jim@meyering.net>
46591
46592         Fix canonicalize loop-detection corner case.
46593         Do not attempt to stat the symlink values stored via seen_triple.
46594         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
46595         on linux-2.6.18, (but not 2.6.22).
46596         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
46597         triple_compare.  The former compares dev,ino,filename, while the latter
46598         would actually stat dirname(filename) when dev and ino were equal.
46599         * lib/hash-triple.c: Install <string.h>.
46600         (STREQ): Define.
46601         (triple_compare_ino_str): New function.
46602         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
46603
46604 2007-09-28  Eric Blake  <ebb9@byu.net>
46605
46606         Enforce that AC_REPLACE_FUNCS files exist.
46607         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
46608         override check for typos.
46609
46610         Fix test-closein on Solaris 10.
46611         * tests/test-closein.c (main): Don't assume stdin can be inherited
46612         closed on all systems.
46613         * tests/test-closein.sh: Likewise.
46614         Reported by Piotr Tarnowski.
46615
46616 2007-09-28  Jim Meyering  <jim@meyering.net>
46617
46618         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
46619
46620 2007-09-27  Jim Meyering  <jim@meyering.net>
46621
46622         canonicalize: Avoid a false-positive cycle failure.
46623         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
46624         Sort.  Remove cycle-check.
46625         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
46626         not cycle-check.h.
46627         (seen_triple): New function.
46628         (canonicalize_filename_mode): Use it instead of cycle-check.
46629         * tests/test-canonicalize.c: Add a test for this bug.
46630         * tests/test-canonicalize.sh: Set up and run the test.
46631
46632         New module, file-set, from coreutils.
46633         * modules/file-set: Define it.
46634         * lib/file-set.c, lib/file-set.h: Implement.
46635
46636         New module, hash-triple, from coreutils.
46637         * modules/hash-triple: Define it.
46638         * lib/hash-triple.c, lib/hash-triple.h: Implement.
46639
46640 2007-09-25  Eric Blake  <ebb9@byu.net>
46641
46642         Fix strerror on Interix.
46643         * lib/string_.h (strerror): Declare replacement.
46644         * doc/functions/strerror.texi (strerror): Document the Interix
46645         shortcoming.
46646         * modules/string (Makefile.am): Support new hooks.
46647         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
46648         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
46649         gl_FUNC_STRERROR_SEPARATE.
46650         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
46651         * lib/strerror.c (rpl_strerror): Provide replacement.
46652         * modules/strerror (Depends-on): Add string.
46653         (configure.ac): Detect use of module.
46654         * tests/test-strerror.c: New file.
46655         * modules/strerror-tests: New test module.
46656         * modules/argp (Depends-on): Add strerror.
46657         * modules/error (Depends-on): Likewise.
46658         Reported by Martin Koeppe.
46659
46660 2007-09-24  Bruno Haible  <bruno@clisp.org>
46661
46662         * README: Update git instructions.
46663
46664 2007-09-24  Eric Blake  <ebb9@byu.net>
46665
46666         Revert fpending breakage from 2007-09-08.
46667         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
46668         __fpending.c.
46669
46670 2007-09-24  Jim Meyering  <jim@meyering.net>
46671
46672         filenamecat.c: Add a test.
46673         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
46674         showing how the function works when DIR is the empty string.
46675
46676 2007-09-21  Simon Josefsson  <simon@josefsson.org>
46677
46678         * tests/test-canonicalize.sh: Turn on executable bit.
46679
46680 2007-09-19  Eric Blake  <ebb9@byu.net>
46681
46682         * README: Update CVS instructions.
46683
46684 2007-09-18  Bruno Haible  <bruno@clisp.org>
46685
46686         * modules/areadlink: New file.
46687         * lib/areadlink.h (areadlink): New declaration.
46688         * lib/areadlink.c: New file, based on lib/xreadlink.c.
46689
46690 2007-09-17  Jim Meyering  <jim@meyering.net>
46691
46692         * lib/savewd.c (ESTALE) [!defined]: Define.
46693         Reported to be required on Interix by Martin Koeppe.
46694
46695 2007-09-17  Bruno Haible  <bruno@clisp.org>
46696
46697         * gnulib-tool (func_version): Use $version.
46698
46699 2007-09-16  Bruno Haible  <bruno@clisp.org>
46700
46701         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
46702         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
46703         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
46704         Reported by Greg Schafer <gschafer@zip.com.au>.
46705
46706 2007-09-15  Bruno Haible  <bruno@clisp.org>
46707
46708         * gnulib-tool (sed): Try a little harder to make bash understand the
46709         alias.
46710         Reported by Bruce Korb <bruce.korb@gmail.com>.
46711
46712 2007-09-13  Eric Blake  <ebb9@byu.net>
46713
46714         * ChangeLog: Remove conflict markers.
46715
46716 2007-09-13  Simon Josefsson  <simon@josefsson.org>
46717
46718         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
46719         Reported by Bruno Haible <bruno@clisp.org>.
46720
46721 2007-09-12  Bruno Haible  <bruno@clisp.org>
46722
46723         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
46724         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
46725         is not defined.
46726
46727 2007-09-12  Eric Blake  <ebb9@byu.net>
46728
46729         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
46730         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
46731         Autoconf definition.
46732         * modules/euidaccess (Depends-on): Add extensions, for
46733         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
46734         * modules/fnmatch (Depends-on): Likewise.
46735         * modules/getaddrinfo (Depends-on): Likewise.
46736         * modules/getdelim (Depends-on): Likewise.
46737         * modules/getline (Depends-on): Likewise.
46738         * modules/getsubopt (Depends-on): Likewise.
46739         * modules/gettext (Depends-on): Likewise.
46740         * modules/group-member (Depends-on): Likewise.
46741         * modules/mbchar (Depends-on): Likewise.
46742         * modules/memmem (Depends-on): Likewise.
46743         * modules/mempcpy (Depends-on): Likewise.
46744         * modules/memrchr (Depends-on): Likewise.
46745         * modules/pagealign_alloc (Depends-on): Likewise.
46746         * modules/readutmp (Depends-on): Likewise.
46747         * modules/stpcpy (Depends-on): Likewise.
46748         * modules/stpncpy (Depends-on): Likewise.
46749         * modules/strchrnul (Depends-on): Likewise.
46750         * modules/strndup (Depends-on): Likewise.
46751         * modules/strsep (Depends-on): Likewise.
46752         * modules/strverscmp (Depends-on): Likewise.
46753         * modules/vasprintf (Depends-on): Likewise.
46754         * modules/wcwidth (Depends-on): Likewise.
46755         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
46756         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
46757         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
46758         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
46759         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
46760         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46761         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
46762         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
46763         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
46764         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
46765         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46766         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
46767         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
46768         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
46769         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
46770         * m4/readutmp.m4 (gl_READUTMP): Likewise.
46771         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
46772         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
46773         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
46774         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
46775         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46776         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
46777         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
46778         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
46779         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
46780         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46781         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
46782         so that lock.m4 can be used in gettext without extensions module.
46783
46784 2007-09-11  Bruno Haible  <bruno@clisp.org>
46785
46786         * m4/isc-posix.m4: Remove file.
46787         Suggested by Eric Blake.
46788
46789 2007-09-11  Eric Blake  <ebb9@byu.net>
46790
46791         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
46792
46793 2007-09-10  Bruno Haible  <bruno@clisp.org>
46794
46795         * posix-modules: Fix typo in error message.
46796         Reported by Matt <mkraai@beckman.com>.
46797
46798 2007-09-09  Bruno Haible  <bruno@clisp.org>
46799
46800         * doc/functions/getdelim.texi: Update list of platforms lacking the
46801         function.
46802         * doc/functions/getline.texi: Likewise.
46803
46804 2007-09-09  Jim Meyering  <jim@meyering.net>
46805
46806         * lib/hash.c (hash_initialize): Detect calloc failure.
46807         Reported by Bruno Haible.
46808
46809 2007-09-09  Bruno Haible  <bruno@clisp.org>
46810
46811         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
46812         malloc or realloc fails.
46813
46814 2007-09-09  Bruno Haible  <bruno@clisp.org>
46815
46816         * modules/getcwd (Depends-on): Add malloc-posix.
46817         * modules/glob (Depends-on): Likewise.
46818         * modules/putenv (Depends-on): Likewise.
46819         * modules/strdup (Depends-on): Likewise.
46820         * modules/getdelim (Depends-on): Add realloc-posix.
46821         * modules/read-file (Depends-on): Likewise.
46822
46823 2007-09-09  Bruno Haible  <bruno@clisp.org>
46824
46825         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
46826         (gl_FUNC_MALLOC_POSIX): Require it.
46827         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
46828         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
46829         * modules/realloc (Files): Add m4/malloc.m4.
46830         * modules/calloc (Files): Likewise.
46831
46832 2007-09-09  Bruno Haible  <bruno@clisp.org>
46833
46834         * modules/malloc-posix: New file.
46835         * modules/malloc (Depends-on): Add malloc-posix.
46836         * lib/malloc.c: Include errno.h.
46837         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
46838         and a POSIX-compatible malloc into a single function. Set ENOMEM
46839         when returning NULL.
46840         * m4/malloc.m4: New file.
46841         * doc/functions/malloc.texi: Mention the malloc-posix module.
46842         * lib/stdlib_.h (malloc): New declaration.
46843         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46844         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
46845         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
46846         and HAVE_MALLOC_POSIX.
46847
46848 2007-09-09  Bruno Haible  <bruno@clisp.org>
46849
46850         * modules/realloc-posix: New file.
46851         * modules/realloc (Depends-on): Add realloc-posix.
46852         * lib/realloc.c: Include errno.h.
46853         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
46854         and a POSIX-compatible realloc into a single function. Set ENOMEM
46855         when returning NULL.
46856         * m4/realloc.m4: New file.
46857         * doc/functions/realloc.texi: Mention the realloc-posix module.
46858         * lib/stdlib_.h (realloc): New declaration.
46859         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46860         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
46861         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
46862         and HAVE_REALLOC_POSIX.
46863
46864 2007-09-09  Bruno Haible  <bruno@clisp.org>
46865
46866         * modules/calloc-posix: New file.
46867         * modules/calloc (Depends-on): Add calloc-posix.
46868         * lib/calloc.c: Include errno.h.
46869         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
46870         and a POSIX-compatible calloc into a single function. Set ENOMEM
46871         when returning NULL.
46872         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
46873         * doc/functions/calloc.texi: Mention the calloc-posix module.
46874         * lib/stdlib_.h (calloc): New declaration.
46875         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46876         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
46877         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
46878         and HAVE_CALLOC_POSIX.
46879
46880 2007-09-09  Bruno Haible  <bruno@clisp.org>
46881
46882         Allow for modules to show an arbitrary notice.
46883         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
46884         * gnulib-tool: New option --extract-notice.
46885         (func_usage): Document it.
46886         (sed_extract_prog): Update.
46887         (func_get_notice): New function.
46888         (func_modules_notice): New function.
46889         (func_import, func_create_testdir): Invoke it.
46890         Suggested by Jim Meyering.
46891
46892 2007-09-09  Bruno Haible  <bruno@clisp.org>
46893
46894         * gnulib-tool: New options --verbose, --quiet.
46895         (func_usage): Document them.
46896         (verbose): New variable.
46897         (func_execute_command): New function.
46898         (func_import): Don't show the module list and the file list if
46899         $verbose < 0.
46900         (func_create_testdir): Likewise. Use func_execute_command.
46901         (func_create_megatestdir): Use func_execute_command.
46902
46903 2007-09-08  Bruno Haible  <bruno@clisp.org>
46904
46905         * gnulib-tool (func_import): Prefer rsync over wget when available,
46906         for fetching the PO files.
46907
46908 2007-09-08  Bruno Haible  <bruno@clisp.org>
46909
46910         * posix-modules: New file. Portions copied from gnulib-tool.
46911         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
46912
46913 2007-09-08  Jim Meyering  <jim@meyering.net>
46914
46915         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
46916         * lib/fpending.h: Rename from __fpending.h.
46917         * lib/fpending.c: Rename from __fpending.c.
46918         Include "fpending.h", not "__fpending.h".
46919         * lib/__fpending.h, lib/__fpending.c: Remove files.
46920         * modules/fpending (Files): Reflect new file names.
46921         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
46922
46923 2007-09-08  Bruno Haible  <bruno@clisp.org>
46924
46925         * m4/inttypes-h.m4: Remove stub file.
46926
46927 2007-09-07  Simon Josefsson  <simon@josefsson.org>
46928
46929         * doc/headers/stdint.texi: Discuss #include_next issue.
46930
46931 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46932
46933         * build-aux/bootstrap: Remove obsolete comment about wget --help.
46934
46935 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46936
46937         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
46938         in variable name.
46939
46940 2007-09-03  Jim Meyering  <jim@meyering.net>
46941
46942         New module: git-version-gen.
46943         * modules/git-version-gen: New file.
46944
46945         Import changes from coreutils for bootstrap script.
46946
46947         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
46948
46949         bootstrap: uses rsync to download the .po files
46950         * build-aux/bootstrap (po_download_command_format): New global.
46951         (download_po_files): Use rsync.
46952         (update_po_files): Don't remove .po files after download,
46953         so future rsync runs can take advantage of the copies.
46954
46955         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
46956
46957         Solve the unnecessary-.po-file-regeneration problem once and for all.
46958         * build-aux/bootstrap (download_po_files): New function, renamed from
46959         get_translations.  Now, downloads, but doesn't update LINGUAS.
46960         (update_po_files): New function.
46961
46962         bootstrap: Ignore more.
46963         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
46964         uniwidth to e.g., lib/.gitignore.
46965         (slurp): Handle the sys_stat_.h -> sys mapping, too.
46966
46967         * build-aux/bootstrap: New setting: vc_ignore.
46968         (insert_sorted_if_absent): Create $file if absent.
46969         Adapt to new, possibly empty, list: $vc_ignore.
46970
46971         bootstrap: generate more ignorable names
46972         * build-aux/bootstrap (slurp): When generating ignorable names,
46973         also map .sin to .sed, .gperf to .c, and .y to .c.
46974
46975 2007-09-03  Jim Meyering  <jim@meyering.net>
46976
46977         * build-aux/git-version-gen: New file, from coreutils.  For details, see
46978         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
46979
46980 2007-09-02  Bruno Haible  <bruno@clisp.org>
46981
46982         Fix mis-recognition of 'mcs' on QNX 6.
46983         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
46984         output contains the string "Mono".
46985         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
46986         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
46987
46988 2007-09-01  Bruno Haible  <bruno@clisp.org>
46989
46990         Fix collision between uniwidth/* and linebreak modules.
46991         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
46992         u32_width): Remove declarations.
46993         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
46994         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
46995         streq3, streq2, streq1, streq0): Remove functions.
46996         (STREQ): Remove macro.
46997         (is_cjk_encoding): Remove function.
46998         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
46999         (uc_width, u8_width, u16_width, u32_width): Remove functions.
47000         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
47001         * NEWS: Document the change.
47002
47003 2007-09-01  Bruno Haible  <bruno@clisp.org>
47004
47005         * lib/streq.h: Add double-inclusion guard.
47006
47007 2007-09-01  Karl Berry  <karl@gnu.org>
47008
47009         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
47010
47011 2007-08-28  Jim Meyering  <jim@meyering.net>
47012
47013         Rename mreadlink_with_size to areadlink_with_size.
47014         * NEWS: Document the change.
47015         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
47016         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
47017         * lib/mreadlink.h: Rename this to...
47018         * lib/areadlink.h: ...this.
47019         * modules/mreadlink-with-size: Rename this to...
47020         * modules/areadlink-with-size: ...this.
47021         * lib/canonicalize.c: Reflect the renaming.
47022         * modules/canonicalize: Likewise.
47023
47024 2007-08-26  Bruno Haible  <bruno@clisp.org>
47025
47026         * gnulib-tool (func_import): When deciding which files to remove,
47027         consider also dangling symbolic links.
47028         Reported by Eric Blake.
47029
47030 2007-08-26  Bruno Haible  <bruno@clisp.org>
47031
47032         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
47033
47034 2007-08-23  Simon Josefsson  <simon@josefsson.org>
47035
47036         * lib/readline.c: Don't include getline.h, the prototype is now
47037         found in stdio.h.
47038
47039 2007-08-23  Jim Meyering  <jim@meyering.net>
47040
47041         Getdelim touchup.
47042         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
47043         around the funlockfile call, since funlockfile never sets errno.
47044         Don't set errno upon failed realloc.
47045
47046 2007-08-22  Eric Blake  <ebb9@byu.net>
47047
47048         Getline touchups.
47049         * lib/getdelim.c (getdelim): Revert regression that required *n to
47050         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
47051         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
47052         getdelim, rather than whether implementation is missing.
47053         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
47054         * lib/stdio_.h (getline): Also declare if replacement is
47055         required.
47056         * doc/functions/getdelim.texi: New file.
47057         * doc/functions/getline.texi: Likewise.
47058         * doc/gnulib.texi (Function Substitutes): Add new files.
47059         Reported by Bruno Haible.
47060
47061 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
47062
47063         * users.txt: Add Guile.
47064
47065 2007-08-22  Eric Blake  <ebb9@byu.net>
47066
47067         * tests/test-getdelim.c (main): Use remove, not unlink.
47068         * tests/test-getline.c (main): Likewise.
47069
47070         Move getline and getdelim into stdio.h, per POSIX 200x.
47071         * modules/getline (Files): Remove getline.h.
47072         (Depends-on): Add stdio.
47073         (configure.ac): Add module indicator.
47074         * modules/getdelim (Files): Remove getdelim.h.
47075         (Depends-on): Add stdio.
47076         (configure.ac): Add module indicator.
47077         * modules/stdio (Makefile.am): Work with new indicators.
47078         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
47079         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
47080         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47081         * lib/getdelim.h: Delete.
47082         * lib/getline.h: Delete.
47083         * lib/stdio_.h (getdelim, getline): Declare.
47084         * modules/getdelim-tests: New module.
47085         * modules/getline-tests: Likewise.
47086         * tests/test-getdelim.c: New file.
47087         * tests/test-getline.c: Likewise.
47088         * NEWS: Document the change.
47089         * lib/getline.c: Update choice of header.
47090         * lib/csharpcomp.c: Likewise.
47091         * lib/getpass.c: Likewise.
47092         * lib/javacomp.c: Likewise.
47093         * lib/javaversion.c: Likewise.
47094         * lib/yesno.c: Likewise.
47095         * lib/getdelim.c: Likewise.
47096         (getdelim): Set errno on failure, and avoid memory leak.
47097
47098 2007-08-19  Bruno Haible  <bruno@clisp.org>
47099
47100         * modules/closein (Depends-on): Add freadahead.
47101         * lib/closein.c: Include freadahead.h.
47102         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
47103         is zero.
47104
47105 2007-08-19  Bruno Haible  <bruno@clisp.org>
47106
47107         * modules/freadahead-tests: New file.
47108         * tests/test-freadahead.sh: New file.
47109         * tests/test-freadahead.c: New file.
47110
47111         * modules/freadahead: New file.
47112         * lib/freadahead.h: New file.
47113         * lib/freadahead.c: New file.
47114         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
47115         fbufmode, fpurge, freadable, fwritable.
47116
47117 2007-08-19  Eric Blake  <ebb9@byu.net>
47118
47119         Test yesno in combination with closein.
47120         * lib/yesno.c (yesno): Document use of stdin.
47121         * modules/yesno-tests (Files): New module.
47122         * tests/test-yesno.c (main): New file.
47123         * tests/test-yesno.sh: Likewise.
47124
47125 2007-08-19  Bruno Haible  <bruno@clisp.org>
47126
47127         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
47128         * lib/fseeko.c (rpl_fseeko): Likewise.
47129         * lib/fseterr.c (fseterr): Likewise.
47130
47131 2007-08-19  Bruno Haible  <bruno@clisp.org>
47132
47133         * tests/test-lseek.c (main): Disable a test for BeOS.
47134         * doc/functions/lseek.texi: Document the BeOS bug.
47135
47136 2007-08-19  Bruno Haible  <bruno@clisp.org>
47137             Eric Blake  <ebb9@byu.net>
47138
47139         * lib/lseek.c: Include <sys/stat.h>.
47140         (rpl_lseek): Add workaround code also for Unix platforms.
47141         Needed for BeOS.
47142         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
47143         * doc/functions/lseek.texi: Document BeOS definiency.
47144
47145 2007-08-18  Bruno Haible  <bruno@clisp.org>
47146
47147         * modules/fstrcmp-tests: New file.
47148         * tests/test-fstrcmp.c: New file.
47149
47150 2007-08-18  Bruno Haible  <bruno@clisp.org>
47151
47152         * modules/fstrcmp: New file, from GNU gettext with modifications.
47153         * lib/fstrcmp.h: New file, from GNU gettext.
47154         * lib/fstrcmp.c: New file, from GNU gettext.
47155         * MODULES.html.sh (String handling): Add fstrcmp.
47156
47157 2007-08-18  Bruno Haible  <bruno@clisp.org>
47158
47159         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
47160         'bool'.
47161         (diag, compareseq): Remove const from the ctxt argument.
47162         (USE_HEURISTIC): Undefine at the end.
47163
47164 2007-08-18  Jim Meyering  <jim@meyering.net>
47165
47166         New file: lib/idcache.h
47167         * NEWS: Mention the addition.
47168         * modules/idcache (Files): Add lib/idcache.h
47169         * lib/idcache.c: Include "idcache.h".
47170         Don't include <sys/types.h>.
47171         Add a FIXME comment.
47172         Move file-scoped "static" declarations to the top.
47173         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
47174
47175 2007-08-17  Bruno Haible  <bruno@clisp.org>
47176         and Paul Eggert  <eggert@cs.ucla.edu>
47177
47178         * MODULES.html.sh: Add diffseq.
47179         * modules/diffseq: New file.
47180         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
47181         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
47182
47183 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
47184
47185         Import changes from coreutils for bootstrap script.
47186
47187         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
47188
47189         * build-aux/bootstrap (slurp): Work even in environments where
47190         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
47191         current code does not slurp files whose names start with ".", and
47192         this looks like it might be a troublesome area.
47193
47194         2007-07-11  Jim Meyering  <jim@meyering.net>
47195
47196         If there's a GPL vN copyright comment, require that N == 3.
47197
47198         2007-07-08  Jim Meyering  <jim@meyering.net>
47199
47200         Run the coreutils-specific code only if tests/Makefile.am.in exists.
47201         * build-aux/bootstrap (mam_template): Move definition out of loop.
47202
47203         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
47204
47205         * build-aux/bootstrap (symlink_to_dir): Rename function from
47206         symlink_to_gnulib.  Add a directory parameter.  Update all
47207         callers.
47208         (cp_mark_as_generated): Also check for -- and link to -- files in
47209         gl/.
47210
47211         2007-07-08  Jim Meyering  <jim@meyering.net>
47212
47213         Adapt to deeper hierarchy in gnulib.
47214         * build-aux/bootstrap (symlink_to_dir): If the destination
47215         directory doesn't exist, create it. This is required at least for
47216         "lib/uniwidth/cjk.h".
47217
47218         2007-05-15  Jim Meyering  <jim@meyering.net>
47219
47220         * build-aux/bootstrap: Now that generated Makefile.am files
47221         are no longer under version control, they must be created at
47222         bootstrap time.
47223
47224 2007-08-14  Ben Pfaff  <blp@gnu.org>
47225
47226         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
47227
47228 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
47229
47230         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
47231         given the changes below.
47232         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
47233         even on hosts that have padding bits beyond the supported 64.
47234
47235 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
47236
47237         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
47238         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
47239         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
47240         depends on it.
47241         (xstrtol_error): Remove.
47242         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
47243         but with a different signature.
47244         (ATTRIBUTE_NORETURN, __attribute__): New macros.
47245         * lib/xstrtol-error.c: Include exitfail.h.
47246         (xstrtol_fatal): New function, with a different signature from the
47247         old xstrtol_error, so that the caller need not worry about passing
47248         in an exit status, or about storage management of the option argument.
47249         (xstrtol_error): Now a static function.  Redo signature to
47250         implement xstrtol_fatal.  Output the correct number of hyphens in
47251         front of the option so that the caller need not worry about
47252         storage management.
47253         (N_): New macro.
47254         (_): Remove; not used now.
47255         * modules/xstrtol: Depend on getopt.
47256         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
47257         of old STRTOL_FATAL_ERROR macro.
47258         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
47259         of test program.
47260         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
47261         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
47262
47263 2007-08-08  Eric Blake  <ebb9@byu.net>
47264
47265         * lib/xstrtol-error.c: Add missing include.
47266
47267         Move xstrtol messages into gnulib domain, when --pobase is used.
47268         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
47269         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
47270         * modules/xstrtol (Files): Distribute new file.
47271         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
47272         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
47273         * tests/test-xstrtol.c: ...into new file.
47274         * tests/test-xstrtoul.c: Also test xstrtoul.
47275         * tests/test-xstrtoimax.c: Also test xstrtoimax.
47276         * tests/test-xstrtoumax.c: Also test xstrtoumax.
47277         * tests/test-xstrtol.sh: Drive the tests.
47278         * tests/test-xstrtoimax.sh: Likewise.
47279         * tests/test-xstrtoumax.sh: Likewise.
47280         * modules/xstrtol-tests: New module.
47281         * modules/xstrtoimax-tests: Likewise.
47282         * modules/xstrtoumax-tests: Likewise.
47283
47284 2007-08-08  Jim Meyering  <jim@meyering.net>
47285
47286         New function: mfile_name_concat.
47287         * lib/filenamecat.c (mfile_name_concat): New function, just like
47288         file_name_concat, but return NULL upon failure rather than exiting
47289         with a diagnostic.
47290         * lib/filenamecat.h: Declare it.
47291
47292 2007-08-07  Bruno Haible  <bruno@clisp.org>
47293
47294         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
47295         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
47296         warning from gcc.
47297         Reported by Eric Blake.
47298
47299 2007-08-07  Simon Josefsson  <simon@josefsson.org>
47300
47301         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
47302         * modules/crypto/arcfour (License): Likewise.
47303         * modules/crypto/des-tests (License): Likewise.
47304         * modules/crypto/gc-arctwo-tests (License): Likewise.
47305         * modules/crypto/gc-des-tests (License): Likewise.
47306         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
47307         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
47308         * modules/crypto/gc-md2-tests (License): Likewise.
47309         * modules/crypto/gc-md4-tests (License): Likewise.
47310         * modules/crypto/gc-md5-tests (License): Likewise.
47311         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
47312         * modules/crypto/gc-rijndael-tests (License): Likewise.
47313         * modules/crypto/gc-sha1-tests (License): Likewise.
47314         * modules/crypto/gc-tests (License): Likewise.
47315         * modules/crypto/hmac-md5 (License): Likewise.
47316         * modules/crypto/hmac-sha1 (License): Likewise.
47317         * modules/crypto/md2-tests (License): Likewise.
47318         * modules/crypto/md4-tests (License): Likewise.
47319         * modules/crypto/md5 (License): Likewise.
47320         * modules/crypto/rijndael (License): Likewise.
47321         * modules/crypto/sha1 (License): Likewise.
47322         * modules/memxor (License): Likewise.
47323
47324 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
47325         and Bruno Haible  <bruno@clisp.org>
47326
47327         * NEWS: Describe interface changes to human, xstrtol.
47328         * lib/human.h: Include <xstrtol.h>.
47329         (human_options): Return enum strtol_error, not int.  Remove
47330         bool arg; take int * instead.
47331         * lib/human.c: Don't include "gettext.h".
47332         (_): Remove; no longer used.
47333         Don't include <xstrtol.h>, since human.h does it.
47334         (human_options): Adjust to abovementioned interface changes.
47335         Do not report error to stderr; that's now the caller's
47336         responsibility.
47337         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
47338         interface change.
47339         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
47340         Str, Argument_type_string.  All uses changed.  Put " argument"
47341         in diagnostics to make them clearer.  Change wording of suffix
47342         message for clarity.
47343         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
47344         Argument_type_string.
47345         (STRTOL_FATAL_WARN): Remove; no longer used.
47346         * modules/human (Depends-on): Remove gettext-h.
47347
47348 2007-08-06  Simon Josefsson  <simon@josefsson.org>
47349
47350         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
47351
47352 2007-07-31  Bruno Haible  <bruno@clisp.org>
47353
47354         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
47355         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
47356         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
47357
47358 2007-07-31  Bruno Haible  <bruno@clisp.org>
47359
47360         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
47361         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
47362
47363 2007-07-30  Bruno Haible  <bruno@clisp.org>
47364
47365         * modules/base64 (License): Use the synonymous term "LGPLv2+".
47366         * modules/c-ctype (License): Likewise.
47367         * modules/c-strcase (License): Likewise.
47368         * modules/check-version (License): Likewise.
47369         * modules/iconv (License): Likewise.
47370         * modules/iconv_open (License): Likewise.
47371         * modules/read-file (License): Likewise.
47372         * modules/striconv (License): Likewise.
47373         * modules/strverscmp (License): Likewise.
47374         * modules/vasprintf (License): Likewise.
47375         * modules/crypto/des (License): Likewise.
47376         * modules/crypto/gc (License): Likewise.
47377         * modules/crypto/gc-arcfour (License): Likewise.
47378         * modules/crypto/gc-arctwo (License): Likewise.
47379         * modules/crypto/gc-des (License): Likewise.
47380         * modules/crypto/gc-hmac-md5 (License): Likewise.
47381         * modules/crypto/gc-hmac-sha1 (License): Likewise.
47382         * modules/crypto/gc-md2 (License): Likewise.
47383         * modules/crypto/gc-md4 (License): Likewise.
47384         * modules/crypto/gc-md5 (License): Likewise.
47385         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
47386         * modules/crypto/gc-random (License): Likewise.
47387         * modules/crypto/gc-rijndael (License): Likewise.
47388         * modules/crypto/gc-sha1 (License): Likewise.
47389         * modules/crypto/md2 (License): Likewise.
47390         * modules/crypto/md4 (License): Likewise.
47391
47392 2007-07-30  Jim Meyering  <jim@meyering.net>
47393
47394         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
47395         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
47396         it has valid stat data.  This bug would cause du not to count the
47397         sizes of inaccessible directories.
47398         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
47399         in <http://bugzilla.redhat.com/250077>.
47400
47401 2007-07-25  Peter O'Gorman  <peter@pogma.com>
47402             Bruno Haible  <bruno@clisp.org>
47403
47404         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
47405         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
47406         #include_next, gives a diagnostic about it, but reports no error in
47407         the exit code.
47408         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
47409
47410 2007-07-24  Ben Pfaff  <blp@gnu.org>
47411
47412         Improve name: "count-one-bits" is better than "popcount".
47413         * MODULES.html.sh: Update name.
47414         * lib/popcount.h: Renamed lib/count-one-bits.h.
47415         (popcount): Renamed count_one_bits.
47416         (popcountl): Renamed count_one_bits_l.
47417         (popcountll): Renamed count_one_bits_ll.
47418         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
47419         * modules/popcount: Renamed module/count-one-bits.
47420         * modules/popcount-tests: Renamed module/count-one-bits-tests.
47421         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
47422
47423 2007-07-23  Ben Pfaff  <blp@gnu.org>
47424
47425         * lib/popcount.h (popcount32): Reduce size of constants, to allow
47426         better code generation, and add U to large constants to avoid
47427         warnings, in non-GCC case.
47428         Suggested by Bruno Haible.
47429
47430 2007-07-23  Ben Pfaff  <blp@gnu.org>
47431
47432         * lib/popcount.h: Use verify_true instead of if...abort.
47433         * modules/popcount: Depend on verify module.
47434         Suggested by Jim Meyering.
47435
47436 2007-07-23  Bruno Haible  <bruno@clisp.org>
47437
47438         * gnulib-tool (func_import): Create a .cvsignore file also when the
47439         directory is not yet in CVS but the toplevel directory is. When
47440         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
47441         Reported by Karl Berry.
47442
47443 2007-07-22  Ben Pfaff  <blp@gnu.org>
47444
47445         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
47446         case.
47447         Suggested by Eric Blake.
47448
47449 2007-07-22  Ben Pfaff  <blp@gnu.org>
47450
47451         New module: popcount.
47452         * MODULES.html.sh: Add popcount.
47453         * modules/popcount: New file.
47454         * modules/popcount-tests: New file.
47455         * tests/test-popcount.c: New file.
47456         * lib/popcount.h: New file.
47457         * m4/popcount.m4: New file.
47458
47459 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
47460
47461         * build-aux/announce-gen: Update to GPLv3.
47462
47463         * build-aux/config.guess: Update from config.
47464
47465 2007-07-21  Bruno Haible  <bruno@clisp.org>
47466
47467         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
47468         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
47469
47470 2007-07-20  Jim Meyering  <jim@meyering.net>
47471
47472         * check-module: Diagnose a self-dependency.
47473
47474 2007-07-19  Bruno Haible  <bruno@clisp.org>
47475
47476         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
47477         empty.
47478         Reported by Eric Blake.
47479
47480 2007-07-18  Bruno Haible  <bruno@clisp.org>
47481
47482         * gnulib-tool: New options --po-base, --po-domain.
47483         (func_usage): Document them.
47484         (pobase, po_domain): New variables.
47485         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
47486         DEFAULT_TEXT_DOMAIN.
47487         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
47488         (func_import): Consider pobase and po_domain. Create a po/ directory.
47489         (func_create_testdir): Set pobase and po_domain to empty.
47490         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
47491         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
47492
47493 2007-07-18  Bruno Haible  <bruno@clisp.org>
47494
47495         * gnulib-tool (func_get_automake_snippet): Synthesize also an
47496         EXTRA_DIST augmentation for files in build-aux/.
47497
47498 2007-07-16  Bruno Haible  <bruno@clisp.org>
47499
47500         * modules/lseek (License): Use the synonymous term "LGPLv2+".
47501         * modules/getdelim (License): Likewise.
47502
47503 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47504
47505         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
47506         * modules/d-type (License): Likewise.
47507         * modules/extensions (License): Likewise.
47508         * modules/fnmatch (License): Likewise.
47509         * modules/fseeko (License): Likewise.
47510         * modules/getaddrinfo (License): Likewise.
47511         * modules/getline (License): Likewise.
47512         * modules/getlogin_r (License): Likewise.
47513         * modules/getpass (License): Likewise.
47514         * modules/gettimeofday (License): Likewise.
47515         * modules/glob (License): Likewise.
47516         * modules/inet_ntop (License): Likewise.
47517         * modules/malloc (License): Likewise.
47518         * modules/malloca (License): Likewise.
47519         * modules/memmem (License): Likewise.
47520         * modules/mempcpy (License): Likewise.
47521         * modules/memset (License): Likewise.
47522         * modules/minmax (License): Likewise.
47523         * modules/mktime (License): Likewise.
47524         * modules/netinet_in (License): Likewise.
47525         * modules/pathmax (License): Likewise.
47526         * modules/poll (License): Likewise.
47527         * modules/regex (License): Likewise.
47528         * modules/snprintf (License): Likewise.
47529         * modules/stdbool (License): Likewise.
47530         * modules/stdint (License): Likewise.
47531         * modules/stdio (License): Likewise.
47532         * modules/strcase (License): Likewise.
47533         * modules/strcasestr (License): Likewise.
47534         * modules/strdup (License): Likewise.
47535         * modules/string (License): Likewise.
47536         * modules/strndup (License): Likewise.
47537         * modules/strnlen (License): Likewise.
47538         * modules/strpbrk (License): Likewise.
47539         * modules/strptime (License): Likewise.
47540         * modules/strsep (License): Likewise.
47541         * modules/sys_select (License): Likewise.
47542         * modules/sys_socket (License): Likewise.
47543         * modules/sys_stat (License): Likewise.
47544         * modules/sys_time (License): Likewise.
47545         * modules/time (License): Likewise.
47546         * modules/time_r (License): Likewise.
47547         * modules/timegm (License): Likewise.
47548         * modules/unistd (License): Likewise.
47549         * modules/vsnprintf (License): Likewise.
47550         * modules/wctype (License): Likewise.
47551
47552 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47553
47554         * modules/argz (License): LGPLv2+.
47555
47556 2007-07-15  Karl Berry  <karl@gnu.org>
47557
47558         * doc/gnulib.texi: revise node structure per new fdl.texi.
47559
47560 2007-07-14  Bruno Haible  <bruno@clisp.org>
47561
47562         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
47563         the output file.
47564         * lib/uniname/uninames.h: Regenerated.
47565
47566 2007-07-14  Karl Berry  <karl@gnu.org>
47567
47568         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
47569         omitting sectioning and index commands.
47570
47571 2007-07-13  Bruno Haible  <bruno@clisp.org>
47572
47573         New gnulib-tool option --more-symlinks.
47574         * gnulib-tool (func_usage): Document --more-symlinks.
47575         (do_copyrights): New variable.
47576         Recognize option --more-symlinks.
47577         (func_import): Don't add a copyright notice transform to
47578         sed_transform_lib_file if do_copyrights is empty.
47579
47580 2007-07-13  Bruno Haible  <bruno@clisp.org>
47581
47582         * lib/vasnprintf.c (decimal_point_char): Define also if
47583         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
47584         && !NEED_PRINTF_DIRECTIVE_A.
47585         Reported by Clemens Koller <clemens.koller@anagramm.de> via
47586         Gary V. Vaughan <gary@gnu.org>.
47587
47588 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
47589
47590         * lib/inttypes_.h: Undo previous change, since it was fixed
47591         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
47592
47593 2007-07-13  Bruno Haible  <bruno@clisp.org>
47594
47595         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
47596         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
47597
47598 2007-07-13  Jim Meyering  <jim@meyering.net>
47599
47600         df: Don't fail for Tru64's "file-on-file mount".
47601         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
47602         so we fall through and use statfs instead.  Details here:
47603         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
47604         Reported by Albert Chin.
47605
47606 2007-07-13  Bruno Haible  <bruno@clisp.org>
47607
47608         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
47609         * modules/configmake (License): Likewise.
47610         * modules/gettext (License): Likewise.
47611         * modules/gettext-h (License): Likewise.
47612         * modules/include_next (License): Likewise.
47613         * modules/link-warning (License): Likewise.
47614         * modules/localcharset (License): Likewise.
47615         * modules/localename (License): Likewise.
47616         * modules/lock (License): Likewise.
47617         * modules/relocatable-lib-lgpl (License): Likewise.
47618         * modules/size_max (License): Likewise.
47619         * modules/vasnprintf (License): Likewise.
47620         * modules/wchar (License): Likewise.
47621         * modules/xsize (License): Likewise.
47622
47623 2007-07-13  Bruno Haible  <bruno@clisp.org>
47624
47625         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
47626         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
47627
47628 2007-07-12  Bruno Haible  <bruno@clisp.org>
47629
47630         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
47631         in the modules files.
47632
47633 2007-07-11  Karl Berry  <karl@gnu.org>
47634
47635         * MODULES.html.sh (func_module): use
47636          sed -e '\|^'"${includefile}"'$|d'
47637          instead of /.../d, to avoid errors on $includefile's containing /.
47638
47639 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
47640
47641         * gnulib-tool (func_import): Avoid duplication of --avoid
47642         statements
47643         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
47644         names to `_' in variable names.
47645
47646 2007-07-10  Eric Blake  <ebb9@byu.net>
47647
47648         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
47649         * NEWS: Document this change.
47650
47651 2007-07-08  Bruno Haible  <bruno@clisp.org>
47652
47653         Update to Unicode 5.0.
47654         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
47655         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
47656         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
47657         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
47658         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
47659         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
47660         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
47661         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
47662         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
47663         U+10A3F, U+1D242..U+1D244.
47664         (nonspacing_table_ind): Update.
47665         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
47666         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
47667
47668 2007-07-08  Bruno Haible  <bruno@clisp.org>
47669
47670         Update to Unicode 5.0.
47671         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
47672         code transform. Extend the name index field of unicode_name_to_code and
47673         unicode_code_to_name from 16 to 24 bits.
47674         * lib/uniname/uniname.c (unicode_character_name,
47675         unicode_name_character): Add the range 0x12xxx to the code transform.
47676         * lib/uniname/uninames.h: Regenerated.
47677         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
47678
47679 2007-07-07  Bruno Haible  <bruno@clisp.org>
47680
47681         * modules/wcwidth-tests: New file.
47682         * tests/test-wcwidth.c: New file.
47683
47684         Work around MacOS X wcwidth() bug.
47685         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
47686         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
47687         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
47688         original wcwidth in non-UTF-8 locales.
47689         * modules/wcwidth (Depends-on): Add localcharset, streq,
47690         uniwidth/width.
47691         * doc/functions/wcwidth.texi: Update.
47692
47693 2007-07-07  Bruno Haible  <bruno@clisp.org>
47694
47695         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
47696         (wcwidth): New declaration.
47697         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
47698         macros.
47699         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
47700         here. Prepare for creating <wchar.h> unconditionally.
47701         * modules/wchar (Depends-on): Add link-warning.
47702         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
47703         REPLACE_WCWIDTH, and GL_LINK_WARNING.
47704         * lib/wcwidth.h: Remove file.
47705         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
47706         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
47707         * modules/wcwidth (Files): Remove lib/wcwidth.h.
47708         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
47709         (Include): Replace wcwidth.h with <wchar.h>.
47710         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
47711         * lib/mbchar.h: Don't include wcwidth.h.
47712         * lib/mbswidth.c: Likewise.
47713         * NEWS: Mention the change.
47714
47715 2007-07-07  Bruno Haible  <bruno@clisp.org>
47716
47717         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
47718         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
47719         definition with an external declaration.
47720         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
47721         defined as a function. Remove AC_C_INLINE requirement.
47722         * modules/wcwidth (Files): Add lib/wcwidth.c.
47723         (Makefile.am): Remove redundant statement.
47724
47725 2007-07-07  Bruno Haible  <bruno@clisp.org>
47726
47727         * MODULES.html.sh (Unicode string functions): Add the new modules.
47728
47729         * tests/uniwidth/test-u32-strwidth.c: New file.
47730         * modules/uniwidth/u32-strwidth-tests: New file.
47731
47732         * lib/uniwidth/u32-strwidth.c: New file.
47733         * modules/uniwidth/u32-strwidth: New file.
47734
47735         * tests/uniwidth/test-u16-strwidth.c: New file.
47736         * modules/uniwidth/u16-strwidth-tests: New file.
47737
47738         * lib/uniwidth/u16-strwidth.c: New file.
47739         * modules/uniwidth/u16-strwidth: New file.
47740
47741         * tests/uniwidth/test-u8-strwidth.c: New file.
47742         * modules/uniwidth/u8-strwidth-tests: New file.
47743
47744         * lib/uniwidth/u8-strwidth.c: New file.
47745         * modules/uniwidth/u8-strwidth: New file.
47746
47747         * tests/uniwidth/test-u32-width.c: New file.
47748         * modules/uniwidth/u32-width-tests: New file.
47749
47750         * lib/uniwidth/u32-width.c: New file.
47751         * modules/uniwidth/u32-width: New file.
47752
47753         * tests/uniwidth/test-u16-width.c: New file.
47754         * modules/uniwidth/u16-width-tests: New file.
47755
47756         * lib/uniwidth/u16-width.c: New file.
47757         * modules/uniwidth/u16-width: New file.
47758
47759         * tests/uniwidth/test-u8-width.c: New file.
47760         * modules/uniwidth/u8-width-tests: New file.
47761
47762         * lib/uniwidth/u8-width.c: New file.
47763         * modules/uniwidth/u8-width: New file.
47764
47765         * tests/uniwidth/test-uc_width.c: New file.
47766         * modules/uniwidth/width-tests: New file.
47767
47768         * lib/uniwidth/width.c: New file, from GNU libiconv.
47769         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
47770         * modules/uniwidth/width: New file.
47771
47772         * lib/uniwidth.h: New file, from GNU libiconv.
47773         * modules/uniwidth/base: New file.
47774
47775 2007-07-07  Bruno Haible  <bruno@clisp.org>
47776
47777         * lib/uniname.h: New file, from GNU gettext.
47778         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
47779         * lib/uniname/uninames.h: New file, from GNU gettext.
47780         * lib/uniname/uniname.c: New file, from GNU gettext.
47781         * tests/uniname/test-uninames.sh: New file.
47782         * tests/uniname/test-uninames.c: New file, from GNU gettext.
47783         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
47784         * modules/uniname/base: New file.
47785         * modules/uniname/uniname: New file.
47786         * modules/uniname/uniname-tests: New file.
47787         * MODULES.html.sh (Unicode string functions): Add the new modules.
47788
47789 2007-07-06  Bruno Haible  <bruno@clisp.org>
47790
47791         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
47792
47793 2007-07-06  Bruno Haible  <bruno@clisp.org>
47794
47795         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
47796         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
47797         includes <cygwin/sys_time.h> which includes <sys/select.h> which
47798         include <sys/time.h>.
47799         Reported by Eric Blake.
47800
47801 2007-07-06  Eric Blake  <ebb9@byu.net>
47802
47803         Fix testing canonicalize on cygwin.
47804         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
47805         Revert patch from 2007-06-19.
47806         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
47807         canonicalize module is also in use.
47808         * tests/test-canonicalize.c: New file.
47809         * tests/test-canonicalize.sh: Likewise.
47810         * modules/canonicalize-tests: Likewise.
47811
47812 2007-07-06  Jim Meyering  <jim@meyering.net>
47813
47814         * lib/getugroups.c (getugroups): Detect getgrent failure.
47815         Adjust comment to reflect reality: this function may return -1.
47816
47817 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
47818
47819         * build-aux/bootstrap (TP_URL,get_translations): Update to use
47820         the new TP address.
47821         (usage): Fix typo
47822         (gnulib_mk): New variable.
47823
47824 2007-07-05  Jim Meyering  <jim@meyering.net>
47825
47826         Don't let endgrent clobber errno, no matter how improbable.
47827         * lib/getugroups.c (getugroups): Save and restore errno around
47828         endgrent call.
47829
47830         Close the group DB even when failing with 2^31 or more members.
47831         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
47832
47833 2007-07-04  Jim Meyering  <jim@meyering.net>
47834
47835         * lib/getugroups.h: New file.
47836         * lib/getugroups.c: Include "getugroups.h".
47837         Remove uses of "register" keyword.
47838         Move local variable, "cp", down into scope where used.
47839         Give "username" parameter the "const" attribute.
47840         * modules/getugroups (Files): Add lib/getugroups.h
47841
47842 2007-07-04  Karl Berry  <karl@gnu.org>
47843
47844         * MODULES.html.sh (func_all_modules): Complete rename of
47845         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
47846
47847 2007-07-02  Bruno Haible  <bruno@clisp.org>
47848
47849         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
47850         mode, when inttypes.h comes from gnulib.
47851         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47852
47853 2007-07-02  Simon Josefsson  <simon@josefsson.org>
47854
47855         * NEWS: Mention lgpl module name change.
47856
47857         * modules/lgpl-2.1: Renamed from lgpl.
47858
47859         * NEWS: Mention gpl module name change.
47860
47861         * modules/gpl-3.0: New file, based on gpl-2.0.
47862
47863         * modules/gpl-2.0: Renamed from gpl.
47864
47865         * modules/gpl: Fix filename, doc/gpl.texi is now found at
47866         doc/gpl-2.0.texi.
47867
47868 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
47869
47870         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
47871         #define __STDC_LIMIT_MACROS temporarily while including
47872         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
47873         Problem reported by Joel E. Denny in
47874         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
47875
47876 2007-07-01  Bruno Haible  <bruno@clisp.org>
47877
47878         * lib/unistdio.h: New file.
47879         * lib/unistdio/u-asnprintf.h: New file.
47880         * lib/unistdio/u-asprintf.h: New file.
47881         * lib/unistdio/u-printf-args.c: New file.
47882         * lib/unistdio/u-printf-args.h: New file.
47883         * lib/unistdio/u-printf-parse.h: New file.
47884         * lib/unistdio/u-snprintf.h: New file.
47885         * lib/unistdio/u-sprintf.h: New file.
47886         * lib/unistdio/u-vasprintf.h: New file.
47887         * lib/unistdio/u-vsnprintf.h: New file.
47888         * lib/unistdio/u-vsprintf.h: New file.
47889         * lib/unistdio/ulc-asnprintf.c: New file.
47890         * lib/unistdio/ulc-asprintf.c: New file.
47891         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
47892         * lib/unistdio/ulc-printf-parse.c: New file.
47893         * lib/unistdio/ulc-snprintf.c: New file.
47894         * lib/unistdio/ulc-sprintf.c: New file.
47895         * lib/unistdio/ulc-vasnprintf.c: New file.
47896         * lib/unistdio/ulc-vasprintf.c: New file.
47897         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
47898         * lib/unistdio/ulc-vsnprintf.c: New file.
47899         * lib/unistdio/ulc-vsprintf.c: New file.
47900         * lib/unistdio/u8-asnprintf.c: New file.
47901         * lib/unistdio/u8-asprintf.c: New file.
47902         * lib/unistdio/u8-printf-parse.c: New file.
47903         * lib/unistdio/u8-snprintf.c: New file.
47904         * lib/unistdio/u8-sprintf.c: New file.
47905         * lib/unistdio/u8-vasnprintf.c: New file.
47906         * lib/unistdio/u8-vasprintf.c: New file.
47907         * lib/unistdio/u8-vsnprintf.c: New file.
47908         * lib/unistdio/u8-vsprintf.c: New file.
47909         * lib/unistdio/u8-u8-asnprintf.c: New file.
47910         * lib/unistdio/u8-u8-asprintf.c: New file.
47911         * lib/unistdio/u8-u8-snprintf.c: New file.
47912         * lib/unistdio/u8-u8-sprintf.c: New file.
47913         * lib/unistdio/u8-u8-vasnprintf.c: New file.
47914         * lib/unistdio/u8-u8-vasprintf.c: New file.
47915         * lib/unistdio/u8-u8-vsnprintf.c: New file.
47916         * lib/unistdio/u8-u8-vsprintf.c: New file.
47917         * lib/unistdio/u16-asnprintf.c: New file.
47918         * lib/unistdio/u16-asprintf.c: New file.
47919         * lib/unistdio/u16-printf-parse.c: New file.
47920         * lib/unistdio/u16-snprintf.c: New file.
47921         * lib/unistdio/u16-sprintf.c: New file.
47922         * lib/unistdio/u16-vasnprintf.c: New file.
47923         * lib/unistdio/u16-vasprintf.c: New file.
47924         * lib/unistdio/u16-vsnprintf.c: New file.
47925         * lib/unistdio/u16-vsprintf.c: New file.
47926         * lib/unistdio/u16-u16-asnprintf.c: New file.
47927         * lib/unistdio/u16-u16-asprintf.c: New file.
47928         * lib/unistdio/u16-u16-snprintf.c: New file.
47929         * lib/unistdio/u16-u16-sprintf.c: New file.
47930         * lib/unistdio/u16-u16-vasnprintf.c: New file.
47931         * lib/unistdio/u16-u16-vasprintf.c: New file.
47932         * lib/unistdio/u16-u16-vsnprintf.c: New file.
47933         * lib/unistdio/u16-u16-vsprintf.c: New file.
47934         * lib/unistdio/u32-asnprintf.c: New file.
47935         * lib/unistdio/u32-asprintf.c: New file.
47936         * lib/unistdio/u32-printf-parse.c: New file.
47937         * lib/unistdio/u32-snprintf.c: New file.
47938         * lib/unistdio/u32-sprintf.c: New file.
47939         * lib/unistdio/u32-vasnprintf.c: New file.
47940         * lib/unistdio/u32-vasprintf.c: New file.
47941         * lib/unistdio/u32-vsnprintf.c: New file.
47942         * lib/unistdio/u32-vsprintf.c: New file.
47943         * lib/unistdio/u32-u32-asnprintf.c: New file.
47944         * lib/unistdio/u32-u32-asprintf.c: New file.
47945         * lib/unistdio/u32-u32-snprintf.c: New file.
47946         * lib/unistdio/u32-u32-sprintf.c: New file.
47947         * lib/unistdio/u32-u32-vasnprintf.c: New file.
47948         * lib/unistdio/u32-u32-vasprintf.c: New file.
47949         * lib/unistdio/u32-u32-vsnprintf.c: New file.
47950         * lib/unistdio/u32-u32-vsprintf.c: New file.
47951         * tests/unistdio/test-ulc-asnprintf1.c: New file.
47952         * tests/unistdio/test-ulc-asnprintf1.h: New file.
47953         * tests/unistdio/test-ulc-printf1.h: New file.
47954         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
47955         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
47956         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
47957         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
47958         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
47959         * tests/unistdio/test-ulc-vasprintf1.c: New file.
47960         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
47961         * tests/unistdio/test-ulc-vsprintf1.c: New file.
47962         * tests/unistdio/test-u8-asnprintf1.c: New file.
47963         * tests/unistdio/test-u8-asnprintf1.h: New file.
47964         * tests/unistdio/test-u8-printf1.h: New file.
47965         * tests/unistdio/test-u8-vasnprintf1.c: New file.
47966         * tests/unistdio/test-u8-vasnprintf2.c: New file.
47967         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
47968         * tests/unistdio/test-u8-vasnprintf3.c: New file.
47969         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
47970         * tests/unistdio/test-u8-vasprintf1.c: New file.
47971         * tests/unistdio/test-u8-vsnprintf1.c: New file.
47972         * tests/unistdio/test-u8-vsprintf1.c: New file.
47973         * tests/unistdio/test-u16-asnprintf1.c: New file.
47974         * tests/unistdio/test-u16-asnprintf1.h: New file.
47975         * tests/unistdio/test-u16-printf1.h: New file.
47976         * tests/unistdio/test-u16-vasnprintf1.c: New file.
47977         * tests/unistdio/test-u16-vasnprintf2.c: New file.
47978         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
47979         * tests/unistdio/test-u16-vasnprintf3.c: New file.
47980         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
47981         * tests/unistdio/test-u16-vasprintf1.c: New file.
47982         * tests/unistdio/test-u16-vsnprintf1.c: New file.
47983         * tests/unistdio/test-u16-vsprintf1.c: New file.
47984         * tests/unistdio/test-u32-asnprintf1.c: New file.
47985         * tests/unistdio/test-u32-asnprintf1.h: New file.
47986         * tests/unistdio/test-u32-printf1.h: New file.
47987         * tests/unistdio/test-u32-vasnprintf1.c: New file.
47988         * tests/unistdio/test-u32-vasnprintf2.c: New file.
47989         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
47990         * tests/unistdio/test-u32-vasnprintf3.c: New file.
47991         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
47992         * tests/unistdio/test-u32-vasprintf1.c: New file.
47993         * tests/unistdio/test-u32-vsnprintf1.c: New file.
47994         * tests/unistdio/test-u32-vsprintf1.c: New file.
47995         * modules/unistdio/base: New file.
47996         * modules/unistdio/u-printf-args: New file.
47997         * modules/unistdio/ulc-asnprintf: New file.
47998         * modules/unistdio/ulc-asprintf: New file.
47999         * modules/unistdio/ulc-fprintf: New file.
48000         * modules/unistdio/ulc-printf-parse: New file.
48001         * modules/unistdio/ulc-snprintf: New file.
48002         * modules/unistdio/ulc-sprintf: New file.
48003         * modules/unistdio/ulc-vasnprintf: New file.
48004         * modules/unistdio/ulc-vasprintf: New file.
48005         * modules/unistdio/ulc-vfprintf: New file.
48006         * modules/unistdio/ulc-vsnprintf: New file.
48007         * modules/unistdio/ulc-vsprintf: New file.
48008         * modules/unistdio/u8-asnprintf: New file.
48009         * modules/unistdio/u8-asprintf: New file.
48010         * modules/unistdio/u8-printf-parse: New file.
48011         * modules/unistdio/u8-snprintf: New file.
48012         * modules/unistdio/u8-sprintf: New file.
48013         * modules/unistdio/u8-vasnprintf: New file.
48014         * modules/unistdio/u8-vasprintf: New file.
48015         * modules/unistdio/u8-vsnprintf: New file.
48016         * modules/unistdio/u8-vsprintf: New file.
48017         * modules/unistdio/u8-u8-asnprintf: New file.
48018         * modules/unistdio/u8-u8-asprintf: New file.
48019         * modules/unistdio/u8-u8-snprintf: New file.
48020         * modules/unistdio/u8-u8-sprintf: New file.
48021         * modules/unistdio/u8-u8-vasnprintf: New file.
48022         * modules/unistdio/u8-u8-vasprintf: New file.
48023         * modules/unistdio/u8-u8-vsnprintf: New file.
48024         * modules/unistdio/u8-u8-vsprintf: New file.
48025         * modules/unistdio/u16-asnprintf: New file.
48026         * modules/unistdio/u16-asprintf: New file.
48027         * modules/unistdio/u16-printf-parse: New file.
48028         * modules/unistdio/u16-snprintf: New file.
48029         * modules/unistdio/u16-sprintf: New file.
48030         * modules/unistdio/u16-vasnprintf: New file.
48031         * modules/unistdio/u16-vasprintf: New file.
48032         * modules/unistdio/u16-vsnprintf: New file.
48033         * modules/unistdio/u16-vsprintf: New file.
48034         * modules/unistdio/u16-u16-asnprintf: New file.
48035         * modules/unistdio/u16-u16-asprintf: New file.
48036         * modules/unistdio/u16-u16-snprintf: New file.
48037         * modules/unistdio/u16-u16-sprintf: New file.
48038         * modules/unistdio/u16-u16-vasnprintf: New file.
48039         * modules/unistdio/u16-u16-vasprintf: New file.
48040         * modules/unistdio/u16-u16-vsnprintf: New file.
48041         * modules/unistdio/u16-u16-vsprintf: New file.
48042         * modules/unistdio/u32-asnprintf: New file.
48043         * modules/unistdio/u32-asprintf: New file.
48044         * modules/unistdio/u32-printf-parse: New file.
48045         * modules/unistdio/u32-snprintf: New file.
48046         * modules/unistdio/u32-sprintf: New file.
48047         * modules/unistdio/u32-vasnprintf: New file.
48048         * modules/unistdio/u32-vasprintf: New file.
48049         * modules/unistdio/u32-vsnprintf: New file.
48050         * modules/unistdio/u32-vsprintf: New file.
48051         * modules/unistdio/u32-u32-asnprintf: New file.
48052         * modules/unistdio/u32-u32-asprintf: New file.
48053         * modules/unistdio/u32-u32-snprintf: New file.
48054         * modules/unistdio/u32-u32-sprintf: New file.
48055         * modules/unistdio/u32-u32-vasnprintf: New file.
48056         * modules/unistdio/u32-u32-vasprintf: New file.
48057         * modules/unistdio/u32-u32-vsnprintf: New file.
48058         * modules/unistdio/u32-u32-vsprintf: New file.
48059         * modules/unistdio/ulc-asnprintf-tests: New file.
48060         * modules/unistdio/ulc-vasnprintf-tests: New file.
48061         * modules/unistdio/ulc-vasprintf-tests: New file.
48062         * modules/unistdio/ulc-vsnprintf-tests: New file.
48063         * modules/unistdio/ulc-vsprintf-tests: New file.
48064         * modules/unistdio/u8-asnprintf-tests: New file.
48065         * modules/unistdio/u8-vasnprintf-tests: New file.
48066         * modules/unistdio/u8-vasprintf-tests: New file.
48067         * modules/unistdio/u8-vsnprintf-tests: New file.
48068         * modules/unistdio/u8-vsprintf-tests: New file.
48069         * modules/unistdio/u16-asnprintf-tests: New file.
48070         * modules/unistdio/u16-vasnprintf-tests: New file.
48071         * modules/unistdio/u16-vasprintf-tests: New file.
48072         * modules/unistdio/u16-vsnprintf-tests: New file.
48073         * modules/unistdio/u16-vsprintf-tests: New file.
48074         * modules/unistdio/u32-asnprintf-tests: New file.
48075         * modules/unistdio/u32-vasnprintf-tests: New file.
48076         * modules/unistdio/u32-vasprintf-tests: New file.
48077         * modules/unistdio/u32-vsnprintf-tests: New file.
48078         * modules/unistdio/u32-vsprintf-tests: New file.
48079         * MODULES.html.sh (Unicode string functions): Add the new modules.
48080
48081 2007-07-01  Bruno Haible  <bruno@clisp.org>
48082
48083         * lib/sprintf.c (sprintf): Limit the available length estimation,
48084         to avoid address wraparound.
48085         * lib/vsprintf.c (vsprintf): Likewise.
48086         * modules/sprintf-posix (Dependencies): Add stdint.
48087         * modules/vsprintf-posix (Dependencies): Likewise.
48088
48089 2007-07-01  Bruno Haible  <bruno@clisp.org>
48090
48091         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
48092         Windows PATH as well. Conservative double-quoting. Comments.
48093
48094 2007-07-01  Bruno Haible  <bruno@clisp.org>
48095             Eric Blake  <ebb9@byu.net>
48096             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48097
48098         * gnulib-tool (self_abspathname): Fix algorithm to cope with
48099         empty components in $PATH, denoting '.'.
48100
48101 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48102
48103         * gnulib-tool: Fix indentation.
48104         (func_create_megatestdir): Likewise.
48105         Report by Bruno Haible.
48106
48107 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48108
48109         Sync from Automake.
48110         * build-aux/gnupload: Fix shell portability issues with for loops.
48111         Report by Karl Berry.
48112
48113 2007-06-29  Simon Josefsson  <simon@josefsson.org>
48114
48115         * build-aux/maint.mk (POURL): Use translationproject.org.
48116
48117 2007-06-27  Simon Josefsson  <simon@josefsson.org>
48118             Bruno Haible  <bruno@clisp.org>
48119
48120         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
48121         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
48122         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
48123         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
48124         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
48125
48126 2007-06-27  Bruno Haible  <bruno@clisp.org>
48127
48128         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
48129         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
48130
48131 2007-06-26  Karl Berry  <karl@gnu.org>
48132
48133         * MODULES.html.sh: remove xreadlink-with-size.
48134
48135 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
48136
48137         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
48138         method that I hope also handles the double-include problem noted
48139         by Bruno Haible in
48140         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
48141
48142 2007-06-23  Bruno Haible  <bruno@clisp.org>
48143
48144         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48145         Don't let the 'mostlyclean' target fail if the last subdirectory could
48146         not be removed.
48147         Reported by Karl Berry.
48148
48149 2007-06-23  Bruno Haible  <bruno@clisp.org>
48150
48151         * gnulib-tool (echo): Add a speedier workaround for ksh.
48152         * tests/test-echo.sh: Likewise.
48153
48154 2007-06-23  Bruno Haible  <bruno@clisp.org>
48155
48156         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
48157         * tests/test-echo.sh: Likewise.
48158
48159 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48160
48161         * gnulib-tool (IFS): Initialize early, so we don't set it to
48162         empty later.
48163         (self_abspathname): Rewrite algorithm to set it, reindent.
48164         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
48165         (func_create_megatestdir): Merge some sed scripts.
48166
48167 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
48168
48169         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
48170         exposed by Sun Studio 11 cc on Solaris 8.
48171
48172 2007-06-22  Bruno Haible  <bruno@clisp.org>
48173
48174         * gnulib-tool (echo): Ensure the echo primitive does not interpret
48175         backslashes.
48176         * tests/test-echo.sh: New file.
48177
48178 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48179
48180         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
48181         simplify `sed_replace_build_aux' scripts, they are portable but
48182         echoing them with `echo' is not.
48183         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
48184
48185 2007-06-21  Karl Berry  <karl@gnu.org>
48186
48187         * config/srclist.txt: guess we can't handle the licenses via
48188         srclist at the moment.
48189
48190 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
48191
48192         * MODULES.html.sh: Add include_next.
48193         * modules/include_next: New file.
48194
48195 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
48196
48197         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
48198         INCLUDE_NEXT.
48199         (gl_CHECK_NEXT_HEADERS): New macro.
48200         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
48201         the obsolescent gl_ABSOLUTE_HEADER.
48202         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
48203         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
48204         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
48205         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
48206         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
48207         * m4/math_h.m4 (gl_MATH_H): Likewise.
48208         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
48209         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
48210         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
48211         * m4/stdint.m4 (gl_STDINT_H): Likewise.
48212         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
48213         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
48214         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
48215         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
48216         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
48217         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
48218         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
48219         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
48220         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
48221         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
48222         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
48223         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
48224         * m4/inttypes.m4 (gl_INTTYPES_H): Define
48225         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
48226         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
48227         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
48228         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
48229         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
48230         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
48231         * lib/float_.h: Likewise.
48232         * lib/inttypes_.h: Likewise.
48233         * lib/math_.h: Likewise.
48234         * lib/search_.h: Likewise.
48235         * lib/signal_.h: Likewise.
48236         * lib/stdint_.h: Likewise.
48237         * lib/stdio_.h: Likewise.
48238         * lib/stdlib_.h: Likewise.
48239         * lib/string_.h: Likewise.
48240         * lib/sys_stat_.h: Likewise.
48241         * lib/sys_time_.h: Likewise.
48242         * lib/time_.h: Likewise.
48243         * lib/unistd_.h: Likewise.
48244         * lib/wchar_.h: Likewise.
48245         * lib/wctype_.h: Likewise.
48246         * lib/dirent_.h: Likewise.
48247         * lib/iconv_.h: Likewise.
48248         * lib/locale_.h: Likewise.
48249         * lib/netinet_in_.h: Likewise.
48250         * lib/sys_select_.h: Likewise.
48251         * lib/sys_socket_.h: Likewise.
48252         * lib/sysexits_.h: Likewise.
48253         * modules/fcntl (Depends-on): Depend on include_next, not
48254         absolute_header.
48255         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
48256         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
48257         * modules/fchdir: Likewise.
48258         * modules/float: Likewise.
48259         * modules/iconv_open: Likewise.
48260         * modules/inttypes: Likewise.
48261         * modules/locale: Likewise.
48262         * modules/math: Likewise.
48263         * modules/netinet_in: Likewise.
48264         * modules/search: Likewise.
48265         * modules/signal: Likewise.
48266         * modules/stdint: Likewise.
48267         * modules/stdio: Likewise.
48268         * modules/stdlib: Likewise.
48269         * modules/string: Likewise.
48270         * modules/sys_select: Likewise.
48271         * modules/sys_socket: Likewise.
48272         * modules/sys_stat: Likewise.
48273         * modules/sys_time: Likewise.
48274         * modules/sysexits: Likewise.
48275         * modules/time: Likewise.
48276         * modules/unistd: Likewise.
48277         * modules/wchar: Likewise.
48278         * modules/wctype: Likewise.
48279         * modules/sys_stat: Change maintainer to "all".
48280         * modules/unistd: Likewise.
48281
48282 2007-06-20  Karl Berry  <karl@gnu.org>
48283
48284         * config/srclist.txt: track www changes in license files.
48285
48286 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
48287
48288         * build-aux/bootstrap: Remove stray dot.
48289         Make sure build_aux settings are honored when linking
48290         gnulib_extra_files.
48291
48292 2007-06-19  Eric Blake  <ebb9@byu.net>
48293
48294         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
48295         Allow compilation on cygwin.
48296
48297 2007-06-19  Jim Meyering  <jim@meyering.net>
48298
48299         xreadlink-with-size: Remove module.  No longer used.
48300         Ex-callers now use xreadlink or mreadlink-with-size.
48301         * modules/xreadlink-with-size: Remove module.
48302         * lib/xreadlink-with-size.c: Remove file.
48303         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
48304         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
48305         just before the function definition *is* accurate.
48306
48307         Eliminate one way canonicalize_filename_mode could exit.
48308         * lib/canonicalize.c (canonicalize_filename_mode):
48309         Use mreadlink_with_size, not xreadlink_with_size.
48310
48311 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
48312
48313         Detect porting problems to FreeBSD/arm, which has time_t wider than
48314         long int.  Original problem reported for GNU diff by Xin Li in
48315         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
48316         * modules/getdate (Depends-on): Add intprops, verify.
48317         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
48318         is an integer type no wider than long int.
48319
48320 2007-06-18  Jim Meyering  <jim@meyering.net>
48321
48322         New module: mreadlink-with-size.
48323         * MODULES.html.sh: Add mreadlink-with-size.
48324         * modules/mreadlink-with-size: New module
48325         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
48326         not xreadlink-with-size.
48327         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
48328
48329 2007-06-16  Bruno Haible  <bruno@clisp.org>
48330
48331         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
48332         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
48333         Reported by Gary V. Vaughan <gary@gnu.org>.
48334
48335 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
48336
48337         Revamp lchown so that it lives in unistd.h where it belongs.
48338         * lib/lchown.h: Remove.
48339         * lib/dirchownmod.c: Don't include lib/lchown.h.
48340         * lib/fchownat.c: Likewise.
48341         * lib/openat.c: Likewise.
48342         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
48343         does not follow symlinks.
48344         (EOPNOTSUPP): Define if not defined.
48345         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
48346         is defined to 0.
48347         (lchown): New decl.
48348         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
48349         Do not check for lchown decl.
48350         Set REPLACE_LCHOWN.
48351         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
48352         REPLACE_LCHOWN.
48353         * modules/chown: Make it clear it follows symlinks.
48354         * modules/lchown: Make it clear it doesn't follow symlinks.
48355         (Files): Remove lib/lchown.h
48356         (Depends-on): Add unistd.
48357         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
48358         (Include): Include <unistd.h>, not "lchown.h".
48359         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
48360         REPLACE_LCHOWN.
48361
48362 2007-06-15  Jim Meyering  <jim@meyering.net>
48363
48364         Change license (GPL to LGPL) of fsusage and dependents.
48365         * modules/fsusage (License): Change to LGPL.
48366         * modules/full-read (License): Likewise.
48367         * modules/full-write (License): Likewise.
48368         * modules/safe-read (License): Likewise.
48369         * modules/safe-write (License): Likewise.
48370
48371 2007-06-14  Ben Pfaff  <blp@gnu.org>
48372
48373         Missing part of allocsa -> malloca transition.
48374         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
48375         gl_MALLOCA.
48376
48377 2007-06-12  Bruno Haible  <bruno@clisp.org>
48378
48379         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
48380         to ia64, x86_64, i386.
48381         Reported by Eric Blake.
48382
48383 2007-06-12  Bruno Haible  <bruno@clisp.org>
48384
48385         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
48386         cross-compiling to x86_64.
48387
48388 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
48389
48390         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
48391         glitch reported by Ralf Wildenhues in
48392         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
48393
48394         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
48395         Vin Shelton.
48396
48397 2007-06-11  Bruno Haible  <bruno@clisp.org>
48398
48399         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
48400         replacement string.
48401         Reported by Eric Blake.
48402
48403 2007-06-10  Bruno Haible  <bruno@clisp.org>
48404
48405         Prepare vasnprintf code for use with Unicode strings.
48406         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
48407         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
48408         TYPE_U32_STRING.
48409         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
48410         a_u32_string variants.
48411         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
48412         * lib/printf-args.c: Don't include config.h and the specification
48413         header if PRINTF_FETCHARGS is already defined.
48414         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
48415         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
48416         TYPE_U16_STRING, TYPE_U32_STRING.
48417         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
48418         u16_directive, u16_directives, u32_directive, u32_directives): New
48419         types.
48420         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
48421         New declarations.
48422         * lib/printf-parse.c: Don't include config.h and the specification
48423         header if PRINTF_PARSE is already defined. Eliminate the set of
48424         parameters for WIDE_CHAR_VERSION; the user of this file must provide
48425         them now. Include c-ctype.h.
48426         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
48427         directive and CHAR_T_ONLY_ASCII.
48428         * lib/vasnprintf.c: Don't include config.h and the specification header
48429         if VASNPRINTF is already defined.
48430         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
48431         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
48432         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
48433         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
48434         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
48435         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
48436         code accordingly.
48437         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
48438         pad_ourselves also in this case, with the 'c' and 's' directives, and
48439         with a different notion of "width".
48440         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
48441
48442 2007-06-10  Bruno Haible  <bruno@clisp.org>
48443
48444         * modules/unistr/u32-mbsnlen: New file.
48445         * lib/unistr/u32-mbsnlen.c: New file.
48446
48447         * modules/unistr/u16-mbsnlen: New file.
48448         * lib/unistr/u16-mbsnlen.c: New file.
48449
48450         * modules/unistr/u8-mbsnlen: New file.
48451         * lib/unistr/u8-mbsnlen.c: New file.
48452
48453         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
48454         declarations.
48455
48456 2007-06-10  Bruno Haible  <bruno@clisp.org>
48457
48458         * lib/string_.h (mbsnlen): New declaration.
48459         * lib/mbsnlen.c: New file.
48460         * m4/mbsnlen.m4: New file.
48461         * modules/mbsnlen: New file.
48462         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
48463         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
48464         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
48465
48466 2007-06-10  Bruno Haible  <bruno@clisp.org>
48467
48468         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
48469
48470 2007-06-10  Bruno Haible  <bruno@clisp.org>
48471
48472         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
48473         * lib/mbuiter.h: Likewise.
48474
48475 2007-06-10  Bruno Haible  <bruno@clisp.org>
48476
48477         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
48478         declaration.
48479
48480 2007-06-10  Karl Berry  <karl@gnu.org>
48481
48482         * config/srclist.txt: remove gettext entries, Bruno prefers
48483         to update individually.
48484
48485 2007-06-10  Bruno Haible  <bruno@clisp.org>
48486
48487         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
48488         'maxlen'. Ensure only length + width bytes are allocated, not
48489         length + 1 + width.
48490
48491 2007-06-09  Bruno Haible  <bruno@clisp.org>
48492
48493         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
48494         (CHAR_T): Remove macro.
48495         (VASNPRINTF): Update.
48496
48497 2007-06-09  Bruno Haible  <bruno@clisp.org>
48498
48499         * MODULES.html.sh (Unicode string functions): Add the new modules.
48500
48501         * modules/uniconv/u32-conv-to-enc: New file.
48502         * lib/uniconv/u32-conv-to-enc.c: New file.
48503         * modules/uniconv/u32-conv-to-enc-tests: New file.
48504         * tests/uniconv/test-u32-conv-to-enc.c: New file.
48505
48506         * modules/uniconv/u16-conv-to-enc: New file.
48507         * lib/uniconv/u16-conv-to-enc.c: New file.
48508         * lib/uniconv/u-conv-to-enc.h: New file.
48509         * modules/uniconv/u16-conv-to-enc-tests: New file.
48510         * tests/uniconv/test-u16-conv-to-enc.c: New file.
48511
48512         * modules/uniconv/u8-conv-to-enc: New file.
48513         * lib/uniconv/u8-conv-to-enc.c: New file.
48514         * modules/uniconv/u8-conv-to-enc-tests: New file.
48515         * tests/uniconv/test-u8-conv-to-enc.c: New file.
48516
48517         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
48518         u32_conv_to_encoding): New declarations.
48519
48520 2007-06-09  Bruno Haible  <bruno@clisp.org>
48521
48522         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
48523
48524 2007-06-09  Bruno Haible  <bruno@clisp.org>
48525
48526         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
48527         * modules/malloca: Renamed from modules/allocsa, updated.
48528         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
48529         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
48530         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
48531         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
48532         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
48533         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
48534         * modules/xmalloca: Renamed from modules/xallocsa, updated.
48535         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
48536         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
48537         * modules/c-strcasestr (Depends-on): Update.
48538         * lib/c-strcasestr.c: Update.
48539         * modules/c-strstr (Depends-on): Update.
48540         * lib/c-strstr.c: Update.
48541         * modules/canonicalize-lgpl (Depends-on): Update.
48542         * lib/canonicalize-lgpl.c: Update.
48543         * modules/clean-temp (Depends-on): Update.
48544         * lib/clean-temp.c: Update.
48545         * modules/csharpcomp (Depends-on): Update.
48546         * lib/csharpcomp.c: Update.
48547         * modules/csharpexec (Depends-on): Update.
48548         * lib/csharpexec.c: Update.
48549         * modules/javacomp (Depends-on): Update.
48550         * lib/javacomp.c: Update.
48551         * modules/javaexec (Depends-on): Update.
48552         * lib/javaexec.c: Update.
48553         * modules/mbscasestr (Depends-on): Update.
48554         * lib/mbscasestr.c: Update.
48555         * modules/mbsstr (Depends-on): Update.
48556         * lib/mbsstr.c: Update.
48557         * modules/setenv (Depends-on): Update.
48558         * lib/setenv.c: Update.
48559         * modules/strcasestr (Depends-on): Update.
48560         * lib/strcasestr.c: Update.
48561         * modules/striconveha (Depends-on): Update.
48562         * lib/striconveha.c: Update.
48563         * modules/relocatable-prog-wrapper (Files): Update.
48564         * lib/relocwrapper.c: Update.
48565         * build-aux/install-reloc: Update.
48566         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
48567
48568 2007-06-08  Bruno Haible  <bruno@clisp.org>
48569
48570         Port to uClibc.
48571         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
48572         * lib/fpurge.c (fpurge): Likewise.
48573         * lib/freading.c (freading): Likewise.
48574         * lib/fseeko.c (rpl_fseeko): Likewise.
48575         * lib/fseterr.c (fseterr): Likewise.
48576         * lib/fwriting.c (fwriting): Likewise.
48577         * tests/test-fflush.c (main): Avoid a failure on uClibc.
48578
48579 2007-06-08  Bruno Haible  <bruno@clisp.org>
48580
48581         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
48582         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
48583         * modules/gettext (Files): Add m4/intlmacosx.m4.
48584
48585 2007-06-07  Bruno Haible  <bruno@clisp.org>
48586
48587         * modules/localename-tests: New file.
48588         * tests/test-localename.c: New file.
48589
48590         New module 'localename'.
48591         * lib/localename.h: New file.
48592         * lib/localename.c: New file, from GNU gettext.
48593         * m4/localename.m4: New file.
48594         * modules/localename: New file.
48595
48596 2007-06-07  Bruno Haible  <bruno@clisp.org>
48597
48598         Work around the lack of <wchar.h> on some builds of uClibc.
48599         * doc/headers/wchar.texi: Update.
48600         * lib/wchar_.h: Include <wchar.h> only if it exists.
48601         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
48602         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
48603         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
48604         doesn't exist.
48605         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
48606         * modules/mbfile (Depends-on): Add wchar.
48607         * modules/mbiter (Depends-on): Likewise.
48608         * modules/mbuiter (Depends-on): Likewise.
48609         Reported by Simon Josefsson.
48610
48611 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
48612
48613         Work around problem reported by Steven M. Schweda in
48614         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
48615         Tru64 5.1B with the Compaq compiler environment installed declares
48616         an 'isblank' function but does not define it in the C library.
48617         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
48618         * lib/regex_internal.h (isblank): Likewise.
48619         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
48620         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48621
48622 2007-06-05  Bruno Haible  <bruno@clisp.org>
48623
48624         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
48625         ia64.
48626         * modules/printf-safe: New file.
48627         * modules/fprintf-posix (Depends-on): Add printf-safe.
48628         * modules/printf-posix (Depends-on): Likewise.
48629         * modules/snprintf-posix (Depends-on): Likewise.
48630         * modules/sprintf-posix (Depends-on): Likewise.
48631         * modules/vasnprintf-posix (Depends-on): Likewise.
48632         * modules/vasprintf-posix (Depends-on): Likewise.
48633         * modules/vfprintf-posix (Depends-on): Likewise.
48634         * modules/vprintf-posix (Depends-on): Likewise.
48635         * modules/vsnprintf-posix (Depends-on): Likewise.
48636         * modules/vsprintf-posix (Depends-on): Likewise.
48637         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
48638         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
48639         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
48640         "no" on i386, x86_64, ia64.
48641         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
48642         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48643         on i386, x86_64, ia64.
48644         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
48645         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48646         on i386, x86_64, ia64.
48647         * tests/test-vasnprintf-posix.c: Include float.h.
48648         (LDBL80_WORDS): New macro.
48649         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48650         on i386, x86_64, ia64.
48651         * tests/test-vasprintf-posix.c: Include float.h.
48652         (LDBL80_WORDS): New macro.
48653         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48654         on i386, x86_64, ia64.
48655         * tests/test-snprintf-posix.c: Include float.h.
48656         * tests/test-sprintf-posix.c: Likewise.
48657         * tests/test-vsnprintf-posix.c: Likewise.
48658         * tests/test-vsprintf-posix.c: Likewise.
48659
48660 2007-06-05  Bruno Haible  <bruno@clisp.org>
48661
48662         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
48663         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
48664         non-IEEE numbers on i386, x86_64, ia64.
48665         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
48666         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
48667         * tests/test-isnanl.h: Include float.h.
48668         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
48669
48670 2007-06-05  Bruno Haible  <bruno@clisp.org>
48671
48672         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
48673         also the %a / %A. Handle the %a / %A code before this extra handling.
48674
48675 2007-06-05  Bruno Haible  <bruno@clisp.org>
48676
48677         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
48678         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
48679
48680 2007-06-05  Bruno Haible  <bruno@clisp.org>
48681
48682         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
48683         typo in variable name.
48684
48685 2007-06-05  Eric Blake  <ebb9@byu.net>
48686
48687         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
48688         Reported by Simon Josefsson.
48689
48690 2007-06-04  Bruno Haible  <bruno@clisp.org>
48691
48692         Avoid test failures on some PowerPC platforms.
48693         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
48694         Define differently for PowerPC.
48695         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
48696         Reported by Gary V. Vaughan <gary@gnu.org>.
48697
48698 2007-06-02  Bruno Haible  <bruno@clisp.org>
48699
48700         Fix test-stdint failure on FreeBSD/ia64.
48701         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
48702         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
48703         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
48704         * doc/headers/stdint.texi: Update.
48705
48706 2007-06-01  Bruno Haible  <bruno@clisp.org>
48707
48708         * tests/test-binary-io.c (main): Pass a third argument to open().
48709         Reported by Gary V. Vaughan <gary@gnu.org>.
48710
48711 2007-06-01  Bruno Haible  <bruno@clisp.org>
48712
48713         * doc/functions/frexpl.texi: Update for mingw.
48714
48715 2007-06-01  Bruno Haible  <bruno@clisp.org>
48716
48717         * tests/test-lseek.c (main): Disable test of errno for invalid third
48718         argument.
48719         * doc/functions/lseek.texi: Update.
48720         Reported by Gary V. Vaughan <gary@gnu.org>.
48721
48722 2007-05-28  Bruno Haible  <bruno@clisp.org>
48723
48724         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
48725
48726 2007-05-31  Eric Blake  <ebb9@byu.net>
48727
48728         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
48729         cross compiling.
48730
48731 2007-05-30  Eric Blake  <ebb9@byu.net>
48732         and Bruno Haible  <bruno@clisp.org>
48733
48734         Work around mingw test failures exposed by m4-1.4.9b.
48735         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
48736         * tests/test-unistd.c: Disable uid_t and git_t tests for the
48737         moment.
48738
48739 2007-05-30  Bruno Haible  <bruno@clisp.org>
48740
48741         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
48742         assuming that they are closed. Needed on HP-UX 11.
48743
48744 2007-05-29  Bruno Haible  <bruno@clisp.org>
48745
48746         Fix a problem with #include_next.
48747         * lib/dirent_.h: Split the double-inclusion guard.
48748         * lib/fcntl_.h: Likewise.
48749         * lib/float_.h: Likewise.
48750         * lib/iconv_.h: Likewise.
48751         * lib/inttypes_.h: Likewise.
48752         * lib/locale_.h: Likewise.
48753         * lib/math_.h: Likewise.
48754         * lib/netinet_in_.h: Likewise.
48755         * lib/search_.h: Likewise.
48756         * lib/signal_.h: Likewise.
48757         * lib/stdint_.h: Likewise.
48758         * lib/stdio_.h: Likewise.
48759         * lib/stdlib_.h: Likewise.
48760         * lib/string_.h: Likewise.
48761         * lib/sys_select_.h: Likewise.
48762         * lib/sys_socket_.h: Likewise.
48763         * lib/sys_stat_.h: Likewise.
48764         * lib/sys_time_.h: Likewise.
48765         * lib/sysexits_.h: Likewise.
48766         * lib/time_.h: Likewise.
48767         * lib/unistd_.h: Likewise.
48768         * lib/wchar_.h: Likewise.
48769         * lib/wctype_.h: Likewise.
48770
48771 2007-05-29  Bruno Haible  <bruno@clisp.org>
48772
48773         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
48774         for the moment.
48775
48776 2007-05-29  Bruno Haible  <bruno@clisp.org>
48777
48778         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
48779         invocation.
48780         Reported by Eric Blake.
48781
48782 2007-05-29  Bruno Haible  <bruno@clisp.org>
48783
48784         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
48785         compiling case.
48786
48787 2007-05-29  Eric Blake  <ebb9@byu.net>
48788             Bruno Haible  <bruno@clisp.org>
48789
48790         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
48791         cross compiles.
48792
48793 2007-05-28  Eric Blake  <ebb9@byu.net>
48794
48795         * modules/closein-tests (test_closein_LDADD): Support test on
48796         cygwin with libtool.
48797
48798 2007-05-28  Bruno Haible  <bruno@clisp.org>
48799
48800         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
48801         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
48802         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
48803         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
48804         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
48805         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
48806         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
48807         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
48808         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
48809
48810 2007-05-28  Eric Blake  <ebb9@byu.net>
48811
48812         Unconditionally include <config.h> in unit tests.
48813         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
48814         * tests/test-allocsa.c, tests/test-arcfour.c,
48815         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
48816         tests/test-array_list.c, tests/test-array_oset.c,
48817         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
48818         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
48819         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
48820         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
48821         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
48822         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
48823         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
48824         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
48825         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
48826         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
48827         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
48828         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
48829         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
48830         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
48831         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
48832         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
48833         test-md5.c, test-memmem.c, test-printf-posix.c,
48834         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
48835         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
48836         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
48837         test-strcasestr.c, test-striconv.c, test-striconveh.c,
48838         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
48839         test-vasnprintf-posix2.c, test-vasnprintf.c,
48840         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
48841         test-vfprintf-posix.c, test-vprintf-posix.c,
48842         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
48843         test-xvasprintf.c: Likewise.
48844
48845 2007-05-28  Bruno Haible  <bruno@clisp.org>
48846
48847         * gnulib-tool (func_import): Remember the --with-tests command-line
48848         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
48849         Reported by Eric Blake.
48850
48851 2007-05-28  Bruno Haible  <bruno@clisp.org>
48852
48853         * modules/ftell-tests: New file.
48854         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
48855         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
48856
48857         * lib/ftell.c: New file.
48858         * modules/ftell: New file.
48859         * m4/ftell.m4: New file.
48860         * doc/functions/ftell.texi: Update.
48861         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
48862         REPLACE_FTELL.
48863         * lib/stdio_.h (rpl_ftell): New declaration.
48864         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
48865         REPLACE_FTELL.
48866
48867 2007-05-28  Eric Blake  <ebb9@byu.net>
48868
48869         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
48870
48871 2007-05-28  Bruno Haible  <bruno@clisp.org>
48872
48873         * modules/fseek-tests: New file.
48874         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
48875         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
48876
48877         * lib/fseek.c: New file.
48878         * modules/fseek: New file.
48879         * m4/fseek.m4: New file.
48880         * doc/functions/fseek.texi: Update.
48881         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
48882         REPLACE_FSEEK.
48883         * lib/stdio_.h (rpl_fseek): New declaration.
48884         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
48885         REPLACE_FSEEK.
48886
48887 2007-05-28  Bruno Haible  <bruno@clisp.org>
48888
48889         * lib/stdio_.h (fflush): More comments.
48890
48891 2007-05-28  Bruno Haible  <bruno@clisp.org>
48892
48893         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
48894         runtime test.
48895
48896 2007-05-28  Eric Blake  <ebb9@byu.net>
48897
48898         Improve lseek module.
48899         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
48900         * lib/unistd_.h (lseek): Scale back link warning message.
48901         * tests/test-lseek.c: Beef up test.
48902         * tests/test-lseek.sh: Exercise more facets of lseek.
48903         Reported by Bruno Haible.
48904
48905 2007-05-28  Bruno Haible  <bruno@clisp.org>
48906
48907         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
48908         to define.
48909
48910 2007-05-27  Bruno Haible  <bruno@clisp.org>
48911
48912         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
48913
48914 2007-05-27  Bruno Haible  <bruno@clisp.org>
48915
48916         * modules/openmp: New file.
48917         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
48918         Noah Misch.
48919
48920 2007-05-26  Bruno Haible  <bruno@clisp.org>
48921
48922         * modules/chdir-long (Depends-on): Add fchdir.
48923         * modules/chdir-safer (Depends-on): Likewise.
48924         * modules/fts (Depends-on): Likewise.
48925         * modules/fts-lgpl (Depends-on): Likewise.
48926         * modules/openat (Depends-on): Likewise.
48927         * modules/savewd (Depends-on): Likewise.
48928
48929 2007-05-24  Eric Blake  <ebb9@byu.net>
48930
48931         Fix lseek on mingw.
48932         * modules/lseek: New module.
48933         * m4/lseek.m4: New file.
48934         * lib/lseek.c: New file.
48935         * modules/lseek-tests: New file.
48936         * tests/test-lseek.c: New file.
48937         * tests/test-lseek.sh: New file.
48938         * MODULES.html.sh: Document lseek module.
48939         * modules/fflush (Depends-on): Add lseek, fseeko.
48940         * modules/fseeko (Depends-on): Likewise.
48941         * modules/ftello (Depends-on): Likewise.
48942         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
48943         broken.
48944         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
48945         broken.
48946         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
48947         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
48948         * lib/ftello.c (rpl_ftello): Likewise.
48949         * tests/test-fseeko.c (main): Test this.
48950         * tests/test-fseeko.sh: Likewise.
48951         * tests/test-ftello.c (main): Likewise.
48952         * tests/test-ftello.sh: Likewise.
48953         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
48954         implies replacing fseek.
48955         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
48956         HAVE_FTELLO.
48957         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
48958         * modules/unistd (Makefile.am): Likewise.
48959         * lib/unistd_.h (lseek): Declare a replacement.
48960         * doc/functions/lseek.texi (lseek): Document this fix.
48961         * doc/functions/fseek.texi (fseek): Likewise.
48962         * doc/functions/ftell.texi (ftell): Likewise.
48963
48964 2007-05-24  Bruno Haible  <bruno@clisp.org>
48965
48966         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
48967         in the printed representation of a NaN.
48968         * tests/test-vasprintf-posix.c (test_function): Likewise.
48969         * tests/test-snprintf-posix.h (test_function): Likewise.
48970         * tests/test-sprintf-posix.h (test_function): Likewise.
48971         Reported by Eric Blake.
48972
48973 2007-05-23  Eric Blake  <ebb9@byu.net>
48974
48975         Fix fseeko/ftello on cygwin 1.5.24.
48976         * doc/functions/fseeko.texi (fseeko): Document the fix.
48977         * doc/functions/ftello.texi (ftello): Document the fix.
48978         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
48979         * doc/functions/stdout.text (stdout): New file.
48980         * doc/functions/stderr.text (stderr): New file.
48981         * doc/gnulib.texi (Function Substitutes): Use new files.
48982         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
48983         prior to 1.7.0.
48984         * tests/test-ftello.c (main): Likewise for ftello.
48985         * tests/test-fseeko.sh: New file.
48986         * tests/test-ftello.sh: New file.
48987         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
48988         with seekable stdin.
48989         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
48990         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
48991         (gl_REPLACE_FSEEKO): New macro.
48992         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
48993         * modules/fseeko (Files): Distribute fseeko.c.
48994         * modules/ftello (Files): Distribute ftello.c.
48995         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
48996         mode.
48997         * lib/ftello.c (rpl_ftello): New file.
48998         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
48999         fseeko, ftello.
49000         (gl_STDIN_LARGE_OFFSET): New macro.
49001         * modules/stdio (Makefile.am): Perform the replacement.
49002         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
49003
49004 2007-05-23  Bruno Haible  <bruno@clisp.org>
49005
49006         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
49007         GNULIB_POSIXCHECK is defined.
49008
49009 2007-05-21  Bruno Haible  <bruno@clisp.org>
49010
49011         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
49012         Check also the output for NaN arguments. When cross-compiling, guess
49013         no on IRIX.
49014         * lib/vasnprintf.c: Update comments.
49015         * tests/test-vasnprintf-posix.c (strisnan): New function.
49016         (test_function): Use it.
49017         * tests/test-vasprintf-posix.c (strisnan): New function.
49018         (test_function): Use it.
49019         * tests/test-snprintf-posix.h (strisnan): New function.
49020         (test_function): Use it.
49021         * tests/test-sprintf-posix.h (strisnan): New function.
49022         (test_function): Use it.
49023         Reported by Eric Blake.
49024
49025 2007-05-20  Bruno Haible  <bruno@clisp.org>
49026
49027         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
49028         numbers that fails on BeOS.
49029         * doc/functions/frexpl.texi: Update.
49030
49031 2007-05-20  Jim Meyering  <jim@meyering.net>
49032
49033         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
49034         forced upon us by glibc-2.6.
49035
49036 2007-05-20  Bruno Haible  <bruno@clisp.org>
49037
49038         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
49039         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
49040         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
49041         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
49042         NEED_PRINTF_INFINITE.
49043         (is_infinitel): New function.
49044         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
49045         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
49046         gl_PREREQ_VASNPRINTF_INFINITE.
49047         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
49048         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49049         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
49050         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
49051         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
49052         gl_PREREQ_VASNPRINTF_INFINITE.
49053         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49054         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49055         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49056         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49057         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49058         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49059         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49060         * doc/functions/fprintf.texi: Update.
49061         * doc/functions/printf.texi: Update.
49062         * doc/functions/snprintf.texi: Update.
49063         * doc/functions/sprintf.texi: Update.
49064         * doc/functions/vfprintf.texi: Update.
49065         * doc/functions/vprintf.texi: Update.
49066         * doc/functions/vsnprintf.texi: Update.
49067         * doc/functions/vsprintf.texi: Update.
49068
49069 2007-05-20  Bruno Haible  <bruno@clisp.org>
49070
49071         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
49072         was not found in libc.
49073         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
49074
49075 2007-05-20  Bruno Haible  <bruno@clisp.org>
49076
49077         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
49078         printed as "-nan" instead of "nan".
49079         * tests/test-vasprintf-posix.c (test_function): Likewise.
49080         * tests/test-snprintf-posix.h (test_function): Likewise.
49081         * tests/test-sprintf-posix.h (test_function): Likewise.
49082         Needed for HP-UX 11.
49083
49084 2007-05-20  Jim Meyering  <jim@meyering.net>
49085
49086         Fix buggy test for the fchownat-deref bug.
49087         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
49088         symlink required for the run-test.  Without it, this test would
49089         always declare that fchownat doesn't work, and client code would
49090         unnecessarily use the replacement function with fixed libc.
49091         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
49092         Reported by Greg Schafer.
49093
49094 2007-05-19  Bruno Haible  <bruno@clisp.org>
49095
49096         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
49097         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
49098         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
49099         Needed for IRIX 6.5 and Solaris 2.5.1.
49100
49101 2007-05-19  Bruno Haible  <bruno@clisp.org>
49102
49103         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
49104         (test_function): Skip tests involving -0.0 on platforms where
49105         -0.0 = 0.0.
49106         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
49107         (test_function): Skip tests involving -0.0 on platforms where
49108         -0.0 = 0.0.
49109         * tests/test-snprintf-posix.h (have_minus_zero): New function.
49110         (test_function): Skip tests involving -0.0 on platforms where
49111         -0.0 = 0.0.
49112         * tests/test-sprintf-posix.h (have_minus_zero): New function.
49113         (test_function): Skip tests involving -0.0 on platforms where
49114         -0.0 = 0.0.
49115         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
49116         tests.
49117         * tests/test-printf-posix.h (test_function): Likewise.
49118         * tests/test-printf-posix.output: Remove all -0.0 related results.
49119         Needed for IRIX 6.5.
49120
49121 2007-05-19  Bruno Haible  <bruno@clisp.org>
49122
49123         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
49124         printed as "nan0x7fffffff" instead of "nan".
49125         * tests/test-vasprintf-posix.c (test_function): Likewise.
49126         * tests/test-snprintf-posix.h (test_function): Likewise.
49127         * tests/test-sprintf-posix.h (test_function): Likewise.
49128         * tests/test-fprintf-posix.h (NaN): Remove macro.
49129         (test_function): Remove all NaN related tests.
49130         * tests/test-printf-posix.h (NaN): Remove macro.
49131         (test_function): Remove all NaN related tests.
49132         * tests/test-printf-posix.output: Remove all NaN related results.
49133         Needed for IRIX 6.5.
49134
49135 2007-05-19  Bruno Haible  <bruno@clisp.org>
49136
49137         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
49138         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
49139
49140 2007-05-19  Bruno Haible  <bruno@clisp.org>
49141
49142         * lib/float_.h: New file.
49143         * m4/float_h.m4: New file.
49144         * modules/float: New file.
49145         * modules/isnanl (Dependencies): Add float.
49146         * modules/isnanl-nolibm (Dependencies): Likewise.
49147         * modules/mathl (Dependencies): Likewise.
49148         * modules/printf-frexpl (Dependencies): Likewise.
49149         * modules/signbit (Dependencies): Likewise.
49150         * modules/vasnprintf (Dependencies): Likewise.
49151         * doc/headers/float.texi: Update.
49152
49153 2007-05-19  Jim Meyering  <jim@meyering.net>
49154
49155         * lib/utimens.c (gl_futimens): Rename from futimens,
49156         now that glibc-2.6 declares futimens.
49157         * lib/utimens.h: Likewise.
49158
49159 2007-05-19  Bruno Haible  <bruno@clisp.org>
49160
49161         Avoid test failures on mingw.
49162         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
49163         * tests/test-printf-posix.sh: Likewise.
49164         * tests/test-vfprintf-posix.sh: Likewise.
49165         * tests/test-vprintf-posix.sh: Likewise.
49166
49167 2007-05-19  Bruno Haible  <bruno@clisp.org>
49168
49169         Fix *printf result for NaN, Inf, -0.0 on mingw.
49170         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
49171         * lib/vasnprintf.c: Include math.h and isnan.h.
49172         (is_infinite_or_zero): New function.
49173         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
49174         values in the %f, %F, %e, %E, %g, %G directives.
49175         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
49176         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49177         gl_PRINTF_INFINITE and test its result. Invoke
49178         gl_PREREQ_VASNPRINTF_INFINITE.
49179         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49180         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49181         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49182         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49183         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49184         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49185         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49186         * doc/functions/fprintf.texi: Update.
49187         * doc/functions/printf.texi: Update.
49188         * doc/functions/snprintf.texi: Update.
49189         * doc/functions/sprintf.texi: Update.
49190         * doc/functions/vfprintf.texi: Update.
49191         * doc/functions/vprintf.texi: Update.
49192         * doc/functions/vsnprintf.texi: Update.
49193         * doc/functions/vsprintf.texi: Update.
49194
49195 2007-05-19  Bruno Haible  <bruno@clisp.org>
49196
49197         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
49198         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
49199         Instead of multiplying with 10^k, set extra_zeroes to k.
49200         (scale10_round_long_double): Remove function.
49201
49202 2007-05-18  Bruno Haible  <bruno@clisp.org>
49203
49204         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
49205         introduced on 2007-05-06.
49206
49207 2007-05-18  Bruno Haible  <bruno@clisp.org>
49208
49209         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
49210         %g directives.
49211         * tests/test-vasprintf-posix.c (test_function): Likewise.
49212         * tests/test-snprintf-posix.h (test_function): Likewise.
49213         * tests/test-sprintf-posix.h (test_function): Likewise.
49214
49215 2007-05-18  Bruno Haible  <bruno@clisp.org>
49216
49217         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
49218         (strmatch): New function.
49219         (test_function): Test the %f directive on numbers of various exponents.
49220         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
49221         (strmatch): New function.
49222         (test_function): Test the %f directive on numbers of various exponents.
49223         * tests/test-snprintf-posix.h (strmatch): New function.
49224         (test_function): Test the %f directive on numbers of various exponents.
49225         * tests/test-sprintf-posix.h (strmatch): New function.
49226         (test_function): Test the %f directive on numbers of various exponents.
49227         * tests/test-snprintf-posix.c (SIZEOF): New macro.
49228         * tests/test-sprintf-posix.c (SIZEOF): New macro.
49229         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
49230         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
49231
49232 2007-05-18  Bruno Haible  <bruno@clisp.org>
49233
49234         Add support for 'long double' number output.
49235         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
49236         * lib/vasnprintf.c: Include math.h and float+.h.
49237         (mp_limb_t): New type.
49238         (GMP_LIMB_BITS): New macro.
49239         (mp_twolimb_t): New type.
49240         (GMP_TWOLIMB_BITS): New macro.
49241         (mpn_t): New type.
49242         (multiply, divide, convert_to_decimal, decode_long_double,
49243         scale10_round_long_double, scale10_round_decimal_long_double,
49244         floorlog10l): New functions.
49245         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
49246         for the %f, %F, %e, %E, %g, %G directives.
49247         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
49248         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49249         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
49250         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
49251         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49252         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49253         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49254         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49255         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49256         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49257         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49258         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
49259         * modules/snprintf-posix (Depends-on): Likewise.
49260         * modules/sprintf-posix (Depends-on): Likewise.
49261         * modules/vasnprintf-posix (Depends-on): Likewise.
49262         * modules/vasprintf-posix (Depends-on): Likewise.
49263         * modules/vfprintf-posix (Depends-on): Likewise.
49264         * modules/vsnprintf-posix (Depends-on): Likewise.
49265         * modules/vsprintf-posix (Depends-on): Likewise.
49266         * modules/vasnprintf (Files): Add lib/float+.h.
49267         * doc/functions/fprintf.texi: Update.
49268         * doc/functions/printf.texi: Update.
49269         * doc/functions/snprintf.texi: Update.
49270         * doc/functions/sprintf.texi: Update.
49271         * doc/functions/vfprintf.texi: Update.
49272         * doc/functions/vprintf.texi: Update.
49273         * doc/functions/vsnprintf.texi: Update.
49274         * doc/functions/vsprintf.texi: Update.
49275
49276 2007-05-18  Bruno Haible  <bruno@clisp.org>
49277
49278         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
49279
49280 2007-05-18  Bruno Haible  <bruno@clisp.org>
49281
49282         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
49283         for printing 64-bit integers. Needed for mingw.
49284
49285 2007-05-18  Bruno Haible  <bruno@clisp.org>
49286
49287         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
49288         gl_FUNC_FREXPL_WORKS.
49289         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
49290
49291 2007-05-18  Bruno Haible  <bruno@clisp.org>
49292
49293         * modules/frexpl-nolibm-tests: New file.
49294
49295         * modules/frexpl-nolibm: New file.
49296         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
49297
49298 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
49299
49300         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
49301         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
49302         GCC 4.2, which otherwise issues a lot of warnings.
49303         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
49304         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
49305         Likewise.
49306         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
49307         * modules/iconv_open (iconv.h): Likewise.
49308         * modules/locale (locale.h): Likewise.
49309         * modules/netinet_in (netinet/in.h): Likewise.
49310         * modules/sys_select (sys_select.h): Likewise.
49311         * modules/sys_socket (sys/socket.h): Likewise.
49312         * modules/sys_stat (sys/stat.h): Likewise.
49313         * modules/sysexits (sysexits.h): Likewise.
49314         * modules/unistd (unistd.h): Likewise.
49315
49316 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49317
49318         * modules/closein-tests (Makefile.am): Distribute
49319         `test-closein.sh'.
49320
49321 2007-05-17  Bruno Haible  <bruno@clisp.org>
49322
49323         * tests/test-printf-posix.output: Renamed from
49324         tests/test-fprintf-posix.out.
49325         * modules/fprintf-posix-tests: Update.
49326         * modules/printf-posix-tests: Update.
49327         * modules/vfprintf-posix-tests: Update.
49328         * modules/vprintf-posix-tests: Update.
49329         * tests/test-fprintf-posix.sh: Update.
49330         * tests/test-printf-posix.sh: Update.
49331         * tests/test-vfprintf-posix.sh: Update.
49332         * tests/test-vprintf-posix.sh: Update.
49333         Reported by Ralf Wildenhues.
49334
49335 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
49336
49337         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
49338         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
49339         GCC 4.2, which otherwise issues a lot of warnings.
49340         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
49341         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
49342         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
49343         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
49344         it should no longer be needed.
49345         * lib/string_.h: Likewise.
49346         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
49347         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
49348         * modules/inttypes (inttypes.h): Likewise.
49349         * modules/math (math.h): Likewise.
49350         * modules/search (search.h): Likewise.
49351         * modules/signal (signal.h): Likewise.
49352         * modules/stdint (stdint.h): Likewise.
49353         * modules/stdio (stdio.h): Likewise.
49354         * modules/stdlib (stdlib.h): Likewise.
49355         * modules/string (string.h): Likewise.
49356         * modules/sys_time (sys/time.h): Likewise.
49357         * modules/time (time.h): Likewise.
49358         * modules/wchar (wchar.h): Likewise.
49359         * modules/wctype (wtype.h): Likewise.
49360
49361 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
49362
49363         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
49364
49365 2007-05-13  Bruno Haible  <bruno@clisp.org>
49366
49367         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
49368         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49369         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
49370         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
49371         (gl_PREREQ_STRTOK_R): Don't require it here.
49372
49373 2007-05-13  Bruno Haible  <bruno@clisp.org>
49374
49375         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
49376         when used in C++ mode.
49377
49378 2007-05-12  Bruno Haible  <bruno@clisp.org>
49379
49380         * lib/linebuffer.h: Tweak doc.
49381         * lib/linebuffer.c: Likewise.
49382
49383 2007-05-12  James Youngman  <jay@gnu.org>
49384
49385         * lib/linebuffer.c (readlinebuffer_delim): New function,
49386         like readlinebuffer, but use a caller-specified delimiter.
49387         (readlinebuffer): Just call readlinebuffer_delim with '\n'
49388         as the delimiter.
49389         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
49390
49391 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
49392
49393         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
49394         * modules/openat (Files): Remove openat-die.c.
49395         (Depends-on): Add openat-die.
49396         * modules/openat-die: New module.
49397
49398 2007-05-06  Bruno Haible  <bruno@clisp.org>
49399
49400         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
49401         Update with info about Cygwin.
49402         * doc/functions/fprintf.texi: Update.
49403         * doc/functions/printf.texi: Update.
49404         * doc/functions/snprintf.texi: Update.
49405         * doc/functions/sprintf.texi: Update.
49406         * doc/functions/vfprintf.texi: Update.
49407         * doc/functions/vprintf.texi: Update.
49408         * doc/functions/vsnprintf.texi: Update.
49409         * doc/functions/vsprintf.texi: Update.
49410         Reported by Eric Blake.
49411
49412 2007-05-06  Bruno Haible  <bruno@clisp.org>
49413
49414         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
49415         padding ourselves for the floating-point directives.
49416         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
49417         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
49418         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49419         gl_PRINTF_FLAG_ZERO and test its result. Invoke
49420         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
49421         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49422         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
49423         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49424         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49425         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49426         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49427         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49428         * tests/test-snprintf-posix.h (test_function): Also check the width
49429         and some flags in the %f directive.
49430         * tests/test-sprintf-posix.h (test_function): Likewise.
49431         * tests/test-vasnprintf-posix.c (test_function): Likewise.
49432         * tests/test-vasprintf-posix.c (test_function): Likewise.
49433         * doc/functions/fprintf.texi: Update.
49434         * doc/functions/printf.texi: Update.
49435         * doc/functions/snprintf.texi: Update.
49436         * doc/functions/sprintf.texi: Update.
49437         * doc/functions/vfprintf.texi: Update.
49438         * doc/functions/vprintf.texi: Update.
49439         * doc/functions/vsnprintf.texi: Update.
49440         * doc/functions/vsprintf.texi: Update.
49441
49442 2007-05-06  Bruno Haible  <bruno@clisp.org>
49443
49444         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
49445         pass the ' flag character to sprintf or snprintf.
49446         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
49447         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
49448         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49449         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
49450         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
49451         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49452         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
49453         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49454         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49455         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49456         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49457         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49458         * tests/test-snprintf-posix.h (test_function): Also check the grouping
49459         flag.
49460         * tests/test-sprintf-posix.h (test_function): Likewise.
49461         * tests/test-vasnprintf-posix.c (test_function): Likewise.
49462         * tests/test-vasprintf-posix.c (test_function): Likewise.
49463         * doc/functions/fprintf.texi: Update.
49464         * doc/functions/printf.texi: Update.
49465         * doc/functions/snprintf.texi: Update.
49466         * doc/functions/sprintf.texi: Update.
49467         * doc/functions/vfprintf.texi: Update.
49468         * doc/functions/vprintf.texi: Update.
49469         * doc/functions/vsnprintf.texi: Update.
49470         * doc/functions/vsprintf.texi: Update.
49471
49472 2007-05-01  Bruno Haible  <bruno@clisp.org>
49473
49474         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
49475
49476 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
49477
49478         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
49479         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
49480
49481 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
49482
49483         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
49484         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
49485         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
49486
49487 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
49488
49489         * lib/argp-help.c (struct hol_entry): New member `ord'.
49490         (HOL_ENTRY_PTRCMP): Use ord for comparison
49491         (hol_sort): Initialize ord.
49492
49493 2007-05-01  Bruno Haible  <bruno@clisp.org>
49494
49495         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
49496         Reported by Eric Blake.
49497         * doc/gnulib.texi (Function Substitutes): Update.
49498
49499 2007-05-01  Bruno Haible  <bruno@clisp.org>
49500
49501         * doc/functions.texi: Remove file, now redundant through
49502         doc/functions/*.texi.
49503
49504 2007-05-01  Bruno Haible  <bruno@clisp.org>
49505
49506         * modules/argp (Depends-on): Add sleep.
49507
49508 2007-05-01  Bruno Haible  <bruno@clisp.org>
49509
49510         * modules/sleep-tests: New file.
49511         * tests/test-sleep.c: New file.
49512
49513         * modules/sleep: New file.
49514         * lib/sleep.c: New file.
49515         * m4/sleep.m4: New file.
49516         * lib/unistd_.h (sleep): New declaration.
49517         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
49518         HAVE_SLEEP.
49519         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
49520         * doc/functions/sleep.texi: Document the sleep module.
49521
49522 2007-05-01  Bruno Haible  <bruno@clisp.org>
49523
49524         * lib/sigprocmask.h: Remove file.
49525         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
49526         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
49527         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
49528         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
49529         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
49530         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
49531         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
49532         HAVE_SIGSET_T as a shell variable.
49533         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
49534         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
49535         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
49536         (Depends-on): Add signal. Remove verify.
49537         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
49538         (Include): Mention <signal.h> instead of sigprocmask.h.
49539         * NEWS: Mention the change.
49540         * lib/fatal-signal.c: Don't include sigprocmask.h.
49541
49542 2007-05-01  Bruno Haible  <bruno@clisp.org>
49543
49544         * modules/signal: New file.
49545         * lib/signal_.h: New file.
49546         * m4/signal_h.m4: New file.
49547
49548 2007-05-01  Bruno Haible  <bruno@clisp.org>
49549
49550         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
49551         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
49552         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
49553         HAVE_WCTYPE_CTMP_BUG into wctype.h.
49554
49555 2007-05-01  Bruno Haible  <bruno@clisp.org>
49556
49557         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
49558         configure time.
49559         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
49560         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
49561         * modules/sys_stat (Makefile.am): Substitute their values into
49562         sys/stat.h.
49563
49564 2007-05-01  Bruno Haible  <bruno@clisp.org>
49565
49566         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
49567         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
49568         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
49569
49570 2007-05-01  Bruno Haible  <bruno@clisp.org>
49571
49572         * doc/header/assert.texi: Undo last change: don't mention the gnulib
49573         'assert' module here.
49574
49575 2007-05-01  Bruno Haible  <bruno@clisp.org>
49576
49577         * doc/functions/*.texi: New files.
49578         * doc/functions/google-ranking.txt: New file.
49579         * doc/gnulib.texi (Function Substitutes): New chapter.
49580         (ctime, inet_ntoa): Remove sections.
49581         * doc/ctime.texi: Remove file.
49582         * doc/inet_ntoa.texi: Remove file.
49583         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
49584         dependencies.
49585         (%.info): New rule, specifying a --reference-limit.
49586
49587 2007-05-01  Bruno Haible  <bruno@clisp.org>
49588
49589         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
49590
49591 2007-05-01  Bruno Haible  <bruno@clisp.org>
49592
49593         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
49594         the portability of 'mkdir' to mingw systems.
49595
49596 2007-05-01  Bruno Haible  <bruno@clisp.org>
49597
49598         * doc/headers/google-ranking.txt: New file.
49599
49600 2007-04-30  Eric Blake  <ebb9@byu.net>
49601
49602         Prefer fseeko to fseek.
49603         * modules/getpass (Depends-on): Add fseeko.
49604         * lib/getpass.c (getpass): Use fseeko, not fseek.
49605
49606 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
49607
49608         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
49609         assumes the sorting is stable, while most qsort implementations
49610         are not.  Use argument addresses to ensure they never compare as
49611         equal.
49612
49613         * tests/test-argp-2.sh (usage-indent test): Fix output
49614         (func_compare): Restore diff options
49615         * tests/test-argp.c: Restore #include "progname.h"
49616
49617 2007-04-29  Bruno Haible  <bruno@clisp.org>
49618
49619         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
49620         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49621         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
49622         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49623         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
49624         (configure.ac): Define CHECK_SNPRINTF_POSIX.
49625         (TESTS, check_PROGRAMS): Add test-snprintf.
49626         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
49627         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
49628         (TESTS, check_PROGRAMS): Add test-vsnprintf.
49629         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
49630         assertions that fail on HP-UX, OSF/1, or IRIX.
49631         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
49632
49633 2007-04-29  Bruno Haible  <bruno@clisp.org>
49634
49635         * MODULES.html.sh (posix_functions): Remove 'contents'.
49636
49637 2007-04-29  Karl Berry  <karl@gnu.org>
49638
49639         * config/srclist.txt (gendocs_template_min): new entry.
49640
49641 2007-04-29  Bruno Haible  <bruno@clisp.org>
49642
49643         Work around fpurge bug on BSD systems.
49644         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
49645         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
49646         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
49647         fpurge to rpl_fpurge if the system already has this function.
49648         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
49649         the case where the system already has this function. Correct invariants
49650         on BSD systems.
49651         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
49652         BSD systems.
49653
49654 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
49655
49656         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
49657         proposed by Sven Verdoolaege.
49658
49659         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
49660         options.
49661         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
49662         (usage and help tests): Update
49663
49664 2007-04-29  Bruno Haible  <bruno@clisp.org>
49665
49666         * tests/test-fflush.c (main): Use a file of size 17, not 10.
49667         Print more information in case of failure. Disable a test on BeOS.
49668
49669 2007-04-29  Bruno Haible  <bruno@clisp.org>
49670
49671         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
49672         This helps debugging on systems on which no gdb is available.
49673
49674 2007-04-29  Bruno Haible  <bruno@clisp.org>
49675
49676         * lib/freading.h: Improve comments.
49677         * lib/fwriting.h: Likewise.
49678         * tests/test-freading.c (main): Don't check freading immediately after
49679         repositioning. Needed for glibc.
49680
49681 2007-04-29  Bruno Haible  <bruno@clisp.org>
49682
49683         * lib/freading.c (freading): Trivial simplification.
49684
49685 2007-04-28  Bruno Haible  <bruno@clisp.org>
49686
49687         * tests/test-fwriting.c (main): Also test the interaction between
49688         fflush and fwriting.
49689         * modules/fwriting-tests (Depends-on): Add fflush.
49690
49691         * tests/test-freading.c (main): Also test the interaction between
49692         fflush and freading.
49693         * modules/freading-tests (Depends-on): Add fflush.
49694
49695 2007-04-28  Bruno Haible  <bruno@clisp.org>
49696
49697         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
49698         fseeko and ftello.
49699         Suggested by Eric Blake.
49700
49701 2007-04-28  Jim Meyering  <jim@meyering.net>
49702
49703         Avoid false-negative in gl_STDINT_H's C99 conformance test.
49704         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
49705         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
49706
49707 2007-04-27  Eric Blake  <ebb9@byu.net>
49708
49709         * doc/headers/assert.texi (assert.h): Document assert module use.
49710
49711 2007-04-27  Bruno Haible  <bruno@clisp.org>
49712
49713         * doc/headers/*.texi: New files.
49714         * doc/gnulib.texi (Header File Substitutes): New chapter.
49715         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
49716         dependencies.
49717         (standards.info ,standards.html, standards.dvi): Update dependencies.
49718         (mostlyclean, clean): New targets.
49719
49720 2007-04-27  Bruno Haible  <bruno@clisp.org>
49721
49722         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
49723         * modules/sysexits (Files, Makefile.am): Update.
49724
49725         * lib/sys_socket_.h: Renamed from lib/socket_.h.
49726         * modules/sys_socket (Files, Makefile.am): Update.
49727
49728         * lib/sys_stat_.h: Renamed from lib/stat_.h.
49729         * modules/sys_stat (Files, Makefile.am): Update.
49730
49731 2007-04-27  Eric Blake  <ebb9@byu.net>
49732
49733         * lib/freading.h: Improve comments.
49734         * lib/fwriting.h: Likewise.
49735         * lib/fflush.c: Likewise.
49736
49737         Fix closein for mingw.
49738         * modules/closein-tests: Add tests for closein.
49739         * tests/test-closein.c: New file.
49740         * tests/test-closein.sh: Likewise.
49741         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
49742         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
49743
49744 2007-04-27  Bruno Haible  <bruno@clisp.org>
49745
49746         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
49747         version is < 6.
49748         * lib/math_.h [__DECC]: Likewise.
49749         * lib/stdio_.h [__DECC]: Likewise.
49750         * lib/stdlib_.h [__DECC]: Likewise.
49751         * lib/string_.h [__DECC]: Likewise.
49752         * lib/time_.h [__DECC]: Likewise.
49753         * lib/wchar_.h [__DECC]: Likewise.
49754         * lib/wctype_.h [__DECC]: Likewise.
49755
49756 2007-04-27  Bruno Haible  <bruno@clisp.org>
49757
49758         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
49759
49760 2007-04-27  Bruno Haible  <bruno@clisp.org>
49761
49762         * lib/fflush.c: Add comments.
49763         * modules/fpurge-tests (Depends-on): Add fflush.
49764         * modules/freadable-tests (Depends-on): Likewise.
49765         * modules/fwritable-tests (Depends-on): Likewise.
49766
49767 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
49768
49769         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
49770         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
49771         Report by Bruno Haible <bruno@clisp.org>.
49772
49773 2007-04-26  Eric Blake  <ebb9@byu.net>
49774
49775         Fix fflush on mingw.
49776         * modules/fflush (Depends-on): Add freading.
49777         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
49778         but unread data.
49779
49780 2007-04-26  Eric Blake  <ebb9@byu.net>
49781         and Bruno Haible  <bruno@clisp.org>
49782
49783         Implement freading and fwriting.
49784         * lib/freading.c: New file.
49785         * lib/freading.h: Likewise.
49786         * m4/freading.m4: Likewise.
49787         * modules/freading: Likewise.
49788         * modules/freading-tests: Likewise.
49789         * tests/test-freading.c: Likewise.
49790         * lib/fwriting.c: New file.
49791         * lib/fwriting.h: Likewise.
49792         * m4/fwriting.m4: Likewise.
49793         * modules/fwriting: Likewise.
49794         * modules/fwriting-tests: Likewise.
49795         * tests/test-fwriting.c: Likewise.
49796         * MODULES.html.sh (File stream based Input/Output): Mention them.
49797
49798 2007-04-26  Bruno Haible  <bruno@clisp.org>
49799
49800         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
49801         'long' when we assume it.
49802         Suggested by Eric Blake.
49803
49804 2007-04-26  Bruno Haible  <bruno@clisp.org>
49805
49806         Ensure fseeko, ftello are declared on glibc systems.
49807         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
49808         * modules/fseeko (configure.ac-early): Likewise.
49809         * modules/ftello (configure.ac-early): Likewise.
49810         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
49811         AC_FUNC_FSEEKO for this.
49812         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
49813         (gl_CHECK_FSEEKO): Remove macro.
49814
49815 2007-04-26  Bruno Haible  <bruno@clisp.org>
49816
49817         * tests/test-fflush.c (main): Also check the ftell result after
49818         fflush and fseek/fseeko.
49819         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
49820         file descriptor position cache in the stream.
49821         * lib/fseeko.c (rpl_fseeko): Likewise.
49822
49823 2007-04-26  Bruno Haible  <bruno@clisp.org>
49824
49825         * modules/fflush-tests (Depends-on): Add fseeko.
49826
49827 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
49828             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49829
49830         * lib/argz_.h: ensure error_t definition is obtained in same
49831         mechanism system argz.h would have.
49832         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
49833         argz facilities are known bad.  Err on the side of caution if
49834         cross-compiling.
49835
49836 2007-04-25  Eric Blake  <ebb9@byu.net>
49837
49838         * lib/fpurge.c (includes): Use stdlib.h for free.
49839         * tests/test-fflush.c (main): Also test fflush-fseeko.
49840
49841 2007-04-25  Bruno Haible  <bruno@clisp.org>
49842
49843         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
49844         * lib/fseeko.c: New file.
49845         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
49846         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
49847         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
49848         gl_FUNC_FSEEKO.
49849         (gl_FUNC_FSEEKO): Invoke it.
49850         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
49851         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
49852         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
49853
49854 2007-04-25  Bruno Haible  <bruno@clisp.org>
49855
49856         * modules/fflush (Depends-on): Add ftello.
49857
49858 2007-04-25  Bruno Haible  <bruno@clisp.org>
49859
49860         * modules/ftello-tests: New file.
49861         * tests/test-ftello.c: New file.
49862
49863         * modules/ftello: New file.
49864         * m4/ftello.m4: New file.
49865         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
49866         HAVE_FTELLO.
49867         * lib/stdio_.h (ftello): New declaration.
49868         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
49869         HAVE_FTELLO.
49870
49871 2007-04-25  Bruno Haible  <bruno@clisp.org>
49872
49873         * modules/fseeko-tests: New file.
49874         * tests/test-fseeko.c: New file.
49875
49876         * modules/fseeko: New file.
49877         * m4/fseeko.m4: New file.
49878         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
49879         HAVE_FSEEKO.
49880         * lib/stdio_.h (fseeko): New declaration.
49881         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
49882         HAVE_FSEEKO.
49883
49884 2007-04-25  Bruno Haible  <bruno@clisp.org>
49885
49886         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
49887
49888 2007-04-25  Bruno Haible  <bruno@clisp.org>
49889
49890         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
49891         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
49892         * tests/test-unistd.c: Likewise.
49893         * tests/test-fcntl.c: Likewise.
49894
49895 2007-04-23  Eric Blake  <ebb9@byu.net>
49896
49897         * lib/fflush.c: Fix missing include.
49898         Reported by Bruno Haible.
49899
49900 2007-04-23  Bruno Haible  <bruno@clisp.org>
49901
49902         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
49903         Reported by Eric Blake.
49904
49905 2007-04-23  Bruno Haible  <bruno@clisp.org>
49906
49907         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
49908
49909 2007-04-23  Bruno Haible  <bruno@clisp.org>
49910
49911         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
49912
49913 2007-04-23  Bruno Haible  <bruno@clisp.org>
49914
49915         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
49916         Needed on HP-UX 11.
49917
49918 2007-04-16  Eric Blake  <ebb9@byu.net>
49919
49920         Make fflush rely on fpurge.
49921         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
49922         open coding all variants.
49923         * modules/fflush (Depends-on): Add fpurge and unistd.
49924         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
49925         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
49926
49927         Fix --with-tests compilation on cygwin.
49928         * modules/argmatch-tests (Makefile.am): List gnulib library first
49929         in LDADD.
49930         * modules/argp-tests (Makefile.am): Likewise.
49931         * modules/array-list-tests (Makefile.am): Likewise.
49932         * modules/array-oset-tests (Makefile.am): Likewise.
49933         * modules/avltree-list-tests (Makefile.am): Likewise.
49934         * modules/avltree-oset-tests (Makefile.am): Likewise.
49935         * modules/avltreehash-list-tests (Makefile.am): Likewise.
49936         * modules/carray-list-tests (Makefile.am): Likewise.
49937         * modules/dirname-tests (Makefile.am): Likewise.
49938         * modules/frexp-tests (Makefile.am): Likewise.
49939         * modules/isnanl-tests (Makefile.am): Likewise.
49940         * modules/linked-list-tests (Makefile.am): Likewise.
49941         * modules/linkedhash-list-tests (Makefile.am): Likewise.
49942         * modules/lock-tests (Makefile.am): Likewise.
49943         * modules/rbtree-list-tests (Makefile.am): Likewise.
49944         * modules/rbtree-oset-tests (Makefile.am): Likewise.
49945         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
49946         * modules/tls-tests (Makefile.am): Likewise.
49947         * modules/tsearch-tests (Makefile.am): Likewise.
49948         * modules/xvasprintf-tests (Makefile.am): Likewise.
49949
49950         Fix fpurge for cygwin.
49951         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
49952         value.
49953         * modules/fpurge-tests (Depends-on): Clean up trash.
49954
49955 2007-04-16  Simon Josefsson  <simon@josefsson.org>
49956
49957         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
49958
49959         * m4/autobuild.m4: Re-indent.
49960
49961 2007-04-13  Bruno Haible  <bruno@clisp.org>
49962
49963         * modules/fpurge-tests: New file.
49964         * tests/test-fpurge.c: New file.
49965
49966         * modules/fpurge: New file.
49967         * lib/fpurge.h: New file.
49968         * lib/fpurge.c: New file.
49969         * m4/fpurge.m4: New file.
49970
49971 2007-04-13  Bruno Haible  <bruno@clisp.org>
49972
49973         * modules/fbufmode-tests: New file.
49974         * tests/test-fbufmode.c: New file.
49975
49976         * modules/fbufmode: New file.
49977         * lib/fbufmode.h: New file.
49978         * lib/fbufmode.c: New file.
49979         * m4/fbufmode.m4: New file.
49980
49981 2007-04-13  Bruno Haible  <bruno@clisp.org>
49982
49983         * modules/fwritable-tests: New file.
49984         * tests/test-fwritable.c: New file.
49985
49986         * modules/fwritable: New file.
49987         * lib/fwritable.h: New file.
49988         * lib/fwritable.c: New file.
49989         * m4/fwritable.m4: New file.
49990
49991 2007-04-13  Bruno Haible  <bruno@clisp.org>
49992
49993         * modules/freadable-tests: New file.
49994         * tests/test-freadable.c: New file.
49995
49996         * modules/freadable: New file.
49997         * lib/freadable.h: New file.
49998         * lib/freadable.c: New file.
49999         * m4/freadable.m4: New file.
50000
50001 2007-04-13  Bruno Haible  <bruno@clisp.org>
50002
50003         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
50004         MOSTLYCLEANFILES.
50005
50006 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
50007
50008         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
50009         gzip bootstrap.conf to avoid dragging in i18n machinery.
50010         (gnulib_tool_option): Use it.
50011
50012 2007-04-13  Bruno Haible  <bruno@clisp.org>
50013
50014         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
50015         %F directives.
50016         * tests/test-vasprintf-posix.c (test_function): Likewise.
50017         * tests/test-snprintf-posix.h (test_function): Likewise.
50018         * tests/test-sprintf-posix.h (test_function): Likewise.
50019         * tests/test-fprintf-posix.h (test_function): Likewise.
50020         * tests/test-printf-posix.h (test_function): Likewise.
50021         * tests/test-fprintf-posix.out: Likewise.
50022
50023 2007-04-13  Bruno Haible  <bruno@clisp.org>
50024
50025         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
50026         * modules/tls-tests (configure.ac): Likewise.
50027         Reported by Arto C. Nirkko <anirkko@insel.ch>.
50028
50029 2007-04-13  Bruno Haible  <bruno@clisp.org>
50030
50031         * lib/tls.c (glthread_tls_get): Fix return type.
50032         Patch by Arto C. Nirkko <anirkko@insel.ch>.
50033
50034 2007-04-12  Eric Blake  <ebb9@byu.net>
50035
50036         * modules/gettime (Depends-on): Remove gettime.
50037         Reported by Dmitry V. Levin.
50038
50039 2007-04-12  Bruno Haible  <bruno@clisp.org>
50040
50041         * modules/fflush (Include): Mention <stdio.h>.
50042         * modules/strtoimax (Include): Mention <inttypes.h>.
50043         * modules/strtoumax (Include): Likewise.
50044
50045 2007-04-12  Eric Blake  <ebb9@byu.net>
50046
50047         * .cvsignore: New file.
50048         * .gitignore: Likewise.
50049
50050 2007-04-12  Bruno Haible  <bruno@clisp.org>
50051
50052         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
50053         not before, since $(LDADD) often contains libgnu.a.
50054         * modules/striconv-tests (test_striconv_LDADD): Likewise.
50055         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
50056         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
50057         Needed on Cygwin.
50058
50059 2007-04-12  Eric Blake  <ebb9@byu.net>
50060
50061         Work around glibc's failure to flush stdin on fclose.
50062         * lib/closein.c (close_stdin): Flush stdin before closing.
50063
50064         Work around glibc's failure to reset seekable stdin on exit.
50065         * modules/closein: New module.
50066         * lib/closein.c: New file.
50067         * lib/closein.h: Likewise.
50068         * m4/closein.m4: Likewise.
50069         * MODULES.html.sh (File stream based Input/Output): Document it.
50070
50071 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50072
50073         * gnulib-tool: Rename generated 'autobuild' script to
50074         'do-autobuild' in --create-megatestdir output.
50075
50076         * doc/gnulib.texi (Build robot for gnulib): Fix.
50077
50078 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50079
50080         * modules/sysexits (Depends-on): Add absolute-header.
50081
50082 2007-04-12  Eric Blake  <ebb9@byu.net>
50083
50084         No need to preserve errno on success.
50085         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
50086         Reported by Bruno Haible.
50087
50088 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50089
50090         * MODULES.html.sh (Support for maintaining and releasing
50091         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
50092
50093 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50094
50095         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
50096
50097 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50098
50099         * modules/autobuild: New module.
50100
50101         * m4/autobuild.m4: New file.
50102
50103 2007-04-11  Bruno Haible  <bruno@clisp.org>
50104
50105         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
50106         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
50107         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
50108         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
50109         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50110         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50111         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50112         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50113         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50114         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50115         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
50116         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50117         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50118         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
50119         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50120         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50121         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
50122         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50123         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50124         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
50125         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50126         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50127         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
50128         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50129         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50130         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
50131         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50132         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50133         Reported by Eric Blake.
50134
50135 2007-04-11  Bruno Haible  <bruno@clisp.org>
50136
50137         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
50138
50139 2007-04-10  Bruno Haible  <bruno@clisp.org>
50140
50141         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
50142         for NaN and Infinity. Needed on FreeBSD 6.1.
50143         * tests/test-vasnprintf-posix.c (test_function): Undo last change
50144         regarding results for "%010a" of Infinity and NaN.
50145         * tests/test-vasprintf-posix.c (test_function): Likewise.
50146         * tests/test-snprintf-posix.h (test_function): Likewise.
50147         * tests/test-sprintf-posix.h (test_function): Likewise.
50148         * tests/test-fprintf-posix.h (test_function): Likewise.
50149         * tests/test-printf-posix.h (test_function): Likewise.
50150         * tests/test-fprintf-posix.out: Likewise.
50151
50152 2007-04-10  Bruno Haible  <bruno@clisp.org>
50153
50154         * modules/locale-tests: New file.
50155         * tests/test-locale.c: New file.
50156
50157         * modules/locale: New file.
50158         * lib/locale_.h: New file.
50159         * m4/locale_h.m4: New file.
50160
50161 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
50162             Bruno Haible  <bruno@clisp.org>
50163
50164         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
50165         be determined, test for availability of the copysignf, copysign,
50166         copysignl functions.
50167         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
50168         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
50169         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
50170
50171 2007-04-09  Eric Blake  <ebb9@byu.net>
50172
50173         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
50174         * modules/stdio (Makefile.am): Support fflush.
50175         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
50176         * modules/fflush: New file.
50177         * lib/fflush.c: Likewise.
50178         * m4/fflush.m4: Likewise.
50179         * modules/fflush-tests: New test.
50180         * tests/test-fflush.c: Likewise.
50181         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
50182
50183 2007-04-06  Bruno Haible  <bruno@clisp.org>
50184
50185         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
50186         (VASNPRINTF): Use signbit for faster determination whether to print a
50187         minus sign.
50188         * modules/vasnprintf (Files): Remove lib/float+.h.
50189         * modules/fprintf-posix (Depends-on): Add signbit.
50190         * modules/snprintf-posix (Depends-on): Likewise.
50191         * modules/sprintf-posix (Depends-on): Likewise.
50192         * modules/vasnprintf-posix (Depends-on): Likewise.
50193         * modules/vasprintf-posix (Depends-on): Likewise.
50194         * modules/vfprintf-posix (Depends-on): Likewise.
50195         * modules/vsnprintf-posix (Depends-on): Likewise.
50196         * modules/vsprintf-posix (Depends-on): Likewise.
50197
50198 2007-04-06  Bruno Haible  <bruno@clisp.org>
50199
50200         * tests/test-frexp.c (main): Test also the sign bit of zero results.
50201         * tests/test-frexpl.c (main): Likewise.
50202         * tests/test-ldexpl.c (main): Likewise.
50203         * modules/frexp-tests (Depends-on): Add signbit.
50204         * modules/frexpl-tests (Depdends-on): Likewise.
50205         * modules/ldexpl-tests (Depdends-on): Likewise.
50206
50207 2007-04-06  Bruno Haible  <bruno@clisp.org>
50208
50209         * modules/signbit-tests: New file.
50210         * tests/test-signbit.c: New file.
50211
50212         * modules/signbit: New file.
50213         * lib/signbitf.c: New file.
50214         * lib/signbitd.c: New file.
50215         * lib/signbitl.c: New file.
50216         * m4/signbit.m4: New file.
50217         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
50218         (signbit): New macro.
50219         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
50220         REPLACE_SIGNBIT.
50221         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
50222         REPLACE_FREXPL into math.h.
50223
50224 2007-04-06  Bruno Haible  <bruno@clisp.org>
50225
50226         * modules/isnanf-nolibm-tests: New file.
50227         * tests/test-isnanf.c: New file.
50228
50229         * modules/isnanf-nolibm: New file.
50230         * lib/isnanf.h: New file.
50231         * lib/isnanf.c: New file.
50232         * lib/isnan.c: Consider the USE_FLOAT macro.
50233         * m4/isnanf.m4: New file.
50234
50235 2007-04-06  Bruno Haible  <bruno@clisp.org>
50236
50237         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
50238         (Link): New section.
50239
50240         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
50241
50242 2007-04-06  Bruno Haible  <bruno@clisp.org>
50243
50244         Assume the 'long double' type.
50245         * m4/longdouble.m4: Remove file.
50246         * config/srclist.txt: Don't mention longdouble.m4.
50247         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
50248         * lib/float+.h: Likewise.
50249         * lib/frexp.c: Likewise.
50250         * lib/printf-args.h: Likewise.
50251         * lib/printf-args.c: Likewise.
50252         * lib/printf-frexp.c: Likewise.
50253         * lib/printf-parse.c: Likewise.
50254         * lib/vasnprintf.c: Likewise.
50255         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
50256         * m4/intl.m4: Likewise.
50257         * m4/isnanl.m4: Likewise.
50258         * m4/printf.m4: Likewise.
50259         * m4/printf-frexpl.m4: Likewise.
50260         * m4/vasnprintf.m4: Likewise.
50261         * modules/allocsa (Files): Remove m4/longdouble.m4.
50262         * modules/gettext (Files): Likewise.
50263         * modules/relocatable-prog-wrapper (Files): Likewise.
50264         * modules/vasnprintf (Files): Likewise.
50265         * modules/isnanl (Files): Likewise.
50266         (Include): Simplify.
50267         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
50268         (Include): Simplify.
50269         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
50270         (Include): Simplify.
50271         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
50272         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50273         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
50274         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50275         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
50276         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50277         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
50278         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50279         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
50280         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50281         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
50282         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50283         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
50284         * tests/test-isnanl.c: Likewise.
50285         * tests/test-snprintf-posix.h: Likewise.
50286         * tests/test-sprintf-posix.h: Likewise.
50287         * tests/test-vasnprintf-posix.c: Likewise.
50288         * tests/test-vasnprintf-posix2.c: Likewise.
50289         * tests/test-vasprintf-posix.c: Likewise.
50290
50291 2007-04-06  Bruno Haible  <bruno@clisp.org>
50292
50293         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
50294         * lib/math_.h [__DECC]: Include the overridden include file through
50295         #include_next, outside the double-inclusion guard.
50296         * lib/stdio_.h [__DECC]: Likewise.
50297         * lib/stdlib_.h [__DECC]: Likewise.
50298         * lib/string_.h [__DECC]: Likewise.
50299         * lib/time_.h [__DECC]: Likewise.
50300         * lib/wchar_.h [__DECC]: Likewise.
50301         * lib/wctype_.h [__DECC]: Likewise.
50302         * lib/inttypes_.h [__DECC]: Likewise.
50303         Reported by Albert Chin <china@thewrittenword.com> in
50304         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
50305
50306 2007-04-04  Eric Blake  <ebb9@byu.net>
50307
50308         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
50309         1.5.x.
50310
50311 2007-04-04  Bruno Haible  <bruno@clisp.org>
50312
50313         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
50314         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
50315
50316 2007-04-04  Bruno Haible  <bruno@clisp.org>
50317
50318         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
50319         results for "%010a" of Infinity and NaN.
50320         * tests/test-vasprintf-posix.c (test_function): Likewise.
50321         * tests/test-snprintf-posix.h (test_function): Likewise.
50322         * tests/test-sprintf-posix.h (test_function): Likewise.
50323         * tests/test-fprintf-posix.h (test_function): Remove these tests.
50324         * tests/test-printf-posix.h (test_function): Likewise.
50325         * tests/test-fprintf-posix.out: Update.
50326         Needed for FreeBSD 6.1.
50327
50328 2007-04-04  Bruno Haible  <bruno@clisp.org>
50329
50330         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
50331         directly used by the gnulib modules nor by gnulib-tool.
50332
50333 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
50334
50335         * DEPENDENCIES: Give overall description of version dependency
50336         desirability.  Use more-typical names for apps.
50337         Add shell, coreutils, diffutils, grep, tar, gzip.
50338
50339 2007-04-04  Simon Josefsson  <simon@josefsson.org>
50340
50341         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
50342
50343 2007-04-04  Karl Berry  <karl@gnu.org>
50344
50345         * MODULES.html.sh (func_module): missing '.
50346
50347 2007-04-03  Bruno Haible  <bruno@clisp.org>
50348
50349         * modules/argmatch-tests (Makefile.am): New variable
50350         test_argmatch_LDADD.
50351         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
50352         * modules/array-list-tests (Makefile.am): New variable
50353         test_array_list_LDADD.
50354         * modules/array-oset-tests (Makefile.am): New variable
50355         test_array_oset_LDADD.
50356         * modules/avltree-list-tests (Makefile.am): New variable
50357         test_avltree_list_LDADD.
50358         * modules/avltree-oset-tests (Makefile.am): New variable
50359         test_avltree_oset_LDADD.
50360         * modules/avltreehash-list-tests (Makefile.am): New variable
50361         test_avltreehash_list_LDADD.
50362         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
50363         test_canonicalize_lgpl_LDADD.
50364         * modules/carray-list-tests (Makefile.am): New variable
50365         test_carray_list_LDADD.
50366         * modules/dirname-tests (Makefile.am): New variable
50367         test_dirname_LDADD.
50368         * modules/linked-list-tests (Makefile.am): New variable
50369         test_linked_list_LDADD.
50370         * modules/linkedhash-list-tests (Makefile.am): New variable
50371         test_linkedhash_list_LDADD.
50372         * modules/rbtree-list-tests (Makefile.am): New variable
50373         test_rbtree_list_LDADD.
50374         * modules/rbtree-oset-tests (Makefile.am): New variable
50375         test_rbtree_oset_LDADD.
50376         * modules/rbtreehash-list-tests (Makefile.am): New variable
50377         test_rbtreehash_list_LDADD.
50378         * modules/xvasprintf-tests (Makefile.am): New variable
50379         test_xvasprintf_LDADD.
50380         Reported by Eric Blake.
50381
50382 2007-04-03  Eric Blake  <ebb9@byu.net>
50383
50384         * DEPENDENCIES: Weaken m4 requirements.
50385
50386 2007-04-03  Bruno Haible  <bruno@clisp.org>
50387
50388         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
50389         * modules/isnanl-tests (configure.ac): Likewise.
50390
50391 2007-04-03  Ben Pfaff  <blp@gnu.org>
50392
50393         * modules/iconv_open: Add $(srcdir)/ to source directory
50394         references in Makefile fragments that call gperf, to fix VPATH
50395         builds.
50396
50397 2007-04-03  Bruno Haible  <bruno@clisp.org>
50398
50399         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
50400         * lib/ldexpl.c: Undo last change.
50401
50402 2007-04-03  Bruno Haible  <bruno@clisp.org>
50403
50404         * modules/printf-frexpl (Depends-on): Undo last change.
50405         (Files): Add m4/ldexpl.m4.
50406
50407 2007-04-03  Bruno Haible  <bruno@clisp.org>
50408
50409         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
50410         * modules/isnanl (Link): New section.
50411
50412         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
50413         * modules/frexp (Link): New section.
50414
50415         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
50416         * modules/frexpl (Link): New section.
50417
50418         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
50419         * modules/ldexpl (Link): New section.
50420
50421 2007-04-03  Bruno Haible  <bruno@clisp.org>
50422
50423         * modules/TEMPLATE-EXTENDED: New file.
50424         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
50425
50426 2007-04-03  Bruno Haible  <bruno@clisp.org>
50427
50428         * DEPENDENCIES: New file.
50429         Suggested by Simon Josefsson.
50430
50431 2007-04-03  Bruno Haible  <bruno@clisp.org>
50432
50433         * doc/gnulib.texi: Escape @.
50434
50435 2007-04-03  James Youngman  <jay@gnu.org>
50436         and Paul Eggert  <eggert@cs.ucla.edu>
50437
50438         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
50439         birthtime on all systems that have birthtime, not just those which
50440         use st_birthtimensec rather than st_birthtim.  Putting zero in
50441         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
50442         that the birth time is not available for files on an NFS mount.
50443
50444 2007-04-03  Simon Josefsson  <simon@josefsson.org>
50445
50446         * modules/memxor: Move back from crypto/, suggested by Bruno.
50447         * modules/crypto/hmac-sha1: Fix memxor dependency.
50448
50449         * modules/crypto/gc: Moved from ../.
50450
50451 2007-04-02  Eric Blake  <ebb9@byu.net>
50452
50453         * lib/ldexpl.c (includes): Avoid libm.
50454
50455         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
50456
50457 2007-04-02  Bruno Haible  <bruno@clisp.org>
50458
50459         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
50460         on IRIX.
50461
50462 2007-04-02  Bruno Haible  <bruno@clisp.org>
50463
50464         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
50465         x86 or x86_64 platforms running MacOS X.
50466         Reported by Ryan Schmidt <@ryandesign.com>.
50467
50468 2007-04-02  Bruno Haible  <bruno@clisp.org>
50469
50470         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
50471         i386.
50472
50473 2007-04-01  Simon Josefsson  <simon@josefsson.org>
50474
50475         * modules/crypto/arcfour: Moved from ../.
50476         * modules/crypto/arcfour-tests: Moved from ../.
50477         * modules/crypto/arctwo: Moved from ../.
50478         * modules/crypto/arctwo-tests: Moved from ../.
50479         * modules/crypto/des: Moved from ../.
50480         * modules/crypto/des-tests: Moved from ../.
50481         * modules/crypto/gc-arcfour: Moved from ../.
50482         * modules/crypto/gc-arcfour-tests: Moved from ../.
50483         * modules/crypto/gc-arctwo: Moved from ../.
50484         * modules/crypto/gc-arctwo-tests: Moved from ../.
50485         * modules/crypto/gc-des: Moved from ../.
50486         * modules/crypto/gc-des-tests: Moved from ../.
50487         * modules/crypto/gc-hmac-md5: Moved from ../.
50488         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
50489         * modules/crypto/gc-hmac-sha1: Moved from ../.
50490         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
50491         * modules/crypto/gc-md2: Moved from ../.
50492         * modules/crypto/gc-md2-tests: Moved from ../.
50493         * modules/crypto/gc-md4: Moved from ../.
50494         * modules/crypto/gc-md4-tests: Moved from ../.
50495         * modules/crypto/gc-md5: Moved from ../.
50496         * modules/crypto/gc-md5-tests: Moved from ../.
50497         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
50498         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
50499         * modules/crypto/gc-random: Moved from ../.
50500         * modules/crypto/gc-rijndael: Moved from ../.
50501         * modules/crypto/gc-rijndael-tests: Moved from ../.
50502         * modules/crypto/gc-sha1: Moved from ../.
50503         * modules/crypto/gc-sha1-tests: Moved from ../.
50504         * modules/crypto/gc-tests: Moved from ../.
50505         * modules/crypto/hmac-md5: Moved from ../.
50506         * modules/crypto/hmac-md5-tests: Moved from ../.
50507         * modules/crypto/hmac-sha1: Moved from ../.
50508         * modules/crypto/hmac-sha1-tests: Moved from ../.
50509         * modules/crypto/md2: Moved from ../.
50510         * modules/crypto/md2-tests: Moved from ../.
50511         * modules/crypto/md4: Moved from ../.
50512         * modules/crypto/md4-tests: Moved from ../.
50513         * modules/crypto/md5: Moved from ../.
50514         * modules/crypto/md5-tests: Moved from ../.
50515         * modules/crypto/memxor: Moved from ../.
50516         * modules/crypto/rijndael: Moved from ../.
50517         * modules/crypto/rijndael-tests: Moved from ../.
50518         * modules/crypto/sha1: Moved from ../.
50519
50520 2007-03-30  James Youngman  <jay@gnu.org>
50521
50522         * tests/test-stat-time.c (prepare_test): use chmod() rather than
50523         rename() to change the ctime of a file (because ctime is unaffected
50524         by rename on jfs2 on AIX 5.1).
50525         (main): Start by doing cleanup, in case a previous run failed leaving
50526         test files behind.
50527
50528 2007-03-31  Bruno Haible  <bruno@clisp.org>
50529
50530         Support old proprietary implementations of iconv.
50531         * modules/iconv_open: New file.
50532         * lib/iconv_.h: New file.
50533         * m4/iconv_h.m4: New file.
50534         * lib/iconv_open.c: New file.
50535         * lib/iconv_open-aix.gperf: New file.
50536         * lib/iconv_open-hpux.gperf: New file.
50537         * lib/iconv_open-irix.gperf: New file.
50538         * lib/iconv_open-osf.gperf: New file.
50539         * m4/iconv_open.m4: New file.
50540         * modules/linebreak (Depends-on): Add iconv_open.
50541         * modules/striconv (Depends-on): Likewise.
50542         * modules/striconveh (Depends-on): Likewise.
50543         * modules/unicodeio (Depends-on): Likewise.
50544         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
50545         (iconv_t)(-1).
50546         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
50547         conversion if cd is (iconv_t)(-1).
50548         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
50549         is not possible.
50550
50551 2007-03-31  Bruno Haible  <bruno@clisp.org>
50552
50553         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
50554         work on Solaris either. Protect also second use of "autodetect_jp".
50555
50556 2007-03-31  Bruno Haible  <bruno@clisp.org>
50557
50558         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
50559         the function is not present.
50560
50561 2007-03-31  Bruno Haible  <bruno@clisp.org>
50562
50563         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
50564         the function is not present.
50565
50566 2007-03-31  Bruno Haible  <bruno@clisp.org>
50567
50568         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
50569         a bug in HP-UX iconv_open().
50570
50571 2007-03-31  Bruno Haible  <bruno@clisp.org>
50572
50573         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
50574         (Mathematics <math.h>): New section, add fpieee.
50575         (Input/output <stdio.h>): Add fseterr.
50576         (Mathematics <math.h>): New section, add printf-frexp.
50577         (Container data structures): Add sublist.
50578         (Core language properties): Add fpucw, inline.
50579         (Functions for greatest-width integer types <inttypes.h>): Add
50580         imaxabs, imaxdiv, inttypes.
50581         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
50582         isnanl-nolibm, ldexp.
50583         (Mathematics <math.h>): New section, add printf-frexpl.
50584         (Support for systems lacking POSIX:2001): Add fprintf-posix,
50585         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
50586         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
50587         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
50588         (Unicode string functions): Add unistr/u*-mbtoucr.
50589         (Java): Add javacomp-script, javaexec-script.
50590         (C#): Add csharpcomp-script, csharpexec-script.
50591         (Support for building libraries and executables): Add havelib,
50592         relocatable-*.
50593         (Support for maintaining and releasing projects): Renamed from
50594         'Support for maintaining and release projects'. Add announce-gen.
50595
50596 2007-03-31  Bruno Haible  <bruno@clisp.org>
50597
50598         * README: Talk primarily about git.
50599         (git and CVS): Renamed from CVS.
50600         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
50601         gnulib is available through git.
50602         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
50603
50604 2007-03-30  Bruno Haible  <bruno@clisp.org>
50605
50606         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
50607         * lib/poll_.h: Likewise.
50608         * lib/stat_.h: Likewise.
50609         * lib/sys_time_.h: Likewise.
50610         * lib/sysexit_.h: Likewise.
50611         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
50612         * lib/stdbool_.h: Likewise.
50613         * lib/byteswap_.h: Add double-inclusion guard.
50614
50615 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
50616
50617         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
50618
50619 2007-03-30  Karl Berry  <karl@gnu.org>
50620
50621         * config/srclist-update: double space after USA in the license
50622         substitution, since that's how it's usually (?) written.
50623
50624 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
50625
50626         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
50627         reported by Bruno Haible.
50628
50629 2007-03-29  Bruno Haible  <bruno@clisp.org>
50630
50631         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
50632         a bug in AIX iconv().
50633
50634 2007-03-29  Bruno Haible  <bruno@clisp.org>
50635
50636         * modules/ldexpl-tests: New file.
50637         * tests/test-ldexpl.c: New file.
50638
50639 2007-03-29  Bruno Haible  <bruno@clisp.org>
50640
50641         * lib/ldexpl.c: Include fpucw.h.
50642         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
50643         multiplication.
50644         * modules/ldexpl (Depends-on): Add fpucw.
50645
50646 2007-03-29  Bruno Haible  <bruno@clisp.org>
50647
50648         * modules/ldexpl: New file.
50649         * m4/ldexpl.m4: New file.
50650         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
50651         set.
50652         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
50653         REPLACE_LDEXPL.
50654         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
50655         REPLACE_LDEXPL.
50656         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
50657         gl_FUNC_LDEXPL_WORKS.
50658         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
50659         * modules/mathl (Files): Remove lib/ldexpl.c.
50660         (Depends-on): Add ldexpl.
50661
50662 2007-03-29  Bruno Haible  <bruno@clisp.org>
50663
50664         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
50665
50666 2007-03-29  Bruno Haible  <bruno@clisp.org>
50667
50668         * tests/test-striconveh.c (main): Don't assume that a direct conversion
50669         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
50670         and possibly also HP-UX.
50671         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
50672         work on AIX, IRIX, HP-UX, OSF/1.
50673         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
50674         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
50675         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
50676         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
50677         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
50678         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
50679
50680 2007-03-29  Bruno Haible  <bruno@clisp.org>
50681
50682         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
50683
50684 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
50685
50686         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
50687         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
50688
50689 2007-03-29  Eric Blake  <ebb9@byu.net>
50690
50691         * lib/acl-internal.h: Remove redundant include.
50692         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
50693         Cygwin when a file is locked.
50694
50695 2007-03-29  Bruno Haible  <bruno@clisp.org>
50696
50697         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
50698         file.
50699         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
50700
50701 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
50702
50703         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
50704         try to remove a parent directory if the child couldn't be removed
50705         (except for the first rmdir, which could fail because the child
50706         doesn't exist).  Problem reported by Jeff Blaine in
50707         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
50708
50709 2007-03-28  Bruno Haible  <bruno@clisp.org>
50710
50711         * lib/striconveh.c (utf8conv_carefully): New function.
50712         (mem_cd_iconveh_internal): Invoke it.
50713
50714 2007-03-28  Bruno Haible  <bruno@clisp.org>
50715
50716         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
50717         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
50718         input.
50719         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
50720         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
50721         unistr/u8-uctomb.
50722
50723 2007-03-28  Bruno Haible  <bruno@clisp.org>
50724
50725         * modules/unistr/u8-mbtoucr: New file.
50726         * lib/unistr/u8-mbtoucr.c: New file.
50727         * modules/unistr/u16-mbtoucr: New file.
50728         * lib/unistr/u16-mbtoucr.c: New file.
50729         * modules/unistr/u16-mbtoucr: New file.
50730         * lib/unistr/u16-mbtoucr.c: New file.
50731         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
50732
50733 2007-03-27  Simon Josefsson  <simon@josefsson.org>
50734             Bruno Haible  <bruno@clisp.org>
50735
50736         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
50737         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
50738         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
50739
50740         * m4/stdio_h.m4: Add stubs for vasprintf too.
50741
50742         * modules/stdio: Support vasprintf in sed command.
50743
50744         * modules/vasprintf: Depend on stdio for prototypes.  Remove
50745         vasprintf.h.  Add stdio module indicator.
50746
50747         * lib/stdio_.h: Declare asprintf and vasprintf, based on
50748         vasprintf.h.
50749
50750         * lib/vasprintf.h: File removed.
50751
50752         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
50753         * lib/vasprintf.c: Ditto.
50754         * lib/xvasprintf.c: Ditto.
50755         * tests/test-vasprintf-posix.c: Ditto.
50756         * tests/test-vasprintf.c: Ditto.
50757
50758 2007-03-27  Bruno Haible  <bruno@clisp.org>
50759
50760         Make vasnprintf multithread-safe.
50761         * lib/vasnprintf.c (decimal_point_char): New function.
50762         (VASNPRINTF): Use it.
50763         Suggested by Simon Josefsson.
50764
50765 2007-03-27  Eric Blake  <ebb9@byu.net>
50766
50767         Support sub-second birthtime on cygwin.
50768         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
50769         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
50770         (get_stat_birthtime): Also work with st_birthtim.
50771
50772 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
50773
50774         * lib/stat-time.h (USE_BIRTHTIME): Remove.
50775         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
50776         (get_stat_birthtime_ns): Do not try to use "spare" fields.
50777         (get_stat_birthtime_ns): Simplify compile-time tests.
50778         (get_stat_birthtime): Change the API to look like
50779         get_stat_mtime etc., except return a negative tv_nsec on error.
50780         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
50781         Don't check for "spare" fields.
50782         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
50783         or for struct stat.st_birthtime, as these tests aren't used.
50784         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
50785
50786 2007-03-27  Bruno Haible  <bruno@clisp.org>
50787
50788         * lib/stat-time.h: Include <sys/stat.h>.
50789
50790 2007-03-27  James Youngman  <jay@gnu.org>
50791
50792         * lib/stat-time.h (get_stat_birthtime): New function for
50793           retrieving st_birthtime as provided by UFS2 (hence *BSD).
50794         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
50795           and its variants.
50796         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
50797         * modules/stat-time-test: New file.
50798         * tests/test-stat-time.c: New test, devised by Bruno Haible.
50799
50800 2007-03-26  Bruno Haible  <bruno@clisp.org>
50801
50802         Better support of signalling NaNs.
50803         * lib/atanl.c: Include isnanl.h.
50804         (atanl): Perform test for NaN at the beginning of the function and
50805         through a call to isnanl.
50806         * lib/cosl.c: Include isnanl.h.
50807         (cosl): Perform test for NaN at the beginning of the function and
50808         through a call to isnanl.
50809         * lib/ldexpl.c: Include isnanl.h.
50810         (ldexpl): Perform test for NaN through a call to isnanl.
50811         * lib/logl.c: Include isnanl.h.
50812         (logl): Perform test for NaN at the beginning of the function and
50813         through a call to isnanl.
50814         * lib/sinl.c: Include isnanl.h.
50815         (sinl): Perform test for NaN at the beginning of the function and
50816         through a call to isnanl.
50817         * lib/sqrtl.c: Include isnanl.h.
50818         (sqrtl): Perform test for NaN at the beginning of the function and
50819         through a call to isnanl.
50820         * lib/tanl.c: Include isnanl.h.
50821         (tanl): Perform test for NaN at the beginning of the function and
50822         through a call to isnanl.
50823         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
50824         * modules/mathl (Depends-on): Add isnanl.
50825
50826 2007-03-26  Eric Blake  <ebb9@byu.net>
50827
50828         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
50829         regression in logic sense of previous patch.
50830
50831 2007-03-26  Bruno Haible  <bruno@clisp.org>
50832
50833         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
50834         unportable shell command "if ! ...".
50835         Reported by Ralf Wildenhues.
50836
50837 2007-03-25  Bruno Haible  <bruno@clisp.org>
50838
50839         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
50840         <sysexits.h> file, and only add EX_CONFIG.
50841         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
50842         absolute file name and whether it is sufficient. Substitute also
50843         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
50844         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
50845         ABSOLUTE_SYSEXITS_H into sysexits.h.
50846
50847 2007-03-25  Bruno Haible  <bruno@clisp.org>
50848
50849         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
50850         hints is NULL.
50851
50852 2007-03-25  Bruno Haible  <bruno@clisp.org>
50853
50854         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
50855         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
50856
50857 2007-03-25  Bruno Haible  <bruno@clisp.org>
50858
50859         * lib/vasnprintf.c: Include langinfo.h.
50860         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
50861         multithread-safe.
50862         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
50863         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
50864         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50865         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50866         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50867         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50868         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50869         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
50870         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50871         Reported by Simon Josefsson.
50872
50873 2007-03-25  Bruno Haible  <bruno@clisp.org>
50874
50875         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
50876         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
50877         * modules/vasnprintf (Depends-on): Add stdint.
50878
50879 2007-03-25  Bruno Haible  <bruno@clisp.org>
50880
50881         * modules/fpieee: New file.
50882         * m4/fpieee.m4: New file.
50883         * modules/isnan-nolibm (Depends-on): Add fpieee.
50884         * modules/isnanl-nolibm (Depends-on): Add fpieee.
50885         * modules/isnanl (Depends-on): Add fpieee.
50886
50887 2007-03-25  Bruno Haible  <bruno@clisp.org>
50888
50889         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
50890
50891 2007-03-25  Bruno Haible  <bruno@clisp.org>
50892
50893         Avoid test failures on IRIX 6.5.
50894         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
50895         (main): Use it.
50896         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
50897         macros.
50898         (main): Use them.
50899
50900 2007-03-25  Bruno Haible  <bruno@clisp.org>
50901
50902         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
50903         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
50904         exists but doesn't work.
50905         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
50906         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
50907         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
50908         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
50909
50910 2007-03-25  Bruno Haible  <bruno@clisp.org>
50911
50912         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
50913         returns inf. Needed on IRIX 6.5.
50914
50915 2007-03-25  Bruno Haible  <bruno@clisp.org>
50916
50917         * tests/test-frexpl.c: Include isnanl-nolibm.h.
50918         (main): Use isnanl instead of x != x idiom.
50919         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
50920
50921         * tests/test-frexp.c: Include isnan.h.
50922         (main): Use isnan instead of x != x idiom.
50923         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
50924
50925 2007-03-25  Bruno Haible  <bruno@clisp.org>
50926
50927         * tests/test-frexp.c (NaN): New function/macro.
50928         (main): Use it instead of 0.0 / 0.0.
50929         * tests/test-isnan.c (NaN): New function/macro.
50930         (main): Use it instead of 0.0 / 0.0.
50931         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
50932         (test_function): Use it instead of 0.0 / 0.0.
50933         * tests/test-vasprintf-posix.c (NaN): New function/macro.
50934         (test_function): Use it instead of 0.0 / 0.0.
50935         * tests/test-snprintf-posix.h (NaN): New function/macro.
50936         (test_function): Use it instead of 0.0 / 0.0.
50937         * tests/test-sprintf-posix.h (NaN): New function/macro.
50938         (test_function): Use it instead of 0.0 / 0.0.
50939         * tests/test-fprintf-posix.h (NaN): New function/macro.
50940         (test_function): Use it instead of 0.0 / 0.0.
50941         * tests/test-printf-posix.h (NaN): New function/macro.
50942         (test_function): Use it instead of 0.0 / 0.0.
50943
50944         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
50945
50946 2007-03-25  Bruno Haible  <bruno@clisp.org>
50947
50948         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
50949
50950 2007-03-25  Bruno Haible  <bruno@clisp.org>
50951
50952         * lib/regexec.c (merge_state_with_log): Make static.
50953
50954 2007-03-25  Bruno Haible  <bruno@clisp.org>
50955
50956         * lib/trigl.c (kernel_rem_pio2): Make static.
50957
50958 2007-03-25  Bruno Haible  <bruno@clisp.org>
50959
50960         * lib/sincosl.c (sincosl_table): Make static.
50961
50962 2007-03-25  Bruno Haible  <bruno@clisp.org>
50963
50964         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
50965         if the compiler does not support C99.
50966
50967 2007-03-25  Bruno Haible  <bruno@clisp.org>
50968
50969         * modules/time (Makefile.am): Ensure all rule action lines start with a
50970         tab.
50971
50972 2007-03-24  Bruno Haible  <bruno@clisp.org>
50973
50974         * modules/tsearch-tests: New file.
50975         * tests/test-tsearch.sh: New file.
50976         * tests/test-tsearch.c: New file, mostly copied from glibc.
50977
50978         * modules/search-tests: New file.
50979         * tests/test-search.c: New file.
50980
50981         * modules/search: New file.
50982         * lib/search_.h: New file, incorporating lib/tsearch.h.
50983         * m4/search_h.m4: New file.
50984         * lib/tsearch.h: Remove file.
50985         * lib/tsearch.c: Include search.h instead of tsearch.h.
50986         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
50987         HAVE_TSEARCH.
50988         * modules/tsearch (Files): Remove lib/tsearch.h.
50989         (Depends-on): Add search.
50990         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
50991         (Include): Change tsearch.h into search.h.
50992
50993 2007-03-24  Bruno Haible  <bruno@clisp.org>
50994
50995         * modules/fpucw: New file.
50996         * lib/fpucw.h: New file.
50997         * lib/frexp.c: Include fpucw.h.
50998         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
50999         (FUNC): Use them.
51000         * lib/printf-frexp.c: Include fpucw.h.
51001         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
51002         (FUNC): Use them.
51003         * lib/vasnprintf.c: Include fpucw.h.
51004         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
51005         'long double' calculations.
51006         * tests/test-frexpl.c: Include fpucw.h.
51007         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
51008         * tests/test-printf-frexpl.c: Include fpucw.h.
51009         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
51010         * modules/frexpl (Depends-on): Add fpucw.
51011         * modules/printf-frexpl (Depends-on): Likewise.
51012         * modules/fprintf-posix (Depends-on): Likewise.
51013         * modules/snprintf-posix (Depends-on): Likewise.
51014         * modules/sprintf-posix (Depends-on): Likewise.
51015         * modules/vasnprintf-posix (Depends-on): Likewise.
51016         * modules/vasprintf-posix (Depends-on): Likewise.
51017         * modules/vfprintf-posix (Depends-on): Likewise.
51018         * modules/vsnprintf-posix (Depends-on): Likewise.
51019         * modules/vsprintf-posix (Depends-on): Likewise.
51020         * modules/frexpl-tests (Depends-on): Likewise.
51021         * modules/printf-frexpl-tests (Depends-on): Likewise.
51022
51023 2007-03-24  Bruno Haible  <bruno@clisp.org>
51024
51025         * lib/float+.h: New file.
51026         * lib/isnan.c: Include float+.h.
51027         (SIZE): New macro.
51028         (FUNC): Compare only SIZE bytes of the value.
51029         * lib/vasnprintf.c: Include float+.h.
51030         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
51031         SIZEOF_LDBL or SIZEOF_DBL bytes.
51032         * modules/isnan-nolibm (Files): Add lib/float+.h.
51033         * modules/isnanl-nolibm (Files): Add lib/float+.h.
51034         * modules/isnanl (Files): Add lib/float+.h.
51035         * modules/vasnprintf (Files): Add lib/float+.h.
51036
51037 2007-03-24  Bruno Haible  <bruno@clisp.org>
51038
51039         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
51040         include isnanl-nolibm.h.
51041
51042 2007-03-24  Bruno Haible  <bruno@clisp.org>
51043
51044         * tests/test-read-file.c (main): Don't produce spurious output for
51045         expected situations. Make the test fail if it encountered unexpected
51046         results.
51047
51048 2007-03-24  Bruno Haible  <bruno@clisp.org>
51049
51050         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
51051         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
51052
51053 2007-03-24  Bruno Haible  <bruno@clisp.org>
51054
51055         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
51056
51057 2007-03-24  Bruno Haible  <bruno@clisp.org>
51058
51059         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
51060         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
51061
51062         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
51063         * modules/utf8-ucs4: Turn into a symbolic link to module
51064         unistr/u8-mbtouc.
51065
51066         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
51067         utf8-ucs4-unsafe.
51068         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
51069         unistr/u8-mbtouc-unsafe.
51070
51071         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
51072         * modules/utf16-ucs4: Turn into a symbolic link to module
51073         unistr/u16-mbtouc.
51074
51075         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
51076         utf16-ucs4-unsafe.
51077         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
51078         unistr/u16-mbtouc-unsafe.
51079
51080         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
51081         * modules/ucs4-utf8: Turn into a symbolic link to module
51082         unistr/u8-ubtomb.
51083
51084         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
51085         * modules/ucs4-utf16: Turn into a symbolic link to module
51086         unistr/u16-ubtomb.
51087
51088 2007-03-24  Bruno Haible  <bruno@clisp.org>
51089
51090         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
51091         Enable the function only if HAVE_INLINE.
51092         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
51093         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
51094         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
51095         Enable the function only if HAVE_INLINE.
51096         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
51097         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
51098         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
51099         Enable the function only if HAVE_INLINE.
51100         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
51101         Enable the function only if HAVE_INLINE.
51102         * modules/utf8-ucs4: Update.
51103         * modules/utf8-ucs4-unsafe: Update.
51104         * modules/utf16-ucs4: Update.
51105         * modules/utf16-ucs4-unsafe: Update.
51106         * modules/ucs4-utf8: Update.
51107         * modules/ucs4-utf16: Update.
51108
51109 2007-03-24  Bruno Haible  <bruno@clisp.org>
51110
51111         * lib/utf8-ucs4.h: Remove file.
51112         * lib/utf8-ucs4-unsafe.h: Remove file.
51113         * lib/utf16-ucs4.h: Remove file.
51114         * lib/utf16-ucs4-unsafe.h: Remove file.
51115         * lib/ucs4-utf8.h: Remove file.
51116         * lib/ucs4-utf16.h: Remove file.
51117         * lib/unistr.h: Include their previous contents.
51118         * m4/utf-ucs4.m4: Remove file.
51119         * m4/ucs4-utf.m4: Remove file.
51120         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
51121         (Depends-on): Add unistr/base.
51122         (configure.ac): Remove gl_UTF_UCS4.
51123         (Makefile.am): Update.
51124         (Include): Change to unistr.h.
51125         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
51126         (Depends-on): Add unistr/base.
51127         (configure.ac): Remove gl_UTF_UCS4.
51128         (Makefile.am): Update.
51129         (Include): Change to unistr.h.
51130         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
51131         (Depends-on): Add unistr/base.
51132         (configure.ac): Remove gl_UTF_UCS4.
51133         (Makefile.am): Update.
51134         (Include): Change to unistr.h.
51135         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
51136         (Depends-on): Add unistr/base.
51137         (configure.ac): Remove gl_UTF_UCS4.
51138         (Makefile.am): Update.
51139         (Include): Change to unistr.h.
51140         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
51141         (Depends-on): Add unistr/base.
51142         (configure.ac): Remove gl_UCS4_UTF.
51143         (Makefile.am): Update.
51144         (Include): Change to unistr.h.
51145         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
51146         (Depends-on): Add unistr/base.
51147         (configure.ac): Remove gl_UCS4_UTF.
51148         (Makefile.am): Update.
51149         (Include): Change to unistr.h.
51150         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
51151         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
51152         utf8-ucs4-unsafe.h.
51153         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
51154         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
51155         utf16-ucs4-unsafe.h.
51156         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
51157         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
51158         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
51159         * lib/unistr/u8-strchr.c: Likewise.
51160         * lib/unistr/u8-strrchr.c: Likewise.
51161         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
51162         * lib/unistr/u16-strchr.c: Likewise.
51163         * lib/unistr/u16-strrchr.c: Likewise.
51164         * lib/striconveh.c: Update.
51165         * lib/linebreak.c: Update.
51166
51167 2007-03-24  Bruno Haible  <bruno@clisp.org>
51168
51169         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
51170         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
51171
51172 2007-03-22  Bruno Haible  <bruno@clisp.org>
51173
51174         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
51175
51176 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
51177
51178         * MODULES.html.sh (File system functions): New module write-any-file.
51179         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
51180         * m4/write-any-file.m4: New files.
51181
51182 2007-03-23  Eric Blake  <ebb9@byu.net>
51183
51184         * gnulib-tool: Rearrange space-tab sequences, since some editors
51185         like to eat them.
51186
51187 2007-03-23  Eric Blake  <ebb9@byu.net>
51188
51189         * lib/version-etc.c (version_etc_va): Update license wording to
51190         be more concise.  Recommended by Richard Stallman.
51191
51192 2007-03-22  Bruno Haible  <bruno@clisp.org>
51193
51194         * lib/poll.c (MSG_PEEK): New fallback definition.
51195
51196 2007-03-22  Bruno Haible  <bruno@clisp.org>
51197
51198         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
51199         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
51200         (main): Update.
51201         Fixes a compilation error on BeOS.
51202
51203 2007-03-22  Bruno Haible  <bruno@clisp.org>
51204
51205         * modules/frexpl-tests: New file.
51206         * tests/test-frexpl.c: New file.
51207
51208         * modules/frexpl: New file.
51209         * m4/frexpl.m4: New file.
51210         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
51211         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
51212         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
51213         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
51214         (Depends-on): Add frexpl. Remove isnanl-nolibm.
51215         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
51216
51217 2007-03-22  Bruno Haible  <bruno@clisp.org>
51218
51219         * lib/frexpl.c: Share code with lib/frexp.c.
51220         * modules/mathl (Files): Add lib/frexp.c.
51221         (Depends-on): Add isnanl-nolibm.
51222
51223 2007-03-22  Bruno Haible  <bruno@clisp.org>
51224
51225         * modules/printf-frexp (Files): Add m4/frexp.m4.
51226         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
51227         only if the found frexp function actually works.
51228
51229 2007-03-22  Bruno Haible  <bruno@clisp.org>
51230
51231         * lib/frexp.c: Remove older implementation that uses divisions.
51232
51233 2007-03-21  Bruno Haible  <bruno@clisp.org>
51234
51235         * modules/frexp-tests: New file.
51236         * tests/test-frexp.c: New file.
51237
51238         * modules/frexp: New file.
51239         * lib/frexp.c: New file.
51240         * m4/frexp.m4: New file.
51241         * lib/math_.h (frexp): New declaration.
51242         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
51243         REPLACE_FREXP.
51244         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
51245
51246 2007-03-21  Bruno Haible  <bruno@clisp.org>
51247
51248         * modules/isnanl-tests: New file.
51249         * tests/test-isnanl.c: New file.
51250
51251         * modules/isnanl: New file.
51252         * lib/isnanl.h: New file.
51253         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
51254         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
51255         gl_FUNC_ISNANL_WORKS.
51256         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
51257         New macros.
51258
51259 2007-03-21  Bruno Haible  <bruno@clisp.org>
51260
51261         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
51262         lib/isnanl.h.
51263         (Include): Update.
51264         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
51265         * lib/vasnprintf.c: Update.
51266         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
51267         tests/test-isnanl.h, remove tests/test-isnanl.c.
51268         (Makefile.am): Update.
51269         * tests/test-isnanl-nolibm.c: New file.
51270         * tests/test-isnanl.h: New file.
51271         * tests/test-isnanl.c: Remove file.
51272
51273 2007-03-21  Jim Meyering  <jim@meyering.net>
51274
51275         When trying to open ".", treat ESTALE like EACCES.
51276         * lib/savewd.c (savewd_save): Resort to forking not just upon
51277         failure with EACCES, but also when errno is ESTALE.
51278
51279 2007-03-20  Bruno Haible  <bruno@clisp.org>
51280
51281         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
51282         Needed on AIX 5.1. Reported by Matthew Woehlke.
51283
51284 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
51285
51286         Suggestions by Bruno Haible:
51287         * lib/acl-internal.h: Include "gettext.h" rather than rolling
51288         our own.
51289         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
51290         * modules/acl (Depends-on): Add gettext.
51291
51292 2007-03-19  Bruno Haible  <bruno@clisp.org>
51293
51294         * modules/iconvme: Remove file.
51295         * lib/iconvme.h: Remove file.
51296         * lib/iconvme.c: Remove file.
51297         * m4/iconvme.m4: Remove file.
51298
51299 2007-03-19  Bruno Haible  <bruno@clisp.org>
51300
51301         * doc/relocatable-maint.texi: Break long shell script line.
51302         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
51303
51304 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
51305
51306         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
51307         handle file_has_acl.
51308         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
51309         * lib/acl.c: Move header inclusions and related macro defns into
51310         lib/acl-internal.h.
51311         (S_ISLNK): Remove defn, since that's now done for us.
51312         (file_has_acl): Move to lib/file-has-acl.c.
51313         Call acl_trivial if available.  This is the crucial part of the fix.
51314         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
51315         shared within the library.  Rewrite a bit, partly to make it compatible
51316         with the GNU coding style.
51317         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
51318         Remove unnecessary double-quotes.
51319         Don't test for acl_to_text; the build will catch that.
51320         Replace acl_entries if it doesn't exist and it is needed.
51321         Check for -lsec and acl_trivial (as used on Solaris 10).
51322         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
51323         lib/file-has-acl.c.
51324         (Depends-on): Add sys_stat, for S_ISLNK.
51325
51326 2007-03-19  Ben Pfaff  <blp@gnu.org>
51327
51328         * doc/gnulib.texi: Fix typos.
51329         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
51330
51331 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
51332
51333         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
51334         If size is zero here, buf must be zero.
51335
51336 2007-03-19  Simon Josefsson  <simon@josefsson.org>
51337
51338         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
51339         <bruno@clisp.org>.
51340
51341 2007-03-18  Bruno Haible  <bruno@clisp.org>
51342
51343         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
51344         Suggested by Eric Blake.
51345
51346 2007-03-18  Ben Pfaff  <blp@gnu.org>
51347
51348         * doc/relocatable.texi: Recommend using as prefix a directory
51349         that does not exist and will never be created.  Based on
51350         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
51351         and others.
51352
51353 2007-03-17  Bruno Haible  <bruno@clisp.org>
51354
51355         * lib/fchownat.c: Include lchown.h.
51356
51357 2007-03-17  Bruno Haible  <bruno@clisp.org>
51358
51359         Fix endless loop when the given allocated size was > INT_MAX.
51360         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
51361         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
51362         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
51363         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
51364         * lib/sprintf.c (sprintf): Likewise.
51365
51366 2007-03-17  Bruno Haible  <bruno@clisp.org>
51367
51368         * tests/test-argp-2.sh (func_compare): Output a context diff.
51369
51370 2007-03-17  Bruno Haible  <bruno@clisp.org>
51371
51372         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
51373         locale's decimal-point character.
51374
51375 2007-03-17  Bruno Haible  <bruno@clisp.org>
51376
51377         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
51378         before comparing it. Needed because on some platforms (e.g. x86) a
51379         'long double' occupies less bytes than sizeof (long double).
51380
51381 2007-03-17  Bruno Haible  <bruno@clisp.org>
51382
51383         * tests/test-crc.c (main): Make printf statements 64-bit clean.
51384         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
51385         * tests/test-getaddrinfo.c (simple): Likewise.
51386         * tests/test-read-file.c (main): Likewise.
51387
51388 2007-03-17  Bruno Haible  <bruno@clisp.org>
51389
51390         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
51391
51392 2007-03-17  Bruno Haible  <bruno@clisp.org>
51393
51394         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
51395         unused variable.
51396
51397 2007-03-17  Bruno Haible  <bruno@clisp.org>
51398
51399         * tests/test-c-strcasecmp.c: Include c-strcase.h.
51400         * tests/test-c-strncasecmp.c: Likewise.
51401
51402 2007-03-17  Bruno Haible  <bruno@clisp.org>
51403
51404         * modules/stdlib (Depends-on): Add unistd.
51405         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
51406         Needed for MacOS X 10.3.
51407
51408 2007-03-17  Bruno Haible  <bruno@clisp.org>
51409
51410         * lib/unistr/u-strdup.h: Include <stdlib.h>.
51411
51412 2007-03-17  Bruno Haible  <bruno@clisp.org>
51413
51414         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
51415
51416 2007-03-17  Bruno Haible  <bruno@clisp.org>
51417
51418         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
51419         to reflect files copied from gnulib (with or without modifications).
51420         Suggested by Jim Meyering.
51421
51422 2007-03-17  Eric Blake  <ebb9@byu.net>
51423
51424         * NEWS: Document stdlib change from 2007-02-18.
51425
51426 2007-03-17  Jim Meyering  <jim@meyering.net>
51427
51428         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
51429         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
51430         someone uses a name containing shell meta-characters.
51431         Reported by Alfred M. Szmidt.
51432
51433         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
51434
51435 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
51436
51437         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
51438         and copy gettext configuration files only if configure.ac contains
51439         a use of AM_GNU_GETTEXT_VERSION.
51440
51441 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
51442
51443         * build-aux/bootstrap (gnulib_name): New variable.
51444         (gnulib_tool_options): Use it.
51445
51446 2007-03-13  Simon Josefsson  <simon@josefsson.org>
51447
51448         * tests/test-des.c: Use new namespace.
51449
51450 2007-03-15  Bruno Haible  <bruno@clisp.org>
51451
51452         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
51453         Reported by James Youngman <jay@gnu.org>.
51454
51455 2007-03-15  Bruno Haible  <bruno@clisp.org>
51456
51457         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
51458         declared prototype. Needed with cc on OSF/1 5.1.
51459
51460 2007-03-15  Bruno Haible  <bruno@clisp.org>
51461
51462         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
51463         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
51464         (struct gl_list_implementation): Add dispose_fn argument to the
51465         'create_empty', 'create' methods.
51466         (struct gl_list_impl_base): Add field 'dispose_fn'.
51467         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
51468         argument.
51469         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
51470         dispose_fn argument.
51471         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
51472         dispose_fn on the dropped values.
51473         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
51474         dispose_fn argument.
51475         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
51476         dropped values.
51477         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
51478         (gl_tree_remove_node): Call dispose_fn on the dropped value.
51479         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
51480         (gl_tree_remove_node): Call dispose_fn on the dropped value.
51481         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
51482         argument.
51483         (gl_tree_list_free): Call dispose_fn on the dropped values.
51484         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
51485         the dropped values.
51486         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
51487         Add dispose_fn argument.
51488         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
51489         Call dispose_fn on the dropped values.
51490         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
51491         Add dispose_fn argument.
51492         (gl_sublist_create): Initialize the 'dispose_fn' field.
51493         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
51494         * tests/test-array_list.c (main): Update.
51495         * tests/test-carray_list.c (main): Update.
51496         * tests/test-avltree_list.c (main): Update.
51497         * tests/test-rbtree_list.c (main): Update.
51498         * tests/test-avltreehash_list.c (main): Update.
51499         * tests/test-rbtreehash_list.c (main): Update.
51500         * tests/test-linked_list.c (main): Update.
51501         * tests/test-linkedhash_list.c (main): Update.
51502         * tests/test-array_oset.c (main): Update.
51503
51504 2007-03-15  Bruno Haible  <bruno@clisp.org>
51505
51506         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
51507         (gl_oset_create_empty): Add dispose_fn argument.
51508         (struct gl_oset_implementation): Add dispose_fn argument to
51509         'create_empty' method.
51510         (struct gl_oset_impl_base): Add dispose_fn field.
51511         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
51512         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
51513         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
51514         values.
51515         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
51516         (gl_tree_oset_free): Call dispose_fn on the dropped values.
51517         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
51518         dropped value.
51519         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
51520         dropped value.
51521         * tests/test-array_oset.c (main): Update.
51522         * tests/test-avltree_oset.c (main): Update.
51523         * tests/test-rbtree_oset.c (main): Update.
51524         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
51525
51526 2007-03-13  Bruno Haible  <bruno@clisp.org>
51527
51528         * tests/test-stdbool.c (i): Update after last patch.
51529
51530 2007-03-12  Bruno Haible  <bruno@clisp.org>
51531
51532         * lib/quotearg.c: Include <wctype.h> early, before the definition of
51533         the iswprint macro. Needed on Solaris 2.5.1.
51534
51535 2007-03-12  Bruno Haible  <bruno@clisp.org>
51536
51537         * tests/test-printf-frexp.c (main): Declare x as volatile.
51538
51539 2007-03-12  Simon Josefsson  <simon@josefsson.org>
51540
51541         * doc/gnulib.texi (Build robot for gnulib): New section.
51542
51543 2007-03-12  Jim Meyering  <jim@meyering.net>
51544
51545         * build-aux/bootstrap: New file.
51546         * build-aux/bootstrap.conf: New file, from coreutils.
51547
51548 2007-03-11  Bruno Haible  <bruno@clisp.org>
51549
51550         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
51551
51552 2007-03-12  Simon Josefsson  <simon@josefsson.org>
51553
51554         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
51555         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
51556         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
51557
51558 2007-03-11  Bruno Haible  <bruno@clisp.org>
51559
51560         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
51561         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
51562
51563 2007-03-11  Bruno Haible  <bruno@clisp.org>
51564
51565         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
51566         formula. Needed for SunPRO C 5.0.
51567
51568 2007-03-11  Bruno Haible  <bruno@clisp.org>
51569
51570         * modules/long-options (Depends-on): Add getopt.
51571
51572 2007-03-11  Bruno Haible  <bruno@clisp.org>
51573
51574         * modules/modechange (Depends-on): Add stdbool.
51575
51576 2007-03-11  Bruno Haible  <bruno@clisp.org>
51577
51578         * modules/i-ring (Depends-on): Add stdbool.
51579
51580 2007-03-11  Bruno Haible  <bruno@clisp.org>
51581
51582         * modules/gc-des (Depends-on): Add stdbool.
51583
51584 2007-03-11  Bruno Haible  <bruno@clisp.org>
51585
51586         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
51587
51588 2007-03-11  Bruno Haible  <bruno@clisp.org>
51589
51590         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
51591
51592 2007-03-11  Bruno Haible  <bruno@clisp.org>
51593
51594         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
51595
51596 2007-03-11  Bruno Haible  <bruno@clisp.org>
51597
51598         * lib/vasnprintf.c (sprintf): Undefine.
51599
51600 2007-03-11  Bruno Haible  <bruno@clisp.org>
51601
51602         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
51603         initializers in SunPRO C and Compaq C compilers.
51604
51605 2007-03-11  Bruno Haible  <bruno@clisp.org>
51606
51607         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
51608         decrementing code ANSI C compliant.
51609
51610 2007-03-11  Bruno Haible  <bruno@clisp.org>
51611
51612         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
51613         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
51614
51615 2007-03-11  Bruno Haible  <bruno@clisp.org>
51616
51617         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
51618         <stdbool.h> substitute doesn't pass.
51619
51620 2007-03-11  Bruno Haible  <bruno@clisp.org>
51621
51622         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
51623
51624 2007-03-11  Bruno Haible  <bruno@clisp.org>
51625
51626         * gnulib-tool (func_create_megatestdir): Create also an autobuild
51627         script, for submission to autobuild.josefsson.org.
51628
51629 2007-03-10  Bruno Haible  <bruno@clisp.org>
51630
51631         * modules/canonicalize-lgpl-tests: New file.
51632         * tests/test-canonicalize-lgpl.sh: New file.
51633         * tests/test-canonicalize-lgpl.c: New file.
51634
51635         * modules/c-strcase-tests: New file.
51636         * tests/test-c-strcase.sh: New file.
51637         * tests/test-c-strcasecmp.c: New file.
51638         * tests/test-c-strncasecmp.c: New file.
51639
51640         * modules/atexit-tests: New file.
51641         * tests/test-atexit.sh: New file.
51642         * tests/test-atexit.c: New file.
51643
51644 2007-03-10  Bruno Haible  <bruno@clisp.org>
51645
51646         * tests/test-binary-io.sh: Use temporary filenames that are not so
51647         likely to clash with those of other tests (in a parallel make).
51648         * tests/test-binary-io.c: Likewise.
51649
51650 2007-03-10  Bruno Haible  <bruno@clisp.org>
51651
51652         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
51653         fallback; use #error instead.
51654         Suggested by Simon Josefsson.
51655
51656 2007-03-10  Bruno Haible  <bruno@clisp.org>
51657
51658         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
51659         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
51660         first and the last.
51661
51662 2007-03-10  Bruno Haible  <bruno@clisp.org>
51663
51664         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
51665
51666 2007-03-10  Bruno Haible  <bruno@clisp.org>
51667
51668         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
51669         "make distcheck".
51670         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
51671         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
51672         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
51673
51674 2007-03-10  Bruno Haible  <bruno@clisp.org>
51675
51676         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
51677         variable.
51678         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
51679         variable.
51680
51681 2007-03-09  Eric Blake  <ebb9@byu.net>
51682         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
51683
51684         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
51685         types are not being provided by gnulib.
51686         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
51687         types are supported.
51688
51689 2007-03-10  Bruno Haible  <bruno@clisp.org>
51690
51691         * lib/stdio_.h (__attribute__): New macro.
51692         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
51693         vsprintf): Specify __attribute__ __format__ for GCC.
51694         Suggested by Eric Blake.
51695
51696 2007-03-09  Bruno Haible  <bruno@clisp.org>
51697
51698         * modules/printf-posix-tests: New file.
51699         * tests/test-printf-posix.sh: New file.
51700         * tests/test-printf-posix.c: New file.
51701
51702         * modules/printf-posix: New file.
51703         * lib/printf.c: New file.
51704         * m4/printf-posix-rpl.m4: New file.
51705         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
51706         REPLACE_PRINTF.
51707         * lib/stdio_.h (printf): New declaration.
51708         (format, __format__, ____printf____, ____scanf____, ____strftime____,
51709         ____strfmon____): New macros.
51710         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
51711         REPLACE_PRINTF.
51712
51713 2007-03-09  Bruno Haible  <bruno@clisp.org>
51714
51715         * tests/test-vasnprintf-posix2.sh: New file.
51716         * tests/test-vasnprintf-posix2.c: New file.
51717         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
51718         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
51719         (Makefile.am): Activate test-vasnprintf-posix2.sh.
51720
51721         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
51722         a locale dependent decimal point, rather than always '.'.
51723
51724 2007-03-09  Eric Blake  <ebb9@byu.net>
51725
51726         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
51727         spite of platforms like Tandem/NSK that define it to -1.
51728
51729 2007-03-08  Bruno Haible  <bruno@clisp.org>
51730
51731         * modules/vprintf-posix-tests: New file.
51732         * tests/test-vprintf-posix.sh: New file.
51733         * tests/test-vprintf-posix.c: New file.
51734         * tests/test-printf-posix.h: New file.
51735
51736         * modules/vprintf-posix: New file.
51737         * lib/vprintf.c: New file.
51738         * m4/vprintf-posix.m4: New file.
51739         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
51740         REPLACE_VPRINTF.
51741         * lib/stdio_.h (vprintf): New declaration.
51742         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
51743         REPLACE_VPRINTF.
51744
51745 2007-03-08  Bruno Haible  <bruno@clisp.org>
51746
51747         * modules/fprintf-posix-tests: New file.
51748         * tests/test-fprintf-posix.sh: New file.
51749         * tests/test-fprintf-posix.c: New file.
51750
51751         * modules/fprintf-posix: New file.
51752         * lib/fprintf.c: New file.
51753         * m4/fprintf-posix.m4: New file.
51754         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
51755         REPLACE_FPRINTF.
51756         * lib/stdio_.h (fprintf): New declaration.
51757         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
51758         REPLACE_FPRINTF.
51759
51760 2007-03-08  Bruno Haible  <bruno@clisp.org>
51761
51762         * modules/vfprintf-posix-tests: New file.
51763         * tests/test-vfprintf-posix.sh: New file.
51764         * tests/test-vfprintf-posix.c: New file.
51765         * tests/test-fprintf-posix.h: New file.
51766         * tests/test-fprintf-posix.out: New file.
51767
51768         * modules/vfprintf-posix: New file.
51769         * lib/vfprintf.c: New file.
51770         * m4/vfprintf-posix.m4: New file.
51771         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
51772         REPLACE_VFPRINTF.
51773         * lib/stdio_.h (vfprintf): New declaration.
51774         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
51775         REPLACE_VFPRINTF.
51776
51777 2007-03-08  Bruno Haible  <bruno@clisp.org>
51778
51779         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
51780
51781 2007-03-08  Bruno Haible  <bruno@clisp.org>
51782
51783         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
51784         instead of 'expr' invocations.
51785         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51786         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51787         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51788         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51789         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51790         Suggested by Paul Eggert.
51791
51792 2007-03-08  Bruno Haible  <bruno@clisp.org>
51793
51794         * modules/fseterr-tests: New file.
51795         * tests/test-fseterr.c: New file.
51796
51797         * modules/fseterr: New file.
51798         * lib/fseterr.h: New file.
51799         * lib/fseterr.c: New file.
51800
51801 2007-03-08  Bruno Haible  <bruno@clisp.org>
51802
51803         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
51804         * lib/getopt_.h: Likewise.
51805         * lib/mbswidth.h: Likewise.
51806         * lib/setenv.h: Likewise.
51807         * lib/vasnprintf.h: Likewise.
51808         * lib/vasprintf.h: Likewise.
51809         * lib/verror.h: Likewise.
51810         * lib/xsetenv.h: Likewise.
51811         * lib/xvasprintf.h: Likewise.
51812
51813 2007-03-08  Jim Meyering  <jim@meyering.net>
51814
51815         * users.txt: Add parted.
51816
51817         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
51818
51819 2007-03-07  Bruno Haible  <bruno@clisp.org>
51820
51821         * m4/printf.m4: Make the shell script snippets copy&pastable.
51822
51823 2007-03-02  Bruno Haible  <bruno@clisp.org>
51824
51825         * lib/netinet_in_.h: New file.
51826         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
51827         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
51828         * modules/netinet_in (Files): Add lib/netinet_in_.h.
51829         (Depends-on): Add absolute-header.
51830         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
51831         into netinet/in.h.
51832
51833 2007-03-03  Bruno Haible  <bruno@clisp.org>
51834
51835         * lib/sys_select_.h: New file.
51836         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
51837         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
51838         * modules/sys_select (Files): Add lib/sys_select_.h.
51839         (Depends-on): Add absolute-header.
51840         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
51841         into sys/select.h.
51842
51843 2007-03-02  Bruno Haible  <bruno@clisp.org>
51844
51845         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
51846         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
51847         values.
51848         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
51849         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
51850         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
51851         * modules/sys_socket (Depends-on): Add absolute-header.
51852         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
51853         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
51854         (Include): Remove requirement of inclusion of <sys/types.h>.
51855
51856 2007-03-02  Bruno Haible  <bruno@clisp.org>
51857
51858         * lib/byteswap_.h (bswap_32): Fix formula.
51859
51860 2007-03-06  Bruno Haible  <bruno@clisp.org>
51861
51862         * modules/sprintf-posix-tests: New file.
51863         * tests/test-sprintf-posix.c: New file.
51864
51865         * modules/sprintf-posix: New file.
51866         * lib/sprintf.c: New file.
51867         * m4/sprintf-posix.m4: New file.
51868         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
51869         REPLACE_SPRINTF.
51870         * lib/stdio_.h (sprintf): New declaration.
51871         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
51872         REPLACE_SPRINTF.
51873
51874 2007-03-06  Bruno Haible  <bruno@clisp.org>
51875
51876         * modules/vsprintf-posix-tests: New file.
51877         * tests/test-vsprintf-posix.c: New file.
51878         * tests/test-sprintf-posix.h: New file.
51879
51880         * modules/vsprintf-posix: New file.
51881         * lib/vsprintf.c: New file.
51882         * m4/vsprintf-posix.m4: New file.
51883         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
51884         REPLACE_VSPRINTF.
51885         * lib/stdio_.h (vsprintf): New declaration.
51886         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
51887         REPLACE_VSPRINTF.
51888
51889 2007-03-06  Bruno Haible  <bruno@clisp.org>
51890
51891         * modules/vsnprintf (Depend-on): Remove minmax.
51892
51893 2007-03-06  Bruno Haible  <bruno@clisp.org>
51894
51895         * modules/snprintf-posix-tests: New file.
51896         * tests/test-snprintf-posix.c: New file.
51897
51898         * modules/snprintf-posix: New file.
51899         * m4/snprintf-posix.m4: New file.
51900         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
51901         gl_FUNC_SNPRINTF.
51902         (gl_FUNC_SNPRINTF): Invoke it.
51903         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
51904         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
51905         is set.
51906         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
51907
51908 2007-03-06  Bruno Haible  <bruno@clisp.org>
51909
51910         * modules/vsnprintf-posix-tests: New file.
51911         * tests/test-vsnprintf-posix.c: New file.
51912         * tests/test-snprintf-posix.h: New file.
51913
51914         * modules/vsnprintf-posix: New file.
51915         * m4/vsnprintf-posix.m4: New file.
51916         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
51917         gl_FUNC_VSNPRINTF.
51918         (gl_FUNC_VSNPRINTF): Invoke it.
51919         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
51920         * lib/stdio_.h (vsnprintf): Define as a replacement if
51921         REPLACE_VSNPRINTF is set.
51922         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
51923
51924 2007-03-06  Bruno Haible  <bruno@clisp.org>
51925
51926         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
51927         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
51928
51929 2007-03-06  Bruno Haible  <bruno@clisp.org>
51930
51931         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
51932         (asinl): Declare also if HAVE_DECL_ASINL is set.
51933         (atanl): Declare also if HAVE_DECL_ATANL is set.
51934         (ceill): Declare also if HAVE_DECL_CEILL is set.
51935         (cosl): Declare also if HAVE_DECL_COSL is set.
51936         (expl): Declare also if HAVE_DECL_EXPL is set.
51937         (floorl): Declare also if HAVE_DECL_FLOORL is set.
51938         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
51939         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
51940         (logl): Declare also if HAVE_DECL_LOGL is set.
51941         (sinl): Declare also if HAVE_DECL_SINL is set.
51942         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
51943         (tanl): Declare also if HAVE_DECL_TANL is set.
51944         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
51945         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
51946         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
51947         declaration of frexpl, ldexpl.
51948         * modules/printf-frexpl (Depends-on): Add math.
51949         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
51950
51951 2007-03-05  Bruno Haible  <bruno@clisp.org>
51952
51953         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
51954         frexpl and ldexpl are declared.
51955         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
51956
51957 2007-03-05  Bruno Haible  <bruno@clisp.org>
51958
51959         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
51960         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
51961
51962 2007-03-05  Bruno Haible  <bruno@clisp.org>
51963
51964         * lib/stdio_.h: Include <stddef.h>.
51965
51966 2007-03-05  Bruno Haible  <bruno@clisp.org>
51967
51968         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
51969
51970 2007-03-05  Bruno Haible  <bruno@clisp.org>
51971
51972         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
51973         NetBSD 4, from Ralf Wildenhues.
51974
51975 2007-03-04  Bruno Haible  <bruno@clisp.org>
51976
51977         * lib/vasprintf.h: Update #if logic for the case when the functions
51978         exist but are overridden.
51979
51980 2007-03-04  Bruno Haible  <bruno@clisp.org>
51981
51982         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
51983         implementations: glibc-2.4 and MacOS X 10.3.
51984         * tests/test-vasnprintf-posix.c (test_function): Test also the case
51985         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
51986         * tests/test-vasprintf-posix.c (test_function): Likewise.
51987
51988 2007-03-04  Bruno Haible  <bruno@clisp.org>
51989
51990         * modules/vasprintf-posix-tests: New file.
51991         * tests/test-vasprintf-posix.c: New file.
51992
51993         * modules/vasprintf-posix: New file.
51994         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
51995         defined.
51996         * m4/vasprintf-posix.m4: New file.
51997         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
51998         gl_FUNC_VASPRINTF.
51999         (gl_FUNC_VASPRINTF): Invoke it.
52000         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
52001         here.
52002         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
52003
52004 2007-03-04  Bruno Haible  <bruno@clisp.org>
52005
52006         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
52007         REPLACE_GETTIMEOFDAY.
52008         * modules/sys_time (Makefile.am): Likewise.
52009         * m4/sys_time_h.m4: Likewise.
52010         * m4/gettimeofday.m4: Likewise.
52011
52012 2007-03-04  Bruno Haible  <bruno@clisp.org>
52013
52014         * modules/vasnprintf-posix-tests: New file.
52015         * tests/test-vasnprintf-posix.c: New file.
52016
52017         * modules/vasnprintf-posix: New file.
52018         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
52019         printf-frexpl.h.
52020         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
52021         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
52022         REPLACE_VASNPRINTF is defined.
52023         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
52024         gl_FUNC_VASNPRINTF.
52025         (gl_FUNC_VASNPRINTF): Invoke it.
52026         * m4/vasnprintf-posix.m4: New file.
52027         * m4/printf.m4: New file.
52028
52029 2007-03-04  Bruno Haible  <bruno@clisp.org>
52030
52031         Compile progreloc.c only if --enable-relocatable is specified.
52032         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
52033         if --enable-relocatable was specified.
52034         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
52035         lib_SOURCES.
52036
52037 2007-03-04  Jim Meyering  <jim@meyering.net>
52038
52039         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
52040         Use it consistently, rather than enumerating errno constants.
52041
52042 2007-03-04  Bruno Haible  <bruno@clisp.org>
52043
52044         * modules/xvasprintf-tests: New file.
52045         * tests/test-xvasprintf.c: New file.
52046
52047         * modules/vasprintf-tests: New file.
52048         * tests/test-vasprintf.c: New file.
52049
52050         * modules/vasnprintf-tests: New file.
52051         * tests/test-vasnprintf.c: New file.
52052
52053         * modules/vsnprintf-tests: New file.
52054         * tests/test-vsnprintf.c: New file.
52055
52056         * modules/snprintf-tests: New file.
52057         * tests/test-snprintf.c: New file.
52058
52059 2007-03-04  Bruno Haible  <bruno@clisp.org>
52060
52061         Compile relocatable.c only if --enable-relocatable is specified.
52062         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
52063         gl_RELOCATABLE_LIBRARY.
52064         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
52065         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
52066         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
52067         gl_RELOCATABLE_LIBRARY.
52068         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
52069         (Makefile.am): Remove lib_SOURCES.
52070         * modules/relocatable-lib-lgpl (configure.ac): Invoke
52071         gl_RELOCATABLE_LIBRARY.
52072         (Makefile.am): Remove lib_SOURCES.
52073         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
52074         always.
52075         * modules/relocatable-prog-wrapper (configure.ac): Invoke
52076         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
52077
52078 2007-03-04  Bruno Haible  <bruno@clisp.org>
52079
52080         * modules/argmatch-tests: New file.
52081         * tests/test-argmatch.c: New file.
52082
52083         * tests/test-allocsa.c (main): Halve the number of loop runs.
52084
52085         * modules/alloca-opt-tests: New file.
52086         * tests/test-alloca-opt.c: New file.
52087
52088 2007-03-04  Jim Meyering  <jim@meyering.net>
52089
52090         Work around difference between Linux ACLs and Solaris 10 ZFS.
52091         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
52092         for EINVAL.
52093
52094 2007-03-03  Bruno Haible  <bruno@clisp.org>
52095
52096         * modules/relocatable-prog (Depends-on): Add back progreloc's
52097         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
52098
52099 2007-03-03  Bruno Haible  <bruno@clisp.org>
52100
52101         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
52102         * modules/relocatable-lib: New file.
52103
52104 2007-03-03  Bruno Haible  <bruno@clisp.org>
52105
52106         * modules/relocatable-prog: Renamed from modules/relocatable.
52107         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
52108
52109 2007-03-03  Bruno Haible  <bruno@clisp.org>
52110
52111         * modules/relocatable-script (Files): Add doc/relocatable.texi,
52112         m4/relocatable-lib.m4.
52113         (Depends-on): Remove 'relocatable'.
52114         (configure.ac): Add gl_RELOCATABLE_NOP.
52115
52116 2007-03-03  Bruno Haible  <bruno@clisp.org>
52117
52118         * modules/relocatable-prog-wrapper: New file.
52119         * modules/relocatable (Depends-on): Add it. Remove all other
52120         dependencies except progname.
52121         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
52122
52123         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
52124         (gl_FUNC_STRERROR): Nop.
52125         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
52126
52127         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
52128         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
52129
52130         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
52131         (gl_FUNC_READLINK): Update.
52132
52133         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
52134
52135 2007-03-03  Bruno Haible  <bruno@clisp.org>
52136
52137         * lib/xreadlink.c: Include <unistd.h> unconditionally.
52138         * modules/xreadlink (Depends-on): Add unistd.
52139         * modules/xreadlink-with-size (Depends-on): Likewise.
52140
52141 2007-03-03  Bruno Haible  <bruno@clisp.org>
52142
52143         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
52144         extracted from gt_FUNC_SETENV.
52145         (gt_FUNC_SETENV): Remove macro.
52146         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
52147         remove gt_FUNC_SETENV.
52148
52149 2007-03-03  Bruno Haible  <bruno@clisp.org>
52150
52151         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
52152         ENABLE_RELOCATABLE here.
52153         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
52154
52155 2007-03-03  Bruno Haible  <bruno@clisp.org>
52156
52157         * modules/rbtreehash-list-tests (Depends-on): Add progname.
52158         * tests/test-rbtreehash_list.c: Include progname.h.
52159         (main): Call set_program_name.
52160
52161         * modules/rbtree-oset-tests (Depends-on): Add progname.
52162         * tests/test-rbtree_oset.c: Include progname.h.
52163         (main): Call set_program_name.
52164
52165         * modules/rbtree-list-tests (Depends-on): Add progname.
52166         * tests/test-rbtree_list.c: Include progname.h.
52167         (main): Call set_program_name.
52168
52169         * modules/linked-list-tests (Depends-on): Add progname.
52170         * tests/test-linked_list.c: Include progname.h.
52171         (main): Call set_program_name.
52172
52173 2007-03-03  Bruno Haible  <bruno@clisp.org>
52174
52175         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
52176         All uses of __restrict changed to _Restrict_.
52177         * lib/glob_.h (__restrict): Remove macro.
52178
52179 2007-03-02  Bruno Haible  <bruno@clisp.org>
52180
52181         * modules/gettext (configure.ac): Require gettext infrastructure
52182         from version 0.16.1.
52183
52184 2007-03-02  Bruno Haible  <bruno@clisp.org>
52185
52186         * modules/linkedhash-list-tests (Depends-on): Add progname.
52187         * tests/test-linkedhash_list.c: Include progname.h.
52188         (main): Call set_program_name.
52189
52190         * modules/carray-list-tests (Depends-on): Add progname.
52191         * tests/test-carray_list.c: Include progname.h.
52192         (main): Call set_program_name.
52193
52194         * modules/avltreehash-list-tests (Depends-on): Add progname.
52195         * tests/test-avltreehash_list.c: Include progname.h.
52196         (main): Call set_program_name.
52197
52198         * modules/avltree-oset-tests (Depends-on): Add progname.
52199         * tests/test-avltree_oset.c: Include progname.h.
52200         (main): Call set_program_name.
52201
52202         * modules/avltree-list-tests (Depends-on): Add progname.
52203         * tests/test-avltree_list.c: Include progname.h.
52204         (main): Call set_program_name.
52205
52206         * modules/array-oset-tests (Depends-on): Add progname.
52207         * tests/test-array_oset.c: Include progname.h.
52208         (main): Call set_program_name.
52209
52210         * modules/array-list-tests (Depends-on): Add progname.
52211         * tests/test-array_list.c: Include progname.h.
52212         (main): Call set_program_name.
52213
52214         * modules/argp-tests (Depends-on): Add progname.
52215         * tests/test-argp.c: Include argp.h first. Include progname.h.
52216         (main): Call set_program_name.
52217
52218 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
52219
52220         * doc/gnulib-tool.texi (Initial import): Reword description of
52221         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
52222         limited effect even if defined after the first system include.
52223
52224 2007-03-01  Bruno Haible  <bruno@clisp.org>
52225
52226         * build-aux/config.libpath: Update to libtool-1.5.22.
52227         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52228
52229 2007-03-01  Bruno Haible  <bruno@clisp.org>
52230
52231         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
52232         foo_CFLAGS.
52233         Reported by Ralf Wildenhues.
52234
52235 2007-03-01  Bruno Haible  <bruno@clisp.org>
52236
52237         * build-aux/install-reloc: Remove object files left over by some
52238         compilers.
52239         Reported by Ralf Wildenhues.
52240
52241 2007-03-01  Bruno Haible  <bruno@clisp.org>
52242
52243         * build-aux/install-reloc: Break long lines.
52244
52245 2007-03-01  Bruno Haible  <bruno@clisp.org>
52246
52247         * doc/relocatable.texi: Document that it may not work on OpenBSD.
52248         Reported by Ralf Wildenhues.
52249
52250 2007-03-01  Bruno Haible  <bruno@clisp.org>
52251
52252         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
52253         include ordering constraints.
52254
52255 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52256
52257         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
52258         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
52259         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
52260         as another example.
52261         * lib/time_.h: Fix misspelling.
52262         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
52263         Require gl_HEADER_TIME_H_DEFAULTS.
52264         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
52265         * m4/time_r.m4 (gl_TIME_R): Likewise.
52266         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
52267
52268 2007-03-01  Bruno Haible  <bruno@clisp.org>
52269
52270         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
52271         * m4/utimens.m4 (gl_UTIMENS): Likewise.
52272
52273 2007-03-01  Jim Meyering  <jim@meyering.net>
52274
52275         * modules/xreadlink (Maintainer): Add my name.
52276         * modules/xreadlink-with-size (Depends-on): Alphabetize.
52277
52278 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
52279             Bruno Haible  <bruno@clisp.org>
52280
52281         * build-aux/install-reloc: Compile also c-ctype.c.
52282         * build-aux/relocatable.sh.in: New file.
52283         * doc/relocatable.texi: New file.
52284         * doc/relocatable-maint.texi: New file.
52285         * doc/gnulib.texi: Include relocatable-maint.texi.
52286         * lib/progreloc.c: Include unistd.h unconditionally.
52287         * lib/relocwrapper.c: Include unistd.h unconditionally.
52288         Include c-ctype.h.
52289         (add_dotbin): Use c_tolower.
52290         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
52291         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
52292         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
52293         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
52294         to m4/relocatable-lib.m4.
52295         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
52296         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
52297         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
52298         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
52299         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
52300         * modules/relocatable: New file.
52301         * modules/relocatable-lib: New file.
52302         * modules/relocatable-script: New file.
52303
52304 2007-02-28  Bruno Haible  <bruno@clisp.org>
52305
52306         Import --enable-relocatable infrastructure.
52307         * build-aux/config.libpath: New file, from GNU gettext.
52308         * build-aux/install-reloc: New file, from GNU gettext.
52309         * build-aux/reloc-ldflags: New file, from GNU gettext.
52310         * lib/relocatable.h: New file, from GNU gettext.
52311         * lib/relocatable.c: New file, from GNU gettext.
52312         * lib/relocwrapper.c: New file, from GNU gettext.
52313         * m4/relocatable.m4: New file, from GNU gettext.
52314
52315 2007-02-28  Bruno Haible  <bruno@clisp.org>
52316
52317         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
52318
52319         * modules/xreadlink: New file, from GNU gettext with modifications.
52320         * lib/xreadlink.c: New file, from GNU gettext.
52321         * lib/xreadlink.h: Add comments.
52322         (xreadlink): New declaration.
52323
52324         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
52325         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
52326         lib/xreadlink-with-size.c.
52327         (configure.ac): Remove gl_XREADLINK invocation.
52328         (Makefile.am): Augment lib_SOURCES.
52329         * m4/xreadlink.m4: Remove file.
52330         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
52331         (xreadlink_with_size): Renamed from xreadink.
52332         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
52333         * modules/canonicalize (Depends-on): Replace xreadlink with
52334         xreadlink-with-size.
52335         * lib/canonicalize.c (canonicalize_filename_mode): Update.
52336
52337 2007-02-25  Jim Meyering  <jim@meyering.net>
52338
52339         * build-aux/announce-gen: When complaining about excess arguments,
52340         list them.
52341
52342 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
52343
52344         * README: Document signed integer overflow situation more
52345         accurately.
52346
52347 2007-02-25  Bruno Haible  <bruno@clisp.org>
52348
52349         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
52350         'a' or 'A' conversion.
52351
52352 2007-02-25  Bruno Haible  <bruno@clisp.org>
52353
52354         * modules/filename: Renamed from modules/pathname.
52355         (Files): Replace lib/pathname.h with lib/filename.h. Replace
52356         lib/concatpath.c with lib/concat-filename.c.
52357         (Makefile.am): Update.
52358         (Include): Replace pathname.h with filename.h.
52359         * lib/filename.h: Renamed from lib/pathname.h.
52360         (concatenated_filename): Renamed from concatenated_pathname.
52361         * lib/concat-filename.c: Renamed from lib/concatpath.c.
52362         (concatenated_filename): Renamed from concatenated_pathname.
52363         * lib/findprog.c: Include filename.h instead of pathname.h.
52364         (find_in_path): Update.
52365         * lib/javacomp.c: Include filename.h instead of pathname.h.
52366         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
52367         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
52368         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
52369         is_oldgcj_14_13_usable, is_javac_usable): Update.
52370         * lib/javaexec.c: Include filename.h instead of pathname.h.
52371         (execute_java_class): Update.
52372         * modules/findprog: Update.
52373         * modules/javacomp: Update.
52374         * modules/javaexec: Update.
52375         * MODULES.html.sh (File system functions): Add 'filename', remove
52376         'pathname'.
52377
52378 2007-02-25  Bruno Haible  <bruno@clisp.org>
52379
52380         * modules/printf-frexpl-tests: New file.
52381         * tests/test-printf-frexpl.c: New file.
52382
52383         * modules/printf-frexpl: New file.
52384         * lib/printf-frexpl.h: New file.
52385         * lib/printf-frexpl.c: New file.
52386         * m4/printf-frexpl.m4: New file.
52387
52388 2007-02-25  Bruno Haible  <bruno@clisp.org>
52389
52390         * modules/printf-frexp-tests: New file.
52391         * tests/test-printf-frexp.c: New file.
52392
52393         * modules/printf-frexp: New file.
52394         * lib/printf-frexp.h: New file.
52395         * lib/printf-frexp.c: New file.
52396         * m4/printf-frexp.m4: New file.
52397
52398 2007-02-25  Bruno Haible  <bruno@clisp.org>
52399
52400         Assume automake >= 1.10 for the tests.
52401         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
52402         * modules/arctwo-tests: Likewise.
52403         * modules/argp-tests: Likewise.
52404         * modules/avltree-list-tests: Likewise.
52405         * modules/avltree-oset-tests: Likewise.
52406         * modules/avltreehash-list-tests: Likewise.
52407         * modules/carray-list-tests: Likewise.
52408         * modules/crc-tests: Likewise.
52409         * modules/des-tests: Likewise.
52410         * modules/gc-arcfour-tests: Likewise.
52411         * modules/gc-arctwo-tests: Likewise.
52412         * modules/gc-des-tests: Likewise.
52413         * modules/gc-hmac-md5-tests: Likewise.
52414         * modules/gc-hmac-sha1-tests: Likewise.
52415         * modules/gc-md2-tests: Likewise.
52416         * modules/gc-md4-tests: Likewise.
52417         * modules/gc-md5-tests: Likewise.
52418         * modules/gc-pbkdf2-sha1-tests: Likewise.
52419         * modules/gc-rijndael-tests: Likewise.
52420         * modules/gc-sha1-tests: Likewise.
52421         * modules/gc-tests: Likewise.
52422         * modules/getaddrinfo-tests: Likewise.
52423         * modules/hmac-md5-tests: Likewise.
52424         * modules/hmac-sha1-tests: Likewise.
52425         * modules/linked-list-tests: Likewise.
52426         * modules/linkedhash-list-tests: Likewise.
52427         * modules/lock-tests: Likewise.
52428         * modules/md2-tests: Likewise.
52429         * modules/md4-tests: Likewise.
52430         * modules/md5-tests: Likewise.
52431         * modules/rbtree-list-tests: Likewise.
52432         * modules/rbtree-oset-tests: Likewise.
52433         * modules/rbtreehash-list-tests: Likewise.
52434         * modules/read-file-tests: Likewise.
52435         * modules/rijndael-tests: Likewise.
52436         * modules/stdint-tests: Likewise.
52437         * modules/tls-tests: Likewise.
52438
52439 2007-02-24  Bruno Haible  <bruno@clisp.org>
52440
52441         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
52442         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
52443         function; instead check whether isnan with a double argument links.
52444         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
52445         function; instead check whether isnan with a 'long double' argument
52446         links.
52447         Reported by Eric Blake <ebb9@byu.net>.
52448
52449 2007-02-24  Bruno Haible  <bruno@clisp.org>
52450
52451         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
52452         defined.
52453         * lib/isnanl.c: Remove all code. Just include isnan.c.
52454         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
52455
52456 2007-02-25  Jim Meyering  <jim@meyering.net>
52457
52458         Avoid conflicting types for 'unsetenv' on FreeBSD.
52459         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
52460         conflicting with FreeBSD's (5.0 and 6.1) function declaration
52461         in stdlib.h.
52462
52463 2007-02-24  Bruno Haible  <bruno@clisp.org>
52464
52465         * modules/isnanl-nolibm-tests: New file.
52466         * tests/test-isnanl.c: New file.
52467
52468         * modules/isnanl-nolibm: New file.
52469         * lib/isnanl.h: New file.
52470         * lib/isnanl.c: New file.
52471         * m4/isnanl.m4: New file.
52472
52473 2007-02-24  Bruno Haible  <bruno@clisp.org>
52474
52475         * modules/isnan-nolibm-tests: New file.
52476         * tests/test-isnan.c: New file.
52477
52478         * modules/isnan-nolibm: New file.
52479         * lib/isnan.h: New file.
52480         * lib/isnan.c: New file.
52481         * m4/isnan.m4: New file.
52482
52483 2007-02-24  Bruno Haible  <bruno@clisp.org>
52484
52485         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
52486         assume that an exponent fits in 20 bits.
52487
52488 2007-02-24  Jim Meyering  <jim@meyering.net>
52489
52490         * m4/regex.m4: Update the description of the configure-time option,
52491         --without-included-regex, to state accurately what the defaults are,
52492         and perhaps to give people an idea why using this option is risky.
52493
52494 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
52495
52496         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
52497         loops on small arguments.  This attempts to avoid the problem
52498         Bruno Haible reported for AIX 4.3.2 in
52499         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
52500
52501 2007-02-23  Bruno Haible  <bruno@clisp.org>
52502
52503         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
52504         Needed for help2man.
52505
52506 2007-02-23  Karl Berry  <karl@gnu.org>
52507
52508         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
52509         exists, foo.h should be cvs-ignored, not committed.
52510
52511 2007-02-23  Eric Blake  <ebb9@byu.net>
52512
52513         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
52514         * lib/stat-time.h (includes): Likewise.
52515         * lib/utimecmp.c (includes): Likewise.
52516         * lib/utimens.h (includes): Likewise.
52517         * lib/getdate.y (includes): Also include "timespec.h" for use
52518         internal to the module.
52519         * modules/utimens (Depends-on): Revert yesterday's patch.
52520         * modules/nanosleep (Depends-on): Add missing dependency.
52521
52522 2007-02-22  Bruno Haible  <bruno@clisp.org>
52523
52524         * lib/glob.c: Don't include getlogin_r.h.
52525
52526 2007-02-22  Jim Meyering  <jim@meyering.net>
52527
52528         * modules/utimens (Depends-on): Add timespec, required for
52529         utimens.h's inclusion of timespec.h.
52530
52531 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
52532
52533         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
52534         long unreadable paths in GNU/Linux.  Problem reported by Andreas
52535         Schwab in
52536         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
52537         I'll try to think of a better way to fix the Solaris problem.
52538
52539         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
52540         like glibc; on Solaris 10, it fails with errno == EINVAL.
52541         POSIX says the behavior is unspecified if the first argument is NULL,
52542         so play it safe and never pass NULL to the system getcwd.
52543
52544 2007-02-21  Jim Meyering  <jim@meyering.net>
52545
52546         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
52547         of gettimeofday.  It would conflict with the one now always
52548         provided via sys_time_.h.  Reported by Matthew Woehlke, as
52549         an IRIX 6.5 build failure.
52550
52551 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
52552
52553         Minor fixups to port to Solaris 10 with Sun C 5.8.
52554         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
52555         * modules/getcwd (Depends-on): Add dirfd.
52556         * lib/putenv.c (putenv): #undef it.
52557         (rpl_putenv): New decl.
52558         (malloc, free): Include <stdlib.h> rather than prototyping separately.
52559
52560 2007-02-20  Bruno Haible  <bruno@clisp.org>
52561
52562         * modules/stdio-tests: New file.
52563         * tests/test-stdio.c: New file.
52564
52565         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
52566         (Depends-on): Add stdio.
52567         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
52568         (Include): Use <stdio.h> instead of vsnprintf.h.
52569         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
52570         HAVE_DECL_VSNPRINTF.
52571         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
52572
52573         * modules/snprintf (Files): Remove lib/snprintf.h.
52574         (Depends-on): Add stdio.
52575         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
52576         (Include): Use <stdio.h> instead of snprintf.h.
52577         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
52578         HAVE_DECL_SNPRINTF.
52579         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
52580         * lib/getaddrinfo.c: Likewise.
52581
52582         * modules/stdio: New file.
52583         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
52584         * lib/snprintf.h: Remove file.
52585         * lib/vsnprintf.h: Remove file.
52586         * lib/.cppi-disable: Remove snprintf.h.
52587         * m4/stdio_h.m4: New file.
52588         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
52589
52590 2007-02-20  Jim Meyering  <jim@meyering.net>
52591
52592         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
52593         used by e.g., mingw.  From Bruno Haible.
52594
52595 2007-02-19  Bruno Haible  <bruno@clisp.org>
52596
52597         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
52598         warnings.
52599         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52600
52601 2007-02-19  Bruno Haible  <bruno@clisp.org>
52602
52603         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
52604         from mingw users.
52605
52606 2007-02-19  Bruno Haible  <bruno@clisp.org>
52607
52608         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
52609         warnings.
52610         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
52611
52612 2007-02-19  Jim Meyering  <jim@meyering.net>
52613
52614         Don't use FD after a successful "fdopendir (fd)".
52615         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
52616         Reset it by calling dirfd on the just-obtained DIR*.
52617
52618         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
52619         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
52620
52621 2007-02-18  Bruno Haible  <bruno@clisp.org>
52622
52623         * lib/readlink.c: Include <unistd.h>.
52624         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
52625         HAVE_READLINK.
52626         * modules/readlink (Depends-on): Add unistd.
52627         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52628         (Include): Add <unistd.h>.
52629
52630         * lib/getlogin_r.h: Remove file.
52631         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
52632         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
52633         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
52634         HAVE_DECL_GETLOGIN_R.
52635         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
52636         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52637         (Include): Use <unistd.h> instead of getlogin_r.h.
52638
52639         * lib/getcwd.h: Remove file.
52640         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
52641         * lib/xgetcwd.c: Likewise.
52642         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
52643         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
52644         * modules/getcwd (Files): Remove lib/getcwd.h.
52645         (Depends-on): Add unistd.
52646         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52647         (Include): Use <unistd.h> instad of getcwd.h.
52648
52649         * lib/ftruncate.c: Include <unistd.h> first.
52650         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
52651         Set HAVE_FTRUNCATE.
52652         * modules/ftruncate (Depends-on): Add unistd.
52653         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52654
52655         * lib/fchdir.c: Include <unistd.h> first.
52656         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
52657         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
52658         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
52659         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52660         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
52661
52662         * lib/dup2.c: Include <unistd.h> first.
52663         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
52664         HAVE_DUP2.
52665         * modules/dup2 (Depends-on): Add unistd.
52666         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52667
52668         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
52669         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
52670         REPLACE_CHOWN. Don't define chown as a macro here.
52671         * modules/chown (Depends-on): Add unistd.
52672         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52673
52674         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
52675         Add definition for GL_LINK_WARNING.
52676         (chown, dup2): New declarations.
52677         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
52678         link warning.
52679         (ftruncate): New declaration.
52680         (getcwd): New declaration, taken from old getcwd.h.
52681         (getlogin_r): New declaration, taken from old getlogin_r.h.
52682         (readlink): New declaration.
52683         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
52684         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
52685         (gl_PREREQ_UNISTD): Remove macro.
52686         (gl_UNISTD_MODULE_INDICATOR): New macro.
52687         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
52688         many new variables. Don't set UNISTD_H.
52689         * modules/unistd (Description): Change.
52690         (Depends-on): Add link-warning.
52691         (configure.ac): Update.
52692         (Makefile.am): Create unistd.h always. Substitute many new variables
52693         into it.
52694
52695 2007-02-18  Bruno Haible  <bruno@clisp.org>
52696
52697         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
52698         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
52699         HAVE_GETSUBOPT.
52700         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
52701         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
52702         * lib/getsubopt.h: Remove file.
52703         * modules/getsubopt (Files): Remove lib/getsubopt.h.
52704         (Depends-on): Add stdlib.
52705         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52706         (Includes): Use <stdlib.h> instead of getsubopt.h.
52707         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
52708         Set HAVE_GETSUBOPT.
52709         * lib/getsubopt.c: Don't include getsubopt.h.
52710
52711 2007-02-18  Bruno Haible  <bruno@clisp.org>
52712
52713         * modules/fchdir (Depends-on): Add dup2.
52714
52715 2007-02-18  Bruno Haible  <bruno@clisp.org>
52716
52717         * lib/stdlib_.h: Handle glibc's special invocation convention
52718         specially.
52719
52720 2007-02-18  Bruno Haible  <bruno@clisp.org>
52721
52722         * modules/stdlib-tests: New file.
52723         * tests/test-stdlib.c: New file.
52724
52725         * modules/mkstemp (Files): Remove lib/mkstemp.h.
52726         (Depends-on): Add stdlib.
52727         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52728         (Includes): Use <stdlib.h> instead of mkstemp.h.
52729         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
52730         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
52731         * lib/mkstemp.c: Don't include mkstemp.h.
52732         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
52733         * lib/stdlib--.h: Don't include mkstemp.h.
52734
52735         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
52736         (Depends-on): Add stdlib.
52737         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52738         (Includes): Use <stdlib.h> instead of mkdtemp.h.
52739         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
52740         HAVE_MKDTEMP.
52741         * lib/mkdtemp.c: Don't include mkdtemp.h.
52742         * lib/clean-temp.c: Don't include mkdtemp.h.
52743
52744         * modules/exit (Files): Remove lib/exit.h.
52745         (Depends-on): Add stdlib.
52746         (Makefile.am): Remove lib_SOURCES.
52747         (Include): Use <stdlib.h> instead of exit.h.
52748         * lib/argmatch.c: Don't include exit.h.
52749         * lib/execute.c: Likewise.
52750         * lib/pagealign_alloc.c: Likewise.
52751         * lib/pipe.c: Likewise.
52752         * lib/wait-process.c: Likewise.
52753         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
52754         * lib/exitfail.c: Likewise.
52755         * lib/savewd.c: Likewise.
52756         * lib/xsetenv.c: Likewise.
52757
52758         * modules/stdlib: New file.
52759         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
52760         and extra comments about mkstemp().
52761         * lib/exit.h: Remove file.
52762         * lib/mkdtemp.h: Remove file.
52763         * lib/mkstemp.h: Remove file.
52764         * m4/stdlib_h.m4: New file.
52765         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
52766
52767 2007-02-18  Bruno Haible  <bruno@clisp.org>
52768
52769         * modules/math-tests: New file.
52770         * tests/test-math.c: New file.
52771
52772         * modules/math: New file.
52773         * modules/mathl (Files): Remove lib/mathl.h.
52774         (Depends-on): Add math.
52775         (Makefile.am): Don't mention mathl.h.
52776         (Include): Use <math.h> instead of mathl.h.
52777         * lib/math_.h: New file.
52778         * lib/mathl.h: Remove file.
52779         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
52780         mathl.h.
52781         * lib/asinl.c: Likewise.
52782         * lib/atanl.c: Likewise.
52783         * lib/ceill.c: Likewise.
52784         * lib/cosl.c: Likewise.
52785         * lib/expl.c: Likewise.
52786         * lib/floorl.c: Likewise.
52787         * lib/frexpl.c: Likewise.
52788         * lib/ldexpl.c: Likewise.
52789         * lib/logl.c: Likewise.
52790         * lib/sincosl.c: Likewise.
52791         * lib/sinl.c: Likewise.
52792         * lib/sqrtl.c: Likewise.
52793         * lib/tanl.c: Likewise.
52794         * lib/trigl.c: Likewise.
52795         * m4/math_h.m4: New file.
52796         * MODULES.html.sh (Mathematics): Add math.
52797
52798 2007-02-17  Bruno Haible  <bruno@clisp.org>
52799
52800         * modules/wctype-tests: New file.
52801         * tests/test-wctype.c: New file.
52802
52803         * modules/wchar-tests: New file.
52804         * tests/test-wchar.c: New file.
52805
52806         * modules/unistd-tests: New file.
52807         * tests/test-unistd.c: New file.
52808
52809         * modules/time-tests: New file.
52810         * tests/test-time.c: New file.
52811
52812         * modules/sysexits-tests: New file.
52813         * tests/test-sysexits.c: New file.
52814
52815         * modules/sys_time-tests: New file.
52816         * tests/test-sys_time.c: New file.
52817
52818         * modules/sys_stat-tests: New file.
52819         * tests/test-sys_stat.c: New file.
52820
52821         * modules/sys_socket-tests: New file.
52822         * tests/test-sys_socket.c: New file.
52823
52824         * modules/sys_select-tests: New file.
52825         * tests/test-sys_select.c: New file.
52826
52827         * modules/string-tests: New file.
52828         * tests/test-string.c: New file.
52829
52830         * modules/stdbool-tests: New file.
52831         * tests/test-stdbool.c: New file.
52832
52833         * modules/netinet_in-tests: New file.
52834         * tests/test-netinet_in.c: New file.
52835
52836         * modules/inttypes-tests: New file.
52837         * tests/test-inttypes.c: New file.
52838
52839         * modules/fcntl-tests: New file.
52840         * tests/test-fcntl.c: New file.
52841
52842         * modules/byteswap-tests: New file.
52843         * tests/test-byteswap.c: New file.
52844
52845         * modules/arpa_inet-tests: New file.
52846         * tests/test-arpa_inet.c: New file.
52847
52848 2007-02-17  Bruno Haible  <bruno@clisp.org>
52849
52850         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
52851         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
52852         if the corresponding module is not enabled. Emit link warnings if
52853         the function is used nevertheless.
52854         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
52855         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
52856         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
52857         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
52858         * modules/inttypes (Depends-on): Add link-warning.
52859         (Makefile.am): Copy the contents of build-aux/link-warning.h into
52860         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
52861         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
52862         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
52863         * modules/imaxdiv (configure.ac): Likewise.
52864         * modules/strtoimax (configure.ac): Likewise.
52865         * modules/strtoumax (configure.ac): Likewise.
52866
52867 2007-02-17  Bruno Haible  <bruno@clisp.org>
52868
52869         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
52870         gl_STRING_MODULE_INDICATOR_DEFAULTS.
52871         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
52872         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
52873
52874 2007-02-17  Bruno Haible  <bruno@clisp.org>
52875
52876         * modules/link-warning: New file.
52877         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
52878         * lib/string_.h (GL_LINK_WARNING): Remove definition.
52879         * modules/string (Depends-on): Add link-warning.
52880         (Makefile.am): Copy the contents of build-aux/link-warning.h into
52881         string.h.
52882         * MODULES.html.sh (Support for building libraries and executables): Add
52883         link-warning.
52884
52885 2007-02-17  Bruno Haible  <bruno@clisp.org>
52886
52887         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
52888         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
52889         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
52890         long lines.
52891
52892 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
52893             Bruno Haible  <bruno@clisp.org>
52894
52895         * modules/tmpfile: New file.
52896         * lib/tmpfile.c: New file.
52897         * m4/tmpfile.m4: New file.
52898         * MODULES.html.sh (func_all_modules): New section "Input/output".
52899
52900 2007-02-15  Bruno Haible  <bruno@clisp.org>
52901
52902         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
52903         (supports_delete_on_close): New function.
52904         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
52905
52906 2007-02-14  Bruno Haible  <bruno@clisp.org>
52907
52908         * modules/mbspcasecmp-tests: New file.
52909         * tests/test-mbspcasecmp.sh: New file.
52910         * tests/test-mbspcasecmp.c: New file.
52911
52912         New module mbspcasecmp.
52913         * modules/mbspcasecmp: New file.
52914         * lib/mbspcasecmp.c: New file.
52915         * lib/string_.h (strncasecmp): Change warning message.
52916         (mbspcasecmp): New declaration.
52917         * m4/mbspcasecmp.m4: New file.
52918         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52919         GNULIB_MBSPCASECMP.
52920         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
52921         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
52922
52923 2007-02-14  Bruno Haible  <bruno@clisp.org>
52924
52925         * modules/mbsncasecmp-tests: New file.
52926         * tests/test-mbsncasecmp.sh: New file.
52927         * tests/test-mbsncasecmp.c: New file.
52928
52929         New module mbsncasecmp.
52930         * modules/mbsncasecmp: New file.
52931         * lib/mbsncasecmp.c: New file.
52932         * lib/string_.h (mbsncasecmp): New declaration.
52933         * m4/mbsncasecmp.m4: New file.
52934         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52935         GNULIB_MBSNCASECMP.
52936         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
52937         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
52938
52939 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
52940
52941         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
52942         Verify that it doesn't overlap with our flags.
52943         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
52944         do not have the desired effect in multibyte locales; instead, use
52945         mbscasecmp.
52946         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
52947         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
52948         we don't require GNU fnmatch ourselves (if our users require it, they
52949         should do so explicitly).
52950
52951         Fix regex code so it doesn't rely on strcasecmp.
52952         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
52953         Otherwise, include gnulib's langinfo.h.
52954         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
52955         undesirable behavior in non-C locales.  Instead, rely on localecharset.
52956         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
52957         * modules/regex (FILES): Remove m4/codeset.m4.
52958         (Depends-on): Add localcharset.  Remove strcase.
52959
52960 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52961
52962         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
52963         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
52964
52965 2007-02-13  Bruno Haible  <bruno@clisp.org>
52966
52967         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
52968         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52969
52970 2007-02-12  Bruno Haible  <bruno@clisp.org>
52971
52972         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
52973         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
52974         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
52975         time warning rather than a link error.
52976
52977 2007-02-12  Bruno Haible  <bruno@clisp.org>
52978
52979         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
52980         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52981         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52982
52983 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
52984
52985         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
52986         args, not 2.
52987
52988 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
52989
52990         New module 'time', so that apps can include <time.h> as per
52991         POSIX and GNU instead of separate include files like time_r.h
52992         and timegm.h.  This implementation tries out a simpler approach
52993         for replacing decls in standard include files (as compared to
52994         the string module), somewhat as an experiment.
52995
52996         * config/srclist.txt: Comment out mktime.c for now.
52997         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
52998         since it doesn't apply any more.  Use generic wording instead.
52999         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
53000         'time'.
53001         * lib/time_.h, m4/time_h.m4, modules/time: New files.
53002         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
53003         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
53004         Don't include <sys/types.h>; no longer needed since we assume C89.
53005         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
53006         * lib/strftime.c: Likewise.
53007         * lib/time_r.c: Likewise.
53008         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
53009         * lib/nanosleep.c: Include <time.h> first, to check interface.
53010         * lib/strptime.c: Likewise.
53011         * lib/time_r.c: Likewise.
53012         * lib/timegm.c: Likewise.
53013         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
53014         needed.
53015         * lib/timegm.c: Don't include timegm.h; no longer needed.
53016         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
53017         time.h now handles any problems in that area.
53018         (struct timespec, nanosleep): Remove; time.h now arranges for these.
53019         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
53020         that time.h defines struct timespec.
53021         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
53022         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
53023         handles that.
53024         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
53025         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
53026         needed.  Set REPLACE_LOCALTIME.
53027         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
53028         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
53029         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
53030         nanosleep; time_h.m4 now does that.  Don't require
53031         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
53032         module handles this now.
53033         * modules/getdate (Depends-on): Remove timespec.  Add time.
53034         * modules/nanosleep (Depends-on): Likewise.
53035         * modules/stat-time (Depends-on): Likewise.
53036         * modules/nanosleep (Include): Include time.h, not timespec.h.
53037         * modules/strptime (Files): Remove lib/strptime.h.
53038         (Depends-on): Add extensions, time.
53039         (Include): Include time.h, not strptime.h.
53040         * modules/time_r (Files): Remove lib/time_r.h.
53041         (Depends-on): Add time.
53042         (Include): Include time.h, not time_r.h.
53043         * modules/timegm: Likewise.
53044         * modules/timespec (Description): Now does timespec-related decls
53045         of our own, instead of struct timespec itself.
53046         (Depends-on): Add time; remove extensions.
53047         (Maintainer): Add self.
53048         * modules/utimecmp (Depends-on): Add time; remove timespec.
53049         * modules/utimens (Depends-on): Likewise.
53050         * modules/xnanosleep (Depends-on): Likewise.
53051
53052 2007-02-11  Bruno Haible  <bruno@clisp.org>
53053
53054         * lib/c-strstr.c: Include allocsa.h.
53055         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53056         * lib/c-strcasestr.c: Include allocsa.h.
53057         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53058         * lib/strcasestr.c: Include allocsa.h.
53059         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53060         * lib/mbsstr.c: Include allocsa.h.
53061         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
53062         allocsa/freesa instead of malloc/free.
53063         * lib/mbscasestr.c: Include allocsa.h.
53064         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
53065         allocsa/freesa instead of malloc/free.
53066         * modules/c-strstr (Depends-on): Add allocsa.
53067         * modules/c-strcasestr (Depends-on): Likewise.
53068         * modules/strcasestr (Depends-on): Likewise.
53069         * modules/mbsstr (Depends-on): Likewise.
53070         * modules/mbscasestr (Depends-on): Likewise.
53071
53072 2007-02-11  Bruno Haible  <bruno@clisp.org>
53073
53074         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
53075
53076         * modules/mbsspn-tests: New file.
53077         * tests/test-mbsspn.sh: New file.
53078         * tests/test-mbsspn.c: New file.
53079
53080 2007-02-11  Bruno Haible  <bruno@clisp.org>
53081
53082         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
53083
53084         * modules/mbspbrk-tests: New file.
53085         * tests/test-mbspbrk.sh: New file.
53086         * tests/test-mbspbrk.c: New file.
53087
53088 2007-02-11  Bruno Haible  <bruno@clisp.org>
53089
53090         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
53091         unneeded cast.
53092
53093         * modules/mbscspn-tests: New file.
53094         * tests/test-mbscspn.sh: New file.
53095         * tests/test-mbscspn.c: New file.
53096
53097 2007-02-11  Bruno Haible  <bruno@clisp.org>
53098
53099         * modules/mbscasecmp-tests: New file.
53100         * tests/test-mbscasecmp.sh: New file.
53101         * tests/test-mbscasecmp.c: New file.
53102
53103 2007-02-11  Bruno Haible  <bruno@clisp.org>
53104
53105         Ensure O(n) worst-case complexity of mbscasestr.
53106         * lib/mbscasestr.c: Include stdbool.h.
53107         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
53108         functions.
53109         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
53110         the bookkeeping indicates that it's worth it.
53111         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
53112
53113         * modules/mbscasestr-tests: New file.
53114         * tests/test-mbscasestr1.c: New file.
53115         * tests/test-mbscasestr2.sh: New file.
53116         * tests/test-mbscasestr2.c: New file.
53117         * tests/test-mbscasestr3.sh: New file.
53118         * tests/test-mbscasestr3.c: New file.
53119         * tests/test-mbscasestr4.sh: New file.
53120         * tests/test-mbscasestr4.c: New file.
53121         * m4/locale-tr.m4: New file.
53122
53123 2007-02-11  Bruno Haible  <bruno@clisp.org>
53124
53125         Ensure O(n) worst-case complexity of mbsstr.
53126         * lib/mbsstr.c: Include stdbool.h.
53127         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
53128         functions.
53129         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
53130         bookkeeping indicates that it's worth it.
53131         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
53132
53133         * modules/mbsstr-tests: New file.
53134         * tests/test-mbsstr1.c: New file.
53135         * tests/test-mbsstr2.sh: New file.
53136         * tests/test-mbsstr2.c: New file.
53137         * tests/test-mbsstr3.sh: New file.
53138         * tests/test-mbsstr3.c: New file.
53139         * m4/locale-fr.m4: New file.
53140
53141 2007-02-11  Bruno Haible  <bruno@clisp.org>
53142
53143         * lib/mbsrchr.c (mbsrchr): Fix bug.
53144
53145         * modules/mbsrchr-tests: New file.
53146         * tests/test-mbsrchr.sh: New file.
53147         * tests/test-mbsrchr.c: New file.
53148
53149 2007-02-11  Bruno Haible  <bruno@clisp.org>
53150
53151         * lib/mbschr.c (mbschr): Fix bug.
53152
53153         * modules/mbschr-tests: New file.
53154         * tests/test-mbschr.sh: New file.
53155         * tests/test-mbschr.c: New file.
53156         * m4/locale-zh.m4: New file.
53157
53158 2007-02-11  Bruno Haible  <bruno@clisp.org>
53159
53160         Support for copying multibyte string iterators.
53161         * lib/mbiter.h: Include <string.h>.
53162         (mbiter_multi_copy): New function.
53163         (mbi_copy): New macro.
53164         * lib/mbuiter.h: Include <string.h>.
53165         (mbuiter_multi_copy): New function.
53166         (mbui_copy): New macro.
53167
53168 2007-02-11  Bruno Haible  <bruno@clisp.org>
53169
53170         New module mbslen.
53171         * modules/mbslen: New file.
53172         * lib/mbslen.c: New file.
53173         * lib/string_.h (mbslen): New declaration.
53174         * m4/mbslen.m4: New file.
53175         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53176         GNULIB_MBSLEN.
53177         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
53178         * MODULES.html.sh (Internationalization functions): Add mbslen.
53179
53180 2007-02-11  Bruno Haible  <bruno@clisp.org>
53181
53182         Ensure O(n) worst-case complexity of strcasestr substitute.
53183         * lib/strcasestr.c: Include stdbool.h.
53184         (knuth_morris_pratt): New function.
53185         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
53186         bookkeeping indicates that it's worth it.
53187         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
53188
53189         * modules/strcasestr-tests: New file.
53190         * tests/test-strcasestr.c: New file.
53191
53192 2007-02-11  Bruno Haible  <bruno@clisp.org>
53193
53194         Ensure O(n) worst-case complexity of c_strcasestr.
53195         * lib/c-strcasestr.c: Include stdbool.h, string.h.
53196         (knuth_morris_pratt): New function.
53197         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
53198         the bookkeeping indicates that it's worth it.
53199         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
53200
53201         * modules/c-strcasestr-tests: New file.
53202         * tests/test-c-strcasestr.c: New file.
53203
53204 2007-02-11  Bruno Haible  <bruno@clisp.org>
53205
53206         Ensure O(n) worst-case complexity of c_strstr.
53207         * lib/c-strstr.c: Include stdbool.h, string.h.
53208         (knuth_morris_pratt): New function.
53209         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
53210         bookkeeping indicates that it's worth it.
53211         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
53212
53213         * lib/c-strstr.c: Complete rewrite for maintainability.
53214
53215         * modules/c-strstr-tests: New file.
53216         * tests/test-c-strstr.c: New file.
53217
53218 2007-02-11  Bruno Haible  <bruno@clisp.org>
53219
53220         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
53221         5.2.1 and earlier, whereby \055 was treated just like the range
53222         delimiter '-'.
53223         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53224
53225 2007-02-08  Bruno Haible  <bruno@clisp.org>
53226
53227         * modules/regex (Depends-on): Add stdbool.
53228         Reported by Dalibor Topic <robilad@kaffe.org>.
53229
53230 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
53231
53232         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
53233         Prefer returning from main to exiting from it.
53234         Remove unnecessary parens after sizeof.
53235
53236 2007-02-05  Bruno Haible  <bruno@clisp.org>
53237
53238         New module mbssep.
53239         * modules/mbssep: New file.
53240         * lib/mbssep.c: New file.
53241         * lib/string_.h (strsep): Add a conditional link warning.
53242         (mbssep): New declaration.
53243         * m4/mbssep.m4: New file.
53244         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53245         GNULIB_MBSSEP.
53246         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
53247         * MODULES.html.sh (Internationalization functions): Add mbssep.
53248
53249 2007-02-05  Bruno Haible  <bruno@clisp.org>
53250
53251         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
53252         Optimize search in case of 1 delimiter.
53253
53254 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
53255
53256         * lib/acl.h: Include sys/types.h before sys/acl.h.
53257
53258 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
53259
53260         Merge upstream fix for glibc bugzilla #3957:
53261
53262         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
53263
53264         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
53265         bit for RE_HAT_LISTS_NOT_NEWLINE.
53266         (build_charclass_op): Remove bogus comment.
53267
53268 2007-02-05  Simon Josefsson  <simon@josefsson.org>
53269
53270         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
53271
53272 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
53273
53274         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
53275         * lib/memmem.c [!defined _LIBC]: Include config.h.
53276
53277 2007-02-04  Bruno Haible  <bruno@clisp.org>
53278
53279         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
53280         warning message.
53281
53282 2007-02-04  Bruno Haible  <bruno@clisp.org>
53283
53284         New module mbstok_r.
53285         * modules/mbstok_r: New file.
53286         * lib/mbstok_r.c: New file.
53287         * lib/string_.h (strtok_r): Change argument names to match the
53288         comments. Add a conditional link warning.
53289         (mbstok_r): New declaration.
53290         * m4/mbstok_r.m4: New file.
53291         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53292         GNULIB_MBSTOK_R.
53293         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
53294         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
53295
53296 2007-02-04  Bruno Haible  <bruno@clisp.org>
53297
53298         New module mbsspn.
53299         * modules/mbsspn: New file.
53300         * lib/mbsspn.c: New file.
53301         * lib/string_.h (strspn): Add a conditional link warning.
53302         (mbsspn): New declaration.
53303         * m4/mbsspn.m4: New file.
53304         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53305         GNULIB_MBSSPN.
53306         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
53307         * MODULES.html.sh (Internationalization functions): Add mbsspn.
53308
53309 2007-02-04  Bruno Haible  <bruno@clisp.org>
53310
53311         New module mbspbrk.
53312         * modules/mbspbrk: New file.
53313         * lib/mbspbrk.c: New file.
53314         * lib/string_.h (strpbrk): Add a conditional link warning.
53315         (mbspbrk): New declaration.
53316         * m4/mbspbrk.m4: New file.
53317         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53318         GNULIB_MBSPBRK.
53319         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
53320         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
53321
53322 2007-02-04  Bruno Haible  <bruno@clisp.org>
53323
53324         New module mbscspn.
53325         * modules/mbscspn: New file.
53326         * lib/mbscspn.c: New file.
53327         * lib/string_.h (strcspn): Add a conditional link warning.
53328         (mbscspn): New declaration.
53329         * m4/mbscspn.m4: New file.
53330         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53331         GNULIB_MBSCSPN.
53332         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
53333         * MODULES.html.sh (Internationalization functions): Add mbscspn.
53334
53335 2007-02-04  Bruno Haible  <bruno@clisp.org>
53336
53337         New module mbscasestr, reduced goal of strcasestr.
53338         * modules/mbscasestr: New file.
53339         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
53340         (mbscasestr): Renamed from strcasestr.
53341         * lib/strcasestr.c: Don't include mbuiter.h.
53342         (strcasestr): Remove support for multibyte locales.
53343         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
53344         Change the conditional link warning.
53345         (mbscasestr): New declaration.
53346         * m4/mbscasestr.m4: New file.
53347         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
53348         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
53349         REPLACE_STRCASESTR.
53350         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
53351         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53352         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
53353         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
53354         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
53355         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
53356         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
53357         (Depends-on): Remove mbuiter.
53358         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
53359
53360 2007-02-04  Bruno Haible  <bruno@clisp.org>
53361
53362         Simplify handling of strncasecmp.
53363         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
53364         the conditional link warning.
53365         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53366         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
53367         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
53368         * modules/strcase (configure.ac): Don't invoke
53369         gl_STRING_MODULE_INDICATOR.
53370         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
53371
53372 2007-02-04  Bruno Haible  <bruno@clisp.org>
53373
53374         New module mbscasecmp, reduced goal of strcasecmp.
53375         * modules/mbscasecmp: New file.
53376         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
53377         (mbscasecmp): Renamed from strcasecmp.
53378         * lib/strcasecmp.c: Don't include mbuiter.h.
53379         (strcasecmp): Remove support for multibyte locales.
53380         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
53381         Change the conditional link warning.
53382         (mbscasecmp): New declaration.
53383         * m4/mbscasecmp.m4: New file.
53384         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
53385         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
53386         REPLACE_STRCASECMP.
53387         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
53388         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53389         GNULIB_MBSCASECMP.
53390         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
53391         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
53392         * modules/strcase (Files): Remove m4/mbrtowc.m4.
53393         (Depends-on): Remove mbuiter.
53394         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
53395
53396 2007-02-04  Bruno Haible  <bruno@clisp.org>
53397
53398         New module mbsstr. Remove module strstr.
53399         * modules/mbsstr: New file.
53400         * modules/strstr: Remove file.
53401         * lib/mbsstr.c: Renamed from lib/strstr.c.
53402         (mbsstr): Renamed from strstr.
53403         * lib/string_.h (strstr): Remove declaration. Change the conditional
53404         link warning.
53405         (mbsstr): New declaration.
53406         * m4/mbsstr.m4: New file.
53407         * m4/strstr.m4: Remove file.
53408         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
53409         REPLACE_STRSTR.
53410         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
53411         Don't initialize GNULIB_STRSTR.
53412         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
53413         substitute GNULIB_STRSTR and REPLACE_STRSTR.
53414         * MODULES.html.sh (Internationalization functions): Add mbsstr.
53415         (Support for systems lacking ANSI C 89): Remove strstr.
53416
53417 2007-02-04  Bruno Haible  <bruno@clisp.org>
53418
53419         New module mbsrchr.
53420         * modules/mbsrchr: New file.
53421         * lib/mbsrchr.c: New file.
53422         * lib/string_.h (strrchr): Add a conditional link warning.
53423         (mbsrchr): New declaration.
53424         * m4/mbsrchr.m4: New file.
53425         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53426         GNULIB_MBSRCHR.
53427         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
53428         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
53429
53430 2007-02-04  Bruno Haible  <bruno@clisp.org>
53431
53432         New module mbschr.
53433         * modules/mbschr: New file.
53434         * lib/mbschr.c: New file.
53435         * lib/string_.h (strchr): Add a conditional link warning.
53436         (mbschr): New declaration.
53437         * m4/mbschr.m4: New file.
53438         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53439         GNULIB_MBSCHR.
53440         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
53441         * MODULES.html.sh (Internationalization functions): Add mbschr.
53442
53443 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
53444
53445         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
53446
53447         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
53448
53449 2007-02-04  Bruno Haible  <bruno@clisp.org>
53450
53451         New module description section 'configure.ac-early'.
53452         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
53453         (func_get_autoconf_early_snippet): New function.
53454         (func_import, func_create_testdir): Use it. Remove special cases for
53455         modules 'extensions' and 'lock'.
53456         * modules/extensions (configure.ac-early): Require
53457         gl_USE_SYSTEM_EXTENSIONS.
53458         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
53459
53460 2007-02-04  Bruno Haible  <bruno@clisp.org>
53461
53462         Make use of gcj-4.3's -fsource and -ftarget option.
53463         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
53464         and if so try the options -fsource and -ftarget.
53465         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
53466         source_version, ftarget_option, target_version arguments.
53467         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
53468         (is_envjavac_oldgcj_14_14_usable): Renamed from
53469         is_envjavac_gcj_14_14_usable.
53470         (is_envjavac_oldgcj_14_13_usable): Renamed from
53471         is_envjavac_gcj_14_13_usable.
53472         (is_gcj_present): Update.
53473         (is_gcj_43, is_gcj43_usable): New functions.
53474         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
53475         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
53476         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
53477         try the options -fsource and -ftarget.
53478
53479 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53480
53481         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
53482         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
53483         larger value.
53484
53485 2007-02-03  Jim Meyering  <jim@meyering.net>
53486
53487         Give tools a better chance to allocate space for very large buffers.
53488         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
53489
53490         Make pwd and readlink work also when run with an unreadable parent dir
53491         on systems with openat support.
53492         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
53493         provided getcwd function, even when we have openat support.
53494         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
53495
53496 2007-02-02  Bruno Haible  <bruno@clisp.org>
53497
53498         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
53499         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
53500         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
53501         portability problems if one of these functions is only used on specific
53502         platforms.
53503         Reported by Paul Eggert.
53504
53505 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
53506
53507         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
53508         is causing more trouble than it's curing.
53509         * lib/regex_internal.h (__mempcpy): Remove.
53510         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
53511         (and make the code a tad smaller to boot).
53512         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
53513
53514 2007-02-02  Jim Meyering  <jim@meyering.net>
53515
53516         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
53517         section, not in the Makefile.am: one.
53518
53519 2007-02-02  Eric Blake  <ebb9@byu.net>
53520
53521         * lib/strchrnul.c: Always include config.h first.
53522
53523         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
53524         gnulib strstr is not necessary here.
53525
53526 2007-02-02  Simon Josefsson  <simon@josefsson.org>
53527
53528         * m4/socklen.m4: Fix typo.
53529
53530 2007-02-02  Eric Blake  <ebb9@byu.net>
53531
53532         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
53533         * modules/netinet_in (Makefile.am): Likewise.
53534
53535 2007-02-01  Bruno Haible  <bruno@clisp.org>
53536
53537         * lib/string_.h (GL_LINK_WARNING): New macro.
53538         (strcasecmp, strstr, strcasestr): If provided by the system,
53539         conditionally define as a macro that leads to a warning instead of to
53540         an error.
53541         (strncasecmp): Conditionally define as a macro that leads to a warning.
53542
53543 2007-02-01  Karl Berry  <karl@gnu.org>
53544
53545         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
53546
53547 2007-02-01  Bruno Haible  <bruno@clisp.org>
53548
53549         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
53550         renamings.
53551
53552 2007-02-01  Eric Blake  <ebb9@byu.net>
53553
53554         * modules/regex (Depends-on): Revert dependence on mempcpy.
53555         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
53556         module's definition of mempcpy.
53557         Reported by Paul Eggert.
53558
53559 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
53560
53561         * lib/string_.h: If the gnulib module XYZ is not present, undefine
53562         the symbol XYZ before redefining it.  This fixes a problem with
53563         programs that don't use XYZ, when compiled on systems that define
53564         XYZ to something else.
53565
53566 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
53567
53568         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
53569         occurs when "mkdir -m foo" creates a setgid directory that is (1)
53570         writeable to group or other and (2) is intended to have a special
53571         mode bit that is set or cleared.  In such a case, the directory
53572         should be neither group- nor other-writeable until the special
53573         mode bits are right.
53574
53575 2007-01-31  Eric Blake  <ebb9@byu.net>
53576
53577         * modules/mountlist (Depends-on): Add strstr.
53578
53579         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
53580         bug.
53581         * modules/string (Makefile.am): Remove redundant replacement.
53582         * modules/regex (Depends-on): Add mempcpy.
53583
53584 2007-01-31  Bruno Haible  <bruno@clisp.org>
53585
53586         New module description field 'Link'.
53587         * gnulib-tool (func_usage): Document --extract-link-directive.
53588         (sed_extract_prog): Recognize 'Link' directive.
53589         (func_get_link_directive): New function.
53590         (func_import): Show summary of link directives.
53591         Handle --extract-link-directive option.
53592         * modules/acl (Link): New section.
53593         * modules/clock-time (Link): New section.
53594         * modules/euidaccess (Link): New section.
53595         * modules/gettext (Link): New section.
53596         * modules/iconv (Link): New section.
53597         * modules/lock (Link): New section.
53598         * modules/nanosleep (Link): New section.
53599         * modules/readline (Link): New section.
53600
53601 2007-01-27  Bruno Haible  <bruno@clisp.org>
53602
53603         Enforce the use of gnulib modules for unportable <string.h> functions.
53604         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
53605         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
53606         (gl_HEADER_STRING_H_BODY): Require it.
53607         * lib/string_.h: If the gnulib module XYZ is not present, redefine
53608         the symbol XYZ to one that gives a link error.
53609         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
53610         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
53611         * modules/mempcpy (configure.ac): Likewise.
53612         * modules/memrchr (configure.ac): Likewise.
53613         * modules/stpcpy (configure.ac): Likewise.
53614         * modules/stpncpy (configure.ac): Likewise.
53615         * modules/strcase (configure.ac): Likewise.
53616         * modules/strcasestr (configure.ac): Likewise.
53617         * modules/strchrnul (configure.ac): Likewise.
53618         * modules/strdup (configure.ac): Likewise.
53619         * modules/strndup (configure.ac): Likewise.
53620         * modules/strnlen (configure.ac): Likewise.
53621         * modules/strpbrk (configure.ac): Likewise.
53622         * modules/strsep (configure.ac): Likewise.
53623         * modules/strstr (configure.ac): Likewise.
53624         * modules/strtok_r (configure.ac): Likewise.
53625
53626 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
53627
53628         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
53629
53630 2007-01-30  Jim Meyering  <jim@meyering.net>
53631
53632         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
53633
53634 2007-01-29  Bruno Haible  <bruno@clisp.org>
53635
53636         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
53637         * lib/execute.c: Likewise.
53638         * lib/pipe.c: Likewise.
53639         * lib/printf-args.h: Likewise.
53640         * lib/printf-args.c: Likewise.
53641         * lib/printf-parse.c: Likewise.
53642         * lib/vasnprintf.c: Likewise.
53643
53644 2007-01-29  Eric Blake  <ebb9@byu.net>
53645
53646         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
53647         declaration.
53648
53649 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
53650
53651         * lib/strptime.h (strptime): Use 'restrict' for args where
53652         POSIX requires this.
53653         * lib/strptime.c (strptime): Likewise.
53654         Change license notice from LGPL to GPL, since gnulib-tool will
53655         change this as needed.
53656         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
53657         defined.
53658         Include "strptime.h" first, to check interface.
53659         Do not #undef _LIBC and _NL_CURRENT.
53660         Do not include <stdlib.h>; no longer needed.
53661         Include "time_r.h" and declare ptime_locale_status
53662         only if _LIBC is not defined.
53663         (__P): Remove unused macro.
53664         (match_string): Bring back glibc version, but use it only if _LIBC
53665         is defined.
53666         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
53667         Remove unnecessary assertion and abort() call.
53668         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
53669         * m4/strptime.m4: Fix serial number comment.
53670         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
53671         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
53672         (Depends-on): Add time_r.
53673
53674 2007-01-29  Bruno Haible  <bruno@clisp.org>
53675
53676         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53677         strptime.
53678         * modules/strptime (Depends-on): Add stdbool.
53679         * lib/strptime.h: Include <time.h> always. Add comments.
53680
53681 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53682
53683         * modules/strptime: New file.
53684         * lib/strptime.h: New file.
53685         * lib/strptime.c: New file.
53686         * m4/strptime.m4: New file.
53687
53688 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53689
53690         * MODULES.html.sh: New module mpsort.
53691         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
53692
53693         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
53694         a circularity problem with HP-UX ia64 reported by Bob Proulx in
53695         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
53696         All uses changed.
53697         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
53698         All uses changed.
53699         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
53700         to _Restrict_.
53701         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
53702         the parameter matches the prototype.
53703
53704 2007-01-28  Jim Meyering  <jim@meyering.net>
53705
53706         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
53707         sys/time.h here, reverting that part of the previous patch:
53708         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
53709
53710 2007-01-28  Bruno Haible  <bruno@clisp.org>
53711
53712         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
53713         value of $(SYS_TIME_H).
53714         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
53715         remove it conditionally, too. [added by Jim Meyering]
53716         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
53717         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
53718         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
53719         GETTIMEOFDAY_REPLACEMENT to 1.
53720
53721 2007-01-28  Bruno Haible  <bruno@clisp.org>
53722
53723         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
53724         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
53725         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
53726         Set UNISTD_H instead of UNISTD_H2.
53727         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
53728
53729 2007-01-28  Bruno Haible  <bruno@clisp.org>
53730
53731         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
53732         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
53733
53734 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53735
53736         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
53737         (func_create_testdir): Ensure C locale for `grep' and `tr'
53738         character ranges.
53739         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
53740         ACLOCAL_AMFLAGS parsing state machine.
53741
53742 2007-01-27  Bruno Haible  <bruno@clisp.org>
53743
53744         * modules/unistr/base: Update.
53745
53746 2007-01-27  Bruno Haible  <bruno@clisp.org>
53747
53748         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
53749         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
53750         * modules/unistr/u32-mbtouc-unsafe: Renamed from
53751         modules/unistr/u32-mbtouc.
53752         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
53753         * lib/unistr.h: Update.
53754         * lib/linebreak.c: Update.
53755         * modules/unistr/u32-mbtouc: Renamed from
53756         modules/unistr/u32-mbtouc-safe.
53757         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
53758         * lib/unistr.h: Update.
53759         * lib/unistr/u32-to-u8.c: Update.
53760         * lib/unistr/u32-to-u16.c: Update.
53761
53762 2007-01-27  Bruno Haible  <bruno@clisp.org>
53763
53764         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
53765         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
53766         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
53767         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
53768         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
53769         * modules/unistr/u16-mbtouc-unsafe: Renamed from
53770         modules/unistr/u16-mbtouc.
53771         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
53772         * lib/unistr.h: Update.
53773         * lib/linebreak.c: Update.
53774         * modules/linebreak: Update.
53775         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
53776         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
53777         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
53778         * modules/unistr/u16-mbtouc: Renamed from
53779         modules/unistr/u16-mbtouc-safe.
53780         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
53781         * lib/unistr.h: Update.
53782         * lib/unistr/u16-to-u8.c: Update.
53783         * modules/unistr/u16-to-u8: Update.
53784         * lib/unistr/u16-to-u32.c: Update.
53785         * modules/unistr/u16-to-u32: Update.
53786
53787 2007-01-27  Bruno Haible  <bruno@clisp.org>
53788
53789         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
53790         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
53791         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
53792         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
53793         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
53794         * modules/unistr/u8-mbtouc-unsafe: Renamed from
53795         modules/unistr/u8-mbtouc.
53796         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
53797         * lib/unistr.h: Update.
53798         * lib/striconveh.c: Update.
53799         * modules/striconveh: Update.
53800         * lib/linebreak.c: Update.
53801         * modules/linebreak: Update.
53802         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
53803         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
53804         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
53805         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
53806         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
53807         * lib/unistr.h: Update.
53808         * lib/striconveh.c: Update.
53809         * modules/striconveh: Update.
53810         * lib/unistr/u8-to-u16.c: Update.
53811         * modules/unistr/u8-to-u16: Update.
53812         * lib/unistr/u8-to-u32.c: Update.
53813         * modules/unistr/u8-to-u32: Update.
53814
53815 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53816
53817         Sync from Libtool.
53818         * lib/argz.c: Do not include strings.h nor memory.h, include
53819         string.h unconditionally.  Patch by Simon Josefsson.
53820
53821 2007-01-27  Bruno Haible  <bruno@clisp.org>
53822
53823         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
53824         from gl_HEADER_STRING_H_BODY.
53825         (gl_HEADER_STRING_H_BODY): Require it.
53826         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
53827         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
53828         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
53829         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
53830         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53831         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
53832         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53833         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
53834         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
53835         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53836         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
53837         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
53838         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
53839         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
53840         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
53841
53842 2007-01-27  Bruno Haible  <bruno@clisp.org>
53843
53844         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
53845         check_PROGRAMS into noinst_PROGRAMS.
53846         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
53847         check_PROGRAMS in this case.
53848         (func_import): Set for_test to false.
53849         (func_create_testdir): Set for_test to true.
53850
53851 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
53852             Bruno Haible  <bruno@clisp.org>
53853
53854         * modules/strcasestr (Files): Remove lib/strcasestr.h.
53855         (Depends-on): Add string.
53856         (Includes): Use <string.h> instead of strcasestr.h.
53857         * modules/string (Makefile.am): Also substitute the value of
53858         REPLACE_STRCASESTR.
53859         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
53860         assume strcasestr is declared in <string.h> not <strings.h>. Also
53861         set REPLACE_STRCASESTR.
53862         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
53863         REPLACE_STRCASESTR.
53864         * lib/strcasestr.h: Remove file.
53865         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
53866         * lib/string_.h (strcasestr): New declaration.
53867
53868 2007-01-27  Bruno Haible  <bruno@clisp.org>
53869
53870         * lib/string_.h: Use 'extern'.
53871
53872 2007-01-27  Jim Meyering  <jim@meyering.net>
53873
53874         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
53875         of set-but-not-used local, "q".
53876
53877         * lib/mempcpy.c: Include <config.h> before <string.h>.
53878         This fixes a compilation error on HP-UX, due to the system's
53879         "restrict"-using mempcpy prototype.
53880
53881 2007-01-26  Bruno Haible  <bruno@clisp.org>
53882
53883         Small optimization.
53884         * lib/javacomp.c: Include c-strstr.h.
53885          (is_envjavac_gcj): Use c_strstr instead of strstr.
53886         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
53887
53888 2007-01-26  Bruno Haible  <bruno@clisp.org>
53889
53890         * MODULES.html.sh (Unicode string functions): Add the new modules.
53891
53892         * modules/uniconv/u32-strconv-to-locale: New file.
53893         * lib/uniconv/u32-strconv-to-locale.c: New file.
53894
53895         * modules/uniconv/u16-strconv-to-locale: New file.
53896         * lib/uniconv/u16-strconv-to-locale.c: New file.
53897
53898         * modules/uniconv/u8-strconv-to-locale: New file.
53899         * lib/uniconv/u8-strconv-to-locale.c: New file.
53900
53901         * modules/uniconv/u32-strconv-from-locale: New file.
53902         * lib/uniconv/u32-strconv-from-locale.c: New file.
53903
53904         * modules/uniconv/u16-strconv-from-locale: New file.
53905         * lib/uniconv/u16-strconv-from-locale.c: New file.
53906
53907         * modules/uniconv/u8-strconv-from-locale: New file.
53908         * lib/uniconv/u8-strconv-from-locale.c: New file.
53909
53910         * modules/uniconv/u32-strconv-to-enc: New file.
53911         * lib/uniconv/u32-strconv-to-enc.c: New file.
53912         * modules/uniconv/u32-strconv-to-enc-tests: New file.
53913         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
53914
53915         * modules/uniconv/u16-strconv-to-enc: New file.
53916         * lib/uniconv/u16-strconv-to-enc.c: New file.
53917         * lib/uniconv/u-strconv-to-enc.h: New file.
53918         * modules/uniconv/u16-strconv-to-enc-tests: New file.
53919         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
53920
53921         * modules/uniconv/u8-strconv-to-enc: New file.
53922         * lib/uniconv/u8-strconv-to-enc.c: New file.
53923         * modules/uniconv/u8-strconv-to-enc-tests: New file.
53924         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
53925
53926         * modules/uniconv/u32-strconv-from-enc: New file.
53927         * lib/uniconv/u32-strconv-from-enc.c: New file.
53928         * modules/uniconv/u32-strconv-from-enc-tests: New file.
53929         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
53930
53931         * modules/uniconv/u16-strconv-from-enc: New file.
53932         * lib/uniconv/u16-strconv-from-enc.c: New file.
53933         * modules/uniconv/u16-strconv-from-enc-tests: New file.
53934         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
53935
53936         * modules/uniconv/u8-strconv-from-enc: New file.
53937         * lib/uniconv/u8-strconv-from-enc.c: New file.
53938         * lib/uniconv/u-strconv-from-enc.h: New file.
53939         * modules/uniconv/u8-strconv-from-enc-tests: New file.
53940         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
53941
53942         * modules/uniconv/u32-conv-from-enc: New file.
53943         * lib/uniconv/u32-conv-from-enc.c: New file.
53944         * modules/uniconv/u32-conv-from-enc-tests: New file.
53945         * tests/uniconv/test-u32-conv-from-enc.c: New file.
53946
53947         * modules/uniconv/u16-conv-from-enc: New file.
53948         * lib/uniconv/u16-conv-from-enc.c: New file.
53949         * lib/uniconv/u-conv-from-enc.h: New file.
53950         * modules/uniconv/u16-conv-from-enc-tests: New file.
53951         * tests/uniconv/test-u16-conv-from-enc.c: New file.
53952
53953         * modules/uniconv/u8-conv-from-enc: New file.
53954         * lib/uniconv/u8-conv-from-enc.c: New file.
53955         * modules/uniconv/u8-conv-from-enc-tests: New file.
53956         * tests/uniconv/test-u8-conv-from-enc.c: New file.
53957
53958         * modules/uniconv/base: New file.
53959         * lib/uniconv.h: New file.
53960
53961 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
53962
53963         * doc/gnulib-tool.texi (Initial import): Update to match current
53964         behavior with strdup module.
53965         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
53966         * lib/memmem.h: Remove; all uses removed.  This is now done
53967         by <string.h>.
53968         * lib/mempcpy.h: Likewise.
53969         * lib/memrchr.h: Likewise.
53970         * lib/stpcpy.h: Likewise.
53971         * lib/stpncpy.h: Likewise.
53972         * lib/strcase.h: Likewise.
53973         * lib/strchrnul.h: Likewise.
53974         * lib/strdup.h: Likewise.
53975         * lib/strndup.h: Likewise.
53976         * lib/strnlen.h: Likewise.
53977         * lib/strpbrk.h: Likewise.
53978         * lib/strsep.h: Likewise.
53979         * lib/strstr.h: Likewise.
53980         * lib/strtok_r.h: Likewise.
53981         * lib/string_.h: New file.
53982         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
53983         Rely on <string.h> instead.
53984         * lib/canon-host.c: Likewise.
53985         * lib/chdir-long.c: Likewise.
53986         * lib/concatpath.c: Likewise.
53987         * lib/exclude.c: Likewise.
53988         * lib/fchdir.c: Likewise.
53989         * lib/getaddrinfo.c: Likewise.
53990         * lib/getcwd.c: Likewise.
53991         * lib/getsubopt.c: Likewise.
53992         * lib/glob.c: Likewise.
53993         * lib/hard-locale.c: Likewise.
53994         * lib/iconvme.c: Likewise.
53995         * lib/javacomp.c: Likewise.
53996         * lib/mempcpy.c: Likewise.
53997         * lib/memrchr.c: Likewise.
53998         * lib/regex_internal.h: Likewise.
53999         * lib/stpncpy.c: Likewise.
54000         * lib/strcasecmp.c: Likewise.
54001         * lib/strchrnul.c: Likewise.
54002         * lib/strdup.c: Likewise.
54003         * lib/striconv.c: Likewise.
54004         * lib/striconveh.c: Likewise.
54005         * lib/striconveha.c: Likewise.
54006         * lib/strncasecmp.c: Likewise.
54007         * lib/strndup.c: Likewise.
54008         * lib/strnlen.c: Likewise.
54009         * lib/strsep.c: Likewise.
54010         * lib/strstr.c: Likewise.
54011         * lib/strtok_r.c: Likewise.
54012         * lib/userspec.c: Likewise.
54013         * lib/w32spawn.h: Likewise.
54014         * lib/xstrndup.c: Likewise.
54015         * lib/mountlist.c (strstr): Remove decl.
54016         * m4/string_h.m4: New file.
54017         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
54018         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
54019         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
54020         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
54021         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
54022         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
54023         Set REPLACE_STRCASECMP if necessary.
54024         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
54025         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
54026         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
54027         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
54028         HAVE_DECL_STRDUP if necessary.
54029         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
54030         since gl_FUNC_STRNDUP does that now.
54031         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
54032         Check for decl here...
54033         (gl_PREREQ_STRNLEN): ... not here.
54034         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
54035         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
54036         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
54037         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
54038         necessary.
54039         * modules/string: New file.
54040         * modules/memmem (Files): Remove special-purpose include file.
54041         (Depends-on): Add string.
54042         (Include): Include <string.h>, not the removed file.
54043         * modules/mempcpy: Likewise.
54044         * modules/memrchr: Likewise.
54045         * modules/stpcpy: Likewise.
54046         * modules/stpncpy: Likewise.
54047         * modules/strcase: Likewise.
54048         * modules/strchrnul: Likewise.
54049         * modules/strdup: Likewise.
54050         * modules/strndup: Likewise.
54051         * modules/strnlen: Likewise.
54052         * modules/strpbrk: Likewise.
54053         * modules/strsep: Likewise.
54054         * modules/strstr: Likewise.
54055         * modules/strtok_r: Likewise.
54056         * tests/test-dirname.c: Don't include "strdup.h", since
54057         <string.h> now suffices.
54058         * tests/test-memmem.c: Don't include "memmem.h", since
54059         <string.h> now suffices.
54060
54061 2007-01-25  Bruno Haible  <bruno@clisp.org>
54062
54063         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
54064         *resultp is 0.
54065
54066         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
54067         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
54068         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
54069         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
54070
54071         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
54072         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
54073         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
54074         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
54075         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
54076         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
54077
54078 2007-01-24  Bruno Haible  <bruno@clisp.org>
54079
54080         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
54081         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
54082         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
54083         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
54084         gl_FUNC_FTS_CORE.
54085         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
54086         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
54087         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
54088         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
54089         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
54090         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
54091         gl_FUNC_FCHOWNAT.
54092         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
54093         gl_FUNC_STRFTIME.
54094         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
54095         Reported by Ralf Wildenhues.
54096
54097 2007-01-24  Bruno Haible  <bruno@clisp.org>
54098
54099         Drop AC_REQUIRE calls that are redundant with the module dependencies.
54100         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
54101         gl_GETADDRINFO.
54102         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
54103         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
54104         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
54105
54106 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
54107
54108         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
54109         Don't use 'exit'; just return from 'main'.
54110         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
54111
54112         * lib/fnmatch_.h: Readjust white space and comments to match
54113         glibc, to avoid spurious diffs.
54114
54115 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54116
54117         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
54118         2004-12-01 change by Jakub Jelinek, since this code won't compile
54119         if !LIBC.  Problem reported by Bob Proulx.
54120
54121 2007-01-23  Bruno Haible  <bruno@clisp.org>
54122
54123         * lib/striconveh.c: Include c-strcaseeq.h.
54124         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
54125         * modules/striconveh (Depends-on): Add c-strcaseeq.
54126
54127 2007-01-23  Bruno Haible  <bruno@clisp.org>
54128
54129         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
54130
54131         * modules/c-strcaseeq: New file.
54132         * lib/c-strcaseeq.h: New file.
54133
54134         * modules/streq: New file.
54135         * lib/streq.h: New file.
54136
54137 2007-01-23  Bruno Haible  <bruno@clisp.org>
54138
54139         * modules/striconveha-tests: New file.
54140         * tests/test-striconveha.c: New file.
54141
54142         * lib/striconveha.h: Include <stdbool.h>.
54143         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
54144         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
54145         (mem_iconveha_notranslit): Renamed from mem_iconveha.
54146         (mem_iconveha): New function.
54147         (str_iconveha_notranslit): Renamed from str_iconveha.
54148         (str_iconveha): New function.
54149         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
54150         c-strcase.
54151
54152 2007-01-23  Bruno Haible  <bruno@clisp.org>
54153
54154         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
54155         encodings without forgiving before trying any encoding with handler.
54156         (str_iconveha): Try all encodings without forgiving before trying any
54157         encoding with handler.
54158
54159 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54160
54161         Import the following changes from libc.
54162
54163         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
54164
54165         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
54166
54167         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
54168
54169         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
54170         normal_bracket label.
54171
54172         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
54173
54174         [BZ #361]
54175         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
54176         to normal_bracket after fetching the next character.
54177
54178 2007-01-22  Bruno Haible  <bruno@clisp.org>
54179
54180         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
54181         argument.
54182         * lib/striconveh.c (iconv_carefully_1): New function.
54183         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
54184         argument.
54185         (str_cd_iconveh): Update.
54186         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
54187         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
54188         * tests/test-striconveh.c (MAGIC): New macro.
54189         (new_offsets): New function.
54190         (main): Test call with and without offsets.
54191
54192 2007-01-22  Bruno Haible  <bruno@clisp.org>
54193
54194         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
54195         * modules/sys_select (Makefile.am): Likewise.
54196         * modules/sys_socket (Makefile.am): Likewise.
54197         * modules/sys_time (Makefile.am): Likewise.
54198
54199 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
54200
54201         * modules/gettimeofday (License): Change from GPL to LGPL, since
54202         gettimeofday is a library function.
54203
54204 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54205
54206         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
54207
54208 2007-01-21  Bruno Haible  <bruno@clisp.org>
54209
54210         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
54211
54212 2007-01-21  Bruno Haible  <bruno@clisp.org>
54213
54214         * modules/striconveha: New file.
54215         * lib/striconveha.h: New file.
54216         * lib/striconveha.c: New file.
54217         * MODULES.html.sh (Internationalization functions): Add striconveha.
54218         * lib/striconv.c (str_iconv): Optimize the case of an empty input
54219         string.
54220         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
54221
54222 2007-01-21  Bruno Haible  <bruno@clisp.org>
54223
54224         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
54225         * lib/striconveh.c (str_iconveh): Likewise.
54226
54227 2007-01-21  Bruno Haible  <bruno@clisp.org>
54228
54229         * lib/striconveh.h (mem_iconveh): New declaration.
54230         * lib/striconveh.c (mem_iconveh): New function.
54231         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
54232
54233 2007-01-21  Bruno Haible  <bruno@clisp.org>
54234
54235         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
54236
54237         * lib/striconveh.h (mem_cd_iconveh): Change specification.
54238         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
54239         original result buffer.
54240         (str_cd_iconveh): Update.
54241         * tests/test-striconveh.c (main): Update.
54242
54243         * lib/striconv.h (mem_cd_iconv): Change specification.
54244         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
54245         result buffer.
54246         (str_cd_iconv): Update.
54247         * tests/test-striconv.c (main): Update.
54248
54249 2007-01-21  Bruno Haible  <bruno@clisp.org>
54250
54251         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
54252
54253 2007-01-20  Jim Meyering  <jim@meyering.net>
54254
54255         * lib/userspec.c (parse_with_separator): If a user or group string
54256         starts with "+", skip the corresponding name-to-ID look-up, since
54257         such a look-up must fail: user and group names may not include "+".
54258
54259 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
54260
54261         * lib/poll.c: Include sys/time.h and time.h unconditionally,
54262         since we now assume the sys_time module.
54263         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
54264         check for sys/time.h; no longer needed.
54265         * modules/poll (Depends-on): Depend on sys_time.
54266
54267 2007-01-18  Bruno Haible  <bruno@clisp.org>
54268
54269         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
54270         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
54271
54272         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
54273         gettimeofday.
54274
54275         * tests/test-gettimeofday.c: Include <time.h>.
54276         (dummy): Remove variable.
54277
54278         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
54279         gl_HEADER_SYS_TIME_H.
54280         (gl_HEADER_SYS_TIME_H): New macro.
54281
54282         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
54283         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54284         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
54285         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
54286         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54287         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
54288         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
54289         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54290         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
54291         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
54292         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54293
54294         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
54295         last change; it caused a compilation error when cross-compiling to
54296         Cygwin.
54297
54298 2007-01-18  Jim Meyering  <jim@meyering.net>
54299
54300         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
54301         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
54302         than the race-prone "test -d sys || mkdir sys".
54303         (configure.ac): Use AC_PROG_MKDIR_P.
54304         * modules/sys_select: Likewise.
54305         * modules/sys_socket: Likewise.
54306         * modules/sys_time: Likewise.
54307
54308 2007-01-18  Eric Blake  <ebb9@byu.net>
54309
54310         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
54311         replace gettimeofday.
54312         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
54313         name, to avoid infinite recursion.
54314
54315 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
54316
54317         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
54318         module sys_time.
54319         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
54320         assume timespec.h defines struct timeval.
54321         * lib/settime.c: Likewise.
54322         * lib/utimens.c: Likewise.
54323         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
54324         since we now assume the gettimeofday module.
54325         * lib/tempname.c (__gen_tempname): Likewise.
54326         * lib/gettimeofday.h: Remove.
54327         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
54328         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
54329         Include <time.h>, for 'time()'.
54330         (localtime_buffer_addr): Also use this workaround if
54331         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
54332         to simplify the uses.  All uses changed.
54333         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
54334         that #undef is inside {}, and 'const' follows type name consistently.
54335         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
54336         (gettimeofday): Do not use the maximum possible value for
54337         tv->tv_usec, since that might break usages other than ls.c.
54338         Instead, we'll leave ls.c alone.  This undoes today's patch
54339         by Bruno.  Add a compile-time warning for 1s-clock resolution;
54340         we've never observed the problem but might as well keep the
54341         canary.
54342         * lib/nanosleep.c: Include timespec.h first, for interface check.
54343         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
54344         now assume the sys_time module.
54345         * lib/tempname.c: Likewise.
54346         * lib/timespec.h: Likewise.
54347         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
54348         needed.
54349         * lib/strftime.c: Likewise.
54350         * lib/timespec.h: Likewise.
54351         * lib/posixtm.c: Include posixtm.h first, for interface check.
54352         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
54353         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
54354         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
54355         * lib/sys_time_.h: New file.
54356         * lib/timespec.h (struct timespec): Use long int, not long.
54357         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
54358         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
54359         Remove obsolescent call to AC_HEADER_TIME.
54360         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
54361         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
54362         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
54363         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
54364         Likewise.
54365         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
54366         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
54367         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
54368         into the sys_time module.  Check for gettimeofday just once.
54369         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
54370         for gettimeofday signature to just check the signature.  Merely
54371         compile it, since linking doesn't test signature.  Improve test for
54372         whether gettimeofday.o is actually needed.
54373         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
54374         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
54375         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
54376         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54377         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
54378         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
54379         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
54380         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
54381         than worrying about sys/time.h.
54382         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
54383         Don't bother worrying about TIME_WITH_SYS_TIME.
54384         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
54385         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
54386         * m4/sys_time_h.m4: New file.
54387         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
54388         Don't include sys/time.h.  Return from main rather than exiting.
54389         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
54390         all uses changed.
54391         * modules/gethrxtime (Depends-on): Add sys_time.
54392         * modules/gettime (Depends-on): Likewise.
54393         * modules/gettimeofday (Depends-on): Likewise.
54394         * modules/nanosleep (Depends-on): Likewise.
54395         * modules/settime (Depends-on): Likewise.
54396         * modules/tempname (Depends-on): Likewise.
54397         * modules/utimens (Depends-on): Likewise.
54398         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
54399         (Include:) Change back to <sys/time.h>.
54400         (Maintainer:) Add self.
54401         * modules/sys_time: New file.
54402         * modules/tempname (Depends-on): Add gettimeofday.
54403         * tests/test-gettimeofday.c: Include <sys/time.h>
54404         rather than gettimeofday.h.
54405
54406 2007-01-17  Bruno Haible  <bruno@clisp.org>
54407
54408         * gnulib-tool (func_get_license): Revert last patch. Instead, let
54409         the license default to GPL.
54410         (func_create_testdir): Don't complain if a module is LGPL and its
54411         tests module depends on GPLed modules.
54412
54413 2007-01-17  Bruno Haible  <bruno@clisp.org>
54414
54415         * lib/gettimeofday.c (gettimeofday): Add code for the case
54416         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
54417         maximum possible value for tv->tv_usec, rather than the minimum one.
54418
54419 2005-10-08  Martin Lambers  <marlam@marlam.de>
54420 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
54421 2007-01-16  Bruno Haible  <bruno@clisp.org>
54422
54423         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
54424         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
54425         gl_FUNC_GETTIMEOFDAY.
54426         (Include): Add gettimeofday.h.
54427         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
54428         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
54429         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
54430         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
54431         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
54432         * lib/gettimeofday.h: New file.
54433         * lib/gettimeofday.c: Include <sys/timeb.h>.
54434         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
54435         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54436         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
54437         fall back on time().
54438
54439         * tests/test-gettimeofday.c: New file.
54440         * modules/gettimeofday-tests: New file.
54441
54442 2007-01-16  Eric Blake  <ebb9@byu.net>
54443
54444         * modules/fnmatch (Depends-on): Depend on wchar.
54445         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
54446         * m4/fnmatch.m4: Likewise.
54447         * modules/mbchar (Makefile.am): Assume <wchar.h>.
54448         * m4/mbchar.m4: Likewise.
54449         * modules/mbswidth (Depends-on): Depend on wchar.
54450         * lib/mbswidth.c: Assume <wchar.h>.
54451         * m4/mbswidth.m4: Likewise.
54452         * modules/quotearg (Depends-on): Depend on wchar.
54453         * lib/quotearg.c: Assume <wchar.h>.
54454         * m4/quotearg.m4: Likewise.
54455         * modules/regex (Depends-on): Depend on wchar.
54456         * lib/regex_internal.h: Assume <wchar.h>.
54457         * m4/regex.m4: Likewise.
54458         * modules/stdint (Depends-on): Depend on wchar.
54459         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
54460         * m4/stdint.m4: Likewise.
54461         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
54462         * modules/strftime (Depends-on): Depend on wchar.
54463         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
54464         * modules/strtol (Depends-on): Depend on wchar.
54465         * lib/strtol.c: Assume <wchar.h>.
54466         * modules/wcwidth (Depends-on): Depend on wchar.
54467         * lib/wcwidth.h: Assume <wchar.h>.
54468         * m4/wcwidth.m4: Likewise.
54469
54470 2007-01-16  Bruno Haible  <bruno@clisp.org>
54471
54472         * modules/csharpexec-script: New, created from...
54473         * modules/csharpexec: ... this.
54474
54475 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
54476
54477         * modules/javaexec-script: New, created from...
54478         * modules/javaexec: ... this.
54479
54480 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54481
54482         * modules/poll (Dependencies): Add sys_select.
54483
54484 2007-01-15  Jim Meyering  <jim@meyering.net>
54485
54486         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
54487         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
54488         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
54489         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
54490
54491 2007-01-15  Bruno Haible  <bruno@clisp.org>
54492
54493         * modules/striconveh: New file.
54494         * lib/striconveh.h: New file.
54495         * lib/striconveh.c: New file.
54496         * MODULES.html.sh (Internationalization functions): Add striconveh.
54497
54498         * modules/striconveh-tests: New file.
54499         * tests/test-striconveh.c: New file.
54500
54501 2007-01-15  Bruno Haible  <bruno@clisp.org>
54502
54503         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
54504         not from GNU libiconv or GNU libc.
54505
54506 2007-01-15  Bruno Haible  <bruno@clisp.org>
54507
54508         * doc/gnulib-intro.texi (Copyright): Explain the different license
54509         terms for module descriptions, autoconf macros, tests, documentation.
54510
54511 2007-01-14  Bruno Haible  <bruno@clisp.org>
54512
54513         * modules/striconv-tests: New file.
54514         * tests/test-striconv.c: New file.
54515
54516 2007-01-14  Bruno Haible  <bruno@clisp.org>
54517
54518         * modules/iconv-tests: New file.
54519         * tests/test-iconv.c: New file.
54520
54521 2007-01-14  Bruno Haible  <bruno@clisp.org>
54522
54523         * gnulib-tool (func_get_license): For test modules, use the license of
54524         the main module.
54525
54526 2007-01-14  Bruno Haible  <bruno@clisp.org>
54527
54528         * modules/iconv (Include): Clarify that <iconv.h> can only be included
54529         if iconv is found to exist.
54530
54531 2007-01-14  Bruno Haible  <bruno@clisp.org>
54532
54533         * modules/c-ctype-tests: New file.
54534         * tests/test-c-ctype.c: New file.
54535
54536 2007-01-14  Bruno Haible  <bruno@clisp.org>
54537
54538         * modules/binary-io-tests: New file.
54539         * tests/test-binary-io.sh: New file.
54540         * tests/test-binary-io.c: New file.
54541
54542 2007-01-14  Bruno Haible  <bruno@clisp.org>
54543
54544         * modules/array-oset-tests: New file.
54545         * tests/test-array_oset.c: New file.
54546
54547 2007-01-14  Bruno Haible  <bruno@clisp.org>
54548
54549         * modules/array-list-tests: New file.
54550         * tests/test-array_list.c: New file.
54551
54552 2007-01-14  Bruno Haible  <bruno@clisp.org>
54553
54554         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
54555         and make.
54556         Reported by Simon Josefsson in
54557         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
54558
54559 2007-01-14  Bruno Haible  <bruno@clisp.org>
54560
54561         * modules/allocsa-tests: New file.
54562         * tests/test-allocsa.c: New file.
54563
54564 2007-01-14  Bruno Haible  <bruno@clisp.org>
54565
54566         * modules/fchdir (Depends-on): Add absolute-header.
54567         * modules/unistd (Depends-on): Likewise.
54568
54569 2006-12-30  Bruno Haible  <bruno@clisp.org>
54570
54571         * modules/fchdir: New file.
54572         * modules/unistd (Files): Add lib/unistd_.h.
54573         (Makefile.am): Generate unistd.h from unistd_.h.
54574         * lib/fchdir.c: New file.
54575         * lib/dirent_.h: New file.
54576         * lib/unistd_.h: New file.
54577         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
54578         * m4/fchdir.m4: New file.
54579         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
54580         (gl_HEADER_UNISTD): Invoke it.
54581         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
54582         function.
54583         * lib/backupfile.c (opendir, closedir): Undefine.
54584         * lib/chown.c (open, close): Undefine.
54585         * lib/clean-temp.c (open, close): Undefine.
54586         * lib/copy-file.c (open, close): Undefine.
54587         * lib/execute.c (open, close): Undefine.
54588         * lib/fsusage.c (open, close): Undefine.
54589         * lib/gc-gnulib.c (open, close): Undefine.
54590         * lib/getcwd.c (opendir, closedir): Undefine.
54591         * lib/glob.c (opendir, closedir): Undefine.
54592         * lib/javacomp.c (open, close): Undefine.
54593         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
54594         * lib/openat-proc.c (open, close): Undefine.
54595         * lib/pagealign_alloc.c (open, close): Undefine.
54596         * lib/pipe.c (open, close): Undefine.
54597         * lib/progreloc.c (open, close): Undefine.
54598         * lib/savedir.c (opendir, closedir): Undefine.
54599         * lib/utime.c (open, close): Undefine.
54600         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
54601
54602 2007-01-10  Bruno Haible  <bruno@clisp.org>
54603
54604         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
54605
54606 2007-01-12  Eric Blake  <ebb9@byu.net>
54607
54608         Provide a robust <wchar.h>.  Further simplifications are now
54609         possible in other modules, but not included here.
54610         * modules/wchar: New module.
54611         * m4/wchar.m4: New file.
54612         * lib/wchar_.h: Likewise.
54613         * modules/mbchar (Depends-on): Depend on wchar, as the first use
54614         of the new module.
54615         * MODULES.html.sh (Extended multibyte and wide character utilities):
54616         New section.
54617
54618 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
54619
54620         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
54621         to a reasonable default for memory allocation.
54622         (xreadlink): Don't allocate a huge buffer, to work around a buggy
54623         file system that reports garbage st_size values for symlinks.
54624         Problem reported by Liyang Hu.
54625
54626 2007-01-11  Simon Josefsson  <simon@josefsson.org>
54627
54628         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
54629         Emacs .#* auto-save files).
54630
54631 2007-01-11  Bruno Haible  <bruno@clisp.org>
54632
54633         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
54634         directory.
54635
54636 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54637
54638         Use @...@ consistently in lib/wctype_.h.
54639         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
54640         on it being set to 1 or 0.
54641         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
54642         go back to AC_SUBSTing it.
54643         * modules/wctype (Makefile.am): Undo previous change.
54644
54645 2007-01-10  Eric Blake  <ebb9@byu.net>
54646
54647         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
54648         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
54649         * modules/wctype (Makefile.am): Likewise.
54650         Reported by Chris McGuire.
54651
54652 2007-01-10  Jim Meyering  <jim@meyering.net>
54653
54654         fts.c: a small readability/maintainability improvement
54655         * lib/fts.c (fts_read): Make this code slightly more readable and
54656         maintainable by hoisting the "sp->fts_cur = p" assignments to
54657         immediately follow the statements that set P.  Derived from
54658         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
54659
54660 2007-01-10  Eric Blake  <ebb9@byu.net>
54661
54662         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
54663         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
54664         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
54665         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
54666         Reported by Chris McGuire.
54667
54668 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54669
54670         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
54671         in sed script.
54672
54673 2007-01-09  Bruno Haible  <bruno@clisp.org>
54674
54675         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
54676         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
54677         variables.
54678         (func_module): Use them.
54679
54680 2007-01-09  Bruno Haible  <bruno@clisp.org>
54681
54682         * modules/unistr/base: New file.
54683         * lib/unistr.h: New file.
54684
54685         * modules/unistr/u8-to-u16: New file.
54686         * lib/unistr/u8-to-u16.c: New file.
54687
54688         * modules/unistr/u8-to-u32: New file.
54689         * lib/unistr/u8-to-u32.c: New file.
54690
54691         * modules/unistr/u16-to-u8: New file.
54692         * lib/unistr/u16-to-u8.c: New file.
54693
54694         * modules/unistr/u16-to-u32: New file.
54695         * lib/unistr/u16-to-u32.c: New file.
54696
54697         * modules/unistr/u32-to-u8: New file.
54698         * lib/unistr/u32-to-u8.c: New file.
54699
54700         * modules/unistr/u32-to-u16: New file.
54701         * lib/unistr/u32-to-u16.c: New file.
54702
54703         * modules/unistr/u8-check: New file.
54704         * modules/unistr/u16-check: New file.
54705         * modules/unistr/u32-check: New file.
54706         * lib/unistr/u8-check.c: New file.
54707         * lib/unistr/u16-check.c: New file.
54708         * lib/unistr/u32-check.c: New file.
54709
54710         * modules/unistr/u8-chr: New file.
54711         * modules/unistr/u16-chr: New file.
54712         * modules/unistr/u32-chr: New file.
54713         * lib/unistr/u8-chr.c: New file.
54714         * lib/unistr/u16-chr.c: New file.
54715         * lib/unistr/u32-chr.c: New file.
54716
54717         * modules/unistr/u8-cmp: New file.
54718         * modules/unistr/u16-cmp: New file.
54719         * modules/unistr/u32-cmp: New file.
54720         * lib/unistr/u8-cmp.c: New file.
54721         * lib/unistr/u16-cmp.c: New file.
54722         * lib/unistr/u32-cmp.c: New file.
54723
54724         * modules/unistr/u8-cpy: New file.
54725         * modules/unistr/u16-cpy: New file.
54726         * modules/unistr/u32-cpy: New file.
54727         * lib/unistr/u8-cpy.c: New file.
54728         * lib/unistr/u16-cpy.c: New file.
54729         * lib/unistr/u32-cpy.c: New file.
54730         * lib/unistr/u-cpy.h: New file.
54731
54732         * modules/unistr/u8-cpy-alloc: New file.
54733         * modules/unistr/u16-cpy-alloc: New file.
54734         * modules/unistr/u32-cpy-alloc: New file.
54735         * lib/unistr/u8-cpy-alloc.c: New file.
54736         * lib/unistr/u16-cpy-alloc.c: New file.
54737         * lib/unistr/u32-cpy-alloc.c: New file.
54738         * lib/unistr/u-cpy-alloc.h: New file.
54739
54740         * modules/unistr/u8-endswith: New file.
54741         * modules/unistr/u16-endswith: New file.
54742         * modules/unistr/u32-endswith: New file.
54743         * lib/unistr/u8-endswith.c: New file.
54744         * lib/unistr/u16-endswith.c: New file.
54745         * lib/unistr/u32-endswith.c: New file.
54746         * lib/unistr/u-endswith.h: New file.
54747
54748         * modules/unistr/u8-mblen: New file.
54749         * modules/unistr/u16-mblen: New file.
54750         * modules/unistr/u32-mblen: New file.
54751         * lib/unistr/u8-mblen.c: New file.
54752         * lib/unistr/u16-mblen.c: New file.
54753         * lib/unistr/u32-mblen.c: New file.
54754
54755         * modules/unistr/u8-mbtouc: New file.
54756         * modules/unistr/u16-mbtouc: New file.
54757         * modules/unistr/u32-mbtouc: New file.
54758         * lib/unistr/u8-mbtouc.c: New file.
54759         * lib/unistr/u16-mbtouc.c: New file.
54760         * lib/unistr/u32-mbtouc.c: New file.
54761
54762         * modules/unistr/u8-mbtouc-safe: New file.
54763         * modules/unistr/u16-mbtouc-safe: New file.
54764         * modules/unistr/u32-mbtouc-safe: New file.
54765         * lib/unistr/u8-mbtouc-safe.c: New file.
54766         * lib/unistr/u16-mbtouc-safe.c: New file.
54767         * lib/unistr/u32-mbtouc-safe.c: New file.
54768
54769         * modules/unistr/u8-move: New file.
54770         * modules/unistr/u16-move: New file.
54771         * modules/unistr/u32-move: New file.
54772         * lib/unistr/u8-move.c: New file.
54773         * lib/unistr/u16-move.c: New file.
54774         * lib/unistr/u32-move.c: New file.
54775         * lib/unistr/u-move.h: New file.
54776
54777         * modules/unistr/u8-next: New file.
54778         * modules/unistr/u16-next: New file.
54779         * modules/unistr/u32-next: New file.
54780         * lib/unistr/u8-next.c: New file.
54781         * lib/unistr/u16-next.c: New file.
54782         * lib/unistr/u32-next.c: New file.
54783
54784         * modules/unistr/u8-prev: New file.
54785         * modules/unistr/u16-prev: New file.
54786         * modules/unistr/u32-prev: New file.
54787         * lib/unistr/u8-prev.c: New file.
54788         * lib/unistr/u16-prev.c: New file.
54789         * lib/unistr/u32-prev.c: New file.
54790
54791         * modules/unistr/u8-set: New file.
54792         * modules/unistr/u16-set: New file.
54793         * modules/unistr/u32-set: New file.
54794         * lib/unistr/u8-set.c: New file.
54795         * lib/unistr/u16-set.c: New file.
54796         * lib/unistr/u32-set.c: New file.
54797         * lib/unistr/u-set.h: New file.
54798
54799         * modules/unistr/u8-startswith: New file.
54800         * modules/unistr/u16-startswith: New file.
54801         * modules/unistr/u32-startswith: New file.
54802         * lib/unistr/u8-startswith.c: New file.
54803         * lib/unistr/u16-startswith.c: New file.
54804         * lib/unistr/u32-startswith.c: New file.
54805         * lib/unistr/u-startswith.h: New file.
54806
54807         * modules/unistr/u8-stpcpy: New file.
54808         * modules/unistr/u16-stpcpy: New file.
54809         * modules/unistr/u32-stpcpy: New file.
54810         * lib/unistr/u8-stpcpy.c: New file.
54811         * lib/unistr/u16-stpcpy.c: New file.
54812         * lib/unistr/u32-stpcpy.c: New file.
54813         * lib/unistr/u-stpcpy.h: New file.
54814
54815         * modules/unistr/u8-stpncpy: New file.
54816         * modules/unistr/u16-stpncpy: New file.
54817         * modules/unistr/u32-stpncpy: New file.
54818         * lib/unistr/u8-stpncpy.c: New file.
54819         * lib/unistr/u16-stpncpy.c: New file.
54820         * lib/unistr/u32-stpncpy.c: New file.
54821         * lib/unistr/u-stpncpy.h: New file.
54822
54823         * modules/unistr/u8-strcat: New file.
54824         * modules/unistr/u16-strcat: New file.
54825         * modules/unistr/u32-strcat: New file.
54826         * lib/unistr/u8-strcat.c: New file.
54827         * lib/unistr/u16-strcat.c: New file.
54828         * lib/unistr/u32-strcat.c: New file.
54829         * lib/unistr/u-strcat.h: New file.
54830
54831         * modules/unistr/u8-strchr: New file.
54832         * modules/unistr/u16-strchr: New file.
54833         * modules/unistr/u32-strchr: New file.
54834         * lib/unistr/u8-strchr.c: New file.
54835         * lib/unistr/u16-strchr.c: New file.
54836         * lib/unistr/u32-strchr.c: New file.
54837
54838         * modules/unistr/u8-strcmp: New file.
54839         * modules/unistr/u16-strcmp: New file.
54840         * modules/unistr/u32-strcmp: New file.
54841         * lib/unistr/u8-strcmp.c: New file.
54842         * lib/unistr/u16-strcmp.c: New file.
54843         * lib/unistr/u32-strcmp.c: New file.
54844
54845         * modules/unistr/u8-strcpy: New file.
54846         * modules/unistr/u16-strcpy: New file.
54847         * modules/unistr/u32-strcpy: New file.
54848         * lib/unistr/u8-strcpy.c: New file.
54849         * lib/unistr/u16-strcpy.c: New file.
54850         * lib/unistr/u32-strcpy.c: New file.
54851         * lib/unistr/u-strcpy.h: New file.
54852
54853         * modules/unistr/u8-strcspn: New file.
54854         * modules/unistr/u16-strcspn: New file.
54855         * modules/unistr/u32-strcspn: New file.
54856         * lib/unistr/u8-strcspn.c: New file.
54857         * lib/unistr/u16-strcspn.c: New file.
54858         * lib/unistr/u32-strcspn.c: New file.
54859         * lib/unistr/u-strcspn.h: New file.
54860
54861         * modules/unistr/u8-strdup: New file.
54862         * modules/unistr/u16-strdup: New file.
54863         * modules/unistr/u32-strdup: New file.
54864         * lib/unistr/u8-strdup.c: New file.
54865         * lib/unistr/u16-strdup.c: New file.
54866         * lib/unistr/u32-strdup.c: New file.
54867         * lib/unistr/u-strdup.h: New file.
54868
54869         * modules/unistr/u8-strlen: New file.
54870         * modules/unistr/u16-strlen: New file.
54871         * modules/unistr/u32-strlen: New file.
54872         * lib/unistr/u8-strlen.c: New file.
54873         * lib/unistr/u16-strlen.c: New file.
54874         * lib/unistr/u32-strlen.c: New file.
54875         * lib/unistr/u-strlen.h: New file.
54876
54877         * modules/unistr/u8-strmblen: New file.
54878         * modules/unistr/u16-strmblen: New file.
54879         * modules/unistr/u32-strmblen: New file.
54880         * lib/unistr/u8-strmblen.c: New file.
54881         * lib/unistr/u16-strmblen.c: New file.
54882         * lib/unistr/u32-strmblen.c: New file.
54883
54884         * modules/unistr/u8-strmbtouc: New file.
54885         * modules/unistr/u16-strmbtouc: New file.
54886         * modules/unistr/u32-strmbtouc: New file.
54887         * lib/unistr/u8-strmbtouc.c: New file.
54888         * lib/unistr/u16-strmbtouc.c: New file.
54889         * lib/unistr/u32-strmbtouc.c: New file.
54890
54891         * modules/unistr/u8-strncat: New file.
54892         * modules/unistr/u16-strncat: New file.
54893         * modules/unistr/u32-strncat: New file.
54894         * lib/unistr/u8-strncat.c: New file.
54895         * lib/unistr/u16-strncat.c: New file.
54896         * lib/unistr/u32-strncat.c: New file.
54897         * lib/unistr/u-strncat.h: New file.
54898
54899         * modules/unistr/u8-strncmp: New file.
54900         * modules/unistr/u16-strncmp: New file.
54901         * modules/unistr/u32-strncmp: New file.
54902         * lib/unistr/u8-strncmp.c: New file.
54903         * lib/unistr/u16-strncmp.c: New file.
54904         * lib/unistr/u32-strncmp.c: New file.
54905
54906         * modules/unistr/u8-strncpy: New file.
54907         * modules/unistr/u16-strncpy: New file.
54908         * modules/unistr/u32-strncpy: New file.
54909         * lib/unistr/u8-strncpy.c: New file.
54910         * lib/unistr/u16-strncpy.c: New file.
54911         * lib/unistr/u32-strncpy.c: New file.
54912         * lib/unistr/u-strncpy.h: New file.
54913
54914         * modules/unistr/u8-strnlen: New file.
54915         * modules/unistr/u16-strnlen: New file.
54916         * modules/unistr/u32-strnlen: New file.
54917         * lib/unistr/u8-strnlen.c: New file.
54918         * lib/unistr/u16-strnlen.c: New file.
54919         * lib/unistr/u32-strnlen.c: New file.
54920         * lib/unistr/u-strnlen.h: New file.
54921
54922         * modules/unistr/u8-strpbrk: New file.
54923         * modules/unistr/u16-strpbrk: New file.
54924         * modules/unistr/u32-strpbrk: New file.
54925         * lib/unistr/u8-strpbrk.c: New file.
54926         * lib/unistr/u16-strpbrk.c: New file.
54927         * lib/unistr/u32-strpbrk.c: New file.
54928         * lib/unistr/u-strpbrk.h: New file.
54929
54930         * modules/unistr/u8-strrchr: New file.
54931         * modules/unistr/u16-strrchr: New file.
54932         * modules/unistr/u32-strrchr: New file.
54933         * lib/unistr/u8-strrchr.c: New file.
54934         * lib/unistr/u16-strrchr.c: New file.
54935         * lib/unistr/u32-strrchr.c: New file.
54936
54937         * modules/unistr/u8-strspn: New file.
54938         * modules/unistr/u16-strspn: New file.
54939         * modules/unistr/u32-strspn: New file.
54940         * lib/unistr/u8-strspn.c: New file.
54941         * lib/unistr/u16-strspn.c: New file.
54942         * lib/unistr/u32-strspn.c: New file.
54943         * lib/unistr/u-strspn.h: New file.
54944
54945         * modules/unistr/u8-strstr: New file.
54946         * modules/unistr/u16-strstr: New file.
54947         * modules/unistr/u32-strstr: New file.
54948         * lib/unistr/u8-strstr.c: New file.
54949         * lib/unistr/u16-strstr.c: New file.
54950         * lib/unistr/u32-strstr.c: New file.
54951         * lib/unistr/u-strstr.h: New file.
54952
54953         * modules/unistr/u8-strtok: New file.
54954         * modules/unistr/u16-strtok: New file.
54955         * modules/unistr/u32-strtok: New file.
54956         * lib/unistr/u8-strtok.c: New file.
54957         * lib/unistr/u16-strtok.c: New file.
54958         * lib/unistr/u32-strtok.c: New file.
54959         * lib/unistr/u-strtok.h: New file.
54960
54961         * modules/unistr/u8-uctomb: New file.
54962         * modules/unistr/u16-uctomb: New file.
54963         * modules/unistr/u32-uctomb: New file.
54964         * lib/unistr/u8-uctomb.c: New file.
54965         * lib/unistr/u16-uctomb.c: New file.
54966         * lib/unistr/u32-uctomb.c: New file.
54967
54968         * MODULES.html.sh (Unicode string functions): Add the new modules.
54969
54970 2007-01-08  Bruno Haible  <bruno@clisp.org>
54971
54972         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
54973         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
54974         subdirectories.
54975
54976 2007-01-08  Karl Berry  <karl@gnu.org>
54977
54978         * doc/error.texi: mention that main() fns must set program_name
54979         when progname is used.
54980
54981 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
54982
54983         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
54984         WCTYPE_H is empty, for the benefit of builds from non-distclean
54985         directories.  Problem reported by Eric Blake in
54986         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
54987
54988 2007-01-08  Bruno Haible  <bruno@clisp.org>
54989
54990         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
54991         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
54992         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
54993         PROVIDE_CANONICALIZE_FILENAME_MODE.
54994         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
54995
54996 2007-01-08  Bruno Haible  <bruno@clisp.org>
54997
54998         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
54999         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
55000         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
55001         * lib/fts.c: Likewise.
55002         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
55003
55004 2006-12-25  Bruno Haible  <bruno@clisp.org>
55005
55006         * modules/utf8-ucs4-safe: New file.
55007         * lib/utf8-ucs4-safe.h: New file.
55008         * lib/unistr/utf8-ucs4-safe.c: New file.
55009
55010         * modules/utf16-ucs4-safe: New file.
55011         * lib/utf16-ucs4-safe.h: New file.
55012         * lib/unistr/utf16-ucs4-safe.c: New file.
55013
55014         * MODULES.html.sh (Unicode string functions): Add the new modules.
55015
55016 2007-01-08  Bruno Haible  <bruno@clisp.org>
55017
55018         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
55019         (Depends-on): Add unitypes.
55020         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
55021         (u8_mbtouc_aux): Move out to separate file.
55022         (u8_mbtouc): Use ucs4_t, uint8_t types.
55023         * lib/unistr/utf8-ucs4.c: New file.
55024
55025         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
55026         (Depends-on): Add unitypes.
55027         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
55028         (u16_mbtouc_aux): Move out to separate file.
55029         (u16_mbtouc): Use ucs4_t, uint16_t types.
55030         * lib/unistr/utf16-ucs4.c: New file.
55031
55032         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
55033         (Depends-on): Add unitypes.
55034         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
55035         (u8_uctomb_aux): Move out to separate file.
55036         (u8_uctomb): Use ucs4_t, uint8_t types.
55037         * lib/unistr/ucs4-utf8.c: New file.
55038
55039         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
55040         (Depends-on): Add unitypes.
55041         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
55042         (u16_uctomb_aux): Move out to separate file.
55043         (u16_uctomb): Use ucs4_t, uint16_t types.
55044         * lib/unistr/ucs4-utf16.c: New file.
55045
55046 2006-12-25  Bruno Haible  <bruno@clisp.org>
55047
55048         * modules/unitypes: New file.
55049         * lib/unitypes.h: New file.
55050         * MODULES.html.sh (func_all_modules): New section "Unicode string
55051         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
55052         this section. Add unitypes.
55053
55054 2007-01-08  Bruno Haible  <bruno@clisp.org>
55055
55056         Avoid variable names that conflict with those from libtool.
55057         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
55058         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
55059         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
55060         library_names_spec to acl_library_names_spec, hardcode_* to
55061         acl_hardcode_*.
55062         Reported by Ralf Wildenhues.
55063
55064 2007-01-08  Bruno Haible  <bruno@clisp.org>
55065
55066         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
55067         definition.
55068         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
55069         definition.
55070         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
55071         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
55072         definition.
55073         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
55074         definition.
55075         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
55076         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
55077         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
55078         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
55079         definition.
55080         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
55081         definition.
55082         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
55083         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
55084         GC_USE_<algorithm>.
55085         * lib/gc-libgcrypt.c: Likewise.
55086         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
55087         * modules/gc-arctwo (configure.ac): Likewise.
55088         * modules/gc-des (configure.ac): Likewise.
55089         * modules/gc-hmac-md5 (configure.ac): Likewise.
55090         * modules/gc-hmac-sha1 (configure.ac): Likewise.
55091         * modules/gc-md2 (configure.ac): Likewise.
55092         * modules/gc-md4 (configure.ac): Likewise.
55093         * modules/gc-md5 (configure.ac): Likewise.
55094         * modules/gc-random (configure.ac): Likewise.
55095         * modules/gc-rijndael (configure.ac): Likewise.
55096         * modules/gc-sha1 (configure.ac): Likewise.
55097
55098 2007-01-08  Bruno Haible  <bruno@clisp.org>
55099
55100         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
55101         macro definition.
55102         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
55103         definition.
55104         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
55105         definition.
55106         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
55107         * modules/fcntl-safer (configure.ac): Likewise.
55108         * modules/fopen-safer (configure.ac): Likewise.
55109         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
55110         GNULIB_FWRITEERROR macro definition.
55111
55112 2007-01-08  Bruno Haible  <bruno@clisp.org>
55113
55114         * m4/gnulib-common.m4: New file.
55115         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
55116         (func_get_filelist): Add m4/gnulib-common.m4.
55117
55118 2007-01-08  Bruno Haible  <bruno@clisp.org>
55119
55120         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
55121         command.
55122
55123 2007-01-08  Jim Meyering  <jim@meyering.net>
55124
55125         Use a more robust test for a "can't happen" condition.
55126         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
55127         narrowed the st_size value.  Presuming the "can't happen" condition
55128         is true, that narrowing could conceivably convert an invalid st_size
55129         value into a valid one.  Instead, use a change based on Matthew
55130         Woehlke's original patch.
55131
55132         Slight readability improvement: use an assert-like macro
55133         in place of literal "abort ()" uses.
55134         * lib/fts.c (fts_assert): Define.
55135         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
55136         Use this macro instead of a bare 'abort'.
55137
55138 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
55139
55140         Don't worry about using IRIX 5.3's wctype.h broken definitions;
55141         simply work around them.
55142         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
55143         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
55144         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
55145         declaring.
55146         Don't bother to define as macros, since the standard doesn't require it.
55147         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
55148         longer worry about IRIX 5.3.
55149         (HAVE_WCTYPE_CTMP_BUG): Remove.
55150
55151 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
55152
55153         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
55154         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
55155         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
55156         Problems reported by Georg Schwarz for IRIX 5.3.
55157
55158         * gnulib-tool (autoconf_minversion): Take the maximum version number
55159         found, not the minimum.  Problem reported by James Youngman.
55160
55161 2007-01-03  Karl Berry  <karl@gnu.org>
55162
55163         * doc/error.texi: new file, explaining interaction with progname.
55164         * doc/gnulib.texi: include it.  Update copyright.
55165
55166 2007-01-03  Simon Josefsson  <simon@josefsson.org>
55167
55168         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
55169         AC_CANONICAL_HOST, to improve autobuild outputs.
55170
55171 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
55172             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
55173
55174         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
55175         sockets, server sockets, and other file descriptors.  Count errors
55176         to compute the return value.  Reorder the code a bit to be easier
55177         to follow.  Don't set event bits that were not requested (except
55178         POLLERR and POLLHUP).
55179
55180 2007-01-01  Bruno Haible  <bruno@clisp.org>
55181
55182         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
55183
55184 2007-01-03  Jim Meyering  <jim@meyering.net>
55185
55186         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
55187
55188 2007-01-02  Bruno Haible  <bruno@clisp.org>
55189
55190         * modules/settime (Include): Require timespec.h.
55191         * modules/nanosleep (Include): Likewise.
55192
55193 2007-01-01  Bruno Haible  <bruno@clisp.org>
55194
55195         * gnulib-tool (func_emit_copyright_notice): Bump year.
55196         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
55197
55198 2007-01-01  Bruno Haible  <bruno@clisp.org>
55199
55200         Improve support for OpenBSD.
55201         * build-aux/config.rpath (libname_spec): Export.
55202         (library_names_spec): New variable. Export.
55203         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
55204         library_names_spec from the config.rpath output. Locate shared library
55205         through the name pattern in library_names_spec.
55206
55207 2007-01-01  Eric Blake  <ebb9@byu.net>
55208
55209         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
55210
55211 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
55212
55213         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
55214         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
55215         assume the C locale, and avoid an "eval" that could cause trouble.
55216         Problem with SORT reported by Bob Proulx.
55217
55218         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
55219         Define.  Trivial patch from Henning Nielsen Lund, originally
55220         sent to bug-grep@gnu.org today.
55221
55222 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
55223
55224         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
55225         struct stat.  Problem reported by Henning Nielsen Lund.
55226         * lib/acl.c: Include acl.h first, to check interface.  Don't
55227         bother to include sys/types.h and sys/stat.h again.
55228
55229 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
55230
55231         Import the following change from libc; problem reported by
55232         Sven Verdoolaege.
55233
55234         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
55235
55236         [BZ #1373]
55237         * lib/argp.h: Remove __NTH for __argp_usage inline function.
55238
55239 2006-12-28  Jim Meyering  <jim@meyering.net>
55240
55241         * build-aux/announce-gen: Do not assume that the package
55242         builds any of tar.gz, tar.bz2, and .xdelta files.
55243         Suggestion from Simon Josefsson.
55244
55245 2006-12-28  Simon Josefsson  <simon@josefsson.org>
55246
55247         * modules/announce-gen: New file.
55248
55249 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
55250
55251         * lib/mbchar.h: Just include <wctype.h>; the wctype module
55252         handles its gotchas now.
55253         * lib/mbswidth.c: Likewise.
55254         * lib/wcwidth.h: Likewise.
55255         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
55256         and iswcntrl; the wctype module does this stuff now.
55257         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
55258         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55259         * modules/mbchar (Depends-on): Add wctype.
55260         * modules/mbswidth (Depends-on): Likewise.
55261         * modules/wcwidth (Depends-on): Likewise.
55262
55263 2006-12-27  Eric Blake  <ebb9@byu.net>
55264
55265         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
55266         module uses more than what <wctype.h> is required to provide.
55267
55268 2006-12-26  Eric Blake  <ebb9@byu.net>
55269
55270         * gnulib-tool (sed_extract_prog): Avoid space-tab.
55271
55272 2006-12-26  Eric Blake  <ebb9@byu.net>
55273
55274         * modules/absolute-header: New module.
55275         * modules/fcntl (Depends-on): Depend on it.
55276         * modules/inttypes (Depends-on): Likewise.
55277         * modules/stdint (Depends-on): Likewise.
55278         * modules/sys_stat (Depends-on): Likewise.
55279         * modules/wctype (Depends-on): Likewise.
55280         * MODULES.html.sh (Support for building libraries and
55281         executables): Document it.
55282
55283 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
55284
55285         * gnulib-tool (SED): Remove, undoing previous change.
55286         The problem was that it broke coreutils on Solaris, because
55287         "sed --posix" leaked into a makefile.
55288         (sed): New alias, if 'alias' and GNU sed.
55289
55290 2006-12-24  Jim Meyering  <jim@meyering.net>
55291
55292         Work around an fchownat bug in glibc-2.4:
55293         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
55294         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
55295         in spite of the -P option.
55296         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
55297         New macros.
55298         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
55299         * modules/openat (Files): Add lib/fchownat.c.
55300         * lib/openat.c (fchownat): Don't define here.  Move to...
55301         * lib/fchownat.c: ...this new file.
55302
55303 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
55304
55305         Fix bug reported by Bruno Haible in
55306         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
55307         where quotearg.c didn't compile on Mac OS X 10.2 because it
55308         lacks <wchar.h> and wint_t.
55309         * lib/wctype_.h (__wctype_wint_t): New type.
55310         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
55311         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
55312         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
55313         Arg is now of type __wctype_wint_t, not wint_t.
55314         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
55315         substitute HAVE_WINT_T.
55316         * modules/wctype (Files): Add m4/wint_t.m4.
55317         (wctype.h): Substitute HAVE_WINT_T.
55318
55319 2006-12-23  Bruno Haible  <bruno@clisp.org>
55320
55321         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
55322
55323 2006-12-23  Bruno Haible  <bruno@clisp.org>
55324
55325         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
55326         S_ISLNK.
55327         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
55328         mingw.
55329
55330 2006-12-22  Bruno Haible  <bruno@clisp.org>
55331
55332         * lib/copy-file.c: Include acl.h.
55333         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
55334         Close the file descriptors only after being done with copy_acl.
55335         * modules/copy-file (Depends-on): Add acl.
55336
55337 2006-12-22  Bruno Haible  <bruno@clisp.org>
55338
55339         * gnulib-tool (SED): New variable.
55340         Use $SED instead of sed everywhere.
55341
55342 2006-12-22  Bruno Haible  <bruno@clisp.org>
55343
55344         * modules/no-c++: New file.
55345         * m4/no-c++.m4: New file.
55346         * MODULES.html.sh (Support for building libraries and executables):
55347         Add no-c++.
55348
55349 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
55350
55351         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
55352         Include <limits.h>, and use its INT_MAX to rewrite the
55353         j loop so that it does not overflow 'int'.  Problem reported by
55354         Ralf Wildenhues in
55355         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
55356         Play it safe by shifting left by 1 rather than multiplying by 2,
55357         as GCC is less likely to optimize this away when the value
55358         is signed (when it assumes overflow leads to undefined behavior).
55359         Also, don't assume time_t uses two's complement.
55360
55361 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
55362
55363         * MODULES.html.sh: New module wctype.
55364         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
55365         * lib/fnmatch.c: Don't bother to include <wchar.h> before
55366         <wctype.h>, since the new wctype module should fix this.
55367         * lib/quotearg.c: Include <wctype.h> unconditionally, since
55368         the wctype module should arrange for it.
55369         * lib/regex_internal.h: Likewise.
55370         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
55371         since the wctype module should handle this now.
55372         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
55373         * modules/fnmatch (Depends-on): Add wctype.
55374         * modules/quotearg (Depends-on): Likewise.
55375         * modules/regex (Depends-on): Likewise.
55376
55377 2006-12-19  Bruno Haible  <bruno@clisp.org>
55378
55379         * lib/strdup.h [C++]: Wrap definitions in extern "C".
55380         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
55381
55382 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55383
55384         * modules/savewd (Depends-on): Fix dependency on fcntl.
55385
55386 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
55387
55388         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
55389         conforms to C99, rather than relying on the user's environment
55390         setting of STDINT_H.
55391
55392 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
55393         and Eric Blake  <ebb9@byu.net>
55394
55395         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
55396         This is more consistent with the other defines here.
55397         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
55398         Port to z/OS.  Problem reported by Paul Gilmartin.
55399         Change local vars to use gl_ prefix rather than ac_.
55400         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
55401         with other defines.
55402         * modules/double-slash-root: New module.
55403         * modules/dirname (Files): Remove m4/double-slash-root.m4.
55404         (Depends-on): Add double-slash-root.
55405         * MODULES.html.sh (File system functions): Mention new module.
55406
55407 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
55408
55409         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
55410         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
55411         This is for the benefit of gzip, which doesn't do i18n.
55412
55413 2006-12-12  Jim Meyering  <jim@meyering.net>
55414
55415         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
55416         Reported by Andreas Schwab <schwab@suse.de>.
55417
55418 2006-12-12  Bruno Haible  <bruno@clisp.org>
55419
55420         Merge these changes.
55421         2006-09-05  Bruno Haible  <bruno@clisp.org>
55422         * lib/iconvme.c (iconv_string): No need to save and restore errno when
55423         iconv_alloc succeeded.
55424         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
55425         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
55426         test for " && dest " at the end - dest is always != NULL there. Call
55427         iconv with 4xNULL arguments initially, to reset the state. Call iconv
55428         with 2xNULL arguments, also to flush the state storage. Handle the
55429         IRIX iconv behaviour. Realloc the final result, to throw away unused
55430         memory.
55431
55432 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
55433
55434         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
55435         and fchmodat unconditionally, since glibc 2.4 has them.
55436         Problem reported by Arkadiusz Miskiewicz.
55437
55438 2006-12-10  Bruno Haible  <bruno@clisp.org>
55439
55440         * gnulib-tool (func_import): Show the include files only for those
55441         modules that are copied and specified.
55442         Reported by Karl Berry.
55443
55444 2006-12-08  Jim Meyering  <jim@meyering.net>
55445
55446         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
55447         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
55448
55449         * build-aux/announce-gen: Add two new options, both optional:
55450         --bootstrap-tools=TOOL_LIST
55451               a comma-separated list of tools, e.g.,
55452               autoconf,automake,bison,gnulib
55453         --gnulib-snapshot-date=DATE
55454               if gnulib is in the bootstrap tool list,
55455               then report this as the snapshot date.
55456               If not specified, use the current date/time.
55457               If you specify a date here, be sure it's UTC.
55458
55459 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55460
55461         * tests/test-argp-2.sh: Fix test to match actual output.
55462         (func_compare): Fix sed script to be portable.
55463
55464 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
55465
55466         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
55467         workaround for this case.  It is not autoconfigured now; offhand
55468         it's hard to see how to autoconfigure it.
55469
55470 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
55471
55472         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
55473         a directory that is about to be chowned.  Such a directory's
55474         initial file permissions should permit the owner only and this
55475         should not be changed until after the chown, since the group and
55476         other bits would be incorrect if they granted permission before
55477         the chown.
55478
55479         Fix porting problem for iswctype reported by Georg Schwarz in:
55480         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
55481         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
55482         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
55483         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
55484         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55485
55486 2006-12-03  Jim Meyering  <jim@meyering.net>
55487
55488         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
55489         p->fts_statp may not yet be defined.
55490         (fts_read): Instead, set it in the caller, once p->fts_statp is
55491         sure to be defined, and corresponds to a top-level directory.
55492         This bug made du -x fail.  Here's the coreutils test case:
55493         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
55494         Reported by Mike Frysinger.
55495
55496 2006-12-01  Jim Meyering  <jim@meyering.net>
55497
55498         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
55499         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
55500         Reported by Simon Josefsson.
55501
55502 2006-11-30  Jim Meyering  <jim@meyering.net>
55503
55504         * m4/warning.m4: Use the all-permissive copyright notice
55505         recommended by RMS (rather than LGPL).
55506         * m4/vararrays.m4: Likewise.
55507         * m4/flexmember.m4: Likewise.
55508
55509 2006-11-29  Bruno Haible  <bruno@clisp.org>
55510
55511         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
55512         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
55513         using +=.
55514         Reported by Simon Josefsson <simon@josefsson.org>.
55515
55516 2006-11-28  James Youngman <jay@gnu.org>
55517
55518         * README: Advise users that they might find the bug-gnulib@gnu.org
55519         and autotools-announce@gnu.org mailing lists useful.
55520
55521 2006-11-28  Bruno Haible  <bruno@clisp.org>
55522
55523         * m4/ptrdiff_max.m4: Remove file.
55524
55525 2006-11-21  Bruno Haible  <bruno@clisp.org>
55526
55527         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
55528         _AC_COMPUTE_INT.
55529         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55530         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
55531         _AC_COMPUTE_INT.
55532         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55533         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
55534         _AC_COMPUTE_INT.
55535         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55536
55537 2006-11-28  Jim Meyering  <jim@meyering.net>
55538
55539         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
55540         warning from "gcc -Wshadow" about shadowing the builtin.
55541
55542 2006-11-27  Bruno Haible  <bruno@clisp.org>
55543
55544         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
55545         _AC_COMPUTE_INT.
55546         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55547
55548 2006-11-27  Bruno Haible  <bruno@clisp.org>
55549             Paul Eggert  <eggert@cs.ucla.edu>
55550
55551         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
55552
55553 2006-11-26  Bruno Haible  <bruno@clisp.org>
55554
55555         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
55556         noinst_LTLIBRARIES.
55557
55558 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
55559             Bruno Haible  <bruno@clisp.org>
55560
55561         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
55562         if compiling with "gcc -ansi".
55563
55564 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
55565
55566         Fix some incompatibilities with gcc -ansi -pedantic.
55567         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
55568         if compiling pedantically with GCC, unless it's C99 or later.
55569         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
55570         it mishandles gcc -ansi -pedantic as well.
55571         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
55572         if gcc -pedantic.
55573         * lib/regexec.c (check_node_accept_bytes): Don't use auto
55574         initializers for struct if -pedantic, unless it's C99 or later.
55575
55576 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
55577
55578         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
55579         Don't close an fd more than once. Identical atimes indicate
55580         success, not failure.
55581
55582 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
55583
55584         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
55585
55586 2006-11-23  Jim Meyering  <jim@meyering.net>
55587
55588         * build-aux/announce-gen: New file.  From coreutils.
55589
55590 2006-11-22  Jim Meyering  <jim@meyering.net>
55591
55592         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
55593         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
55594         (fts_read): Use a temporary to narrow the overused st_size member
55595         before using it in a switch statement.  Reported by Matthew Woehlke.
55596
55597         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
55598         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
55599
55600 2006-11-20  Bruno Haible  <bruno@clisp.org>
55601
55602         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
55603         changequote instead of pairs of brackets.
55604         Reported by Andreas Schwab <schwab@suse.de>.
55605
55606 2006-11-21  Jim Meyering  <jim@meyering.net>
55607
55608         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
55609         so as to remain compatible with older compilers.
55610         Patch from Michael Deutschmann.
55611
55612 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
55613
55614         * MODULES.html.sh (File system functions): Add openat.
55615
55616         * lib/openat.h (rpl_fstatat): New macro, if
55617         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
55618         (fstatat): Define to rpl_fstatat under the same conditions,
55619         unless COMPILING_FSTATAT.
55620         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
55621         seems to have the bug.
55622         * lib/fstatat.c: New file.
55623         * modules/openat (Files): Add it.
55624
55625 2006-11-20  Bruno Haible  <bruno@clisp.org>
55626
55627         * Makefile: New file.
55628
55629 2006-11-20  Jim Meyering  <jim@meyering.net>
55630
55631         The beginnings of syntax-related checks for gnulib.
55632         * lib/Makefile: New file.
55633         * lib/t-idcache: New script.  Ensure that the two halves of
55634         idcache.c stay in sync.
55635
55636         * lib/idcache.c: Adjust comments in user- and group- portions to
55637         be more accurate, and to be consistent with one another.
55638
55639 2006-11-20  Jim Meyering  <jim@meyering.net>
55640
55641         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
55642         continue using the flexible array member (thus, this module performs
55643         half as many malloc calls), with the addition that...
55644         (getgroup, getuser): Consistently record a non-match via an empty
55645         "name" string, and map an empty string match to a NULL return value.
55646         * modules/idcache (Depends-on): Re-add flexmember.
55647
55648         * lib/idcache.c (getuser): Remove all uses of the register keyword.
55649         (getuidbyname, getgroup, getgidbyname): Likewise.
55650
55651         Use cleaner syntax: NULL rather than 0.
55652         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
55653
55654 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
55655
55656         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
55657         It mishandled the case where the group was missing.
55658         Problem reported by Greg Schafer.
55659         * modules/idcache: Likewise.
55660
55661 2006-11-18  Jim Meyering  <jim@meyering.net>
55662
55663         * check-module (%exempt_header): Add exception for some
55664         conditionally-included headers.
55665
55666         * modules/i-ring (Depends-on): Add verify.
55667         (License): Change to LGPL.
55668
55669 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
55670
55671         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
55672         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
55673         and inttostr.h.  Use snprintf rather than uinttostr, so that
55674         LGPLed code doesn't depend on GPLed.
55675
55676 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
55677
55678         * modules/inline (License): Change from GPL to LGPL.
55679
55680 2006-11-17  Jim Meyering  <jim@meyering.net>
55681
55682         * modules/d-type (License): Switch to LGPL.
55683
55684 2006-11-15  Bruno Haible  <bruno@clisp.org>
55685
55686         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
55687
55688 2006-11-15  Eric Blake  <ebb9@byu.net>
55689
55690         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
55691         the module dependency.
55692
55693 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55694             Bruno Haible  <bruno@clisp.org>
55695
55696         * gnulib-tool (func_create_testdir): Add license consistency check.
55697
55698 2006-11-15  Eric Blake  <ebb9@byu.net>
55699
55700         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
55701         random "(cached)" in configure output.
55702
55703 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55704
55705         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
55706         test for conforming inttypes.h is both announced and cached.
55707
55708         * MODULES.html.sh (seen_modules, seen_files): New variables.
55709         (func_module): Rewrite to use a few less gnulib-tool and sed
55710         invocations.  Avoid a couple of quadratic algorithms for ...
55711         (missed_modules, missed_files): ... these, with ...
55712         (func_append, func_tmpdir): ... these new functions, from
55713         gnulib-tool.  Analogously, install traps for cleanup.
55714
55715         * tests/test-gc.c (main): Remove unused variables.
55716         * tests/test-read-file.c: Include stdlib.h, for 'free'.
55717
55718 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
55719
55720         * modules/inttostr (License): Change to LGPL.
55721
55722 2006-11-14  Eric Blake  <ebb9@byu.net>
55723
55724         * modules/tempname (License): Change to LGPL.
55725
55726 2006-11-14  Eric Blake  <ebb9@byu.net>
55727
55728         * doc/functions.texi (Function Portability): *printf functions on
55729         Cygwin now understand all POSIX size specifiers.
55730
55731 2006-11-14  Bruno Haible  <bruno@clisp.org>
55732
55733         * modules/c-ctype (License): Change to LGPL.
55734
55735 2006-11-12  Bruno Haible  <bruno@clisp.org>
55736
55737         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
55738         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
55739         for GNOME libraries, for which the include files are installed in
55740         subdirectories of $prefix/include.
55741
55742 2006-11-12  Bruno Haible  <bruno@clisp.org>
55743
55744         * m4/lib-link.m4: Require at least autoconf-2.54.
55745         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
55746         name to underscores for the --with option.
55747
55748 2006-11-13  Bruno Haible  <bruno@clisp.org>
55749
55750         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
55751         the tests directory.
55752         Reported by Ralf Wildenhues.
55753
55754 2006-11-13  Bruno Haible  <bruno@clisp.org>
55755
55756         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
55757         (func_emit_initmacro_end): Undo the override here.
55758         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
55759         Works around the famous automake error in coreutils.
55760
55761 2006-11-13  Eric Blake  <ebb9@byu.net>
55762
55763         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
55764         element, not its node.
55765
55766 2006-11-12  Bruno Haible  <bruno@clisp.org>
55767
55768         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
55769         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
55770
55771 2006-11-12  Bruno Haible  <bruno@clisp.org>
55772
55773         * gnulib-tool: New option --local-symlink.
55774         (func_usage): Document it.
55775         (lsymbolic): New variable.
55776         (func_import, func_create_testdir): If --symlink was not specified,
55777         test whether --local-symlink was specified and the file comes from
55778         the local_gnulib_dir.
55779
55780 2006-11-12  Bruno Haible  <bruno@clisp.org>
55781
55782         * gnulib-tool (func_ln): New function.
55783         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
55784
55785 2006-11-12  Bruno Haible  <bruno@clisp.org>
55786
55787         Finish support for source files in subdirectories.
55788         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
55789         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
55790         AUTOMAKE_OPTIONS.
55791         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
55792
55793 2006-11-12  Bruno Haible  <bruno@clisp.org>
55794
55795         * gnulib-tool (func_get_automake_snippet): Synthesize also an
55796         EXTRA_lib_SOURCES augmentation.
55797         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
55798
55799 2006-11-12  Jim Meyering  <jim@meyering.net>
55800
55801         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
55802         file descriptors.  This also averts a failure on systems with
55803         native openat support when a traversed directory lacks "x" access.
55804         * lib/fts_.h: Include "i-ring.h"
55805         (struct FTS) [fts_fd_ring]: New member.
55806         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
55807         (FCHDIR): Add parentheses.
55808         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
55809         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
55810         When descending, rather than simply closing the previous
55811         fts_cwd_fd value, push that file descriptor onto the ring.
55812         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
55813         (fts_open): Initialize the new fd_ring member.
55814         (fts_close): Clear the ring.
55815         (fts_safe_changedir): When possible, use our new fd_ring to skip
55816         the diropen and fstat and dev/ino comparison that would normally
55817         accompany a virtual `chdir ("..")'.
55818
55819         * modules/fts (Depends-on): Add i-ring.
55820         * modules/i-ring: New module.
55821         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
55822         * m4/i-ring.m4: New file.
55823
55824 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55825
55826         * gnulib-tool (func_create_testdir): Fix replacement of
55827         `build-aux' in configure.ac.  Run autotools in gltests
55828         subdirectory.
55829         (func_create_testdir, func_create_megatestdir, test): There is
55830         no need for '--force' in most autotool invocations in a new
55831         tree.  Actually fail the whole test if any of the tools, or the
55832         configure or make stages fail.
55833
55834         Sync from Automake.
55835         * build-aux/gnupload: Revert last change.  Add pointer to upload
55836         instructions of the GNU Maintenance Instructions.
55837         Suggestion by Karl Berry.
55838
55839 2006-11-10  Jim Meyering  <jim@meyering.net>
55840
55841         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
55842
55843 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
55844
55845         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
55846         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
55847         (bind_textdomain_codeset) [! ENABLE_NLS]:
55848         Evaluate all the arguments.  That way, callers get compatible behavior
55849         if the arguments have side effects.  Also, it avoids some GCC
55850         diagnostics in some cases; Joel E. Denny reported problems when Bison
55851         was configured with --enable-gcc-warnigs.
55852
55853 2006-11-10  Jim Meyering  <jim@meyering.net>
55854
55855         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
55856         relevant options in CFLAGS (like -O, -fno-inline) are taken into
55857         account.
55858
55859 2006-11-10  Jim Meyering  <jim@meyering.net>
55860
55861         * modules/inline: New file/module.
55862         * modules/xalloc (Files): Remove m4/inline.m4.
55863         (Depends-on): Add inline, instead.
55864         * modules/oset: Likewise.
55865         * modules/list: Likewise.
55866
55867 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
55868
55869         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
55870         Problem reported by Matthew Woehlke.
55871
55872 2006-11-09  Bruno Haible  <bruno@clisp.org>
55873
55874         * lib/tempname.c (gen_tempname): Remove variant that invokes
55875         __gen_tempname.
55876         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
55877         __gen_tempname.
55878
55879 2006-11-08  Bruno Haible  <bruno@clisp.org>
55880
55881         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
55882         to 'yes' instead of 'cross-compiling'.
55883
55884 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
55885
55886         * lib/quotearg.h (quotearg_free): New decl.
55887         * lib/quotearg.c (quotearg_free): New function.
55888         (slot0, nslots, slotvec0, slotvec):
55889         Now file-scope so that quotearg_free can get at them.
55890
55891 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55892
55893         Sync from Automake.
55894         * build-aux/gnupload: Add missing 'gnu' to example URL.
55895         Report by Karl Berry.
55896
55897 2006-11-08  Bruno Haible  <bruno@clisp.org>
55898
55899         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
55900         Suggested by Paul Eggert.
55901
55902 2006-11-08  Jim Meyering  <jim@meyering.net>
55903
55904         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
55905         It's already included if !_LIBC.
55906         (fts_safe_changedir): Add a comment.
55907
55908 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
55909
55910         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
55911         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
55912         Matthew Woehlke.
55913
55914         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
55915         definitions up, to avoid colliding with change below.
55916         (static_inline) [HAVE_INLINE]: New macro.
55917         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
55918         Provide extern decls when !HAVE_INLINE.  Do not define unless
55919         static_inline is defined, either by us or by xmalloc.c.  Use
55920         static_inline rather than static inline.
55921         (XCALLOC): Optimize sizeof(T) = 1 case.
55922         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
55923
55924 2006-11-07  Bruno Haible  <bruno@clisp.org>
55925
55926         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
55927         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
55928         AC_C_INLINE.
55929         * modules/xalloc (Files): Add m4/inline.m4.
55930
55931 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55932
55933         * README: Fix typo.
55934         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
55935         (Miscellanous Notes): ...from this.
55936
55937 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
55938
55939         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
55940         Mention that offsetof should be used instead of sizeof.
55941         From Bruno Haible.
55942
55943 2006-11-07  Bruno Haible  <bruno@clisp.org>
55944
55945         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
55946
55947 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
55948
55949         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
55950         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
55951         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
55952         (gl_tree_add_before, gl_tree_add_after):
55953         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
55954         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
55955         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
55956         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
55957         (gl_linked_add_after, gl_linked_add_at): Likewise.
55958         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
55959         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
55960         (gl_tree_add_before, gl_tree_add_after): Likewise.
55961         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
55962         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
55963         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
55964
55965 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55966
55967         * lib/gl_oset.h: Use C comment style, not C++ comment style.
55968
55969 2006-11-06  Bruno Haible  <bruno@clisp.org>
55970
55971         * m4/inline.m4: New file.
55972         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
55973         * modules/list (Files): Add m4/inline.m4.
55974         * modules/oset (Files): Likewise.
55975
55976 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
55977
55978         * lib/idcache.c: Include <stddef.h>, for offsetof.
55979         (struct userid.name): Change from char * to a flexible array member.
55980         All uses changed.
55981         * modules/idcache (Depends-on): Add flexmember.
55982
55983         * MODULES.html.sh (Core language properties): New module flexmember.
55984         * modules/flexmember, m4/flexmember.m4: New files.
55985
55986         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
55987         inline functions that are identical with the old xnmalloc_inline,
55988         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
55989         that we can avoid some unnecessary integer multiplications and
55990         divisions in the common case where the element size is known at
55991         compile time.
55992         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
55993         needed.
55994         (xnboundedmalloc): Remove.
55995         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
55996         arguments, for consistency with rest of this header.
55997         (xcharalloc): Rewrite using XNMALLOC.
55998         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
55999         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
56000         versions have been moved to lib/xalloc.h and renamed to be the
56001         non-*_inline versions.
56002         (xmalloc, xrealloc): Implement without reference to the xnmalloc
56003         and xnrealloc functions, since those functions are now inline and
56004         now call us.
56005         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
56006         renaming described above.
56007         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
56008         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
56009         captures the dependency in AC_C_INLINE.
56010
56011         New module canonicalize-lgpl, proposed by Charles Wilson in
56012         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
56013         with a few small changes afterwards.
56014         * MODULES.html.sh (File system functions): New module
56015         canonicalize-lgpl.
56016         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
56017         and canonicalize_file_name.
56018         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
56019         * modules/canonicalize-lgpl: New files.
56020
56021 2006-11-05  Bruno Haible  <bruno@clisp.org>
56022
56023         * gnulib-tool (func_import, func_create_testdir): Create directories
56024         also for files in subdirectories of lib/.
56025
56026 2006-11-05  Bruno Haible  <bruno@clisp.org>
56027
56028         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
56029         ANSI C compliant.
56030
56031 2006-11-03  Bruno Haible  <bruno@clisp.org>
56032
56033         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
56034         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
56035         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
56036         (xnboundedmalloc): New inline function.
56037         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
56038         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
56039         xmalloc.
56040         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
56041         xmalloc.
56042         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
56043         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
56044         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
56045         xmalloc.
56046         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
56047         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
56048         xmalloc.
56049         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
56050         gl_tree_add_after): Use XMALLOC instead of xmalloc.
56051         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
56052         xmalloc.
56053         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
56054         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
56055         gl_tree_add_after): Use XMALLOC instead of xmalloc.
56056         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
56057         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
56058         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
56059         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
56060
56061 2006-11-03  Bruno Haible  <bruno@clisp.org>
56062
56063         * lib/c-ctype.h [C++]: Define functions without name mangling.
56064         * lib/fwriteerror.h [C++]: Likewise.
56065         * lib/gcd.h [C++]: Likewise.
56066         * lib/linebreak.h [C++]: Likewise.
56067
56068 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
56069
56070         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
56071         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
56072         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
56073         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
56074         Check for functions and headers just once.
56075         Check for declaration of canonicalize_file_name.
56076         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
56077
56078 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
56079
56080         * gnulib-tool (func_import): Fix typo in actioncmd.
56081
56082 2006-11-02  Bruno Haible  <bruno@clisp.org>
56083
56084         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
56085         newline sequence in the Makefile.am snippet as a space, like "make"
56086         does.
56087         Reported by Roger Persson <perrog@gmail.com>.
56088
56089 2006-11-01  Bruno Haible  <bruno@clisp.org>
56090
56091         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
56092         already declared in <string.h>.
56093         * lib/strcase.h (strncasecmp): Don't declare it if yes.
56094
56095 2006-11-01  Bruno Haible  <bruno@clisp.org>
56096
56097         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
56098         * lib/strcase.h: Include <string.h>.
56099         (strcasecmp): Define to rpl_strcasecmp here.
56100
56101 2006-11-01  Bruno Haible  <bruno@clisp.org>
56102
56103         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
56104
56105 2006-11-01  Eric Blake  <ebb9@byu.net>
56106
56107         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
56108
56109         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
56110
56111 2006-10-29  Bruno Haible  <bruno@clisp.org>
56112
56113         Make it compile in C++ mode.
56114         * lib/full-write.c (full_rw): Add a cast.
56115
56116 2006-11-01  Bruno Haible  <bruno@clisp.org>
56117
56118         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
56119         be POSIX compliant.
56120         Reported by Roger Persson <perrog@gmail.com>.
56121
56122 2006-11-01  Eric Blake  <ebb9@byu.net>
56123
56124         * lib/getopt_.h: Fix comments.
56125
56126 2006-10-31  Eric Blake  <ebb9@byu.net>
56127
56128         * modules/tmpdir (Depends-on): Add sys_stat.
56129         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
56130         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
56131         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
56132         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
56133         tempname.
56134
56135 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
56136
56137         Avoid some C++ diagnostics reported by Bruno Haible.
56138         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
56139         xmalloc.
56140         (quotearg_alloc): Use xcharalloc rather than xmalloc.
56141         (struct slotvec): Move to top level.
56142         (quotearg_n_options): Rewrite to avoid xmalloc.
56143         * lib/xalloc.h (xcharalloc): New function.
56144         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
56145         [defined __cplusplus]: Add function template that provides result
56146         type propagation.  This part of the change is from Bruno Haible.
56147
56148 2006-10-29  Bruno Haible  <bruno@clisp.org>
56149
56150         Make it compile in C++ mode.
56151         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
56152         * lib/strnlen1.c (strnlen1): Cast memchr result.
56153         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
56154         * lib/clean-temp.c (string_equals, string_hash): Add casts.
56155         (create_temp_dir): Rename local variable 'template'.
56156         (compile_csharp_using_sscli): Add cast.
56157         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
56158         * lib/findprog.c (find_in_path): Likewise.
56159         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
56160         * lib/wait-process.c (register_slave_subprocess): Likewise.
56161
56162 2006-10-22  Bruno Haible  <bruno@clisp.org>
56163
56164         * modules/tsearch: New file.
56165         * lib/tsearch.h: New file.
56166         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
56167         * m4/tsearch.m4: New file.
56168         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
56169
56170 2006-10-29  Eric Blake  <ebb9@byu.net>
56171
56172         * lib/arcfour.c: Assume config.h.
56173         * lib/arctwo.c: Likewise.
56174         * lib/base64.c: Likewise.
56175         * lib/check-version.c: Likewise.
56176         * lib/crc.c: Likewise.
56177         * lib/des.c: Likewise.
56178         * lib/gc-gnulib.c: Likewise.
56179         * lib/gc-libgcrypt.c: Likewise.
56180         * lib/gc-pbkdf2-sha1.c: Likewise.
56181         * lib/getaddrinfo.c: Likewise.
56182         * lib/getdelim.c: Likewise.
56183         * lib/getline.c: Likewise.
56184         * lib/hmac-md5.c: Likewise.
56185         * lib/hmac-sha1.c: Likewise.
56186         * lib/iconvme.c: Likewise.
56187         * lib/md2.c: Likewise.
56188         * lib/md4.c: Likewise.
56189         * lib/memxor.c: Likewise.
56190         * lib/read-file.c: Likewise.
56191         * lib/readline.c: Likewise.
56192         * lib/rijndael-alg-fst.c: Likewise.
56193         * lib/rijndael-api-fst.c: Likewise.
56194         * lib/xgetdomainname.c: Likewise.
56195
56196 2006-10-28  Eric Blake  <ebb9@byu.net>
56197
56198         * lib/xstrndup.c: Assume config.h.
56199
56200 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
56201
56202         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
56203         stat-macros.h is now for our own macros, whereas stat_h is for
56204         macros in the <sys/stat.h> name space.
56205         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
56206         (STAT_MACROS_H): Remove.
56207         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
56208         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
56209         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
56210         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
56211         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
56212         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
56213         Move these macros to ...
56214         * lib/stat_.h: here.  Don't include stat-macros.h.
56215         * lib/canonicalize.c: Don't include stat-macros.h.
56216         * lib/chown.c: Likewise.
56217         * lib/euidaccess.c: Likewise.
56218         * lib/file-type.c: Likewise.
56219         * lib/filemode.c: Likewise.
56220         * lib/glob.c: Likewise.
56221         * lib/isapipe.c: Likewise.
56222         * lib/lchown.c: Likewise.
56223         * lib/lstat.c: Likewise.
56224         * lib/mkdir-p.c: Likewise.
56225         * lib/rmdir.c: Likewise.
56226         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
56227         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
56228         unless mkdir isn't declared, to speed up 'configure'.
56229         Always create sys/stat.h, since it's unlikely any real sys/stat.h
56230         would define all the S_* symbols.
56231         * modules/canonicalize (Depends-on):
56232         Depend on sys_stat, not stat-macros.
56233         * modules/chown: Likewise.
56234         * modules/euidaccess: Likewise.
56235         * modules/filemode: Likewise.
56236         * modules/file-type: Likewise.
56237         * modules/glob: Likewise.
56238         * modules/isapipe: Likewise.
56239         * modules/lchown: Likewise.
56240         * modules/lstat: Likewise.
56241         * modules/mkancesdirs: Likewise.
56242         * modules/rmdir: Likewise.
56243         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
56244         * modules/modechange: Likewise.
56245         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
56246         (configure.ac): Remove gl_STAT_MACROS.
56247         * modules/sys_stat (Depends-on): Remove stat-macros.
56248
56249 2006-10-27  Bruno Haible  <bruno@clisp.org>
56250
56251         * m4/signed.m4: Remove file.
56252         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
56253         invocation.
56254         * modules/vasnprintf (Files): Remove m4/signed.m4.
56255
56256 2006-10-27  Bruno Haible  <bruno@clisp.org>
56257
56258         Update to GNU gettext 0.16.
56259         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
56260         m4/inttypes-h.m4, m4/signed.m4.
56261         * m4/gettext.m4: Update to GNU gettext 0.16.
56262         * m4/intl.m4: New file, from GNU gettext.
56263         * m4/intldir.m4: New file, from GNU gettext.
56264         * config/srclist.txt: Update
56265
56266 2006-10-27  Eric Blake  <ebb9@byu.net>
56267
56268         * MODULES.html.sh: Document tempname.
56269         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
56270         dependencies.
56271         (Files): Move lib/tempname.c...
56272         * modules/tempname: ...to this new module.
56273         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
56274         (gl_PREREQ_TEMPNAME): Move...
56275         * m4/tempname.m4: ...to this new file.
56276         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
56277         * modules/sys_stat (Depends-on): Add stat-macros.
56278         * lib/stat_.h (includes): Pick up stat macros.
56279         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
56280         if stat macros are broken.
56281         * lib/tempname.c (includes): No need to include "stat-macros.h".
56282         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
56283         (direxists, __path_search) [!_LIBC]: Don't compile these in
56284         gnulib; the tmpdir module covers that.
56285         * lib/tempname.h: New file.
56286
56287 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
56288
56289         * COPYING: Explain how gnulib-tool converts licence headers.
56290         Almost all wording by Eric Blake.
56291
56292 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
56293
56294         * lib/mbchar.h (is_basic_table): Make read-only.
56295         * lib/mbchar.c (is_basic_table): Likewise.
56296         Reported by John Darrington.
56297
56298 2006-10-25  Bruno Haible  <bruno@clisp.org>
56299
56300         * lib/progname.h (set_program_name): Undefine before defining.
56301
56302 2006-10-25  Bruno Haible  <bruno@clisp.org>
56303
56304         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
56305         false for non-gcc C++ compilers.
56306         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56307
56308 2006-10-24  Bruno Haible  <bruno@clisp.org>
56309
56310         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
56311         iconv implementations like Irix iconv.
56312
56313 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56314
56315         * modules/vararrays: New file.
56316         * m4/vararrays.m4: New file, taken from diffutils.
56317         * MODULES.html.sh: New module vararrays.
56318
56319 2006-10-24  Karl Berry  <karl@gnu.org>
56320
56321         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
56322         Don't call GNU Unix.
56323
56324 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56325
56326         * users.txt: Add Libtool.
56327
56328         Sync from Libtool:
56329
56330         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56331
56332         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
56333         to gnulib's policy of including config.h unconditionally.
56334
56335 2006-10-24  Bruno Haible  <bruno@clisp.org>
56336
56337         * modules/wcwidth (Files): Add m4/wint_t.m4.
56338         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
56339         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
56340
56341 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56342
56343         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
56344         to pacify GCC with some -W flags enabled.  Problem reported by
56345         Bruno Haible.
56346
56347 2006-10-24  Jim Meyering  <jim@meyering.net>
56348
56349         * MODULES.html.sh: Remove uinttostr.  It's not a module.
56350         Reported by Karl Berry.
56351
56352 2006-10-23  Bruno Haible  <bruno@clisp.org>
56353
56354         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
56355
56356 2006-10-24  Bruno Haible  <bruno@clisp.org>
56357
56358         * lib/gl_list.h: Use C comment style, not C++ comment style.
56359
56360 2006-10-23  Eric Blake  <ebb9@byu.net>
56361
56362         * lib/getaddrinfo.c (includes): Add missing include.
56363
56364 2006-10-23  Bruno Haible  <bruno@clisp.org>
56365             Paul Eggert  <eggert@cs.ucla.edu>
56366
56367         Ability to rename obstack_free.
56368         * lib/obstack.h (__obstack_free): New macro. Declare instead of
56369         obstack_free.
56370         (obstack_free): Invoke the __obstack_free macro.
56371         * lib/obstack.c (obstack_free): Use __obstack_free macro.
56372
56373 2006-10-23  Bruno Haible  <bruno@clisp.org>
56374             Paul Eggert  <eggert@cs.ucla.edu>
56375
56376         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
56377         __argc, __argv from the declaration. (They are defined as macros on
56378         mingw.)
56379
56380 2006-10-22  Bruno Haible  <bruno@clisp.org>
56381
56382         * doc/gnulib-intro.texi: New file.
56383         * doc/gnulib.texi: Include it.
56384
56385 2006-10-21  Bruno Haible  <bruno@clisp.org>
56386
56387         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
56388         "Introduction", "Miscellanous Notes", "Particular Modules".
56389
56390 2006-10-21  Bruno Haible  <bruno@clisp.org>
56391
56392         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56393         Change mostlyclean-local rule to avoid sh syntax error from bash
56394         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
56395
56396 2006-10-23  Jim Meyering  <jim@meyering.net>
56397
56398         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
56399         in place of snprintf.
56400
56401         * modules/inttostr (Files): Add lib/uinttostr.c.
56402         * lib/uinttostr.c (inttostr): New file/function.
56403         * lib/inttostr.h (uinttostr): Declare.
56404         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
56405         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
56406         Add uinttostr.
56407         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
56408
56409 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
56410
56411         * lib/canonicalize.c (ELOOP): Define if not already defined.
56412         Problem reported by Bruno Haible in
56413         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
56414
56415 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
56416
56417         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
56418         Problem reported by Perry Smith and Ville Laurikari.
56419
56420         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
56421         uses.
56422
56423 2006-10-19  Bruno Haible  <bruno@clisp.org>
56424
56425         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
56426         for mingw.
56427
56428 2006-10-19  Bruno Haible  <bruno@clisp.org>
56429
56430         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
56431         Needed for mingw.
56432
56433 2006-10-19  Bruno Haible  <bruno@clisp.org>
56434
56435         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
56436
56437 2006-10-19  Bruno Haible  <bruno@clisp.org>
56438
56439         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
56440         it.
56441
56442 2006-10-19  Bruno Haible  <bruno@clisp.org>
56443
56444         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
56445         invocation.
56446
56447 2006-10-19  Bruno Haible  <bruno@clisp.org>
56448
56449         * gnulib-tool (func_create_testdir): Don't include ftruncate and
56450         mountlist by default.
56451
56452 2006-10-16  Bruno Haible  <bruno@clisp.org>
56453
56454         * lib/c-strstr.c: Include c-strstr.h.
56455
56456 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
56457
56458         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
56459         in a slash.
56460
56461 2006-10-18  Bruno Haible  <bruno@clisp.org>
56462
56463         * lib/lock.h [C++]: Wrap definitions in extern "C".
56464
56465 2006-10-18  Bruno Haible  <bruno@clisp.org>
56466
56467         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
56468         gl_LIBOBJS list.
56469
56470 2006-10-18  Bruno Haible  <bruno@clisp.org>
56471
56472         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
56473
56474 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
56475
56476         * lib/xstrtol.h: Include gettext.h.
56477         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
56478         Problem reported by Eric Blake.
56479         * modules/xstrtol (Depends-on): Add gettext-h.
56480
56481 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
56482
56483         * lib/strftime.c (advance): New macro.
56484         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
56485         incomplete type, so you can't add 0 to it.  Problem and patch
56486         reported by Eelco Dolstra for dietlibc.
56487
56488 2006-10-18  Jim Meyering  <jim@meyering.net>
56489
56490         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
56491         type for a local, and rename it: s/up/user_proc/.
56492
56493 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
56494
56495         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
56496         READ_UTMP_USER_PROCESS.
56497         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
56498
56499 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
56500
56501         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
56502         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
56503
56504 2006-10-17  Eric Blake  <ebb9@byu.net>
56505
56506         * lib/sigprocmask.c (sigprocmask): Fix typo.
56507
56508         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
56509
56510         * modules/clean-temp (Makefile.am): Don't add to make output...
56511         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
56512         config.h.
56513
56514 2006-10-17  Bruno Haible  <bruno@clisp.org>
56515
56516         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
56517         differently if DEFAULT_TEXT_DOMAIN is set.
56518
56519 2006-10-16  Bruno Haible  <bruno@clisp.org>
56520
56521         * lib/clean-temp.c: Include fwriteerror.h.
56522
56523 2006-10-16  Bruno Haible  <bruno@clisp.org>
56524
56525         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
56526
56527 2006-10-16  Bruno Haible  <bruno@clisp.org>
56528
56529         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
56530         * lib/sigprocmask.h: Include <sys/types.h>.
56531         (sigset_t): Use the system's definition if present.
56532
56533 2006-10-17  Eric Blake  <ebb9@byu.net>
56534
56535         * lib/xvasprintf.c (includes): Assume config.h.
56536         * lib/xasprintf.c (includes): Likewise.
56537
56538 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56539
56540         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
56541         at least as wide as intmax_t.
56542
56543 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
56544
56545         (Imported from Automake.)
56546         * build-aux/gnupload: Update to version 1.1 of directive file.
56547
56548 2006-10-16  Eric Blake  <ebb9@byu.net>
56549
56550         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
56551         match Automake 1.10a.
56552
56553 2006-10-14  Bruno Haible  <bruno@clisp.org>
56554
56555         * modules/sigprocmask: New file.
56556         * lib/sigprocmask.h: New file.
56557         * lib/sigprocmask.c: New file.
56558         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
56559         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
56560         request sigprocmask.o.
56561         (gl_PREREQ_SIGPROCMASK): New macro.
56562         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
56563         (Depends-on): Add sigprocmask.
56564         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
56565         gt_SIGNALBLOCKING. Test for 'raise' only once.
56566         * lib/fatal-signal.c: Include sigprocmask.h.
56567         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
56568         unblock_fatal_signals): Define always.
56569         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56570         sigprocmask.
56571
56572 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
56573
56574         Sync from Automake.
56575         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
56576         which incorrectly sets the mode of an existing destination
56577         directory.  In some cases the unpatched install-sh could do the
56578         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
56579         system.  We hope this is rare in practice, but it's clearly worth
56580         fixing.  Problem reported by Alex Unleashed in
56581         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
56582         Also, don't bother to check for -m bugs unless we're using -m;
56583         suggested by Stepan Kasal.
56584
56585 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56586
56587         Sync from Automake.
56588         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
56589         `-c' flag, so they appear at the same position as in %FASTDEP%
56590         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
56591         which ignores unknown options only after the first non-option.
56592         Bug report against M4 by Nelson H. F. Beebe.
56593
56594 2006-10-13  Jim Meyering  <jim@meyering.net>
56595
56596         Fix a bug in yesterday's change.
56597         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
56598         p->fts_statp->st_dev would be used uninitialized.
56599         Ensures that we always call fts_stat on the very first entry.
56600         Miklos Szeredi reported that find -xdev stopped working.
56601
56602 2006-10-12  Bruno Haible  <bruno@clisp.org>
56603
56604         * gnulib-tool (func_get_automake_snippet): Append an automatically
56605         computed EXTRA_DIST augmentation.
56606         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
56607         * modules/alloca-opt (Makefile.am): Likewise.
56608         * modules/allocsa (Makefile.am): Likewise.
56609         * modules/arcfour (Makefile.am): Likewise.
56610         * modules/arctwo (Makefile.am): Likewise.
56611         * modules/argmatch (Makefile.am): Likewise.
56612         * modules/argz (Makefile.am): Likewise.
56613         * modules/atexit (Makefile.am): Likewise.
56614         * modules/backupfile (Makefile.am): Likewise.
56615         * modules/byteswap (Makefile.am): Likewise.
56616         * modules/c-strtod (Makefile.am): Likewise.
56617         * modules/c-strtold (Makefile.am): Likewise.
56618         * modules/calloc (Makefile.am): Likewise.
56619         * modules/canon-host (Makefile.am): Likewise.
56620         * modules/canonicalize (Makefile.am): Likewise.
56621         * modules/chdir-long (Makefile.am): Likewise.
56622         * modules/chdir-safer (Makefile.am): Likewise.
56623         * modules/check-version (Makefile.am): Likewise.
56624         * modules/chown (Makefile.am): Likewise.
56625         * modules/cloexec (Makefile.am): Likewise.
56626         * modules/close-stream (Makefile.am): Likewise.
56627         * modules/closeout (Makefile.am): Likewise.
56628         * modules/crc (Makefile.am): Likewise.
56629         * modules/csharpexec (Makefile.am): Likewise.
56630         * modules/cycle-check (Makefile.am): Likewise.
56631         * modules/des (Makefile.am): Likewise.
56632         * modules/dev-ino (Makefile.am): Likewise.
56633         * modules/dirfd (Makefile.am): Likewise.
56634         * modules/dirname (Makefile.am): Likewise.
56635         * modules/dup2 (Makefile.am): Likewise.
56636         * modules/eealloc (Makefile.am): Likewise.
56637         * modules/error (Makefile.am): Likewise.
56638         * modules/euidaccess (Makefile.am): Likewise.
56639         * modules/exclude (Makefile.am): Likewise.
56640         * modules/exitfail (Makefile.am): Likewise.
56641         * modules/fcntl-safer (Makefile.am): Likewise.
56642         * modules/fcntl (Makefile.am): Likewise.
56643         * modules/file-type (Makefile.am): Likewise.
56644         * modules/fileblocks (Makefile.am): Likewise.
56645         * modules/filemode (Makefile.am): Likewise.
56646         * modules/filenamecat (Makefile.am): Likewise.
56647         * modules/fnmatch (Makefile.am): Likewise.
56648         * modules/fopen-safer (Makefile.am): Likewise.
56649         * modules/fpending (Makefile.am): Likewise.
56650         * modules/fprintftime (Makefile.am): Likewise.
56651         * modules/free (Makefile.am): Likewise.
56652         * modules/fsusage (Makefile.am): Likewise.
56653         * modules/ftruncate (Makefile.am): Likewise.
56654         * modules/fts (Makefile.am): Likewise.
56655         * modules/gc-arcfour (Makefile.am): Likewise.
56656         * modules/gc-des (Makefile.am): Likewise.
56657         * modules/gc-hmac-md5 (Makefile.am): Likewise.
56658         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
56659         * modules/gc-md4 (Makefile.am): Likewise.
56660         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
56661         * modules/gc-sha1 (Makefile.am): Likewise.
56662         * modules/gc (Makefile.am): Likewise.
56663         * modules/getaddrinfo (Makefile.am): Likewise.
56664         * modules/getcwd (Makefile.am): Likewise.
56665         * modules/getdelim (Makefile.am): Likewise.
56666         * modules/getdomainname (Makefile.am): Likewise.
56667         * modules/getgroups (Makefile.am): Likewise.
56668         * modules/gethostname (Makefile.am): Likewise.
56669         * modules/gethrxtime (Makefile.am): Likewise.
56670         * modules/getline (Makefile.am): Likewise.
56671         * modules/getloadavg (Makefile.am): Likewise.
56672         * modules/getlogin_r (Makefile.am): Likewise.
56673         * modules/getndelim2 (Makefile.am): Likewise.
56674         * modules/getopt (Makefile.am): Likewise.
56675         * modules/getpagesize (Makefile.am): Likewise.
56676         * modules/getpass-gnu (Makefile.am): Likewise.
56677         * modules/getpass (Makefile.am): Likewise.
56678         * modules/getsubopt (Makefile.am): Likewise.
56679         * modules/gettime (Makefile.am): Likewise.
56680         * modules/gettimeofday (Makefile.am): Likewise.
56681         * modules/getugroups (Makefile.am): Likewise.
56682         * modules/getusershell (Makefile.am): Likewise.
56683         * modules/glob (Makefile.am): Likewise.
56684         * modules/group-member (Makefile.am): Likewise.
56685         * modules/hard-locale (Makefile.am): Likewise.
56686         * modules/hash (Makefile.am): Likewise.
56687         * modules/hmac-md5 (Makefile.am): Likewise.
56688         * modules/hmac-sha1 (Makefile.am): Likewise.
56689         * modules/human (Makefile.am): Likewise.
56690         * modules/idcache (Makefile.am): Likewise.
56691         * modules/imaxabs (Makefile.am): Likewise.
56692         * modules/imaxdiv (Makefile.am): Likewise.
56693         * modules/inet_ntop (Makefile.am): Likewise.
56694         * modules/inet_pton (Makefile.am): Likewise.
56695         * modules/intprops (Makefile.am): Likewise.
56696         * modules/inttostr (Makefile.am): Likewise.
56697         * modules/inttypes (Makefile.am): Likewise.
56698         * modules/isapipe (Makefile.am): Likewise.
56699         * modules/javaversion (Makefile.am): Likewise.
56700         * modules/lchmod (Makefile.am): Likewise.
56701         * modules/lchown (Makefile.am): Likewise.
56702         * modules/localcharset (Makefile.am): Likewise.
56703         * modules/long-options (Makefile.am): Likewise.
56704         * modules/lstat (Makefile.am): Likewise.
56705         * modules/malloc (Makefile.am): Likewise.
56706         * modules/mathl (Makefile.am): Likewise.
56707         * modules/mbchar (Makefile.am): Likewise.
56708         * modules/md2 (Makefile.am): Likewise.
56709         * modules/md4 (Makefile.am): Likewise.
56710         * modules/md5 (Makefile.am): Likewise.
56711         * modules/memcasecmp (Makefile.am): Likewise.
56712         * modules/memchr (Makefile.am): Likewise.
56713         * modules/memcmp (Makefile.am): Likewise.
56714         * modules/memcoll (Makefile.am): Likewise.
56715         * modules/memcpy (Makefile.am): Likewise.
56716         * modules/memmem (Makefile.am): Likewise.
56717         * modules/memmove (Makefile.am): Likewise.
56718         * modules/mempcpy (Makefile.am): Likewise.
56719         * modules/memrchr (Makefile.am): Likewise.
56720         * modules/memset (Makefile.am): Likewise.
56721         * modules/memxor (Makefile.am): Likewise.
56722         * modules/mkancesdirs (Makefile.am): Likewise.
56723         * modules/mkdir-p (Makefile.am): Likewise.
56724         * modules/mkdir (Makefile.am): Likewise.
56725         * modules/mkdtemp (Makefile.am): Likewise.
56726         * modules/mkstemp (Makefile.am): Likewise.
56727         * modules/mktime (Makefile.am): Likewise.
56728         * modules/modechange (Makefile.am): Likewise.
56729         * modules/mountlist (Makefile.am): Likewise.
56730         * modules/nanosleep (Makefile.am): Likewise.
56731         * modules/obstack (Makefile.am): Likewise.
56732         * modules/openat (Makefile.am): Likewise.
56733         * modules/pagealign_alloc (Makefile.am): Likewise.
56734         * modules/pathmax (Makefile.am): Likewise.
56735         * modules/physmem (Makefile.am): Likewise.
56736         * modules/poll (Makefile.am): Likewise.
56737         * modules/posixtm (Makefile.am): Likewise.
56738         * modules/posixver (Makefile.am): Likewise.
56739         * modules/putenv (Makefile.am): Likewise.
56740         * modules/quote (Makefile.am): Likewise.
56741         * modules/quotearg (Makefile.am): Likewise.
56742         * modules/raise (Makefile.am): Likewise.
56743         * modules/read-file (Makefile.am): Likewise.
56744         * modules/readline (Makefile.am): Likewise.
56745         * modules/readlink (Makefile.am): Likewise.
56746         * modules/readtokens (Makefile.am): Likewise.
56747         * modules/readutmp (Makefile.am): Likewise.
56748         * modules/realloc (Makefile.am): Likewise.
56749         * modules/regex (Makefile.am): Likewise.
56750         * modules/rename-dest-slash (Makefile.am): Likewise.
56751         * modules/rename (Makefile.am): Likewise.
56752         * modules/rijndael (Makefile.am): Likewise.
56753         * modules/rmdir (Makefile.am): Likewise.
56754         * modules/rpmatch (Makefile.am): Likewise.
56755         * modules/safe-read (Makefile.am): Likewise.
56756         * modules/safe-write (Makefile.am): Likewise.
56757         * modules/same-inode (Makefile.am): Likewise.
56758         * modules/same (Makefile.am): Likewise.
56759         * modules/save-cwd (Makefile.am): Likewise.
56760         * modules/savedir (Makefile.am): Likewise.
56761         * modules/setenv (Makefile.am): Likewise.
56762         * modules/settime (Makefile.am): Likewise.
56763         * modules/sha1 (Makefile.am): Likewise.
56764         * modules/sig2str (Makefile.am): Likewise.
56765         * modules/snprintf (Makefile.am): Likewise.
56766         * modules/stat-macros (Makefile.am): Likewise.
56767         * modules/stat-time (Makefile.am): Likewise.
56768         * modules/stdbool (Makefile.am): Likewise.
56769         * modules/stdint (Makefile.am): Likewise.
56770         * modules/stdlib-safer (Makefile.am): Likewise.
56771         * modules/stpcpy (Makefile.am): Likewise.
56772         * modules/stpncpy (Makefile.am): Likewise.
56773         * modules/strcase (Makefile.am): Likewise.
56774         * modules/strcasestr (Makefile.am): Likewise.
56775         * modules/strchrnul (Makefile.am): Likewise.
56776         * modules/strcspn (Makefile.am): Likewise.
56777         * modules/strdup (Makefile.am): Likewise.
56778         * modules/strerror (Makefile.am): Likewise.
56779         * modules/strftime (Makefile.am): Likewise.
56780         * modules/strndup (Makefile.am): Likewise.
56781         * modules/strnlen (Makefile.am): Likewise.
56782         * modules/strpbrk (Makefile.am): Likewise.
56783         * modules/strsep (Makefile.am): Likewise.
56784         * modules/strstr (Makefile.am): Likewise.
56785         * modules/strtod (Makefile.am): Likewise.
56786         * modules/strtoimax (Makefile.am): Likewise.
56787         * modules/strtok_r (Makefile.am): Likewise.
56788         * modules/strtol (Makefile.am): Likewise.
56789         * modules/strtoll (Makefile.am): Likewise.
56790         * modules/strtoul (Makefile.am): Likewise.
56791         * modules/strtoull (Makefile.am): Likewise.
56792         * modules/strtoumax (Makefile.am): Likewise.
56793         * modules/strverscmp (Makefile.am): Likewise.
56794         * modules/sys_socket (Makefile.am): Likewise.
56795         * modules/sys_stat (Makefile.am): Likewise.
56796         * modules/sysexits (Makefile.am): Likewise.
56797         * modules/time_r (Makefile.am): Likewise.
56798         * modules/timegm (Makefile.am): Likewise.
56799         * modules/timespec (Makefile.am): Likewise.
56800         * modules/tmpfile-safer (Makefile.am): Likewise.
56801         * modules/trim (Makefile.am): Likewise.
56802         * modules/unistd-safer (Makefile.am): Likewise.
56803         * modules/unlinkdir (Makefile.am): Likewise.
56804         * modules/unlocked-io (Makefile.am): Likewise.
56805         * modules/userspec (Makefile.am): Likewise.
56806         * modules/utime (Makefile.am): Likewise.
56807         * modules/utimecmp (Makefile.am): Likewise.
56808         * modules/utimens (Makefile.am): Likewise.
56809         * modules/vasnprintf (Makefile.am): Likewise.
56810         * modules/vasprintf (Makefile.am): Likewise.
56811         * modules/vsnprintf (Makefile.am): Likewise.
56812         * modules/xalloc (Makefile.am): Likewise.
56813         * modules/xgetcwd (Makefile.am): Likewise.
56814         * modules/xnanosleep (Makefile.am): Likewise.
56815         * modules/xreadlink (Makefile.am): Likewise.
56816         * modules/xstrtod (Makefile.am): Likewise.
56817         * modules/xstrtol (Makefile.am): Likewise.
56818         * modules/xstrtold (Makefile.am): Likewise.
56819         * modules/yesno (Makefile.am): Likewise.
56820         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
56821
56822 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56823
56824         * modules/error (Makefile.am): Distribute files through
56825         EXTRA_DIST, not lib_SOURCES.
56826
56827 2006-10-12  Eric Blake  <ebb9@byu.net>
56828
56829         * modules/error (Makefile.am): Distribute files in /lib.
56830         * modules/obstack (Makefile.am): Likewise.
56831
56832 2006-10-12  Bruno Haible  <bruno@clisp.org>
56833
56834         * modules/acl (Makefile.am): Distribute all files in lib/ through
56835         EXTRA_DIST.
56836         * modules/arcfour (Makefile.am): Likewise.
56837         * modules/arctwo (Makefile.am): Likewise.
56838         * modules/argmatch (Makefile.am): Likewise.
56839         * modules/argz (Makefile.am): Likewise.
56840         * modules/atexit (Makefile.am): Likewise.
56841         * modules/backupfile (Makefile.am): Likewise.
56842         * modules/c-strtod (Makefile.am): Likewise.
56843         * modules/c-strtold (Makefile.am): Likewise.
56844         * modules/calloc (Makefile.am): Likewise.
56845         * modules/canon-host (Makefile.am): Likewise.
56846         * modules/canonicalize (Makefile.am): Likewise.
56847         * modules/chdir-long (Makefile.am): Likewise.
56848         * modules/chdir-safer (Makefile.am): Likewise.
56849         * modules/check-version (Makefile.am): Likewise.
56850         * modules/chown (Makefile.am): Likewise.
56851         * modules/cloexec (Makefile.am): Likewise.
56852         * modules/close-stream (Makefile.am): Likewise.
56853         * modules/closeout (Makefile.am): Likewise.
56854         * modules/crc (Makefile.am): Likewise.
56855         * modules/cycle-check (Makefile.am): Likewise.
56856         * modules/des (Makefile.am): Likewise.
56857         * modules/dirfd (Makefile.am): Likewise.
56858         * modules/dirname (Makefile.am): Likewise.
56859         * modules/dup2 (Makefile.am): Likewise.
56860         * modules/euidaccess (Makefile.am): Likewise.
56861         * modules/exclude (Makefile.am): Likewise.
56862         * modules/exitfail (Makefile.am): Likewise.
56863         * modules/fcntl-safer (Makefile.am): Likewise.
56864         * modules/file-type (Makefile.am): Likewise.
56865         * modules/fileblocks (Makefile.am): Likewise.
56866         * modules/filemode (Makefile.am): Likewise.
56867         * modules/filenamecat (Makefile.am): Likewise.
56868         * modules/fnmatch (Makefile.am): Likewise.
56869         * modules/fopen-safer (Makefile.am): Likewise.
56870         * modules/fpending (Makefile.am): Likewise.
56871         * modules/fprintftime (Makefile.am): Likewise.
56872         * modules/free (Makefile.am): Likewise.
56873         * modules/fsusage (Makefile.am): Likewise.
56874         * modules/ftruncate (Makefile.am): Likewise.
56875         * modules/fts (Makefile.am): Likewise.
56876         * modules/gc (Makefile.am): Likewise.
56877         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
56878         * modules/getaddrinfo (Makefile.am): Likewise.
56879         * modules/getcwd (Makefile.am): Likewise.
56880         * modules/getdelim (Makefile.am): Likewise.
56881         * modules/getdomainname (Makefile.am): Likewise.
56882         * modules/getgroups (Makefile.am): Likewise.
56883         * modules/gethostname (Makefile.am): Likewise.
56884         * modules/gethrxtime (Makefile.am): Likewise.
56885         * modules/getline (Makefile.am): Likewise.
56886         * modules/getloadavg (Makefile.am): Likewise.
56887         * modules/getlogin_r (Makefile.am): Likewise.
56888         * modules/getopt (Makefile.am): Likewise.
56889         * modules/getpass (Makefile.am): Likewise.
56890         * modules/getpass-gnu (Makefile.am): Likewise.
56891         * modules/getsubopt (Makefile.am): Likewise.
56892         * modules/gettime (Makefile.am): Likewise.
56893         * modules/gettimeofday (Makefile.am): Likewise.
56894         * modules/getugroups (Makefile.am): Likewise.
56895         * modules/getusershell (Makefile.am): Likewise.
56896         * modules/glob (Makefile.am): Likewise.
56897         * modules/group-member (Makefile.am): Likewise.
56898         * modules/hard-locale (Makefile.am): Likewise.
56899         * modules/hash (Makefile.am): Likewise.
56900         * modules/hmac-md5 (Makefile.am): Likewise.
56901         * modules/hmac-sha1 (Makefile.am): Likewise.
56902         * modules/human (Makefile.am): Likewise.
56903         * modules/idcache (Makefile.am): Likewise.
56904         * modules/imaxabs (Makefile.am): Likewise.
56905         * modules/imaxdiv (Makefile.am): Likewise.
56906         * modules/inet_ntop (Makefile.am): Likewise.
56907         * modules/inet_pton (Makefile.am): Likewise.
56908         * modules/inttostr (Makefile.am): Likewise.
56909         * modules/isapipe (Makefile.am): Likewise.
56910         * modules/lchown (Makefile.am): Likewise.
56911         * modules/long-options (Makefile.am): Likewise.
56912         * modules/lstat (Makefile.am): Likewise.
56913         * modules/malloc (Makefile.am): Likewise.
56914         * modules/mathl (Makefile.am): Likewise.
56915         * modules/mbchar (Makefile.am): Likewise.
56916         * modules/md2 (Makefile.am): Likewise.
56917         * modules/md4 (Makefile.am): Likewise.
56918         * modules/md5 (Makefile.am): Likewise.
56919         * modules/memcasecmp (Makefile.am): Likewise.
56920         * modules/memchr (Makefile.am): Likewise.
56921         * modules/memcmp (Makefile.am): Likewise.
56922         * modules/memcoll (Makefile.am): Likewise.
56923         * modules/memcpy (Makefile.am): Likewise.
56924         * modules/memmem (Makefile.am): Likewise.
56925         * modules/memmove (Makefile.am): Likewise.
56926         * modules/mempcpy (Makefile.am): Likewise.
56927         * modules/memrchr (Makefile.am): Likewise.
56928         * modules/memset (Makefile.am): Likewise.
56929         * modules/memxor (Makefile.am): Likewise.
56930         * modules/mkancesdirs (Makefile.am): Likewise.
56931         * modules/mkdir (Makefile.am): Likewise.
56932         * modules/mkdir-p (Makefile.am): Likewise.
56933         * modules/mkdtemp (Makefile.am): Likewise.
56934         * modules/mkstemp (Makefile.am): Likewise.
56935         * modules/mktime (Makefile.am): Likewise.
56936         * modules/modechange (Makefile.am): Likewise.
56937         * modules/mountlist (Makefile.am): Likewise.
56938         * modules/nanosleep (Makefile.am): Likewise.
56939         * modules/openat (Makefile.am): Likewise.
56940         * modules/pagealign_alloc (Makefile.am): Likewise.
56941         * modules/physmem (Makefile.am): Likewise.
56942         * modules/poll (Makefile.am): Likewise.
56943         * modules/posixtm (Makefile.am): Likewise.
56944         * modules/posixver (Makefile.am): Likewise.
56945         * modules/putenv (Makefile.am): Likewise.
56946         * modules/quote (Makefile.am): Likewise.
56947         * modules/quotearg (Makefile.am): Likewise.
56948         * modules/raise (Makefile.am): Likewise.
56949         * modules/read-file (Makefile.am): Likewise.
56950         * modules/readline (Makefile.am): Likewise.
56951         * modules/readlink (Makefile.am): Likewise.
56952         * modules/readtokens (Makefile.am): Likewise.
56953         * modules/readutmp (Makefile.am): Likewise.
56954         * modules/realloc (Makefile.am): Likewise.
56955         * modules/regex (Makefile.am): Likewise.
56956         * modules/rename (Makefile.am): Likewise.
56957         * modules/rename-dest-slash (Makefile.am): Likewise.
56958         * modules/rijndael (Makefile.am): Likewise.
56959         * modules/rmdir (Makefile.am): Likewise.
56960         * modules/rpmatch (Makefile.am): Likewise.
56961         * modules/safe-read (Makefile.am): Likewise.
56962         * modules/safe-write (Makefile.am): Likewise.
56963         * modules/same (Makefile.am): Likewise.
56964         * modules/save-cwd (Makefile.am): Likewise.
56965         * modules/savedir (Makefile.am): Likewise.
56966         * modules/setenv (Makefile.am): Likewise.
56967         * modules/settime (Makefile.am): Likewise.
56968         * modules/sha1 (Makefile.am): Likewise.
56969         * modules/sig2str (Makefile.am): Likewise.
56970         * modules/snprintf (Makefile.am): Likewise.
56971         * modules/stdlib-safer (Makefile.am): Likewise.
56972         * modules/stpcpy (Makefile.am): Likewise.
56973         * modules/stpncpy (Makefile.am): Likewise.
56974         * modules/strcase (Makefile.am): Likewise.
56975         * modules/strcasestr (Makefile.am): Likewise.
56976         * modules/strchrnul (Makefile.am): Likewise.
56977         * modules/strcspn (Makefile.am): Likewise.
56978         * modules/strdup (Makefile.am): Likewise.
56979         * modules/strerror (Makefile.am): Likewise.
56980         * modules/strftime (Makefile.am): Likewise.
56981         * modules/strndup (Makefile.am): Likewise.
56982         * modules/strnlen (Makefile.am): Likewise.
56983         * modules/strpbrk (Makefile.am): Likewise.
56984         * modules/strsep (Makefile.am): Likewise.
56985         * modules/strstr (Makefile.am): Likewise.
56986         * modules/strtod (Makefile.am): Likewise.
56987         * modules/strtoimax (Makefile.am): Likewise.
56988         * modules/strtok_r (Makefile.am): Likewise.
56989         * modules/strtol (Makefile.am): Likewise.
56990         * modules/strtoll (Makefile.am): Likewise.
56991         * modules/strtoul (Makefile.am): Likewise.
56992         * modules/strtoull (Makefile.am): Likewise.
56993         * modules/strtoumax (Makefile.am): Likewise.
56994         * modules/strverscmp (Makefile.am): Likewise.
56995         * modules/time_r (Makefile.am): Likewise.
56996         * modules/timegm (Makefile.am): Likewise.
56997         * modules/tmpfile-safer (Makefile.am): Likewise.
56998         * modules/unistd-safer (Makefile.am): Likewise.
56999         * modules/unlinkdir (Makefile.am): Likewise.
57000         * modules/userspec (Makefile.am): Likewise.
57001         * modules/utime (Makefile.am): Likewise.
57002         * modules/utimecmp (Makefile.am): Likewise.
57003         * modules/utimens (Makefile.am): Likewise.
57004         * modules/vasnprintf (Makefile.am): Likewise.
57005         * modules/vasprintf (Makefile.am): Likewise.
57006         * modules/vsnprintf (Makefile.am): Likewise.
57007         * modules/xalloc (Makefile.am): Likewise.
57008         * modules/xgetcwd (Makefile.am): Likewise.
57009         * modules/xnanosleep (Makefile.am): Likewise.
57010         * modules/xreadlink (Makefile.am): Likewise.
57011         * modules/xstrtod (Makefile.am): Likewise.
57012         * modules/xstrtol (Makefile.am): Likewise.
57013         * modules/xstrtold (Makefile.am): Likewise.
57014         * modules/yesno (Makefile.am): Likewise.
57015
57016 2006-10-12  Jim Meyering  <jim@meyering.net>
57017
57018         * m4/getloadavg.m4: Revert the change below.
57019
57020         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
57021         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
57022         fail with a symlink, which is what coreutils' ./bootstrap now
57023         creates by default.
57024
57025 2006-10-12  Bruno Haible  <bruno@clisp.org>
57026
57027         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
57028         mingw.
57029         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
57030         MSVC and mingw explicitly.
57031
57032 2006-10-11  Simon Josefsson  <jas@extundo.com>
57033             Bruno Haible  <bruno@clisp.org>
57034
57035         Add support for multiple gnulib-tool invocations in the scope of a
57036         single configure.ac file.
57037         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
57038         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
57039         with the same contents as the _LIBADD variable.
57040         (func_emit_initmacro_start, func_emit_initmacro_end,
57041         func_emit_initmacro_done): New functions.
57042         (func_import, func_create_testdir): Invoke them. Allow the identifiers
57043         gl_LIBOBJS and gl_LTLIBOBJS.
57044
57045 2006-10-11  Bruno Haible  <bruno@clisp.org>
57046
57047         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
57048         (func_create_testdir): Don't create po/Makefile.am, don't invoke
57049         autoreconf. Instead, invoke autopoint explicitly but move back the
57050         *.m4 files from gnulib.
57051
57052 2006-10-11  Bruno Haible  <bruno@clisp.org>
57053
57054         * gnulib-tool (func_usage): Make module names after --create-testdir
57055         optional.
57056         (func_create_testdir): If no module was specified, use nearly all
57057         modules.
57058
57059 2006-10-12  Jim Meyering  <jim@meyering.net>
57060
57061         Big performance improvement for fts-based tools that use FTS_NOSTAT.
57062         Avoid spurious inode-mismatch problems on non-POSIX file systems.
57063         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
57064         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
57065         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
57066         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
57067         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
57068         (fts_set_stat_required): New function.
57069         (fts_open): Defer the calls to fts_stat, if possible or requested.
57070         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
57071         into fts_stat itself.
57072         (fts_read): Perform any required (deferred) fts_stat call.
57073         (fts_build): Likewise, for the directory we're about to open and read.
57074         In the readdir loop, carefully decide whether each entry will require
57075         an eventual call to fts_stat, using dirent.d_type info if available.
57076         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
57077         a command line argument into this function.  Update all callers.
57078         Map a return value of FTS_DOT to FTS_D for a command line argument.
57079         * modules/fts (Depends-on): Add d-type.  Alphabetize.
57080         Thanks to Miklos Szeredi for his tenacity and for the initial
57081         bug report about "find" failing on a FUSE-based file system.
57082
57083         * lib/fts.c (fts_open): Use consistent indentation.
57084
57085 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
57086
57087         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
57088         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
57089         reported by Jim Meyering.  All uses of cache variables renamed
57090         to match Autoconf's.
57091         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
57092         the other one.
57093
57094         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
57095         Fix misspelling in diagnostic.
57096
57097 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57098
57099         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
57100         defined.  Problem reported by Matthew Woehlke.
57101
57102         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
57103         Add support for Tandem NonStop R series.
57104         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
57105         Use new macro.
57106
57107         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
57108         (has_trailing_slash): Omit size arg; all callers changed.
57109         Omit 'inline', since it doesn't help performance and we'd
57110         need to configure it.
57111         Don't count //, ///, etc. as having a trailing slash.
57112         As a side effect, this removes a C99ism reported by Matthew Woehlke.
57113         (rpl_rename_dest_slash): On failure, use rename's errno rather
57114         than (in some cases) an incorrect or junk errno.
57115         Simplify code by removing need to compute length; this does
57116         cause it to make two passes instead of one over the file name,
57117         but it's worth it.
57118
57119         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
57120         change, since Autoconf's version may no longer be appropriate now
57121         that we are using CVS Autoconf's version.  Add support for Tandem.
57122
57123 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57124             Bruno Haible  <bruno@clisp.org>
57125
57126         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
57127         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
57128         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
57129         gl_AC_TYPE_LONG_LONG.
57130
57131         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
57132         instead of HAVE_LONG_LONG.
57133         * lib/printf-args.c (printf_fetchargs): Likewise.
57134         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
57135         * lib/vasnprintf.c (VASNPRINTF): Likewise.
57136         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
57137         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
57138         gl_AC_TYPE_LONG_LONG.
57139
57140 2006-10-11  Bruno Haible  <bruno@clisp.org>
57141
57142         * m4/longlong.m4: Add comments.
57143         * m4/ulonglong.m4: Likewise.
57144
57145 2006-10-10  Bruno Haible  <bruno@clisp.org>
57146
57147         Make it possible to #define stpcpy, strdup to aliases.
57148         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
57149         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
57150
57151 2006-10-10  Bruno Haible  <bruno@clisp.org>
57152
57153         Make it possible to #define gcd to an alias.
57154         * lib/gcd.c: Include config.h.
57155
57156 2006-10-10  Bruno Haible  <bruno@clisp.org>
57157
57158         Make it possible to #define c_isascii to an alias.
57159         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
57160         defined. Undefine the macros before defining them, to avoid gcc
57161         warnings.
57162         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
57163         define NO_C_CTYPE_MACROS early.
57164
57165 2006-10-10  Bruno Haible  <bruno@clisp.org>
57166
57167         Make it possible to #define set_program_name to an alias.
57168         * lib/progname.c: Don't undefine set_program_name; instead, undefine
57169         ENABLE_RELOCATABLE early.
57170
57171 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
57172
57173         Port to Tandem NSK OSS, which has 64-bit signed int but at most
57174         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
57175         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
57176         More generally, don't assume that 64-bit signed int is available
57177         if unsigned int is, and vice versa.
57178         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
57179         unsigned symbols, not on their signed counterparts.
57180         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
57181         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
57182         (UINT64_C, UINTMAX_C):
57183         Likewise.
57184         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
57185         unsigned counterparts.
57186         (Have_long_long, Unsigned): New macros.
57187         (Int): Renamed from INT.
57188         (strtoimax): Use the new macros.
57189         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
57190         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
57191         * modules/inttypes (inttypes.h): Substitute
57192         HAVE_UNSIGNED_LONG_LONG_INT.
57193         * modules/stdint (stdint.h): Likewise.
57194         (Files): Add m4/ulonglong.m4.
57195
57196 2006-10-10  Bruno Haible  <bruno@clisp.org>
57197
57198         Fix a gcc -Wshadow warning.
57199         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
57200         to 'bucket'.
57201         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
57202         gl_linked_indexof_from_to): Likewise.
57203         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
57204         Likewise.
57205         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
57206         Likewise.
57207         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
57208         Reported by Eric Blake.
57209
57210 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
57211
57212         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
57213         for NetBSD.  Problem reported by Bruno Haible.
57214
57215 2006-10-09  Jim Meyering  <jim@meyering.net>
57216
57217         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
57218         Patch from Bruno Haible.
57219
57220 2006-10-09  Jim Meyering  <jim@meyering.net>
57221
57222         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
57223         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
57224         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
57225
57226 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57227
57228         Don't include <config.h> twice; this doesn't work in some cases,
57229         e.g., when config.h has "#define intmax_t long long int" and
57230         we include <config.h>, <inttypes.h>, <config.h> in that order.
57231         Problem reported by Matthew Woehlke in:
57232         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
57233         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
57234         * lib/fts-cycle.c: Don't include config.h.
57235         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
57236         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
57237         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
57238         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
57239         inttypes.h.
57240         * lib/xstrtoumax.c: Likewise.
57241         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
57242         __strtol and the like, so that this module is more like its siblings.
57243         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
57244         Remove; no longer needed now that we assume gnulib inttypes.h.
57245
57246 2006-10-08  Bruno Haible  <bruno@clisp.org>
57247
57248         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
57249         option.
57250
57251 2006-10-07  Jim Meyering  <jim@meyering.net>
57252
57253         * modules/inttypes (inttypes.h): Revert what seems to have been
57254         an inadvertent part of today's change: use "|", not "/" in the
57255         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
57256
57257 2006-10-07  Bruno Haible  <bruno@clisp.org>
57258
57259         * modules/sublist: New file.
57260
57261 2006-10-07  Bruno Haible  <bruno@clisp.org>
57262
57263         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
57264         * modules/argz (argz.h): Likewise.
57265         * modules/arpa_inet (arpa/inet.h): Likewise.
57266         * modules/byteswap (byteswap.h): Likewise.
57267         * modules/configmake (configmake.h): Likewise.
57268         * modules/fcntl (fcntl.h): Likewise.
57269         * modules/fnmatch (fnmatch.h): Likewise.
57270         * modules/getopt (getopt.h): Likewise.
57271         * modules/glob (glob.h): Likewise.
57272         * modules/inttypes (inttypes.h): Likewise.
57273         * modules/netinet_in (netinet/in.h): Likewise.
57274         * modules/poll (poll.h): Likewise.
57275         * modules/stdbool (stdbool.h): Likewise.
57276         * modules/stdint (stdint.h): Likewise.
57277         * modules/sys_select (sys/select.h): Likewise.
57278         * modules/sys_socket (sys/socket.h): Likewise.
57279         * modules/sys_stat (sys/stat.h): Likewise.
57280         * modules/sysexits (sysexits.h): Likewise.
57281         * modules/unistd (unistd.h): Likewise.
57282         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57283         Add a "DO NOT EDIT" comment to the generated file.
57284         (func_import): Likewise for gnulib-comp.m4.
57285
57286 2006-10-07  Bruno Haible  <bruno@clisp.org>
57287
57288         * lib/gl_sublist.h: New file.
57289         * lib/gl_sublist.c: New file.
57290
57291 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
57292
57293         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
57294         name (relative to the original working directory) and the file
57295         name component (relative to the temporary working directory).  All
57296         callers changed.
57297         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
57298         * lib/mkdir-p.c (make_dir_parents): Likewise.
57299         * lib/mkdir-p.h (make_dir_parents): Likewise.
57300
57301 2006-10-06  Eric Blake  <ebb9@byu.net>
57302
57303         Define several macros for use by the clean-temp module.
57304         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
57305         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
57306         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
57307
57308         * lib/clean-temp.h (close_stream_temp): New declaration.
57309         * lib/clean-temp.c (includes): Pull in headers according to what
57310         other modules are in use.
57311         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
57312
57313 2006-10-06  Bruno Haible  <bruno@clisp.org>
57314
57315         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
57316         instead of fopen, fwriteerror.
57317
57318 2006-10-06  Bruno Haible  <bruno@clisp.org>
57319
57320         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
57321         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
57322         int.
57323         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
57324         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
57325         Return an error indicator.
57326         Suggested by Eric Blake.
57327
57328 2006-10-06  Bruno Haible  <bruno@clisp.org>
57329
57330         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
57331         Reported by Eric Blake.
57332
57333 2006-10-06  Bruno Haible  <bruno@clisp.org>
57334
57335         * modules/closeout (Description): Mention stderr too.
57336
57337 2006-10-06  Bruno Haible  <bruno@clisp.org>
57338         and Paul Eggert  <eggert@cs.ucla.edu>
57339
57340         * lib/closeout.c (close_stdout): Also close stderr.
57341         * lib/closeout.h: Update comment.
57342
57343 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
57344
57345         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
57346         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
57347         * lib/dirchownmod.c: Include lchown.h.
57348         * lib/lchown.c: Don't include files that lchown.h now includes.
57349         Don't declare chown, since lchown.h now does that.
57350         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
57351         (lchown): Define to rpl_chown if lchown is declared but
57352         does not exist.  Declare using a prototype if lchown is not
57353         declared.  Add a copyright notice.
57354         * lib/mkstemp.h: Include <unistd.h>.
57355         * lib/openat.c: Include lchown.h.
57356
57357         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
57358         we now test for that separately.
57359         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
57360         rather than O_NOFOLLOW, when testing whether it's possible to
57361         avoid a race condition reliably.
57362         * lib/savewd.c (savewd_chdir): Likewise.
57363
57364         Remove macros that are no longer needed now that stdint.h is
57365         reliable.
57366         * lib/fsusage.c (UINTMAX_MAX): Remove.
57367         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
57368         * lib/utimecmp.c (SIZE_MAX): Remove.
57369
57370         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
57371
57372         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
57373         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
57374         O_NOATIME works.
57375
57376 2006-10-05  Bruno Haible  <bruno@clisp.org>
57377
57378         * lib/gl_list.h (gl_sortedlist_search_from_to,
57379         gl_sortedlist_indexof_from_to): New declarations.
57380         (gl_list_implementation): New fields sortedlist_search_from_to,
57381         sortedlist_indexof_from_to.
57382         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
57383         inline functions.
57384         * lib/gl_list.c (gl_sortedlist_search_from_to,
57385         gl_sortedlist_indexof_from_to): New functions.
57386         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
57387         function.
57388         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
57389         (gl_array_sortedlist_search_from_to): New function.
57390         (gl_array_list_implementation): Update.
57391         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
57392         function.
57393         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
57394         (gl_carray_sortedlist_search_from_to): New function.
57395         (gl_carray_list_implementation): Update.
57396         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
57397         gl_linked_sortedlist_indexof_from_to): New functions.
57398         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57399         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57400         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
57401         gl_tree_sortedlist_indexof_from_to): New functions.
57402         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57403         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57404         Update.
57405         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57406         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
57407         Update.
57408
57409 2006-10-05  Bruno Haible  <bruno@clisp.org>
57410
57411         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
57412         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
57413         (struct gl_list_implementation): Add fields search_from_to,
57414         indexof_from_to. Remove fields search, indexof.
57415         (gl_list_search): Use the search_from_to method.
57416         (gl_list_search_from, gl_list_search_from_to): New functions.
57417         (gl_list_indexof): Use the indexof_from_to method.
57418         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
57419         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
57420         (gl_list_search_from, gl_list_search_from_to): New functions.
57421         (gl_list_indexof): Use the indexof_from_to method.
57422         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
57423         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
57424         gl_array_indexof. Add start_index, end_index arguments.
57425         (gl_array_search_from_to): Renamed from gl_array_search. Add
57426         start_index, end_index arguments.
57427         (gl_array_remove, gl_array_list_implementation): Update.
57428         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
57429         gl_carray_indexof. Add start_index, end_index arguments.
57430         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
57431         start_index, end_index arguments.
57432         (gl_carray_remove, gl_carray_list_implementation): Update.
57433         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
57434         gl_linked_search. Add start_index, end_index arguments.
57435         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
57436         start_index, end_index arguments.
57437         (gl_linked_remove): Update.
57438         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57439         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57440         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
57441         field to 'size_t'.
57442         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
57443         gl_tree_search. Add start_index, end_index arguments.
57444         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
57445         start_index, end_index arguments.
57446         (gl_tree_remove): Update.
57447         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57448         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57449         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
57450         function.
57451         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
57452         gl_tree_search. Add start_index, end_index arguments.
57453         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
57454         start_index, end_index arguments.
57455         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57456         Update.
57457         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57458
57459 2006-10-05  Bruno Haible  <bruno@clisp.org>
57460
57461         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
57462
57463         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
57464         fwriteerror_temp): New declarations.
57465         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
57466         (descriptors): New variable.
57467         (cleanup): First, close the descriptors.
57468         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
57469         fclose_temp, fwriteerror_temp): New functions.
57470
57471 2006-10-04  Jim Meyering  <jim@meyering.net>
57472
57473         * lib/fts.c (fts_open): Tiny comment change.
57474
57475 2006-10-04  Bruno Haible  <bruno@clisp.org>
57476
57477         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
57478         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
57479         gl_LOCK_BODY.
57480         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
57481         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
57482         gl_LOCK_EARLY_BODY.
57483         (gl_LOCK): Require gl_LOCK_BODY.
57484
57485 2006-10-04  Bruno Haible  <bruno@clisp.org>
57486
57487         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
57488         (gl_oset_search_atleast): New declaration.
57489         (struct gl_oset_implementation): Add field 'search_atleast'.
57490         (gl_oset_search_atleast): New inline function.
57491         * lib/gl_oset.c (gl_oset_search_atleast): New function.
57492         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
57493         (gl_array_oset_implementation): Update.
57494         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
57495         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
57496         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
57497
57498 2006-10-04  Bruno Haible  <bruno@clisp.org>
57499
57500         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
57501
57502 2006-10-03  Bruno Haible  <bruno@clisp.org>
57503
57504         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
57505         from gl_avltreehash_list_implementation.
57506
57507 2006-10-03  Bruno Haible  <bruno@clisp.org>
57508
57509         * lib/gl_oset.c (gl_oset_add): Fix return type.
57510
57511 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
57512
57513         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
57514
57515 2006-10-02  Eric Blake  <ebb9@byu.net>
57516
57517         * modules/strnlen (Depends-on): Add extensions.
57518
57519 2006-10-02  Eric Blake  <ebb9@byu.net>
57520
57521         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
57522         definition in 2.60+.
57523
57524 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
57525
57526         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
57527         checks.
57528
57529 2006-10-02  Bruno Haible  <bruno@clisp.org>
57530
57531         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
57532         to the AUTOMAKE_OPTIONS.
57533         Reported by Jim Meyering.
57534
57535 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
57536
57537         Work around bug in Solaris 10 /proc file system:
57538         /proc/self/fd/NNN/.. isn't the parent directory of
57539         the directory whose file descriptor is NNN.  This needs to
57540         be worked around at run time, not compile time, since a
57541         program might be built on Solaris 8, where things work, and
57542         run on Solaris 10.
57543         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
57544         to use the following interface instead:
57545         (OPENAT_BUFFER_SIZE): New macro.
57546         (openat_proc_name): New function.
57547         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
57548         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
57549         Likewise.
57550         * lib/openat-proc.c: New file.
57551         * modules/openat (Files): Add lib/openat-proc.c.
57552         (Depends-on): Add same-inode, stdbool.
57553         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
57554
57555 2006-09-29  Bruno Haible  <bruno@clisp.org>
57556
57557         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
57558         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
57559         argument. Set stdout_closed before testing for ferror, not after.
57560         (fwriteerror, fwriteerror_no_ebadf): New functions.
57561
57562 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57563
57564         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
57565
57566 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
57567
57568         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
57569         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
57570
57571 2006-09-28  Jim Meyering  <jim@meyering.net>
57572
57573         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
57574         Include <unistd.h>.
57575
57576 2006-09-28  Bruno Haible  <bruno@clisp.org>
57577
57578         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
57579         * modules/linkedhash-list (Depends-on): Likewise.
57580         * modules/rbtreehash-list (Depends-on): Likewise.
57581
57582 2006-09-28  Bruno Haible  <bruno@clisp.org>
57583
57584         * lib/strndup.h: Simplify the redefinition of strndup.
57585         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
57586         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
57587
57588 2006-09-28  Bruno Haible  <bruno@clisp.org>
57589
57590         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
57591         * lib/gl_linkedhash_list.c: Likewise.
57592         * lib/gl_rbtreehash_list.c: Likewise.
57593
57594 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
57595
57596         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
57597         getaddrinfo.
57598
57599         * lib/__fpending.h: Don't include <stdio_ext.h> unless
57600         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
57601         it causes <stdio_ext.h> to cause a compile-time error.
57602         Problem reported by Nelson H. F. Beebe.
57603         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
57604         of HAVE_DECL___PENDING.
57605
57606         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
57607         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
57608         declaration.
57609
57610 2006-09-27  Jim Meyering  <jim@meyering.net>
57611
57612         This file could end up with a definition for a function
57613         named __strndup, rather than rpl_strndup on a system with
57614         incomplete weak_alias support.
57615         * lib/strndup.c (strndup): Rename from __strndup.
57616         Remove #defines that used to map __strndup to strndup.
57617         Don't use K&R prototypes.
57618         Remove LIBC-related code, since this file is not sync'd with glibc.
57619         * lib/strndup.h: Revamp, accordingly.
57620         * m4/strndup.m4: Modernize.
57621
57622 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
57623
57624         * modules/savewd (Depends-on): Add 'raise'.
57625         * lib/savewd.c: Include <signal.h>, for 'raise'.
57626
57627 2006-09-26  Jim Meyering  <jim@meyering.net>
57628
57629         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
57630         when we detect Darwin 8.7.0's acl_get_file bug.
57631         Rearrange to perform the new (below) run-test while $LIBS
57632         contains any acl-related library.  Set USE_ACL at the end.
57633         (gl_ACL_GET_FILE): New function.
57634
57635 2006-09-26  Eric Blake  <ebb9@byu.net>
57636
57637         * lib/verror.c: Include <config.h> unconditionally.
57638
57639 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
57640
57641         * modules/clock-time (Maintainer): Add self.
57642         * modules/getlogin_r (Depends-on): Add extensions.
57643
57644 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57645
57646         * modules/clock-time: New module.
57647         * modules/nanosleep (Depends-on): Add clock-time.
57648         * modules/gethrxtime (Depends-on): Likewise.
57649         * modules/gettime (Depends-on): Likewise.
57650         * modules/settime (Depends-on): Likewise.
57651
57652         * modules/fts-lgpl: Depend on openat.
57653         * modules/mkancesdirs: Depend on savewd.
57654         * modules/mkdir-p: Likewise.
57655
57656 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57657
57658         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
57659
57660         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
57661         `gl_have_arbitrary_file_name_length_limit' to
57662         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
57663         actually works between configure runs.
57664
57665 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57666             Bruno Haible  <bruno@clisp.org>
57667
57668         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
57669
57670 2006-09-25  Jim Meyering  <jim@meyering.net>
57671
57672         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
57673         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
57674
57675 2006-09-25  Eric Blake  <ebb9@byu.net>
57676
57677         * gnulib-tool (func_import, func_create_testdir): Fix typos in
57678         exec's in 2006-09-18 patch when shuffling fds.
57679
57680 2006-09-25  Bruno Haible  <bruno@clisp.org>
57681
57682         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
57683         Reported by Jim Meyering.
57684
57685 2006-09-24  Jim Meyering  <jim@meyering.net>
57686
57687         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
57688         compare a pointer against a literal "0".  That caused failures with
57689         at least HP-UX's hpcc.
57690
57691 2006-09-22  Simon Josefsson  <jas@extundo.com>
57692
57693         * modules/gc-sha1:
57694         * modules/gc-md4:
57695         * modules/gc-hmac-sha1:
57696         * modules/gc-hmac-md5:
57697         * modules/gc-des:
57698         * modules/gc-arcfour: Distribute more files.
57699
57700 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57701
57702         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
57703         (gl_linked_iterator_from_to): Initialize struct completely.
57704         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
57705         (gl_tree_iterator_from_to): Likewise
57706         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
57707         * lib/gl_array_list.c [lint] (gl_array_iterator)
57708         (gl_array_iterator_from_to): Likewise.
57709         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
57710         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
57711         (gl_carray_iterator_from_to): Likewise.
57712
57713         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
57714         * lib/md4.c (md4_process_block): Remove unused variable.
57715         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
57716         parentheses for clarity.
57717
57718 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57719
57720         * modules/bison-i18n (Depends-on): Add gettext.
57721
57722 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57723
57724         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
57725         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
57726         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
57727         also add missing comma that caused broken test.
57728         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
57729         stdlib.h, for `abort'.
57730         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
57731         variables.
57732         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
57733         include unistd.h if present, for `rmdir'.
57734         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
57735         variables.
57736         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
57737         in the process include standard headers for prototypes.
57738         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
57739         gets declared on GNU/Linux.
57740         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
57741         unistd.h, for `rmdir'.
57742         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
57743
57744         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
57745         always true.
57746         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
57747
57748         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
57749
57750 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57751
57752         * gnulib-tool (func_version): Create output all at once.  This
57753         may help avoid triggering unnecessary SIGPIPEs, and at any
57754         rate it doesn't hurt.
57755
57756 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57757             Bruno Haible  <bruno@clisp.org>
57758
57759         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
57760         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
57761         * m4/signed.m4 (bh_C_SIGNED): Likewise.
57762
57763         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
57764         (gl_FUNC_VASPRINTF): Invoke it.
57765
57766 2006-09-22  Bruno Haible  <bruno@clisp.org>
57767
57768         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
57769         getloadavg.c as first argument.
57770
57771 2006-09-22  Bruno Haible  <bruno@clisp.org>
57772
57773         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
57774         at the beginning of the gl_INIT macro.
57775         * modules/getloadavg (configure.ac): Pass $gl_source_base to
57776         gl_GETLOADAVG.
57777
57778 2006-09-22  Bruno Haible  <bruno@clisp.org>
57779
57780         * gnulib-tool (func_create_megatestdir): Don't include the config-h
57781         module.
57782         Suggested by Ralf Wildenhues.
57783
57784 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
57785
57786         Import this patch from libc:
57787
57788         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
57789
57790         * lib/regex_internal.c (re_string_reconstruct): Handle
57791         offset < pstr->valid_raw_len && pstr->offsets_needed case.
57792         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
57793         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
57794         re_string_context_at.
57795
57796         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
57797         now requires it.
57798         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
57799         gl_REGEX now does it for us.
57800         (gl_REGEX): Add test taken from
57801         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
57802
57803         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
57804         Check that large offsets work.  Modernize Autoconf usages.
57805         Prefer "yes" to mean a good thing rather than a bad.
57806         Don't put "#define mkstemp" in config.h, as this might interfere
57807         with standard system headers that "#define mkstemp mkstemp64".
57808
57809         * modules/mkstemp (Depends-on): Add extensions, so that
57810         mkstemp is visible on some platforms.
57811         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
57812         (Include): Change to "mkstemp.h" from <stdlib.h>.
57813         (Files): Add mkstemp.h.
57814
57815         * lib/mkstemp.h: New file, since some standard headers
57816         #define mkstemp.
57817         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
57818         Include "mkstemp.h".
57819         Make the _LIBC code resemble glibc original more,
57820         e.g., use K&R style.
57821         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
57822         (mkstemp): Remove, since mkstemp.h does this for us.
57823         * lib/stdlib--.h: Include mkstemp.h.
57824
57825         Import this patch from libc:
57826
57827         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
57828
57829         * lib/tempname.c (__gen_tempname): Change attempts_min
57830         into a macro.  Use preprocessor to decide how to initialize
57831         attempts [Coverity CID 67].
57832
57833 2006-09-20  Bruno Haible  <bruno@clisp.org>
57834
57835         * lib/mkdtemp.c: Import from libc.
57836         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
57837                 * sysdeps/posix/tempname.c (__gen_tempname): Change
57838                 attempts_min into a macro.  Use preprocessor to decide how to
57839                 initialize attempts [Coverity CID 67].
57840         2001-11-27  Paul Eggert  <eggert@twinsun.com>
57841                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
57842                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
57843
57844 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57845
57846         * gnulib-tool (func_exit): New function, to allow to pass the
57847         exit status portably through the trap.  Use everywhere.
57848         (--help, --version): Signal a write error.
57849         (trap): catch SIGPIPE, for write errors.
57850         Exit at the end of the trap, with the correct exit status.
57851
57852 2006-09-19  Karl Berry  <karl@gnu.org>
57853
57854         * doc/gnulib.texi: note about the license texinfo files.
57855
57856 2006-09-19  Eric Blake  <ebb9@byu.net>
57857
57858         * gnulib-tool: Avoid space-tab.
57859
57860 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
57861
57862         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
57863         that prevented coreutils 6.1 from building.  Problem reported
57864         by Petter Reinholdtsen.
57865
57866 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
57867
57868         * gnulib-tool (avoidlist): Fix typo that broke options like
57869         --avoid=lock that are used by coreutils bootstrap.
57870
57871 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
57872
57873         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
57874         more systematically.
57875
57876 2006-09-18  Jim Meyering  <jim@meyering.net>
57877
57878         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
57879
57880 2006-09-18  Bruno Haible  <bruno@clisp.org>
57881
57882         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
57883
57884 2006-09-18  Bruno Haible  <bruno@clisp.org>
57885
57886         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
57887         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
57888         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
57889         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
57890         * m4/gettext.m4: Require autoconf >= 2.52.
57891         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
57892         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
57893         of gl_cv_header_inttypes_h.
57894
57895 2006-09-18  Bruno Haible  <bruno@clisp.org>
57896
57897         * lib/javaversion.c: Include configmake.h.
57898
57899 2006-09-18  Bruno Haible  <bruno@clisp.org>
57900
57901         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
57902         avoid that the while loops be executed in a subshell.
57903
57904 2006-09-18  Bruno Haible  <bruno@clisp.org>
57905
57906         * MODULES.html.sh (func_module): Break long lines.
57907         Suggested by Bruce Korb <bkorb@gnu.org>.
57908
57909 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57910
57911         Speed up by a factor of 1.12.
57912         * gnulib-tool (nl): New variable.
57913         (func_import): Rewrite include directive extraction to only read each
57914         directive once.
57915
57916 2006-09-17  Bruno Haible  <bruno@clisp.org>
57917
57918         * modules/javaversion (Makefile.am): Remove DEFS setting.
57919         (Depends-on): Add configmake, for PKGDATADIR definition.
57920
57921 2006-09-17  Bruno Haible  <bruno@clisp.org>
57922
57923         * gnulib-tool (func_create_testdir): Rewrite all files at once.
57924
57925 2006-09-17  Bruno Haible  <bruno@clisp.org>
57926
57927         * gnulib-tool (func_append): New function, stolen from libtool.m4.
57928         (func_modules_transitive_closure, func_modules_add_dummy,
57929         func_modules_to_filelist, func_import, func_create_testdir,
57930         func_create_megatestdir, ...): Use it wherever possible.
57931         Suggested by Ralf Wildenhues.
57932
57933 2006-09-16  Karl Berry  <karl@gnu.org>
57934
57935         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
57936         to avoid sectioning errors.
57937         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
57938         [ifinfo]: blank line after @center-ed titles.
57939         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
57940         Spell FSF address consistently with others.
57941         (These changes approved by rms.)
57942
57943 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57944
57945         Speed up by a factor of 1.61.
57946         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
57947         already checked module names again.
57948
57949 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57950
57951         Speed up by a factor of 1.13.
57952         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
57953         for new_files, and the input to func_add_or_update.
57954
57955 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57956
57957         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
57958         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
57959
57960 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57961
57962         * modules/mkancesdirs (Depends-on): Add fcntl.
57963         * modules/savewd: New file.
57964         * MODULES.html.sh (File system functions): Add savewd.
57965
57966         * modules/configmake (Makefile.am): Add support for the
57967         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
57968
57969 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57970
57971         * m4/savewd.m4: New file.
57972
57973 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57974
57975         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
57976         (dirchownmod): New arg FD.  All callers changed.
57977         Use FD rather than opening the directory ourself, as opening is
57978         now the caller's responsibility.
57979         * lib/dirchownmod.h: Likewise.
57980         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
57981         hosts that require <sys/types.h> before <sys/stat.h>.  Include
57982         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
57983         (test_dir): Remove.
57984         (mkancesdirs): Return length of prefix of FILE that has already
57985         been made, or -2 if there is a child doing the work.  Redo
57986         algorithm so that it is O(N) rather than O(N**2).  Optimize away
57987         ".", and treat ".." specially since it might stray back into
57988         already-created areas.  Use a subprocess if necessary.  New arg
57989         WD; all users changed.  MAKE_DIR function should now return 1
57990         if it creates a directory that is not readable.  Return -2 if
57991         a child process is spun off.
57992         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
57993         Adjust signature to match code.
57994         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
57995         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
57996         all users changed.
57997         * lib/savewd.c, lib/savewd.h: New files.
57998
57999 2006-09-15  Jim Meyering  <jim@meyering.net>
58000
58001         * modules/rename-dest-slash: New module.
58002         * MODULES.html.sh (posix_compat): Add it here.
58003
58004         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
58005
58006 2006-09-15  Jim Meyering  <jim@meyering.net>
58007
58008         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
58009         file.
58010
58011         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
58012
58013 2006-09-15  Jim Meyering  <jim@meyering.net>
58014
58015         * lib/rename-dest-slash.c (has_trailing_slash): Use
58016         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
58017         (rpl_rename_dest_slash): Perform the cheaper trailing slash
58018         test before testing whether SRC is a directory.
58019         Suggestions from Bruno Haible.
58020
58021         Avoid a warning about an unused variable.
58022         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
58023         into the #ifdef block where it's used.
58024
58025         * lib/rename-dest-slash.c: New file.
58026
58027 2006-09-14  Bruno Haible  <bruno@clisp.org>
58028
58029         * lib/allocsa.c: Include <config.h> unconditionally.
58030         * lib/asnprintf.c: Likewise.
58031         * lib/asprintf.c: Likewise.
58032         * lib/c-strcasecmp.c: Likewise.
58033         * lib/c-strcasestr.c: Likewise.
58034         * lib/c-strncasecmp.c: Likewise.
58035         * lib/c-strstr.c: Likewise.
58036         * lib/classpath.c: Likewise.
58037         * lib/clean-temp.c: Likewise.
58038         * lib/concatpath.c: Likewise.
58039         * lib/copy-file.c: Likewise.
58040         * lib/csharpcomp.c: Likewise.
58041         * lib/csharpexec.c: Likewise.
58042         * lib/execute.c: Likewise.
58043         * lib/fatal-signal.c: Likewise.
58044         * lib/findprog.c: Likewise.
58045         * lib/fwriteerror.c: Likewise.
58046         * lib/gl_array_list.c: Likewise.
58047         * lib/gl_array_oset.c: Likewise.
58048         * lib/gl_avltree_list.c: Likewise.
58049         * lib/gl_avltree_oset.c: Likewise.
58050         * lib/gl_avltreehash_list.c: Likewise.
58051         * lib/gl_carray_list.c: Likewise.
58052         * lib/gl_linked_list.c: Likewise.
58053         * lib/gl_linkedhash_list.c: Likewise.
58054         * lib/gl_list.c: Likewise.
58055         * lib/gl_oset.c: Likewise.
58056         * lib/gl_rbtree_list.c: Likewise.
58057         * lib/gl_rbtree_oset.c: Likewise.
58058         * lib/gl_rbtreehash_list.c: Likewise.
58059         * lib/imaxabs.c: Likewise.
58060         * lib/imaxdiv.c: Likewise.
58061         * lib/javacomp.c: Likewise.
58062         * lib/javaexec.c: Likewise.
58063         * lib/javaversion.c: Likewise.
58064         * lib/linebreak.c: Likewise.
58065         * lib/localcharset.c: Likewise.
58066         * lib/lock.c: Likewise.
58067         * lib/mbchar.c: Likewise.
58068         * lib/mbswidth.c: Likewise.
58069         * lib/mkdtemp.c: Likewise.
58070         * lib/pipe.c: Likewise.
58071         * lib/printf-args.c: Likewise.
58072         * lib/printf-parse.c: Likewise.
58073         * lib/progname.c: Likewise.
58074         * lib/progreloc.c: Likewise.
58075         * lib/readlink.c: Likewise.
58076         * lib/sh-quote.c: Likewise.
58077         * lib/stpcpy.c: Likewise.
58078         * lib/stpncpy.c: Likewise.
58079         * lib/strcasecmp.c: Likewise.
58080         * lib/strcasestr.c: Likewise.
58081         * lib/strcspn.c: Likewise.
58082         * lib/striconv.c: Likewise.
58083         * lib/strncasecmp.c: Likewise.
58084         * lib/strnlen1.c: Likewise.
58085         * lib/strstr.c: Likewise.
58086         * lib/strtok_r.c: Likewise.
58087         * lib/tls.c: Likewise.
58088         * lib/tmpdir.c: Likewise.
58089         * lib/unicodeio.c: Likewise.
58090         * lib/unsetenv.c: Likewise.
58091         * lib/vasnprintf.c: Likewise.
58092         * lib/vasprintf.c: Likewise.
58093         * lib/wait-process.c: Likewise.
58094         * lib/xallocsa.c: Likewise.
58095         * lib/xsetenv.c: Likewise.
58096         * lib/xstriconv.c: Likewise.
58097
58098 2006-09-13  Simon Josefsson  <jas@extundo.com>
58099
58100         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
58101         that internally, suggested by Ralf Wildenhues
58102         <Ralf.Wildenhues@gmx.de>.
58103
58104 2006-09-13  Simon Josefsson  <jas@extundo.com>
58105
58106         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
58107         @LIBOBJS@.
58108         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58109
58110 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
58111
58112         * lib/_fpending.c: Include <config.h> unconditionally, since we no
58113         longer worry about uses that don't define HAVE_CONFIG_H.
58114         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
58115         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
58116         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
58117         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
58118         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
58119         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
58120         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
58121         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
58122         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
58123         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
58124         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
58125         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
58126         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
58127         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
58128         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
58129         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
58130         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
58131         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
58132         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
58133         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
58134         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
58135         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
58136         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
58137         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
58138         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
58139         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
58140         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
58141         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
58142         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
58143         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
58144         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
58145         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
58146         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
58147         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
58148         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
58149         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
58150         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
58151         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
58152         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
58153         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
58154         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
58155         Likewise.
58156
58157 2006-09-13  Eric Blake  <ebb9@byu.net>
58158
58159         * lib/getopt.c: Fix typo in last commit.
58160
58161 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58162
58163         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
58164         dgettext.
58165
58166 2006-09-12  Jim Meyering  <jim@meyering.net>
58167
58168         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
58169         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
58170         Reported by Nelson H. F. Beebe.
58171
58172 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58173
58174         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
58175         program_invocation_name and program_invocation_short_name are
58176         initialized.
58177         * lib/argp-namefrob.h: Move declarations of program_invocation_name
58178         and program_invocation_short_name to argp.h, so they are visible
58179         to user programs.
58180         * lib/argp.h: Likewise
58181
58182 2006-09-10  Bruno Haible  <bruno@clisp.org>
58183
58184         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
58185         m4/inttypes_h.m4, m4/uintmax_t.m4.
58186
58187 2006-09-10  Bruno Haible  <bruno@clisp.org>
58188
58189         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
58190         gl_AC_TYPE_UINTMAX_T.
58191
58192 2006-09-10  Bruno Haible  <bruno@clisp.org>
58193
58194         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
58195
58196 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58197
58198         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
58199         convention.  Text proposed by Bruno Haible.
58200         (struct argp_option): Document the use of N_() wrappers.
58201
58202         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
58203         '\v', and translate the two parts separately, instead of feeding
58204         the whole string to gettext.  This allows to exclude
58205         '\v' from the strings visible to the translator by writing doc
58206         strings as N_("..") "\v" N_("..").
58207
58208 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
58209
58210         * config/srclist.txt: Undo latest change; the bug was fixed.
58211
58212 2006-09-09  Bruno Haible  <bruno@clisp.org>
58213
58214         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
58215         assignments if building a library without libtool.
58216         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
58217         in func_emit_lib_Makefile_am.
58218         (func_import): When building a static library libfoo.a, arrange to
58219         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
58220         (func_create_testdir): Likewise.
58221         * modules/gc (configure.ac, Makefile.am): If building statically,
58222         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
58223         * modules/iconvme (configure.ac, Makefile.am): Likewise.
58224         * modules/striconv (configure.ac, Makefile.am): Likewise.
58225         Based on a suggestion by Ralf Wildenhues.
58226
58227 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58228
58229         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
58230         Check for unistd.h too, since Autoconf doesn't assume POSIX.
58231         Also:
58232
58233         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58234         Add year_2050_test to catch glibc bug 2821
58235         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
58236
58237         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58238         Prefer #ifdef to #if.
58239
58240         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
58241         Return from 'main' instead of calling 'exit'.
58242
58243 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58244
58245         * lib/mktime.c (guess_time_tm): Fix bug where mktime
58246         returned the maximum time_t value rather than (time_t) -1.
58247         Problem originally reported by William Bardwell
58248         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
58249
58250         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
58251         Moved to here ...
58252         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
58253         ... from here.
58254
58255 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58256
58257         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
58258         2821 is fixed.
58259
58260 2006-09-08  Jim Meyering  <jim@meyering.net>
58261
58262         Don't make generated files read-only.  That would bother too many
58263         people.  However, do retain the ability to work when targets are
58264         read-only: remove the destination and temporary files before writing
58265         them (when generated via sed or echo), or by using the -f option for
58266         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
58267         * modules/alloca-opt, modules/argz, modules/arpa_inet:
58268         * modules/byteswap, modules/configmake, modules/fcntl:
58269         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
58270         * modules/localcharset, modules/netinet_in, modules/poll:
58271         * modules/stdbool, modules/stdint, modules/sys_select:
58272         * modules/sys_socket, modules/sys_stat, modules/sysexits:
58273
58274 2006-09-08  Jim Meyering  <jim@meyering.net>
58275
58276         Avoid new build failure on FreeBSD 6.0.
58277         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
58278         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
58279         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
58280
58281 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58282
58283         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
58284
58285 2006-09-07  Jim Meyering  <jim@meyering.net>
58286
58287         Fix global typo in last change: use chmod u-w, not chmod u-x.
58288         Spotted by Paul Eggert and Bruce Korb.
58289         * modules/alloca-opt, modules/argz, modules/arpa_inet:
58290         * modules/byteswap, modules/configmake, modules/fcntl:
58291         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
58292         * modules/localcharset, modules/netinet_in, modules/poll:
58293         * modules/stdbool, modules/stdint, modules/sys_select:
58294         * modules/sys_socket, modules/sys_stat, modules/sysexits:
58295
58296 2006-09-06  Jim Meyering  <jim@meyering.net>
58297
58298         Make generated files be read-only.
58299         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
58300         Ensure that each generated file is now read-only.
58301         * modules/argz: Likewise.
58302         * modules/arpa_inet: Likewise.
58303         * modules/byteswap: Likewise.
58304         * modules/configmake: Likewise.
58305         * modules/fcntl: Likewise.
58306         * modules/fnmatch: Likewise.
58307         * modules/getopt: Likewise.
58308         * modules/glob: Likewise.
58309         * modules/inttypes: Likewise.
58310         * modules/netinet_in: Likewise.
58311         * modules/poll: Likewise.
58312         * modules/stdbool: Likewise.
58313         * modules/stdint: Likewise.
58314         * modules/sys_select: Likewise.
58315         * modules/sys_socket: Likewise.
58316         * modules/sys_stat: Likewise.
58317         * modules/sysexits: Likewise.
58318         * modules/localcharset: Same as above, but continue using temporary
58319         file named "t-$@" (why different?) rather than the "$@-t" used
58320         everywhere else.
58321
58322         * modules/sysexits (Makefile.am): Replace literal occurrences
58323         of "sysexit.h" more readable, and more consistent, "$@".
58324
58325 2006-09-06  Bruno Haible  <bruno@clisp.org>
58326
58327         * modules/striconv: New file.
58328         * modules/xstriconv: New file.
58329         * MODULES.html.sh (Internationalization functions): Add striconv,
58330         xstriconv.
58331
58332 2006-09-06  Bruno Haible  <bruno@clisp.org>
58333
58334         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
58335         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
58336         not using libtool correctly.
58337
58338 2006-09-06  Bruno Haible  <bruno@clisp.org>
58339
58340         * lib/striconv.h: New file.
58341         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
58342         iconvstring.c.
58343         * lib/xstriconv.h: New file.
58344         * lib/xstriconv.c: New file.
58345
58346 2006-09-06  Bruno Haible  <bruno@clisp.org>
58347
58348         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58349         lib_..._LDFLAGS.
58350
58351 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58352
58353         * lib/argz_.h: Sync from Libtool.
58354
58355         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
58356                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
58357
58358         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
58359
58360 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
58361
58362         * modules/trim: New file.
58363
58364 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
58365
58366         * lib/trim.h: New file.
58367         * lib/trim.c: New file.
58368
58369 2006-09-05  Bruno Haible  <bruno@clisp.org>
58370
58371         * MODULES.html.sh (String handling): Add trim.
58372
58373 2006-09-04  Karl Berry  <karl@gnu.org>
58374
58375         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
58376         until next release.
58377
58378 2006-09-03  Bruno Haible  <bruno@clisp.org>
58379
58380         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
58381         correctly.
58382
58383 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58384
58385         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
58386         not gl_GETLOADAVG.  Omit unneeded semicolons.
58387         Problems reported by Ralf Wildenhues in
58388         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
58389         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
58390         at the end, which is the usual gnulib style.
58391
58392         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
58393         of doing all the work ourselves.
58394         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
58395         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
58396
58397 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58398
58399         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
58400         Problem reported by Ralf Wildenhues in
58401         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
58402
58403         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
58404         HAVE_STRUCT_STATFS_F_FSTYPENAME.
58405
58406 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58407
58408         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
58409         yesterday's patch by changing test -n to test -z.
58410
58411 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58412
58413         * modules/getloadavg (Files): Add m4/getloadavg.m4.
58414         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
58415         the former is now obsolescent.
58416
58417         * modules/chdir-long (Depends-on): Add fcntl.
58418
58419 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58420
58421         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
58422         obsolescent, and programs should use gnulib instead.
58423         * m4/getloadavg.m4: New file, with contents taken from Autoconf
58424         but with prefixes changed.
58425
58426 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58427
58428         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
58429         or stdbool.h, because they might not exist while configuring.
58430
58431         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
58432         Don't include unistd.h or limits.h; not needed, since chdir-long.h
58433         does that for us.
58434         (O_DIRECTORY): Remove.
58435
58436 2006-08-31  Eric Blake  <ebb9@byu.net>
58437
58438         * gnulib-tool: Don't let emacs change spaces to TAB.
58439
58440 2006-08-31  Bruno Haible  <bruno@clisp.org>
58441
58442         * gnulib-tool: When calling func_import more than once, do it in a
58443         subshell.
58444         Reported by Eric Blake <ebb9@byu.net>.
58445
58446 2006-08-31  Bruno Haible  <bruno@clisp.org>
58447
58448         * gnulib-tool (nl): Remove variable.
58449         (sed_transform_lib_file): Use more robust test for config-h module.
58450         (func_import): Fix typo in 2006-08-25 patch.
58451
58452 2006-08-31  Bruno Haible  <bruno@clisp.org>
58453
58454         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
58455         specified, augment Makefile.am variables instead of assigning them.
58456
58457 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58458
58459         Work around a bug in both the Linux and SunOS 64-bit kernels:
58460         nanosleep mishandles sleeps for longer than 2**31 seconds.
58461         Problem reported by Frank v Waveren in
58462         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
58463         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
58464         Check for nanosleep bug.
58465         (LIB_NANOSLEEP): Append clock_gettime library if needed.
58466
58467 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58468
58469         Work around a bug in both the Linux and SunOS 64-bit kernels:
58470         nanosleep mishandles sleeps for longer than 2**31 seconds.
58471         Problem reported by Frank v Waveren in
58472         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
58473         * lib/nanosleep.c (BILLION): New constant.
58474         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
58475         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
58476         implementation.
58477
58478 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58479
58480         * modules/nanosleep (Depends-on): Add gettime.
58481
58482 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58483         and Simon Josefsson  <jas@extundo.com>
58484         and Oskar Liljeblad  <oskar@osk.mine.nu>
58485
58486         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
58487         * gnulib-tool (func_import): New license type 'unmodifiable license
58488         text'.
58489         * modules/fdl: Use it.  Longer description.
58490         * module/gpl, module/lgpl: New files.
58491
58492 2006-08-30  Jim Meyering  <jim@meyering.net>
58493
58494         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
58495         shadowing the parameter.
58496
58497 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58498
58499         Sync from Libtool:
58500
58501         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58502
58503         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
58504         sharing with gnulib.  Report by Eric Blake.
58505
58506 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58507
58508         * modules/isapipe: New file.
58509         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
58510
58511 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58512
58513         * modules/configmake (Makefile.am): Add a comment, and omit
58514         the CONFIGMAKE_ prefix from generated macro names.  Suggested
58515         by Bruno Haible.
58516
58517 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58518
58519         * m4/isapipe.m4: New file.
58520
58521 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58522
58523         * lib/isapipe.c, lib/isapipe.h: New files.
58524
58525 2006-08-29  Jim Meyering  <jim@meyering.net>
58526
58527         * modules/configmake (Makefile.am): Make configmake.h depend on
58528         Makefile.  Otherwise, a stale configmake.h could hang around.
58529
58530 2006-08-29  Eric Blake  <ebb9@byu.net>
58531
58532         * lib/error.c (error_at_line, print_errno_message): Match libc, after
58533         resolution of upstream bug 3044.
58534
58535 2006-08-29  Bruno Haible  <bruno@clisp.org>
58536
58537         * modules/localcharset (Depends-on): Add configmake.
58538         (Makefile.am): Remove setting of LIBDIR through DEFS.
58539
58540 2006-08-29  Bruno Haible  <bruno@clisp.org>
58541
58542         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
58543         defined.
58544
58545 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58546
58547         * modules/fcntl: New file.
58548         * modules/chdir-safer (Depends-on): Add fcntl.
58549         * modules/fts: Likewise.
58550         * modules/mkdir-p: Likewise.
58551
58552         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
58553         This undoes the most recent change, since we're now addressing the
58554         problem in a different way.
58555
58556         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
58557         into output, since the output might be called Makefile.am even
58558         if $makefile_name is something different.
58559         (func_import): Use $makefile_am rather than
58560         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
58561         empty.
58562
58563         * modules/inttypes (Files): Add m4/inttypes-h.m4.
58564
58565 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58566
58567         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
58568         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
58569         recent change to stdint.m4, since we're now addressing the problem in a
58570         different way.
58571
58572 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58573
58574         * m4/fcntl_h.m4: New file.
58575
58576 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58577
58578         * lib/fcntl_.h: New file.
58579         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
58580         the fcntl module.
58581         * lib/dirchownmod.c: Likewise.
58582         * lib/fts.c: Likewise.
58583
58584         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
58585         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
58586         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
58587         just before including <inttypes.h>, to avoid circular inclusion.
58588
58589 2006-08-28  Jim Meyering  <jim@meyering.net>
58590
58591         * doc/visibility.texi: Actually read and correct the grammar of the
58592         sentence affected by yesterday's change.
58593
58594 2006-08-28  Eric Blake  <ebb9@byu.net>
58595
58596         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
58597         needs wrapper.
58598
58599 2006-08-28  Eric Blake  <ebb9@byu.net>
58600
58601         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
58602
58603 2006-08-28  Eric Blake  <ebb9@byu.net>
58604
58605         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
58606
58607 2006-08-28  Bruno Haible  <bruno@clisp.org>
58608
58609         * modules/c-strstr: New file, from GNU gettext.
58610         * MODULES.html.sh (String handling): Add c-strstr.
58611
58612 2006-08-28  Bruno Haible  <bruno@clisp.org>
58613
58614         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
58615         macros.
58616         Reported by Eric Blake.
58617
58618 2006-08-28  Bruno Haible  <bruno@clisp.org>
58619
58620         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
58621         (VASNPRINTF): Return a string of length > INT_MAX without failing.
58622         * lib/vasprintf.c: Include errno.h, limits.h.
58623         (EOVERFLOW): New fallback definition.
58624         (vasprintf): Test here whether the string length is > INT_MAX.
58625         * lib/vsnprintf.c: Include errno.h, limits.h.
58626         (EOVERFLOW): New fallback definition.
58627         (vsnprintf): Fix bug when generated string was too long for the buffer.
58628         Test here whether the string length is > INT_MAX.
58629
58630 2006-08-28  Bruno Haible  <bruno@clisp.org>
58631
58632         * lib/inttypes_.h (SCNX*): Remove definitions.
58633         Reported by Eric Blake.
58634
58635 2006-08-28  Bruno Haible  <bruno@clisp.org>
58636
58637         * lib/c-strstr.h: New file, from GNU gettext.
58638         * lib/c-strstr.c: New file, from GNU gettext.
58639
58640 2006-08-28  Bruno Haible  <bruno@clisp.org>
58641
58642         * gnulib-tool: Reorder some statements.
58643
58644 2006-08-28  Bruno Haible  <bruno@clisp.org>
58645
58646         * gnulib-tool: New option --makefile-name.
58647         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
58648         $makefile_name.
58649         (func_import): Write $makefile_name to the cache file, and read it from
58650         there unless explicitly specified. Use $makefile_name as file name
58651         instead of Makefile.am. Adjust the recommendations accordingly.
58652
58653 2006-08-28  Bruno Haible  <bruno@clisp.org>
58654
58655         * gnulib-tool (func_verify_module): Check against misapplying patch.
58656
58657 2006-08-28  Bruno Haible  <bruno@clisp.org>
58658
58659         * gnulib-tool (func_relativize, func_relconcat): New functions.
58660         Give an error if --local-dir is given with --update.
58661         Remove trailing slashes from $local_gnulib_dir.
58662         (func_import): Store the relativized $local_gnulib_dir in
58663         gnulib-cache.m4, and read it from there if not specified explicitly.
58664
58665 2006-08-28  Bruno Haible  <bruno@clisp.org>
58666
58667         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
58668         is the current directory. Respect also $local_gnulib_dir.
58669
58670 2006-08-28  Bruno Haible  <bruno@clisp.org>
58671             Simon Josefsson  <jas@extundo.com>
58672
58673         BeOS portability.
58674         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
58675
58676 2006-08-27  Jim Meyering  <jim@meyering.net>
58677
58678         * doc/visibility.texi: Remove duplicate word: "pointer".
58679
58680 2006-08-26  Bruno Haible  <bruno@clisp.org>
58681
58682         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
58683         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
58684         (Makefile.am): Create inttypes.h from inttypes_.h.
58685         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
58686
58687         * modules/imaxabs: New file.
58688
58689         * modules/imaxdiv: New file.
58690
58691 2006-08-26  Bruno Haible  <bruno@clisp.org>
58692
58693         * m4/inttypes.m4: New file.
58694         * m4/_inttypes_h.m4: Remove file.
58695         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
58696         PRI_MACROS_BROKEN.
58697         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
58698
58699         * m4/imaxabs.m4: New file.
58700
58701         * m4/imaxdiv.m4: New file.
58702
58703 2006-08-26  Bruno Haible  <bruno@clisp.org>
58704
58705         * lib/inttypes_.h: New file.
58706         * lib/inttypes.h: Remove file.
58707         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
58708
58709         * lib/imaxabs.c: New file.
58710
58711         * lib/imaxdiv.c: New file.
58712
58713 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58714
58715         New config-h module, so that "make" output needn't be cluttered
58716         by -DHAVE_CONFIG_H.
58717         * MODULES.html.sh (Support for building libraries and executables):
58718         Add config-h.
58719         * modules/config-h: New file.
58720         * gnulib-tool (nl, sed_transform_lib_file): New vars.
58721         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
58722         the config-h module is used.
58723
58724         New configmake module, so that "make" output needn't be cluttered
58725         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
58726         * MODULES.html.sh (Support for building libraries and executables):
58727         Add configmake.
58728         * modules/configmake: New file.
58729
58730 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58731
58732         * m4/config-h.m4: New file.
58733
58734 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58735
58736         * config/srclist.txt: Add elisp-comp.
58737
58738 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58739
58740         * MODULES.html.sh (Support for building libraries and executables):
58741         Add elisp-comp.
58742         * build-aux/elisp-comp: New file.
58743         * modules/elisp-comp: New file.
58744
58745 2006-08-24  Bruno Haible  <bruno@clisp.org>
58746
58747         * gnulib-tool (func_create_testdir): Use non-default values of
58748         sourcebase and m4base.
58749
58750 2006-08-24  Bruno Haible  <bruno@clisp.org>
58751
58752         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
58753         HTML structure.
58754
58755 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58756
58757         * modules/openat (Depends-on): Add lchown.
58758
58759 2006-08-23  Bruno Haible  <bruno@clisp.org>
58760
58761         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
58762         of gl_LOCK_EARLY instead of gl_LOCK.
58763
58764 2006-08-23  Bruno Haible  <bruno@clisp.org>
58765
58766         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
58767         on OSF/1 to no.
58768         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
58769
58770 2006-08-23  Bruno Haible  <bruno@clisp.org>
58771
58772         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
58773         as unusable.
58774
58775         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
58776         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
58777         (gl_LOCK): New macro.
58778
58779 2006-08-22  Simon Josefsson  <jas@extundo.com>
58780
58781         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
58782         to md5 module.
58783
58784 2006-08-22  Simon Josefsson  <jas@extundo.com>
58785
58786         * MODULES.html.sh: Add "Support for maintaining and release
58787         projects".
58788
58789         * build-aux/gnupload: New file, from coreutils.
58790
58791 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58792
58793         Avoid the need for AC_LIBSOURCES in m4 macros.
58794         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
58795         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
58796         * modules/check-version (EXTRA_DIST): Add check-version.h.
58797         * modules/crc (EXTRA_DIST): Add crc.h.
58798         * modules/des (EXTRA_DIST): Add des.h.
58799         * modules/gc (EXTRA_DIST): Add gc.h.
58800         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
58801         * modules/getline (EXTRA_DIST): Add getline.h.
58802         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
58803         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
58804         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
58805         * modules/md2 (EXTRA_DIST): Add md2.h.
58806         * modules/md4 (EXTRA_DIST): Add md4.h.
58807         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
58808         * modules/read-file (EXTRA_DIST): Add read-file.h.
58809         * modules/readline (EXTRA_DIST): Add readline.h.
58810         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
58811         rijndael-api-fst.h.
58812
58813 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58814
58815         * m4/rijndael.m4 (gl_ARCFOUR):
58816         * m4/arctwo.m4 (gl_ARCTWO):
58817         * m4/check-version.m4 (gl_CHECK_VERSION):
58818         * m4/crc.m4 (gl_CRC):
58819         * m4/des.m4 (gl_DES):
58820         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
58821         * m4/gc.m4 (gl_GC):
58822         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
58823         * m4/getline.m4 (gl_FUNC_GETLINE):
58824         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
58825         * m4/hmac-md5.m4 (gl_HMAC_MD5):
58826         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
58827         * m4/md2.m4 (gl_MD2):
58828         * m4/md4.m4 (gl_MD4):
58829         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
58830         * m4/read-file.m4 (gl_FUNC_READ_FILE):
58831         * m4/readline.m4 (gl_FUNC_READLINE):
58832         * m4/rijndael.m4 (gl_RIJNDAEL):
58833         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
58834         to get the necessary .h files and whatnot.
58835
58836 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58837
58838         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
58839         gnulib rather than the other way around.
58840         * config/srclistvars.sh (COREUTILS): Remove.
58841
58842 2006-08-22  Jim Meyering  <jim@meyering.net>
58843
58844         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
58845
58846         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
58847
58848 2006-08-22  Eric Blake  <ebb9@byu.net>
58849
58850         * modules/regexprops-generic: New file.
58851         * MODULES.html.sh (Support for building documentation): List it.
58852
58853 2006-08-22  Eric Blake  <ebb9@byu.net>
58854
58855         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
58856         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
58857         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
58858         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
58859
58860 2006-08-22  Bruno Haible  <bruno@clisp.org>
58861
58862         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
58863         and lib_LTLIBRARIES like the other lib_* variables.
58864
58865 2006-08-22  Bruno Haible  <bruno@clisp.org>
58866
58867         * build-aux/x-to-1.in: New file, from GNU gettext.
58868
58869 2006-08-22  Bruno Haible  <bruno@clisp.org>
58870
58871         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
58872         <utmpx.h> exists.
58873
58874 2006-08-22  Bruno Haible  <bruno@clisp.org>
58875
58876         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
58877         <utmpx.h> exists.
58878
58879 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58880
58881         BeOS portability.
58882         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
58883         exist.
58884         Problem reported by Bruno Haible.
58885
58886 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58887
58888         Avoid the need for AC_LIBSOURCES in m4 macros.
58889         * modules/acl (EXTRA_DIST): Add acl.h.
58890         * modules/argmatch (Files): Add m4/argmatch.m4.
58891         (configure.ac): Add gl_ARGMATCH.
58892         (EXTRA_DIST): Renamed from lib_SOURCES, for
58893         consistency with the other modules.  Remove argmatch.c.
58894         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
58895         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
58896         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
58897         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
58898         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
58899         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
58900         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
58901         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
58902         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
58903         * modules/closeout (EXTRA_DIST): Add closeout.h.
58904         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
58905         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
58906         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
58907         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
58908         dirname.h; remove basename.c and stripslash.c.
58909         * modules/exclude (EXTRA_DIST): Add exclude.h.
58910         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
58911         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
58912         * modules/file-type (EXTRA_DIST): Add file-type.h.
58913         * modules/filemode (EXTRA_DIST): Add filemode.h.
58914         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
58915         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
58916         * modules/fpending (EXTRA_DIST): Add __fpending.h.
58917         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
58918         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
58919         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
58920         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
58921         * modules/getdate (EXTRA_DIST): Add getdate.c.
58922         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
58923         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
58924         * modules/getpass (EXTRA_DIST): Add getpass.h.
58925         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
58926         * modules/group-member (EXTRA_DIST): Add group-member.h.
58927         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
58928         * modules/hash (EXTRA_DIST): Add hash.h.
58929         * modules/human (EXTRA_DIST): Add human.h.
58930         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
58931         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
58932         * modules/lchown (EXTRA_DIST): Add lchown.h.
58933         * modules/long-options (EXTRA_DIST): Add long-options.h.
58934         * modules/lstat (EXTRA_DIST): Add lstat.h.
58935         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
58936         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
58937         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
58938         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
58939         * modules/memxor (EXTRA_DIST): Add memxor.h.
58940         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
58941         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
58942         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
58943         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
58944         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
58945         * modules/physmem (EXTRA_DIST): Add physmem.h.
58946         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
58947         * modules/posixver (EXTRA_DIST): Add posixver.h.
58948         * modules/quote (EXTRA_DIST): Add quote.h.
58949         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
58950         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
58951         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
58952         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
58953         regex_internal.h regexec.c.
58954         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
58955         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
58956         * modules/same (EXTRA_DIST): Add same.h.
58957         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
58958         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
58959         * modules/savedir (EXTRA_DIST): Add savedir.h.
58960         * modules/sha1 (EXTRA_DIST): Add sha1.h.
58961         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
58962         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
58963         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
58964         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
58965         * modules/strdup (EXTRA_DIST): Add strdup.h.
58966         * modules/strftime (EXTRA_DIST): Add strftime.h.
58967         * modules/strndup (EXTRA_DIST): Add strndup.h.
58968         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
58969         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
58970         * modules/time_r (EXTRA_DIST): Add time_r.h.
58971         * modules/timespec (EXTRA_DIST): Add timespec.h.
58972         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
58973         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
58974         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
58975         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
58976         * modules/userspec (EXTRA_DIST): Add userspec.h.
58977         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
58978         * modules/utimens (EXTRA_DIST): Add utimens.h.
58979         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
58980         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
58981         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
58982         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
58983         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
58984         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
58985         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
58986         * modules/yesno (EXTRA_DIST): Add yesno.h.
58987
58988 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58989
58990         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
58991
58992         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
58993         * m4/dev-ino.m4, same-inode.m4: Remove.
58994
58995         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
58996         * m4/acl.m4 (AC_FUNC_ACL):
58997         * m4/backupfile.m4 (gl_BACKUPFILE):
58998         * m4/c-strtod.m4 (gl_C99_STRTOLD):
58999         * m4/canon-host.m4 (gl_CANON_HOST):
59000         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
59001         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
59002         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
59003         * m4/cloexec.m4 (gl_CLOEXEC):
59004         * m4/close-stream.m4 (gl_CLOSE_STREAM):
59005         * m4/closeout.m4 (gl_CLOSEOUT):
59006         * m4/dirfd.m4 (gl_FUNC_DIRFD):
59007         * m4/dirname.m4 (gl_DIRNAME):
59008         * m4/exclude.m4 (gl_EXCLUDE):
59009         * m4/exitfail.m4 (gl_EXITFAIL):
59010         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
59011         * m4/file-type.m4 (gl_FILE_TYPE):
59012         * m4/filemode.m4 (gl_FILEMODE):
59013         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
59014         * m4/fpending.m4 (gl_FUNC_FPENDING):
59015         * m4/fprintftime.m4 (gl_FPRINTFTIME):
59016         * m4/fts.m4 (gl_FUNC_FTS):
59017         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
59018         * m4/getdate.m4 (gl_GETDATE):
59019         * m4/gethrxtime.m4 (gl_GETHRXTIME):
59020         * m4/getpagesize.m4 (gl_GETPAGESIZE):
59021         * m4/getpass.m4 (gl_FUNC_GETPASS):
59022         * m4/gettime.m4 (gl_GETTIME):
59023         * m4/getugroups.m4 (gl_GETUGROUPS):
59024         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
59025         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
59026         * m4/hard-locale.m4 (gl_HARD_LOCALE):
59027         * m4/hash.m4 (gl_HASH):
59028         * m4/idcache.m4 (gl_IDCACHE):
59029         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
59030         * m4/lchown.m4 (gl_FUNC_LCHOWN):
59031         * m4/long-options.m4 (gl_LONG_OPTIONS):
59032         * m4/lstat.m4 (gl_FUNC_LSTAT):
59033         * m4/md5.m4 (gl_MD5):
59034         * m4/memcasecmp.m4 (gl_MEMCASECMP):
59035         * m4/memcoll.m4 (gl_MEMCOLL):
59036         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
59037         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
59038         * m4/memxor.m4 (gl_MEMXOR):
59039         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
59040         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
59041         * m4/modechange.m4 (gl_MODECHANGE):
59042         * m4/mountlist.m4 (gl_MOUNTLIST):
59043         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59044         * m4/openat.m4 (gl_FUNC_OPENAT):
59045         * m4/pathmax.m4 (gl_PATHMAX):
59046         * m4/physmem.m4 (gl_PHYSMEM):
59047         * m4/posixtm.m4 (gl_POSIXTM):
59048         * m4/posixver.m4 (gl_POSIXVER):
59049         * m4/quote.m4 (gl_QUOTE):
59050         * m4/quotearg.m4 (gl_QUOTEARG):
59051         * m4/readtokens.m4 (gl_READTOKENS):
59052         * m4/readutmp.m4 (gl_READUTMP):
59053         * m4/regex.m4 (gl_REGEX):
59054         * m4/safe-read.m4 (gl_SAFE_READ):
59055         * m4/safe-write.m4 (gl_SAFE_WRITE):
59056         * m4/same.m4 (gl_SAME):
59057         * m4/save-cwd.m4 (gl_SAVE_CWD):
59058         * m4/savedir.m4 (gl_SAVEDIR):
59059         * m4/settime.m4 (gl_SETTIME):
59060         * m4/sha1.m4 (gl_SHA1):
59061         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
59062         * m4/stat-macros.m4 (gl_STAT_MACROS):
59063         * m4/stat-time.m4 (gl_STAT_TIME):
59064         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
59065         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
59066         * m4/strdup.m4 (gl_FUNC_STRDUP):
59067         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
59068         * m4/strndup.m4 (gl_FUNC_STRNDUP):
59069         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
59070         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
59071         * m4/time_r.m4 (gl_TIME_R):
59072         * m4/timespec.m4 (gl_TIMESPEC):
59073         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
59074         * m4/unlinkdir.m4 (gl_UNLINKDIR):
59075         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
59076         * m4/userspec.m4 (gl_USERSPEC):
59077         * m4/utimecmp.m4 (gl_UTIMECMP):
59078         * m4/utimens.m4 (gl_UTIMENS):
59079         * m4/xalloc.m4 (gl_XALLOC):
59080         * m4/xgetcwd.m4 (gl_XGETCWD):
59081         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
59082         * m4/xreadlink.m4 (gl_XREADLINK):
59083         * m4/xstrtod.m4 (gl_XSTRTOD):
59084         * m4/yesno.m4 (gl_YESNO):
59085         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
59086         to get the necessary .h files and whatnot.
59087
59088 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
59089             Bruno Haible  <bruno@clisp.org>
59090
59091         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
59092         /bin/sh understanding of '!' conditional negation.
59093
59094 2006-08-21  Jim Meyering  <jim@meyering.net>
59095
59096         * modules/openat (Depends-on): Really alphabetize.
59097
59098         * modules/acl (Depends-on): Add error and quote.
59099
59100         * check-module (find_included_lib_files): Add at-func.c to the
59101         ok-to-include-more-than-once white list.
59102
59103         * modules/openat (Depends-on): Add lstat.  Alphabetize.
59104
59105 2006-08-21  Bruno Haible  <bruno@clisp.org>
59106
59107         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59108         Emit a pkgdata_DATA variable only if some snippets add contents to it.
59109         Reported by Martin Lambers <marlam@marlam.de>.
59110
59111 2006-08-21  Bruno Haible  <bruno@clisp.org>
59112
59113         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
59114         specify an installation location, don't emit a noinst_LIBRARIES or
59115         noinst_LTLIBRARIES assignment.
59116
59117 2006-08-21  Bruno Haible  <bruno@clisp.org>
59118
59119         BeOS portability.
59120         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
59121         BeOS has mbrtowc() but no <wctype.h>.
59122
59123 2006-08-21  Bruno Haible  <bruno@clisp.org>
59124
59125         BeOS portability.
59126         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
59127         exist.
59128
59129 2006-08-21  Bruno Haible  <bruno@clisp.org>
59130
59131         BeOS portability.
59132         * lib/mbchar.h: Include <wctype.h> only if it exists.
59133
59134 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59135
59136         Remove files that are no longer needed by their respective modules.
59137         * m4/obstack.m4: Remove.
59138         * m4/strerror_r.m4: Remove.
59139         * m4/uint32_t.m4: Remove.
59140         * m4/uintptr_t.m4: Remove.
59141         * m4/ullong_max.m4: Remove.
59142         * m4/xstrtoimax.m4: Remove.
59143         * m4/xstrtoumax.m4: Remove.
59144
59145         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
59146         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
59147         dependencies now capture this.
59148
59149         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
59150         Do not use AC_LIBSOURCES, since gnulib modules now do this.
59151         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
59152         * m4/human.m4 (gl_HUMAN): Likewise.
59153         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
59154         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
59155
59156         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
59157
59158         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
59159         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
59160         stdint.
59161         * m4/human.m4 (gl_HUMAN): Likewise.
59162         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
59163         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
59164         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
59165         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
59166         * m4/xstrtol (gl_XSTRTOL): Likewise.
59167
59168         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
59169         AC_TYPE_LONG_LONG_INT.
59170         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
59171         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
59172         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
59173         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
59174
59175         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
59176         on stdbool.
59177
59178         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
59179         (gl_PREREQ_XSTRTOUL): Remove.
59180
59181         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
59182
59183         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
59184         mode.
59185
59186 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59187
59188         Add and change modules to make it easier for coreutils to use
59189         gnulib-tool.
59190         * modules/backupfile (Files): Remove m4/d-ino.m4.
59191         (Depends-on): Add d-ino.
59192         * modules/cycle-check (Depends-on): Add stdint.
59193         (lib_SOURCES): Add cycle-check.h.
59194         * modules/d-ino: New module.
59195         * modules/d-type: New module.
59196         * modules/error (Files): Remove m4/strerror_r.m4.
59197         * modules/filemode (Files): Add m4/st_dm_mode.m4.
59198         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
59199         m4/inttypes_h.m4, m4/uintmax_t.m4.
59200         (Depends-on): Add stdint.
59201         (lib_SOURCES): Add fsusage.h.
59202         * modules/getcwd (Files): Remove d-ino.m4.
59203         (Depends-on): Add d-ino.
59204         * modules/getndelim2 (Depends-on): Add stdint.
59205         * modules/glob (Files): Remove m4/d-type.m4.
59206         (Depends-on): Add d-type.
59207         * modules/host-os: New module.
59208         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
59209         m4/inttypes_h.m4, m4/uintmax_t.m4.
59210         * Depends-on: Add stdint.
59211         (lib_SOURCES): Add human.h.
59212         * modules/inttostr (Files): Remove m4/intmax_t.m4,
59213         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
59214         m4/uintmax_t.m4, m4/ulonglong.m4.
59215         (Depends-on): Add stdint.
59216         (EXTRA_DIST): Add inttostr.h.
59217         * modules/lchmod: New module.
59218         * modules/link-follow: New module.
59219         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
59220         (Depends-on): Add lchmod.
59221         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
59222         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
59223         (Depends-on): Add stdint.
59224         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
59225         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
59226         (Depends-on): Add stdint.
59227         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
59228         * modules/perl: New module.
59229         * modules/regex (Depends-on): Add stdint.
59230         * modules/rmdir-errno: New module.
59231         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
59232         m4/intmax_t.m4.
59233         (Depends-on): Add stdint.
59234         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
59235         m4/uintmax_t.m4.
59236         (Depends-on): Add stdint.
59237         * modules/unlink-busy: New module.
59238         * modules/utimecmp (Depends-on): Add stdint.
59239         * modules/uptime: New module.
59240         * modules/winsz-ioctl: New module.
59241         * modules/winsz-termios: New module.
59242         * modules/xnanosleep (Depends-on): Add nanosleep.
59243         * modules/ullong_max: Remove.
59244         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
59245         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
59246         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
59247         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
59248         (Depends-on): Add inttypes.
59249         (lib_SOURCES): Add xstrtol.h.
59250         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
59251         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
59252         * MODULES.html.sh: Move 'assert' into the assert section.
59253         Move 'dummy' into the linking section.
59254         Remove ullong_max.
59255         Add section for compatibility checks for POSIX:2001 functions,
59256         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
59257         winsz-ioctl, and winsz-termios into it.
59258         Add lchmod.
59259         Add top-level Misc section and put host-os, perl, and uptime
59260         into it.
59261
59262 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59263
59264         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
59265         now assume the stdint module.  Do not include inttypes.h.
59266         * lib/fsusage.h: Likewise.
59267         * lib/getndelim2.c: Likewise.
59268         * lib/human.h: Likewise.
59269         * lib/inttostr.h: Likewise.
59270         * lib/obstack.c: Likewise.
59271         * lib/regex_internal.h: Likewise.
59272         * lib/tempname.c: Likewise.
59273         * lib/utimecmp.c: Likewise.
59274         * lib/xstrtol.h: Likewise.
59275
59276         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
59277
59278         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
59279         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
59280         * lib/xtime.h: Likewise.
59281
59282 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59283
59284         * modules/openat (Files): Add lib/fchmodat.c.
59285         Fixes problem reported by Jay Youngman.
59286
59287 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59288
59289         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
59290         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
59291
59292 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
59293             Bruno Haible  <bruno@clisp.org>
59294
59295         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
59296         and is a script that invokes bison. Tighten the code. Add comments.
59297
59298 2006-08-18  Jim Meyering  <jim@meyering.net>
59299
59300         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
59301         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
59302         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
59303         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
59304
59305 2006-08-18  Bruno Haible  <bruno@clisp.org>
59306
59307         * modules/bison-i18n: New file.
59308         * MODULES.html.sh (Internationalization functions): Add it.
59309
59310 2006-08-18  Bruno Haible  <bruno@clisp.org>
59311
59312         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
59313         sys/statvfs.h. When getmntinfo was found, check its declaration and
59314         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
59315
59316 2006-08-18  Bruno Haible  <bruno@clisp.org>
59317
59318         * m4/bison-i18n.m4: New file, from bison.
59319
59320 2006-08-18  Bruno Haible  <bruno@clisp.org>
59321
59322         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
59323         (ME_DUMMY): Treat "kernfs" as a dummy.
59324         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
59325
59326 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59327
59328         Update from coreutils.
59329
59330         2006-08-15  Jim Meyering  <jim@meyering.net>
59331
59332         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
59333
59334         2006-01-17  Jim Meyering  <jim@meyering.net>
59335
59336         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
59337
59338         2006-01-11  Jim Meyering  <jim@meyering.net>
59339
59340         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
59341         Check for the lchmod function.
59342
59343 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59344
59345         Update from coreutils.
59346
59347         * lib/__fpending.h: Add copyright notice.
59348         * lib/fprintftime.h: Likewise.
59349         * lib/savedir.c: Use (C) in copyright notice.
59350         * lib/savedir.h: Likewise.
59351
59352         2006-08-15  Jim Meyering  <jim@meyering.net>
59353
59354         * lib/at-func.c: New file, with the logic of all emulated at-functions.
59355         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
59356         in support of the EXPECTED_ERRNO macro.
59357         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
59358         definitions.  Instead, define the appropriate symbols and include
59359         "at-func.c".
59360         * lib/mkdirat.c (mkdirat): Likewise.
59361         * lib/fchmodat.c (fchmodat): Likewise.
59362         (ENOSYS): Remove definition.
59363         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
59364         it.  Don't include "unistd--.h" -- it wasn't ever used.
59365
59366         2006-01-17  Jim Meyering  <jim@meyering.net>
59367
59368         Rewrite fts.c not to change the current working directory,
59369         by using openat, fstatat, fdopendir, etc..
59370
59371         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
59372         (HAVE_OPENAT_SUPPORT): Define.
59373         [_LIBC] (fchdir): Don't undef or define; no longer used.
59374         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
59375         Now, this `function' always succeeds, and consumes its file descriptor
59376         parameter -- so callers must not close such FDs.  Update callers.
59377         (diropen_fd, opendirat, cwd_advance_fd): New functions.
59378         (diropen): Add parameter, SP.  Adjust all callers.
59379         Implement using diropen_fd, rather than open.
59380         (fts_open): Initialize new member, fts_cwd_fd.
59381         Remove fts_rft-setting code.
59382         (fts_close): Close fts_cwd_fd, if necessary.
59383         (__opendir2): Define in terms of opendir or opendirat,
59384         depending on whether the FST_NOCHDIR flag is set.
59385         (fts_build): Since fts_safe_changedir consumes its FD, and since
59386         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
59387         and close the dup'd file descriptor upon failure.
59388         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
59389         (fts_safe_changedir): Tweak semantics to reflect that this function
59390         now calls cwd_advance_fd and hence consumes its FD argument.
59391         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
59392         [struct FTS] (fts_rft): Remove now-unused member.
59393         [struct FTS] (fts_cycle.state): Improve comment.
59394
59395         * lib/openat.c (openat_needs_fchdir): New function.
59396         * lib/openat.h (openat_needs_fchdir): Declare it.
59397
59398 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
59399
59400         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
59401         Problem and fix reported by Pádraig Brady in
59402         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
59403
59404 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59405
59406         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
59407
59408 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59409
59410         * lib/memcoll.c (memcoll): Optimize for the common case where the
59411         arguments are bytewise equal.
59412
59413 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59414
59415         * doc/regexprops-generic.texi: Add a copyright notice.
59416
59417 2006-08-15  Bruno Haible  <bruno@clisp.org>
59418
59419         * modules/tmpdir (License): Change to LGPL.
59420
59421 2006-08-15  Bruno Haible  <bruno@clisp.org>
59422
59423         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
59424         module.
59425
59426 2006-08-14  Simon Josefsson  <jas@extundo.com>
59427
59428         * config/srclist.txt: Add gnupload.
59429
59430 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59431
59432         Change copyright notice from LGPL 2 to GPL 2, since that's the
59433         standard form used in the gnulib repository.
59434         * tests/test-lock.c: Likewise.
59435         * tests/test-stdint.c: Likewise.
59436         * tests/test-tls.c: Likewise.
59437
59438         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
59439         prelude-manager.  User shorter URLs for GNU projects, without '?'.
59440         Add copyright notice.
59441
59442         * check-module: Add copyright notice.  Output a copyright
59443         notice if "--version" is specified.
59444         * modules/COPYING: New file.
59445         * tests/test-getaddrinfo.c: Add copyright notice.
59446         * tests/test-verify.c: Likewise.
59447
59448 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59449
59450         Change copyright notice from LGPL 2 to GPL 2, since that's the
59451         standard form used in the gnulib repository.
59452         * lib/lock.c: LGPL -> GPL.
59453         * lib/lock.h: Likewise.
59454         * lib/strnlen1.c: Likewise.
59455         * lib/strnlen1.h: Likewise.
59456         * lib/tls.c: Likewise.
59457         * lib/tls.h: Likewise.
59458         * lib/tmpdir.c: Likewise.
59459
59460         * lib/TODO: Remove; this belongs only in coreutils.
59461
59462 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59463
59464         Add copyright notices to long-enough files that lack them, since
59465         otherwise the files aren't clearly free.  Use the same notice that
59466         getdate.texi already uses.
59467         * doc/alloca-opt.texi: Add copyright notice.
59468         * doc/alloca.texi: Likewise.
59469         * doc/ctime.texi: Likewise.
59470         * doc/functions.texi: Likewise.
59471         * doc/gcd.texi: Likewise.
59472         * doc/gnulib-tool.texi: Likewise.
59473         * doc/inet_ntoa.texi: Likewise.
59474         * doc/visibility.texi: Likewise.
59475
59476         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
59477         * doc/quote.texi: Add copyright notice.
59478
59479         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
59480         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
59481         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
59482         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
59483         is now obsolete, and give a pointer to the Sun list.
59484         Add copyright notice.
59485
59486 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59487
59488         * config/srclistvars.sh: Add copyright notice.
59489
59490 2006-08-14  Eric Blake  <ebb9@byu.net>
59491
59492         Import the following change from libc:
59493
59494         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
59495
59496         Upstream bug 2997.
59497         * lib/misc/error.c: Add space between program name and message if file
59498         name is missing.
59499
59500 2006-08-12  Karl Berry  <karl@gnu.org>
59501
59502         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
59503         remove, these originate in gnulib now.
59504
59505 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59506
59507         * doc/Makefile (standards.info standards.html standards.dvi):
59508         Also depend on make-stds.texi.
59509
59510 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59511
59512         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
59513         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
59514
59515         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
59516         in wchar_t.  Problem reported by Eric Blake.
59517
59518         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
59519         LEN is smaller than SIZE.  Suggested by Bruno Haible.
59520         Also, help the compiler to keep LEN in a register.
59521
59522 2006-08-11  Eric Blake  <ebb9@byu.net>
59523
59524         * users.txt: Sort.  Add tar.
59525
59526 2006-08-11  Bruno Haible  <bruno@clisp.org>
59527
59528         * users.txt: New file.
59529
59530 2006-08-11  Bruno Haible  <bruno@clisp.org>
59531
59532         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
59533         before <wchar.h>. Needed for OSF/1 and BSD/OS.
59534
59535 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
59536
59537         * modules/snprintf (Depends-on): Remove minmax.
59538         (Maintainer): Add self and Bruno.
59539
59540 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
59541
59542         * lib/.cppi-disable: Add snprintf.h, socket_.h.
59543         * lib/snprintf.c: Include <errno.h> and <limits.h>.
59544         (EOVERFLOW): Define if the system does not.
59545         Do not include "minmax.h"; it wasn't used.
59546         (snprintf): Don't assume size_t promotes to an unsigned type.
59547         Fix bug when generated string was too long for the buffer: the
59548         buffer's contents are supposed to be the initial prefix of the
59549         output.  Don't assume vasnprintf returns EOVERFLOW if the size
59550         exceeds INT_MAX; do the check ourselves.
59551
59552         Import the following changes from libc:
59553
59554         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
59555
59556         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
59557         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
59558         set wc to the byte which couldn't be converted.
59559         (re_string_reconstruct): Don't clear valid_raw_len before calling
59560         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
59561         tip_context using re_string_context_at.
59562
59563         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
59564
59565         * lib/posix/regex.h: g++ still cannot handled [restrict].
59566
59567         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
59568
59569         * lib/posix/regex.h: Remove special handling for VMS.
59570
59571 2006-08-10  Jim Meyering  <jim@meyering.net>
59572
59573         * modules/same-inode: New module.
59574         * modules/dev-ino: New module.
59575         * modules/cycle-check: Depend on these modules, rather than simply
59576         including their .h files.
59577         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
59578         required via m4/cycle-check.m4.
59579         * modules/same: Depend on new same-inode module, rather than
59580         including same-inode.h.
59581         * modules/chdir-safer: New file.
59582
59583         * modules/chown (Depends-on): Add stat-macros.
59584
59585 2006-08-10  Jim Meyering  <jim@meyering.net>
59586
59587         * m4/cycle-check.m4: New file.
59588         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
59589         * m4/dev-ino.m4, m4/same-inode.m4: New files.
59590
59591 2006-08-10  Eric Blake  <ebb9@byu.net>
59592
59593         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
59594         in from original proposal.
59595
59596 2006-08-10  Eric Blake  <ebb9@byu.net>
59597         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
59598
59599         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
59600         namespace.
59601
59602 2006-08-10  Bruno Haible  <bruno@clisp.org>
59603
59604         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
59605         as well.
59606
59607 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59608
59609         Sync from coreutils.
59610
59611         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
59612
59613         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
59614         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
59615
59616 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59617
59618         * modules/restrict: Remove; no longer needed now that we assume
59619         Autoconf 2.59 or later.
59620         * MODULES.html.sh: Remove 'restrict'.
59621         * modules/argp (Depends-on): Remove 'restrict'.
59622         * modules/base64 (Depends-on): Likewise.
59623         * modules/gc (Depends-on): Likewise.
59624         * modules/getaddrinfo (Depends-on): Likewise.
59625         * modules/glob (Depends-on): Likewise.
59626         * modules/inet_ntop (Depends-on): Likewise.
59627         * modules/inet_pton (Depends-on): Likewise.
59628         * modules/memxor (Depends-on): Likewise.
59629         * modules/regex (Depends-on): Likewise.
59630         * modules/strtok_r (Depends-on): Likewise.
59631         * modules/time_r (Depends-on): Likewise.
59632
59633 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59634
59635         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
59636         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
59637         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
59638         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
59639         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
59640         * m4/memxor.m4 (gl_MEMXOR): Likewise.
59641         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
59642         gl_C_RESTRICT replaced by AC_C_RESTRICT.
59643
59644         Merge from coreutils.
59645         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
59646         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
59647         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59648         * m4/time_r.m4 (gl_TIME_R): Likewise.
59649
59650 2006-08-09  Karl Berry  <karl@gnu.org>
59651
59652         * config/srclist.txt: no more gettext-tools, per Bruno.
59653
59654 2006-08-08  Eric Blake  <ebb9@byu.net>
59655
59656         * modules/verror: New module.
59657         * MODULES.html.sh: Document it.
59658
59659 2006-08-08  Eric Blake  <ebb9@byu.net>
59660
59661         * lib/verror.h, lib/verror.c: New files.
59662
59663 2006-08-08  Eric Blake  <ebb9@byu.net>
59664
59665         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
59666         verror_at_line output complies with GNU Coding Standards even when
59667         file is NULL.
59668
59669 2006-08-07  Bruno Haible  <bruno@clisp.org>
59670
59671         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
59672         versions of AIX.
59673         Reported by Ralf Wildenhues.
59674
59675 2006-08-07  Bruno Haible  <bruno@clisp.org>
59676
59677         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
59678         in an AC_DEFUN. Needed so that the autoconf snippets can use
59679         AC_REQUIRE.
59680
59681 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59682
59683         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59684         Initialize pkgdata_DATA.
59685         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
59686         overriding it.
59687
59688 2006-08-06  Eric Blake  <ebb9@byu.net>
59689
59690         * lib/error.h: Fold in some upstream changes from glibc.
59691         * lib/error.c: Likewise.
59692
59693 2006-08-04  Bruno Haible  <bruno@clisp.org>
59694
59695         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59696         Make the mostlyclean-local rule depend on mostlyclean-generic.
59697         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
59698
59699 2006-07-31  Bruno Haible  <bruno@clisp.org>
59700
59701         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
59702         <stdlib.h>, <string.h>.
59703
59704 2006-07-30  Bruno Haible  <bruno@clisp.org>
59705
59706         * modules/readlink (License): Change to LGPL.
59707
59708 2006-07-30  Bruno Haible  <bruno@clisp.org>
59709
59710         * modules/javaversion (Makefile.am): Distribute javaversion.java and
59711         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
59712         set PKGDATADIR to point to it.
59713
59714 2006-07-30  Bruno Haible  <bruno@clisp.org>
59715
59716         * modules/csharpexec (configure.ac): Comment out macro invocation.
59717         * modules/javaexec (configure.ac): Likewise.
59718         * modules/javacomp-script (configure.ac): Likewise.
59719
59720         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
59721
59722 2006-07-30  Bruno Haible  <bruno@clisp.org>
59723
59724         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
59725         linked-list.
59726
59727 2006-07-30  Bruno Haible  <bruno@clisp.org>
59728
59729         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
59730
59731 2006-07-30  Bruno Haible  <bruno@clisp.org>
59732
59733         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59734         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
59735         get removed.
59736
59737 2006-07-29  Bruno Haible  <bruno@clisp.org>
59738
59739         Make it possible for gnulib-tool to work with locally modified or
59740         augmented gnulib repositories.
59741         * gnulib-tool (func_usage): Document --local-dir option.
59742         (local_gnulib_dir): New variable.
59743         Handle --local-dir option.
59744         (func_lookup_file): New function.
59745         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
59746         (func_get_description, func_get_filelist, func_get_description,
59747         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
59748         func_get_automake_snippet, func_get_include_directive,
59749         func_get_license, func_get_maintainer): Use func_lookup_file.
59750         (func_import, func_create_testdir): Use func_lookup_file.
59751
59752 2006-07-29  Bruno Haible  <bruno@clisp.org>
59753
59754         * modules/setenv (Depends-on): Add unistd.
59755
59756 2006-07-29  Bruno Haible  <bruno@clisp.org>
59757
59758         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
59759
59760 2006-07-29  Bruno Haible  <bruno@clisp.org>
59761
59762         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
59763
59764 2006-07-29  Bruno Haible  <bruno@clisp.org>
59765
59766         * gnulib-tool (import, update): If there is no Makefile.am, look at
59767         aclocal.m4, instead of bailing out.
59768
59769 2006-07-29  Bruno Haible  <bruno@clisp.org>
59770
59771         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
59772         Categorize the options by when they are useful.
59773
59774 2006-07-29  Bruno Haible  <bruno@clisp.org>
59775
59776         * gnulib-tool (func_usage): Document option --no-libtool.
59777         Handle option --no-libtool.
59778         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
59779         for changed semantics of $libtool variable.
59780         (func_import): Likewise. If libtool is not used, show this through
59781         an option --no-libtool.
59782         (func_create_testdir): Update.
59783
59784 2006-07-29  Bruno Haible  <bruno@clisp.org>
59785
59786         * gnulib-tool (func_import): Extend error message about missing
59787         --doc-base.
59788
59789 2006-07-29  Bruno Haible  <bruno@clisp.org>
59790
59791         * gnulib-tool (func_import): Don't create the $docbase directory if
59792         there is no file to store there.
59793
59794 2006-07-29  Bruno Haible  <bruno@clisp.org>
59795
59796         * gnulib-tool (autoconf_minversion): If a --dir option is given and
59797         relevant, look for configure.ac there, not in the current directory.
59798         Also use a simple search for AC_PREREQ, not "autoconf --trace".
59799
59800 2006-07-29  Bruno Haible  <bruno@clisp.org>
59801
59802         * gnulib-tool (SORT): New variable.
59803         (func_usage): Undocument --assume-autoconf option.
59804         Remove --assume-autoconf option handling.
59805         (autoconf_minversion): Determine from the contents of configure.ac.
59806         (func_import): Remove autoconf_minversion handling.
59807         Suggested by Eric Blake.
59808
59809 2006-07-29  Bruno Haible  <bruno@clisp.org>
59810
59811         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
59812
59813 2006-07-29  Bruno Haible  <bruno@clisp.org>
59814
59815         * config/srclist.txt (*setenv.[ch]): Remove rules.
59816
59817 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59818
59819         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
59820
59821 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59822
59823         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
59824         arpa/inet.h.
59825
59826 2006-07-28  Simon Josefsson  <jas@extundo.com>
59827
59828         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
59829         * modules/inet_pton (Depends-on): Likewise.
59830
59831 2006-07-28  Simon Josefsson  <jas@extundo.com>
59832
59833         * m4/netinet_in_h.m4: New file.
59834
59835 2006-07-28  Simon Josefsson  <jas@extundo.com>
59836
59837         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
59838         #include's.
59839
59840 2006-07-28  Simon Josefsson  <jas@extundo.com>
59841
59842         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
59843         #include's.
59844
59845 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
59846
59847         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
59848         setgid on directories only if they set these bits.
59849         * lib/modechange.h: Remove obsolete comment about masks.
59850
59851 2006-07-28  Eric Blake  <ebb9@byu.net>
59852
59853         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
59854         macro expansion.
59855
59856 2006-07-28  Bruno Haible  <bruno@clisp.org>
59857
59858         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
59859
59860 2006-07-28  Bruno Haible  <bruno@clisp.org>
59861
59862         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
59863
59864 2006-07-28  Bruno Haible  <bruno@clisp.org>
59865
59866         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59867         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
59868         Define fallbacks.
59869         Avoids link error on FreeBSD 4.x.
59870         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59871
59872         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
59873         encoding.
59874         * lib/mbswidth.c (iswcntrl): Likewise.
59875
59876 2006-07-27  Bruno Haible  <bruno@clisp.org>
59877
59878         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
59879         test.
59880
59881 2006-07-27  Bruno Haible  <bruno@clisp.org>
59882
59883         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
59884         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
59885         defined.
59886
59887 2006-07-26  Eric Blake  <ebb9@byu.net>
59888
59889         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
59890
59891 2006-07-26  Eric Blake  <ebb9@byu.net>
59892
59893         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
59894         like mingw that lack mkstemp.
59895         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
59896         avoid compilation warning on mingw.
59897
59898 2006-07-26  Bruno Haible  <bruno@clisp.org>
59899
59900         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
59901         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
59902         INT_FAST*_MIN, INTPTR_MIN.
59903
59904 2006-07-25  Bruno Haible  <bruno@clisp.org>
59905
59906         * modules/version-etc (Depends-on): Add stdarg.
59907
59908 2006-07-25  Bruno Haible  <bruno@clisp.org>
59909
59910         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
59911         complex commands.
59912
59913 2006-07-25  Bruno Haible  <bruno@clisp.org>
59914
59915         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
59916         defined in <stdarg.h> or config.h.
59917
59918 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
59919
59920         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
59921         (gl_STDIO_SAFER): Remove.
59922
59923 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
59924
59925         * MODULES.html.sh (File stream based Input/Output):
59926         Add fopen-safer, tmpfile-safer; remove stdio-safer.
59927         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
59928         * modules/fopen-safer, modules/tmpfile-safer: New files.
59929         * modules/stdio-safer: Remove.
59930
59931 2006-07-24  Bruno Haible  <bruno@clisp.org>
59932
59933         * modules/tmpdir: New file.
59934         * MODULES.html.sh (File system functions): Add it.
59935
59936 2006-07-24  Bruno Haible  <bruno@clisp.org>
59937
59938         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
59939         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
59940
59941 2006-07-24  Bruno Haible  <bruno@clisp.org>
59942
59943         * modules/clean-temp: New file.
59944
59945 2006-07-24  Bruno Haible  <bruno@clisp.org>
59946
59947         * m4/tmpdir.m4: New file, from GNU gettext.
59948
59949 2006-07-24  Bruno Haible  <bruno@clisp.org>
59950
59951         * lib/tmpdir.h: New file, from GNU gettext.
59952         * lib/tmpdir.c: New file, from GNU gettext.
59953
59954 2006-07-24  Bruno Haible  <bruno@clisp.org>
59955
59956         * lib/clean-temp.h: New file, from GNU gettext.
59957         * lib/clean-temp.c: New file, from GNU gettext.
59958
59959 2006-07-23  Eric Blake  <ebb9@byu.net>
59960
59961         * modules/stdio-safer (Files): Add tmpfile-safer.c.
59962         (Depends-on): Add binary-io.
59963
59964 2006-07-23  Eric Blake  <ebb9@byu.net>
59965
59966         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
59967
59968 2006-07-23  Eric Blake  <ebb9@byu.net>
59969
59970         * lib/tmpfile-safer.c: New file.
59971         * lib/stdio-safer.h (fopen_safer): Add prototype.
59972         * lib/stdio--.h (tmpfile): Make safer.
59973
59974 2006-07-23  Bruno Haible  <bruno@clisp.org>
59975
59976         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
59977         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
59978         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
59979         gl_linked_remove_at): Use it.
59980
59981 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59982         and Simon Josefsson <jas@extundo.com>
59983
59984         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
59985
59986         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
59987
59988 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59989
59990         * modules/close-stream: New file.
59991         * modules/closeout (Description): Make it clear that it exits
59992         with a diagnostic on error.
59993         (Depends-on): Add close-stream.  Remove fpending, stdbool.
59994         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
59995
59996 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59997
59998         * m4/close-stream.m4: New file.
59999
60000 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60001
60002         * lib/close-stream.c, lib/close-stream.h: New files.
60003
60004 2006-07-22  Bruno Haible  <bruno@clisp.org>
60005
60006         Merge from GNU gettext 0.15.
60007
60008         2006-05-01  Bruno Haible  <bruno@clisp.org>
60009
60010                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
60011
60012         2006-07-22  Bruno Haible  <bruno@clisp.org>
60013
60014                 * modules/javaversion: New file.
60015                 * MODULES.html.sh (Java): Add javaversion.
60016
60017         2006-03-12  Bruno Haible  <bruno@clisp.org>
60018
60019                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
60020
60021         2005-12-04  Bruno Haible  <bruno@clisp.org>
60022
60023                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
60024                 (untested).
60025
60026         2006-06-21  Bruno Haible  <bruno@clisp.org>
60027
60028                 Avoid warnings from recent versions of mcs.
60029                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
60030                 -o, -L, -r any more. Use options documented since mcs-1.0
60031                 instead. Similarly for -g.
60032
60033         2005-12-04  Bruno Haible  <bruno@clisp.org>
60034
60035                 * build-aux/csharpcomp.sh.in: Suffix for resources is
60036                 .resources, not .resource.
60037
60038         2005-07-09  Bruno Haible  <bruno@clisp.org>
60039
60040                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
60041                 add a .dll suffix.
60042                 Reported by Mark Junker <mjscod@gmx.de>.
60043
60044         2006-07-22  Bruno Haible  <bruno@clisp.org>
60045
60046                 * modules/gettext: Upgrade to gettext-0.15.
60047                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
60048                 m4/visibility.m4.
60049                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
60050
60051 2006-07-22  Bruno Haible  <bruno@clisp.org>
60052
60053         Merge from GNU gettext 0.15.
60054
60055         2006-03-25  Bruno Haible  <bruno@clisp.org>
60056
60057                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
60058
60059         2006-07-21  Bruno Haible  <bruno@clisp.org>
60060
60061                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
60062                 "1.1".
60063
60064         2006-05-09  Bruno Haible  <bruno@clisp.org>
60065
60066                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
60067                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
60068                 for the conftestver execution.
60069
60070         2006-05-01  Bruno Haible  <bruno@clisp.org>
60071
60072                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
60073                 optional target-version argument. Verify that the compiler
60074                 groks source of the specified source-version, or add -source
60075                 option as necessary. Verify that the compiler produces
60076                 bytecode in the specified target-version, or add -target and
60077                 -source options as necessary. Make the result of the test
60078                 available as variable CONF_JAVAC. Also log error output in
60079                 config.log.
60080
60081         2006-03-11  Bruno Haible  <bruno@clisp.org>
60082
60083                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
60084
60085         2006-05-09  Bruno Haible  <bruno@clisp.org>
60086
60087                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
60088                 CLASSPATH_SEPARATOR to a semicolon.
60089
60090         2006-03-12  Bruno Haible  <bruno@clisp.org>
60091
60092                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
60093                 available as variable CONF_JAVA, for subsequent autoconf
60094                 tests. Also log error output in config.log.
60095
60096         2006-07-19  Bruno Haible  <bruno@clisp.org>
60097
60098                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
60099                 that getline works on glibc2 systems. Needed to avoid trouble
60100                 in relocatable.c.
60101                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
60102
60103         2005-12-04  Bruno Haible  <bruno@clisp.org>
60104
60105                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
60106                 launcher (untested).
60107
60108         2005-12-04  Bruno Haible  <bruno@clisp.org>
60109
60110                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
60111
60112         2006-07-22  Bruno Haible  <bruno@clisp.org>
60113
60114                 * gettext.m4: Update from GNU gettext-0.15.
60115                 * nls.m4: Likewise.
60116                 * po.m4: Likewise.
60117                 * inttypes-pri.m4: Likewise.
60118                 * inttypes-h.m4: Renamed from inttypes.m4.
60119                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
60120
60121 2006-07-22  Bruno Haible  <bruno@clisp.org>
60122
60123         Merge from GNU gettext 0.15.
60124
60125         2005-07-05  Bruno Haible  <bruno@clisp.org>
60126
60127                 * printf-args.c (printf_fetchargs): Work around broken
60128                 definition of wint_t on mingw.
60129
60130         2005-02-12  Bruno Haible  <bruno@clisp.org>
60131
60132                 * xallocsa.h: Add extern "C" for C++.
60133
60134         2006-05-17  Bruno Haible  <bruno@clisp.org>
60135
60136                 Cygwin portability.
60137                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
60138
60139         2006-04-30  Bruno Haible  <bruno@clisp.org>
60140
60141                 * progreloc.c: Include <mach-o/dyld.h> if available.
60142                 (find_executable): Use _NSGetExecutablePath when possible.
60143
60144         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
60145
60146                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
60147                 function.
60148
60149         2005-12-29  Bruno Haible  <bruno@clisp.org>
60150
60151                 * progreloc.c (set_program_name_and_installdir): Fix
60152                 compilation error.
60153
60154         2005-12-04  Bruno Haible  <bruno@clisp.org>
60155
60156                 Cygwin portability.
60157                 * progreloc.c: Include <windows.h> also on Cygwin.
60158                 (find_executable): Add support for Cygwin.
60159                 (set_program_name_and_installdir): Handle also platforms with
60160                 nonempty EXEEXT.
60161
60162         2006-07-11  Bruno Haible  <bruno@clisp.org>
60163
60164                 * javacomp.c: Fix a comment.
60165                 Reported by Jim Meyering.
60166
60167         2006-04-30  Bruno Haible  <bruno@clisp.org>
60168
60169                 * javacomp.h (compile_java_class): Add source_version,
60170                 target_version arguments.
60171                 * javacomp.c: Rewritten to choose only a compiler that
60172                 respects the specified source_version and target_version.
60173
60174         2006-06-27  Bruno Haible  <bruno@clisp.org>
60175
60176                 Assume correct S_ISDIR macro.
60177                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
60178
60179         2006-07-22  Bruno Haible  <bruno@clisp.org>
60180
60181                 * javaversion.h: New file, from GNU gettext.
60182                 * javaversion.c: New file, from GNU gettext.
60183                 * javaversion.java: New file, from GNU gettext.
60184                 * javaversion.class: New file, from GNU gettext.
60185
60186         2006-05-17  Bruno Haible  <bruno@clisp.org>
60187
60188                 Cygwin portability.
60189                 * javaexec.c (execute_java_class): Test for jview program
60190                 also on Cygwin.
60191
60192         2006-04-09  Bruno Haible  <bruno@clisp.org>
60193
60194                 * fatal-signal.c: Don't include string.h.
60195                 (at_fatal_signal): Use a copying loop instead of memcpy.
60196
60197         2005-12-04  Bruno Haible  <bruno@clisp.org>
60198
60199                 * csharpexec.c: Add support for 'clix' launcher (untested).
60200                 (execute_csharp_using_sscli): New function.
60201                 (execute_csharp_program): Call it.
60202
60203         2006-06-21  Bruno Haible  <bruno@clisp.org>
60204
60205                 Avoid warnings from recent versions of mcs.
60206                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
60207                 -o, -L, -r any more. Use options documented since mcs-1.0
60208                 instead. Similarly for -g.
60209
60210         2005-07-09  Bruno Haible  <bruno@clisp.org>
60211
60212                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
60213                 add a .dll suffix.
60214                 Reported by Mark Junker <mjscod@gmx.de>.
60215
60216         2006-06-17  Bruno Haible  <bruno@clisp.org>
60217
60218                 * config.charset: Update for NetBSD 3.0.
60219
60220         2006-05-17  Bruno Haible  <bruno@clisp.org>
60221
60222                 Cygwin portability.
60223                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
60224
60225         2006-05-16  Bruno Haible  <bruno@clisp.org>
60226
60227                 * localcharset.c [CYGWIN]: Include <windows.h>.
60228                 (get_charset_aliases): For Cygwin, return the same CPxxx
60229                 aliases list as under WIN32.
60230                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
60231                 the environment variables. Fall back to GetACP().
60232
60233         2006-04-05  Bruno Haible  <bruno@clisp.org>
60234
60235                 * config.charset: Update Juan Manuel Guerrero's address.
60236
60237         2005-02-12  Bruno Haible  <bruno@clisp.org>
60238
60239                 * allocsa.h: Add extern "C" for C++.
60240
60241         2005-02-10  Bruno Haible  <bruno@clisp.org>
60242
60243                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
60244                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
60245
60246         2006-07-22  Bruno Haible  <bruno@clisp.org>
60247
60248                 * gettext.h: Update to GNU gettext-0.15.
60249
60250 2006-07-22  Bruno Haible  <bruno@clisp.org>
60251
60252         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
60253         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
60254         lib-prefix.m4, longdouble.m4, ssize_t.m4.
60255
60256 2006-07-21  Eric Blake  <ebb9@byu.net>
60257
60258         * modules/stdlib-safer: New file.
60259         * MODULES.html.sh (File stream based Input/Output): Add
60260         stdlib-safer.
60261
60262 2006-07-21  Eric Blake  <ebb9@byu.net>
60263
60264         * lib/stdlib-safer.h: New file from coreutils, required by
60265         stdlib--.h.
60266
60267 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
60268
60269         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
60270
60271 2006-07-20  Bruno Haible  <bruno@clisp.org>
60272
60273         * gnulib-tool: Recognize new option --assume-autoconf.
60274         (autoconf_minversion): New variable.
60275         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
60276
60277 2006-07-20  Bruno Haible  <bruno@clisp.org>
60278
60279         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
60280
60281 2006-07-19  Derek R. Price  <derek@ximbiot.com>
60282
60283         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
60284         Reindent and repaginate.
60285
60286 2006-07-19  Derek Price  <derek@ximbiot.com>
60287
60288         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
60289         Correct grammar.
60290
60291 2006-07-17  Bruno Haible  <bruno@clisp.org>
60292
60293         * modules/list: New file.
60294         * modules/array-list: New file.
60295         * modules/carray-list, modules/carray-list-tests: New files.
60296         * modules/linked-list, modules/linked-list-tests: New files.
60297         * modules/avltree-list, modules/avltree-list-tests: New files.
60298         * modules/rbtree-list, modules/rbtree-list-tests: New files.
60299         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
60300         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
60301         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
60302         * modules/oset: New file.
60303         * modules/array-oset: New file.
60304         * modules/avltree-oset, modules/avltree-oset-tests: New files.
60305         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
60306         * tests/test-carray_list.c: New file.
60307         * tests/test-linked_list.c: New file.
60308         * tests/test-avltree_list.c: New file.
60309         * tests/test-rbtree_list.c: New file.
60310         * tests/test-linkedhash_list.c: New file.
60311         * tests/test-avltreehash_list.c: New file.
60312         * tests/test-rbtreehash_list.c: New file.
60313         * tests/test-avltree_oset.c: New file.
60314         * tests/test-rbtree_oset.c: New file.
60315         * MODULES.html.sh (Container data structures): New section.
60316
60317 2006-07-17  Bruno Haible  <bruno@clisp.org>
60318
60319         * m4/gl_list.m4: New file.
60320
60321 2006-07-17  Bruno Haible  <bruno@clisp.org>
60322
60323         * lib/gl_list.h: New file.
60324         * lib/gl_list.c: New file.
60325         * lib/gl_array_list.h: New file.
60326         * lib/gl_array_list.c: New file.
60327         * lib/gl_carray_list.h: New file.
60328         * lib/gl_carray_list.c: New file.
60329         * lib/gl_linked_list.h: New file.
60330         * lib/gl_linked_list.c: New file.
60331         * lib/gl_anylinked_list1.h: New file.
60332         * lib/gl_anylinked_list2.h: New file.
60333         * lib/gl_avltree_list.h: New file.
60334         * lib/gl_avltree_list.c: New file.
60335         * lib/gl_anyavltree_list1.h: New file.
60336         * lib/gl_anyavltree_list2.h: New file.
60337         * lib/gl_rbtree_list.h: New file.
60338         * lib/gl_rbtree_list.c: New file.
60339         * lib/gl_anyrbtree_list1.h: New file.
60340         * lib/gl_anyrbtree_list2.h: New file.
60341         * lib/gl_anytree_list1.h: New file.
60342         * lib/gl_anytree_list2.h: New file.
60343         * lib/gl_linkedhash_list.h: New file.
60344         * lib/gl_linkedhash_list.c: New file.
60345         * lib/gl_anyhash_list1.h: New file.
60346         * lib/gl_anyhash_list2.h: New file.
60347         * lib/gl_avltreehash_list.h: New file.
60348         * lib/gl_avltreehash_list.c: New file.
60349         * lib/gl_rbtreehash_list.h: New file.
60350         * lib/gl_rbtreehash_list.c: New file.
60351         * lib/gl_anytreehash_list1.h: New file.
60352         * lib/gl_anytreehash_list2.h: New file.
60353
60354         * lib/gl_oset.h: New file.
60355         * lib/gl_oset.c: New file.
60356         * lib/gl_array_oset.h: New file.
60357         * lib/gl_array_oset.c: New file.
60358         * lib/gl_avltree_oset.h: New file.
60359         * lib/gl_avltree_oset.c: New file.
60360         * lib/gl_rbtree_oset.h: New file.
60361         * lib/gl_rbtree_oset.c: New file.
60362         * lib/gl_anytree_oset.h: New file.
60363
60364 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
60365
60366         * m4/mkancesdirs.m4: New file.
60367         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
60368         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
60369         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
60370         it.
60371
60372 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
60373
60374         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
60375         * lib/mkancesdirs.h: New files.
60376         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
60377         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
60378         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
60379         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
60380         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
60381         callers changed.  Revamp internals significantly, by not
60382         attempting to create directories that are temporarily more
60383         permissive than the final results.  Do not attempt to use
60384         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
60385         This removes some race conditions, fixes some bugs, and simplifies
60386         things.  Use new dirchownmod function to do owner and mode changes.
60387         * lib/mkdir-p.h: Likewise.
60388         * lib/modechange.c (octal_to_mode): New function.
60389         (struct mode_change): New member mentioned.
60390         (make_node_op_equals): New arg mentioned.  All callers changed.
60391         (mode_compile): Keep track of which mode bits the user has explicitly
60392         mentioned.
60393         (mode_adjust): New arg DIR, so that we implement the X op correctly.
60394         New arg PMODE_BITS, to keep track of which mode bits the user
60395         mentioned; it treats S_ISUID and S_ISGID speciall.
60396         All callers changed.
60397         * lib/modechange.h: Likewise.
60398
60399 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
60400
60401         * MODULES.html.sh: Add mkancestors.
60402         * modules/mkancesdirs: New module.
60403         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
60404         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
60405         The chdir-safer and afs files are now orphans; I'll remove them
60406         unless someone speaks up.
60407         Add lib/dirchownmod.c, lib/dirchownmod.h.
60408         (Depends-on): Remove alloca, chown, save-cwd, dirname.
60409         Add lchown, mkancesdirs.
60410         (Maintainer): Add self.
60411
60412 2006-07-15  Karl Berry  <karl@gnu.org>
60413
60414         * gnulib-tool: help message wording/arrangement.
60415
60416 2006-07-14  Simon Josefsson  <jas@extundo.com>
60417
60418         * doc/gnulib.texi (Libtool and Windows): New section.
60419
60420 2006-07-12  Simon Josefsson  <jas@extundo.com>
60421
60422         * modules/gendocs (License): Fix license, approved by Karl.
60423
60424 2006-07-12  Eric Blake  <ebb9@byu.net>
60425
60426         * MODULES.html.sh: Add gendocs.
60427
60428 2006-07-11  Eric Blake  <ebb9@byu.net>
60429
60430         * modules/fdl: New module, to install doc/fdl.texi.
60431         * MODULES.html.sh: Add new section for documentation modules.
60432         * gnulib-tool: Avoid space-tab.
60433         (--doc-base): New option, to manage files from doc.
60434
60435 2006-07-11  Eric Blake  <ebb9@byu.net>
60436
60437         * m4/absolute-header.m4: Fix comments to match recent change.
60438
60439 2006-07-11  Eric Blake  <ebb9@byu.net>
60440
60441         * gnulib-tool: List --doc-base before --tests-base.
60442
60443 2006-07-11  Derek R. Price  <derek@ximbiot.com>
60444
60445         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
60446
60447 2006-07-11  Bruno Haible  <bruno@clisp.org>
60448
60449         * README: Mention where to put documentation.
60450
60451 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60452
60453         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
60454
60455 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
60456
60457         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
60458         to stdint.m4.
60459
60460 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
60461
60462         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
60463         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
60464         "no/such/file/stdint.h" when there is no such file, so that
60465         the resulting C code can be parsed by dodgy compilers.
60466         Problems reported by Bob Proulx.
60467
60468 2006-07-10  Derek R. Price  <derek@ximbiot.com>
60469
60470         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
60471         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
60472         macros into the GNU _D_EXACT_NAMLEN.
60473         * lib/savedir.c:  Likewise.
60474         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
60475
60476 2006-07-10  Derek R. Price  <derek@ximbiot.com>
60477         and Paul Eggert  <eggert@cs.ucla.edu>
60478
60479         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
60480         * m4/savedir.m4:
60481         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
60482         macros into the GNU _D_EXACT_NAMLEN.
60483
60484 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60485
60486         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
60487         around the absolute name, to work around a problem with the HP-UX
60488         11.23 native C compiler, reported by Bob Proulx.
60489
60490 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60491
60492         * doc/maintain.texi, make-stds.texi: Sync from
60493         <http://savannah.gnu.org/projects/gnustandards>.
60494
60495 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60496
60497         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
60498
60499 2006-07-09  Jim Meyering  <jim@meyering.net>
60500
60501         * m4/glob.m4: Remove a doubled word in a comment.
60502
60503 2006-07-09  Jim Meyering  <jim@meyering.net>
60504
60505         * lib/argp-pv.c: Remove a doubled word in a comment.
60506         * lib/check-version.c (check_version): Likewise.
60507         * lib/javacomp.c (compile_java_class): Likewise.
60508
60509 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
60510
60511         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
60512         for the benefit of people using Autoconf 2.60.  If you want to
60513         support older Autoconf versions you can copy m4/onceonly_2_57.m4
60514         (or m4/onceonly.m4, if pre-2.57) manually.
60515
60516 2006-07-08  Jim Meyering  <jim@meyering.net>
60517
60518         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
60519         comment.
60520         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
60521         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
60522         comment.
60523
60524 2006-07-08  Jim Meyering  <jim@meyering.net>
60525
60526         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
60527
60528 2006-07-07  Simon Josefsson  <jas@extundo.com>
60529
60530         * tests/test-crc.c: Change expected crc value, the test vector
60531         were probably computed using the old broken crc.c?
60532
60533 2006-07-06  Simon Josefsson  <jas@extundo.com>
60534
60535         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
60536         now the canonical place for the M4 file).
60537
60538         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
60539         from the sys_socket dependency now.
60540
60541         * modules/inet_pton (Files): Ditto.
60542
60543         * modules/inet_ntop (Files): Ditto.
60544
60545 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
60546
60547         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
60548         not gl_PREREQ_GETUSERSHELL.
60549
60550 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60551
60552         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
60553         with only one argument, for Autoconf 2.60.
60554         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
60555         expand to nothing, so add a shell command to avoid syntax error.
60556         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
60557
60558 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60559
60560         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
60561
60562 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60563
60564         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
60565         no longer needed.  Check for isblank decl.
60566         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
60567         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
60568         of existence.
60569
60570 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60571
60572         * lib/getloadavg.c: Use __VMS, not VMS.
60573         * lib/getopt.c: Likewise.
60574         * lib/getpagesize.h: Likewise.
60575         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
60576         and probably does not work.
60577
60578 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60579
60580         * lib/.cppi-disable: Add wcwidth.
60581         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
60582         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
60583         (ISGRAPH): Remove.  All uses changed to isgraph.
60584         (FOLD) [!defined _LIBC]: Remove special case.
60585         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
60586         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
60587         HAVE_ISBLANK.
60588         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
60589         case.
60590
60591 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
60592
60593         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
60594         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
60595         brackets.  Other minor changes to suppress some compiler
60596         warnings.
60597
60598 2006-07-06  Derek R. Price  <derek@ximbiot.com>
60599         and Paul Eggert  <eggert@cs.ucla.edu>
60600
60601         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
60602         of invoking obsolescent AC_HEADER_DIRENT macro.
60603         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
60604         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
60605         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
60606         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
60607         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
60608         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
60609         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
60610         * m4/readdir.m4: Remove; no longer needed.
60611
60612 2006-07-06  Derek R. Price  <derek@ximbiot.com>
60613         and Paul Eggert  <eggert@cs.ucla.edu>
60614
60615         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
60616         Don't worry about this obsolete case any more.
60617         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
60618         directories.
60619         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
60620         worry about this obsolete case any more.
60621         * lib/fts.c: Likewise.
60622         * lib/getcwd.c: Likewise.
60623         * lib/glob.h: Likewise.
60624         * lib/savedir.c: Likewise.
60625
60626 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
60627
60628         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
60629         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
60630         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
60631         needed.
60632         All uses removed.
60633         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
60634         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
60635         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
60636         needed.
60637         * m4/getdate.m4 (gl_GETDATE): Likewise.
60638         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
60639         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
60640         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
60641         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
60642         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
60643         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
60644         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
60645         needed.
60646
60647 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
60648
60649         * lib/memcasecmp.c: Include <limits.h>.
60650         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
60651         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
60652         Don't assume isdigit succeeds only on '0' through '9'.
60653
60654 2006-07-05  Eric Blake  <ebb9@byu.net>
60655
60656         * modules/getaddrinfo (Depends-on): Add snprintf.
60657
60658 2006-07-05  Eric Blake  <ebb9@byu.net>
60659
60660         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
60661         to avoid 'header present but could not be compiled' on cygwin.
60662
60663 2006-07-05  Eric Blake  <ebb9@byu.net>
60664
60665         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
60666         missing from netdb.h.
60667         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
60668
60669 2006-07-05  Derek R. Price  <derek@ximbiot.com>
60670
60671         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
60672         no longer needed.
60673         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
60674         * m4/getdate.m4 (gl_GETDATE): Likewise.
60675         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
60676         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
60677         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
60678         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
60679         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
60680
60681 2006-07-05  Derek R. Price  <derek@ximbiot.com>
60682
60683         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
60684         All uses of is_space replaced by isspace.
60685         * lib/exit.h: Don't talk about STDC_HEADERS.
60686         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
60687         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
60688         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
60689         replaced by isprint etc.
60690         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
60691         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
60692         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
60693         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
60694         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
60695         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
60696
60697 2006-07-05  Bruno Haible  <bruno@clisp.org>
60698
60699         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
60700         the function exists, before testing against AIX.
60701         Reported by Martin Lambers <marlam@marlam.de>.
60702
60703 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
60704
60705         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
60706         From Mark D. Baushke.
60707
60708 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
60709
60710         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
60711         to the absolute name, not just one, to bypass Sun C 5.8's
60712         "warning: #include of /usr/include/... may be non-portable".
60713
60714 2006-07-04  Eric Blake  <ebb9@byu.net>
60715
60716         * modules/dirname-tests: New test module.
60717         * tests/test-dirname.c: New file, replacing dirname.c
60718         TEST_DIRNAME section that was recently deleted.
60719
60720 2006-07-04  Bruno Haible  <bruno@clisp.org>
60721
60722         Assume ANSI C header files and <ctype.h> functions.
60723         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
60724         (mbsnwidth): Use isprint, iscntrl instead.
60725
60726 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60727
60728         Merge from coreutils.
60729         * MODULES.html.sh: Add xstrtold.
60730         * modules/xstrtold: New file.
60731         * modules/cycle-check (Files): Add lib/same-inode.h.
60732         * modules/dirname (Files): Add m4/double-slash-root.m4.
60733         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
60734         * modules/mkdir-p (Files): Add lib/same-inode.h.
60735         * modules/same (Files): Add lib/same-inode.h.
60736
60737 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60738
60739         * m4/absolute-header.m4: Renamed from full-header-path.m4.
60740         This is to keep the terminology clean; POSIX talks about
60741         "absolute pathnames", not "full pathnames", but the GNU
60742         Coding Standards say to use "path" for something else;
60743         so use "absolute" to keep both sides happy.
60744         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
60745         Set gl_absolute_header, not gl_full_header_path.
60746         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
60747         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
60748         All uses changed.
60749
60750         Merge from coreutils.
60751
60752         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
60753
60754         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
60755         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
60756         want to require the building of c-strtod.o.
60757         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
60758         needs -lm directly.
60759         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
60760
60761         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
60762
60763         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
60764         --as-needed option if available.  Problem reported by Albert Chin in
60765         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
60766         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
60767         cc merely issues a bunch of annoying warnings for --as-needed
60768         (this problem was reported by Bob Proulx).  Also, try linking with
60769         -lm to detect a bug in binutils 2.16 (this problem was reported
60770         by Ralf Wildenhues).
60771
60772         2006-06-18  Jim Meyering  <jim@meyering.net>
60773
60774         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
60775         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
60776         macro.
60777         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
60778         also check for glibc-2.4's abort-inducing bug.
60779
60780         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
60781         Low-probability clean-up should be to use rmdir to get rid of
60782         the just-created directory, not unlink.
60783
60784         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
60785         configure fail, and request a bug report to inform us about it.
60786         Add a comment that, barring reports to the contrary, in 2007 we'll
60787         assume ftruncate is universally available.
60788
60789         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
60790
60791         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
60792
60793         2006-03-12  Jim Meyering  <jim@meyering.net>
60794
60795         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
60796         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
60797         * m4/same.m4 (gl_SAME): Likewise.
60798         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
60799
60800         2006-03-11  Eric Blake  <ebb9@byu.net>
60801
60802         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
60803         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
60804         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
60805         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
60806
60807 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60808
60809         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
60810         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
60811         reported by Mark D. Baushke, one in
60812         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
60813
60814         Merge from coreutils.
60815
60816         * lib/.cppi-disable: Add stdint_.h.
60817         * lib/.cvsignore: Add stdint.h.
60818
60819         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
60820
60821         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
60822         both double and long double versions.
60823         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
60824         * lib/xstrtold.c: New file.
60825         * lib/xstrtod.h (xstrtold): New decl.
60826
60827         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
60828
60829         * lib/filemode.c (setst): Remove.
60830         (strmode): Rewrite to avoid setst.  This makes the code shorter,
60831         (arguably) clearer, and the generated code is a bit smaller on my
60832         Debian GNU/Linux stable x86 host.
60833
60834         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
60835
60836         * lib/filemode.c: Include "filemode.h" first, to test the interface.
60837         Assume that filemode.h includes sys/types.h and sys/stat.h.
60838         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
60839         (ftypelet): Reorder to put common cases first, for efficiency.
60840         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
60841         to do 'M'.
60842         (strmode): Renamed from mode_string, and now stores 12 bytes instead
60843         of 10, for compatibility with FreeBSD.  All callers changed.
60844         (filemodestring): Now stores 12 bytes instead of 10, and sets file
60845         types that can't be deduced solely from st_mode.  First arg is now a
60846         const pointer.
60847         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
60848         (strmode): Renamed from mode_string.
60849         (filemodestring): New decl.
60850         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
60851         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
60852         needed.
60853         (S_ISPORT, S_ISWHT): New macros, if not already defined.
60854
60855         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
60856
60857         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
60858         fsusage.h now does that.  Include fsusage.h first, to test interface.
60859         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
60860         at most one method (the old code could have generated decls that
60861         didn't conform to C89, not that this was ever exercised).
60862         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
60863
60864         2006-03-19  Jim Meyering  <jim@meyering.net>
60865
60866         Work even in a chroot where d_ino values for entries in "/"
60867         don't match the stat.st_ino values for the same names.
60868         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
60869         number, iterate through all entries again, using lstat instead.
60870         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
60871         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
60872
60873         * lib/getcwd.c (__getcwd): Clarify a comment.
60874         Use memcpy in place of a call to strcpy.
60875
60876         2006-03-12  Jim Meyering  <jim@meyering.net>
60877
60878         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
60879         matches that of the current directory (which we're about to chdir ".."
60880         out of), then save the dev-ino of the parent, instead.
60881
60882         * lib/same-inode.h (SAME_INODE): New file/macro.
60883         * lib/chdir-safer.c (SAME_INODE): Remove definition.
60884         Include "same-inode.h", instead.
60885         * lib/same.c: Likewise.
60886         * lib/cycle-check.h: Include "same-inode.h".
60887         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
60888         * lib/cycle-check.c (SAME_INODE): Remove definition.
60889         * lib/root-dev-ino.h: Include "same-inode.h".
60890
60891         2006-03-11  Eric Blake  <ebb9@byu.net>
60892
60893         * lib/same.c (same_name): s/base_name/last_component/
60894         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
60895         * lib/filenamecat.c (file_name_concat): Likewise.
60896
60897         2006-03-11  Eric Blake  <ebb9@byu.net>,
60898                     Paul Eggert  <eggert@cs.ucla.edu>
60899
60900         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
60901         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
60902         drive prefix.
60903         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
60904         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
60905         (last_component): New method.
60906         * lib/dirname.c (dir_len): Determine when drive letters need a
60907         subsequent slash.  Preserve // when it is special.
60908         (dir_name): Don't append dot when drive letter is absolute.
60909         [TEST_DIRNAME]: Move into a full-blown gnulib test.
60910         * lib/basename.c (base_name): New semantics - malloc the result.
60911         Preserve // when it is special.  Preserve relative files that look
60912         like drive letters.
60913         (base_len): Preserve // when it is special.
60914         (last_component): New method, similar to old base_name semantics.
60915         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
60916         base_name.  Strip redundant slashes from ///.
60917
60918 2006-07-03  Jim Meyering  <jim@meyering.net>
60919
60920         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
60921         macro is used before the first cycle_check call.
60922
60923 2006-07-03  Eric Blake  <ebb9@byu.net>
60924
60925         * modules/dirname (Depends-on): Add xstrndup.
60926
60927 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60928
60929         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
60930         test cases, so that config.log is a bit easier to follow.
60931
60932 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60933
60934         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
60935         both are 64 bits, since this seems to be the tradition, and this
60936         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
60937         we ever run into a host that prefers long long to long in this
60938         case, we'll need another configure-time test.  Problem reported by
60939         Jim Meyering.
60940
60941 2006-07-02  Eric Blake  <ebb9@byu.net>
60942
60943         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
60944
60945 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60946
60947         * modules/inttypes (Depends-on): No longer depends on stdint.
60948         * modules/stdint (Description): Say more about assumptions.
60949         Say that the fast types might differ.  Say macros are used.
60950         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
60951         (Makefile.am): Revise list of substituted symbols to match
60952         new stdint.m4.
60953         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
60954         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
60955         * tests/test-stdint.c (verify_same_types)
60956         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
60957         the code conforms to C99/C89.
60958         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
60959         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
60960
60961 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60962
60963         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
60964         but fix a bug, by requiring at least 64 bits.
60965         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60966         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
60967         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
60968         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
60969
60970         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
60971         changes.  Make 2.59 a prerequisite.  Check and substitute for
60972         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
60973         inttypes.h.  Do not use special include files; just use the
60974         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
60975         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
60976         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
60977         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
60978         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
60979         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
60980         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
60981         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
60982         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
60983         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
60984         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
60985         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
60986         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
60987         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
60988         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
60989         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
60990         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
60991         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
60992         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
60993         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
60994         WINT_MAX.  Check for C99 conformance more strictly, by detecting
60995         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
60996         not check for things that C99 does not require, e.g., int8_t.  If
60997         a test isn't needed unless <stdint.h> isn't working, and is
60998         unlikely to be needed for any other reason, then don't do it
60999         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
61000         size_t, since we assume C89 freestanding at least.  Do not check
61001         for sig_atomic_t, wchar_t, or wint_t, since the code now does
61002         the right thing even if the types are not defined.  Instead use:
61003         (gl_STDINT_TYPE_PROPERTIES): New macro.
61004         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
61005         testing whether <sys/types.h> clashes, as Autoconf does this for
61006         us now.  All uses removed.
61007         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
61008         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
61009         (gl_CHECK_TYPE_SAME):
61010         Remove; no longer needed.
61011         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
61012         exists, since we'll return 0 anyway in that case.
61013         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
61014
61015 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61016
61017         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
61018         possible collision with system files.
61019         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
61020         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
61021         WCHAR_MIN and WCHAR_MAX in this case.
61022         (<stddef.h>): Do not include; no longer needed.
61023         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
61024         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
61025         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
61026         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
61027         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
61028         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
61029         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
61030         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
61031         !defined(__c99))]: Include in this case too, since it's harmless
61032         now.
61033         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
61034         dangerous to do so.
61035         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
61036         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
61037         (_STDINT_MIN, _STDINT_MAX): New macros.
61038         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
61039         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
61040         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
61041         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
61042         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
61043         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
61044         macros, not typedefs; this simplifies things quite a bit.
61045         Use long int for all types narrower than int64_t.
61046         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
61047         Define in terms of long long int or int64_t or long int,
61048         not int64_t or int32_t.  This saves some compile-time testing.
61049         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
61050         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
61051         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
61052         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
61053         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
61054         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
61055         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
61056         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
61057         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
61058         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
61059         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
61060         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
61061         undef any previous version and define our own version, for
61062         simplicity and consistency with the new macros for types.
61063         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
61064         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
61065         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
61066         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
61067         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
61068         @WINT_T_SUFFIX@ to keep things simple here.
61069         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
61070         Simplify by assuming typical 8/16/32/64 host, since we're
61071         already doing that elsewhere anyway.
61072         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
61073         and assume long long int is 64 bits if available.  This
61074         speeds up 'configure'.
61075
61076 2006-07-01  Eric Blake  <ebb9@byu.net>
61077
61078         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
61079         Reported by Andreas Buening.
61080
61081 2006-07-01  Eric Blake  <ebb9@byu.net>
61082
61083         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
61084
61085 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
61086
61087         * lib/getaddrinfo.c: fixed typo
61088
61089 2006-06-29  Jim Meyering  <jim@meyering.net>
61090
61091         * modules/strftime (Maintainer): Add my name, since with the
61092         FPRINTFTIME changes strftime.c has forked from glibc.
61093
61094 2006-06-29  Eric Blake  <ebb9@byu.net>
61095
61096         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
61097
61098 2006-06-29  Eric Blake  <ebb9@byu.net>
61099
61100         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
61101
61102 2006-06-29  Eric Blake  <ebb9@byu.net>
61103
61104         * lib/stat_.h: New file.
61105
61106 2006-06-29  Eric Blake  <ebb9@byu.net>
61107
61108         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
61109         unused static function.
61110
61111 2006-06-29  Eric Blake  <ebb9@byu.net>
61112
61113         * doc/functions.texi (Function Portability): Document missing lstat
61114         on mingw.
61115
61116 2006-06-29  Eric Blake  <ebb9@byu.net>
61117
61118         * MODULES.html.sh: Add sys_stat.
61119         * modules/sys_stat: New module.
61120         * modules/mkstemp (Depends-on): Add sys_stat.
61121
61122 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61123
61124         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
61125
61126 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61127
61128         * m4/c-bs-a.m4: Removed.
61129
61130 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61131
61132         * lib/strftime.c: Assume strftime() exists.
61133
61134 2006-06-29  Derek Price  <derek@ximbiot.com>
61135
61136         * modules/c-bs-a: Removed - \a is C89.
61137         * MODULES.html.sh: Remove c-bs-a.
61138
61139 2006-06-29  Bruno Haible  <bruno@clisp.org>
61140
61141         * modules/wcwidth (License): Change to LGPL.
61142
61143 2006-06-28  Simon Josefsson  <jas@extundo.com>
61144
61145         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
61146         on _WIN32.
61147
61148         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
61149         getnameinfo.
61150
61151 2006-06-28  Simon Josefsson  <jas@extundo.com>
61152
61153         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
61154
61155 2006-06-28  Simon Josefsson  <jas@extundo.com>
61156
61157         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
61158         functions there.  It will succeed on Windows XP, but on Windows
61159         2000 and (presumably) earlier, it will fail, and use the internal
61160         re-implementation.
61161         (use_win32_p): New function.
61162         (getaddrinfo): Use strtoul on servname, to support numeric ports.
61163         Support AI_NUMERICSERV to disable getservbyname.
61164         (getnameinfo): New function, only supports
61165         NI_NUMERICHOST|NI_NUMERICSERV for now.
61166
61167         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
61168         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
61169         getnameinfo.
61170
61171 2006-06-28  Eric Blake  <ebb9@byu.net>
61172
61173         * modules/wcwidth: New file.
61174         * modules/mbchar (Depends-on): Add wcwidth.
61175         * modules/mbswidth (Depends-on): Add wcwidth.
61176         * MODULES.html.sh: Add wcwidth.
61177
61178 2006-06-28  Eric Blake  <ebb9@byu.net>
61179
61180         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
61181         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
61182
61183 2006-06-28  Eric Blake  <ebb9@byu.net>
61184
61185         * lib/xvasprintf.h: Fix comments.
61186
61187 2006-06-28  Eric Blake  <ebb9@byu.net>
61188
61189         * lib/mbchar.h (wcwidth): Include wcwidth.h.
61190         * lib/mbswidth.c (wcwidth): Move from here...
61191         * lib/wcwidth.h: ...to this new file.
61192
61193 2006-06-28  Derek R. Price  <derek@ximbiot.com>
61194
61195         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
61196
61197         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
61198         it's obsolete.
61199         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
61200
61201 2006-06-28  Derek R. Price  <derek@ximbiot.com>
61202
61203         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
61204         Autoconf 2.60 says this stuff was obsolete.
61205
61206 2006-06-28  Bruno Haible  <bruno@clisp.org>
61207
61208         * modules/wcwidth (Files): Add m4/wchar_t.m4.
61209
61210 2006-06-28  Bruno Haible  <bruno@clisp.org>
61211
61212         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
61213         gt_TYPE_WCHAR_T.
61214
61215 2006-06-28  Bruno Haible  <bruno@clisp.org>
61216
61217         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
61218         declaration for wcwidth.
61219         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
61220
61221 2006-06-28  Bruno Haible  <bruno@clisp.org>
61222
61223         * lib/mkdtemp.c [MINGW]: Include <io.h>.
61224         (mkdir): Define using _mkdir.
61225
61226 2006-06-28  Bruno Haible  <bruno@clisp.org>
61227
61228         * lib/getaddrinfo.h: Fix POSIX URL.
61229         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
61230         _WIN32.
61231         (use_win32_p): Make static.
61232         (getaddrinfo): Reject service name if it is empty or does not consist
61233         solely of decimal digits, or if its value is > 65535.
61234         (getnameinfo): Remove useless casts.
61235
61236 2006-06-27  Simon Josefsson  <jas@extundo.com>
61237
61238         * modules/sys_select: New file, suggested by Bruno Haible, Paul
61239         Eggert and Martin Lambers.
61240
61241 2006-06-27  Simon Josefsson  <jas@extundo.com>
61242
61243         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
61244         Eggert and Martin Lambers.
61245
61246 2006-06-27  Bruno Haible  <bruno@clisp.org>
61247
61248         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
61249         result to 0, not to empty.
61250         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
61251
61252 2006-06-27  Bruno Haible  <bruno@clisp.org>
61253
61254         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
61255
61256 2006-06-26  Simon Josefsson  <jas@extundo.com>
61257
61258         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
61259         present.
61260
61261 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
61262
61263         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
61264         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
61265         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
61266
61267 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
61268
61269         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
61270
61271 2006-06-26  Bruno Haible  <bruno@clisp.org>
61272
61273         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
61274
61275 2006-06-26  Bruno Haible  <bruno@clisp.org>
61276
61277         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
61278
61279 2006-06-26  Bruno Haible  <bruno@clisp.org>
61280
61281         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
61282         SGI C compiler in pre-C99 mode.
61283         Suggested by Mark D. Baushke and Larry Jones.
61284
61285 2006-06-26  Bruno Haible  <bruno@clisp.org>
61286
61287         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
61288         WCHAR_MAX.
61289         Reported by Mark D. Baushke and Larry Jones.
61290
61291 2006-06-26  Bruno Haible  <bruno@clisp.org>
61292
61293         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
61294         in pre-C99 mode.
61295         Suggested by Mark D. Baushke and Larry Jones.
61296
61297 2006-06-23  Simon Josefsson  <jas@extundo.com>
61298             Bruno Haible  <bruno@clisp.org>
61299
61300         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
61301         Emit mostlyclean-local rule.
61302         (func_emit_tests_Makefile_am): Likewise.
61303         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
61304
61305 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
61306
61307         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
61308
61309 2006-06-23  Bruno Haible  <bruno@clisp.org>
61310
61311         * tests/test-stdint.c: Update to match ISO C 99 Technical
61312         Corrigendum 1.
61313
61314 2006-06-23  Bruno Haible  <bruno@clisp.org>
61315
61316         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
61317
61318 2006-06-23  Bruno Haible  <bruno@clisp.org>
61319
61320         * lib/stdint_.h: Treat IRIX like OpenBSD.
61321
61322 2006-06-23  Bruno Haible  <bruno@clisp.org>
61323
61324         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
61325         ISO C 99 Technical Corrigendum 1.
61326
61327 2006-06-22  Simon Josefsson  <jas@extundo.com>
61328
61329         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
61330         MinGW.
61331
61332 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61333
61334         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
61335         needed.  Some compiler complained about some of them.  Problem reported
61336         by Larry Jones in
61337         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
61338
61339 2006-06-21  Simon Josefsson  <jas@extundo.com>
61340
61341         * tests/test-getaddrinfo.c: New file.
61342
61343         * modules/getaddrinfo-tests: New file.
61344
61345         * MODULES.html.sh: Add inet_pton.
61346
61347         * modules/inet_pton: New file.
61348
61349 2006-06-21  Simon Josefsson  <jas@extundo.com>
61350
61351         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
61352         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
61353         of using the (limited) gnulib implementation on Windows XP.
61354
61355         * m4/inet_pton.m4: New file.
61356
61357 2006-06-21  Simon Josefsson  <jas@extundo.com>
61358
61359         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
61360         variable.
61361
61362         * lib/socket_.h: Don't define WINVER.
61363
61364         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
61365         slightly modified to work in gnulib.
61366
61367 2006-06-21  Simon Josefsson  <jas@extundo.com>
61368
61369         * doc/gnulib.texi (Windows sockets): Add.
61370
61371 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
61372
61373         * lib/read-file.c (fread_file): Start with buffer allocation of
61374         0 bytes rather than 1 byte; this simplifies the code.
61375         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
61376         code to free buffer and save/restore errno.
61377         (internal_read_file): Remove unused local.
61378
61379 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
61380
61381         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
61382         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
61383         Problem reported by Denis Excoffier in
61384         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
61385
61386 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61387
61388         * modules/sys_socket, modules/socklen: Include sys/types since
61389         FreeBSD 4.x's sys/socket.h needs it.
61390
61391 2006-06-19  Simon Josefsson  <jas@extundo.com>
61392
61393         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
61394
61395 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
61396
61397         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
61398
61399 2006-06-19  Bruno Haible  <bruno@clisp.org>
61400
61401         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
61402         and FULL_PATH_INTTYPES_H in angle brackets.
61403         Reported by Mark D. Baushke <mdb@gnu.org>.
61404
61405 2006-06-17  Eric Blake  <ebb9@byu.net>
61406
61407         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
61408         errno.
61409
61410 2006-06-17  Bruno Haible  <bruno@clisp.org>
61411
61412         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
61413         <sys/inttypes.h>.
61414
61415 2006-06-17  Bruno Haible  <bruno@clisp.org>
61416
61417         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
61418         whether errno is declared. Assume <errno.h> declares errno.
61419
61420 2006-06-17  Bruno Haible  <bruno@clisp.org>
61421
61422         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
61423
61424 2006-06-17  Bruno Haible  <bruno@clisp.org>
61425
61426         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
61427         problem on Solaris 2.5.1.
61428
61429 2006-06-16  Eric Blake  <ebb9@byu.net>
61430
61431         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
61432         * lib/unicodeio.c [!defined errno]: Likewise.
61433         * lib/strtol.c [!defined errno]: Likewise.
61434         * lib/strtod.c [!defined errno]: Likewise.
61435
61436 2006-06-15  Eric Blake  <ebb9@byu.net>
61437
61438         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
61439
61440 2006-06-15  Eric Blake  <ebb9@byu.net>
61441
61442         * config/srclist.txt (ssize_t.m4): Lose sync.
61443
61444 2006-06-15  Bruno Haible  <bruno@clisp.org>
61445
61446         * modules/stdint (Files): Include m4/full-header-path.m4,
61447         m4/size_max.m4, m4/wchar_t.m4.
61448         (Makefile.am): Many more substitutions.
61449         * modules/stdint-tests: New file.
61450         * tests/test-stdint.c: New file.
61451
61452 2006-06-15  Bruno Haible  <bruno@clisp.org>
61453
61454         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
61455         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
61456         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
61457         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
61458         gl_CHECK_TYPE_SAME): New macros.
61459
61460 2006-06-15  Bruno Haible  <bruno@clisp.org>
61461
61462         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
61463
61464 2006-06-15  Bruno Haible  <bruno@clisp.org>
61465
61466         * lib/stdint_.h: Rewritten to be fully auto-configured.
61467         Fixes bug on HP-UX/IA64.
61468
61469 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
61470
61471         * lib/getdate.y (__attribute__): Don't define if already defined.
61472         Problem reported by Larry Jones.
61473         * lib/utimens.c (__attribute__): Likewise.
61474
61475 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
61476
61477         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
61478         reported by Andreas Schwab.
61479
61480 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61481             Bruno Haible  <bruno@clisp.org>
61482
61483         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
61484         check for the declaration of strnlen and a run test that exposes the
61485         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
61486         rpl_strndup.
61487
61488 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61489             Bruno Haible  <bruno@clisp.org>
61490
61491         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
61492
61493 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61494
61495         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
61496         compile test, for Tru64 4.0D.
61497
61498 2006-05-28  Karl Berry  <karl@gnu.org>
61499
61500         * config/srclist.txt (printf-args.c): lose sync.
61501
61502 2006-05-26  Martin Lambers  <marlam@marlam.de>
61503
61504         * lib/getpass.c: Updates the test for the native W32 API, and adds
61505         missing includes, thus fixing compilation warnings.
61506
61507 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
61508
61509         * lib/exclude.c (exclude_fnmatch): New function.
61510         (excluded_file_name): Call exclude_fnmatch.
61511         * lib/exclude.h (excluded_file_name): New prototype
61512
61513 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
61514
61515         * lib/tempname.c (small_open, large_open): New macros.
61516         (__open, __open64) [!_LIBC]: Remove.
61517         (__gen_tempname): Use small_open and large_open instead of __open
61518         and __open64.  This fixes a portability bug on HP-UX 11.11i
61519         reported by Simon Wing-Tang in
61520         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
61521
61522 2006-05-24  Bruno Haible  <bruno@clisp.org>
61523
61524         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
61525         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
61526         Reported by Thorsten Maerz <torte@netztorte.de> via
61527         Aaron Stone <aaron@serendipity.cx>.
61528
61529 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
61530
61531         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
61532         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
61533         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
61534         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
61535         not really conditional on the cache.
61536         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
61537
61538 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
61539
61540         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
61541         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
61542         (my_usleep): Don't mishandle maximum value.
61543
61544 2006-05-19  Jim Meyering  <jim@meyering.net>
61545
61546         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
61547
61548 2006-05-17  Bruno Haible  <bruno@clisp.org>
61549
61550         Cygwin portability.
61551         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
61552
61553 2006-05-17  Bruno Haible  <bruno@clisp.org>
61554
61555         * lib/stdint_.h: Fix recognition of Cygwin.
61556
61557 2006-05-15  Bruno Haible  <bruno@clisp.org>
61558
61559         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
61560         on libtool patch by Ralf Wildenhues.
61561
61562 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
61563
61564         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
61565         test for C99 conformance; (bool) 0.5 is an integer constant
61566         expression, but (bool) -0.5 is not.  Problem reported by Fedor
61567         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
61568
61569 2006-05-11  Simon Josefsson  <jas@extundo.com>
61570
61571         * m4/xvasprintf.m4: Fix obvious typo.
61572
61573 2006-05-11  Jim Meyering  <jim@meyering.net>
61574
61575         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
61576         James Lemley.
61577
61578 2006-05-10  Simon Josefsson  <jas@extundo.com>
61579
61580         * lib/md4.c: Typo fix, update copyright years.
61581         (K1, K2): Don't use L because it turn computations into 64-bit on
61582         64-bit platforms.
61583
61584 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
61585
61586         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
61587         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
61588         unwanted sign propagation, e.g., on hosts with 64-bit int.
61589         There still are some problems with reeelly weird theoretical hosts
61590         (e.g., 33-bit int) but it's not worth worrying about now.
61591         * lib/sha1.c (rol): Likewise.
61592         (K1, K2, K3, K4): Remove unnecessary L suffix.
61593
61594 2006-05-10  Bruno Haible  <bruno@clisp.org>
61595
61596         * lib/des.c: Cast to avoid warnings.
61597
61598 2006-05-09  Bruno Haible  <bruno@clisp.org>
61599
61600         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
61601         (Depends-on): Depend also on xsize, stdarg.
61602         (configure.ac): Add gl_XVASPRINTF.
61603
61604 2006-05-09  Bruno Haible  <bruno@clisp.org>
61605
61606         * m4/xvasprintf.m4: New file.
61607
61608 2006-05-09  Bruno Haible  <bruno@clisp.org>
61609
61610         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
61611         (EOVERFLOW): Define fallback value.
61612         (xstrcat): New function.
61613         (xvasprintf): Recognize the special case of a string concatenation.
61614
61615 2006-05-08  Eric Blake  <ebb9@byu.net>
61616
61617         * gnulib-tool (func_version): Base copyright year on CVS date.
61618         (func_emit_copyright_notice): New function.
61619         (func_emit_lib_Makefile_am): Use it.
61620         (func_emit_tests_Makefile_am): Likewise.
61621         (func_import): Likewise.
61622
61623 2006-05-08  Bruno Haible  <bruno@clisp.org>
61624
61625         * modules/stdarg: New file.
61626         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
61627
61628 2006-05-08  Bruno Haible  <bruno@clisp.org>
61629
61630         * m4/stdarg.m4: New file, from GNU gettext.
61631
61632 2006-05-08  Bruno Haible  <bruno@clisp.org>
61633
61634         * config/srclist.txt (build-aux/config.rpath): different from latest
61635         release.
61636
61637 2006-05-08  Bruno Haible  <bruno@clisp.org>
61638
61639         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
61640
61641 2006-05-05  Jim Meyering  <jim@meyering.net>
61642
61643         * m4/warning.m4: New file, derived from bison's file by the same name.
61644
61645 2006-05-03  Bruno Haible  <bruno@clisp.org>
61646
61647         * lib/stdint_.h: Shorter URL.
61648         * lib/inttypes.h: Likewise.
61649
61650 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61651
61652         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
61653
61654 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61655
61656         * lib/verify.h: Document the internals better.  Most of this change
61657         was written by Bruno Haible.
61658
61659 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61660
61661         * doc/verify.texi: New file, partly based on a proposal by
61662         Bruno Haible.
61663
61664 2006-05-02  Bruno Haible  <bruno@clisp.org>
61665
61666         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
61667         test from here...
61668         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
61669
61670 2006-04-29  Bruno Haible  <bruno@clisp.org>
61671
61672         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
61673         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
61674
61675 2006-04-29  Bruno Haible  <bruno@clisp.org>
61676
61677         * gnulib-tool: Make --update option actually work.
61678
61679 2006-04-29  Bruno Haible  <bruno@clisp.org>
61680
61681         * doc/gcd.texi: New file.
61682         * doc/gnulib.texi: Include it.
61683
61684 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
61685
61686         * lib/getdate.y (get_date): When adding relative date, start with the
61687         initial time, not with the result of the first mktime call.
61688
61689 2006-04-25  Bruno Haible  <bruno@clisp.org>
61690
61691         * gnulib-tool (func_import): Output the include directives in three
61692         blocks, sorted separately.
61693         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61694
61695 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
61696
61697         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
61698         to define main with arguments, for C++.  Reported by Eric Blake.
61699         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
61700         Prefer 'int main ()' to 'int main (void)', for C++.
61701         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
61702         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
61703         for 'main', for C99 and C++.
61704
61705 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
61706
61707         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
61708         Don't assume that exit status -1 is valid.
61709         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61710         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
61711         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
61712         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
61713         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
61714         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
61715         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
61716         functions can be used without declaring them, or that you can
61717         exit with status -1.
61718         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
61719
61720 2006-04-24  Karl Berry  <karl@gnu.org>
61721
61722         * config/srclist.txt (longdouble.m4): sync lost.
61723
61724 2006-04-24  Eric Blake  <ebb9@byu.net>
61725
61726         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
61727
61728 2006-04-24  Bruno Haible  <bruno@clisp.org>
61729
61730         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
61731         poll() implementation in AIX.
61732         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61733
61734 2006-04-24  Bruno Haible  <bruno@clisp.org>
61735
61736         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
61737         assigned exactly once.
61738
61739 2006-04-23  Claudio Fontana  <claudio@gnu.org>
61740             Bruno Haible  <bruno@clisp.org>
61741
61742         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
61743         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
61744         for AM_CPPFLAGS.
61745
61746 2006-04-23  Bruno Haible  <bruno@clisp.org>
61747
61748         * modules/copy-file: Depend on unistd.
61749         * modules/execute: Likewise.
61750         * modules/fatal-signal: Likewise.
61751         * modules/findprog: Likewise.
61752         * modules/mkdtemp : Likewise.
61753         * modules/pipe: Likewise.
61754         * modules/wait-process: Likewise.
61755
61756 2006-04-23  Bruno Haible  <bruno@clisp.org>
61757
61758         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
61759         condition was already detected.
61760         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61761
61762 2006-04-23  Bruno Haible  <bruno@clisp.org>
61763
61764         * lib/copy-file.c: Include <unistd.h> unconditionally.
61765         * lib/execute.c: Likewise.
61766         * lib/fatal-signal.c: Likewise.
61767         * lib/findprog.c: Likewise.
61768         * lib/mkdtemp.c: Likewise.
61769         * lib/pipe.h: Likewise.
61770         * lib/pipe.c: Likewise.
61771         * lib/wait-process.h: Likewise.
61772
61773 2006-04-23  Bruno Haible  <bruno@clisp.org>
61774
61775         * gnulib-tool (func_usage): Fix --import description. Document
61776         --update.
61777         (func_import): Create temporary file in a temporary directory, if
61778         --dry-run is specified. Silence errors from 'grep' when there are no
61779         m4 files in $m4dir.
61780         (func_create_testdir): Silence errors from 'grep' when there are no
61781         m4 files in $m4dir.
61782         Reported by Karl Berry <karl@freefriends.org>.
61783
61784 2006-04-20  Bruno Haible  <bruno@clisp.org>
61785
61786         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
61787         one argument, so that the code will be portable to Autoconf 2.60.
61788         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
61789         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
61790         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
61791
61792 2006-04-19  Derek Price  <derek@ximbiot.com>
61793             Eric Blake  <ebb9@byu.net>
61794
61795         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
61796         rather than "/full/path.h".  Update comment to match.  Shorten &
61797         generalize m4_translit call via AS_TR_CPP.
61798
61799 2006-04-19  Derek Price  <derek@ximbiot.com>
61800             Eric Blake  <ebb9@byu.net>
61801
61802         * lib/inttypes.h: Correct grammar in comment.
61803
61804 2006-04-18  Derek Price  <derek@ximbiot.com>
61805             Paul Eggert  <eggert@cs.ucla.edu>
61806
61807         * modules/inttypes: New file.
61808         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
61809
61810 2006-04-18  Derek Price  <derek@ximbiot.com>
61811             Paul Eggert  <eggert@cs.ucla.edu>
61812
61813         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
61814         New files.
61815
61816 2006-04-18  Derek Price  <derek@ximbiot.com>
61817             Paul Eggert  <eggert@cs.ucla.edu>
61818
61819         * lib/inttypes.h: New file.
61820         * lib/strtoimax.c: Assume <inttypes.h>.
61821
61822 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
61823
61824         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
61825         isn't mounted.  Problem reported by Kir Kolyshkin.
61826
61827 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61828
61829         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
61830         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
61831         Derek R. Price.
61832         * lib/regex.h (RE_DUP_MAX): Update comment to match current
61833         implementation.
61834
61835 2006-04-12  Eric Blake  <ebb9@byu.net>
61836
61837         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
61838         is now done automatically by the corresponding Autoconf macro.
61839
61840 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
61841
61842         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
61843         time_r.h.
61844
61845 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61846
61847         Merge regex changes from libc, removing some of our
61848         POSIX-conformance changes that were rejected and redoing them in a
61849         less-intrusive way.
61850
61851         * lib/regcomp.c (re_compile_internal, init_dfa):
61852         Length arg is now size_t, not Idx.  All uses changed.
61853         (peek_token): Forward decl now says internal_function.
61854         (__re_error_msgid, __re_error_msgid_idx):
61855         Now static rather than extern with attribute_hidden.
61856         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
61857         For some reason libc prefers K&R style defns for external functions.
61858         (regerror) [!defined _LIBC]: Likewise.
61859         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
61860         (seek_collating_symbol_entry, lookup_collation_sequence_value):
61861         (build_range_exp, build_collating_symbol):
61862         Use K&R-style defn.
61863         (re_compile_fastmap): Use '\0' to memset, not 0.
61864         (utf8_sb_map): Make the calculations more obvious.
61865         (init_dfa, parse_bracket_exp, build_charclass_op):
61866         Call calloc and cast result, as glibc does.
61867         (init_word_char, fetch_token, peek_token, peek_token_bracket):
61868         (build_range_exp, build_collating_symbol):
61869         Now internal functions.
61870
61871         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
61872
61873         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
61874         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
61875         Don't depend on VMS; depend on __VMS instead, for POSIX
61876         namespace cleanness.
61877         (regoff_t): Define to ssize_t, not long int.
61878
61879         Remove the REG_ macros named below.  Instead, make the old names
61880         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
61881         __USE_GNU_REGEX.
61882         (REG_BACKSLASH_ESCAPE_IN_LISTS):
61883         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
61884         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
61885         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
61886         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
61887         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
61888         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
61889         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
61890         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
61891         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
61892         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
61893         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
61894         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
61895         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
61896         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
61897         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
61898         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
61899         (REG_NREGS):
61900         Remove.  All uses replaced by the old RE_* names.
61901         (RE_BACKSLASH_ESCAPE_IN_LISTS):
61902         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
61903         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
61904         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
61905         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
61906         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
61907         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
61908         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
61909         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
61910         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
61911         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
61912         Don't bother having these macros be independent of each others'
61913         values, since they no longer exist in the POSIX name space.
61914
61915         Rename the following member names back to their old names,
61916         unless !__USE_GNU_REGEX.  All uses changed back.
61917         (buffer): Renamed from re_buffer.
61918         (allocated): Renamed from re_allocated.
61919         (used): Renamed from re_used.
61920         (syntax): Renamed from re_syntax.
61921         (fastmap): Renamed from re_fastmap.
61922         (translate): Renamed from re_translate.
61923         (can_be_null): Renamed from re_can_be_null.
61924         (regs_allocated): Renamed from re_regs_allocated.
61925         (fastmap_accurate): Renamed from re_fastmap_accurate.
61926         (no_sub): Renamed from re_no_sub.
61927         (not_bol): Renamed from re_not_bol.
61928         (not_eol): Renamed from re_not_eol.
61929         (newline_anchor): Renamed from re_newline_anchor.
61930         (num_regs): Renamed from rm_num_regs.
61931         (start): Renamed from rm_start.
61932         (end): Renamed from rm_end.
61933
61934         (free_state): Move up a bit.
61935
61936         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
61937         #define to be empty.
61938         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
61939         when that is what is intended.
61940         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
61941         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
61942         (MAX): New macro.
61943         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
61944         All uses changed back to re_malloc, etc.  It's now the caller's
61945         responsibility to check for overflow; all callers changed.
61946         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
61947         (re_x2nrealloc): Remove.
61948         (free_state): Remove decl.
61949
61950         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
61951         (re_set_registers, re_exec):
61952         Use K&R-style defn.
61953
61954         2006-01-31  Roland McGrath  <roland@redhat.com>
61955
61956         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
61957         Reported by Mike Frysinger <vapier@gentoo.org>.
61958
61959         2006-01-15  Andreas Jaeger  <aj@suse.de>
61960
61961         [BZ #1950]
61962         * lib/regex_internal.c (re_string_reconstruct): Adjust for
61963         build_wcs_upper_buffer change.
61964         (build_wcs_upper_buffer): Change return type.
61965
61966         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
61967
61968         * lib/regex_internal.h: Include <stdint.h> if available.
61969
61970         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
61971
61972         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
61973
61974         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
61975
61976         * lib/regcomp.c: Adjust for changed secondary hash function.
61977
61978         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
61979
61980         * lib/regex.h: Pretty printing.
61981         Clean up namespace a bit.
61982
61983         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
61984
61985         * lib/regexec.c (update_cur_sifted_state, check_arrival,
61986         check_arrival_add_next_nodes): Avoid using uninitialized variable.
61987
61988         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
61989                     Ulrich Drepper  <drepper@redhat.com>
61990
61991         [BZ #1302]
61992         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
61993         changed.
61994         (bitset_word_t): Renamed from bitset_word.  All uses changed.
61995
61996         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
61997
61998         [BZ #281]
61999         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
62000         * lib/regcomp.c: Remove unnecessary uses of
62001         unsigned RE_TRANSLATE_TYPE.
62002         * lib/regex_internal.h: Likewise.
62003         * lib/regex_internal.c: Likewise.
62004         * lib/regexec.c: Likewise.
62005         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
62006
62007         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
62008
62009         * lib/regexec.c (find_recover_state): Remove unnecessary
62010         initialization.
62011         (transit_state_bkref): Make DFA a const pointer.
62012         (get_subexp): Likewise.
62013         (check_arrival): Likewise.
62014         (update_cur_sifted_state): Likewise.
62015         (re_search_internal): Likewise.
62016         (prune_impossible_nodes): Likewise.
62017         (acquire_init_state_context): Likewise.
62018         (proceed_next_node): Likewise.
62019         (set_regs): Likewise.
62020         (free_fail_stack_return): Likewise.
62021         (check_arrival_expand_ecl): Mark DFA parameter as const.
62022         (check_arrival_expand_ecl_sub): Likewise.
62023         (check_subexp_limits): Likewise.
62024         (sub_epsilon_src_nodes):  Likewise.
62025         (add_epsilon_src_nodes):  Likewise.
62026         (merge_state_array): Likewise.
62027         (update_regs): Likewise.
62028         (build_trtable): Likewise.
62029         (sift_states_backward): Mark MCTX parameter as const.
62030         (build_sifted_states): Likewise.
62031         (update_cur_sifted_state): Likewise.
62032         (sift_states_mkref): Likewise.
62033         (check_arrival_expand_ecl): Mark eclosure as const.
62034         (check_dst_limits_calc_pos_1): Likewise.
62035         * lib/regex_internal.h (re_match_context_t): Make dfa a const
62036         pointer.
62037
62038         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
62039
62040         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
62041         (transit_state_sb): Likewise.
62042         (transit_state_mb): Likewise.
62043         (sift_states_iter_mb): Likewise.
62044         (check_arrival_add_next_nodes): Likewise.
62045         (check_node_accept_bytes): Change first parameter to pointer-to-const.
62046         [_LIBC] (re_search_2_stub): Use mempcpy.
62047
62048         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
62049         mbrtowc for very simple UTF-8 case.
62050
62051         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
62052         a pointer-to-const.
62053         (re_acquire_state_context): Likewise.
62054         * lib/regex_internal.h: Adjust prototypes.
62055
62056         * lib/regex.c: Prevent using C++ compilers.
62057
62058         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
62059         (re_acquire_state_context): Likewise.
62060
62061 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62062
62063         * modules/regex (Depends-on): Add ssize_t.
62064
62065 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62066
62067         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
62068         translation table.
62069
62070 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62071
62072         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
62073
62074 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
62075             Bruno Haible  <bruno@clisp.org>
62076
62077         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
62078         <sys/types.h> and <inttypes.h>.
62079
62080 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62081
62082         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
62083         `__error_t_defined', so argp.h will not typedef the former.
62084
62085 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
62086
62087         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
62088         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
62089         glibc names.  Even if glibc is changed to conform to POSIX, the
62090         traditional names will be available anyway, since regex depends on
62091         the extensions module.  Also, fix a longstanding typo in the
62092         implementation of Spencer ERE test #75 from grep 2.3.  Problems
62093         reported by Emanuele Giaquinta.  Also, change sense of cached
62094         variable, so that the message makes sense.
62095
62096 2006-03-24  Simon Josefsson  <jas@extundo.com>
62097
62098         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
62099         including some doc fixes.
62100         (base64_encode_alloc): Fix +1 bug on allocation failures.
62101
62102 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62103
62104         * lib/base64.c (base64_encode): Do not read past end of array with
62105         unsanitized input on systems with CHAR_BIT > 8.
62106
62107 2006-03-24  Eric Blake  <ebb9@byu.net>
62108
62109         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
62110
62111 2006-03-22  Karl Berry  <karl@gnu.org>
62112
62113         * config/srclist.txt (*setenv.[ch]): get from coreutils.
62114         * config/srclistvars.sh (COREUTILS): new var.
62115
62116 2006-03-17  Jim Meyering  <jim@meyering.net>
62117
62118         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
62119         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
62120
62121 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
62122
62123         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
62124         no longer needs it.  Instead, check that regoff_t is as least
62125         as wide as ptrdiff_t.
62126
62127         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
62128         so that our regex.h stays compatible with the installed regex.
62129         This is helpful for installers who configure --without-included-regex.
62130         Problem reported by Emanuele Giaquinta.
62131
62132 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
62133
62134         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
62135         Typedef to long int, not to off_, as POSIX will likely change
62136         in that direction.
62137
62138 2006-03-15  Eric Blake  <ebb9@byu.net>
62139
62140         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
62141
62142 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
62143
62144         * lib/argp-help.c (validate_uparams): Fix typo
62145         * lib/argp-parse.c (argp_default_options): Consistently begin help
62146         messages with a lowercase letter.
62147
62148 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
62149
62150         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
62151         overrun buffers and shouldn't be used (much as gets shouldn't be
62152         used).
62153         * lib/time_r.c (asctime_r, ctime_r): Likewise.
62154
62155 2006-03-08  Simon Josefsson  <jas@extundo.com>
62156
62157         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
62158         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62159
62160 2006-03-08  Simon Josefsson  <jas@extundo.com>
62161
62162         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
62163         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62164
62165 2006-03-08  Simon Josefsson  <jas@extundo.com>
62166
62167         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
62168         signal that configure disabled the device.
62169
62170 2006-03-08  Simon Josefsson  <jas@extundo.com>
62171
62172         * build-aux/maint.mk: Fix refresh-po, to handle no translated
62173         languages.
62174
62175 2006-03-07  Simon Josefsson  <jas@extundo.com>
62176
62177         * modules/getopt (Depends-on): Add unistd.
62178
62179         * modules/unistd: New file.
62180
62181 2006-03-07  Simon Josefsson  <jas@extundo.com>
62182
62183         * modules/gc-random: New file.
62184
62185 2006-03-07  Simon Josefsson  <jas@extundo.com>
62186
62187         * m4/unistd_h.m4: New file.
62188
62189 2006-03-07  Simon Josefsson  <jas@extundo.com>
62190
62191         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
62192         test to be side-effect free by storing the result in the cache
62193         variable gl_cv_lib_readline, and moving the assignment of
62194         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
62195         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62196
62197 2006-03-07  Simon Josefsson  <jas@extundo.com>
62198
62199         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
62200         error on missing devices (the functions will return an error).
62201
62202         * m4/gc.m4: Move random stuff to gc-random.m4
62203
62204 2006-03-07  Simon Josefsson  <jas@extundo.com>
62205
62206         * lib/unistd_.h: New file.
62207
62208 2006-03-07  Simon Josefsson  <jas@extundo.com>
62209
62210         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
62211
62212 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62213
62214         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
62215         Problem reported by Juan Manuel Guerrero.
62216
62217 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62218
62219         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
62220         the unistd module.
62221         * lib/getlogin_r.c: Likewise.
62222         * lib/getlogin_r.h: Likewise.
62223         * lib/glob.c: Likewise.
62224         * lib/pagealign_alloc.c: Likewise.
62225         * lib/unistd_.h: Remove; no longer needed.
62226
62227 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62228
62229         * MODULES.html.sh (Support for systems lacking POSIX:2001):
62230         Add unistd.
62231         * modules/c-stack (Depends-on): Add unistd.
62232         * modules/getlogin_r: Likewise.
62233         * modules/glob: Likewise.
62234         * modules/pagealign_alloc: Likewise.
62235         * modules/unistd (Files): Remove lib/unistd_.h.
62236         (EXTRA_DIST): Remove.
62237         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
62238         need unistd_.h.
62239         (MOSTLYCLEANFILES): Remove unistd.h-t.
62240
62241 2006-03-03  Simon Josefsson  <jas@extundo.com>
62242
62243         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
62244
62245 2006-03-03  Simon Josefsson  <jas@extundo.com>
62246
62247         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
62248         libidn and bison.
62249
62250 2006-03-03  Simon Josefsson  <jas@extundo.com>
62251
62252         * build-aux/maint.mk: Add indent target.
62253
62254 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
62255
62256         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
62257         our replacement poll.h in any case, to avoid a differing
62258         declaration from a system header.  Seen on AIX.
62259
62260 2006-03-01  Simon Josefsson  <jas@extundo.com>
62261
62262         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
62263         <kasal@ucw.cz>.
62264
62265 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62266
62267         * modules/gettime (Depends-on): Add extensions module.
62268         * modules/nanosleep (Depends-on): Likewise.
62269         * modules/settime (Depends-on): Likewise.
62270
62271 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62272
62273         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
62274         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
62275         pedantically.
62276         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62277         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
62278
62279         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
62280         not "==".  Reported by Ralf Wildenhues.
62281
62282 2006-03-01  Karl Berry  <karl@gnu.org>
62283
62284         * doc/Copyright/request-*: new files, synced from gnuorg.
62285
62286 2006-03-01  Karl Berry  <karl@gnu.org>
62287
62288         * config/srclist.txt (Copyright/*): new entries.
62289
62290 2006-02-28  Simon Josefsson  <jas@extundo.com>
62291
62292         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
62293
62294 2006-02-27  Simon Josefsson  <jas@extundo.com>
62295
62296         * lib/base64.h: Indent #define's.  From Jim Meyering
62297         <jim@meyering.net>.
62298
62299 2006-02-27  Jim Meyering  <jim@meyering.net>
62300
62301         Revert the change of 2006-02-24, so these files can continue
62302         to be sync'd from gettext.
62303         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
62304         of `config.h'.
62305
62306 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
62307
62308         * modules/intprops: New file.
62309         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
62310         Add intprops.
62311         * modules/getloadavg (Files): Remove lib/intprops.h.
62312         (Depends-on): Add intprops.
62313         * modules/human: Likewise.
62314         * modules/inttostr: Likewise.
62315         * modules/openat: Likewise.
62316         * modules/sig2str: Likewise.
62317         * modules/userspec: Likewise.
62318         * modules/utimecmp: Likewise.
62319         * modules/xnanosleep: Likewise.
62320         * modules/xstrtol: Likewise.
62321
62322 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
62323
62324         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
62325         * modules/lock-tests (TESTS): Use $(EXEEXT).
62326         * modules/tls-tests: Likewise.
62327         * modules/argp-tests: Likewise.
62328         (check_PROGRAMS): New var, replacing...
62329         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
62330
62331 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62332
62333         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
62334         `config.h'.
62335
62336 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62337
62338         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
62339
62340 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62341
62342         Sync from coreutils.
62343         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
62344         gl_CHDIR_SAFER.
62345
62346 2006-02-22  Jim Meyering  <jim@meyering.net>
62347
62348         Sync from coreutils.
62349         * m4/chdir-safer.m4: New file.
62350
62351 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
62352
62353         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
62354         AT_FDCWD exceeds INT_MAX.
62355         * lib/openat.h (AT_FDCWD): Likewise.
62356
62357 2006-02-17  Eric Blake  <address@hidden>
62358
62359         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
62360
62361 2006-02-16  Simon Josefsson  <jas@extundo.com>
62362
62363         * modules/getaddrinfo (Depends-on): Add sys_socket.
62364
62365 2006-02-15  Simon Josefsson  <jas@extundo.com>
62366
62367         * build-aux/maint.mk: Add dsyntax-check rule.
62368
62369 2006-02-15  Eric Blake  <ebb9@byu.net>
62370
62371         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
62372         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
62373         'present but cannot compile' warnings on cygwin.
62374         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
62375         use ws2tcpip.h if sys/socket.h works.
62376         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
62377         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
62378
62379 2006-02-14  Simon Josefsson  <jas@extundo.com>
62380
62381         * modules/maintainer-makefile (Files): Rename.
62382
62383         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
62384         and (the local) Makefile.cfg to maint-cfg.mk.
62385
62386         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
62387         to the latter.
62388
62389         * modules/maintainer-makefile: New module.
62390
62391         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
62392         severaly stripped to make it possible to build it up from scratch
62393         with reliable tests.
62394
62395         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
62396         fixes to permit overriding the default actions when configure and
62397         makefile are not available.
62398
62399 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
62400
62401         Sync from coreutils.
62402         * modules/lstat (Depends-on): Don't depend on xalloc.
62403         (License): Change from GPL to LGPL, since this is now simply a
62404         replacement for a libc function.
62405
62406 2006-02-14  Jim Meyering  <jim@meyering.net>
62407
62408         Sync from coreutils.
62409
62410         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
62411         failure on deficient systems, and simplify gnulib lgpl dependencies.
62412         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
62413         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
62414
62415         * lib/xalloc-die.c: Remove unused definition of N_.
62416
62417 2006-02-14  Jim Meyering  <jim@meyering.net>
62418
62419         Sync from coreutils.
62420         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
62421         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
62422         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
62423         double-quote uses of that variable, to accommodate the rare case in
62424         which getmntent is available in none of the libraries checked.  This
62425         happens at least on FreeBSD 5.0.
62426
62427 2006-02-13  Simon Josefsson  <jas@extundo.com>
62428
62429         * gnulib-tool (Usage): Fix --import, from
62430         karl@freefriends.org (Karl Berry).
62431
62432 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
62433
62434         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
62435
62436 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
62437
62438         * lib/argp-namefrob.h: Restore changes accidentally lost during the
62439         "autoupdate" on 2005-12-12.
62440
62441 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
62442
62443         * modules/closeout (Depends-on): Remove atexit.
62444
62445 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
62446
62447         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
62448         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
62449
62450 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
62451
62452         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
62453         __EXTENSIONS__ if this causes compilation to fail.  Problem
62454         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
62455         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
62456
62457 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
62458
62459         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
62460         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
62461         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
62462         All uses changed.
62463
62464 2006-01-26  Simon Josefsson  <jas@extundo.com>
62465
62466         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
62467         prototype is visible on mingw32.
62468
62469         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
62470         for mingw32.
62471
62472         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
62473         mingw32).
62474
62475 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
62476
62477         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
62478         attempt to open for write; this always fails, at least on POSIX
62479         hosts.  This reinstates the 2006-01-09 change, which was
62480         inadvertently removed.
62481
62482 2006-01-26  Bruno Haible  <bruno@clisp.org>
62483
62484         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
62485         Reported by Paul Eggert.
62486
62487 2006-01-26  Bruno Haible  <bruno@clisp.org>
62488             Paul Eggert  <eggert@cs.ucla.edu>
62489
62490         * lib/stdbool_.h (_Bool)
62491         [(! (defined __cplusplus || defined __BEOS__)
62492           && !defined __GNUC__
62493           && !(defined __HP_cc || defined __xlc__
62494                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
62495                || defined __sgi))]:
62496         #define to signed char in these cases too; this simplifies
62497         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
62498         etc., separately) and makes it more conservative.
62499
62500 2006-01-25  Simon Josefsson  <jas@extundo.com>
62501
62502         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
62503         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
62504         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
62505
62506 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
62507
62508         * lib/argp-namefrob.h: Bugfix. Remove stray #
62509
62510 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
62511
62512         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
62513         so that we test the test.
62514         Check for yet another HP-UX cc bug involving *bool |= bool.
62515
62516 2006-01-25  Karl Berry  <karl@gnu.org>
62517
62518         * config/srclist.txt (vasnprintf.c): sync lost.
62519
62520 2006-01-25  Jim Meyering  <jim@meyering.net>
62521
62522         Sync from the stable (b5) branch of coreutils:
62523
62524         * lib/fts.c (fts_children): Don't let close() clobber errno from
62525         failed fchdir().
62526
62527         * lib/fts.c (fts_stat): When following a symlink-to-directory,
62528         don't necessarily interpret stat-fails+lstat-succeeds as indicating
62529         a dangling symlink.  That can also happen at least for ELOOP.
62530         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
62531         FYI, this bug predates the inclusion of fts.c in coreutils.
62532
62533         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
62534         in their own block, so pre-c99 compilers don't object.
62535
62536         Avoid the double-free (first in fts_read, second in fts_close) that
62537         would occur when an `active' directory is made inaccessible (e.g.,
62538         via chmod a-x) during a traversal.
62539         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
62540         before returning.  Reproduce this failure by
62541         mkdir -p a/b; cd a; chmod a-x . b
62542         Reported by Stavros Passas.
62543
62544 2006-01-25  Jim Meyering  <jim@meyering.net>
62545
62546         * lib/fileblocks.c: Remove more useless parentheses.
62547         * lib/readutmp.h: Likewise.
62548
62549 2006-01-25  Bruno Haible  <bruno@clisp.org>
62550
62551         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
62552         warnings.
62553         Reported by Paul Eggert.
62554
62555 2006-01-25  Bruno Haible  <bruno@clisp.org>
62556
62557         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
62558         rid of a trap command. For Solaris sh.
62559         Reported by Mark D. Baushke <mdb@gnu.org>.
62560
62561 2006-01-24  Simon Josefsson  <jas@extundo.com>
62562
62563         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
62564         Bruno.
62565
62566 2006-01-24  Karl Berry  <karl@gnu.org>
62567
62568         * config/srclist.txt (argp-namefrob.h): sync lost.
62569
62570 2006-01-24  Jim Meyering  <jim@meyering.net>
62571
62572         * modules/openat (Files): Add lib/intprops.h.
62573         From Mark D. Baushke.
62574
62575 2006-01-24  Jim Meyering  <jim@meyering.net>
62576
62577         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
62578         Reported by Mark D. Baushke.
62579
62580 2006-01-24  Jim Meyering  <jim@meyering.net>
62581
62582         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
62583
62584 2006-01-24  Bruno Haible  <bruno@clisp.org>
62585
62586         * modules/strnlen (Maintainer): Change from glibc to all.
62587
62588 2006-01-24  Bruno Haible  <bruno@clisp.org>
62589
62590         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
62591         Patch by Paul Eggert.
62592
62593 2006-01-24  Bruno Haible  <bruno@clisp.org>
62594
62595         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
62596         already has it.
62597         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
62598         2005-11-26.
62599
62600         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
62601         'signed char' to avoid problems with the built-in _Bool type.
62602         Reported by Paul Eggert on 2005-11-26.
62603
62604 2006-01-24  Bruno Haible  <bruno@clisp.org>
62605
62606         * gnulib-tool (func_import): Avoid constructing complicated sed
62607         expressions inside backquote.
62608         Report and solution by Mark D. Baushke <mdb@gnu.org>.
62609
62610 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
62611
62612         These changes imported from libc.
62613         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
62614         test and two separate function calls.
62615         * lib/strndup.c (__strndup): Add libc_hidden_def.
62616
62617 2006-01-23  Simon Josefsson  <jas@extundo.com>
62618
62619         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
62620         Remove the test_*_SOURCES variable: automake infers it by default.
62621         * modules/tls-tests: Likewise.
62622
62623 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62624
62625         Work around porting bugs reported by Dieter in
62626         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
62627         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
62628         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
62629         Include "getopt.h" first, to check interface.
62630         (getenv): Declare only if defined HAVE_DECL_GETENV &&
62631         !HAVE_DECL_GETENV.
62632         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
62633         (__strndup): Revert to K&R-style function dfns, the glibc style.
62634         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
62635         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
62636         Include strnlen.h first, to get prototype properly.
62637         (strnlen): Renamed from __strnlen.
62638         Remove weak alias.
62639
62640 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62641
62642         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
62643
62644 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62645
62646         * config/srclist.txt: Adjust to reflect glibc reorganization.
62647         This affects only comments.
62648
62649 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
62650
62651          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
62652          Reported by Bruce Korb <bkorb@gnu.org>.
62653
62654 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
62655
62656         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
62657         to pacify gcc -Wswitch-default.
62658
62659 2006-01-22  Bruno Haible  <bruno@clisp.org>
62660
62661         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
62662         temporary buffer for sprintf, take into account the precision also
62663         for 'd', 'i', 'u', 'o', 'x', 'X'.
62664
62665 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
62666
62667         * modules/argp-tests: New module
62668         * tests/test-argp.c: New file
62669         * tests/test-argp-2.sh: New file
62670
62671 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
62672
62673         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
62674         (__argp_base_name): Removed
62675         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
62676         typo.
62677         (__argp_base_name): Provide macro definition or extern declaration
62678         depending on the configuration
62679
62680 2006-01-20  Simon Josefsson  <jas@extundo.com>
62681
62682         * modules/inet_ntop (Depends-on): Depend on sys_socket.
62683
62684 2006-01-20  Simon Josefsson  <jas@extundo.com>
62685
62686         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
62687
62688 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
62689
62690         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
62691         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
62692         Suggested by Bruno Haible.
62693
62694 2006-01-20  Karl Berry  <karl@gnu.org>
62695
62696         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
62697         until changes propagate, I guess.
62698
62699 2006-01-19  Simon Josefsson  <jas@extundo.com>
62700
62701         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
62702
62703 2006-01-19  Simon Josefsson  <jas@extundo.com>
62704
62705         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
62706
62707 2006-01-19  Simon Josefsson  <jas@extundo.com>
62708
62709         * gnulib-tool: Set check_PROGRAMS.
62710
62711         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
62712         modules/des-tests, modules/gc-arcfour-tests,
62713         modules/gc-arctwo-tests, modules/gc-des-tests,
62714         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
62715         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
62716         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
62717         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
62718         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
62719         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
62720         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
62721         test_*_SOURCES.
62722
62723 2006-01-18  Simon Josefsson  <jas@extundo.com>
62724
62725         * modules/socklen (Depends-on): Depend on sys_socket.
62726
62727 2006-01-18  Simon Josefsson  <jas@extundo.com>
62728
62729         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
62730         modules/des-tests, modules/gc-arcfour-tests,
62731         modules/gc-arctwo-tests, modules/gc-des-tests,
62732         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
62733         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
62734         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
62735         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
62736         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
62737         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
62738         $(EXEEXT) to automake TESTS variable, for mingw32.
62739
62740 2006-01-17  Simon Josefsson  <jas@extundo.com>
62741
62742         * modules/socklen (Include): Need sys/socket.h.
62743
62744 2006-01-17  Bruno Haible  <bruno@clisp.org>
62745
62746         * modules/ssize_t (Include): Add <sys/types.h>.
62747
62748 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
62749
62750         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
62751         it's not portable and it doesn't work with cross-compiles.
62752         Problem reported by Bruno Haible.  Fix missing-$ typo in
62753         'test "gl_cv_ignore_unused_libraries" ...' that prevented
62754         -zignore from being used with Sun's C compiler.
62755
62756 2006-01-12  Simon Josefsson  <jas@extundo.com>
62757
62758         * lib/base64.c: Fix warning, reported by Bruno Haible
62759         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
62760
62761 2006-01-12  Bruno Haible  <bruno@clisp.org>
62762
62763         * modules/ldd: New file.
62764         * build-aux/ldd.sh.in: New file.
62765         * MODULES.html.sh (Support for building libraries and executables): Add
62766         ldd.
62767
62768 2006-01-12  Bruno Haible  <bruno@clisp.org>
62769
62770         * m4/ldd.m4: New file.
62771
62772 2006-01-12  Bruno Haible  <bruno@clisp.org>
62773
62774         * gnulib-tool (func_import, func_create_testdir): Don't go into an
62775         endless loop while replacing $auxdir with build-aux.
62776
62777 2006-01-11  Simon Josefsson  <jas@extundo.com>
62778
62779         * lib/stdint_.h (SIZE_MAX): Add missing (.
62780
62781 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
62782
62783         Sync from coreutils.
62784         * lib/md5.c: Fix commentary typos.
62785         (alignof, UNALIGNED_P): No need for a GCC-specific version.
62786         * lib/md5.h (__attribute__): Remove; unused.
62787         * lib/sha1.c: Fix commentary to match md5 better.
62788         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
62789         so that we don't need to worry about alignment.  All uses changed.
62790         This merges the 2005-10-28 md5 change into sha1.
62791
62792 2006-01-11  Jim Meyering  <jim@meyering.net>
62793
62794         Sync from coreutils.
62795         * lib/md5.c (OP): Fix spacing.
62796
62797 2006-01-11  Bruno Haible  <bruno@clisp.org>
62798
62799         Ensure automatic ordering between gl_LOCK and gl_ARGP.
62800         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
62801         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
62802
62803 2006-01-11  Bruno Haible  <bruno@clisp.org>
62804
62805         Ensure automatic ordering between gl_LOCK and gl_ARGP.
62806         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
62807         the "early" section as well.
62808
62809 2006-01-11  Bruno Haible  <bruno@clisp.org>
62810
62811         Avoid "ar: no archive members specified" error on MacOS X.
62812         * gnulib-tool (func_modules_add_dummy): New function.
62813         (func_import, func_create_testdir): Invoke it.
62814
62815 2006-01-11  Bruno Haible  <bruno@clisp.org>
62816
62817         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
62818         with $auxdir in AC_CONFIG_FILES statements.
62819
62820 2006-01-11  Bruno Haible  <bruno@clisp.org>
62821
62822         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62823         Initialize also noinst_HEADERS to empty.
62824
62825 2006-01-11  Bruno Haible  <bruno@clisp.org>
62826
62827         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
62828         variables.
62829         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
62830         autoreconf.
62831
62832 2006-01-11  Bruno Haible  <bruno@clisp.org>
62833
62834         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
62835         overridable by the user.
62836         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62837
62838 2006-01-10  Simon Josefsson  <jas@extundo.com>
62839
62840         * modules/sys_socket: New file.
62841
62842 2006-01-10  Simon Josefsson  <jas@extundo.com>
62843
62844         * m4/sys_socket_h.m4: New file.
62845
62846 2006-01-10  Simon Josefsson  <jas@extundo.com>
62847
62848         * lib/socket_.h: New file.
62849
62850 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62851
62852         * modules/readutmp (Maintainer): Add myself.
62853
62854 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62855
62856         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
62857         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
62858         People who are still concerned with buggy memcmp implementations
62859         can invoke gl_FUNC_MEMCMP themselves.
62860
62861 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62862
62863         * lib/regex_internal.h (BITSET_WORD_BITS):
62864         Work around a bug in 64-bit PGC (before version 6.1-2), where the
62865         preprocessor mishandles large unsigned values as if they were signed.
62866         Problem reported by Claudio Fontana in
62867         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
62868
62869 2006-01-10  Jim Meyering  <jim@meyering.net>
62870
62871         Avoid the double-free (first in fts_read, second in fts_close) that
62872         would occur when an `active' directory is made inaccessible (e.g.,
62873         via chmod a-x) during a traversal.
62874         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
62875         before returning.  Reproduce this failure by
62876         mkdir -p a/b; cd a; chmod a-x . b
62877         Reported by Stavros Passas.
62878
62879         Sync from coreutils.
62880         * lib/sha1.c: Tweak grammar in a comment.
62881
62882 2006-01-10  Jim Meyering  <jim@meyering.net>
62883
62884         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
62885         Patch by Joerg Sonnenberger.
62886
62887 2006-01-10  Bruno Haible  <bruno@clisp.org>
62888
62889         * modules/readutmp: Depend on module free.
62890         * modules/strtok_r: Depend on module restrict.
62891
62892 2006-01-10  Bruno Haible  <bruno@clisp.org>
62893
62894         * modules/gettext (configure.ac): Add an invocation of
62895         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
62896
62897 2006-01-10  Bruno Haible  <bruno@clisp.org>
62898
62899         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
62900         Reported by Werner Lemberg <wl@gnu.org>.
62901
62902 2006-01-10  Bruno Haible  <bruno@clisp.org>
62903
62904         * lib/localcharset.c: Update from GNU gettext.
62905
62906 2006-01-10  Bruno Haible  <bruno@clisp.org>
62907
62908         * lib/argp.h (__const): Remove macro. Use const instead.
62909         * lib/argp-fmtstream.h (__const): Likewise.
62910         * lib/glob_.h (__const): Remove macro.
62911         * lib/glob-libc.h: Use const instead of __const.
62912
62913 2006-01-10  Bruno Haible  <bruno@clisp.org>
62914
62915         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
62916         variable.
62917         Needed to avoid an automake error regarding the 'gettext' module.
62918
62919 2006-01-09  Simon Josefsson  <jas@extundo.com>
62920
62921         * modules/inet_ntop (Depends-on): Add restrict.
62922
62923 2006-01-09  Simon Josefsson  <jas@extundo.com>
62924
62925         * modules/gc-rijndael-tests (License): Put under LGPL.
62926
62927         * modules/gc-des-tests (License): Likewise.
62928
62929         * modules/gc-arcfour-tests (License): Likewise.
62930
62931         * modules/gc-arctwo-tests (License): Likewise.
62932
62933         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
62934
62935         * modules/gc-hmac-sha1-tests (Files): Likewise.
62936
62937         * modules/gc-hmac-md5-tests (License): Likewise.
62938
62939         * modules/gc-sha1-tests (License): Likewise.
62940
62941         * modules/gc-md5-tests (License): Likewise.
62942
62943         * modules/gc-md4-tests (License): Likewise.
62944
62945         * modules/gc-md2-tests (License): Likewise.
62946
62947         * modules/gc-tests (License): Likewise.
62948
62949         * modules/des-tests (License): Likewise.
62950
62951         * modules/md4-tests (License): Likewise.
62952
62953         * modules/md2-tests (License): Likewise.
62954
62955 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62956
62957         Sync from coreutils:
62958
62959         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
62960         * modules/lib-ignore: New file.
62961         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
62962         chdir-safer.m4, lchmod.m4.
62963         * modules/openat: Add mkdirat.c, openat-priv.h.
62964
62965 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62966
62967         Sync from coreutils.
62968         * m4/lib-ignore.m4: New file.
62969         * m4/lchmod.m4: New file.
62970
62971 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62972
62973         Sync from coreutils.
62974         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
62975         for write access: POSIX says that must fail.
62976         * lib/fts.c (diropen): Likewise.
62977         * lib/save-cwd.c (save_cwd): Likewise.
62978         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
62979         well, for minor improvements on hosts that lack O_DIRECTORY.
62980         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
62981         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
62982         Fall back on chown if open failed with EACCES.
62983
62984         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
62985         Report an error at compile-time if only a 1-second nominal clock
62986         resolution is found.
62987
62988         * lib/lchmod.h: New file.
62989         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
62990         (make_dir_parents): Use lchown rather than chown, and
62991         lchmod rather than chmod.
62992
62993         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
62994         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
62995         "proc" reported by n0dalus.
62996
62997         * lib/mountlist.c: Include <limits.h>.
62998         (dev_from_mount_options)
62999         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
63000         New function.  It no longer assumes "dev=" has the System V meaning
63001         on Linux (since it doesn't).  It also parses "dev=" more carefully.
63002         (read_file_system_list)
63003         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
63004         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
63005         dev= in that case.
63006
63007         * lib/posixtm.h (PDS_PRE_2000): New macro.
63008         * lib/posixtm.c (year): Arg is now syntax_bits rather than
63009         allow_century.  All usages changed.  Reject dates outside the range
63010         1969-1999 if PDS_PRE_2000 is used.
63011
63012 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63013
63014         Sync from coreutils.
63015         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
63016         (Time of day items): Mention the possibility of leap seconds.
63017         Problem reported by Dr. David Alan Gilbert.
63018
63019 2006-01-09  Jim Meyering  <jim@meyering.net>
63020
63021         Sync from coreutils.
63022
63023         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
63024
63025         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
63026
63027         * lib/modechange.c (mode_compile): Reject an invalid mode string
63028         that starts with an octal digit.  From Andreas Gruenbacher.
63029
63030         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
63031         and dup to open_safer and dup_safer, respectively.
63032         (openat_permissive): Fix typo in comment.
63033
63034         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
63035         "gettext.h"; either no longer needed or are guaranteed by openat.h.
63036         (_): Remove; no longer needed.
63037         (openat): Renamed from rpl_openat; no need for rpl_openat
63038         since openat.h renames openat for us.
63039         Replace most of the body with a call to openat_permissive,
63040         to avoid duplicate code.
63041         Port to (probably hypothetical) environments were mode_t is
63042         wider than int.
63043         (openat_permissive): Require mode arg, so that we can check
63044         types better.  Put it just after flags.  Change cwd failure
63045         indicator from pointer-to-bool to pointer-to-errno-value.
63046         All callers changed.
63047         Invoke openat_save_fail and/or openat_restore_fail if
63048         cwd_errno is null, so that openat can call us.
63049         (openat_permissive, fdopendir, fstatat, unlinkat):
63050         Simplify errno handling to avoid some duplicate code,
63051         as it's OK to set errno on success.
63052         * lib/openat.h: Revamp code so that function macros depend on
63053         __OPENAT_PREFIX only, not also on AT_FDCWD.
63054         (openat_ro): Remove.  Caller changed to use openat_permissive.
63055         (openat_permissive): Now a macro, if not a function.
63056         (openat_restore_fail, openat_save_fail): Now always functions,
63057         since mkdirat needs them even if __OPENAT_PREFIX is defined.
63058
63059         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
63060         and openat.c.
63061         * lib/mkdirat.c: Include openat-priv.h.
63062         Remove definitions of macros defined therein.
63063         * lib/openat.c: Likewise.
63064
63065         * lib/mkdirat.c (mkdirat): New file and function.
63066         * lib/openat.h (mkdirat): Declare.
63067
63068         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
63069
63070         * lib/openat.h (openat_permissive): Declare.
63071         (openat_ro): Define.
63072
63073         * lib/openat.c (EXPECTED_ERRNO): New macro.
63074         (openat_permissive): New function -- used in remove.c rewrite.
63075         (all functions): Set errno just before returning, only if there
63076         was an actual failure.
63077         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
63078
63079         Emulate openat-family functions using Linux's procfs, if possible.
63080         Idea and some code based on Ulrich Drepper's glibc changes.
63081
63082         * lib/openat.c: (BUILD_PROC_NAME): New macro.
63083         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
63084         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
63085         before falling back on save_cwd and restore_cwd.
63086         (fdopendir, fstatat, unlinkat): Likewise.
63087
63088         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
63089         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
63090
63091         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
63092         as second argument to va_arg.  Otherwise, some versions of gcc
63093         warn that `if this code is reached, the program will abort'.
63094
63095 2006-01-09  Jim Meyering  <jim@meyering.net>
63096
63097         Sync from coreutils.
63098         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
63099         Require openat-priv.h.
63100
63101 2006-01-09  Bruno Haible  <bruno@clisp.org>
63102
63103         * modules/strnlen (Include): Use strnlen.h.
63104
63105 2006-01-09  Bruno Haible  <bruno@clisp.org>
63106
63107         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
63108
63109 2006-01-09  Bruno Haible  <bruno@clisp.org>
63110
63111         * lib/sysexit_.h (EX_OK): New macro.
63112         Suggested by Martin Lambers <marlam@marlam.de>.
63113
63114 2006-01-09  Bruno Haible  <bruno@clisp.org>
63115
63116         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
63117         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
63118
63119 2006-01-09  Bruno Haible  <bruno@clisp.org>
63120
63121         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
63122         numbers.
63123
63124 2006-01-09  Bruno Haible  <bruno@clisp.org>
63125
63126         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
63127         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
63128         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
63129         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
63130
63131 2006-01-09  Bruno Haible  <bruno@clisp.org>
63132
63133         * build-aux/javacomp.sh.in: New file, moved from lib/.
63134         * modules/javacomp-script (Files): Update.
63135         (configure.ac): Add AC_CONFIG_FILES invocation.
63136         (EXTRA_DIST): Remove variable.
63137
63138         * build-aux/javaexec.sh.in: New file, moved from lib/.
63139         * modules/javaexec (Files): Update.
63140         (configure.ac): Add AC_CONFIG_FILES invocation.
63141         (EXTRA_DIST): Remove javaexec.sh.in.
63142
63143         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
63144         * modules/csharpcomp-script (Files): Update.
63145         (configure.ac): Add AC_CONFIG_FILES invocation.
63146         (EXTRA_DIST): Remove variable.
63147
63148         * build-aux/csharpexec.sh.in: New file, moved from lib/.
63149         * modules/csharpexec (Files): Update.
63150         (configure.ac): Add AC_CONFIG_FILES invocation.
63151         (EXTRA_DIST): Remove csharpexec.sh.in.
63152
63153 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
63154
63155         Sync from coreutils.
63156
63157         Add POSIX ACL support
63158         * lib/acl.h (copy_acl, set_acl): Add declarations.
63159         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
63160         systems other than Linux.
63161         (chmod_or_fchmod): New function: use fchmod when possible,
63162         and chmod otherwise.
63163         (file_has_acl): Add a POSIX ACL implementation, with a
63164         Linux-specific subcase.
63165         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
63166         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
63167         acls are unsupported.
63168         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
63169         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
63170         are unsupported.
63171
63172 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
63173
63174         Sync from coreutils.
63175         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
63176
63177 2006-01-07  Bruno Haible  <bruno@clisp.org>
63178
63179         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
63180         gl_EARLY.
63181
63182 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63183
63184         * lib/strftime.c (tzname): Don't declare if it is already #defined.
63185         Problem reported for Mingw by Mark Junker.
63186
63187 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63188
63189         * README: Gnulib normally doesn't generate a tarball.
63190
63191 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
63192
63193         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
63194         long int, not int, for nanosecond counts, so that people who are
63195         used to POSIX struct timespec won't be surprised.  Reported by Jim
63196         Meyering.
63197
63198 2005-12-28  Bruno Haible  <bruno@clisp.org>
63199
63200         * build-aux/config.rpath: Update from GNU gettext.
63201
63202 2005-12-16  Jim Meyering  <jim@meyering.net>
63203
63204         * modules/fprintftime: New module.
63205         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
63206
63207 2005-12-16  Jim Meyering  <jim@meyering.net>
63208
63209         * m4/fprintftime.m4: New file.
63210
63211 2005-12-16  Jim Meyering  <jim@meyering.net>
63212
63213         * lib/fprintftime.c, lib/fprintftime.h: New files.
63214
63215 2005-12-15  Simon Josefsson  <jas@extundo.com>
63216
63217         * modules/socklen (configure.ac): Fix M4 macro name, to align with
63218         new m4/socklen.m4.
63219
63220 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63221
63222         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
63223         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
63224
63225 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63226
63227         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
63228         * lib/argp-help.c (fill_in_uparams): Check if the constructed
63229         struct uparams is valid. Fall back to the default values if it is
63230         not.
63231
63232 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63233
63234         * modules/argp (Files): Add argp-pin.c
63235         (Depends-on): dirname
63236         (lib_SOURCES): Add argp-pin.c
63237
63238 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63239
63240         * m4/argp.m4:  Check if program_invocation_name and
63241         program_invocation_short_name are declared and define appropriate
63242         macros if they are not.
63243
63244 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63245
63246         * lib/argp-help.c (__argp_base_name): New function
63247         (__argp_short_program_name): Rewrite using __argp_base_name
63248         * lib/argp-namefrob.h: Define program_invocation_name and
63249         program_invocation_short_name if requested
63250         (__argp_base_name): Add prototype
63251         * lib/argp-parse.c (argp_def): Use gettext wrappers
63252         (argp_default_parser): Use __argp_base_name
63253         * lib/argp-pin.c: New file. Defines program_invocation_name and
63254         program_invocation_short_name on systems that lack them.
63255
63256 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
63257
63258         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
63259         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
63260         porting problem reported by Georg Schwarz in
63261         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
63262
63263 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
63264
63265         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
63266         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
63267         porting problem reported by Georg Schwarz in
63268         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
63269
63270 2005-12-05  Bruno Haible  <bruno@clisp.org>
63271
63272         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
63273         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
63274         Reported by Mark Junker <mjscod@gmx.de>.
63275
63276 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
63277
63278         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
63279         Use implementation from Albert Chin, with some
63280         comments/corrections by Stepan Kasal and myself.
63281
63282 2005-12-02  Bruno Haible  <bruno@clisp.org>
63283
63284         * gnulib-tool (func_import): Accept GPLed build tool modules when
63285         --lgpl is given.
63286         * modules/csharpcomp-script: New file.
63287         * modules/csharpcomp: Depend on it.
63288         * modules/javacomp-script: New file.
63289         * modules/javacomp: Depend on it.
63290         Suggested by Simon Josefsson.
63291
63292 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
63293
63294         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
63295         statement, to work around an HP-UX 10.20 compiler bug reported by
63296         Peter O'Gorman.
63297
63298 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
63299
63300         * modules/savedir (Depends-on): Add openat.
63301
63302 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
63303
63304         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
63305         (uintmax_t) [defined uintmax_t]: Do not declare.
63306         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
63307         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
63308         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
63309         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
63310         sake of portability to weird hosts that C allows (though we don't
63311         know of any practical examples).
63312
63313         * lib/savedir.h (fdsavedir): New decl.
63314         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
63315         contains most of the former guts of savedir.
63316         (savedir): Use savedirstream.
63317         Include "openat.h".
63318
63319 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63320
63321         * modules/obstack (Files): Add m4/ulonglong.m4.
63322         Problem reported by Davide Angelocola.
63323
63324 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
63325
63326         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
63327         coreutils no longer futzes with rounding modes.
63328
63329 2005-11-14  Jim Meyering  <jim@meyering.net>
63330
63331         * lib/mkstemp-safer.c: Include <config.h>, required for possible
63332         replacement of mkstemp.
63333
63334 2005-11-10  Simon Josefsson  <jas@extundo.com>
63335
63336         * lib/readline.c: Remove EOL.
63337
63338 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63339
63340         * modules/gethrxtime (Depends-on): Add gettime.
63341
63342 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63343
63344         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
63345         or gettimeofday; no longer needed.
63346
63347 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63348
63349         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
63350         time business.
63351         (gethrxtime) [! (HAVE_NANOUPTIME
63352         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
63353         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
63354         our own approximation.
63355
63356 2005-11-08  Eric Blake  <ebb9@byu.net>
63357
63358         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
63359
63360 2005-11-08  Eric Blake  <ebb9@byu.net>
63361
63362         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
63363
63364 2005-11-04  Bruno Haible  <bruno@clisp.org>
63365
63366         * gnulib-tool: Implement --update mode.
63367
63368 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
63369
63370         Fix porting problem reported by Theodoros V. Kalamatianos.
63371         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
63372         Don't assume that futimes failing means we must fail.
63373
63374 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
63375
63376         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
63377         variables to suggest the intended function of the PATH_MAX check.
63378
63379 2005-10-30  Kean Johnston  <jkj@sco.com>
63380
63381         Trivial changes to support SCO systems.
63382         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
63383         as PATH_MAX.
63384         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
63385         where __ptr is null when no I/O is pending.
63386
63387 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
63388
63389         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
63390         leave errno alone.  Problem reported by Dmitry V. Levin.
63391
63392 2005-10-28  Simon Josefsson  <jas@extundo.com>
63393
63394         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
63395         Test more.
63396
63397         * tests/test-gc-md2.c, tests/test-md2.c: New files.
63398
63399         * modules/md2, modules/md2-tests: New files.
63400
63401 2005-10-28  Simon Josefsson  <jas@extundo.com>
63402
63403         * m4/inet_ntop.m4: More tests.
63404
63405         * m4/gc-md2.m4, md2.m4: New file.
63406
63407 2005-10-28  Simon Josefsson  <jas@extundo.com>
63408
63409         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
63410         "restrict" keywords, as per POSIX.  Protect the function
63411         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
63412         Don't use K&R prototypes.  Check the sprintf return values.
63413         Re-define EAFNOSUPPORT if not present.  Indent.
63414
63415         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
63416         suggested by Bruno Haible <bruno@clisp.org>.
63417
63418         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
63419
63420         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
63421
63422         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
63423         libgcrypt).
63424
63425         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
63426
63427         * lib/md2.h, lib/md2.c: New files.
63428
63429 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
63430
63431         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
63432         errno alone.  Problem reported by Frederic Jolliton.
63433
63434 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
63435
63436         * modules/verify (License): Change from GPL to LGPL.  This is a
63437         tiny module and there are apparently near-equivalents that are
63438         under the BSD license.
63439
63440 2005-10-24  Simon Josefsson  <jas@extundo.com>
63441
63442         * modules/sha1: Relicense to LGPL.
63443
63444 2005-10-24  Simon Josefsson  <jas@extundo.com>
63445
63446         * lib/md4.h: Shrink buffer size, now that we changed the type.
63447
63448 2005-10-23  Simon Josefsson  <jas@extundo.com>
63449
63450         * gnulib-tool (func_import): Fix --tests-base.
63451
63452 2005-10-22  Simon Josefsson  <jas@extundo.com>
63453
63454         * modules/arcfour (Depends-on): Need stdint.
63455
63456 2005-10-22  Simon Josefsson  <jas@extundo.com>
63457
63458         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
63459         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
63460
63461 2005-10-22  Simon Josefsson  <jas@extundo.com>
63462
63463         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
63464         suggested by Bruno Haible <bruno@clisp.org>.
63465
63466 2005-10-22  Simon Josefsson  <jas@extundo.com>
63467
63468         * lib/crc.h: Include stddef.h, for size_t.
63469
63470 2005-10-22  Simon Josefsson  <jas@extundo.com>
63471
63472         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
63473         arcfour_context struct (simplify test vector testing in GNU
63474         Shishi).
63475
63476 2005-10-21  Simon Josefsson  <jas@extundo.com>
63477
63478         * modules/des, modules/des-tests: New files.
63479
63480         * modules/gc-des, modules/gc-des-tests: New files.
63481
63482         * tests/test-des.c, tests/test-gc-des.c: New file.
63483
63484 2005-10-21  Simon Josefsson  <jas@extundo.com>
63485
63486         * modules/arctwo, modules/arctwo-tests: New files.
63487
63488         * tests/test-arctwo.c: New file.
63489
63490         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
63491
63492         * tests/test-gc-arctwo.c: New file.
63493
63494 2005-10-21  Simon Josefsson  <jas@extundo.com>
63495
63496         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
63497         Bruno Haible <bruno@clisp.org>.
63498
63499         * m4/gc-des.m4: New file.
63500
63501 2005-10-21  Simon Josefsson  <jas@extundo.com>
63502
63503         * m4/arctwo.m4: New file.
63504
63505         * m4/gc-arctwo.m4: New file.
63506
63507 2005-10-21  Simon Josefsson  <jas@extundo.com>
63508
63509         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
63510         block.
63511
63512 2005-10-21  Simon Josefsson  <jas@extundo.com>
63513
63514         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
63515         <bruno@clisp.org>.
63516
63517         * lib/hmac-sha1.c (hmac_sha1): Likewise.
63518
63519         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
63520         Bruno Haible <bruno@clisp.org>.
63521
63522         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
63523         <bruno@clisp.org>.
63524
63525 2005-10-21  Simon Josefsson  <jas@extundo.com>
63526
63527         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
63528
63529 2005-10-21  Simon Josefsson  <jas@extundo.com>
63530
63531         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
63532
63533 2005-10-21  Simon Josefsson  <jas@extundo.com>
63534
63535         * lib/des.h, lib/des.c: New files.
63536
63537         * lib/gc-gnulib.c: Support DES.c
63538
63539 2005-10-21  Simon Josefsson  <jas@extundo.com>
63540
63541         * lib/arctwo.h, lib/arctwo.c: New files.
63542
63543         * lib/gc-gnulib.c: Support ARCTWO.
63544
63545 2005-10-21  Simon Josefsson  <jas@extundo.com>
63546
63547         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
63548         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63549
63550 2005-10-21  Simon Josefsson  <jas@extundo.com>
63551
63552         * gnulib-tool (func_import, func_create_testdir): Define automake
63553         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
63554         Makefile.am snippet),
63555         suggested by Bruno Haible <bruno@clisp.org>.
63556
63557         * modules/gc (Makefile.am): Use it.
63558
63559 2005-10-21  Bruno Haible  <bruno@clisp.org>
63560
63561         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
63562         patch.
63563
63564 2005-10-19  Simon Josefsson  <jas@extundo.com>
63565
63566         * tests/test-gc-rijndael.c: New file.
63567
63568         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
63569
63570 2005-10-19  Simon Josefsson  <jas@extundo.com>
63571
63572         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
63573         interface too.
63574
63575 2005-10-19  Simon Josefsson  <jas@extundo.com>
63576
63577         * tests/test-gc-arcfour.c: New file.
63578
63579         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
63580
63581 2005-10-19  Simon Josefsson  <jas@extundo.com>
63582
63583         * modules/gc-md4, modules/gc-md4-tests: New file.
63584
63585         * tests/test-gc-md4.c: New file.
63586
63587 2005-10-19  Simon Josefsson  <jas@extundo.com>
63588
63589         * m4/gc-md4.m4: New file.
63590
63591 2005-10-19  Simon Josefsson  <jas@extundo.com>
63592
63593         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
63594         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
63595         <kasal@ucw.cz>.
63596
63597 2005-10-19  Simon Josefsson  <jas@extundo.com>
63598
63599         * m4/gc-arcfour.m4: New file.
63600
63601         * m4/gc-rijndael.m4: New file.
63602
63603 2005-10-19  Simon Josefsson  <jas@extundo.com>
63604
63605         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
63606
63607 2005-10-19  Simon Josefsson  <jas@extundo.com>
63608
63609         * lib/gc-gnulib.c: Support ARCFOUR.
63610
63611 2005-10-19  Simon Josefsson  <jas@extundo.com>
63612
63613         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
63614         support.
63615
63616         * lib/gc.h: Add ECB enum type.
63617
63618         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
63619
63620 2005-10-18  Simon Josefsson  <jas@extundo.com>
63621
63622         * tests/test-md5.c: New file.
63623
63624         * modules/md5-tests: New file.
63625
63626 2005-10-18  Simon Josefsson  <jas@extundo.com>
63627
63628         * tests/test-md4.c: New file.
63629
63630         * modules/md4, modules/md4-tests: New files.
63631
63632 2005-10-18  Simon Josefsson  <jas@extundo.com>
63633
63634         * m4/md4.m4: New file.
63635
63636 2005-10-18  Simon Josefsson  <jas@extundo.com>
63637
63638         * lib/md4.h, lib/md4.c: New files, based on md5.?.
63639
63640 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
63641
63642         * gnulib-tool (func_create_testdir): Omit the second check whether
63643         BUILT_SOURCES in nonempty.
63644
63645 2005-10-17  Simon Josefsson  <jas@extundo.com>
63646
63647         * tests/test-rijndael.c: New file.
63648
63649 2005-10-17  Simon Josefsson  <jas@extundo.com>
63650
63651         * modules/sha1: Depend on stdint instead of md5.
63652
63653         * modules/md5: Depend on stdint, remove uint32_t.
63654
63655 2005-10-17  Simon Josefsson  <jas@extundo.com>
63656
63657         * modules/gc-sha1-tests: New file.
63658
63659         * tests/test-gc-sha1.c: New file.
63660
63661 2005-10-17  Simon Josefsson  <jas@extundo.com>
63662
63663         * m4/md5.m4: Remove call to uint32_t.m4.
63664
63665 2005-10-17  Simon Josefsson  <jas@extundo.com>
63666
63667         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
63668
63669         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
63670         md5.h.
63671
63672         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
63673
63674         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
63675
63676 2005-10-17  Simon Josefsson  <jas@extundo.com>
63677
63678         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
63679
63680 2005-10-17  Simon Josefsson  <jas@extundo.com>
63681
63682         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
63683
63684 2005-10-17  Simon Josefsson  <jas@extundo.com>
63685
63686         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
63687
63688         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
63689
63690 2005-10-17  Bruno Haible  <bruno@clisp.org>
63691
63692         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
63693         that it can also be used in a test.
63694
63695 2005-10-16  Bruno Haible  <bruno@clisp.org>
63696
63697         * gnulib-tool (func_emit_tests_Makefile_am): Also define
63698         TESTS_ENVIRONMENT, so that individual tests can augment it.
63699
63700         * gnulib-tool (func_create_testdir): Use an intermediate target for
63701         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
63702         macros, like $(ALLOCA_H), which cannot be passed through the command
63703         line.
63704
63705 2005-10-15  Simon Josefsson  <jas@extundo.com>
63706
63707         * modules/rijndael-tests: New file.
63708
63709         * modules/rijndael: New file.
63710
63711 2005-10-15  Simon Josefsson  <jas@extundo.com>
63712
63713         * m4/rijndael.m4: New file.
63714
63715 2005-10-15  Simon Josefsson  <jas@extundo.com>
63716
63717         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
63718
63719         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
63720
63721 2005-10-14  Simon Josefsson  <jas@extundo.com>
63722
63723         * tests/test-arcfour.c: New file.
63724
63725         * modules/arcfour, modules/arcfour-tests: New files.
63726
63727 2005-10-14  Simon Josefsson  <jas@extundo.com>
63728
63729         * m4/arcfour.m4: New file.
63730
63731 2005-10-14  Simon Josefsson  <jas@extundo.com>
63732
63733         * lib/arcfour.h, lib/arcfour.c: New files.
63734
63735 2005-10-14  Roland McGrath  <roland@redhat.com>
63736
63737         Import from libc.  [BZ #1331]
63738         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
63739         macro argument.
63740         Reported by Matej Vela <vela@debian.org>.
63741
63742 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63743
63744         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
63745         include <wchar.h>; no longer needed.
63746
63747 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63748
63749         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
63750
63751 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
63752         and  Ulrich Drepper  <drepper@redhat.com>
63753
63754         Import from libc.
63755         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
63756         instead of inline stream orientation test and two separate
63757         function calls.  Pay no attention to USE_IN_LIBIO.
63758
63759 2005-10-13  Simon Josefsson  <jas@extundo.com>
63760
63761         * modules/gc-hmac-md5-tests: New file.
63762
63763         * tests/test-gc-hmac-sha1.c: New file.
63764
63765         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
63766
63767         * modules/gc-hmac-md5-tests: New file.
63768
63769         * tests/test-gc-md5.c: New file.
63770
63771         * modules/gc-md5-tests: New file.
63772
63773 2005-10-13  Simon Josefsson  <jas@extundo.com>
63774
63775         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
63776         Move memory allocation outside of loop.
63777
63778 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
63779
63780         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
63781         intermediate directory is in a read-only file system.  Problem
63782         reported by Eric Blake.
63783
63784 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
63785
63786         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
63787
63788 2005-10-12  Simon Josefsson  <jas@extundo.com>
63789
63790         * tests/test-hmac-sha1.c: New file.
63791
63792         * modules/hmac-sha1-tests: New file.
63793
63794         * modules/hmac-sha1: New file.
63795
63796 2005-10-12  Simon Josefsson  <jas@extundo.com>
63797
63798         * modules/gc-sha1: New file.
63799
63800 2005-10-12  Simon Josefsson  <jas@extundo.com>
63801
63802         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
63803
63804         * tests/test-gc-pbkdf2-sha1.c: New file.
63805
63806 2005-10-12  Simon Josefsson  <jas@extundo.com>
63807
63808         * modules/gc-md5, modules/gc-hmac-md5: New files.
63809
63810         * modules/gc (Files): Remove md5, memxor and hmac files.
63811
63812 2005-10-12  Simon Josefsson  <jas@extundo.com>
63813
63814         * m4/gc-pbkdf2-sha1.m4: New file.
63815
63816         * m4/gc-hmac-sha1.m4: New file.
63817
63818         * m4/gc-sha1: New file.
63819
63820         * m4/hmac-sha1.m4: New file.
63821
63822 2005-10-12  Simon Josefsson  <jas@extundo.com>
63823
63824         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
63825
63826         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
63827
63828 2005-10-12  Simon Josefsson  <jas@extundo.com>
63829
63830         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
63831         suggested by Bruno Haible <bruno@clisp.org>.
63832
63833 2005-10-12  Simon Josefsson  <jas@extundo.com>
63834
63835         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
63836
63837 2005-10-12  Simon Josefsson  <jas@extundo.com>
63838
63839         * lib/gc-pbkdf2-sha1.c: New file.
63840
63841         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
63842
63843 2005-10-12  Simon Josefsson  <jas@extundo.com>
63844
63845         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
63846
63847         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
63848
63849 2005-10-12  Simon Josefsson  <jas@extundo.com>
63850
63851         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
63852         GC_USE_HMAC_MD5, respectively.
63853
63854         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
63855         (gc_md5): Fix typo.
63856
63857         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
63858
63859         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
63860
63861         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
63862
63863 2005-10-12  Bruno Haible  <bruno@clisp.org>
63864
63865         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
63866         Reported by Stepan Kasal <kasal@ucw.cz>.
63867
63868 2005-10-11  Simon Josefsson  <jas@extundo.com>
63869
63870         * tests/test-crc.c: New file.
63871
63872         * modules/crc, modules/crc-tests: New files.
63873
63874 2005-10-11  Simon Josefsson  <jas@extundo.com>
63875
63876         * m4/crc.m4: New file.
63877
63878 2005-10-11  Simon Josefsson  <jas@extundo.com>
63879
63880         * lib/gc.h: Add gc_hash and gc_hash_buffer.
63881
63882         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
63883
63884         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
63885
63886 2005-10-11  Simon Josefsson  <jas@extundo.com>
63887
63888         * lib/crc.h, lib/crc.c: New files.
63889
63890         * lib/gc.h (gc_hash_buffer): Add doc.
63891
63892 2005-10-11  Bruno Haible  <bruno@clisp.org>
63893
63894         * modules/c-strcasestr: New file.
63895         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
63896
63897 2005-10-11  Bruno Haible  <bruno@clisp.org>
63898
63899         * modules/c-strcase: New file.
63900         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
63901
63902 2005-10-11  Bruno Haible  <bruno@clisp.org>
63903
63904         * lib/strcasecmp.c: Include limits.h.
63905         (strcasecmp): Avoid integer overflow on exotic platforms.
63906         * lib/strncasecmp.c: Include limits.h.
63907         (strncasecmp): Avoid integer overflow on exotic platforms.
63908         Reported by Paul Eggert.
63909
63910 2005-10-11  Bruno Haible  <bruno@clisp.org>
63911
63912         * lib/c-strcasestr.h: New file, from GNU gettext.
63913         * lib/c-strcasestr.c: New file, from GNU gettext.
63914
63915 2005-10-11  Bruno Haible  <bruno@clisp.org>
63916
63917         * lib/c-strcase.h: New file, from GNU gettext.
63918         * lib/c-strcasecmp.c: New file, from GNU gettext.
63919         * lib/c-strncasecmp.c: New file, from GNU gettext.
63920
63921 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63922
63923         * modules/mempcpy (License): GPL -> LGPL.
63924         * modules/strchrnul (License): Likewise.
63925         * modules/sysexits (License): Likewise.
63926
63927 2005-10-08  Simon Josefsson  <jas@extundo.com>
63928
63929         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
63930
63931 2005-10-07  Simon Josefsson  <jas@extundo.com>
63932
63933         * m4/memxor.m4: Remove gl_C_RESTRICT call.
63934
63935 2005-10-06  Simon Josefsson  <jas@extundo.com>
63936
63937         * tests/test-hmac-md5.c: New file.
63938
63939         * modules/hmac-md5-tests: New file.
63940
63941         * modules/hmac-md5: New file.
63942
63943 2005-10-06  Simon Josefsson  <jas@extundo.com>
63944
63945         * m4/hmac-md5.m4: New file.
63946
63947         * m4/memxor.m4: Require gl_C_RESTRICT.
63948
63949 2005-10-06  Simon Josefsson  <jas@extundo.com>
63950
63951         * lib/memxor.c (memxor): Avoid casts and warnings.
63952
63953 2005-10-06  Simon Josefsson  <jas@extundo.com>
63954
63955         * lib/hmac-md5.c: New file.
63956
63957         * lib/hmac.h: New file.
63958
63959 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63960
63961         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
63962         promotes to int, not unsigned int, to catch the AIX 5.3
63963         compiler bug.
63964
63965 2005-10-05  Simon Josefsson  <jas@extundo.com>
63966
63967         * modules/memxor: New file.
63968
63969         * modules/iconv (Files): Move config.rpath to havelib, it is used
63970         there.
63971
63972         * modules/havelib (Files): Add config.rpath.
63973
63974 2005-10-05  Simon Josefsson  <jas@extundo.com>
63975
63976         * m4/memxor.m4: New file.
63977
63978 2005-10-05  Simon Josefsson  <jas@extundo.com>
63979
63980         * lib/memxor.c (memxor): Fix compiler error.
63981
63982         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
63983         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
63984
63985         * lib/memxor.h, lib/memxor.c: New files.
63986
63987         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
63988         we assume all systems have it, suggested by Jim Meyering
63989         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
63990         any systems lack sys/socket.h; mingw32 is known to lack it, but we
63991         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
63992         same reasons.
63993
63994 2005-10-05  Simon Josefsson  <jas@extundo.com>
63995
63996         * config/srclist.txt: Add glibc bug 1423 for md5.h.
63997
63998 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63999
64000         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
64001         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
64002         needed, since the source code now assumes these .h files.
64003
64004 2005-10-05  Derek Price  <derek@ximbiot.com>
64005
64006         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
64007
64008 2005-10-05  Bruno Haible  <bruno@clisp.org>
64009
64010         * modules/stdint (License): Change to LGPL.
64011
64012 2005-10-04  Simon Josefsson  <jas@extundo.com>
64013
64014         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
64015         D. Baushke" <mdb@gnu.org>.
64016
64017 2005-10-04  Bruno Haible  <bruno@clisp.org>
64018
64019         * lib/verify.h (verify_true): Provide alternative definition for C++.
64020
64021 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
64022
64023         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
64024         (SSIZE_MAX): New macro, if not already defined.
64025         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
64026         than 2 GiB.
64027
64028 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64029
64030         Sync from coreutils.
64031         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
64032         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
64033         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
64034         ULLONG_MAX doesn't work with 2.7.2.1.
64035
64036 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64037
64038         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
64039         From Ben Pfaff.
64040
64041         * modules/exclude (Depends-on): Depend on verify.
64042         * modules/strtoimax (Depends-on): Likewise.
64043         * modules/utimecmp (Depends-on): Likewise.
64044
64045 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64046
64047         * lib/exclude.c: Include verify.h.
64048         (verify): Remove.  All callers changed to use verify.h's version.
64049         * lib/strtoimax.c: Likewise.
64050         * lib/utimecmp.c: Likewis.e
64051
64052         Sync from coreutils.
64053         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
64054         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
64055         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
64056         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
64057         bother returning ENOSYS if settimeofday or stime fails; just let
64058         them return whatever errno they want to return.
64059         * lib/utimens.c: Include unistd.h, for dup2.
64060         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
64061         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
64062
64063 2005-10-02  Jim Meyering  <jim@meyering.net>
64064
64065         Sync from coreutils.
64066         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
64067         from glibc-2.2.5 that fails for read-only files.
64068
64069 2005-10-02  Jim Meyering  <jim@meyering.net>
64070
64071         Sync from coreutils.
64072         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
64073         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
64074         `#if HAVE_CONFIG_H'.
64075         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
64076         Remove AT_FDCWD test.
64077         Do not consume the fd unless successful.
64078         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
64079         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
64080         block, so that we don't even try to compile it if settimeofday is
64081         available.  This works around a compilation failure on OSF1 V5.1,
64082         due to stime requiring a `long int*' while tv_sec is `int'.
64083
64084 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
64085
64086         Sync from coreutils.
64087         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
64088         against `yes', rather than just testing for nonempty.
64089
64090 2005-10-01  Simon Josefsson  <jas@extundo.com>
64091
64092         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
64093         and Darwin.
64094
64095         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
64096         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
64097         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
64098         freeaddrinfo and gai_strerror are declared by the POSIX headers.
64099         Check if struct addrinfo is declared.
64100
64101 2005-10-01  Simon Josefsson  <jas@extundo.com>
64102
64103         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
64104         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
64105         AI_* and EAI_* definitions.  Protect function declarations.
64106
64107 2005-10-01  Jim Meyering  <jim@meyering.net>
64108
64109         Sync from coreutils.
64110
64111         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
64112         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
64113         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
64114         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
64115         in the inet and nsl libraries.  Required on Solaris 5.7.
64116
64117 2005-10-01  Jim Meyering  <jim@meyering.net>
64118
64119         Sync from coreutils.
64120         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
64121         in the inet and nsl libraries.  Required on Solaris 5.7.
64122
64123 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
64124
64125         * lib/getdelim.c (getdelim): Remove unused variables.
64126
64127 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
64128
64129         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
64130         so that the code works even with ancient cpp.  Portability problem
64131         with GCC 2.7.2.1 reported by Thomas M.Ott.
64132
64133 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
64134
64135         * modules/regex (Depends-on): Add strcase.
64136
64137         * modules/gethostname (Licence): Change from GPL to LGPL, since
64138         gethostname.c is a trivial implementation of a standard library
64139         function.
64140         * modules/poll (License): Change from GPL to LGPL, since it's
64141         derived from LGPL code.
64142
64143 2005-09-27  Jim Meyering  <jim@meyering.net>
64144
64145         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
64146         HAVE_CONFIG_H.
64147
64148         * lib/intprops.h (signed_type_or_expr__): Define.
64149         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
64150         for unsigned types.
64151
64152 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
64153
64154         * lib/verify.h (verify_expr): Remove, replacing with:
64155         (verify_true): New macro that returns true instead of void.
64156         (verify_type__): Remove.
64157         (verify): Use verify_true rather than verify_type__.
64158
64159 2005-09-26  Bruno Haible  <bruno@clisp.org>
64160
64161         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
64162         is necessary.
64163         (lib_SOURCES): Remove mbchar.c.
64164         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
64165         (Files): Add m4/mbrtowc.m4.
64166         * modules/mbiter: Likewise.
64167         * modules/mbuiter: Likewise.
64168
64169 2005-09-26  Bruno Haible  <bruno@clisp.org>
64170
64171         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
64172         compile mbchar.c if they are not both present.
64173         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
64174         * m4/mbiter.m4 (gl_MBITER): Likewise.
64175         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
64176         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
64177         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
64178
64179 2005-09-25  Jim Meyering  <jim@meyering.net>
64180
64181         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
64182         also uses socklen_t.
64183
64184 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
64185
64186         * lib/utimens.c (ENOSYS): Define if not already defined.
64187         (futimens): Support having a null PATH if the file descriptor
64188         is nonnegative.
64189
64190         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
64191         Remove.
64192         (__attribute): Define to empty unless GCC 3.1 or later.
64193         This works around a core dump on OpenBSD 3.4, which has GCC
64194         2.95.3, which dumps core when given __attribute__(()).  It also
64195         simplifies other tests, since we really don't want to bother with
64196         worrying about which ancient version of GCC supported what.
64197         Original problem reported by Yoann Vandoorselaere, with part of
64198         the fix suggested by Derek Price.
64199
64200 2005-09-24  Jim Meyering  <jim@meyering.net>
64201
64202         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
64203         so we can once again use a positive bitfield width of 1 -- now we
64204         don't have to explain why we were using a bitfield width of 2.
64205
64206 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
64207
64208         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
64209         and similarly for the other external symbols.  Problem reported
64210         by James Gallager.
64211
64212         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
64213         bug reported by Jim Meyering.
64214
64215         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
64216         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
64217         not needed, since socklen is a prerequisite module.
64218
64219 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
64220
64221         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
64222         Problem reported by Eric Blake.
64223         (getaddrinfo): Initialize se so that it's not garbage.
64224         Redo internal storage allocation so that it doesn't make unportable
64225         assumptions about alignment.
64226         Fix a memory leak.
64227
64228         * lib/utimens.c (futimens): Use futimesat if available.
64229         Prefer it to futimes since it doesn't have the futimes bug.
64230
64231         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
64232         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
64233         Instead, declare a function that returns a pointer to an array,
64234         and use verify_type__ to declare the size of the array.
64235         Problem and germ of a solution reported by Bruno Haible.
64236         (verify_type__): Use 2, not 1, for bitfield size, to avoid
64237         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
64238
64239 2005-09-23  Jim Meyering  <jim@meyering.net>
64240
64241         Sync from coreutils.
64242         Correct build failure (socklen_t not defined) on at least
64243         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
64244         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
64245
64246 2005-09-23  Jim Meyering  <jim@meyering.net>
64247
64248         * modules/getaddrinfo (Depends-on): Add socklen.
64249
64250 2005-09-23  Bruno Haible  <bruno@clisp.org>
64251
64252         * tests/test-verify.c: New file.
64253
64254 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64255
64256         Sync from coreutils.
64257
64258         * modules/argmatch (Depends-on): Add verify.
64259         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
64260         unistd-safer.
64261         * modules/save-cwd (Depends-on): Likewise.
64262
64263         * modules/openat (Files): Add lib/openat-die.c.
64264         (Depends-on): Remove error, exitfail.
64265         Add dirname.
64266
64267         * modules/verify: New file.
64268         * MODULES.html.sh (Diagnostics <assert.h>): New section,
64269         with "verify" module.
64270
64271 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64272
64273         Sync from coreutils.
64274
64275         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
64276         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
64277         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
64278         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
64279         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
64280         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
64281         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
64282         Don't bother checking for string.h, stdlib.h, unistd.h.
64283         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
64284         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
64285         module's job.
64286         * m4/jm-macros.m4 (gl_MACROS): Likewise.
64287         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
64288
64289         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
64290         (gl_GETDATE): Use it.
64291
64292         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
64293
64294 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64295
64296         Sync from coreutils.
64297
64298         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
64299         stat-time.h.
64300         * lib/argmatch.h: Include verify.h
64301         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
64302         (ARGMATCH_ASSERT): Remove; unused.
64303         * lib/canonicalize.c: Assume STDC_HEADERS.
64304         * lib/exclude.c: Include "strcase.h".
64305         * lib/regex_internal.h [!defined _LIBC]: Likewise.
64306         * lib/getusershell.c: Include stdio--.h rather than stdio.h
64307         and stdio-safer.h.
64308         (getusershell): Call fopen, not fopen_safer.
64309         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
64310         Do not include unistd-safer.h.
64311         (save_cwd): Don't call fd_safer; no longer needed
64312         now that we include fcntl--.h.
64313
64314         * lib/getdate.y (relative_time): New type.
64315         (RELATIVE_TIME_0): New constant.
64316         (parser_control): Use relative_time instead of doing it ourselves.
64317         (%union): Add new relative_time rel member.
64318         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
64319         Now typeless.
64320         (relunit, relunit_snumber): Now of type rel.
64321         (zone, rel, relunit, get_date): Adjust to above changes.
64322
64323         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
64324         Do not include unistd-safer.h.
64325         (getloadavg): Don't call fd_safer; no longer needed
64326         now that we include fcntl--.h.
64327
64328         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
64329         (make_dir_parents): Treat ENOSYS like EEXIST.
64330
64331         Improve quality of diagnostics on restore_cwd failure.
64332         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
64333         (make_dir_parents): Last arg is now int * (for errno), not bool *.
64334         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
64335         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
64336         each time through the loop.  Do not diagnose restore_cwd failure;
64337         that is the caller's job (and perhaps the caller does not care).
64338
64339         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
64340         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
64341         If the file already exists but is not a directory, don't bother
64342         to try to make its parents.
64343         Close potential file descriptor leak if we can't chdir("/") (!).
64344         Don't always return true if chdir($PWD) fails; return true only
64345         if the requested action was done successfully (except for the
64346         chdir($PWD)).
64347         Don't log final directory unless we actually made it.
64348         Refactor to avoid duplicate code to fix up permissions.
64349         Don't attempt to fix up parent permissions if chdir($PWD) fails.
64350
64351         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
64352         to make it a bit faster and (I hope) clearer.
64353         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
64354         Fix bug in formats like %2N.
64355
64356         * lib/verify.h: New file.
64357
64358 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64359
64360         Sync from coreutils.
64361         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
64362
64363 2005-09-22  Jim Meyering  <jim@meyering.net>
64364
64365         Sync from coreutils.
64366
64367         * m4/lstat.m4 (gl_FUNC_LSTAT):
64368         Use AC_LIBSOURCES to require lstat.c and lstat.h.
64369         Remove obsolete comment.
64370         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
64371         * m4/xstrtod.m4: Likewise.
64372
64373         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
64374
64375 2005-09-22  Jim Meyering  <jim@meyering.net>
64376
64377         Sync from coreutils.
64378
64379         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
64380
64381         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
64382         the .tm_year member, since otherwise gcc-4.0 would now warn about
64383         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
64384
64385         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
64386         order to avoid an unsuppressible warning from gcc on 64-bit systems.
64387
64388         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
64389         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
64390         when run in a time zone for which daylight savings time is in effect
64391         for the starting date.
64392
64393         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
64394         stop us from restricting permissions of just-created absolute-named
64395         directories.
64396         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
64397         to restore initial working directory.
64398         * lib/mkdir-p.c (make_dir_parents): New parameter:
64399         different_working_dir, to tell caller if/when we change the working
64400         directory and are unable to return to the initial one.
64401         * lib/mkdir-p.h (make_dir_parents): Update prototype.
64402         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
64403         `return false'.  This fixes a bug introduced on 2004-07-30.
64404
64405         * lib/openat.c (fdopendir): Be sure to close the supplied
64406         file descriptor before returning.  This makes our replacement
64407         implementation a little closer to Solaris's, where fdopendir
64408         ties the file descriptor to the returned DIR* pointer.
64409         * lib/openat.c (unlinkat): New function.
64410         * lib/openat.h (unlinkat): Add prototype.
64411         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
64412         (openat_restore_fail): Rename from openat_restore_die.
64413         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
64414
64415         Provide an alternative to exiting immediately upon save_cwd or
64416         restore_cwd failure.  Now, an application can arrange e.g.,
64417         to perform a longjump in that case.
64418         * lib/openat.c: Include dirname.h.
64419         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
64420         (rpl_openat, fdopendir, fstatat): Call openat_save_die
64421         and openat_restore_die rather than calling error directly.
64422         Don't include "error.h" or "exitfail.h"; they're no longer needed.
64423
64424         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
64425         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
64426         define.
64427
64428         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
64429         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
64430                             int utc, int nanoseconds);
64431         Background:
64432         date should not have to allocate a megabyte of virtual memory to
64433         handle a format argument like +%1048575T.  When implemented with
64434         strftime, it must allocate such a buffer, use strftime to fill it
64435         in, print it, then free it.
64436         With fprintftime, it simply prints everything and exits.
64437         With no need for memory allocation, that's one fewer way to fail.
64438         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
64439         optional field width, not before, so we accept %9:z, not %:9z.
64440         (my_strftime): Be sure to use L_('x') for literals.
64441
64442         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
64443         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
64444         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
64445         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
64446         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
64447         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
64448         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
64449         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
64450         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
64451         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
64452         * lib/xgethostname.c, lib/xreadlink.c:
64453         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
64454
64455         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
64456         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
64457         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
64458         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
64459         and don't include <sys/file.h>).
64460
64461 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
64462
64463         Sync from coreutils.
64464
64465         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
64466         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
64467         [!LDAV_DONE]: Avoid unused variable warning.
64468
64469 2005-09-21  Bruno Haible  <bruno@clisp.org>
64470
64471         * lib/unicodeio.h (unicode_to_mb): New declaration.
64472
64473 2005-09-20  Derek Price  <derek@ximbiot.com>
64474
64475         * lib/getaddrinfo.c: Don't include <netdb.h> included from
64476         getaddrinfo.h.
64477
64478 2005-09-20  Bruno Haible  <bruno@clisp.org>
64479
64480         * gnulib-tool: Remove trailing slashes from the values specified for
64481         --source-base, --m4-base, --tests-base, --aux-dir.
64482         Suggested by Simon Josefsson <jas@extundo.com>.
64483
64484 2005-09-20  Bruno Haible  <bruno@clisp.org>
64485
64486         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
64487         func_modules_to_filelist, func_import, func_create_testdir): Make all
64488         sorting results locale-independent, so that gnulib-cache.m4 doesn't
64489         change when gnulib-tool is invoked in a different locale.
64490
64491 2005-09-19  Simon Josefsson  <jas@extundo.com>
64492
64493         * m4/socklen.m4: Fix typo.
64494
64495 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64496
64497         Use a consistent style for including <config.h>.
64498         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
64499         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
64500         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
64501         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
64502         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
64503         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
64504         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
64505         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
64506         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
64507         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
64508         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
64509         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
64510         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
64511         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
64512         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
64513         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
64514         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
64515         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
64516         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
64517         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
64518         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
64519         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
64520         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
64521         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
64522         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
64523         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
64524         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
64525         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
64526         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
64527         lib/xstrtoumax.c, lib/yesno.c:
64528         Standardize inclusion of config.h.
64529         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
64530         lib/inttostr.h:  Removed inclusion of config.h from header files.
64531         * lib/inttostr.c:  Adjusted in-tree users.
64532         * lib/timespec.h: Remove superfluous warning to include config.h.
64533         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
64534         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
64535         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
64536         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
64537         config.h with HAVE_CONFIG_H.
64538
64539 2005-09-19  Jim Meyering  <jim@meyering.net>
64540
64541         * modules/pathmax (License): Change to LGPL.
64542
64543 2005-09-19  Derek Price  <derek@ximbiot.com>
64544
64545         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
64546
64547 2005-09-19  Bruno Haible  <bruno@clisp.org>
64548
64549         * gnulib-tool (import): Provide default for --tests-base.
64550
64551 2005-09-19  Bruno Haible  <bruno@clisp.org>
64552
64553         * doc/quote.texi: New file, extracted from gnulib.texi.
64554         * doc/ctime.texi: New file, extracted from gnulib.texi.
64555         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
64556         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
64557         * doc/gnulib.texi: Include them.
64558
64559 2005-09-18  Bruno Haible  <bruno@clisp.org>
64560
64561         Portability fix.
64562         * gnulib-tool (func_readlink): New function.
64563         (func_ln_if_changed): Use it.
64564
64565 2005-09-18  Bruno Haible  <bruno@clisp.org>
64566
64567         * gnulib-tool: Support --with-tests also with --import.
64568         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
64569         (func_import): Use variables $testsbase and $inctests. Emit a
64570         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
64571         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
64572         SUBDIRS += $testsdir.
64573         (func_create_testdir): Update.
64574
64575 2005-09-18  Bruno Haible  <bruno@clisp.org>
64576
64577         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
64578         instead of $dry_run.
64579         (func_cp_if_changed, func_mv_if_changed): Remove functions.
64580         (func_ln_if_changed): Don't handle dry-run here.
64581         (func_import): In dry-run mode, detect more precisely which actions
64582         would be performed, and don't use "...ing" verbs.
64583
64584 2005-09-18  Bruno Haible  <bruno@clisp.org>
64585
64586         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
64587         (func_import): Use join on two temporary files instead of three nested
64588         loops, in order to determine which files are new or old.
64589
64590 2005-09-18  Bruno Haible  <bruno@clisp.org>
64591
64592         * gnulib-tool (func_import): Comment out code that spits out the
64593         new files with --dry-run.
64594
64595 2005-09-18  Bruno Haible  <bruno@clisp.org>
64596
64597         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
64598
64599 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
64600
64601         * lib/stat-time.h: New file.
64602         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
64603         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
64604         in a different way.
64605         (timespec_cmp): New function.
64606         * lib/utimecmp.c: Include stat-time.h.
64607         (SYSCALL_RESOLUTION): Depend on whether various struct stat
64608         members exist, not on the obsolescent ST_MTIM_NSEC.
64609         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
64610
64611 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
64612
64613         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
64614
64615 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
64616
64617         * MODULES.html.sh (File system functions): Add stat-time.
64618         * modules/stat-time: New file.
64619         * modules/timespec (Files): Remove m4/st_mtim.m4; this
64620         is now done in a different way, by the stat-time module.
64621         * modules/utimecmp (Depends-on): Add stat-time.
64622
64623 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64624
64625         * m4/st_mtim.m4: Remove.  Superseded by...
64626         * m4/stat-time.m4: New file.
64627         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
64628         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
64629
64630 2005-09-15  Derek Price  <derek@ximbiot.com>
64631
64632         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
64633
64634 2005-09-15  Derek Price  <derek@ximbiot.com>
64635
64636         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
64637         * lib/regex_internal.c: Ditto, using this...
64638         (__GNUC_PREREQ): ...new macro.
64639         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
64640         using...
64641         (__GNUC_PREREQ): ...this new macro.
64642
64643         * lib/strstr.h: Include string.h. Define strstr as a macro here.
64644
64645 2005-09-15  Derek Price  <derek@ximbiot.com>
64646             Paul Eggert  <eggert@cs.ucla.edu>
64647
64648         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
64649         changes, consolidating in...
64650         * lib/regex_internal.h: ...this file.
64651
64652 2005-09-13  Jim Meyering  <jim@meyering.net>
64653
64654         * lib/canon-host.c: Filter through gnu indent and reword comments
64655         slightly.
64656         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
64657
64658 2005-09-13  Derek Price  <derek@ximbiot.com>
64659
64660         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
64661         failure.
64662         Reported by Jim Meyering  <jim@meyering.net>.
64663
64664 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64665
64666         * lib/base64.c: Typo.
64667         (base64_encode): Put b64str in initialized data section.
64668
64669 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
64670
64671         Merge glibc and coreutils changes into gnulib, plus a few
64672         extra fixes.
64673         * lib/md5.c: Use #error rather than a string.
64674         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
64675         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
64676         (__attribute__): Define to empty for non recent-GCC.
64677         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
64678         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
64679         Renamed from their non-__ counterparts, with new macros replacing
64680         them if not _LIBC.  Add __THROW attribute.
64681         (rol): Remove.
64682         (struct md5_ctx): Align buffer if using GCC.
64683         * lib/sha1.h (struct sha1_ctx): Likewise.
64684         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
64685         The old name was backwards.
64686         (NOTSWAP): Remove; not used.
64687         (rol): New macro, moved here from md5.h.
64688         (sha1_process_block): Remove a FIXME that doesn't make sense.
64689
64690 2005-09-12  Derek Price  <derek@ximbiot.com>
64691
64692         Return usable errors from canon-host.
64693         * lib/canon-host.h: New file.
64694         * lib/canon-host.c (canon_host): Wrap...
64695         (canon_host_r): ...this new function, which now relies exclusively on
64696         getaddrinfo.
64697         (ch_strerror): New function.
64698         (last_cherror): New global.
64699         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
64700         interface.
64701         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
64702         void *.
64703         (freeaddrinfo): Free ai->ai_canonname when set.
64704
64705 2005-09-12  Derek Price  <derek@ximbiot.com>
64706
64707         Make canon-host require getaddrinfo.
64708         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
64709         AC_LIBSOURCE canon-host.h.  Call...
64710         (gl_PREREQ_CANON_HOST): ...this new function, which requires
64711         gl_GETADDRINFO.
64712         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
64713
64714 2005-09-12  Derek Price  <derek@ximbiot.com>
64715
64716         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
64717         LGPL.
64718         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
64719
64720 2005-09-12  Derek Price  <derek@ximbiot.com>
64721
64722         * lib/gai_strerror.c: Include config.h when available.  Include
64723         getaddrinfo.h before other headers to test interface.
64724         Reported by Larry Jones <lawrence.jones@ugs.com>.
64725
64726 2005-09-12  Derek Price  <derek@ximbiot.com>
64727             Paul Eggert  <eggert@cs.ucla.edu>
64728
64729         * modules/glob (Files): Add glob-libc.h.
64730
64731 2005-09-12  Derek Price  <derek@ximbiot.com>
64732             Paul Eggert  <eggert@cs.ucla.edu>
64733
64734         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
64735         glob_.h, glob-libc.h.
64736         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
64737
64738 2005-09-12  Derek Price  <derek@ximbiot.com>
64739             Paul Eggert  <eggert@cs.ucla.edu>
64740
64741         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
64742         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
64743         protecting things that should be done only in gnulib contexts.
64744         * lib/glob_.h: New file, containing only the glob things needed for
64745         gnulib.
64746         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
64747         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
64748         (glob, globfree, glob_pattern_p): Now defined simply in terms of
64749         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
64750         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
64751         and to respect the namespace rules better.
64752
64753 2005-09-08  Simon Josefsson  <jas@extundo.com>
64754
64755         * modules/socklen: New file.
64756
64757 2005-09-08  Simon Josefsson  <jas@extundo.com>
64758
64759         * m4/socklen.m4: New file.
64760
64761 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64762
64763         * modules/utimens (Files): Add m4/utimbuf.m4, since
64764         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
64765         Reported by Sergey Poznyakoff.
64766
64767 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64768
64769         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
64770         definitions, since that's the preferred style in glibc.
64771         Fix a minor spacing issue, and update copyright notice to match
64772         glibc's.
64773
64774 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64775
64776         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
64777
64778 2005-09-06  Simon Josefsson  <jas@extundo.com>
64779
64780         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
64781         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
64782
64783 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64784
64785         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
64786         warning.
64787
64788 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64789
64790         * config/srclist.txt: Add glibc bug 1302.
64791
64792 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
64793
64794         Change bitset word type from unsigned int to unsigned long int,
64795         as this has better performance on typical 64-bit hosts.
64796         Port bitset code to hosts with unusual word sizes.
64797         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
64798         (build_collating_symbol):
64799         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
64800         argument is a bitset.  This is merely a style issue, but it makes
64801         it clearer that an entire array is expected.
64802         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
64803         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
64804         Port to the case where bitset_word is not the same as unsigned int.
64805         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
64806         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
64807         Likewise.
64808         * lib/regexec.c (check_dst_limits_calc_pos_1,
64809         check_subexp_matching_top):
64810         (build_trtable, group_nodes_into_DFAstates):
64811         Likewise.
64812         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
64813         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
64814         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
64815         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
64816         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
64817         * lib/regcomp.c (optimize_subexps, lower_subexp):
64818         Work even if bitset_word has holes in its bitwise representation.
64819         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
64820         * lib/regexec.c (check_dst_limits_calc_pos_1,
64821         check_subexp_matching_top):
64822         Likewise.
64823         * lib/regex_internal.c (re_string_reconstruct):
64824         Don't assume UCHAR_MAX == 255.
64825         * lib/regex_internal.h (bitset_set_all): Likewise.
64826         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
64827         All uses changed.
64828         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
64829         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
64830         All uses changed.
64831         (BITSET_WORD_MAX): New macro.
64832         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
64833         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
64834         (bitset_empty, bitset_copy):
64835         Prefer sizeof (bitset) to multiplying it out ourselves.
64836         (bitset_not_merge): Remove; unused.
64837         (bitset_contain): Return bool, not unsigned int with one bit on.
64838         All callers changed.
64839         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
64840         alignment than re_node_set; do this by defining a new internal
64841         type struct dests_alloc and using it to allocate memory.
64842
64843 2005-09-05  Bruno Haible  <bruno@clisp.org>
64844
64845         * gnulib-tool (func_import): Fix comparison in handling of symbolic
64846         links.
64847
64848 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
64849
64850         * modules/size_max (Makefile.am): Add size_max.h
64851
64852 2005-09-04  Derek Price  <derek@ximbiot.com>
64853
64854         * gnulib-tool (func_import): Fix reversed $symbolic logic.
64855
64856 2005-09-03  Simon Josefsson  <jas@extundo.com>
64857
64858         * gnulib-tool: Fix typo.
64859
64860 2005-09-03  Simon Josefsson  <jas@extundo.com>
64861
64862         * config/srclist.txt: Add glibc bug 1293.
64863
64864 2005-09-03  Derek Price  <derek@ximbiot.com>
64865
64866         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
64867         From Larry Jones <lawrence.jones@ugs.com>.
64868
64869 2005-09-02  Simon Josefsson  <jas@extundo.com>
64870
64871         * modules/socklen: New file.
64872
64873 2005-09-02  Simon Josefsson  <jas@extundo.com>
64874
64875         * modules/havelib: New module.
64876
64877         * modules/gettext, modules/iconv, modules/lock, modules/readline:
64878         Use havelib.
64879
64880 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
64881
64882         Check for arithmetic overflow when calculating sizes, to prevent
64883         some buffer-overflow issues.  These patches are conservative, in the
64884         sense that when I couldn't determine whether an overflow was possible,
64885         I inserted a run-time check.
64886         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
64887         macros.
64888         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
64889         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
64890         (re_xnrealloc, re_x2nrealloc): New inline functions.
64891         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
64892         parse_bracket_exp):
64893         (build_equiv_class, build_charclass): Check for arithmetic overflow
64894         in size expression calculations.
64895         * lib/regex_internal.c (re_string_realloc_buffers):
64896         (build_wcs_upper_buffer, re_node_set_add_intersect):
64897         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
64898         (re_dfa_add_node, register_state): Likewise.
64899         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
64900         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
64901         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
64902         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
64903
64904 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
64905
64906         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
64907         m4/ulonglong.m4.  Problem reported by Martin Lambers.
64908
64909 2005-09-02  Bruno Haible  <bruno@clisp.org>
64910
64911         Support for lib vs. lib64 distinction on biarch platforms.
64912         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
64913         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
64914         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
64915
64916 2005-09-02  Bruno Haible  <bruno@clisp.org>
64917
64918         * gnulib-tool (import): In the other first-use case, provide defaults
64919         as well.
64920
64921 2005-09-02  Bruno Haible  <bruno@clisp.org>
64922
64923         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
64924         patches not yet found in the latest gettext release.
64925
64926 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64927
64928         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
64929         to avoid a collision with bits/local_lim.h in glibc.
64930         All uses changed.  Problem reported by Dmitry V. Levin in
64931         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
64932
64933         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
64934         bugs in int versus size_t comparisons.
64935         (re_string_context_at): Fix bug where the code assumed that
64936         Idx is signed.
64937
64938         Use bool where appropriate.
64939         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
64940         All callers changed.
64941         (calc_eclosure_iter): Likewise, for ROOT arg.
64942         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
64943         (build_charclass_op): Likewise, for NON_MATCH arg.
64944         * lib/regex_internal.c (re_string_allocate, re_string_construct):
64945         (re_string_construct_common): Likewise, for ICASE arg.
64946         * lib/regexec.c (re_search_2_stub, re_search_stub):
64947         Likewise, for RET_LEN arg.
64948         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
64949         (set_regs): Likewise, for FL_BACKTRACK arg.
64950         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
64951         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
64952         (calc_eclosure_iter, parse_bracket_exp):
64953         Use bool for internal variables that are booleans.
64954         * lib/regexec.c (re_search_internal, check_matching,
64955         proceed_next_node):
64956         (set_regs, build_sifted_states, sift_states_bkref):
64957         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
64958         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
64959         (find_collation_sequence_value):
64960         Likewise.
64961         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
64962         (re_node_set_compare):
64963         Return bool, not int. All callers changed.
64964         * lib/regexec.c (check_halt_node_context, check_dst_limits):
64965         (build_trtable, check_node_accept): Likewise.
64966         * lib/regex_internal.h: Include stdbool.h.
64967
64968         Fix bugs uncovered when converting to bool.
64969         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
64970         failure instead of charging ahead blindly.
64971         * lib/regex_internal.c (register_state): Likewise.
64972         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
64973         for freeing internal storage.
64974         (group_nodes_into_DFA_states): Use unsigned int, not int, for
64975         bitset pieces used as boolean, to avoid undefined behavior
64976         on hosts that do int overflow checking.
64977
64978 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64979
64980         * config/srclist.txt: Add glibc bugs 1285-1287.
64981
64982 2005-09-01  Jim Meyering  <jim@meyering.net>
64983
64984         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
64985         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
64986         Require gl_STAT_MACROS, too.
64987
64988 2005-09-01  Bruno Haible  <bruno@clisp.org>
64989
64990         * gnulib-tool (import): In the first-use case, provide defaults.
64991
64992 2005-09-01  Bruno Haible  <bruno@clisp.org>
64993
64994         * gnulib-tool (func_import): Remove the .tmp files.
64995
64996 2005-09-01  Bruno Haible  <bruno@clisp.org>
64997
64998         * gnulib-tool (func_import): Fix handling of symbolic links.
64999
65000 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65001
65002         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
65003         old glibc regex code mishandles strings longer than 2**31 bytes.
65004         This patch fixes this when the regex code is used in gnulib
65005         (i.e., outside glibc).
65006
65007         This patch should not affect the use of the regex code inside
65008         glibc.  No doubt this problem also needs to be handled for glibc
65009         as well, but the result will be an incompatible change to the
65010         glibc ABI, and the old ABI will have to be supported too.  That
65011         can be the the subject for another patch.
65012
65013         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
65014         governing whether the rest of this patch is active.  By default,
65015         the macro is disabled and the patch has no effect.
65016         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
65017         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
65018         (struct re_pattern_buffer, re_search, re_search_2, re_match):
65019         (re_match_2, re_set_registers): Use the new types.
65020         * lib/regex_internal.h (Idx, re_hashval_t): New types.
65021         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
65022         New macros.
65023         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
65024         (re_string_context_at, bin_tree_t, re_dfastate_t):
65025         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
65026         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
65027         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
65028         (re_string_char_size_at, re_string_wchar_at):
65029         (re_string_elem_size_at):
65030         Use the new types and macros to port to 64-bit hosts.
65031         Use unsigned types for internal values, so that the code
65032         mostly works even for arrays larger than SSIZE_MAX.
65033         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
65034         (search_duplicated_node, calc_eclosure_iter, fetch_number):
65035         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
65036         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
65037         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
65038         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
65039         (calc_inveclosure, parse_dup_op, build_range_exp):
65040         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
65041         (fetch_number, create_token_tree, mark_opt_subexp):
65042         Likewise.
65043         * lib/regex_internal.c (re_string_construct_common,
65044         create_ci_newstate):
65045         (create_cd_newstate, re_string_allocate, re_string_construct):
65046         (re_string_realloc_buffers, build_wcs_upper_buffer):
65047         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
65048         (re_string_reconstruct, re_string_peek_byte_case):
65049         (re_string_fetch_byte_case, re_string_context_at):
65050         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
65051         (re_node_set_init_copy, re_node_set_add_intersect):
65052         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65053         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65054         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
65055         (re_acquire_state, re_acquire_state_context, register_state):
65056         Likewise.
65057         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
65058         search_cur_bkref_entry):
65059         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
65060         (re_search_internal, re_search_2_stub, re_search_stub)
65061         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
65062         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
65063         (update_cur_sifted_state, check_dst_limits):
65064         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
65065         (check_subexp_limits, sift_states_bkref, merge_state_array):
65066         (check_subexp_matching_top, get_subexp, get_subexp_sub):
65067         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
65068         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
65069         (expand_bkref_cache, check_node_accept_bytes):
65070         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
65071         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
65072         (acquire_init_state_context, check_halt_node_context):
65073         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
65074         (sift_states_backward, clean_state_log_if_needed):
65075         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
65076         (find_recover_state, transit_state_sb, transit_state_mb):
65077         (transit_state_bkref, build_trtable, match_ctx_clean):
65078         Likewise.
65079         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
65080         to work around an assumption that REG_MISSING is negative.
65081
65082         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
65083         (seek_collating_symbol_entry) [defined _LIBC]:
65084         (lookup_collation_sequence_value) [defined _LIBC]:
65085         (build_range_exp, build_collating_symbol) [defined _LIBC]:
65086         Use prototypes rather than old-style function definitions.
65087         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
65088         (transit_state_sb) [0]:
65089         (find_collation_sequence_value) [defined _LIBC]: Likewise.
65090
65091         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
65092         rm_eo.
65093
65094         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
65095         (optimize_subexps, lower_subexp):
65096         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
65097         since the signed shift might overflow.  Use 1u<<31 instead.
65098         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
65099         Likewise.
65100         * lib/regexec.c (check_dst_limits_calc_pos_1,
65101         check_subexp_matching_top): Likewise.
65102
65103         * lib/regcomp.c (optimize_subexps, lower_subexp):
65104         Use CHAR_BIT rather than 8, for clarity.
65105         * lib/regexec.c (check_dst_limits_calc_pos_1):
65106         (check_subexp_matching_top): Likewise.
65107         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
65108         have to worry about portability issues when shifting it left.
65109         Remove no-longer-needed test for table_size > 0.
65110         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
65111         in a word, as the resulting behavior is undefined.
65112         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
65113         in one case, a <= should have been an <, and in another case the
65114         whole test was missing.
65115         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
65116         the standard name CHAR_BIT.
65117         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
65118         this is not true on one's complement and signed-magnitude hosts.
65119
65120         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
65121         next_last_offset.
65122         (struct re_dfa_t): Remove unused member states_alloc.
65123         * lib/regcomp.c (init_dfa): Don't initialize unused members.
65124
65125 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65126
65127         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
65128         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
65129         and large-file glibc and in 32-bit large-file Solaris.
65130
65131 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65132
65133         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
65134         lengths fit in regoff_t; this isn't true if regoff_t is the same
65135         width as size_t.
65136         * lib/regex.c (re_search_internal): 5th arg is LAST_START
65137         (= START + RANGE) instead of RANGE.  This avoids overflow
65138         problems when regoff_t is the same width as size_t.
65139         All callers changed.
65140         (re_search_2_stub): Check for overflow when adding the
65141         sizes of the two strings.
65142         (re_search_stub): Check for overflow when adding START
65143         to RANGE; if it occurs, substitute the extreme value.
65144
65145 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65146
65147         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
65148
65149 2005-08-31  Jim Meyering  <jim@meyering.net>
65150
65151         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
65152         a pointer-to-const.
65153         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
65154         (register_state): Likewise.
65155         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
65156         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
65157         (group_nodes_into_DFAstates): Likewise.
65158
65159 2005-08-31  Jim Meyering  <jim@meyering.net>
65160
65161         * check-module: Add a FIXME comment.
65162
65163 2005-08-31  Eric Blake  <ebb9@byu.net>
65164
65165         * modules/unistd-safer (Files): Add unistd--.h.
65166         * modules/stdio-safer (Files): Add stdio--.h.
65167
65168 2005-08-31  Derek Price  <derek@ximbiot.com>
65169
65170         * lib/getdelim.c (getdelim): Return EOF on EOF.
65171         Reported by Larry Jones <lawrence.jones@ugs.com>.
65172
65173 2005-08-31  Bruno Haible  <bruno@clisp.org>
65174
65175         Avoid unnecessary diffs in the generated lib/Makefile.am.
65176         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
65177         the generated files.
65178         (func_import): Don't set cmd.
65179
65180 2005-08-31  Bruno Haible  <bruno@clisp.org>
65181
65182         * lib/strstr.c: Include <stddef.h>, for NULL.
65183         * lib/strcasestr.c: Likewise.
65184         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
65185
65186 2005-08-31  Bruno Haible  <bruno@clisp.org>
65187
65188         * gnulib-tool: New option --macro-prefix.
65189         (func_import): Use macro_prefix.
65190         (import): Handle option --macro-prefix.
65191
65192 2005-08-31  Bruno Haible  <bruno@clisp.org>
65193
65194         * gnulib-tool (import): Rename most ac_* variables to cached_*.
65195         Also use new variables cached_lgpl, cached_libtool.
65196
65197 2005-08-31  Bruno Haible  <bruno@clisp.org>
65198
65199         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
65200         always instantiating them.
65201
65202 2005-08-31  Bruno Haible  <bruno@clisp.org>
65203
65204         * gnulib-tool (func_import): Read the previous cached settings
65205         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
65206         earlier added by gnulib but are now dropped. Warn when a gnulib file
65207         overwrites a non-gnulib file.
65208
65209 2005-08-31  Bruno Haible  <bruno@clisp.org>
65210
65211         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
65212         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
65213         projects that don't keep autogenerated files in CVS. Put into
65214         actioncmd only the specified modules, not the transitive closure.
65215
65216 2005-08-31  Bruno Haible  <bruno@clisp.org>
65217
65218         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
65219         Create directories that shall be filled.
65220         (import): Don't look for gl_* macros in configure.ac. Recurse across
65221         all directories containing a gnulib-cache.m4 files, if meaningful.
65222
65223 2005-08-31  Bruno Haible  <bruno@clisp.org>
65224
65225         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
65226         (import): Set seen_libtool when we see gl_LIBTOOL.
65227
65228 2005-08-31  Bruno Haible  <bruno@clisp.org>
65229
65230         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
65231         declaration macro definitions from generated gnulib.m4.
65232
65233 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
65234
65235         * lib/iconvme.h: Add prototype for iconv_alloc.
65236
65237 2005-08-29  Simon Josefsson  <jas@extundo.com>
65238
65239         * lib/iconvme.c: Fix errno.
65240
65241 2005-08-29  Bruno Haible  <bruno@clisp.org>
65242
65243         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
65244         that it works when the directory contains spaces.
65245
65246 2005-08-29  Bruno Haible  <bruno@clisp.org>
65247
65248         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
65249
65250 2005-08-29  Bruno Haible  <bruno@clisp.org>
65251
65252         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
65253         Emit more advice.
65254
65255 2005-08-29  Bruno Haible  <bruno@clisp.org>
65256         and Stepan Kasal  <kasal@ucw.cz>
65257
65258         * check-module: If more parameters are given, check each of them
65259         separately; add more exceptions, as noted by Jim Meyering.
65260         (check_module): New procedure.
65261         (%exempt_header): Now contains all exceptions.
65262
65263 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
65264
65265         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
65266
65267 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
65268
65269         * lib/iconvme.c: Split iconv_string into iconv_alloc.
65270
65271 2005-08-28  Bruno Haible  <bruno@clisp.org>
65272
65273         * m4/gnulib-tool.m4: New file.
65274
65275 2005-08-27  Jim Meyering  <jim@meyering.net>
65276
65277         * modules/unistd-safer (Files): Add pipe-safer.c.
65278         * modules/fcntl-safer (Files): Add creat-safer.c.
65279
65280 2005-08-27  Jim Meyering  <jim@meyering.net>
65281
65282         * m4/stdlib-safer.m4: New file.  From coreutils.
65283         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
65284         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
65285         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
65286         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
65287         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
65288
65289 2005-08-27  Jim Meyering  <jim@meyering.net>
65290
65291         * lib/fopen-safer.c: Merge minor changes from coreutils.
65292         * lib/dup-safer.c: Likewise.
65293         * lib/fd-safer.c: Likewise.
65294
65295         Merge from coreutils.
65296         * lib/stdio--.h: New file.
65297         * lib/stdlib--.h: New file.
65298         * lib/mkstemp-safer.c: New file.
65299
65300         GNU tar needs these.
65301         * lib/pipe-safer.c: New file.
65302         * lib/creat-safer.c: New file.
65303         * lib/fcntl--.h (creat): Define to creat_safer.
65304         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
65305         * lib/unistd--.h (pipe): Define to pipe_safer.
65306         * lib/unistd-safer.h: Declare pipe_safer.
65307
65308 2005-08-26  Simon Josefsson  <jas@extundo.com>
65309
65310         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
65311         Haible <bruno@clisp.org>.
65312
65313 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
65314
65315         * lib/regex_internal.h: Remove all references to
65316         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
65317         or better.
65318         (bitset_not, bitset_merge, bitset_not_merge):
65319         (bitset_mask, re_string_allocate, re_string_construct):
65320         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
65321         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
65322         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
65323         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
65324         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65325         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65326         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
65327         (re_acquire_state_context):
65328         Remove unnecessary forward decls.
65329         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
65330         Put __attribute at function definition,
65331         now that the function decl has been removed.
65332         * lib/regex_internal.c (re_string_peek_byte_case):
65333         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
65334         Likewise.
65335
65336 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
65337
65338         * m4/regex.m4: Add AC_PREREQ(2.50).
65339         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
65340
65341 2005-08-25  Simon Josefsson  <jas@extundo.com>
65342
65343         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
65344         __fsetlocking.
65345
65346 2005-08-25  Simon Josefsson  <jas@extundo.com>
65347
65348         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
65349         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
65350         GLIBC specific code.
65351
65352 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65353
65354         Make regex safe for g++.  This fixes one real bug (an "err"
65355         that should have been "*err").  g++ problem reported by
65356         Sam Steingold.
65357         * lib/regex_internal.h (re_calloc): New macro, consistent with
65358         re_malloc etc.  All callers of calloc changed to use re_calloc.
65359         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
65360         not int.  All callers changed.
65361         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
65362         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
65363         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
65364         (find_recover_state): Change "err" to "*err"; this fixes what
65365         appears to be a real bug.
65366         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
65367         versus int.
65368
65369 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65370
65371         * modules/regex (Depends-on): Add malloc, since the code
65372         assumes that !malloc(0) means failure.
65373
65374 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65375
65376         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
65377
65378         alloca modernization/simplification for regex.
65379         * lib/regex.c: Remove portability cruft for alloca.  This no longer
65380         needs to be at the start of the file, and can be moved into
65381         regex_internal.h and simplified.
65382         * lib/regex_internal.h: Include <alloca.h>.
65383         (__libc_use_alloca) [!defined _LIBC]: New macro.
65384         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
65385         now works outside glibc.
65386
65387 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65388
65389         * config/srclist.txt: Add glibc bugs 1241, 1245.
65390
65391 2005-08-25  Jim Meyering  <jim@meyering.net>
65392
65393         * lib/open-safer.c: Include <config.h>.
65394         Otherwise, we'd lose LARGEFILE support in any file using
65395         e.g. "fcntl--.h"
65396
65397 2005-08-25  Bruno Haible  <bruno@clisp.org>
65398
65399         * m4/minmax.m4: Require autoconf 2.52.
65400         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
65401         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
65402         alternatives of translit over the alphabet.
65403         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
65404
65405 2005-08-24  Simon Josefsson  <jas@extundo.com>
65406
65407         * tests/test-getpass.c: New file.
65408
65409 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65410
65411         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
65412         for GNU regex features.
65413
65414 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65415
65416         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
65417         * lib/regex.h (regerror): Likewise.
65418
65419         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
65420         requires this.  (The code never needed it.)
65421
65422         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
65423         All uses of recently-renamed identifiers changed to use the new,
65424         POSIX-compliant names.  The code will build and run just fine
65425         without these changes, but it's better to eat our own dog food
65426         and use the standard-conforming names.
65427
65428         * lib/regex.h: Fix a multitude of POSIX name space violations.
65429         These changes have an effect only for programs that define
65430         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
65431         do not change anything for programs compiled in the normal way.
65432         Also, there is no effect on the ABI.
65433
65434         (_REGEX_SOURCE): New macro.
65435         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
65436         defined and _GNU_SOURCE is not; this fixes a name space violation.
65437
65438         Rename the following macros to obey POSIX requirements.
65439         The old names are still visible as macros if _REGEX_SOURCE is defined.
65440         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
65441         RE_BACKSLASH_ESCAPE_IN_LISTS.
65442         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
65443         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
65444         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
65445         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
65446         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
65447         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
65448         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
65449         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
65450         (REG_INTERVALS): renamed from RE_INTERVALS.
65451         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
65452         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
65453         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
65454         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
65455         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
65456         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
65457         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
65458         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
65459         RE_UNMATCHED_RIGHT_PAREN_ORD.
65460         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
65461         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
65462         (REG_DEBUG): renamed from RE_DEBUG.
65463         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
65464         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
65465         unusual, since we can't clash with the POSIX REG_ICASE.
65466         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
65467         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
65468         (REG_NO_SUB): renamed from RE_NO_SUB.
65469         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
65470         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
65471         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
65472         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
65473         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
65474         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
65475         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
65476         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
65477         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
65478         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
65479         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
65480         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
65481         RE_SYNTAX_POSIX_MINIMAL_BASIC.
65482         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
65483         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
65484         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
65485         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
65486         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
65487         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
65488         (REG_FIXED): Renamed from REGS_FIXED.
65489         (REG_NREGS): Renamed from RE_NREGS.
65490
65491         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
65492         of other REG_* macros, since POSIX says the user is allowed to
65493         #undef these macros selectively.
65494
65495         (reg_errcode_t): Update comment stating what other tables need
65496         to be consistent.
65497
65498         Rename the following enum values to obey POSIX requirements.
65499         The old names are still visible as macros.
65500         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
65501         is not defined, since GNU is supposed to be a superset of POSIX as
65502         much as possible, and since we want reg_errcode_t to be a signed
65503         type for implementation consistency.
65504         (_REG_NOERROR): Renamed from REG_NOERROR.
65505         (_REG_NOMATCH): Renamed from REG_NOMATCH.
65506         (_REG_BADPAT): Renamed from REG_BADPAT.
65507         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
65508         (_REG_ECTYPE): Renamed from REG_ECTYPE.
65509         (_REG_EESCAPE): Renamed from REG_EESCAPE.
65510         (_REG_ESUBREG): Renamed from REG_ESUBREG.
65511         (_REG_EBRACK): Renamed from REG_EBRACK.
65512         (_REG_EPAREN): Renamed from REG_EPAREN.
65513         (_REG_EBRACE): Renamed from REG_EBRACE.
65514         (_REG_BADBR): Renamed from REG_BADBR.
65515         (_REG_ERANGE): Renamed from REG_ERANGE.
65516         (_REG_ESPACE): Renamed from REG_ESPACE.
65517         (_REG_BADRPT): Renamed from REG_BADRPT.
65518         (_REG_EEND): Renamed from REG_EEND.
65519         (_REG_ESIZE): Renamed from REG_ESIZE.
65520         (_REG_ERPAREN): Renamed from REG_ERPAREN.
65521         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
65522         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
65523         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
65524         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
65525
65526         (_REG_RE_NAME, _REG_RM_NAME): New macros.
65527         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
65528         changed.  But support the old name if the new one is not defined
65529         and if _REGEX_SOURCE.
65530
65531         Change the following member names in struct re_pattern_buffer.
65532         The old names are still supported if !_REGEX_SOURCE.
65533         The new names are always supported, regardless of _REGEX_SOURCE.
65534         (re_buffer): Renamed from buffer.
65535         (re_allocated): Renamed from allocated.
65536         (re_used): Renamed from used.
65537         (re_syntax): Renamed from syntax.
65538         (re_fastmap): Renamed from fastmap.
65539         (re_translate): Renamed from translate.
65540         (re_can_be_null): Renamed from can_be_null.
65541         (re_regs_allocated): Renamed from regs_allocated.
65542         (re_fastmap_accurate): Renamed from fastmap_accurate.
65543         (re_no_sub): Renamed from no_sub.
65544         (re_not_bol): Renamed from not_bol.
65545         (re_not_eol): Renamed from not_eol.
65546         (re_newline_anchor): Renamed from newline_anchor.
65547
65548         Change the following member names in struct re_registers.
65549         The old names are still supported if !_REGEX_SOURCE.
65550         The new names are always supported, regardless of _REGEX_SOURCE.
65551         (rm_num_regs): Renamed from num_regs.
65552         (rm_start): Renamed from start.
65553         (rm_end): Renamed from end.
65554
65555         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
65556         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
65557         Prepend __ to parameter names.
65558
65559         Undo yesterday's changes.
65560
65561 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65562
65563         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
65564         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
65565         lib/regex.c.
65566
65567 2005-08-24  Jim Meyering  <jim@meyering.net>
65568
65569         Sync from coreutils.
65570         * m4/fcntl-safer.m4: New file.
65571
65572         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
65573         and object files for this module.
65574
65575 2005-08-24  Jim Meyering  <jim@meyering.net>
65576
65577         Sync from coreutils.
65578         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
65579
65580 2005-08-24  Jim Meyering  <jim@meyering.net>
65581
65582         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
65583         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
65584
65585 2005-08-24  Jim Meyering  <jim@meyering.net>
65586
65587         * modules/fcntl-safer: New module.
65588         * modules/fts (Depends-on): Add fcntl-safer.
65589         * MODULES.html.sh (File descriptor based Input/Output):
65590         Add fcntl-safer.
65591
65592 2005-08-24  Bruno Haible  <bruno@clisp.org>
65593
65594         Support for unit test modules.
65595         * modules/README: Mention tests modules.
65596         * modules/TEMPLATE-TESTS: New file.
65597         * gnulib-tool: New options --extract-tests-module, --with-tests and
65598         --tests-base (unused for the moment).
65599         (testsbase, inctests): New variables.
65600         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
65601         (func_verify_module): Exclude TEMPLATE-TESTS.
65602         (func_verify_nontests_module, func_verify_tests_module): New functions.
65603         (func_get_dependencies): Add implicit dependency for tests modules.
65604         (func_get_tests_module): New function.
65605         (func_modules_transitive_closure): When --with-tests was specified,
65606         include the unit tests as well, unless explicitly avoided.
65607         (func_emit_lib_Makefile_am): Ignore the tests modules here.
65608         (func_emit_tests_Makefile_am): New function.
65609         (func_create_testdir): When --with-tests was specified, emit a
65610         tests/ directory.
65611         * MODULES.html.sh (Future developments): Update.
65612
65613 2005-08-24  Bruno Haible  <bruno@clisp.org>
65614
65615         * modules/tls-tests: New file.
65616         * tests/test-tls.c: New file, from GNU gettext.
65617
65618 2005-08-24  Bruno Haible  <bruno@clisp.org>
65619
65620         * modules/lock-tests: New file.
65621         * tests/test-lock.c: New file, from GNU gettext.
65622
65623 2005-08-24  Bruno Haible  <bruno@clisp.org>
65624
65625         * lib/lock.h: Add multiple inclusion guard.
65626         * lib/tls.h: Add multiple inclusion guard.
65627
65628 2005-08-24  Bruno Haible  <bruno@clisp.org>
65629
65630         * gnulib-tool: Add support for the --aux-dir option to
65631         --create-testdir, --create-megatestdir, --test, --megatest.
65632         (func_create_testdir, func_create_megatestdir): Optionally emit a
65633         AC_CONFIG_AUX_DIR directive.
65634         (create-testdir, create-megatestdir, test, megatest): Provide a
65635         default value for $auxdir.
65636
65637 2005-08-24  Bruno Haible  <bruno@clisp.org>
65638
65639         * gnulib-tool (import): Use compound statement instead of subshell
65640         where possible.
65641
65642 2005-08-24  Bruno Haible  <bruno@clisp.org>
65643
65644         * gnulib-tool (import): Change --aux-dir default to "build-aux".
65645
65646 2005-08-24  Bruno Haible  <bruno@clisp.org>
65647
65648         * gnulib-tool (func_version): Update.
65649
65650 2005-08-24  Bruno Haible  <bruno@clisp.org>
65651
65652         * gnulib-tool (func_import, func_create_testdir,
65653         func_create_megatestdir): Quote all autoconf macro arguments.
65654
65655 2005-08-24  Bruno Haible  <bruno@clisp.org>
65656
65657         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
65658         option --force, because --force causes the aclocal.m4 of each
65659         subdirectory to be newer than the corresponding config.h.in.
65660
65661 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65662
65663         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
65664         All contents moved to gl_REGEX.
65665         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
65666         assume that it does.
65667
65668 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65669
65670         * lib/regex.h (REG_NOSYS)
65671         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
65672         Define, since POSIX requires it as of 2001.
65673         (_REG_ENOSYS)
65674         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
65675         New private symbol, used to keep the enum signed in all cases.
65676         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
65677         Youngman in
65678         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
65679
65680         * lib/regex_internal.c (re_string_skip_chars, register_state):
65681         (calc_state_hash):
65682         Remove forward decls; no longer needed now that we use prototypes.
65683         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
65684         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
65685         (clean_state_log_if_needed): Likewise.
65686
65687 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65688
65689         * config/srclist.txt: Add glibc bugs 1231-1233.
65690
65691 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65692
65693         Fix problems reported by Sam Steingold in
65694         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
65695         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
65696         assumed that reg_errcode_t is a signed type, which is not
65697         necessarily true if _XOPEN_SOURCE is not defined.
65698         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
65699         since some compilers warn about it otherwise.
65700
65701 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65702
65703         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
65704         (init_word_char, create_initial_state, duplicate_node_closure):
65705         (fetch_token, peek_token_bracket, build_range_exp):
65706         (build_collating_symbol): Remove forward decls; no longer needed
65707         now that we use prototypes.
65708
65709         * lib/regcomp.c:
65710         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
65711         (re_compile_fastmap_iter, regcomp, regerror, regfree):
65712         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
65713         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
65714         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
65715         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
65716         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
65717         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
65718         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
65719         (build_range_exp, build_collating_symbol, parse_bracket_exp):
65720         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
65721         (build_charclass, build_charclass_op, fetch_number, create_tree):
65722         (create_token_tree, mark_opt_subexp, duplicate_tree):
65723         Use prototypes rather than old-style definitions.
65724
65725         * lib/regex_internal.c:
65726         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
65727         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
65728         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
65729         (re_string_reconstruct, re_string_peek_byte_case):
65730         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
65731         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
65732         (re_node_set_init_copy, re_node_set_add_intersect):
65733         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65734         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65735         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
65736         (re_acquire_state, re_acquire_state_context, register_state):
65737         (create_ci_newstate, create_cd_newstate, free_state):
65738         Likewise.
65739         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
65740         re_search_2):
65741         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
65742         (re_search_internal, prune_impossible_nodes):
65743         (acquire_init_state_context, check_matching, static):
65744         (check_halt_node_context, check_halt_state_context, proceed_next_node):
65745         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
65746         (update_regs, sift_states_backward, build_sifted_states):
65747         (clean_state_log_if_needed, merge_state_array):
65748         (update_cur_sifted_state, add_epsilon_src_nodes):
65749         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
65750         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
65751         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
65752         (find_recover_state, check_subexp_matching_top, transit_state_mb):
65753         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
65754         (check_arrival, check_arrival_add_next_nodes):
65755         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
65756         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
65757         (check_node_accept_bytes, check_node_accept, extend_buffers):
65758         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
65759         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
65760         (sift_ctx_init):
65761         Likewise.
65762
65763         * lib/regex_internal.h:
65764         (re_string_allocate, re_string_construct, re_string_reconstruct):
65765         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
65766         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
65767         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
65768         (re_string_context_at, re_string_peek_byte_case):
65769         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
65770         is defined, since we now use prototypes always.
65771
65772         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
65773         C89 or better.  All uses removed.
65774
65775 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65776
65777         * config/srclist.txt: Add glibc bugs 1220-1227.
65778
65779 2005-08-20  Jim Meyering  <jim@meyering.net>
65780
65781         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
65782         of unused local, dfa.
65783
65784 2005-08-20  Bruno Haible  <bruno@clisp.org>
65785
65786         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
65787
65788 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65789
65790         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
65791         (re_node_set_insert_last, re_dfa_add_node):
65792         Rename local variables to avoid GCC shadowing warnings.
65793
65794 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65795
65796         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
65797         [defined lint]: Suppress bogus uninitialized-variable warnings.
65798
65799         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
65800         and let the caller return REG_ESPACE if out of space.  This
65801         removes an uninitialied-variable warning with GCC 4.0.1, and also
65802         avoids taking the address of a local variable.  All callers
65803         changed.
65804
65805 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65806
65807         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
65808         $LIBCSRC/posix/regexec.c.
65809         Add glibc bug 1217 for regcomp.c.
65810
65811 2005-08-19  Jim Meyering  <jim@meyering.net>
65812
65813         * lib/regexec.c (proceed_next_node): Redo local variables to
65814         avoid GCC shadowing warnings.
65815
65816 2005-08-18  Bruno Haible  <bruno@clisp.org>
65817
65818         * lib/strstr.c (strstr): Fix return value in multibyte case.
65819         * lib/strcasestr.c (strcasestr): Likewise.
65820
65821 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65822
65823         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
65824
65825 2005-08-17  Jim Meyering  <jim@meyering.net>
65826
65827         Make the %s format (seconds since the epoch) work for a negative
65828         number and when used with a zero-padded field width, e.g. %015s.
65829
65830         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
65831         label so that it precedes the code to set `digits'.  Otherwise,
65832         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
65833         print `00-22'.  Now, it prints `-0022', as it should.
65834
65835 2005-08-17  Bruno Haible  <bruno@clisp.org>
65836
65837         * modules/strstr (Files): Add m4/mbrtowc.m4.
65838         (Depends-on): Add mbuiter.
65839
65840 2005-08-17  Bruno Haible  <bruno@clisp.org>
65841
65842         * modules/strcasestr: New file.
65843         * MODULES.html.sh (String handling, based on ANSI C 89): Add
65844         strcasestr.
65845
65846 2005-08-17  Bruno Haible  <bruno@clisp.org>
65847
65848         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
65849
65850 2005-08-17  Bruno Haible  <bruno@clisp.org>
65851
65852         * modules/mbuiter: New file.
65853         * MODULES.html.sh (Extended multibyte and wide character utilities):
65854         Add mbuiter.
65855
65856 2005-08-17  Bruno Haible  <bruno@clisp.org>
65857
65858         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
65859         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
65860
65861 2005-08-17  Bruno Haible  <bruno@clisp.org>
65862
65863         * m4/strcasestr.m4: New file.
65864
65865 2005-08-17  Bruno Haible  <bruno@clisp.org>
65866
65867         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
65868         * lib/strstr.c: Completely rewritten, with multibyte locale support.
65869
65870 2005-08-17  Bruno Haible  <bruno@clisp.org>
65871
65872         * lib/strcasestr.h: New file.
65873         * lib/strcasestr.c: New file.
65874
65875 2005-08-17  Bruno Haible  <bruno@clisp.org>
65876
65877         * lib/strcasecmp.c: Use mbuiter.h.
65878
65879 2005-08-17  Bruno Haible  <bruno@clisp.org>
65880
65881         * lib/mbuiter.h: New file.
65882
65883 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
65884
65885         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
65886         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
65887         and gl_GETOPT are both invoked via different paths (as happens
65888         with GNU tar CVS because it uses both argp and getopt), the former
65889         wins.
65890
65891 2005-08-16  Bruno Haible  <bruno@clisp.org>
65892
65893         * modules/tls: New file.
65894         * MODULES.html.sh (Multithreading): Add tls.
65895
65896 2005-08-16  Bruno Haible  <bruno@clisp.org>
65897
65898         * modules/strnlen1: New file.
65899         * MODULES.html.sh (String handling): Add strnlen1.
65900
65901 2005-08-16  Bruno Haible  <bruno@clisp.org>
65902
65903         * modules/strcase (Files): Add m4/mbrtowc.m4.
65904         (Depends-on): Add strnlen1, mbchar.
65905
65906 2005-08-16  Bruno Haible  <bruno@clisp.org>
65907
65908         * modules/mbiter: New file.
65909         * MODULES.html.sh (Extended multibyte and wide character utilities):
65910         Add mbiter.
65911
65912 2005-08-16  Bruno Haible  <bruno@clisp.org>
65913
65914         * modules/mbfile: New file.
65915         * MODULES.html.sh (Extended multibyte and wide character utilities):
65916         Add mbfile.
65917
65918 2005-08-16  Bruno Haible  <bruno@clisp.org>
65919
65920         * modules/mbchar: New file.
65921         * MODULES.html.sh (Extended multibyte and wide character utilities):
65922         New section.
65923
65924 2005-08-16  Bruno Haible  <bruno@clisp.org>
65925
65926         * m4/tls.m4: New file, from GNU gettext.
65927
65928 2005-08-16  Bruno Haible  <bruno@clisp.org>
65929
65930         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
65931         always.
65932         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
65933
65934 2005-08-16  Bruno Haible  <bruno@clisp.org>
65935
65936         * m4/mbiter.m4: New file.
65937
65938 2005-08-16  Bruno Haible  <bruno@clisp.org>
65939
65940         * m4/mbfile.m4: New file.
65941
65942 2005-08-16  Bruno Haible  <bruno@clisp.org>
65943
65944         * m4/mbchar.m4: New file.
65945
65946 2005-08-16  Bruno Haible  <bruno@clisp.org>
65947
65948         * lib/tls.h: New file, from GNU gettext.
65949         * lib/tls.c: New file, from GNU gettext.
65950
65951 2005-08-16  Bruno Haible  <bruno@clisp.org>
65952
65953         * lib/strnlen1.h: New file.
65954         * lib/strnlen1.c: New file.
65955
65956 2005-08-16  Bruno Haible  <bruno@clisp.org>
65957
65958         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
65959         (mbi_init): Update.
65960         (mbi_avail, mbi_advance): Let the iteration end before the terminating
65961         NUL byte, not after it.
65962
65963 2005-08-16  Bruno Haible  <bruno@clisp.org>
65964
65965         * lib/strcase.h (strcasecmp): Add note in comments.
65966         * lib/strncasecmp.c: Use code from strcasecmp.c.
65967         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
65968         (strcasecmp): Work correctly in multibyte locales.
65969
65970 2005-08-16  Bruno Haible  <bruno@clisp.org>
65971
65972         * lib/mbiter.h: New file.
65973
65974 2005-08-16  Bruno Haible  <bruno@clisp.org>
65975
65976         * lib/mbfile.h: New file.
65977
65978 2005-08-16  Bruno Haible  <bruno@clisp.org>
65979
65980         * lib/mbchar.h: New file.
65981         * lib/mbchar.c: New file.
65982
65983 2005-08-16  Bruno Haible  <bruno@clisp.org>
65984
65985         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
65986         the valid ones. Makes the comparison operations transitive:
65987         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
65988         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
65989
65990 2005-08-15  Simon Josefsson  <jas@extundo.com>
65991
65992         * modules/ssize_t (License): Change to 'unlimited'.
65993
65994         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
65995
65996 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65997
65998         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
65999         Add comments for each pending glibc patch.
66000
66001 2005-08-15  Bruno Haible  <bruno@clisp.org>
66002
66003         * lib/regex.h (__restrict_arr): Don't define to __restrict if
66004         __cplusplus is defined.
66005
66006 2005-08-14  Jim Meyering  <jim@meyering.net>
66007
66008         Sync from coreutils.
66009
66010         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
66011         Use the hash-table-based cycle-detection code not just when
66012         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
66013         Reported by James Youngman in
66014         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
66015         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
66016         FTS_TIGHT_CYCLE_CHECK.
66017         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
66018         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
66019         once again.
66020         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
66021         * lib/fts.c (fd_safer): Remove decl.
66022         Include fcntl--.h rather than unistd-safer.h
66023         (fts_safe_changedir): Don't call fd_safer; no longer needed
66024         now that we include fcntl--.h.
66025
66026 2005-08-12  Simon Josefsson  <jas@extundo.com>
66027
66028         * modules/getndelim2: Use ssize_t module.
66029         * modules/getnline: Likewise.
66030         * modules/safe-read: Likewise.
66031         * modules/xreadlink: Likewise.
66032
66033         * modules/ssize_t: New file.
66034
66035 2005-08-12  Simon Josefsson  <jas@extundo.com>
66036
66037         * m4/readline.m4: Look for termcap, curses or ncurses if required.
66038
66039 2005-08-12  Simon Josefsson  <jas@extundo.com>
66040
66041         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66042         ssize_t.
66043
66044 2005-08-12  Simon Josefsson  <jas@extundo.com>
66045
66046         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
66047         readline, getdelim and check_version.
66048         (Support for systems lacking ISO C 99: Sizes of integer types):
66049         Add size_max.
66050
66051 2005-08-12  Bruno Haible  <bruno@clisp.org>
66052
66053         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
66054
66055 2005-08-11  Simon Josefsson  <jas@extundo.com>
66056
66057         * modules/readline: New file.
66058
66059         * modules/strnlen (Files): Add strnlen.h.
66060
66061 2005-08-11  Simon Josefsson  <jas@extundo.com>
66062
66063         * m4/readline.m4: New file.
66064
66065 2005-08-11  Simon Josefsson  <jas@extundo.com>
66066
66067         * lib/readline.h, readline.c: New file.
66068
66069 2005-08-11  Simon Josefsson  <jas@extundo.com>
66070
66071         * doc/gnulib.texi (Initial import, Finishing touches): Mention
66072         gl_AVOID.
66073
66074 2005-08-11  Bruno Haible  <bruno@clisp.org>
66075
66076         * lib/strnlen.h (strnlen): Change parameter name to match comment.
66077
66078 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
66079
66080         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
66081
66082 2005-08-10  Simon Josefsson  <jas@extundo.com>
66083
66084         * tests/test-iconvme.c: New file.
66085
66086 2005-08-10  Simon Josefsson  <jas@extundo.com>
66087
66088         * m4/strnlen.m4: New file.
66089
66090         * m4/strndup.m4: Don't check for strnlen declaration, done in
66091         strnlen.m4.
66092
66093 2005-08-10  Simon Josefsson  <jas@extundo.com>
66094
66095         * lib/strndup.c: Use strnlen.h.
66096
66097         * lib/strnlen.h: New file.
66098
66099 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66100
66101         * README: Typos.
66102
66103 2005-08-02  Simon Josefsson  <jas@extundo.com>
66104
66105         * modules/readline: New file.
66106
66107 2005-08-02  Simon Josefsson  <jas@extundo.com>
66108
66109         * modules/getdelim: New file.
66110
66111         * modules/getline: Rewrite, don't use getndelim2.
66112
66113 2005-08-02  Simon Josefsson  <jas@extundo.com>
66114
66115         * m4/getline.m4: Separate out getdelim stuff into separate module.
66116
66117         * m4/getdelim.m4: New file.
66118
66119 2005-08-02  Simon Josefsson  <jas@extundo.com>
66120
66121         * lib/getline.h, getline.c: Rewrite.
66122
66123         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
66124
66125 2005-07-31  Bruno Haible  <bruno@clisp.org>
66126
66127         * lib/lock.h (gl_lock_initializer): New macro.
66128         (gl_lock_define_initialized): Use it.
66129         (gl_rwlock_initializer): New macro.
66130         (gl_rwlock_define_initialized): Use it.
66131         (gl_recursive_lock_initializer): New macro.
66132         (gl_recursive_lock_define_initialized): Use it.
66133
66134 2005-07-30  Karl Berry  <karl@gnu.org>
66135
66136         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
66137         Report from Ben Pfaff, regarding getopt.
66138
66139 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
66140
66141         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
66142         normal way.
66143         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
66144         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
66145         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
66146         (gl_GETOPT): Use the new macros.  Most of the implementation
66147         is moved to the new macros.  This is for programs like Emacs
66148         that don't want all the functionality of gl_GETOPT.
66149
66150 2005-07-26  Bruno Haible  <bruno@clisp.org>
66151
66152         * m4/lock.m4: Update from GNU gettext.
66153
66154 2005-07-26  Bruno Haible  <bruno@clisp.org>
66155
66156         * lib/lock.h: Update from GNU gettext.
66157         * lib/lock.c: Update from GNU gettext.
66158
66159 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
66160
66161         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
66162         obsolescent AC_TRY_RUN.  Include the default includes files, for
66163         'exit'.
66164
66165 2005-07-24  Bruno Haible  <bruno@clisp.org>
66166
66167         * modules/visibility: New file.
66168         * MODULES.html.sh (Misc): Add visibility.
66169
66170 2005-07-24  Bruno Haible  <bruno@clisp.org>
66171
66172         * m4/visibility.m4: New file.
66173
66174 2005-07-24  Bruno Haible  <bruno@clisp.org>
66175
66176         * doc/visibility.texi: New file.
66177
66178 2005-07-22  Bruno Haible  <bruno@clisp.org>
66179
66180         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
66181         $(ALLOCA_H), redundant through BUILT_SOURCES.
66182         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
66183         redundant through BUILT_SOURCES.
66184         * modules/byteswap (Makefile.am): Remove explicit dependency on
66185         $(BYTESWAP_H), redundant through BUILT_SOURCES.
66186         * modules/fnmatch (Makefile.am): Remove explicit dependency on
66187         $(FNMATCH_H), redundant through BUILT_SOURCES.
66188         * modules/getopt (Makefile.am): Remove explicit dependency on
66189         $(GETOPT_H), redundant through BUILT_SOURCES.
66190         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
66191         redundant through BUILT_SOURCES.
66192         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
66193         redundant through BUILT_SOURCES.
66194         * modules/stdbool (Makefile.am): Remove explicit dependency on
66195         $(STDBOOL_H), redundant through BUILT_SOURCES.
66196         * modules/stdint (Makefile.am): Remove explicit dependency on
66197         $(STDINT_H), redundant through BUILT_SOURCES.
66198         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
66199         Remove explicit dependency on $(SYSEXITS_H).
66200         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
66201
66202 2005-07-18  Simon Josefsson  <jas@extundo.com>
66203
66204         * lib/check-version.c (check_version): Accept identical versions too.
66205
66206 2005-07-18  Bruno Haible  <bruno@clisp.org>
66207
66208         * modules/lock: New file.
66209         * MODULES.html.sh (Multithreading): New section.
66210
66211 2005-07-18  Bruno Haible  <bruno@clisp.org>
66212
66213         * m4/lock.m4: New file, from GNU gettext.
66214
66215 2005-07-18  Bruno Haible  <bruno@clisp.org>
66216
66217         * lib/lock.h: New file, from GNU gettext.
66218         * lib/lock.c: New file, from GNU gettext.
66219
66220 2005-07-18  Bruno Haible  <bruno@clisp.org>
66221
66222         * lib/lock.h (gl_once_t): New type.
66223         (gl_once_define, gl_once): New macros.
66224         * lib/lock.c (fresh_once): New variable.
66225         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
66226         functions.
66227
66228 2005-07-16  Simon Josefsson  <jas@extundo.com>
66229
66230         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
66231         workaround, suggested by Bruno.
66232
66233 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
66234
66235         * modules/xalloc (Depends-on): Add xalloc-die.
66236         * modules/xvasprintf (Depends-on): Add xalloc-die.
66237
66238 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
66239
66240         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
66241         with a minor change.
66242
66243 2005-07-15  Bruno Haible  <bruno@clisp.org>
66244
66245         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
66246         When using lib/poll.c, define poll as rpl_poll.
66247
66248 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
66249
66250         * modules/argp (Depends-on): Remove unlocked-io.
66251
66252 2005-07-14  Derek Price  <derek@ximbiot.com>
66253
66254         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
66255         for glob symlink bug.
66256
66257 2005-07-14  Bruno Haible  <bruno@clisp.org>
66258
66259         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
66260         Instead, test for *_unlocked function declarations directly.
66261
66262 2005-07-11  Simon Josefsson  <jas@extundo.com>
66263
66264         * modules/size_max: New file.
66265
66266         * modules/xsize: Depend on size_max module for size_max.m4.
66267
66268 2005-07-11  Simon Josefsson  <jas@extundo.com>
66269
66270         * lib/size_max.h: New file.
66271
66272 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
66273
66274         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
66275         copyright symbol and the year.
66276         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
66277         (version_etc_va): Use parameterized copyright notice.
66278         Reword to conform to the current GNU coding standards.
66279
66280 2005-07-11  Karl Berry  <karl@gnu.org>
66281
66282         * doc/gnulib.texi (Quoting): new node.
66283         (Initial import): more info, from Patrice.
66284
66285 2005-07-11  Bruno Haible  <bruno@clisp.org>
66286
66287         * gnulib-tool (func_usage): Document option --avoid.
66288         (Command line options): Handle --avoid.
66289         (func_acceptable): New function.
66290         (func_modules_transitive_closure): Use it.
66291
66292 2005-07-11  Bruno Haible  <bruno@clisp.org>
66293
66294         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
66295         Reported by Jim Meyering.
66296
66297 2005-07-10  Bruno Haible  <bruno@clisp.org>
66298
66299         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
66300         Needed when size_t is smaller than 'unsigned int'.
66301         Reported by Paul Eggert.
66302
66303 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66304
66305         * modules/argp (Depends-on): Add unlocked-io
66306
66307 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66308
66309         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
66310         block of defines.
66311
66312 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
66313
66314         * config/srclist.txt: Comment out regcomp.c, since we have a porting
66315         fix now.
66316
66317 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
66318         and Paul Eggert  <eggert@cs.ucla.edu>
66319
66320         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
66321         in wint_t, not wchar_t.  Remove now-unnecessary cast.
66322
66323 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66324
66325         * modules/regex (Files): Add lib/regex_internal.c,
66326         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
66327         (Depends-on): Add extensions.
66328         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
66329
66330 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66331
66332         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
66333         pathconf.
66334         * m4/same.m4 (gl_SAME): Likewise.
66335         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
66336
66337         * m4/regex.m4: Adjust to new libc regex implementation.
66338         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
66339         all the .c and .h parts of (the new) regex.
66340         Quote the m4 stuff better.
66341         Check for RE_ICASE bug of old gnulib.
66342         Check for REG_STARTEND of recent libc.
66343         Rename local variables from jm_* to gl_*.
66344         Quote operand of "test -f".
66345         Say "recent enough" version of libc, not "version 2".
66346         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
66347         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
66348         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
66349         Remove check for btowc, isascii.
66350         Require AM_LANGINFO_CODESET.
66351
66352 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66353
66354         * lib/regex.c, regex.h: Sync from libc.
66355         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
66356         * lib/regexec.c:
66357         New files, synced from libc, except that regex_internal.h
66358         currently has a small porting fix.
66359
66360 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66361
66362         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
66363         regex_internal.c, regexec.c.
66364         Add regex_internal.h too, but as a comment, since the libc version
66365         is currently broken in gnulib mode.
66366
66367 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66368
66369         Support programs like Emacs that use gnulib but not gettext.
66370         * MODULES.html.sh (Internationalization functions): Add gettext-h.
66371         * modules/gettext-h: New file.
66372         * modules/gettext (Files): Remove lib/gettext.h.
66373         (Depends-on): Add gettext-h.
66374         (Makefile.am): Remove lib_SOURCES.
66375         * modules/argmatch, modules/c-stack, modules/closeout:
66376         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
66377         * modules/execute, modules/file-type, modules/getaddrinfo:
66378         * modules/getopt, modules/human, modules/javacomp:
66379         * modules/javaexec, modules/mkdir-p, modules/obstack:
66380         * modules/openat, modules/pagealign_alloc, modules/pipe:
66381         * modules/quotearg, modules/regex, modules/rpmatch:
66382         * modules/unicodeio, modules/userspec, modules/version-etc:
66383         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
66384         * modules/xsetenv:
66385         Depend on gettext-h, not gettext.
66386
66387 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
66388
66389         * gnulib-tool (func_import): Add support for 'public domain' license.
66390         * modules/alloca, modules/atexit, modules/memmove:
66391         Now public domain, not GPL.
66392         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
66393         * modules/realloc, modules/strerror, modules/strtod:
66394         Now LGPL, not GPL.
66395
66396 2005-07-05  Bruno Haible  <bruno@clisp.org>
66397
66398         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
66399         autoconf CVS. Needed for mingw.
66400
66401 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66402
66403         Remove the dependency of the strftime module on the tzset module.
66404         * modules/strftime (Depends-on): Remove dependency on tzset.
66405
66406 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66407
66408         Remove the dependency of the strftime module on the tzset module.
66409         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
66410         gl_FUNC_TZSET_CLOBBER.
66411
66412 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66413
66414         Remove the dependency of the strftime module on the tzset module.
66415         * lib/strftime.c (my_strftime)
66416         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
66417         Copy the input structure, to work around some of the bug with
66418         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
66419         Solaris releases, you should also use the tzset module, but we won't
66420         require it as a dependency any more since we don't want LGPLed code
66421         to depend on GPLed code.
66422
66423 2005-07-02  Jim Meyering  <jim@meyering.net>
66424
66425         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
66426         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
66427         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
66428         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
66429
66430 2005-07-02  Jim Meyering  <jim@meyering.net>
66431
66432         * lib/backupfile.c (backup_args): Change a `0' to NULL.
66433
66434 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
66435
66436         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
66437         declares only 'struct timespec;' (!).
66438
66439 2005-07-01  Jim Meyering  <jim@meyering.net>
66440
66441         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
66442         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
66443         * lib/save-cwd.c, tempname.c:
66444         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
66445         and don't include <sys/file.h>).
66446
66447 2005-06-29  Jim Meyering  <jim@meyering.net>
66448
66449         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
66450         type name.  Use the variable name instead.
66451         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
66452         Likewise.
66453
66454 2005-06-28  Simon Josefsson  <jas@extundo.com>
66455
66456         * modules/check-version (Files): Add check-version.m4.
66457
66458 2005-06-28  Simon Josefsson  <jas@extundo.com>
66459
66460         * m4/check-version.m4: New file, suggested by Jim Meyering
66461         <jim@meyering.net>.
66462
66463 2005-06-28  Simon Josefsson  <jas@extundo.com>
66464
66465         * lib/check-version.h, lib/check-version.c: New files.
66466
66467 2005-06-28  Simon Josefsson  <jas@extundo.com>
66468
66469         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
66470         collision with global variable.  Better indentation.  Don't
66471         increment buffer pointer beyond buffer end.  Based on comments
66472         from Paul Eggert <eggert@cs.ucla.edu>.
66473
66474         * lib/base64.h: Indent.
66475
66476 2005-06-28  Simon Josefsson  <jas@extundo.com>
66477
66478         * doc/gnulib.texi (Library version handling): New section.
66479
66480 2005-06-28  Jim Meyering  <jim@meyering.net>
66481
66482         * check-module (find_included_lib_files): Hard-code another
66483         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
66484         but modules/fts-lgpl (correctly) does not list those files.
66485
66486         * modules/canonicalize (Files): Add lib/pathmax.h.
66487
66488 2005-06-25  Simon Josefsson  <jas@extundo.com>
66489
66490         * modules/check-version: New file.
66491
66492 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
66493
66494         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
66495         initializer of struct addrinfo, as an indication that we don't
66496         care how many members the structure has.
66497
66498 2005-06-24  Derek Price  <derek@ximbiot.com>
66499         and Bruno Haible  <bruno@clisp.org>
66500
66501         Remove stat module & update lstat.
66502         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
66503         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
66504         * m4/stat.m4: Remove this file.
66505
66506 2005-06-24  Derek Price  <derek@ximbiot.com>
66507         and Bruno Haible  <bruno@clisp.org>
66508
66509         Remove stat module & update lstat.
66510         * lib/stat.c: Remove this file...
66511         (slash_aware_lstat): ...moving this content and its support...
66512         * lib/lstat.c (rpl_lstat): ...into here.
66513         * lib/lstat.h: New file.
66514
66515 2005-06-24  Derek Price  <derek@ximbiot.com>
66516         and Bruno Haible  <bruno@clisp.org>
66517
66518         Remove stat module & update lstat.
66519         * config/srclist.txt (libc sources): Remove stat.
66520
66521 2005-06-24  Derek Price  <derek@ximbiot.com>
66522         and Bruno Haible  <bruno@clisp.org>
66523
66524         Remove stat module & update lstat.
66525         * MODULES.html.sh (stat): Remove.
66526         * MODULES.html: Regenerated.
66527         * modules/lstat (Description): Correct function name.
66528         (Files): Add "lstat.h".
66529         (Depends-on): Remove stat, add xalloc, stat-macros.
66530         * modules/stat: Remove this file.
66531         (Include): Add "lstat.h", remove <sys/stat.h>.
66532
66533 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
66534
66535         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
66536         (ranged_convert): Don't save conversion in a temporary struct.
66537         This causes a warning with GCC 4.0.0, and anyway in the typical
66538         case it's not worth the extra 100 bytes or so of code.
66539         (ranged_convert, __mktime_internal): When calling a function via a
66540         pointer P, use P () rather than (*P) (), as we now assume C89 or
66541         better.
66542
66543 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66544
66545         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
66546         "who -r" failed to give output.  Problem reported by Tim Waugh.
66547
66548         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
66549         (xcalloc): Use it to avoid needless tests.
66550         Problem reported by Jim Meyering.
66551
66552 2005-06-20  Derek Price  <derek@ximbiot.com>
66553
66554         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
66555         unnecessary for Autoconfs > 2.59c.
66556
66557 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66558
66559         * lib/argp.h (__option_is_short): Check upper limit of
66560         __key. Isprint() requires its argument to have the value
66561         of an unsigned char or EOF.
66562
66563 2005-06-16  Jim Meyering  <jim@meyering.net>
66564
66565         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
66566         when either N or S is zero.
66567
66568 2005-06-16  Derek Price  <derek@ximbiot.com>
66569
66570         * m4/bison.m4: Declare YACC & YFLAGS precious.
66571
66572 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
66573
66574         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
66575         multibyte string or pattern, fall back on unibyte matching.
66576         Problem reported by James Youngman.
66577
66578 2005-06-08  Bruno Haible  <bruno@clisp.org>
66579
66580         * modules/csharpcomp: New file.
66581         * MODULES.html.sh (C#): Add csharpcomp.
66582
66583 2005-06-08  Bruno Haible  <bruno@clisp.org>
66584
66585         * m4/csharpcomp.m4: New file, from GNU gettext.
66586
66587 2005-06-08  Bruno Haible  <bruno@clisp.org>
66588
66589         * lib/csharpcomp.h: New file, from GNU gettext.
66590         * lib/csharpcomp.c: New file, from GNU gettext.
66591         * lib/csharpcomp.sh.in: New file, from GNU gettext.
66592
66593 2005-06-08  Bruno Haible  <bruno@clisp.org>
66594
66595         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
66596         warning on mingw.
66597
66598 2005-06-07  Derek Price  <derek@ximbiot.com>
66599
66600         Sync from CVS.
66601         * lib/glob_.h: Indent nested #ifdef.
66602
66603 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
66604
66605         Sync from coreutils.
66606         Use "file name" when talking about file names, instead of "filename"
66607         or "path", as per the GNU coding standards.
66608         * lib/mkdir-p.c: Renamed from makepath.c.
66609         (make_dir_parents): Renamed from make_path.  All callers changed.
66610         * lib/mkdir-p.h: Likewise.  All includers changed.
66611         * lib/filenamecat.c: Renamed from path-concat.c.
66612         (file_name_concat): Renamed from path_concat.  All callers changed.
66613         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
66614         * lib/filenamecat.h: Likewise.  All includers changed.
66615         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
66616         in comments or local variable names.
66617         * lib/basename.c: Likewise.
66618         * lib/canonicalize.c, canonicalize.h: Likewise.
66619         * lib/dirname.c, dirname.h: Likewise.
66620         * lib/euidaccess.c: Likewise.
66621         * lib/exclude.c: Likewise
66622         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
66623         * lib/fsusage.c, fsuage.h: Likewise.
66624         * lib/fts.c, fts_.h: Likewise.
66625         * lib/getcwd.c: Likewise.
66626         * lib/getloadavg.c: Likewise.
66627         * lib/mkstemp.c: Likewise.
66628         * lib/mountlist.c, mountlist.h: Likewise.
66629         * lib/openat.c, openat.h: Likewise.
66630         * lib/readlink-stub.c: Likewise.
66631         * lib/readutmp.c, readutmp.h: Likewise.
66632         * lib/rename.c: Likewise.
66633         * lib/rmdir.c: Likewise.
66634         * lib/same.c: Likewise.
66635         * lib/savedir.c: Likewise.
66636         * lib/stripslash.c: Likewise.
66637         * lib/tempname.c: Likewise.
66638         * lib/xreadlink.c: Likewise.
66639         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
66640         All uses changed.
66641         * lib/exclude.h: Likewise.
66642
66643         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
66644         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
66645         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
66646         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
66647         * lib/pathmax.h: Include <limits.h> unconditionally, since other
66648         files have been getting away with it for years (MORE/BSD 4.3
66649         is extinct now).
66650         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
66651         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
66652
66653         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
66654         Define to 256, not 255, as per modern POSIX.
66655
66656 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
66657
66658         Sync from coreutils.
66659         Use "file name" when talking about file names, instead of "filename"
66660         or "path", as per the GNU coding standards.
66661         * MODULES.html.sh: mkdir-p renamed from makepath.
66662         filenamecat renamed from path-concat.
66663         * modules/filenamecat: Renamed from modules/path-concat.
66664         (Files): filenamecat.h and filenamecat.c renamed from
66665         path-concat.h and path-concat.c.
66666         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
66667         (Include): filenamecat.h, not path-concat.h.
66668         * modules/mkdir-p: Renamed from modules/makepath.
66669         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
66670         makepath.c.
66671         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
66672         (Include): mkdir-p.h, not makepath.h.
66673
66674 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
66675
66676         Sync from coreutils.
66677         * m4/mkdir-p.m4: Renamed from makepath.m4.
66678         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
66679         Rename files from makepath.c to mkdir-p.c, and from
66680         makepath.h to mkdir-p.h.
66681         * m4/filenamecat.m4: Renamed from path-concat.m4.
66682         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
66683         Rename files from path-concat.c to filenamecat.c,
66684         and from path-concat.h to filenamecat.h.
66685         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
66686         "file name" in local variables or comments.
66687         * m4/rename.m4: Likewise.
66688
66689 2005-06-01  Bruno Haible  <bruno@clisp.org>
66690
66691         * modules/csharpexec: New file.
66692         * MODULES.html.sh (C#): New section.
66693
66694 2005-06-01  Bruno Haible  <bruno@clisp.org>
66695
66696         * m4/csharp.m4: New file, from GNU gettext.
66697         * m4/csharpexec.m4: New file, from GNU gettext.
66698
66699 2005-06-01  Bruno Haible  <bruno@clisp.org>
66700
66701         * lib/csharpexec.h: New file, from GNU gettext.
66702         * lib/csharpexec.c: New file, from GNU gettext.
66703         * lib/csharpexec.sh.in: New file, from GNU gettext.
66704
66705 2005-05-31  Derek Price  <derek@ximbiot.com>
66706             Paul Eggert  <eggert@cs.ucla.edu>
66707
66708         Sync from cvs.
66709         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
66710
66711 2005-05-31  Derek Price  <derek@ximbiot.com>
66712             Paul Eggert  <eggert@cs.ucla.edu>
66713
66714         Sync from cvs.
66715         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
66716
66717 2005-05-29  Derek Price  <derek@ximbiot.com>
66718
66719         * config/srclist.txt (glob_.h, glob.c): Add these files.
66720
66721 2005-05-29  Derek Price  <derek@ximbiot.com>
66722
66723         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
66724         * modules/glob: New file.
66725         * modules/getlogin_r: Add link to POSIX spec in description.
66726
66727 2005-05-29  Derek Price  <derek@ximbiot.com>
66728             Paul Eggert  <eggert@cs.ucla.edu>
66729
66730         * m4/glob.m4: New file.
66731
66732 2005-05-29  Derek Price  <derek@ximbiot.com>
66733             Paul Eggert  <eggert@cs.ucla.edu>
66734
66735         * lib/glob_.h, lib/glob.c: New files.
66736
66737 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66738
66739         * modules/fts (Files): Remove m4/inttypes-pri.m4.
66740         * modules/fts-lgpl (Depends-on): Remove gettext.
66741
66742 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66743
66744         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
66745         and don't require gt_INTTYPES_PRI.
66746
66747 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66748
66749         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
66750
66751         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
66752         the configuration hassle isn't worth it.
66753         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
66754         (LONGEST_MODIFIER, PRIuMAX): Remove.
66755
66756 2005-05-27  Bruno Haible  <bruno@clisp.org>
66757
66758         * lib/getlogin_r.h: Remove second include of <stddef.h>.
66759
66760 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
66761
66762         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
66763         _POSIX_PTHREAD_SEMANTICS for Solaris.
66764
66765 2005-05-25  Derek Price  <derek@ximbiot.com>
66766
66767         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
66768
66769 2005-05-25  Derek Price  <derek@ximbiot.com>
66770             Paul Eggert  <eggert@cs.ucla.edu>
66771
66772         * modules/getlogin_r, m4/getlogin_r.m4: New files.
66773         * lib/getlogin_r.c, getlogin_r.h: New files.
66774
66775 2005-05-25  Bruno Haible  <bruno@clisp.org>
66776             Derek Price  <derek@ximbiot.com>
66777
66778         * lib/getlogin_r.h: Simplify API documentation.
66779
66780 2005-05-23  Derek Price  <derek@ximbiot.com>
66781
66782         * modules/minmax (Files): Add m4/minmax.m4.
66783         (configure.ac): Add gl_MINMAX.
66784
66785 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
66786
66787         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
66788         so that unistd-safer.h (GPL'ed code) need not be included.
66789
66790 2005-05-22  Bruno Haible  <bruno@clisp.org>
66791
66792         * m4/minmax.m4: New file.
66793         Based on a patch by Derek Price <derek@ximbiot.com>.
66794
66795 2005-05-22  Bruno Haible  <bruno@clisp.org>
66796
66797         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
66798         (INT64_MIN): Fix definition.
66799         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
66800
66801         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
66802         NEED_SIGNED_INT_TYPES.
66803
66804         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
66805         HAVE_SYSTEM_INTTYPES.
66806
66807 2005-05-22  Bruno Haible  <bruno@clisp.org>
66808
66809         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
66810         Also include <sys/param.h> if it defines MIN, MAX.
66811         Based on a patch by Derek Price <derek@ximbiot.com>.
66812
66813 2005-05-21  Jim Meyering  <jim@meyering.net>
66814
66815         * modules/fts (Files): Add m4/inttypes-pri.m4.
66816         (Depends-on): Add lstat and remove gettext.  Alphabetize.
66817
66818 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66819
66820         New fts module.
66821         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
66822         (setup_dir, free_dir): New functions.
66823         (enter_dir, leave_dir): Define trivial
66824         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
66825         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
66826         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
66827         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
66828         Move to fts-cycle.c.
66829         (fts_open): Use setup_dir.
66830         (fts_close): Use free_dir.
66831         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
66832         This adds a label and some gotos, but the alternatives were messier.
66833         Check for memory allocation failure when entering a dir.
66834         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
66835         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
66836         (FTS): New member fts_cycle, that is a union that contains the
66837         old active_dir_ht and cycle_state.  All uses changed to mention
66838         fts_cycle.ht and fts_cycle.state.
66839         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
66840         fts.c, with the following changes:
66841         (setup_dir, free_dir): New functions.
66842         (enter_dir): Now returns bool.  Return true if successful, false
66843         if memory exhausted.  All callers changed.
66844         Do not bother partly cleaning up on
66845         memory allocation failure; that is free_dir's job.
66846         However, free ad if hash_insert fails, to avoid memory leak.
66847         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
66848         fts->fts_options to see which union member to use.
66849
66850 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66851
66852         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
66853         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
66854
66855 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66856
66857         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
66858
66859 2005-05-20  Jim Meyering  <jim@meyering.net>
66860
66861         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
66862         Now a macro, to pacify GCC.
66863
66864 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
66865
66866         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
66867         of -1.
66868
66869 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
66870
66871         * lib/chown.c (rpl_chown): Return -1 on failure.
66872
66873 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
66874
66875         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
66876         Don't check for stddef.h.
66877         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
66878         don't use its results.
66879         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
66880         since we include them unconditionally.  Don't require
66881         AM_STDBOOL_H, since stdbool is a prerequisite.
66882         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
66883         since we assume C89 or better.
66884         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
66885         as we don't use their results.
66886         Don't check for fchdir, memmove, memset, strrchr, as we use
66887         them unconditionally.
66888         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
66889         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
66890
66891 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
66892
66893         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
66894         Include <stddef.h> unconditionally, since we assume C89 now.
66895         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
66896         * lib/fts.c: Include fts_.h first, to check interface.
66897         Do not include intprops.h; no longer needed.
66898         Include cycle-check.h and hash.h, since fts_.h no longer does.
66899         Remove unnecessary casts of closedir to void.
66900         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
66901         decide whether to decrement nlinks.
66902         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
66903         (FTS): Use struct hash_table * instead of Hash_table, so that
66904         we no longer need to include hash.h here.
66905
66906 2005-05-18  Jim Meyering  <jim@meyering.net>
66907
66908         * modules/dirfd (License): Change to LGPL.  Most of the code
66909         is already in the public domain.
66910
66911 2005-05-18  Jim Meyering  <jim@meyering.net>
66912
66913         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
66914         Reported by Yoann Vandoorselaere.
66915
66916 2005-05-17  Jim Meyering  <jim@meyering.net>
66917
66918         * m4/fts.m4: New file, from coreutils.
66919
66920 2005-05-17  Jim Meyering  <jim@meyering.net>
66921
66922         * lib/fts.c, lib/fts_.h: New files, from coreutils.
66923
66924 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66925
66926         Sync from coreutils.
66927         * m4/unlinkdir.m4: New file.
66928
66929 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66930
66931         Sync from coreutils.
66932         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
66933         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
66934         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
66935         White space changes only.
66936         * lib/makepath.c (make_path): Port to hosts where leading "//" is
66937         special.
66938         * lib/yesno.c: Include getline.h, not ctype.h.
66939         (yesno): Don't remove leading white space; POSIX doesn't allow it.
66940         Use getline to remove arbitrary restriction on response length.
66941
66942 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66943
66944         * config/srclist-update: Spell out "Street" in FSF postal
66945         mail address; this is the style the FSF seems to prefer.
66946
66947         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
66948         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
66949         this updates FSF postal mail address.
66950
66951         Sync from coreutils.
66952         * modules/unlinkdir: New file.
66953         * modules/yesno (Depends-on): Add getline.
66954         * MODULES.html.sh (File system functions): Add unlinkdir.
66955
66956 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
66957
66958         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
66959         lib/strsep.h:
66960         Change the initial comment to refer to GPL, not LGPL.
66961         gnulib-tool will change it to LGPL as needed.
66962
66963         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
66964         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
66965         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
66966         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
66967         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
66968         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
66969         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
66970         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
66971         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
66972         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
66973         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
66974         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
66975         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
66976         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
66977         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
66978         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
66979         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
66980         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
66981         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
66982         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
66983         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
66984         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
66985         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
66986         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
66987         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
66988         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
66989         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
66990         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
66991         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
66992         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
66993         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
66994         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
66995         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
66996         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
66997         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
66998         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
66999         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
67000         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
67001         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
67002         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
67003         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
67004         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
67005         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
67006         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
67007         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
67008         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
67009         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
67010         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
67011         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
67012         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
67013         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
67014         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
67015         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
67016         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
67017         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
67018         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
67019         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
67020         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
67021         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
67022         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
67023         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
67024         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
67025         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
67026         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
67027         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
67028         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
67029         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
67030         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
67031         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
67032         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
67033         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
67034         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
67035         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
67036         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
67037         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
67038         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
67039         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
67040         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
67041         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
67042         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
67043         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
67044         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
67045         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
67046         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
67047         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
67048         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
67049         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
67050         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
67051         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
67052         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
67053         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
67054         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
67055         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
67056         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
67057         lib/yesno.c, lib/yesno.h:
67058         Update FSF postal mail address.
67059
67060 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67061
67062         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
67063         tests/test-memmem.c, tests/test-stpncpy.c:
67064         Update FSF postal mail address.
67065
67066 2005-05-13  Bruno Haible  <bruno@clisp.org>
67067
67068         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
67069         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
67070         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
67071         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
67072         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
67073         Add support for 64-bit integers in the MSVC compiler.
67074
67075 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67076
67077         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
67078
67079 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
67080
67081         * gnulib-tool (func_import): Sort and uniquify recommended includes.
67082
67083 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
67084
67085         * doc/getdate.texi (General date syntax): Don't say that date
67086         date --iso-8601=ns generates acceptable dates; it doesn't yet.
67087         Problem reported by Nic Ferrier.
67088
67089 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67090
67091         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
67092         specified in ai_socktype. Fix invalid ai_protocol
67093         check. ai_protocol is usually set to 0 or depending on
67094         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
67095         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
67096         ai_socktype / ai_protocol in the returned addrinfo structure.
67097
67098 2005-05-10  Simon Josefsson  <jas@extundo.com>
67099
67100         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
67101         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67102
67103 2005-05-10  Karl Berry  <karl@gnu.org>
67104
67105         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
67106         (from http://www.gnu.org/licenses).
67107         * doc/COPYING.LIB: also rename to COPYING.LESSER.
67108         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
67109         fdl.texi suffices.
67110
67111 2005-05-10  Karl Berry  <karl@gnu.org>
67112
67113         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
67114         (COPYING.DOC): remove.
67115
67116         * config/srclist-update: new FSF address.
67117
67118 2005-05-10  Derek Price  <derek@ximbiot.com>
67119
67120         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
67121         possible.
67122
67123 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67124             Bruno Haible  <bruno@clisp.org>
67125
67126         * modules/inet_ntop: New file.
67127         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67128         inet_ntop.
67129
67130 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67131             Bruno Haible  <bruno@clisp.org>
67132
67133         * m4/inet_ntop.m4: New file.
67134
67135 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67136             Bruno Haible  <bruno@clisp.org>
67137
67138         * lib/inet_ntop.h: New file.
67139         * lib/inet_ntop.c: New file, from glibc with modifications.
67140
67141 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
67142
67143         * modules/time_r (License): Change to LGPL.
67144         * modules/extensions (License): Change to LGPL.  Actually,
67145         the license is more permissive than that, but currently gnulib-tool
67146         doesn't know how to handle more-permissive licenses.
67147
67148         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
67149         Problem reported by Dave Love.
67150
67151 2005-05-08  Jim Meyering  <jim@meyering.net>
67152
67153         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
67154         blank.
67155
67156 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
67157
67158         * modules/argmatch (Depends-on): Add stdbool.
67159         * modules/backupfile (Depends-on): Likewise.
67160         * modules/chdir-long (Depends-on): Likewise.
67161         * modules/closeout (Depends-on): Likewise.
67162         * modules/cycle-check (Depends-on): Likewise.
67163         * modules/dirname (Depends-on): Likewise.
67164         * modules/fnmatch (Depends-on): Likewise.
67165         * modules/fsusage (Depends-on): Likewise.
67166         * modules/fwriteerror (Depends-on): Likewise.
67167         * modules/getcwd (Depends-on): Likewise.
67168         * modules/getloadavg (Depends-on): Likewise.
67169         * modules/hard-locale (Depends-on): Likewise.
67170         * modules/makepath (Depends-on): Likewise.
67171         * modules/mountlist (Depends-on): Likewise.
67172         * modules/nanosleep (Depends-on): Likewise.
67173         * modules/posixtm (Depends-on): Likewise.
67174         * modules/quotearg (Depends-on): Likewise.
67175         * modules/readtokens (Depends-on): Likewise.
67176         * modules/readtokens0 (Depends-on): Likewise.
67177         * modules/readutmp (Depends-on): Likewise.
67178         * modules/save-cwd (Depends-on): Likewise.
67179         * modules/strftime (Depends-on): Likewise.
67180         * modules/userspec (Depends-on): Likewise.
67181         * modules/utimecmp (Depends-on): Likewise.
67182         * modules/xgetcwd (Depends-on): Likewise.
67183         * modules/xnanosleep (Depends-on): Likewise.
67184         * modules/xstrtod (Depends-on): Likewise.
67185         * modules/yesno (Depends-on): Likewise.
67186
67187 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
67188
67189         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
67190         needless checks.
67191
67192 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67193
67194         Merge from coreutils.  Among other things,
67195         add bulletproofing for cases where stdin, stdout, or stderr are closed.
67196         * lib/fd-safer.c: New file.
67197         * lib/fcntl-safer.h, open-safer.c: Remove.
67198         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
67199         * lib/dup-safer.c: Include unistd-safer.h first.
67200         Don't include errno.h.
67201         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
67202         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
67203         * lib/file-type.c: Rely on file-type.h change.
67204         * lib/getloadavg.c: Include unistd-safer.h.
67205         (getloadavg): Use safer open.
67206         * lib/getusershell.c: Include "stdio-safer.h".
67207         (getusershell): Use safer fopen.
67208         * lib/long-options.c (long_options): Use NULL rather than 0.
67209         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
67210         'free'.
67211         * lib/modechange.c: Likewise.
67212         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
67213         (MODE_DONE): New constant.
67214         (struct mode_change): Remove 'next' member.
67215         (make_node_op_equals): New function; like the old one of the
67216         same name, except it allocates an array.
67217         (mode_compile, mode_create_from_ref): Use it.
67218         (mode_compile): Allocate result as an array, not a linked list.
67219         Parse octal string ourself, so that we catch mistakes like "+0".
67220         (mode_adjust): Arg is an array, not a linked list.
67221         * lib/modechange.c: Include stat-macros.h, xalloc.h.
67222         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
67223         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
67224         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
67225         Remove.  This is now stat-macros.h's job.
67226         (talloc): Remove.  All callers replaced by xalloc, so that
67227         our invokers don't have to worry about reporting memory failures.
67228         (make_node_op_equals): Remove.
67229         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
67230         New constants.
67231         (struct mode_change): Moved here from modechange.h.
67232         (mode_append_entry): Remove.
67233         (mode_compile): Remove MASKED_OPS arg, since it encouraged
67234         apps to have incorrect behavior.  Use simpler algorithm for head
67235         and tail.  Don't futz with umask; that's now the job of mode_adjust.
67236         Detect more invalid usages rather than having somewhat-random behavior.
67237         Don't insert an "a=" action, as that leads to incorrect behavior.
67238         (mode_compile, mode_create_from_ref): Return NULL on error instead
67239         of an enum, since now there's only one way to have an error.  All
67240         callers changed.
67241         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
67242         at the correct time.  Simplify calculation of "+u" and its ilk.
67243         Don't mishandle "+X".
67244         (mode_free): Remove "register" and localize decls.
67245         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
67246         (struct mode_change): Move to modechange.c; callers don't
67247         need to see this stuff.
67248         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
67249         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
67250         (mode_change, mode_adjust): Reflect the new signatures noted above.
67251         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
67252         that might redefine system include files.
67253         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
67254         (my_usleep): Use NULL rather than (void *) 0.
67255         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
67256         Use siginterrupt to specify that system calls should be interrupted.
67257         (rpl_nanosleep): Move initialization of suspended closer to call of
67258         my_usleep.
67259         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
67260         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
67261         (desirable_utmp_entry): New function.
67262         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
67263         using x2nrealloc, to simplify logic.
67264         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
67265         size calculation.  Do not assume utmp file is a regular file.
67266         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
67267         (READ_UTMP_CHECK_PIDS): New constant.
67268         * lib/save-cwd.c: Include unistd-safer.h.
67269         (save_cwd): Use fd_safer.
67270         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
67271         [!_LIBC] Include "stat-macros.h" instead.
67272         * lib/unistd-safer.h (fd_safer): New decl.
67273
67274 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67275
67276         * modules/getloadavg (Depends-on): Add unistd-safer.
67277         * modules/getusershell (Depends-on): Add stdio-safer.
67278         * modules/lstat (Depends-on): Remove xalloc.
67279         * modules/mkstemp (Depends-on): Add stat-macros.
67280         * modules/modechange (Depends-on): Remove xstrtol.
67281         Add stat-macros, xalloc.
67282         * modules/save-cwd (Depends-on): Add unistd-safer.
67283         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
67284         * modules/unistd-safer (Files): Add lib/fd-safer.c
67285         (Makefile.am): Remove lib_SOURCES.
67286
67287         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
67288         Remove fcntl-safer; unistd-safer supersedes it.
67289
67290 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67291
67292         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
67293         AC_HEADER_STAT.
67294         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
67295         (gl_PREREQ_CHOWN): Remove.
67296         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
67297         it.  Don't require AC_HEADER_STAT.
67298         (gl_PREREQ_LSTAT): Remove.
67299         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
67300         Don't require AC_HEADER_STAT.
67301         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
67302         (gl_PREREQ_RMDIR): Remove.
67303         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
67304         mention stat-macros.h or AC_HEADER_STAT, since we'll make
67305         the stat-macros module a prerequisite.
67306         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
67307         * m4/filemode.m4 (gl_FILEMODE): Likewise.
67308         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
67309         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
67310         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
67311         variable names.
67312         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
67313         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
67314         variable prefixes.
67315         * m4/fcntl-safer.m4: Remove.
67316         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
67317         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
67318         Invoke gl_PREREQ_FD_SAFER.
67319         (gl_PREREQ_FD_SAFER): New macro.
67320         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
67321         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
67322         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
67323         Remove duplicate call to AC_LIBOBJ(readutmp).
67324         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
67325
67326         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
67327         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
67328
67329 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67330
67331         * MODULES.html.sh (Misc): Add byteswap.
67332
67333 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67334
67335         * modules/getcwd (Depends-on): Add extensions.
67336         * modules/openat (Depends-on): Likewise.
67337
67338 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67339
67340         * modules/byteswap: New file.
67341
67342 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67343
67344         * m4/byteswap.m4: New file.
67345
67346 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67347
67348         * lib/byteswap_.h: New file.
67349
67350 2005-04-25  Karl Berry  <karl@gnu.org>
67351
67352         * m4/gettext.m4: Update from GNU gettext 0.14.4.
67353
67354 2005-04-25  Albert Chin  <china@thewrittenword.com>
67355
67356         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
67357         Toolkit C bug.
67358
67359 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
67360
67361         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
67362         (func_ln_if_changed) Remove forcibly for no error message
67363         in case file does not exist.
67364
67365 2005-04-19  Simon Josefsson  <jas@extundo.com>
67366
67367         * gnulib-tool (Options): Make --symlink mean --symbolic.
67368
67369 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
67370
67371         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
67372
67373 2005-04-16  Simon Josefsson  <jas@extundo.com>
67374
67375         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
67376
67377 2005-04-15  Simon Josefsson  <jas@extundo.com>
67378
67379         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
67380
67381 2005-04-15  Simon Josefsson  <jas@extundo.com>
67382
67383         * gnulib-tool: Rename --symlink to --symbolic.
67384
67385 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
67386
67387         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
67388         symbolic links to files instead of copying/moving.  Add --aux-dir,
67389         specifying directory relative --dir where auxiliary build tools
67390         are placed.
67391
67392 2005-04-14  Bruno Haible  <bruno@clisp.org>
67393
67394         * modules/allocsa (License): Change to LGPL.
67395         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
67396
67397 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
67398
67399         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
67400         that "UTC +1 second" continues to work.  Problem reported
67401         by Dmitry V. Levin.
67402         (relunit_snumber): New rule.
67403         (relunit): Use it.
67404
67405 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
67406
67407         * lib/getdate.y (universal_time_zone_table): New constant.
67408         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
67409         universal_time_zone_table.
67410         (lookup_zone): Prefer universal_time_zone_table to
67411         local_time_zone_table, so that "GMT" time stamps are allowed in
67412         London during the summer.  Problem reported by Ian Abbott.
67413
67414 2005-04-12  Jim Meyering  <jim@meyering.net>
67415
67416         * lib/human.c (humblock): Set *options even when returning due to
67417         xstrtoumax conversion failure.  Thanks to a used-uninitialized
67418         warning from gcc-4.
67419
67420 2005-04-09  Jim Meyering  <jim@meyering.net>
67421
67422         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
67423         -Wuninitialized: initialize tm0.tm_year.
67424
67425 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
67426
67427         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
67428         count, since there's no maximum.  All uses changed.
67429         Add member dsts_seen.
67430         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
67431         not being INT_MAX.
67432         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
67433         Use pc_rels_seen to decide whther a date is absolute.
67434
67435         * lib/getdate.y (number): Don't overwrite year.
67436         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
67437         check.
67438
67439 2005-04-02  Simon Josefsson  <jas@extundo.com>
67440
67441         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
67442         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
67443
67444 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
67445
67446         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
67447         where no absolute path name can be longer than PATH_MAX.
67448
67449 2005-03-27  Jim Meyering  <jim@meyering.net>
67450
67451         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
67452
67453 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
67454
67455         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
67456         "one's complement" -> "ones' complement" in comment, as per Knuth.
67457         "value of type" -> "type or expression" in comment.
67458         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
67459
67460 2005-03-26  Jim Meyering  <jim@meyering.net>
67461
67462         Comment nits.
67463         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
67464         Correct typos: s/or/of/.
67465
67466 2005-03-26  Jim Meyering  <jim@meyering.net>
67467
67468         * modules/check-include-files: Move to ../ and rename to...
67469         * check-module: ...this.
67470
67471 2005-03-25  Jim Meyering  <jim@meyering.net>
67472
67473         * modules/xvasprintf (Files): Add xalloc.h.
67474
67475 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
67476
67477         * modules/gettext (Files): config/config.rpath ->
67478         build-aux/config.rpath
67479         * modules/iconv (Files): Likewise.
67480         Problem reported by Oskar Liljeblad.
67481
67482 2005-03-23  Jim Meyering  <jim@meyering.net>
67483
67484         * modules/check-include-files: New script to check for
67485         missing dependencies, multiple includes, etc.
67486
67487         * modules/c-strtold (Depends-on): Add xalloc.
67488         * modules/c-strtod (Depends-on): Add xalloc.
67489         * modules/hash (Depends-on): Add xalloc.
67490         (Files): Remove lib/xalloc.h.
67491
67492         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
67493         * modules/userspec (Files): Add lib/inttostr.h.
67494
67495 2005-03-23  Jim Meyering  <jim@meyering.net>
67496
67497         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
67498
67499 2005-03-22  Jim Meyering  <jim@meyering.net>
67500
67501         * modules/stat-macros: New module.
67502         * modules/canonicalize, modules/euidaccess, modules/file-type,
67503         * modules/filemode, modules/lchown, modules/makepath,
67504         * modules/rmdir, modules/stat: Depend on new stat-macros module
67505         rather than listing lib/stat-macros.h manually.
67506         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
67507
67508 2005-03-22  Jim Meyering  <jim@meyering.net>
67509
67510         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
67511
67512 2005-03-22  Bruno Haible  <bruno@clisp.org>
67513
67514         * config/srclist.txt: Replace target directory 'config' with
67515         'build-aux'.
67516         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
67517         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
67518         ../build-aux/.
67519
67520 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
67521
67522         * modules/chdir-long (Depends-on): Add mempcpy.
67523
67524         * modules/acl, modules/backupfile, modules/c-strtod,
67525         modules/c-strtold, modules/canon-host, modules/canonicalize,
67526         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
67527         modules/exclude, modules/exitfail, modules/file-type,
67528         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
67529         modules/getdate, modules/getline, modules/getpagesize,
67530         modules/getpass, modules/getugroups, modules/group-member,
67531         modules/hard-locale, modules/hash, modules/human, modules/idcache,
67532         modules/inttostr, modules/long-options, modules/makepath,
67533         modules/md5, modules/memcasecmp, modules/memcoll,
67534         modules/modechange, modules/mountlist, modules/path-concat,
67535         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
67536         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
67537         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
67538         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
67539         modules/strftime, modules/strndup, modules/strverscmp,
67540         modules/timespec, modules/unlocked-io, modules/userspec,
67541         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
67542         modules/yesno:
67543         Remove lib_SOURCES line from Makefile.am section, as this is now
67544         done automatically by the corresponding Autoconf macro.
67545
67546 2005-03-21  Jim Meyering  <jim@meyering.net>
67547
67548         Changes imported from coreutils.
67549
67550         * lib/cycle-check.c: Don't include xalloc.h.
67551
67552         * lib/path-concat.c: Don't include assert.h.
67553         (path_concat): Remove assertion that would have triggered
67554         for ABASE starting with more than one slash.
67555         Reported by Andreas Schwab.
67556
67557         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
67558         properly when ABASE is an absolute file name.
67559         Correct the description of this function.
67560         Include <assert.h>.
67561         Add an assertion and a test driver.
67562         This fixes a bug introduced on 2004-07-02.
67563         Andreas Schwab reported the resulting failure of cp --parents:
67564         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
67565
67566 2005-03-21  Jim Meyering  <jim@meyering.net>
67567
67568         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
67569         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
67570
67571 2005-03-21  Jim Meyering  <jim@meyering.net>
67572         and  Paul Eggert  <eggert@cs.ucla.edu>
67573
67574         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
67575         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
67576         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
67577         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
67578         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
67579         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
67580         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
67581         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
67582         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
67583         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
67584         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
67585         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
67586         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
67587         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
67588         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
67589         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
67590         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
67591         for these modules.
67592
67593 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
67594
67595         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
67596         (which shouldn't happen), generate nothing instead of returning 0
67597         immediately, so that nstrftime (NULL, ...) doesn't return 0.
67598
67599 2005-03-16  Bruno Haible  <bruno@clisp.org>
67600
67601         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
67602         HAVE_LONGLONG_64BIT.
67603
67604 2005-03-16  Bruno Haible  <bruno@clisp.org>
67605
67606         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
67607         HAVE_LONGLONG_64BIT.
67608
67609 2005-03-16  Bruno Haible  <bruno@clisp.org>
67610
67611         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
67612         HAVE_LONGLONG_64BIT.
67613
67614 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
67615
67616         * lib/strftime.c (my_strftime): Prepend space to format so that we can
67617         reliably distinguish strftime failure from empty output on POSIX
67618         hosts.
67619
67620 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
67621
67622         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
67623         (iconv_string): Don't guess a size-zero buffer, as that might cause
67624         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
67625         result would be 'too large', where 'too large' is (heuristically)
67626         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
67627         overflow concerns.  This will prevent some unwanted malloc failures
67628         when the inputs are very large.
67629
67630 2005-03-15  Karl Berry  <karl@gnu.org>
67631
67632         * config/srclist.txt (config.rpath): from gettext.
67633         * config/config.rpath: update.
67634
67635 2005-03-15  Bruno Haible  <bruno@clisp.org>
67636
67637         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
67638         to 'negate'.
67639
67640         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
67641         variable.
67642
67643         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
67644         results.
67645
67646 2005-03-14  Simon Josefsson  <jas@extundo.com>
67647
67648         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
67649         <fx@gnu.org>.
67650
67651 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
67652
67653         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
67654         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
67655         intprops.h.
67656         * lib/strtol.c: Likewise.
67657
67658 2005-03-14  Jim Meyering  <jim@meyering.net>
67659
67660         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
67661         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
67662         to be nonzero so that we (and caller) can detect the difference
67663         between a valid zero-length expansion and an error return, even
67664         when the underlying strftime fails before writing anything into
67665         that location.
67666
67667 2005-03-14  Bruno Haible  <bruno@clisp.org>
67668
67669         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
67670         Update from GNU gettext 0.14.3.
67671
67672 2005-03-10  Jim Meyering  <jim@meyering.net>
67673
67674         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
67675
67676 2005-03-10  Jim Meyering  <jim@meyering.net>
67677
67678         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
67679         so that this module works on systems without fchdir.
67680
67681 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
67682
67683         Factor int-properties macros into a single file, except for
67684         glibc-related files.
67685         * lib/intprops.h: New file.
67686         * lib/getloadavg.c: Include it instead of limits.h.
67687         (INT_STRLEN_BOUND): Remove.
67688         * lib/human.c: Include intprops.h.
67689         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
67690         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
67691         302/1000.
67692         * lib/inttostr.h: Include intprops.h instead of limits.h.
67693         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
67694         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
67695         for consistency with intprops.h.
67696         (time_t_is_integer, twos_complement_arithmetic): Use them.
67697         * lib/sig2str.h: Include <signal.h>, intprops.h.
67698         (INT_STRLEN_BOUND): Remove.
67699         * lib/strftime.c (TYPE_SIGNED): Remove.
67700         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
67701         * lib/strtol.c: Adjust comments to match intprops.h.
67702         * lib/userspec.c: Include intprops.h.
67703         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
67704         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
67705         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
67706         instead of rolling our own expressions.
67707         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
67708
67709         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
67710         instead of int.
67711         (my_strftime): Do not mishandle years close to INT_MAX, by doing
67712         the right thing even if adding 1900 would overflow.  Similarly
67713         for tm_mon + 1 and tm_yday + 1.
67714         Make %Y always equivalent to %C%y, and similarly for %G and %g.
67715         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
67716         (DO_SIGNED_NUMBER): New macro.
67717         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
67718
67719 2005-03-07  Bruno Haible  <bruno@clisp.org>
67720
67721         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
67722
67723 2005-03-07  Bruno Haible  <bruno@clisp.org>
67724
67725         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
67726
67727 2005-03-04  Derek R. Price  <derek@ximbiot.com>
67728
67729         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
67730         (func_import): Only replace files via --import when they have actually
67731         changed.
67732
67733 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67734
67735         * m4/mmap-anon.m4: New file.
67736         * m4/pagealign_alloc.m4: New file.
67737
67738 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67739             Bruno Haible  <bruno@clisp.org>
67740
67741         * modules/pagealign_alloc: New file.
67742         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
67743
67744 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67745             Bruno Haible  <bruno@clisp.org>
67746
67747         * lib/pagealign_alloc.h: New file.
67748         * lib/pagealign_alloc.c: New file.
67749
67750 2005-03-03  Bruno Haible  <bruno@clisp.org>
67751
67752         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
67753         Use an all-permissive copyright notice, recommended by RMS.
67754
67755 2005-03-02  Bruno Haible  <bruno@clisp.org>
67756
67757         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
67758         of AIX, the replacement has to be done only after <string.h> is
67759         included, therefore not in config.h. stpncpy.h does the replacement,
67760         and stpncpy.c uses it.
67761
67762 2005-03-02  Bruno Haible  <bruno@clisp.org>
67763
67764         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
67765         stpncpy.c uses it.
67766
67767 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67768
67769         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
67770         The workaround isn't strictly needed for POSIX conformance, and
67771         it's too much of a pain to configure and maintain.  We'll ask
67772         people to fix their kernels instead.
67773         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
67774         (NANOSLEEP_BUG_WORKAROUND): Remove.
67775         (xnanosleep): Remove the workaround.
67776
67777 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67778
67779         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
67780         Reported by Derek Price.
67781         (Include): Add "timespec.h".
67782
67783         * modules/xnanosleep (Depends-on): Remove gethrxtime.
67784
67785 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67786
67787         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
67788         to detect nanosleep bug.
67789
67790 2005-03-01  Bruno Haible  <bruno@clisp.org>
67791
67792         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
67793
67794 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
67795
67796         * modules/gethrxtime: New file.
67797         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
67798         (Depends-on): Add gethrxtime.
67799         (configure.ac): Add gl_XNANOSLEEP.
67800         (Makefile.am): Remove lib_SOURCES line.
67801
67802 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67803
67804         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
67805         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
67806
67807 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67808
67809         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
67810         * lib/timespec.h (gettime): Return void, since it always
67811         succeeds now.  All uses changed.
67812         * lib/gettime.c (gettime) Likewise.
67813         [HAVE_NANOTIME]: Prefer nanotime.
67814         Assume gettimeofday succeeds, as POSIX requires.
67815         Assime time () succeeds, since other code already does.
67816         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
67817         (timespec_subtract): Remove.
67818         (NANOSLEEP_BUG_WORKAROUND): New constant.
67819         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
67820         things considerably.  Use it only on GNU/Linux hosts, since the
67821         workaround shouldn't be needed elsewhere.
67822
67823 2005-02-24  Bruno Haible  <bruno@clisp.org>
67824
67825         * modules/gettext (Files): Add m4/glibc2.m4.
67826
67827 2005-02-24  Bruno Haible  <bruno@clisp.org>
67828
67829         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
67830         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
67831         * m4/progtest.m4:
67832         Update from GNU gettext 0.14.2.
67833         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
67834
67835 2005-02-24  Bruno Haible  <bruno@clisp.org>
67836
67837         * lib/localcharset.c: Update from GNU gettext 0.14.2.
67838         * lib/config.charset: Update from GNU gettext 0.14.2.
67839
67840 2005-02-24  Bruno Haible  <bruno@clisp.org>
67841
67842         * lib/gettext.h: Update from GNU gettext 0.14.2.
67843
67844 2005-02-23  Simon Josefsson  <jas@extundo.com>
67845
67846         * m4/iconvme.m4: New file.
67847
67848 2005-02-23  Jim Meyering  <jim@meyering.net>
67849
67850         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
67851         change.
67852         Thanks to Bruno Haible for catching it.
67853
67854 2005-02-22  Simon Josefsson  <jas@extundo.com>
67855
67856         * modules/iconvme: New file.
67857
67858         * MODULES.html.sh: Add iconvme.
67859
67860 2005-02-22  Simon Josefsson  <jas@extundo.com>
67861
67862         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
67863
67864 2005-02-22  Simon Josefsson  <jas@extundo.com>
67865
67866         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
67867
67868 2005-02-22  Jim Meyering  <jim@meyering.net>
67869
67870         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
67871         s/ifndef/ifdef/.
67872
67873 2005-02-20  Neil Conway  <neilc@samurai.com>
67874
67875         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
67876         returned by OSX/Darwin if the specified buffer is not large
67877         enough for the hostname.
67878
67879 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67880
67881         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
67882         pass it to _help, otherwise the latter coredumps trying to
67883         dereference state.root_argp.
67884
67885 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67886
67887         * modules/chdir-long (Depends-on): Add memrchr.
67888         * modules/memrchr (Files): Add lib/memrchr.h.
67889         (Include): "memrchr.h".
67890
67891 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67892
67893         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
67894
67895 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67896
67897         * lib/memrchr.h: New file.
67898         * lib/chdir-long.c: Include it.
67899         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
67900         Don't bother including stddef.h.
67901
67902 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
67903
67904         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
67905         inclusion.
67906         Include <sys/types.h>, for dev_t.
67907         (ME_DUMMY, ME_REMOTE): Move from here....
67908         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
67909         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
67910         Dmitry V. Levin.
67911         Include mountlist.h first, to test the interface.
67912
67913 2005-01-29  Bruno Haible  <bruno@clisp.org>
67914
67915         * lib/progname.c (program_name): Initialize.
67916         Needed when linking statically on MacOS X.
67917
67918 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
67919
67920         Sync from coreutils.
67921         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
67922         (Depends-on): Add c-strtod.
67923         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
67924
67925 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
67926
67927         Sync from coreutils.
67928         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
67929
67930         Remove files that are specific to coreutils.
67931         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
67932
67933 2005-01-28  Bruno Haible  <bruno@clisp.org>
67934
67935         * modules/javacomp: New file.
67936         * MODULES.html.sh (Java): Add javacomp.
67937
67938 2005-01-28  Bruno Haible  <bruno@clisp.org>
67939
67940         * m4/javacomp.m4: New file, from GNU gettext.
67941
67942 2005-01-28  Bruno Haible  <bruno@clisp.org>
67943
67944         * lib/javacomp.sh.in: New file, from GNU gettext.
67945         * lib/javacomp.h: New file, from GNU gettext.
67946         * lib/javacomp.c: New file, from GNU gettext.
67947
67948 2005-01-26  Simon Josefsson  <jas@extundo.com>
67949
67950         * lib/gai_strerror.c: Use GPL in header.
67951
67952 2005-01-26  Bruno Haible  <bruno@clisp.org>
67953
67954         * modules/javaexec: New file.
67955         * MODULES.html.sh (Java): Add javaexec.
67956
67957 2005-01-26  Bruno Haible  <bruno@clisp.org>
67958
67959         * m4/javaexec.m4: New file, from GNU gettext.
67960
67961 2005-01-26  Bruno Haible  <bruno@clisp.org>
67962
67963         * lib/javaexec.sh.in: New file, from GNU gettext.
67964         * lib/javaexec.h: New file, from GNU gettext.
67965         * lib/javaexec.c: New file, from GNU gettext.
67966
67967 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67968
67969         * modules/lchown (Depends-on): Remove lchown.h
67970
67971 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67972
67973         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
67974         must be defined if the header file was not found, in order
67975         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
67976
67977 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67978
67979         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
67980         initializers for struct pentry_state.
67981         (__argp_error): Check return value of __asprintf
67982         (__argp_failure): Translate error message
67983
67984         * lib/argp-parse.c: Removed braces around the expansion of N_()
67985
67986 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67987
67988         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
67989         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
67990         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
67991         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
67992         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
67993         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
67994         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
67995         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
67996         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
67997         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
67998         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
67999         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
68000         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
68001         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
68002         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
68003         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
68004         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
68005         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
68006         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
68007         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
68008         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
68009         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
68010         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
68011         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
68012         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
68013         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
68014         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
68015         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
68016         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
68017         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
68018         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
68019         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
68020         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
68021         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
68022         xstrtol.m4, xstrtoumax.m4, yesno.m4:
68023         Use an all-permissive copyright notice, recommended by RMS.
68024
68025 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
68026
68027         * modules/chdir-long (Depends-on): Remove mempcpy.
68028
68029 2005-01-21  Jim Meyering  <jim@meyering.net>
68030
68031         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
68032         same value as for Solaris 9.
68033
68034         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
68035         component length.  This included changing the parameter to be
68036         of type `char *' rather than `char const *'.
68037         * lib/chdir-long.h (chdir_long): Update prototype.
68038
68039         * lib/openat.c (fdopendir, fstatat): New functions.
68040         * lib/openat.h: Include headers required for use of DIR and struct
68041         stat.
68042         [AT_SYMLINK_NOFOLLOW]: Define.
68043         (fdopendir, fstatat): Add prototypes.
68044
68045 2005-01-21  Bruno Haible  <bruno@clisp.org>
68046
68047         * modules/classpath: New file.
68048         * MODULES.html.sh (Java): Add classpath.
68049
68050 2005-01-21  Bruno Haible  <bruno@clisp.org>
68051
68052         * lib/classpath.h: New file, from GNU gettext.
68053         * lib/classpath.c: New file, from GNU gettext.
68054
68055 2005-01-20  Simon Josefsson  <jas@extundo.com>
68056
68057         * modules/version-etc-fsf: New file.
68058
68059 2005-01-20  Simon Josefsson  <jas@extundo.com>
68060
68061         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
68062         * lib/version-etc.c: Remove version_etc_copyright.
68063         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
68064         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
68065
68066 2005-01-20  Simon Josefsson  <jas@extundo.com>
68067
68068         * lib/base64.h (isbase64): Add.
68069
68070         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
68071         using a unsigned prototype, don't inline.
68072         (base64_decode): Use it.
68073
68074 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68075
68076         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
68077         it.
68078
68079 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68080
68081         * lib/save-cwd.c (save_cwd): Remove code to support the case
68082         where fchdir is missing or flaky.
68083
68084 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68085
68086         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
68087
68088 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
68089
68090         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
68091         AC_LIBSOURCES now does this.
68092         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
68093         with new ullong_max module.
68094
68095 2005-01-19  Bruno Haible  <bruno@clisp.org>
68096
68097         * modules/sh-quote: New file.
68098         * MODULES.html.sh (Executing programs): Add sh-quote.
68099
68100 2005-01-19  Bruno Haible  <bruno@clisp.org>
68101
68102         * lib/sh-quote.h: New file, from GNU gettext.
68103         * lib/sh-quote.c: New file, from GNU gettext.
68104
68105 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68106
68107         Merge from coreutils.
68108         * m4/ullong_max.m4: New file.
68109         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
68110         (gl_MACROS): Assume localeconv exists.
68111
68112 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68113
68114         Merge changes from coreutils, as described below in several
68115         changelogs dated today.
68116
68117         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
68118         (O_DIRECTORY): Remove; not needed here, since "." must be
68119         a directory.  All uses removed.
68120         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
68121         universal on Suns, and we also need to test for IRIX.
68122         Revamp code to use 'if' rather than '#if'.
68123         Avoid unnecessary comparison of cwd->desc to 0.
68124
68125         * lib/utimens.c (futimens): Robustify the previous patch, by checking
68126         for known valid error numbers rather than observed invalid ones.
68127
68128 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68129
68130         * modules/ullong_max: New file.
68131
68132         * modules/chdir-long, modules/openat: New files.
68133         * modules/save-cwd (Depends-on): Depend on chdir-long.
68134         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
68135
68136 2005-01-18  Jim Meyering  <jim@meyering.net>
68137
68138         Merge from coreutils.
68139         * m4/chdir-long.m4, m4/openat.m4: New files.
68140         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
68141         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
68142         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
68143         is sane and DOES follow symlinks.  Besides, testing 20 different
68144         systems found no broken chown implementations.
68145         Prompted by a change in rsync's copy of this macro.
68146         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
68147
68148         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
68149
68150         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
68151         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
68152         NULL-means-set-to-current-time semantics.
68153         Remove temporary file immediately, rather than waiting
68154         for configure's at-exit trap code to do it.
68155
68156 2005-01-18  Jim Meyering  <jim@meyering.net>
68157
68158         * lib/version-etc.c (version_etc_copyright): Update copyright date.
68159
68160         * lib/utimens.c (futimens): Account for the fact that futimes
68161         can also fail with errno == ENOSYS or errno == ENOENT.
68162         Patch from Dmitry V. Levin.
68163
68164         Change the name of the robust chdir function from chdir to chdir_long.
68165         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
68166         (restore_cwd): Use chdir_long, not chdir.
68167         * lib/chdir-long.c: Renamed from chdir.c.
68168         * lib/chdir-long.h: Renamed from chdir.h.
68169         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
68170         Hurd.
68171
68172 2005-01-18  Bruno Haible  <bruno@clisp.org>
68173
68174         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
68175         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
68176         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
68177         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
68178         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
68179         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
68180         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
68181         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
68182         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
68183         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
68184         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
68185         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
68186         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
68187         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
68188         Use an all-permissive copyright notice, recommended by RMS.
68189
68190 2005-01-18  Bob Proulx  <bob@proulx.com>
68191
68192         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
68193         simplify offsetof() macro construct to avoid compile failure with
68194         native HP-UX 11.0 ANSI C compiler.
68195
68196 2005-01-17  Bruno Haible  <bruno@clisp.org>
68197
68198         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
68199         redundant because stpncpy.m4 takes care of it.
68200
68201 2005-01-17  Bruno Haible  <bruno@clisp.org>
68202
68203         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
68204
68205 2005-01-17  Bruno Haible  <bruno@clisp.org>
68206
68207         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
68208         used.
68209
68210 2005-01-17  Bruno Haible  <bruno@clisp.org>
68211
68212         * lib/fwriteerror.h (fwriteerror): Change specification to include
68213         fclose.
68214         * lib/fwriteerror.c: Include <stdbool.h>.
68215         (fwriteerror): At the end, close the file stream. Record whether
68216         stdout was already closed.
68217
68218 2005-01-17  Bruno Haible  <bruno@clisp.org>
68219
68220         * lib/execute.c (environ): Declare if needed.
68221         * lib/pipe.c (environ): Likewise.
68222         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
68223
68224 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68225
68226         * modules/argp: Depend on vsnprintf
68227
68228 2005-01-10  Jim Meyering  <jim@meyering.net>
68229
68230         * modules/closeout (Depends-on): Add atexit.
68231
68232 2005-01-06  Bruno Haible  <bruno@clisp.org>
68233
68234         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
68235
68236 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
68237
68238         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
68239         definitions to be after all include files, to avoid collisions.
68240         Problem reported by Bob Proulx.
68241
68242 2005-01-04  Jim Meyering  <jim@meyering.net>
68243
68244         Changes imported from coreutils.
68245         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
68246         as the mkstemp template, use a temporary directory and an
68247         8.3-friendly template to avoid trouble on systems like DJGPP.
68248         Reported by Juan M. Guerrero via Stepan Kasal.
68249         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
68250         close. Remove the temporary directory right away, rather than waiting
68251         for configure's at-exit trap code to do it.
68252         Suggestion from Stepan Kasal.
68253
68254 2005-01-01  Simon Josefsson  <jas@extundo.com>
68255
68256         * gnulib-tool: Print #include directives when --import'ing.
68257
68258 2004-12-28  Simon Josefsson  <jas@extundo.com>
68259
68260         * tests/test-base64.c: Include required header files.  Remove
68261         unused variables.
68262
68263 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
68264
68265         * modules/error (Depends-on): Remove gettext.
68266
68267 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
68268
68269         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
68270         not needed.  This removes a dependency on the gettext module.
68271         [defined _LIBC]: Do not include <libintl.h>; not needed.
68272
68273 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
68274
68275         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
68276         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
68277
68278 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
68279
68280         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
68281         HAVE_DECL_STRTOLD.
68282
68283 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68284
68285         * modules/getdate (Depends-on): Remove alloca-opt.
68286
68287 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68288
68289         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
68290
68291 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68292
68293         * lib/argp-parse.c: Include <stddef.h>.
68294         (alignof, alignto): New macros.
68295         (parser_init): Don't assume that void * is aligned sufficiently
68296         for struct option.
68297
68298         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
68299         need to extend the stack.
68300         (YYINITDEPTH): New macro, so that the initial stack isn't overly
68301         large.
68302
68303 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68304
68305         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
68306
68307 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
68308
68309         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
68310         (2004-10-24) change.  Apparently this was a false alarm.
68311
68312         * modules/getdate: Depend on alloca-opt, not alloca.
68313
68314 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
68315
68316         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
68317         Remove now-obsolete comment about AIX.
68318         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
68319         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
68320         (YYMAXDEPTH): New macro.
68321
68322 2004-12-18  Simon Josefsson  <jas@extundo.com>
68323
68324         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
68325
68326 2004-12-18  Bruno Haible  <bruno@clisp.org>
68327
68328         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
68329
68330 2004-12-18  Bruno Haible  <bruno@clisp.org>
68331
68332         * lib/fatal-signal.c (fatal_signals): Make non-const.
68333         (init_fatal_signals): New function.
68334         (uninstall_handlers, install_handlers): Ignore signals that were set to
68335         SIG_IGN.
68336         (at_fatal_signal): Call init_fatal_signals.
68337         (init_fatal_signal_set): Likewise. Ignore signals that were set to
68338         SIG_IGN.
68339         Reported by Paul Eggert.
68340
68341 2004-12-18  Bruno Haible  <bruno@clisp.org>
68342
68343         * doc/alloca.texi: New file.
68344         * doc/alloca-opt.texi: New file.
68345
68346 2004-12-17  Jim Meyering  <jim@meyering.net>
68347
68348         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
68349         Otherwise, install-sh could exit with improper exit status when
68350         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
68351
68352 2004-12-16  Simon Josefsson  <jas@extundo.com>
68353
68354         * tests/test-base64.c: Add license.
68355
68356 2004-12-15  Stepan Kasal  <address@hidden>
68357
68358         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
68359
68360 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
68361
68362         * modules/getcwd (Files): Add m4/d-ino.m4.
68363         Suggested by Mark D. Baushke.
68364
68365 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
68366
68367         * lib/getdate.y (textint): New member "negative".
68368         (time_zone_hhmm): New function.
68369         Expect 14 shift-reduce conflicts, not 13.
68370         (o_colon_minutes): New rule.
68371         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
68372         (yylex): Set the "negative" member of signed numbers.
68373
68374 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
68375
68376         * doc/getdate.texi (Time of day items, Time zone items):
68377         Describe new formats +00:00, UTC+00:00.
68378
68379 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
68380
68381         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
68382         spurious "-l"s.  Problem reported by Stepan Kasal.
68383
68384 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
68385
68386         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
68387         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
68388
68389 2004-12-04  Simon Josefsson  <jas@extundo.com>
68390
68391         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
68392         Vandoorselaere <yoann@prelude-ids.org>.
68393
68394 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
68395
68396         Changes imported from coreutils.
68397         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
68398         exist.
68399         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
68400
68401 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
68402
68403         Changes imported from coreutils.
68404         * lib/hard-locale.c: Assume <locale.h> exists.
68405         Include "strdup.h".
68406         (GLIBC_VERSION): New macro.
68407         (hard_locale): Assume setlocale exists.
68408         Rewrite to avoid #ifdef.
68409         Use strdup rather than malloc + strcpy.
68410         * lib/human.c: Assume <locale.h> exists.
68411         (human_readable): Assume localeconv exists.
68412
68413 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
68414
68415         * modules/hard-locale (Depends-on): Add strdup.
68416
68417 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
68418
68419         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
68420         convert T2, not T.  (Imported from libc.)
68421
68422 2004-11-30  Simon Josefsson  <jas@extundo.com>
68423
68424         * modules/restrict (License): Change to LGPL.
68425
68426 2004-11-30  Simon Josefsson  <jas@extundo.com>
68427
68428         * m4/restrict.m4: Add copyright and copying conditions.
68429
68430 2004-11-30  Simon Josefsson  <jas@extundo.com>
68431
68432         * m4/base64.m4: New file.
68433
68434 2004-11-30  Simon Josefsson  <jas@extundo.com>
68435
68436         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
68437         base64.
68438
68439         * tests/test-base64.c: New file.
68440
68441         * modules/base64: New file.
68442
68443 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
68444
68445         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
68446         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
68447
68448         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
68449
68450 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
68451
68452         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
68453         (__getcwd.c): Don't restore errno; glibc doesn't.
68454         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
68455         first, falling back to our code only if its results look suspicious.
68456         Ensure that the resulting buffer is only as large as necessary.
68457
68458         * lib/readutmp.c: Include readutmp.h first.
68459         Include <errno.h>, since readutmp.h no longer does that.
68460         * lib/readutmp.h: Don't include <errno.h>,
68461         <sys/param.h>, <time.h>; not needed to establish interface.
68462         (errno): Remove decl.
68463         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
68464         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
68465         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
68466
68467 2004-11-28  Simon Josefsson  <jas@extundo.com>
68468
68469         * lib/base64.h, base64.c: New file.
68470
68471 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
68472
68473         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
68474
68475 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
68476
68477         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
68478         (Depends-on): Remove pathmax, same.  Add mempcpy.
68479         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
68480         (Makefile.am): Append getcwd.h to lib_SOURCES.
68481         (Include): Add getcwd.h.
68482         (Maintainer): Change from Jim Meyering to "all, glibc",
68483         since getdate now uses intended-for-glibc code.
68484         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
68485         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
68486
68487 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
68488
68489         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
68490         HP's ANSI C compiler.
68491         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
68492         Declaring int functions causes warnings on some modern systems and
68493         shouldn't be needed to compile on ancient ones.
68494         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
68495         defined.
68496
68497         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
68498         with the following changes.
68499         (__set_errno): Parenthesize properly.
68500         Include <stdbool.h>.
68501         (MIN, MAX, MATCHING_INO): New macros.
68502         (__getcwd): Define with prototype, not K&R form.
68503         Use heuristics to allocate default buffer on stack if possible.
68504         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
68505         behavior, and to avoid the PATH_MAX limit when computing
68506         ../../../../...
68507         Use MATCHING_INO to compare inode number to file.
68508         Check for arithmetic overflow in size calculations.
68509         Fix bug in reallocation of dot array that caused getcwd to fail
68510         on directories nested deeper than 75.
68511         Be more careful about saving errno on error.
68512         Do not use realloc; use only free+malloc, as this is a bit
68513         more flexible and avoids a needless copy operation.
68514         Do not inspect st_dev and st_ino for symbolic links; POSIX
68515         doesn't specify the latter.
68516         Check for closedir errors.
68517         Avoid needless casts.
68518         Use "#ifdef weak_alias" around weak_alias, to be like other
68519         glibc code.
68520         The following changes to getcwd.c have effect only when used in
68521         gnulib; they have no effect inside glibc proper.
68522         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
68523         as alloca isn't used.
68524         (alloca, __alloca): Likewise.
68525         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
68526         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
68527         unconditionally, as gnulib assumes C89 or better.
68528         Do not include <sys/param.h>.
68529         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
68530         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
68531         better.
68532         (NULL) [!defined NULL]: Remove; we assume C89 or better.
68533         Include <dirent.h> in a way that is compatible with modern Autoconf.
68534         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
68535         New macros, if not already defined.
68536         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
68537         Use "_LIBC", not "defined _LIBC", for consistency.
68538         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
68539         a mempcpy module.
68540         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
68541         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
68542         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
68543         credit only to Jim Meyering and adjust the copyright dates.
68544         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
68545         <stdlib.h>, <unistd.h>, "pathmax.h".
68546         Instead, include "xgetcwd.h" (first) and "getcwd.h".
68547         (INITIAL_BUFFER_SIZE): Remove.
68548         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
68549
68550 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
68551
68552         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
68553         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
68554         Use the _ONCE methods, for efficiency.
68555         Check for fcntl.h.  In test program, include <errno.h>
68556         and <fcntl.h> if available.  Remove old K&R cruft from
68557         test program.  Check for common errors in GNU/Linux,
68558         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
68559         don't do AC_LIBOBJ, as that's getcwd.m4's job.
68560         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
68561         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
68562         name accordingly.
68563         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
68564         accommodate new getcwd.c.
68565         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
68566         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
68567         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
68568         that's all we need now.
68569
68570 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68571
68572         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
68573         argp-parse.c depends on getopt internals, that means we should
68574         always use our getopt, to be on the safe side.
68575         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
68576         order not to spoil the result of an eventual previous invocation
68577         of gl_GETOPT_SUBSTITUTE.
68578
68579 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68580
68581         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
68582         redefinition warnings. To avoid them, include the defines
68583         in `#if !defined __need_getopt ... #endif'. The only place
68584         where __getopt_argv_const is used is in definitions
68585         of getopt_long and getopt_long_only below, which are as well
68586         protected by `#ifndef __need_getopt'.
68587         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
68588         __need_getopt after including <stdio.h> and <unistd.h> These
68589         headers might have defined it.
68590
68591 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
68592
68593         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
68594
68595 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
68596
68597         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
68598         (futimens): New function, which uses futimes if available.
68599         (futimens, utimens): Support timespec==NULL, with same semantics
68600         as utime and utimens.
68601         * lib/utimens.h (futimens): New decl.
68602
68603 2004-11-23  Jim Meyering  <jim@meyering.net>
68604
68605         * lib/getopt_.h: Remove trailing blanks.
68606
68607 2004-11-23  Jim Meyering  <jim@meyering.net>
68608
68609         * lib/__fpending.c: Add comment.
68610
68611 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
68612
68613         * modules/canonicalize (Depends-on): Add xreadlink.
68614         Problem reported by James Youngman.
68615
68616 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
68617
68618         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
68619         New macros.
68620         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
68621         optopt): Use them instead of invoking ## directly; otherwise, the
68622         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
68623
68624 2004-11-19  Bruno Haible  <bruno@clisp.org>
68625
68626         * lib/strtok_r.c: Move comments from here...
68627         * lib/strtok_r.h: ... to here.
68628
68629 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
68630
68631         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
68632         implementations that mishandle size_t overflow.
68633
68634 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
68635
68636         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
68637         might fail.  Problem reported by Yoann Vandoorselaere.
68638         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
68639         implementations that mishandle size_t overflow.
68640
68641 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68642
68643         * modules/canon-host (Depends-on): Add strdup.
68644
68645 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68646
68647         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
68648
68649 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68650
68651         * lib/canon-host.c: Include "strdup.h".
68652         (canon_host): Use getaddrinfo if available, so that IPv6 works.
68653         Use strdup instead of malloc/strcpy to duplicate strings.
68654
68655         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
68656         (human_space_before_unit): New constant.
68657         * lib/human.c (human_readable): Support it.
68658
68659         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
68660         (xgetcwd): Set errno correctly when failing.
68661         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
68662         the failure is actually due to a PATH_MAX problem.
68663
68664         Further getopt changes to make it more likely that glibc will
68665         buy the changes back.
68666         * lib/getopt.c (POSIXLY_CORRECT): New constant.
68667         (getopt): Use it, so to preserve glibc semantic
68668         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
68669         when compiling for libc.
68670         * lib/getopt_.h (__getopt_argv_const): Bring it back.
68671         (getopt_long, getopt_long_only): Use it.
68672
68673         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
68674         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
68675         (getopt): Argv is now char * const *, as per standard.
68676         (_getopt_internal_r, _getopt_internal): Argv is now char **,
68677         not char *__getopt_argv_const *.
68678         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
68679         _getopt_long_only_r): Likewise.
68680         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
68681         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
68682         _getopt_long_r, _getopt_long_only_r): Likewise.
68683         * lib/getopt_.h (__getopt_argv_const): Remove.
68684         (getopt): Argv is now char * const *, as per standard.
68685
68686         * lib/getdate.y (tORDINAL): New token.
68687         (day, relunit): Allow it for relative times.
68688         (relative_time_table): Use tORDINAL for ordinals.
68689
68690 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68691
68692         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
68693         Document that "second" isn't allowed as an ordinal number.
68694
68695 2004-11-16  Jim Meyering  <jim@meyering.net>
68696
68697         * modules/closeout (Depends-on): Add fpending.
68698
68699 2004-11-15  Jim Meyering  <jim@meyering.net>
68700
68701         * lib/closeout.c: Include "__fpending.h" once again.
68702         Include <stdbool.h>.
68703         (close_stdout): Don't fail just because stdout was closed initially,
68704         since some programs don't write to stdout in the normal course of
68705         operation (other than --version and --help), and we don't want this
68706         function to make e.g. `touch file >&-' fail.
68707         But do fail if it was closed and someone has tried to write to it.
68708         E.g., `printf foo >&-' must fail.
68709
68710 2004-11-13  Jim Meyering  <jim@meyering.net>
68711
68712         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
68713
68714 2004-11-12  Simon Josefsson  <jas@extundo.com>
68715
68716         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
68717         small doc fix is still pending.
68718
68719 2004-11-11  Simon Josefsson  <jas@extundo.com>
68720
68721         * modules/strtok_r: New file.
68722
68723         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68724         strtok_r.
68725
68726 2004-11-11  Simon Josefsson  <jas@extundo.com>
68727
68728         * m4/strtok_r.m4: New file.
68729
68730         * m4/getopt.m4: Replace opterr.
68731
68732 2004-11-11  Simon Josefsson  <jas@extundo.com>
68733
68734         * lib/strtok_r.h, strtok_r.c: New file.
68735
68736 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
68737
68738         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
68739         of replacing opterr, getopt, etc.  This should handle the
68740         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
68741
68742 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
68743
68744         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
68745         we can stop lying to compilers about the constness of argv when we
68746         are compiled outside glibc.
68747         (getopt, getopt_long, getopt_long_only): Use it.
68748         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
68749         _getopt_internal, getopt): Likewise.
68750         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
68751         _getopt_long_only_r): Likewise.
68752         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
68753         _getopt_long_r, _getopt_long_only_r): Likewise.
68754
68755         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
68756         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
68757         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
68758         the other external symbols.
68759         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
68760         declaration, since the above renaming now works around collisions.
68761
68762 2004-11-11  Jim Meyering  <jim@meyering.net>
68763
68764         * lib/linebreak.c: Remove trailing blanks.
68765         * lib/alloca_.h: Likewise.
68766         * lib/acosl.c: Likewise.
68767         * lib/euidaccess.c: Likewise.
68768         * lib/allocsa.h: Likewise.
68769
68770 2004-11-10  Simon Josefsson  <jas@extundo.com>
68771
68772         * m4/getaddrinfo.m4: New file.
68773
68774 2004-11-10  Simon Josefsson  <jas@extundo.com>
68775
68776         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
68777
68778 2004-11-10  Simon Josefsson  <jas@extundo.com>
68779
68780         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68781         getaddrinfo.
68782
68783         * modules/getaddrinfo: New file.
68784
68785 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68786
68787         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
68788
68789 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68790
68791         * lib/mktime.c (SHR): New macro, which is a portable
68792         substitute for >> that should work even on Crays.
68793         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
68794         Problem reported by Mark D. Baushke in
68795         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
68796         * lib/getdate.y (SHR): Likewise.
68797         (tm_diff): Use it.
68798         * lib/strftime.c (SHR): Likewise.
68799         (tm_diff): Use it.
68800         * lib/quotearg.c (struct quoting_options): Use unsigned int for
68801         quote_these_too, so that right shifts are well defined.  All uses
68802         changed.
68803
68804 2004-11-10  Jim Meyering  <jim@meyering.net>
68805
68806         Ensure that no close failure goes unreported.
68807         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
68808         return early when it seems there's nothing to flush.
68809         Don't include __fpending.h.
68810
68811 2004-11-10  Jim Meyering  <jim@meyering.net>
68812
68813         * modules/closeout (Depends-on): Remove fpending.
68814
68815 2004-11-10  Jim Meyering  <jim@meyering.net>
68816
68817         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
68818
68819 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68820
68821         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
68822         gl_FUNC_STRFTIME.
68823         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
68824         and AC_REQUIRE when possible, to avoid duplicate checks.
68825         Check for <wchar.h>.
68826
68827 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68828
68829         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
68830
68831 2004-11-09  Bruno Haible  <bruno@clisp.org>
68832
68833         * m4/sockpfaf.m4: New file.
68834
68835 2004-11-05  Bruno Haible  <bruno@clisp.org>
68836
68837         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
68838         Reported by Mark D. Baushke <mdb@cvshome.org>.
68839
68840 2004-11-04  Bruno Haible  <bruno@clisp.org>
68841
68842         2004-09-11  Bruno Haible  <bruno@clisp.org>
68843                 * allocsa.valgrind: New file.
68844         2004-02-06  Bruno Haible  <bruno@clisp.org>
68845                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
68846                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
68847                 Reported by Christopher Seip <chris.seip@hp.com>.
68848
68849 2004-11-04  Bruno Haible  <bruno@clisp.org>
68850
68851         * modules/allocsa (Files): Add lib/allocsa.valgrind.
68852         (Makefile.am): Distribute it.
68853
68854 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
68855
68856         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
68857         with errno == ERANGE if the buffer is too small.
68858         Problem reported by Mark D. Baushke.
68859
68860 2004-11-03  Albert Chin  <china@thewrittenword.com>
68861             Paul Eggert  <eggert@cs.ucla.edu>
68862
68863         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
68864         equivalent, substitute $ac_type for equivalent type rather than
68865         blindly using uint32_t *always* which won't work if uint32_t is not
68866         available.  Define _UINT32_T to work around typedef of uint32_t if
68867         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
68868         2.5.1.
68869
68870 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68871
68872         * m4/jm-macros.m4: Sync from coreutils.
68873         (gl_MACROS): Check for mbrlen, for pathchk.
68874         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
68875
68876 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68877
68878         * lib/xreadlink.c (MAXSIZE): New macro.
68879         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
68880         size does not exceed MAXSIZE.  Avoid cast.
68881         As suggested by Mark D. Baushke in
68882         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
68883         if readlink fails with buffer size just under MAXSIZE, try again
68884         with MAXSIZE.
68885
68886 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68887
68888         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
68889
68890 2004-11-02  Derek R. Price  <derek@ximbiot.com>
68891         and  Paul Eggert  <eggert@cs.ucla.edu>
68892
68893         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
68894         (get_date): Overparenthesize to avoid GCC warning.
68895
68896 2004-11-02  Bruno Haible  <bruno@clisp.org>
68897
68898         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
68899         returns void.
68900
68901 2004-11-02  Bruno Haible  <bruno@clisp.org>
68902
68903         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
68904         function returns void.
68905
68906 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
68907
68908         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
68909         fflush_unlocked, flockfile, funlockfile, funlockfile,
68910         fputs_unlocked, putc_unlocked.
68911
68912 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
68913
68914         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
68915         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
68916         already declared.
68917
68918 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68919
68920         * modules/getdate (Files): Add doc/getdate.texi.
68921         (Depends-on): Add setenv, xalloc.
68922
68923 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68924
68925         * lib/getdate.y: Add support for TZ="foo" within a date string.
68926         Fix some bugs near time_t boundaries.  Reject dates with
68927         out-of-range components, e.g., "Sept 31".
68928         Include <stdlib.h>, "setenv.h", "xalloc.h".
68929         (ISDIGIT_LOCALE): Remove; unused.
68930         Note that the TZ and time functions used here are not reentrant.
68931         (mktime_ok, get_tz): New functions.
68932         (TZBUFSIZE): New constant.
68933         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
68934         This requires that we sometimes generate our own TZ="XXX..." setting.
68935
68936 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68937
68938         * doc/getdate.texi: New file, from coreutils with modifications for
68939         the new TZ parsing.
68940
68941 2004-10-27  Derek R. Price  <derek@ximbiot.com>
68942
68943         * lib/mktime.c (not_equal_tm): Remove redundant check.
68944
68945 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68946
68947         * modules/regex (lib_SOURCES): Add regex.c.
68948         Reported by James Youngman in
68949         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
68950
68951 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68952
68953         * lib/getdate.y: Use Bison 1.875 features, and some minor
68954         code cleanups.  This change does not affect semantics.
68955         Don't include <stdlib.h>; no longer needed.
68956         Don't include unlocked-io.h; only the "#if TEST" code uses
68957         stdio, and performance isn't crucial there.
68958         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
68959         Bison 1.875 features as described below.
68960         All uses of "PC." replaced by "pc->".
68961         (YYSTYPE): Add a forward declaration.
68962         (yylex, yyerror): Use full prototypes in forward decls.
68963         Use "%pure-parser" rather than obsolescent "%pure_parser".
68964         Use %parse-param and %lex-param instead of obsolescent
68965         YYPARSE_PARAM and YYLEX_PARAM.
68966         (meridian_table, month_and_day_table, time_units_table,
68967         relative_time_table, time_zone_table, military_table,
68968         lookup_zone, lookup_word, get_date):
68969         Use NULL instead of 0 where appropriate.
68970         (to_hour): Avoid abort (), to avoid a dependency on
68971         stdlib.h.
68972         (yyerror, yylex): Now accepts parser_control * arg.
68973         (main) [TEST]: Use '\0' rather than 0 for char.
68974
68975 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
68976
68977         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
68978
68979 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
68980
68981         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
68982         It's now the caller's responsibility to handle the case where
68983         !HAVE_GETPAGESIZE && !defined getpagesize.
68984
68985         * lib/mktime.c (leapyear): Arg is long int, not int.
68986
68987 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
68988
68989         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
68990
68991 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
68992
68993         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
68994         missing.  Problem reported by James Youngman.
68995
68996 2004-10-16  Simon Josefsson  <jas@extundo.com>
68997
68998         * gnulib-tool: Fix comments.  Fix parse problem.
68999         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
69000
69001 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
69002
69003         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
69004         implementation of getopt_long.  Problem reported by Alexander Taler in:
69005         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
69006
69007 2004-10-15  Bruno Haible  <bruno@clisp.org>
69008
69009         * gnulib-tool: Untabify. Initialize supplied_libname.
69010         (func_usage): More homogenous output.
69011         (func_modules_transitive_closure, func_modules_to_filelist,
69012         func_emit_lib_Makefile_am): New functions.
69013         (func_import): New function, extracted from big case statement. Use
69014         func_get_license, func_modules_transitive_closure,
69015         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
69016         opt_lgpl. Don't use test -a, as it's not portable.
69017         (func_create_testdir): Use func_modules_transitive_closure,
69018         func_modules_to_filelist, func_emit_lib_Makefile_am.
69019
69020 2004-10-15  Bruno Haible  <bruno@clisp.org>
69021
69022         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
69023
69024 2004-10-15  Bruno Haible  <bruno@clisp.org>
69025
69026         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
69027         the portions belonging to each module.
69028         Suggested by Derek Robert Price <derek@ximbiot.com>.
69029
69030 2004-10-12  Simon Josefsson  <jas@extundo.com>
69031
69032         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
69033         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
69034         to real functions.
69035
69036 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69037
69038         * modules/vsnprintf: New file.
69039
69040 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69041
69042         * m4/vsnprintf.m4: New file.
69043
69044 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69045
69046         * lib/vsnprintf.h: New file.
69047         * lib/vsnprintf.c: New file.
69048
69049 2004-10-11  Bruno Haible  <bruno@clisp.org>
69050
69051         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
69052         vsnprintf.
69053
69054 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
69055
69056         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
69057
69058 2004-10-07  Bruno Haible  <bruno@clisp.org>
69059
69060         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
69061         fits into the provided buffer.
69062
69063 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
69064
69065         * lib/diacrit.c, diacrit.h: Add GPL notice.
69066
69067         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
69068         notice.
69069         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
69070         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
69071         This avoids a potential constant-folding bug.
69072
69073 2004-10-05  Bruno Haible  <bruno@clisp.org>
69074
69075         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
69076         for the declaration of strsep.
69077
69078 2004-10-05  Bruno Haible  <bruno@clisp.org>
69079
69080         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
69081
69082 2004-10-04  Simon Josefsson  <jas@extundo.com>
69083
69084         * modules/memmem: New file.
69085         * tests/test-memmem.c: New file.
69086         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
69087
69088 2004-10-04  Simon Josefsson  <jas@extundo.com>
69089
69090         * m4/memmem.m4: New file.
69091
69092 2004-10-04  Simon Josefsson  <jas@extundo.com>
69093
69094         * lib/memmem.h: New file.
69095         * lib/memmem.c: New file, taken from glibc.
69096
69097 2004-10-04  Simon Josefsson  <jas@extundo.com>
69098
69099         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
69100         '#ifdef USE_UNLOCKED_IO'.
69101
69102 2004-10-04  Simon Josefsson  <jas@extundo.com>
69103
69104         * config/srclist.txt: Add memmem from glibc.
69105
69106 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69107
69108         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
69109
69110         * modules/argmatch, modules/argp, modules/closeout, modules/error,
69111         modules/exclude, modules/getdate, modules/getline,
69112         modules/getndelim2, modules/getpass, modules/getpass-gnu,
69113         modules/getusershell, modules/linebuffer, modules/md5,
69114         modules/mountlist, modules/posixtm, modules/readtokens,
69115         modules/readutmp, modules/regex, modules/sha1,
69116         modules/version-etc, modules/yesno:
69117         Remove dependency on unlocked-io.
69118
69119 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69120
69121         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
69122
69123         * m4/unlocked-io.m4: Add copyright notice.
69124         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
69125
69126 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69127
69128         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
69129         * lib/xmalloc.c (xmemdup): Likewise.
69130         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
69131         XFREE): Remove these long-obsolescent macros.
69132         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
69133         * lib/xstrdup.c: Remove.
69134
69135         * lib/regex.c (re_comp): Cast gettext return value to char *,
69136         Problem reported by Martin Neitzel via Mark D. Baushke.
69137
69138 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69139
69140         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
69141         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
69142         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
69143         regex.c, sha1.c, version-etc.c, yesno.c:
69144         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
69145         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
69146         the includer's responsibility.
69147
69148         Sync from coreutils.
69149
69150         * lib/modechange.c (mode_compile): Don't decrement a pointer that
69151         points to the start of a string, as the C Standard says the
69152         resulting behavior is undefined.
69153
69154         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
69155         simple -> simple_backups, numbered_existing ->
69156         numbered_existing_backups, numbered -> numbered_backups
69157         to avoid shadowing problems.  All uses changed.
69158         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
69159         * lib/backupfile.c (check_extension, numbered_backup):
69160         Rename locals to avoid shadowing 'basename'.
69161         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
69162         once.
69163
69164         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
69165         * lib/.cvsignore: Add getopt.h.
69166
69167 2004-10-04  Bruno Haible  <bruno@clisp.org>
69168
69169         * modules/README: New file.
69170         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
69171         not a module.
69172
69173 2004-10-02  Jim Meyering  <jim@meyering.net>
69174
69175         * lib/dirfd.h, getpagesize.h: Add copyright notice.
69176
69177 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69178
69179         * modules/strsep: New file.
69180
69181 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69182
69183         * m4/strsep.m4: New file.
69184
69185 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69186
69187         * lib/strsep.h: New file.
69188         * lib/strsep.c: New file.
69189
69190 2004-10-01  Simon Josefsson  <jas@extundo.com>
69191
69192         * lib/snprintf.c (snprintf): Handle size==0.
69193
69194 2004-10-01  Simon Josefsson  <jas@extundo.com>
69195             Bruno Haible  <bruno@clisp.org>
69196
69197         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
69198         (snprintf): Declare 'args'.
69199
69200 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
69201
69202         * lib/snprintf.c: Remove comments as to why each header is needed.
69203
69204 2004-10-01  Bruno Haible  <bruno@clisp.org>
69205
69206         * MODULES.html.sh: Add strsep.
69207
69208 2004-09-30  Simon Josefsson  <jas@extundo.com>
69209
69210         * modules/snprintf: New file.
69211
69212 2004-09-30  Simon Josefsson  <jas@extundo.com>
69213
69214         * m4/snprintf.m4: New file.
69215
69216 2004-09-30  Simon Josefsson  <jas@extundo.com>
69217
69218         * lib/snprintf.h, lib/snprintf.c: New files.
69219
69220 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69221
69222         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
69223         (hol_entry_help): Never translate an empty string.
69224         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
69225         * lib/argp.h (OPTION_NO_TRANS): New option.
69226
69227 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
69228
69229         * modules/argp (Maintainer): Replace Simon Josefsson
69230         by Sergey Poznyakoff.
69231
69232 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
69233
69234         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
69235         changes merged back into glibc.
69236
69237 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
69238
69239         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
69240
69241 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
69242
69243         * lib/xvasprintf.c: Include xalloc.h.
69244         (xvasprintf): Use xalloc_die, not xmalloc_die.
69245
69246 2004-09-29  Bruno Haible  <bruno@clisp.org>
69247
69248         * modules/alloca-opt: New file, derived from modules/alloca.
69249         * modules/allocsa: Depend on alloca-opt instead of alloca.
69250         * modules/setenv: Likewise.
69251         * modules/vasnprintf: Likewise.
69252         * MODULES.html.sh: Add alloca-opt.
69253
69254 2004-09-28  Simon Josefsson  <jas@extundo.com>
69255
69256         * gnulib-tool: New parameter --lgpl, to asseert that modules are
69257         LGPL, and to replace license template from GPL to LGPL.
69258
69259 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
69260
69261         * modules/dummy: Change license to LGPL.
69262
69263 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
69264
69265         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
69266
69267 2004-09-24  Simon Josefsson  <jas@extundo.com>
69268
69269         * modules/minmax (License): Change from GPL to LGPL.
69270
69271 2004-09-23  Simon Josefsson  <jas@extundo.com>
69272
69273         * gnulib-tool (--import): Typo.
69274
69275 2004-09-23  Simon Josefsson  <jas@extundo.com>
69276
69277         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
69278
69279 2004-09-22  Bruno Haible  <bruno@clisp.org>
69280
69281         * modules/*: Add 'License' field.
69282         * gnulib-tool: Accept --extract-license option.
69283         (func_get_license): New function.
69284
69285 2004-09-21  Bruno Haible  <bruno@clisp.org>
69286
69287         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
69288         Reported by Simon Josefsson.
69289
69290 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69291
69292         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
69293         gl_AC_TYPE_LONG_LONG.
69294
69295 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69296
69297         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
69298
69299 2004-09-18  Simon Josefsson  <jas@extundo.com>
69300         and  Paul Eggert  <eggert@cs.ucla.edu>
69301
69302         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
69303         calls with autoreconf.  Define GL_LIB.
69304
69305 2004-09-14  Karl Berry  <karl@gnu.org>
69306
69307         * config/srclist.txt: unsync setenv.c, sigh.
69308
69309 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69310
69311         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
69312         Problem reported by Bruno Haible in:
69313         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
69314
69315 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69316
69317         * config/srclist.txt: Comment out argp-pvh.c.
69318
69319 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
69320
69321         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
69322         in case some system header has #define'd it.  Problem reported by
69323         Soeren D. Schulze in
69324         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
69325
69326 2004-09-09  Karl Berry  <karl@gnu.org>
69327
69328         * regex.[ch]: delete from the root.  These were supposed to be
69329                 synced with emacs cvs, but this has not happened for about
69330                 a year, and anyway nothing else uses emacs regex.[ch].
69331                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
69332                 lib/regex[.ch] is untouched.
69333
69334 2004-09-09  Bruno Haible  <bruno@clisp.org>
69335
69336         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
69337
69338 2004-09-09  Bruno Haible  <bruno@clisp.org>
69339
69340         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
69341         modifications.
69342         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
69343
69344 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
69345
69346         * modules/xvasprintf: New file.
69347         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
69348
69349 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
69350
69351         * lib/xvasprintf.h: New file.
69352         * lib/xvasprintf.c: New file.
69353         * lib/xasprintf.c: New file.
69354
69355 2004-09-08  Bruno Haible  <bruno@clisp.org>
69356
69357         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
69358
69359 2004-09-08  Bruno Haible  <bruno@clisp.org>
69360
69361         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
69362         length is > INT_MAX.
69363         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
69364         more.
69365
69366 2004-09-08  Bruno Haible  <bruno@clisp.org>
69367
69368         * lib/stdint_.h: New file, taken from GNU clisp.
69369
69370 2004-09-08  Bruno Haible  <bruno@clisp.org>
69371             Oskar Liljeblad  <oskar@osk.mine.nu>
69372
69373         * modules/stdint: New file.
69374         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
69375
69376 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69377
69378         Import from coreutils.
69379         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
69380         strings on unbounded length.  alloca's performance benefits aren't
69381         that important here.
69382         (V_STRDUP): Remove.
69383         (parse_with_separator): New function, with most of the internals
69384         of the old parse_user_spec.  Allow user to omit both user and group,
69385         for compatibility with FreeBSD.
69386         Clone only the user name, not the entire spec.
69387         Do not set *uid, *gid unless entirely successful.
69388         Avoid memory leak in some failing cases.
69389         Fix regression for USER.GROUP reported by Dmitry V. Levin in
69390         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
69391         (parse_user_spec): Rewrite to use parse_with_separator.
69392
69393 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69394
69395         * modules/userspec: Don't depend on alloca.
69396
69397 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69398
69399         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
69400
69401 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69402
69403         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
69404         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
69405         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
69406
69407 2004-08-16  Simon Josefsson  <jas@extundo.com>
69408
69409         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
69410         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
69411         Add --dry-run for --import.
69412         Let user provided command line parameters override configure.ac
69413         settings.
69414
69415 2004-08-12  Simon Josefsson  <jas@extundo.com>
69416
69417         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
69418         as discussed with Paul Eggert in threads rooted at
69419         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
69420         and
69421         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
69422         Before, the test was empty, and relied on ELIDE_CODE in source
69423         code.)
69424         (gl_PREREQ_GETOPT): New macro.
69425         (gl_GETOPT): Use them.
69426
69427 2004-08-12  Simon Josefsson  <jas@extundo.com>
69428
69429         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
69430         * lib/getopt_.h: Renamed from getopt.h.
69431
69432 2004-08-12  Simon Josefsson  <jas@extundo.com>
69433
69434         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
69435         Change default library name from libfoo to libgnu.
69436         Now, if you have a configure.ac that says:
69437                 gl_SOURCE_BASE(gl)
69438                 gl_M4_BASE(gl/m4)
69439                 gl_MODULES(error getopt etcetera)
69440                 gl_INIT
69441         you can import all you need by running:
69442                 ../gnulib/gnulib-tool --import
69443
69444         * modules/getopt (Files): Rename getopt.h to getopt_.h.
69445         (Makefile.am): Rewrite, use logic from argz.
69446         (Include): Use <getopt.h> instead of "getopt.h".
69447
69448 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69449
69450         * modules/argp (Files): Add m4/unlocked-io.m4.
69451         (Depends-on): Add extensions.
69452
69453 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69454
69455         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
69456         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
69457         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
69458         Check for program_invocation_name, program_invocation_short_name,
69459         flockfile, funlockfile, features.h, _getopt_long_only_r.
69460
69461 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69462
69463         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
69464         its complicated substitute.
69465         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
69466         and program_invocation_name.
69467         (__argp_basename) [!_LIBC]: Remove; the only use was
69468         replaced by its body.
69469         (__argp_short_program_name): Change condition from
69470         !defined __argp_short_program_name to
69471         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
69472         to match argp-namefrob.h.
69473         (__argp_failure): Don't assume strerror_r returns char *.
69474         * lib/argp-parse.c (N_): Define unconditionally.
69475         (argp_default_options): Fill out initializers with 0 to avoid
69476         gcc warnings.
69477
69478 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69479
69480         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
69481         getopt1.c.
69482
69483 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69484
69485         Merge from coreutils.
69486
69487         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
69488
69489         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
69490         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
69491
69492 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69493
69494         Merge from coreutils.
69495
69496         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
69497         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
69498         for Reliant Unix 5.43.
69499
69500         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
69501         (union fooround): Use uintmax_t, not long int.
69502         The rest is a merge from libc:
69503         [defined _LIBC]: Include <shlib-compat.h>.
69504         (_obstack) [defined _LIBC]: Remove after 2.3.4.
69505
69506         * lib/settime.c (settime): Recode to avoid warning with
69507         Sun Forte C 6U2.
69508
69509         * lib/strverscmp.c: Convert to UTF-8.
69510
69511 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69512
69513         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
69514         m4/uintmax_t.m4.
69515
69516 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69517
69518         * modules/xalloc-die: New file.
69519         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
69520
69521         * modules/md5 (Files): Add m4/uint32_t.m4.
69522         * modules/sha1: Renamed from modules/sha.
69523         (Files):
69524         Rename lib/sha.h to lib/sha1.h.
69525         Rename lib/sha.c to lib/sha1.c.
69526         Rename m4/sha.m4 to m4/sha1.m4.
69527         (lib_SOURCES): Likewise.
69528         (configure.ac): Rename gl_SHA to gl_SHA1.
69529         (Include): sha.h -> sha1.h.
69530
69531 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69532
69533         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
69534         * m4/sha1.m4: Renamed from sha.m4.
69535         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
69536
69537 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69538
69539         * lib/obstack.h (obstack_empty_p):
69540         Don't assume that chunk->contents is suitably aligned.
69541         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
69542         Likewise. Problem reported by Benno in
69543         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
69544
69545         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
69546         readable.  This could be improved further but it'd take some work.
69547
69548 2004-08-08  Simon Josefsson  <jas@extundo.com>
69549
69550         * modules/xgethostname (Depends-on): Remove exit and error (not
69551         used).
69552
69553         * modules/getpass-gnu: Add getpass.h.
69554         (Depends-on): Add stdbool.
69555         * modules/getpass: Add getpass.h.
69556
69557 2004-08-08  Simon Josefsson  <jas@extundo.com>
69558
69559         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
69560         Check getpass declaration.
69561
69562 2004-08-08  Simon Josefsson  <jas@extundo.com>
69563
69564         * lib/xgethostname.c: Don't include error.h (not used).
69565
69566         * lib/getpass.h: Add.
69567         * lib/getpass.c: Include getpass.h first.
69568
69569 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
69570
69571         * lib/xalloc-die.c: New file.
69572         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
69573         All uses removed.
69574         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
69575         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
69576         xalloc-die.c.
69577         (_, N_, xalloc_die): Move to xalloc-die.c.
69578         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
69579         so that we needn't mess with xalloc_msg_memory_exhausted.
69580
69581         * lib/sha1.h: Renamed from sha.h.
69582         (SHA1_H): Renamed from _SHA_H.
69583         (sha1_ctx): Renamed from sha_ctx.
69584         (sha1_init_ctx): Renamed from sha_init_ctx.
69585         (sha1_process_block): Renamed from sha_process_block.
69586         (sha1_process_bytes): Renamed from sha_process_bytes.
69587         (sha1_finish_ctx): Renamed from sha_finish_ctx.
69588         (sha1_read_ctx): Renamed from sha_read_ctx.
69589         (sha1_stream): Renamed from sha_stream.
69590         (sha1_buffer): Renamed from sha_buffer.
69591         * lib/sha1.c: Likewise; renamed from sha.c.
69592         Do not include <sys/types.h>.
69593         Include <stddef.h> rather than <stdlib.h>.
69594
69595 2004-08-08  Bruno Haible  <bruno@clisp.org>
69596
69597         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
69598         FILESYSTEM_PREFIX_LEN.
69599         * lib/progreloc.c: Likewise.
69600         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
69601
69602 2004-08-06  Simon Josefsson  <jas@extundo.com>
69603
69604         * modules/progname (Depends-on): Don't depend on stdbool.
69605
69606 2004-08-06  Simon Josefsson  <jas@extundo.com>
69607
69608         * modules/getsubopt: New file.
69609         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69610         getsubopt.
69611
69612 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
69613
69614         More merge from coreutils.
69615
69616         * m4/utimens.m4, m4/utimecmp.m4: New files.
69617         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
69618         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
69619         prereq.m4, sha.m4: Import changes from coreutils.
69620
69621 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
69622
69623         More merge from coreutils.
69624         * modules/raise, modules/readtokens0, modules/utimens:
69625         * modules/utimecmp, module/xnanosleep: New files.
69626         * modules/strftime: Add lib/strftime.h.
69627         Change include from <time.h> to "strftime.h".
69628         * modules/yesno: Add lib/yesno.h.
69629         * modules/backupfile: Remove lib/addext.c.
69630         * modules/euidaccess: Add stat-macros.h.
69631         * modules/canonicalize, modules/euidaccess,
69632         modules/filemode, modules/lchown, modules/makepath,
69633         modules/rmdir, modules/stat: Likewise.
69634
69635 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
69636
69637         Merge from tar.
69638         * lib/argp-help.c (make_hol, hol_append): Don't assume that
69639         SIZE_MAX is a valid preprocessor constant.
69640         (__argp_basename): Change from "#ifndef _LIBC"
69641         to "#ifndef __argp_short_program_name", so that
69642         we don't compile these functions for tar.
69643
69644         More merges from coreutils.
69645         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
69646         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
69647         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
69648         * lib/addext.c: Remove; no longer needed.
69649         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
69650         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
69651         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
69652         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
69653         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
69654         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
69655         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
69656         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
69657         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
69658         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
69659         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
69660         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
69661         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
69662         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
69663         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
69664         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
69665         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
69666         Import changes from coreutils.
69667
69668 2004-08-05  Simon Josefsson  <jas@extundo.com>
69669
69670         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
69671
69672 2004-08-05  Simon Josefsson  <jas@extundo.com>
69673
69674         * m4/getsubopt.m4: New file.
69675
69676 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69677
69678         Merge from coreutils.
69679
69680         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
69681         * m4/getcwd-path-max.m4: New files.
69682
69683         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
69684         FILESYSTEM_PREFIX_LEN ->
69685         FILE_SYSTEM_PREFIX_LEN.
69686         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
69687         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
69688         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
69689         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
69690
69691         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
69692         prerequisite modules now handle the DOS stuff.
69693         Don't check for unistd.h.
69694
69695 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69696
69697         Merge from coreutils.
69698
69699         * lib/.gdb-history: Remove; this doesn't belong here.
69700
69701         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
69702         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
69703         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
69704         * lib/getcwd.c: New files.
69705
69706         * lib/dirname.h: Include <stdbool.h>.
69707         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
69708         for consistency with POSIX terminology.  All uses changed.
69709         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
69710         (strip_trailing_slashes): Use bool for booleans.
69711         * lib/stripslash.c (strip_trailing_slashes): Likewise.
69712
69713         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
69714         sometimes returns a positive errno value even when it succeeds.
69715         (print_errno_message) [!LIBC]: Fall back on strerror if
69716         __strerror_r fails.
69717
69718         * lib/path-concat.c (mempcpy): Don't define if a system header defines
69719         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
69720         (longest_relative_suffix): New function.
69721         (path_concat): Use it.  Assume first argument is not NULL.
69722         Port to DOS.  Omit redundant separators.
69723         Report an error instead of returning NULL.
69724         Use mempcpy instead of memcpy.
69725         (xpath_concat): Remove: not declared or used.
69726
69727         * lib/same.h: Include <stdbool.h>
69728         (same_name): Return bool, not int.
69729         * lib/same.c (same_name): Likewise.
69730         (errno): Don't declare; we assume C89 or better now.
69731
69732         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
69733         if not already defined.
69734
69735         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
69736         * lib/dup-safer.c (errno): Likewise.
69737
69738 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69739
69740         Merge from coreutils.
69741         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
69742         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
69743         * modules/path-concat: Don't depend on strdup.
69744
69745 2004-08-03  Simon Josefsson  <jas@extundo.com>
69746
69747         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
69748         * lib/progname.h: Don't include stdbool.h.
69749
69750 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69751
69752         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
69753         * MODULES.html.sh (func_all_modules): Remove fatal.
69754
69755 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69756
69757         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
69758
69759 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69760
69761         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
69762         working.
69763
69764 2004-08-02  Simon Josefsson  <jas@extundo.com>
69765
69766         * lib/getsubopt.h: New file, with comments from Bruno Haible.
69767         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
69768         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
69769
69770 2004-08-01  Simon Josefsson  <jas@extundo.com>
69771
69772         * lib/xgetdomainname.c: Include stdlib.h, for free().
69773
69774 2004-07-19  Bruno Haible  <bruno@clisp.org>
69775
69776         * MODULES.html.sh (func_all_modules): Add dummy.
69777
69778 2004-07-16  Simon Josefsson  <jas@extundo.com>
69779
69780         * modules/dummy: New file.
69781
69782 2004-07-16  Simon Josefsson  <jas@extundo.com>
69783
69784         * lib/dummy.c: New file.
69785
69786 2004-07-16  Bruno Haible  <bruno@clisp.org>
69787
69788         * lib/backupfile.h: Add extern "C" for C++.
69789         * lib/closeout.h: Likewise.
69790         * lib/copy-file.h: Likewise.
69791         * lib/findprog.h: Likewise.
69792         * lib/full-write.h: Likewise.
69793         * lib/pathname.h: Likewise.
69794         * lib/progname.h: Likewise.
69795         * lib/stpcpy.h: Likewise.
69796         * lib/stpncpy.h: Likewise.
69797         * lib/strcase.h: Likewise.
69798         * lib/strstr.h: Likewise.
69799         * lib/xalloc.h: Likewise.
69800
69801         * lib/mbswidth.h: Add extern "C" for C++.
69802         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
69803
69804 2004-07-13  Robert Millan  <robertmh@gnu.org>
69805
69806         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
69807
69808 2004-07-09  Simon Josefsson  <jas@extundo.com>
69809
69810         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
69811         failed without this.)
69812
69813 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69814
69815         * modules/chown (Files): Add lib/fchown-stub.c, since
69816         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
69817
69818 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69819
69820         * lib/fchown-stub.c: New file.
69821
69822 2004-06-24  Jim Meyering  <jim@meyering.net>
69823
69824         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
69825
69826 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69827
69828         * modules/argz: Omit "#include".
69829
69830         * MODULES.html.sh (func_all_modules): Add calloc, to match
69831         2004-06-01 addition of calloc module.
69832
69833 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69834
69835         * m4/argz.m4: New file, which is autoupdated from libtool.
69836
69837 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69838
69839         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
69840         libtool.
69841
69842 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69843
69844         * config/srclist-update: Don't insist on "USA." before the
69845         close-comment, as libtool omits the period and puts the */ on a
69846         separate line.
69847         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
69848         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
69849
69850 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
69851
69852         * modules/argz: New file.
69853         * MODULES.html.sh (func_all_modules): Add argz.
69854
69855 2004-06-12  Jim Meyering  <jim@meyering.net>
69856         and  Paul Eggert  <eggert@cs.ucla.edu>
69857
69858         * modules/hash (Files): Add lib/xalloc.h.
69859         * modules/pipe (Depends-on): Add wait-process.
69860         * modules/stat (Depends-on): Add xalloc.
69861         * modules/userspec (Files): Add lib/userspec.h.
69862         * modules/xstrto
69863
69864         Upgrade from gettext-0.13.
69865         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
69866         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
69867         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
69868
69869 2004-06-10  Jim Meyering  <jim@meyering.net>
69870
69871         * lib/calloc.c: New file.
69872
69873 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
69874
69875         * lib/getdate.y (yylex): Allow space between sign and number.
69876         Problem reported by Dan Jacobson.
69877
69878 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
69879
69880         Merge from coreutils CVS.
69881
69882         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
69883         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
69884         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
69885         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
69886         xstrtol.m4: Fix copyright date and/or serial number.
69887
69888         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
69889         See if we need an fchown replacement.
69890         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
69891         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
69892         and use the replacement function if we detect either defect.
69893
69894         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
69895         gl_UTIMECMP.
69896
69897 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
69898         and  Jim Meyering  <jim@meyering.net>
69899
69900         Merge from coreutils CVS.
69901
69902         * lib/stat-macros.h: New file, with contents from file-type.h
69903         and coreutils' system.h.
69904         * lib/file-type.c: Include "stat-macros.h".
69905         * lib/file-type.h (file_type): Move all macro definitions to new file,
69906         stat-macros.h.
69907
69908         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
69909         Wrap old code with this conditional.
69910         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
69911         function that does not dereference symlinks.
69912         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
69913
69914         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
69915         dependency problems.
69916         (xreadlink): Accept new arg SIZE, for efficiency.
69917         All decls and uses changed.
69918         * lib/xreadlink.h: Include <stddef.h>, for size_t.
69919
69920         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
69921         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
69922
69923         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
69924         sysexits.h.
69925
69926 2004-06-01  Jim Meyering  <jim@meyering.net>
69927
69928         * m4/calloc.m4: New file.
69929
69930 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
69931
69932         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
69933         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
69934         Also, fix a typo in a diagnostic.
69935
69936 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
69937
69938         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
69939         or AC_FUNC_REALLOC.
69940
69941 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
69942
69943         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
69944         macros to be defined.
69945         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
69946         the allocator returns NULL because the requested size is zero.
69947
69948 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69949
69950         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
69951         var.  Add comment explaining why libc still defines it.  This
69952         merges the following patch from glibc:
69953         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
69954
69955 2004-05-20  Andreas Schwab  <schwab@suse.de>
69956
69957         * m4/free.m4: Replace free if it not known to work, not the other
69958         way round.
69959
69960 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
69961
69962         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
69963         present in glibc since revision 1.1 of this file.
69964         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
69965         obstack_alignment_mask, obstack_alloc, obstack_base,
69966         obstack_blank, obstack_blank_fast, obstack_chunk_size,
69967         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
69968         obstack_grow0, obstack_init, obstack_int_grow,
69969         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
69970         obstack_next_free, obstack_object_size, obstack_ptr_grow,
69971         obstack_ptr_grow_fast, obstack_room): Remove declarations of
69972         nonexistent functions.
69973
69974 2004-05-18  Karl Berry  <karl@gnu.org>
69975
69976         * config/srclist.txt: break link for vasnprintf.c.
69977
69978 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
69979
69980         Port obstack to the AS/400, where pointers are 16 bytes wide and
69981         you cannot cast an integer to a valid pointer.  This patch is
69982         currently waiting to be integrated into glibc; see
69983         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
69984
69985         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
69986         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
69987         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
69988         (struct obstack): temp member is now a union of a pointer and
69989         an integer, instead of an integer.  All integer uses changed.
69990         This does not affect the physical layout of struct obstack,
69991         except on hosts (like the AS/400) where the size or alignment of
69992         void * is greater than that of ptrdiff_t.
69993         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
69994         __STDC__)]: Store temporary in pointer member of union, not
69995         integer member.
69996         * lib/obstack.c: Include <stddef.h>, for offsetof.
69997         (struct fooalign): Remove; it doesn't need a name.
69998         (union fooround): Change double to long double, and add void *.
69999         (DEFAULT_ALIGNMENT): Use offsetof to compute.
70000         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
70001         not a macro.  Hence the values are always int; so remove all
70002         casts-to-int in uses.
70003
70004 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70005
70006         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
70007         we can get this patch merged into glibc.
70008
70009 2004-05-17  Derek R. Price  <derek@ximbiot.com>
70010             Paul Eggert  <eggert@cs.ucla.edu>
70011
70012         * m4/argp: Depend on alloca.
70013
70014 2004-05-17  Derek R. Price  <derek@ximbiot.com>
70015             Paul Eggert  <eggert@cs.ucla.edu>
70016
70017         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
70018         freecoding.
70019
70020 2004-05-17  Bruno Haible  <bruno@clisp.org>
70021
70022         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
70023         precision that consists of a '.' followed by an empty digit string.
70024         Patch by Tor Lillqvist <tml@iki.fi>.
70025
70026 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70027
70028         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
70029         for backward compatibility with older code.  We need our own
70030         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
70031         it under some other name, and our alloca.h will define it.
70032
70033 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70034             Derek Price  <derek@ximbiot.com>
70035
70036         * lib/alloca.c: Include <alloca.h>, to get our interface.
70037         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
70038         include <alloca.h> first.  Use C89 prototype for alloca; this
70039         requires including <stddef.h> for size_t.  Use extern "C" if C++.
70040         Use #elif for simplicity, since we can assume C89 now.
70041         Don't try to source the system alloca.h since it will not be found
70042         and to prevent recursively including its replacement.
70043         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
70044         * lib/regex.c: Likewise.
70045
70046 2004-05-16  Derek Price  <derek@ximbiot.com>
70047             Paul Eggert  <eggert@cs.ucla.edu>
70048
70049         getline cleanup.  This changes the getndelim2 API: both order of
70050         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
70051         no delimiter).
70052
70053         * lib/getline.c: Don't include stddef.h or stdio.h, since our
70054         interface does that.
70055         (getline): Always use getdelim, so that we don't have two
70056         copies of this code.
70057         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
70058         if available.
70059         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
70060         (GETNDELIM2_MAXIMUM): New macro.
70061         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
70062         instead of the old practice of delim2==0.  All callers changed.
70063         Return -1 on overflow, instead of returning junk.
70064         Do not set *linesize unless allocation succeeds.
70065         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
70066         that we include sys/types.h.
70067         * lib/getnline.h: Likewise.
70068         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
70069         (getndelim2): Reorder arguments.
70070         * lib/getnline.c (getnline, getndelim):
70071         Don't discard the NMAX argument.
70072         (getnline): Invoke getndelim, to avoid code duplication.
70073         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
70074         of (size_t) -1 by callers of the getnline family.
70075
70076 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70077
70078         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
70079         Check for gettimeofday.
70080         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
70081         Check for settimeofday, stime.
70082
70083 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70084
70085         * lib/nanosleep.c (suspended): Change its type from int to
70086         sig_atomic_t volatile.
70087         (first_call): Make it private to rpl_nanosleep, and have it
70088         be zero initially as that's a bit faster.
70089         (my_usleep): Round up fractional times instead of truncating them,
70090         as this is the usual meaning for 'sleep'.
70091
70092         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
70093         doesn't work.
70094         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
70095         (ENOSYS): Define if not defined.
70096         (settime): Fall back on stime if it exists and settimeofday fails.
70097         But don't bother with fallbacks if a method fails with errno == EPERM.
70098
70099 2004-05-11  Jim Meyering  <jim@meyering.net>
70100
70101         Prior to this change, the save_cwd caller required read access to the
70102         current directory on most systems (ones with the fchdir function).
70103
70104         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
70105         fails, try write-only, and finally, resort to using xgetcwd.
70106
70107 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
70108
70109         * lib/obstack.c, obstack.h: Import changes from libc.
70110
70111 2004-04-28  Bruno Haible  <bruno@clisp.org>
70112
70113         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
70114         also implicitly appends .exe to executables.
70115         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
70116         accepts Windows pathnames.
70117         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
70118         Treat Cygwin like Windows, since it now accepts Windows pathnames.
70119         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
70120         Treat Cygwin like Windows, since it now accepts Windows pathnames.
70121         Reported by Derek Robert Price <derek@ximbiot.com>.
70122
70123 2004-04-21  Karl Berry  <karl@gnu.org>
70124
70125         * config/srclist.txt (localcharset.c): break sync.
70126
70127 2004-04-20  Paul Eggert  <eggert@twinsun.com>
70128
70129         * m4/host-os.m4: Add a copyright notice.
70130
70131 2004-04-20  Jim Meyering  <jim@meyering.net>
70132
70133         Change UTILS_ to gl_ in AC_DEFINE'd names.
70134         Change utils_- and jm_-prefixed variables, too.
70135         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
70136         UTILS_FUNC_MKDIR_TRAILING_SLASH.
70137         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
70138
70139         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
70140         Don't emit trailing blanks.
70141         Also rename jm_-prefixed variables to have gl_ prefix.
70142
70143         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
70144         Also rename jm_-prefixed variables to have gl_ prefix.
70145
70146         * m4/jm-macros.m4: Reflect the renamings.
70147         * m4/prereq.m4: Likewise.
70148
70149 2004-04-20  Jim Meyering  <jim@meyering.net>
70150
70151         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
70152         memory.
70153
70154 2004-04-20  Jim Meyering  <jim@meyering.net>
70155             Bruno Haible  <bruno@clisp.org>
70156
70157         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
70158         memory when realloc fails.
70159
70160 2004-04-19  Jim Meyering  <jim@meyering.net>
70161
70162         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
70163         now that readutmp.c may call `free (0)'.
70164
70165 2004-04-19  Bruno Haible  <bruno@clisp.org>
70166
70167         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
70168         * m4/inttypes_h.m4: Likewise.
70169         * m4/stdint_h.m4: Likewise.
70170         * m4/intmax_t.m4: Likewise.
70171         * m4/uintmax_t.m4: Likewise.
70172
70173 2004-04-18  Jim Meyering  <jim@meyering.net>
70174
70175         * m4/prereq.m4: Don't forbid jm_ prefix.
70176
70177         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
70178         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
70179         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
70180         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
70181         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
70182         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
70183         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
70184         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
70185         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
70186         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
70187         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
70188         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
70189         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
70190         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
70191         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
70192         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
70193         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
70194         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
70195         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
70196
70197 2004-04-18  Jim Meyering  <jim@meyering.net>
70198
70199         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
70200         failure, don't leak memory and do call END_UTMP_ENT.
70201
70202 2004-04-16  Jim Meyering  <jim@meyering.net>
70203
70204         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
70205         coreutils' stat program.
70206         (gl_PREREQ): Don't require jm_PREREQ_STAT.
70207
70208 2004-04-11  Paul Eggert  <eggert@twinsun.com>
70209
70210         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
70211         C89.
70212         (CHAR_BIT): Remove, since we assume C89.
70213         Include <stdint.h> if available, as per current Autoconf CVS advice.
70214
70215 2004-03-31  Jim Meyering  <jim@meyering.net>
70216
70217         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
70218         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
70219         * m4/xalloc.m4: Likewise.
70220
70221 2004-03-30  Paul Eggert  <eggert@twinsun.com>
70222
70223         Merge from coreutils.
70224
70225         * m4/inttostr.m4: New file.
70226         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
70227         Require AM_STDBOOL_H and gl_TIMESPEC instead.
70228         Require gl_CLOCK_TIME.
70229         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
70230
70231 2004-03-30  Paul Eggert  <eggert@twinsun.com>
70232
70233         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
70234         not bool, to be more consistent with Unix conventions.
70235         Suggested by Bruno Haible.
70236
70237         Merge from coreutils.
70238
70239         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
70240         * lib/umaxtostr.c: New files.
70241
70242         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
70243         the usual <time.h> dance.
70244         (get_date): Change signature to support fractional time stamps.
70245         All callers changed.
70246         * lib/getdate.y: Include "getdate.h" first, as we can now
70247         assume C89 and don't need to worry about 'const'.
70248         Similarly, include "unlocked-io.h" near start, not in middle.
70249         Include <limits.h>.
70250         (textint.value): Use long int rather than int.
70251         (textint.digits): Use size_t rather than int.
70252         (BILLION, LOG10_BILLION): New constants.
70253         (parser_control): New member rel_ns.  Members day_ordinal,
70254         time_zone, month, day, hour, minutes, rel_year, rel_month,
70255         rel_day, rel_hour, rel_minutes, rel_seconds
70256         are now long int, not int.  Member seconds is now struct timespec,
70257         not int.  New member timespec_seen.  Members dates_seen, days_seen,
70258         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
70259         not int.
70260         (%union.intval): Now long int, not int.
70261         New member timespec.
70262         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
70263         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
70264         (spec): Now is a timespec or an item list.
70265         (timespec, items): New nonterminals.
70266         (time, rel, relunit, number, get_date):
70267         Add support for fractional seconds.
70268         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
70269         (gmtime, localtime, mktime): Remove decls; not needed with C89.
70270         (to_hour): First arg is now long int, not int.
70271         (to_year): Returns long int, not int.
70272         Don't treat year -70 like 70.
70273         (tm_diff): Returns long int, not int.
70274         (lookup_word): Use bool instead of int when appropriate.
70275         (yylex): Use size_t for count, not int.
70276         Detect overflow when parsing large integer constants.
70277         Add support for fractions.
70278         (get_date): Make pointers 'const' if possible.
70279         Use more-portable code to detect integer overflow.
70280         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
70281         Don't use ctime; it's not reliable if the year has >4 digits.
70282
70283         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
70284         This is for compatibility with BSD.
70285
70286         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
70287         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
70288         From coreutils' system.h.
70289
70290         * lib/userspec.c: Don't include "posixver.h".
70291         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
70292         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
70293         compatible extension.  Simplify code by removing a boolean int
70294         that was always nonzero if a string was nonnull.
70295
70296 2004-03-30  Jim Meyering  <jim@meyering.net>
70297
70298         Merge from coreutils.
70299
70300         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
70301         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
70302         on some systems one must include <grp.h> before it.
70303         Reported by Christian Krackowizer.
70304
70305 2004-03-30  Jim Meyering  <jim@meyering.net>
70306
70307         Merge from coreutils.
70308
70309         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
70310
70311         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
70312         an empty input stream.
70313
70314         * lib/readtokens.c: Include <stdbool.h>.
70315         (readtoken): Use `size_t' rather than int/long.
70316         All callers adjusted.
70317         Use `bool' rather than `int' where appropriate.
70318         Use memset rather than an explicit loop.
70319         Use x2nrealloc rather than xrealloc.
70320         Allow the use of `\0' as a delimiter.
70321         (readtokens): Likewise.
70322         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
70323
70324 2004-03-30  Jim Meyering  <jim@meyering.net>
70325
70326         * m4/realloc.m4: Remove file, since now it does no more than
70327         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
70328         the `configure.ac' section of module/realloc.
70329         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
70330
70331 2004-03-30  Bruno Haible  <bruno@clisp.org>
70332
70333         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
70334         nonnull.
70335
70336 2004-03-29  Paul Eggert  <eggert@twinsun.com>
70337
70338         Merge changes to getloadavg.c from coreutils and Emacs.
70339
70340         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
70341         Define to an expression, not to the empty string.
70342         Include cloexec.h and xalloc.h.
70343         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
70344         Use set_cloexec_flag rather than rolling our own.
70345         * lib/cloexec.c, lib/cloexec.h: New files.
70346
70347 2004-03-29  Paul Eggert  <eggert@twinsun.com>
70348
70349         * m4/cloexec.m4: New file.
70350
70351 2004-03-18  Paul Eggert  <eggert@twinsun.com>
70352
70353         * lib/getopt.h: Sync with libc CVS.
70354
70355 2004-03-18  Paul Eggert  <eggert@twinsun.com>
70356             Bruno Haible  <bruno@clisp.org>
70357
70358         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
70359         mbswidth.
70360
70361 2004-03-18  Paul Eggert  <eggert@twinsun.com>
70362             Bruno Haible  <bruno@clisp.org>
70363
70364         * lib/mbswidth.h: Include <wchar.h> only if
70365         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
70366         <wchar.h>.
70367         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
70368
70369 2004-03-09  Paul Eggert  <eggert@twinsun.com>
70370
70371         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
70372         Sync with libc CVS.
70373         * lib/getopt_int.h: New file, also synced from libc.
70374
70375 2004-03-09  Paul Eggert  <eggert@twinsun.com>
70376
70377         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
70378         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
70379         Bring back getopt.c, getopt.h, getopt1.c.
70380
70381 2004-03-07  Paul Eggert  <eggert@twinsun.com>
70382
70383         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
70384         All uses changed.  Check for sa_sigaction member; this fixes
70385         a bug first reported by Jason Andrade in
70386         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
70387
70388 2004-03-07  Paul Eggert  <eggert@twinsun.com>
70389
70390         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
70391         '#if' expressions.  Unlike the code it replaces, it does not
70392         depend on (defined _SC_PAGESIZE).  However, it does depend on
70393         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
70394         first reported by Jason Andrade in
70395         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
70396
70397 2004-02-25  Simon Josefsson  <jas@extundo.com>
70398
70399         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
70400
70401 2004-02-25  Simon Josefsson  <jas@extundo.com>
70402
70403         * lib/strdup.h: New file.
70404         * lib/strdup.c: Include it.
70405         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
70406         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
70407
70408 2004-02-23  Karl Berry  <karl@gnu.org>
70409
70410         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
70411         (from fencepost.gnu.org:/gd/gnuorg).
70412
70413 2004-02-23  Karl Berry  <karl@gnu.org>
70414
70415         * config/srclistvars.sh (GNUORG) [karl]: redefine.
70416         * config/srclist.txt: add maintain/standards documents.
70417
70418 2004-02-18  Bruno Haible  <bruno@clisp.org>
70419
70420         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
70421         Reported by Derek Robert Price <derek@ximbiot.com>.
70422
70423 2004-02-16  Karl Berry  <karl@gnu.org>
70424
70425         * config/mkinstalldirs, install-sh: update from automake.
70426
70427 2004-02-06  Karl Berry  <karl@gnu.org>
70428
70429         * m4/po.m4: update from gettext 0.14.1.
70430
70431 2004-02-06  Karl Berry  <karl@gnu.org>
70432
70433         * lib/config.charset: update from gettext 0.14.1.
70434
70435 2004-02-05  Paul Eggert  <eggert@twinsun.com>
70436
70437         Add comments and code, prompted by suggestions from Bruno Haible
70438         for sh-quote.
70439         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
70440         describing the enum quoting_style values.
70441         * lib/quotearg.c (quotearg_alloc): New function.
70442         (quotearg_buffer_restyled): Treat lone { and } as special.
70443         Treat = as special.  Work around bug with older shells
70444         that "see" a '\' that is really the 2nd byte of a multibyte char.
70445         Quote empty string with shell_quoting_style.
70446
70447 2004-02-03  Bruno Haible  <bruno@clisp.org>
70448
70449         * m4/pipe.m4: New file, from GNU gettext.
70450
70451 2004-02-03  Bruno Haible  <bruno@clisp.org>
70452
70453         * lib/pipe.h: New file, from GNU gettext.
70454         * lib/pipe.c: New file, from GNU gettext.
70455
70456 2004-01-27  Bruno Haible  <bruno@clisp.org>
70457
70458         * m4/execute.m4: New file, from GNU gettext.
70459
70460 2004-01-27  Bruno Haible  <bruno@clisp.org>
70461
70462         * lib/execute.h: New file, from GNU gettext.
70463         * lib/execute.c: New file, from GNU gettext.
70464         * lib/w32spawn.h: New file, from GNU gettext.
70465
70466 2004-01-24  Paul Eggert  <eggert@twinsun.com>
70467
70468         Merge from diffutils.
70469
70470         * lib/file-type.c (file_type): Add typed memory objects.
70471         * lib/file-type.h (S_TYPEISTMO): New macro.
70472
70473         * lib/c-stack.h (c_stack_action): Remove argv argument.
70474         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
70475         (die): Don't calculate message unless segv_action returns.
70476         (get_stack_location, min_address_from_argv, max_address_from_argv,
70477         volatile stack_base, volatile_stack_size): Remove.
70478         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
70479         that every segmentation violation is a stack overflow.  (Ouch!)
70480         See Debian bug 136249 (still outstanding) for more info about why
70481         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
70482
70483 2004-01-24  Paul Eggert  <eggert@twinsun.com>
70484
70485         Exit-status fix from coreutils.
70486
70487         Use exit_failure consistently in place of EXIT_FAILURE,
70488         so that program exit statuses are consistent on failure.
70489
70490         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
70491         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
70492         * lib/argmatch.h: Comment fix to match the above.
70493         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
70494         Now a macro referring to exit_failure, instead of a separate
70495         variable.  Include "exitfail.h" to get it.
70496         * lib/xstrtol.h: Include "exitfail.h".
70497         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
70498
70499         * lib/long-options.c (parse_long_options): Use prototype
70500         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
70501         for clarity.
70502
70503 2004-01-21  Jim Meyering  <jim@meyering.net>
70504
70505         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
70506         so as not to conflict with a different-sized __mktime_internal
70507         function in GNU libc.
70508         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
70509         Problem building statically-linked `ls' reported by Michael Brunnbauer.
70510
70511 2004-01-20  Karl Berry  <karl@gnu.org>
70512
70513         * config/config.guess: update from config.
70514
70515         * config/srclistvars.sh: GNUWWWLICENSES for karl.
70516
70517 2004-01-20  Bruno Haible  <bruno@clisp.org>
70518
70519         Safer stack allocation.
70520         * lib/setenv.c: Include allocsa.h.
70521         (alloca): Remove fallback definition.
70522         (freea): Remove macro.
70523         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
70524         instead of freea.
70525
70526 2004-01-20  Bruno Haible  <bruno@clisp.org>
70527
70528         * m4/eealloc.m4: New file, from GNU gettext.
70529
70530 2004-01-20  Bruno Haible  <bruno@clisp.org>
70531
70532         * m4/allocsa.m4: New file, from GNU gettext.
70533
70534 2004-01-20  Bruno Haible  <bruno@clisp.org>
70535
70536         * lib/xallocsa.h: New file, from GNU gettext.
70537         * lib/xallocsa.c: New file, from GNU gettext.
70538
70539 2004-01-20  Bruno Haible  <bruno@clisp.org>
70540
70541         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
70542
70543 2004-01-20  Bruno Haible  <bruno@clisp.org>
70544
70545         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
70546         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
70547         specially.
70548
70549 2004-01-20  Bruno Haible  <bruno@clisp.org>
70550
70551         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
70552         patch.
70553
70554 2004-01-20  Bruno Haible  <bruno@clisp.org>
70555
70556         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
70557
70558 2004-01-20  Bruno Haible  <bruno@clisp.org>
70559
70560         * lib/eealloc.h: New file.
70561
70562 2004-01-20  Bruno Haible  <bruno@clisp.org>
70563
70564         * lib/binary-io.h: Avoid warnings on Cygwin.
70565
70566 2004-01-20  Bruno Haible  <bruno@clisp.org>
70567
70568         * lib/allocsa.h: New file, from GNU gettext.
70569         * lib/allocsa.c: New file, from GNU gettext.
70570
70571 2004-01-18  Karl Berry  <karl@gnu.org>
70572
70573         * doc/gpl.texi, doc/lgpl.texi: new files.
70574
70575 2004-01-18  Karl Berry  <karl@gnu.org>
70576
70577         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
70578         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
70579
70580 2004-01-15  Paul Eggert  <eggert@twinsun.com>
70581
70582         Merge from coreutils.
70583
70584         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
70585         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
70586         (gl_DEFAULT_POSIX2_VERSION): Move
70587         the documentation from 'configure' into 'config.hin',
70588         so that 'configure --help' isn't burdened by it and
70589         we don't have to worry about its formatting there.
70590         Reword the documentation so that it's more succinct
70591         and can be run together into a single paragraph.
70592         * m4/same.m4 (gl_SAME): Check for pathconf.
70593
70594 2004-01-15  Paul Eggert  <eggert@twinsun.com>
70595
70596         Merge from coreutils.
70597
70598         * lib/posixver.c: Include posixver.h.
70599
70600         * lib/same.c: Include <stdbool.h>, <limits.h>.
70601         (_POSIX_NAME_MAX): Define if not defined.
70602         (MIN): New macro.
70603         (same_name): If file names are silently truncated, report
70604         that the file names are the same if they are the same after
70605         the silent truncation.
70606
70607         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
70608         conversion function.
70609         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
70610         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
70611         longer needed.
70612
70613 2004-01-15  Jim Meyering  <jim@meyering.net>
70614
70615         Merge from coreutils.
70616
70617         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
70618         if no library is required.
70619         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
70620         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
70621         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
70622         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
70623         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
70624         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
70625         value, $ac_cv_search_crypt, if it's "none required".
70626         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
70627         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
70628         not gl_FUNC_GETLOADAVG.
70629         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
70630         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
70631
70632 2004-01-15  Jim Meyering  <jim@meyering.net>
70633
70634         Merge from coreutils.
70635
70636         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
70637         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
70638         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
70639
70640         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
70641         optional configure-time default.
70642
70643         * lib/version-etc.c (version_etc_copyright): Update copyright date.
70644
70645         * lib/xreadlink.c (xreadlink): Correct outdated comment.
70646
70647 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
70648
70649         Merge from coreutils.
70650
70651         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
70652         value, $ac_cv_search_nanosleep, if it's "none required".
70653
70654 2004-01-14  Paul Eggert  <eggert@twinsun.com>
70655
70656         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
70657         with like-named macro in fnmatch.c.
70658         (EXT): Use an internal constant instead.
70659
70660         Merge fnmatch patches from glibc.
70661         * lib/fnmatch.c (mbsinit): Remove define.
70662         Add libc_hidden_ver (__fnmatch, fnmatch).
70663         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
70664         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
70665
70666 2004-01-14  Karl Berry  <karl@gnu.org>
70667
70668         * config/install-sh: update from automake.
70669
70670 2004-01-13  Karl Berry  <karl@gnu.org>
70671
70672         * config/install-sh: update from automake.
70673
70674 2004-01-09  Karl Berry  <karl@gnu.org>
70675
70676         * config/install-sh: update from automake.
70677
70678 2004-01-05  Karl Berry  <karl@gnu.org>
70679
70680         * config/config.{sub,guess}: update from config.
70681
70682 2003-12-31  Karl Berry  <karl@gnu.org>
70683
70684         * config/depcomp: update from automake.
70685
70686 2003-12-14  Karl Berry  <karl@gnu.org>
70687
70688         * lib/config.charset: update from gettext-runtime.
70689
70690 2003-12-03  Paul Eggert  <eggert@twinsun.com>
70691
70692         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
70693         Bug reported by Alfred M. Szmidt.
70694
70695 2003-12-03  Bruno Haible  <bruno@clisp.org>
70696
70697         * m4/gettext.m4: Upgrade from gettext-0.13.
70698         * m4/po.m4: Upgrade from gettext-0.13.
70699         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
70700         * m4/intmax.m4: New file, from gettext-0.13.
70701         * m4/printf-posix.m4: New file, from gettext-0.13.
70702
70703 2003-11-29  Karl Berry  <karl@gnu.org>
70704
70705         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
70706
70707 2003-11-25  Paul Eggert  <eggert@twinsun.com>
70708             Bruno Haible  <bruno@clisp.org>
70709
70710         * lib/printf-parse.h: Don't include sys/types.h.
70711         (ARG_NONE): New macro.
70712         (char_directive): Change type of *arg_index fields to size_t.
70713         * lib/printf-parse.c: Don't include sys/types.h.
70714         (SSIZE_MAX): Remove macro.
70715         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
70716         Remove unnecessary overflow check.
70717         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
70718         fields.
70719
70720 2003-11-25  Bruno Haible  <bruno@clisp.org>
70721
70722         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
70723
70724 2003-11-25  Bruno Haible  <bruno@clisp.org>
70725
70726         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
70727         gt_TYPE_SSIZE_T.
70728
70729 2003-11-24  Paul Eggert  <eggert@twinsun.com>
70730
70731         * modules/alloca: Remove dependency on xalloc.
70732
70733 2003-11-24  Paul Eggert  <eggert@twinsun.com>
70734
70735         * lib/alloca.c: Remove dependency on xalloc module.
70736         (xalloc_die): Remove.
70737         (memory_full) [!defined emacs]: New macro.
70738         [!defined emacs]: Don't include xalloc.h.
70739         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
70740         address arithmetic overflows.  Change datatypes a bit to avoid
70741         unnecessary casts.
70742
70743 2003-11-22  Jim Meyering  <jim@meyering.net>
70744
70745         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
70746         s/size/size_t/.
70747
70748 2003-11-21  Karl Berry  <karl@gnu.org>
70749
70750         * config/config.{sub,guess}: update from config.
70751
70752 2003-11-18  Karl Berry  <karl@gnu.org>
70753
70754         * config/config.{sub,guess}: update from config.
70755
70756         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
70757
70758 2003-11-17  Paul Eggert  <eggert@twinsun.com>
70759
70760         * README: Mention that S+T cannot overflow if S is the size of
70761         an existing object and T is sufficiently small.
70762
70763 2003-11-17  Jim Meyering  <jim@meyering.net>
70764
70765         On systems without utime and without a utimes function capable of
70766         dealing with a NULL struct utimbuf* argument, this utime replacement
70767         could -- in unusual circumstances -- leak a file descriptor.
70768         * lib/utime.c: Include <unistd.h> and <errno.h>.
70769         (utime_null): Be sure to close `fd' and to preserve errno.
70770         Reported by Geoff Collyer via Arnold Robbins.
70771
70772 2003-11-17  Bruno Haible  <bruno@clisp.org>
70773
70774         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
70775         (Depends-on): Add xsize.
70776
70777 2003-11-17  Bruno Haible  <bruno@clisp.org>
70778
70779         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
70780
70781 2003-11-17  Bruno Haible  <bruno@clisp.org>
70782
70783         * lib/vasnprintf.c (alloca): Remove fallback definition.
70784         (freea): Remove definition.
70785         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
70786         Reported by Paul Eggert.
70787
70788 2003-11-16  Paul Eggert  <eggert@twinsun.com>
70789             Bruno Haible  <bruno@clisp.org>
70790
70791         Protect against address arithmetic overflow.
70792         * lib/printf-args.h: Include stddef.h.
70793         (arguments): Change type of field 'count' to size_t.
70794         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
70795         'unsigned int' where appropriate.
70796         * lib/printf-parse.h: Include sys/types.h.
70797         (char_directive): Change type of *arg_index fields to ssize_t.
70798         (char_directives): Change type of fields 'count', max_*_length to
70799         size_t.
70800         * lib/printf-parse.c: Include sys/types.h and xsize.h.
70801         (SSIZE_MAX): Define fallback value.
70802         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
70803         instead of 'int' where appropriate. Check a_allocated, d_allocated
70804         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
70805         * lib/vasnprintf.c: Include xsize.h.
70806         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
70807         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
70808         overflow. Avoid wraparound when converting a width or precision from
70809         decimal to binary.
70810
70811 2003-11-16  Bruno Haible  <bruno@clisp.org>
70812
70813         Update from GNU gettext.
70814         * lib/printf-parse.c: Generalize to it can be compiled for wide
70815         strings.
70816         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
70817         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
70818         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
70819         SNPRINTF): New macros.
70820         Don't include <alloca.h> if the file is used inside libintl.
70821         (local_wcslen): New function, for Solaris 2.5.1.
70822         (VASNPRINTF): Use it instead of wcslen.
70823
70824 2003-11-16  Bruno Haible  <bruno@clisp.org>
70825
70826         * lib/xsize.h (xmax): New function.
70827         (xsum, xsum3, xsum4): Declare as "pure" functions.
70828
70829 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70830
70831         * modules/xalloc (Files): Undo latest change, since xalloc.h
70832         no longer needs SIZE_MAX or PTRDIFF_MAX.
70833
70834 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70835
70836         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
70837         gl_PTRDIFF_MAX.
70838
70839 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70840
70841         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
70842         "return", to pacify some unknown compiler.  Problem reported
70843         by Joerg Schilling.
70844
70845 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70846
70847         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
70848         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
70849         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
70850         heuristic is just as accurate as far as we know, and it removes a
70851         dependency on size_max.m4 and ptrdiff_max.m4.
70852
70853 2003-11-11  Bruno Haible  <bruno@clisp.org>
70854
70855         * modules/xsize (Files): Add m4/size_max.m4.
70856         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
70857
70858 2003-11-11  Bruno Haible  <bruno@clisp.org>
70859
70860         * m4/size_max.m4: New file.
70861         * m4/ptrdiff_max.m4: New file.
70862         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
70863         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
70864         (gl_XALLOC): Invoke it.
70865
70866 2003-11-11  Bruno Haible  <bruno@clisp.org>
70867
70868         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
70869         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
70870         defined.
70871
70872 2003-11-10  Paul Eggert  <eggert@twinsun.com>
70873
70874         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
70875         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
70876         rejected some allocations of exactly SIZE_MAX - 2 bytes.
70877         From Bruno Haible.
70878         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
70879         not (size_t) -1, since it's defined here.
70880
70881 2003-11-09  Karl Berry  <karl@gnu.org>
70882
70883         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
70884
70885 2003-11-06  Paul Eggert  <eggert@twinsun.com>
70886
70887         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
70888         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
70889         Reject sizes of exactly SIZE_MAX bytes.
70890         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
70891         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
70892
70893 2003-11-05  Bruno Haible  <bruno@clisp.org>
70894
70895         * lib/xsize.h: Include limits.h, to avoid a possible collision with
70896         SIZE_MAX defined in <limits.h> on Solaris.
70897
70898 2003-11-04  Jim Meyering  <jim@meyering.net>
70899
70900         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
70901         variable names, rather than @VAR@.
70902         * modules/poll: Likewise.
70903
70904 2003-11-04  Bruno Haible  <bruno@clisp.org>
70905
70906         * modules/xsize: New file.
70907         * modules/linebreak: Depend on xsize.
70908         * MODULES.html.sh (func_all_modules): Add xsize.
70909
70910 2003-11-04  Bruno Haible  <bruno@clisp.org>
70911
70912         * m4/xsize.m4: New file.
70913
70914 2003-11-04  Bruno Haible  <bruno@clisp.org>
70915
70916         * lib/xsize.h: New file.
70917         * lib/linebreak.c: Include xsize.h.
70918         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
70919         argument for overflow.
70920         Suggested by Paul Eggert.
70921
70922 2003-11-03  Karl Berry  <karl@gnu.org>
70923
70924         * config/config.{guess,sub}: update from config.
70925
70926 2003-11-03  Jim Meyering  <jim@meyering.net>
70927
70928         * modules/userspec (lib_SOURCES): Add userspec.h.
70929         (Include): Add "userspec.h".
70930         Improve description.
70931
70932 2003-11-03  Jim Meyering  <jim@meyering.net>
70933
70934         * lib/userspec.c: Include "userspec.h".
70935         * lib/userspec.h: New file.
70936
70937 2003-11-03  Bruno Haible  <bruno@clisp.org>
70938
70939         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
70940
70941 2003-11-03  Bruno Haible  <bruno@clisp.org>
70942
70943         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
70944         available, to avoid (extremely rare) race condition.
70945         Suggested by Paul Eggert.
70946
70947 2003-11-02  Karl Berry  <karl@gnu.org>
70948
70949         * config/srclist.txt (vasprintf.c): sync broken, sigh.
70950
70951 2003-10-31  Paul Eggert  <eggert@twinsun.com>
70952
70953         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
70954         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
70955         (read_filesystem_list): Set and use me_type_malloced.
70956         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
70957         whatever the type happens to be), for brevity and consistency.
70958         Check for size calculation overflow on Alphas running OSF/1.
70959
70960 2003-10-31  Jim Meyering  <jim@meyering.net>
70961
70962         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
70963
70964         * lib/linebuffer.c: Include <string.h> for declaration of memset.
70965
70966 2003-10-30  Paul Eggert  <eggert@twinsun.com>
70967             Bruno Haible  <bruno@clisp.org>
70968
70969         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
70970         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
70971
70972 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70973
70974         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
70975         netbsd*-gnu*.  Suggested by Robert Millan.
70976
70977 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70978
70979         * modules/group-member: Depend on stdbool.
70980
70981 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70982
70983         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
70984
70985 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70986
70987         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
70988         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
70989         after the 'gnu' in these cases.  This fixes some bugs in the
70990         previous change, and is based on suggestions by Robert Millan.
70991
70992 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70993
70994         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
70995         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
70996         no longer needed.
70997         * lib/quotearg.c (quotearg_n_options): Use it.
70998         * lib/group-member.c: Include <stdbool.h>.
70999         (free_group_info): Arg is now const *; don't free arg.
71000         (get_group_info): Now returns bool and accepts struct group_info *,
71001         rather than returning a malloc'ed struct group_info *.
71002         All uses changed.  Check for overflow in internal size calculation.
71003
71004         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
71005         rather than xmalloc/xrealloc.
71006         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
71007         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
71008         conformance bug: the old code used a pointer after freeing the
71009         storage that it addressed.
71010         * lib/hash.c (hash_initialize): Simplify the code by using
71011         xalloc_oversized rather than doing it by hand.
71012         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
71013         the buffer preserved.  Use free and xmalloc instead.
71014         * lib/quotearg.c (quotearg_n_options): Likewise.
71015         Use a simpler test for size overflow.  Don't use xalloc_oversized
71016         because unsigned int might be wider than size_t (!); this suggests
71017         that we should switch from unsigned int to size_t for slot numbers.
71018
71019 2003-10-28  Paul Eggert  <eggert@twinsun.com>
71020
71021         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
71022         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
71023         NetBSD kernels.  Requested by Richard Stallman.
71024
71025 2003-10-27  Paul Eggert  <eggert@twinsun.com>
71026
71027         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
71028         to allocate the returned structure.  Do not allocate a subarray,
71029         as x2nrealloc will do that.
71030         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
71031         instead of xnrealloc.
71032         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
71033
71034 2003-10-27  Bruno Haible  <bruno@clisp.org>
71035
71036         * lib/stdbool_.h: Better support for BeOS.
71037
71038 2003-10-26  Paul Eggert  <eggert@twinsun.com>
71039
71040         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
71041         now uses inline.
71042
71043 2003-10-26  Paul Eggert  <eggert@twinsun.com>
71044
71045         * lib/xalloc.h (xalloc_oversized): New static inline function, for
71046         callers that want to do their own size-overflow checking.  Include
71047         <stdbool.h>, since xalloc_oversized returns bool.
71048         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
71049         to use xalloc_oversized.
71050
71051         Add two functions x2realloc, x2nrealloc, for programs that grow
71052         arrays dynamically by doubling their sizes.
71053         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
71054         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
71055         New functions.
71056
71057         Port to C99 semantics for 'inline' of external functions.
71058         Bug reported by Bruno Haible.
71059         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
71060         with the old contents of xnmalloc.
71061         (xnmalloc, xmalloc): Use it.
71062         (xnrealloc_inline): New static inline function,
71063         with the old contents of xnrealloc.
71064         (xnrealloc, xrealloc): Use it.
71065
71066         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
71067         that.
71068
71069 2003-10-26  Karl Berry  <karl@gnu.org>
71070
71071         * config/srclist.txt (COPYING.DOC): no longer available from
71072         /gd/gnuorg; don't know where the ultimate source is.
71073
71074 2003-10-25  Paul Eggert  <eggert@twinsun.com>
71075
71076         Fix several address-calculation bugs in the hash modules,
71077         plus some minor code cleanup.
71078
71079         * lib/hash.h: Include <stdbool.h>, for bool.
71080         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
71081         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
71082         hash_get_n_entries, hash_get_max_bucket_length,
71083         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
71084         hash_rehash): Use size_t rather than unsigned.
71085         * lib/hash.c (struct hash_table, hash_get_n_buckets,
71086         hash_get_n_buckets_used, hash_get_n_entries,
71087         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
71088         hash_get_entries, hash_do_for_each, hash_string, is_prime,
71089         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
71090         Likewise.
71091         (SIZE_MAX): Define if not defined.
71092         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
71093         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
71094         hash_print):
71095         Use const * when possible.
71096         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
71097         (check_tuning): Fix bug: if tuning parameters were very close to
71098         0 or 1, rounding errors could have caused subscript violations.
71099         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
71100         (hash_initialize): Add 'fail:' label
71101         to free table and return NULL, and use it to simplify code.
71102         Use calloc rather than clearing the storage ourself.
71103         (hash_initialize, hash_rehash): Check for arithmetic overflow in
71104         buffer size calculations.
71105         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
71106         Include <stddef.h>, for size_t.
71107         * lib/hash-pjw.c (hash_pjw): Likewise.
71108         Switch to method described by Bruno Haible.
71109         Include <limits.h>, for CHAR_BIT.
71110         (SIZE_BITS): New macro.
71111
71112 2003-10-23  Paul Eggert  <eggert@twinsun.com>
71113
71114         * m4/getline.m4 (AM_FUNC_GETLINE):
71115         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
71116         hosts.  Problem reported by Derek Robert Price in
71117         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
71118         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
71119         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
71120
71121 2003-10-21  Paul Eggert  <eggert@twinsun.com>
71122
71123         * lib/getndelim2.c (getndelim2): When size calculation overflows,
71124         ceiling the allocation at NMAX bytes rather than silently
71125         discarding input bytes before NMAX is reached.  This makes
71126         a difference only if NMAX exceeds SIZE_MAX / 2.
71127
71128         * lib/obstack.c: Merge from glibc.
71129         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
71130         Add libc_hidden_def (_obstack_newchunk).
71131         (_obstack_free) [! defined _LIBC]: Remove.
71132         [defined _LIBC]: Make a strong alias from obstack_free, rather than
71133         a clone of the function body.
71134         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
71135         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
71136
71137         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
71138         glibc.
71139         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
71140         arg to memcpy.
71141
71142         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
71143         (obstack_ptr_grow_fast, obstack_int_grow_fast):
71144         Don't use lvalue casts, as GCC plans to remove support for them
71145         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
71146         was also present in the non-GCC version, indicating that this
71147         code had always been buggy and had never been widely used.
71148         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
71149         Use the fast variant of each macro, rather than copying the
71150         definiens of the fast variant; that way, we'll be more likely to
71151         catch future bugs in the fast variants.
71152
71153 2003-10-20  Bruno Haible  <bruno@clisp.org>
71154
71155         * modules/wait-process: New file.
71156         * MODULES.html.sh (func_all_modules): Add wait-process.
71157
71158 2003-10-20  Bruno Haible  <bruno@clisp.org>
71159
71160         * m4/wait-process.m4: New file.
71161
71162 2003-10-20  Bruno Haible  <bruno@clisp.org>
71163
71164         * lib/wait-process.h: New file, from GNU gettext.
71165         * lib/wait-process.c: New file, from GNU gettext.
71166
71167 2003-10-19  Jim Meyering  <jim@meyering.net>
71168
71169         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
71170         HPUX 10.20.
71171
71172 2003-10-18  Karl Berry  <karl@gnu.org>
71173
71174         * config/config.guess: update from config.
71175
71176 2003-10-16  Paul Eggert  <eggert@twinsun.com>
71177
71178         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
71179         (getgroups): First arg is int, not size_t.
71180         Don't let 'free' mangle errno.
71181
71182 2003-10-16  Paul Eggert  <eggert@twinsun.com>
71183
71184         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
71185
71186 2003-10-16  Karl Berry  <karl@gnu.org>
71187
71188         * config/config.{guess,sub}: update from config.
71189
71190 2003-10-16  Jim Meyering  <jim@meyering.net>
71191
71192         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
71193         memcpy.
71194
71195 2003-10-15  Paul Eggert  <eggert@twinsun.com>
71196
71197         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
71198         (SIZE_MAX): Remove.
71199         (new_exclude, add_exclude_file): Initial size no longer needs to
71200         be a power of 2.
71201         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
71202         our own address arithmetic overflow checking.
71203
71204         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
71205         (fnmatch): Do not alloca more than 2000 wide characters;
71206         instead, use malloc for large buffers.
71207         Check for address arithmetic overflow, and return -1
71208         with errno set to ENOMEM in that case.
71209         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
71210         (NEW_PATTERN): Do not alloca more than 8000 bytes;
71211         instead, return -1.  Check for address arithmetic overflow.
71212
71213 2003-10-14  Paul Eggert  <eggert@twinsun.com>
71214
71215         Handle invalid suffixes and overflow independently, so that
71216         callers can treat them independently as needed.  Fix some bugs in
71217         suffix handling, e.g., "100k@" was not diagnosed as an invalid
71218         suffix for a human-readable blocksize.  The major caller-visible
71219         change is the addition of a new
71220         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
71221         that both overflow and suffix chars were found.
71222
71223         * lib/human.c (humblock): Don't check separately for invalid suffix
71224         char; that is xstrtoumax's job (now that its bug is fixed).
71225         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
71226         INTMAX_MAX]: New macros.
71227         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
71228         TYPE_MAXIMUM): New macros.
71229         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
71230         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
71231         if overflow occurs, as it's what __strtol does and it's more useful
71232         in practice.
71233         (__xstrtol): If __strtol reports some error other than ERANGE,
71234         reflect it to the caller as LONGINT_INVALID.  If it reports
71235         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
71236         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
71237         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
71238         value.
71239         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
71240         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
71241         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
71242         [defined UINTMAX_MAX]: New macros.
71243
71244 2003-10-14  Bruno Haible  <bruno@clisp.org>
71245
71246         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
71247
71248 2003-10-14  Bruno Haible  <bruno@clisp.org>
71249
71250         * m4/sig_atomic_t: New file, from GNU gettext.
71251         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
71252
71253 2003-10-14  Bruno Haible  <bruno@clisp.org>
71254
71255         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
71256         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
71257         Also use volatile where needed.
71258
71259 2003-10-12  Paul Eggert  <eggert@twinsun.com>
71260
71261         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
71262         Change maintainer from Bruno Haible to 'all'.
71263
71264 2003-10-12  Paul Eggert  <eggert@twinsun.com>
71265
71266         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
71267
71268 2003-10-12  Paul Eggert  <eggert@twinsun.com>
71269
71270         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
71271         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
71272         and define in terms of the other primitives.
71273         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
71274         (SIZE_MAX): Define if not already defined.
71275         (array_size_overflow): New function.
71276         (xalloc_die): Abort instead of exiting if 'error' returns.
71277         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
71278         (xmalloc, xrealloc): Use them.
71279         (xcalloc): Check for address arithmetic overflow.
71280         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
71281         a bit faster than strcpy.
71282
71283 2003-10-10  Simon Josefsson  <jas@extundo.com>
71284
71285         * modules/argp (Depends-on): Add restrict and strcase.
71286
71287 2003-10-10  Simon Josefsson  <jas@extundo.com>
71288
71289         * m4/argp.m4: Add AC_C_INLINE.
71290
71291 2003-10-08  Paul Eggert  <eggert@twinsun.com>
71292
71293         Merge getpass from libc, plus a few fixes.
71294
71295         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
71296         Include <stdbool.h>.
71297         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
71298         __fsetlocking to empty.
71299         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
71300         do include <bits/libc-lock.h>.
71301         Do not include <fcntl.h>; not needed.
71302         [_LIBC]: Include <wchar.h>.
71303         (NOTCANCEL_MODE): New macro.
71304         (flockfile, funlockfile) [_LIBC]: New macros.
71305         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
71306         [!_LIBC]: New macros.
71307         (call_fclose): New function.
71308         (getpass): Use it.  Save tty stream separately; this simplifies the
71309         code and makes it more reliable if stdin happens to equal stdout.
71310         Invoke __fsetlocking on tty.
71311         Handle thread cancellation if needed.
71312         Namespace cleanup (use __tcgetattr, __getline).
71313         Use bool for Booleans.
71314         [USE_IN_LIBIO]: Handle wide streams.
71315         [!_LIBC]: Unconditionally do the fseek, since we don't know what
71316         stream might go where.
71317
71318         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
71319         doesn't have to include <stdio.h> before us.
71320         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
71321         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
71322         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
71323         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
71324         if not declared, so that we can use getpass.c code from libc without
71325         rewriting it.
71326         (flockfile, ftrylockfile, funlockfile): New macros.
71327
71328 2003-10-08  Paul Eggert  <eggert@twinsun.com>
71329
71330         * modules/getpass: Depend on stdbool.
71331
71332 2003-10-08  Paul Eggert  <eggert@twinsun.com>
71333
71334         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
71335
71336 2003-10-07  Karl Berry  <karl@gnu.org>
71337
71338         * config/config.{guess,sub}: update from config.
71339
71340 2003-10-06  Jim Meyering  <jim@meyering.net>
71341             Bruno Haible  <bruno@clisp.org>
71342
71343         This lets translators provide better translations for the
71344         "Written by ..." part of --version output.
71345         * lib/version-etc.h: Include stdarg.h.
71346         (version_etc_copyright): Declare as readonly.
71347         (version_etc): Make this function variadic with a NULL-terminated list
71348         of author name strings.
71349         (version_etc_va): New declaration.
71350         * lib/version-etc.c: Include stdarg.h, stdlib.h.
71351         (version_etc_copyright): Declare as readonly.
71352         (version_etc_va): New function. Provide a different translatable string
71353         for each possible number of authors < 10. Abbreviate when there are 10
71354         authors or more.
71355         (version_etc): Make this function variadic. Call version_etc_va.
71356         Suggestion from Gary V. Vaughan.
71357
71358         * lib/long-options.h (parse_long_options): Change prototype: the
71359         authors string is moved to the end and becomes variadic.
71360         * lib/long-options.c: Include stdarg.h.
71361         (parse_long_options): Make this function variadic, too.
71362         Call version_etc_va, not version_etc.
71363
71364 2003-10-06  Bruno Haible  <bruno@clisp.org>
71365
71366         * modules/version-etc-2: Remove file.
71367         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
71368
71369 2003-10-06  Bruno Haible  <bruno@clisp.org>
71370
71371         * modules/fatal-signal: New file.
71372         * MODULES.html.sh (func_all_modules): Add fatal-signal.
71373
71374 2003-10-06  Bruno Haible  <bruno@clisp.org>
71375
71376         * m4/fatal-signal.m4: New file.
71377         * m4/signalblocking.m4: New file, from GNU gettext.
71378
71379 2003-10-06  Bruno Haible  <bruno@clisp.org>
71380
71381         * lib/version-etc-2.h: Remove file.
71382         * lib/version-etc-2.c: Remove file.
71383
71384 2003-10-06  Bruno Haible  <bruno@clisp.org>
71385
71386         * lib/fatal-signal.h: New file, from GNU gettext.
71387         * lib/fatal-signal.c: New file, from GNU gettext.
71388
71389 2003-10-05  Paul Eggert  <eggert@twinsun.com>
71390
71391         * README: Rework advice for preventing empty .o files.
71392         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
71393         not <sys/types.h>.
71394
71395 2003-10-04  Karl Berry  <karl@gnu.org>
71396
71397         * lib/argp*: update from libc.
71398
71399 2003-10-04  Karl Berry  <karl@gnu.org>
71400
71401         * config/config.{guess,sub}: update from config.
71402
71403 2003-10-02  Bruno Haible  <bruno@clisp.org>
71404
71405         * modules/lchown (Include): Add lchown.h.
71406         * modules/time_r (Include): Use "..." syntax.
71407         * modules/xgetdomainname (Include): Add xgetdomainname.h.
71408
71409 2003-10-01  Simon Josefsson  <jas@extundo.com>
71410
71411         * MODULES.html.sh (func_all_modules): Move gethostname from section
71412         'based on' to section 'lacking' POSIX:2001.
71413
71414 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
71415
71416         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
71417         to output mode on the same stream.
71418
71419 2003-09-29  Paul Eggert  <eggert@twinsun.com>
71420
71421         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
71422         Fix arg typo in previous patch.
71423
71424 2003-09-28  Jim Meyering  <jim@meyering.net>
71425
71426         * lib/error.c: Correct cpp indentation.
71427
71428 2003-09-27  Paul Eggert  <eggert@twinsun.com>
71429
71430         * modules/free: New file.
71431
71432 2003-09-27  Paul Eggert  <eggert@twinsun.com>
71433
71434         * m4/free.m4: New file.
71435
71436 2003-09-27  Paul Eggert  <eggert@twinsun.com>
71437
71438         * lib/minmax.h (MIN, MAX)
71439         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
71440         Omit the special code that used __typeof__, since we worry that
71441         it could be more trouble than it's worth.  See:
71442         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
71443         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
71444
71445         * lib/free.c: New file.
71446
71447 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
71448
71449         Trivial fixes to Makefile.am parts of module listings.
71450         * modules/strstr: Append strstr.h to lib_SOURCES.
71451         * modules/strcase: Likewise, for strcase.h.
71452
71453 2003-09-27  Karl Berry  <karl@gnu.org>
71454
71455         * config/mkinstalldirs: update from automake.
71456
71457 2003-09-26  Paul Eggert  <eggert@twinsun.com>
71458
71459         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
71460         (error_tail): Do not loop, reallocating temporary buffer, since
71461         the output cannot contain more wide characters than the input
71462         contains bytes, the size must be big enough already.  This avoids
71463         one potential size overflow calculation.  Check for size overflow
71464         when calculating temporary buffer size.  Free temporary buffer
71465         when done, if it was allocated with malloc; this plugs a memory
71466         leak.  Remove casts from void * to pointers, that are no longer
71467         needed now that we're assuming C89 or better.
71468
71469         Merge error changes from glibc.
71470
71471         * lib/error.c, error.h: Update copyright notice header to match glibc.
71472         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
71473         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
71474         Disable cancellation while printing error.
71475         * lib/error.h: Prepend __ to parameter names.
71476
71477 2003-09-26  Jim Meyering  <jim@meyering.net>
71478
71479         * lib/error.c (error_tail): Move some declarations
71480         into inner scope where the local variables are used.
71481
71482 2003-09-26  Bruno Haible  <bruno@clisp.org>
71483
71484         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
71485         stpncpy().
71486         Don't define stpncpy through config.h; it's now done through stpncpy.h.
71487
71488 2003-09-26  Bruno Haible  <bruno@clisp.org>
71489
71490         * lib/stpncpy.h (gnu_stpncpy): New declaration.
71491         (stpncpy): Define as alias for gnu_stpncpy.
71492         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
71493
71494 2003-09-25  Simon Josefsson  <jas@extundo.com>
71495
71496         * lib/xgetdomainname.h: New file.
71497         * lib/xgetdomainname.c: New file.
71498
71499 2003-09-25  Simon Josefsson  <jas@extundo.com>
71500             Bruno Haible  <bruno@clisp.org>
71501
71502         * modules/getdomainname: New file.
71503         * modules/xgetdomainname: New file.
71504         * MODULES.html.sh (func_all_modules): Add getdomainname,
71505         xgetdomainname.
71506
71507 2003-09-25  Simon Josefsson  <jas@extundo.com>
71508             Bruno Haible  <bruno@clisp.org>
71509
71510         * m4/getdomainname.m4: New file.
71511
71512 2003-09-25  Simon Josefsson  <jas@extundo.com>
71513             Bruno Haible  <bruno@clisp.org>
71514
71515         * lib/getdomainname.h: New file.
71516         * lib/getdomainname.c: New file.
71517
71518 2003-09-25  Karl Berry  <karl@gnu.org>
71519
71520         * lib/argp-fmtstream.c, argp-help.c: update from libc.
71521
71522 2003-09-25  Karl Berry  <karl@gnu.org>
71523
71524         * config/install-sh: update from automake.
71525
71526 2003-09-25  Bruno Haible  <bruno@clisp.org>
71527
71528         * modules/version-etc-2: New file, from modules/version-etc with
71529         modifications.
71530         * MODULES.html.sh (func_all_modules): Add version-etc-2.
71531
71532 2003-09-25  Bruno Haible  <bruno@clisp.org>
71533
71534         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
71535         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
71536
71537 2003-09-24  Simon Josefsson  <jas@extundo.com>
71538
71539         * modules/xgethostname: Add xgethostname.h.
71540
71541 2003-09-24  Paul Eggert  <eggert@twinsun.com>
71542
71543         * lib/linebuffer.c (freebuffer): Don't free the argument, just
71544         the buffer associated with the argument.  Bug reported by
71545         Simon Josefsson.
71546
71547 2003-09-24  Paul Eggert  <eggert@twinsun.com>
71548
71549         * README: Document assumptions that 'int' is at least 32 bits
71550         wide, that integer arithmetic is 2's complement without overflow,
71551         that there are no holes in integer values, that adding sizes of
71552         two nonoverlapping objects can't overflow, and that all-bits-zero
71553         yields scalar zero.  Fix spelling and capitalization typos.
71554
71555 2003-09-19  Karl Berry  <karl@gnu.org>
71556
71557         * lib/argp.h: update from libc.
71558
71559 2003-09-17  Paul Eggert  <eggert@twinsun.com>
71560
71561         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
71562         to avoid spurious warnings like "AC_RUN_IFELSE was called before
71563         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
71564
71565 2003-09-17  Paul Eggert  <eggert@twinsun.com>
71566
71567         * gnulib-tool: Use "test -h", not "test -L", for portability
71568         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
71569         (tags_regexp): Remove, since \| doesn't conform to POSIX.
71570         (sed_extract_prog): Issue s commands one-by-one, rather than
71571         using \| in one s command.
71572
71573 2003-09-16  Paul Eggert  <eggert@twinsun.com>
71574
71575         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
71576         input error, instead of returning NULL the next time we are called
71577         (and therefore losing track of errno).
71578
71579 2003-09-16  Bruno Haible  <bruno@clisp.org>
71580
71581         * gnulib-tool (func_create_testdir): Warn about duplicated
71582         dependencies.
71583
71584 2003-09-15  Paul Eggert  <eggert@twinsun.com>
71585
71586         * modules/argmatch, modules/fatal, modules/obstack,
71587         modules/xalloc, modules/xgethostname: Sort dependencies by
71588         importance, not alphabetically.
71589
71590 2003-09-15  Paul Eggert  <eggert@twinsun.com>
71591
71592         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
71593         fails, so that the caller gets the proper errno.
71594
71595         * lib/readutmp.c (read_utmp): Likewise.
71596         Check for fstat error.  Close stream and free storage
71597         when failing.
71598
71599 2003-09-14  Karl Berry  <karl@gnu.org>
71600
71601         * config/srclist.txt (strdup.c): disable for c89 changes.
71602
71603 2003-09-14  Jim Meyering  <jim@meyering.net>
71604
71605         * lib/getloadavg.c: Correct cpp indentation.
71606         * lib/strdup.c: Likewise.
71607         * lib/vasnprintf.c: Likewise.
71608
71609 2003-09-14  Bruno Haible  <bruno@clisp.org>
71610
71611         * modules/fwriteerror: New file.
71612         * MODULES.html.sh (func_all_modules): Add fwriteerror.
71613
71614 2003-09-14  Bruno Haible  <bruno@clisp.org>
71615
71616         * lib/fwriteerror.h: New file.
71617         * lib/fwriteerror.c: New file.
71618
71619 2003-09-12  Paul Eggert  <eggert@twinsun.com>
71620
71621         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
71622         modules/xgethostname, modules/xalloc: Depend on exit.
71623
71624 2003-09-12  Paul Eggert  <eggert@twinsun.com>
71625
71626         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
71627
71628         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
71629         and AC_MINIX, too, so that their extensions are available.
71630
71631         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
71632         This macro has been superseded by gl_BACKUPFILE.
71633
71634         More patches to assume C89 or better.
71635
71636         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
71637
71638         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
71639         unconditionally.
71640         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
71641         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
71642         Include <string.h>, <stdlib.h> unconditionally.
71643         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
71644         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
71645         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
71646         headers or for string.h.
71647         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
71648         or strtoul.
71649
71650         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
71651         headers.
71652         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
71653         * m4/userspec.m4 (gl_USERSPEC): Likewise.
71654         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
71655         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
71656         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71657         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
71658         memcpy, memset.
71659         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
71660         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
71661         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
71662         strtol.
71663         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
71664         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
71665         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
71666         strtoul.
71667
71668 2003-09-12  Paul Eggert  <eggert@twinsun.com>
71669
71670         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
71671         * lib/obstack.c [!defined _LIBC]: Likewise.
71672         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
71673         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
71674         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
71675
71676         More changes to assume C89 or better.
71677
71678         * lib/error.c (error_tail): Assume vprintf.
71679
71680         * lib/argmatch.c (getenv): Remove decl.
71681         * lib/progreloc.c (get_full_program_name): Define via prototype.
71682         * lib/setenv.c (clearenv): Likewise.
71683         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
71684         needed.
71685         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
71686         (malloc, memcpy): Remove decls.
71687         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
71688         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
71689         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
71690         (memcpy): Remove macro.
71691         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
71692         (__P): Remove.  All uses removed.
71693         (PTR): Remove.  All uses changed to void *.
71694         (CHAR_BIT, NULL): Remove.
71695         (spaces, zeros, memset_space, memset_zero)
71696         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
71697         Remove.
71698         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
71699         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
71700         Define with prototype.
71701         Remove now-unnecessary prototype decl.
71702         (extra_args_spec): Assume ANSI C.  All uses changed.
71703         (extra_args_spec_iso): Remove.
71704         (my_strftime, emacs_strftimeu): Define via prototype.
71705         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
71706         unconditionally.
71707         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
71708         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
71709         (strtoul, strtol): Remove decls.
71710         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
71711         LONG_MAX): Remove.
71712         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
71713         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
71714         (LOCALE_PARAM_PROTO): New macro.
71715         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
71716         (INTERNAL (strtol), strtol): Define with a prototype.
71717         (PARAMS): Remove.  All uses removed.
71718         * lib/tempname.c: Include <string.h> unconditionally.
71719         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
71720         * lib/xgethostname.c (main): Define with a prototype.
71721         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
71722         Include <stdlib.h> unconditionally.
71723         (calloc, malloc, realloc, free): Remove decls.
71724         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
71725         Include <stdlib.h> unconditionally.  Sort include file names.
71726         (strtod): Remove.
71727         (xstrtod): Define with a prototype.
71728         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
71729         (strtol, strtoul): Remove decls.
71730
71731 2003-09-11  Paul Eggert  <eggert@twinsun.com>
71732
71733         More patches to assume C89 or better.
71734         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
71735         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
71736         string.h, memchr, STDC_HEADERS.
71737
71738 2003-09-11  Paul Eggert  <eggert@twinsun.com>
71739
71740         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
71741         Include <stdlib.h>, <string.h> unconditionally.
71742         Remove now-unnecessary cast to char *.
71743         * lib/strnlen.c: Include <string.h> unconditionally.
71744         * lib/yesno.c (yesno): Define with a prototype.
71745
71746 2003-09-11  Bruno Haible  <bruno@clisp.org>
71747
71748         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
71749
71750 2003-09-10  Jim Meyering  <jim@meyering.net>
71751
71752         * lib/error.c: Correct indentation of cpp directives.
71753
71754 2003-09-10  Bruno Haible  <bruno@clisp.org>
71755
71756         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
71757         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
71758         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
71759         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
71760         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
71761         <stdlib.h> and <string.h> checks.
71762         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
71763         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
71764
71765 2003-09-10  Bruno Haible  <bruno@clisp.org>
71766
71767         * lib/strcspn.c: Include <string.h> unconditionally.
71768         * lib/strpbrk.c: Include <string.h> unconditionally.
71769         * lib/strstr.c: Include <string.h> unconditionally.
71770         * lib/unicodeio.c: Include <string.h> unconditionally.
71771         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
71772         * lib/unsetenv.c: Likewise.
71773         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
71774         * lib/yesno.c: Include <stdlib.h> unconditionally.
71775         (rpmatch): Add prototype.
71776
71777 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71778
71779         More patches to assume C89 or better.
71780         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
71781         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
71782         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
71783         or for string.h.
71784         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
71785         stdlib.h.
71786         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
71787         C headers.
71788         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
71789         string.h.
71790         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
71791         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
71792         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
71793         or for string.h.
71794         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
71795         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
71796         C headers.
71797         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
71798         memcpy.
71799         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
71800         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
71801         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
71802         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
71803         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
71804         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
71805         string.h, free.
71806         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
71807         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
71808         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
71809         C headers, or for string.h.
71810         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
71811         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
71812         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
71813         headers, memory.h, stdlib.h, string.h, strings.h.
71814         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
71815         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
71816         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
71817         strchr.
71818         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
71819         headers, memory.h, string.h.
71820         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
71821         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
71822         free.
71823         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
71824         headers.
71825         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
71826         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
71827         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
71828         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
71829         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
71830
71831 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71832
71833         More K&R removal.
71834
71835         * lib/acosl.c (main): Use a prototype.
71836         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
71837         tanl.c: Likewise.
71838
71839         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
71840
71841         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
71842         (getopt, etopt_long, getopt_long_only, _getopt_internal)
71843         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
71844         with a prototype.
71845         * lib/getopt.c (const): Remove macro.
71846         Include <string.h> unconditionally.
71847         (my_index): Remove; all uses changed to strchr.
71848         (strlen): Remove decl.
71849         (exchange): Remove forward decl; no longer needed.
71850         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
71851         Define with prototype.
71852         * lib/getopt1.c (const): Remove macro.
71853         (getopt_long, getopt_long_only, main): Define with prototype.
71854
71855         * lib/getugroups.c: Include <string.h> unconditionally.
71856
71857         * lib/getusershell.c: Include <stdlib.h> unconditionally.
71858         (getusershell, setusershell, endusershell, readname, main):
71859         Define with prototypes.
71860
71861         * lib/group-member.c: Include group-member.h first.
71862         Include <stdlib.h> unconditionally.
71863
71864         * lib/hard-locale.c: Include hard-locale.h first.
71865         Include <stdlib.h>, <string.h> unconditionally.
71866
71867         * lib/hash.c (free, malloc): Remove decls.
71868         Include <stdlib.h> unconditionally.
71869
71870         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
71871         (getenv): Do not declare.
71872
71873         * lib/idcache.c: Include <string.h> unconditionally.
71874
71875         * lib/long-options.c: Include long-options.h first, to test interface.
71876         Include <stdlib.h> unconditionally.
71877
71878         * lib/makepath.c: Include makepath.h first, to test interface.
71879         Include <stdlib.h> and <string.h> unconditionally.
71880
71881         * lib/linebuffer.c: Include <stdlib.h>.
71882         (free): Remove decl.
71883
71884         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
71885         stddef.h. rpl_malloc returns void *, not char *.
71886         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
71887         prototype.
71888
71889         * lib/md5.h: Include <limits.h> unconditionally.
71890         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
71891         (__P): Remove; all uses removed.
71892         * lib/md5.c: Include "md5.h" first.
71893         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
71894         md5_buffer, md5_process_bytes, md5_process_block):
71895         Define with prototypes.
71896         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
71897         * lib/sha.c: Include "sha.h" first.
71898         Include <stdlib.h>, <string.h> unconditionally.
71899
71900         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
71901         * lib/memcmp.c (__ptr_t): Likewise.
71902         * lib/memrchr.c (__ptr_t): Likewise.
71903         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
71904         Include <string.h> unconditionally.
71905         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
71906         * lib/memchr.c: Include <stdlib.h> unconditionally.
71907         * lib/memchr.c (LONG_MAX): Remove.
71908         * lib/memrchr.c (LONG_MAX): Likewise.
71909         * lib/memchr.c (__memchr): Define via a prototype.
71910         * lib/memrchr.c (__memrchr): Likewise.
71911         * lib/memcmp.c (__P): Remove, and remove all uses.
71912         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
71913         Remove forward decls; no longer needed.
71914         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
71915         Use types required by C89 in prototype.
71916
71917         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
71918         * lib/savedir.c: Likewise.
71919         * lib/mkdir.c (free): Remove decl.
71920         * lib/rmdir.c (rmdir): Define with a prototype.
71921         * lib/savedir.c: Include savedir.h first, to test interface.
71922
71923         * lib/mktime.c (STDC_HEADERS): Remove.
71924         Include <stdlib.h>, <string.h> unconditionally.
71925
71926         * lib/modechange.c: Include <stdlib.h> unconditionally.
71927         (malloc): Remove decl.
71928
71929         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
71930         (free): Remove decl.
71931
71932         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
71933         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
71934         (This type really should be intptr_t, but that's a C99ism.)
71935         (_obstack_memcpy): Remove: all uses changed to memcpy.
71936         Include <string.h> unconditionally.
71937         (struct obstack): Assume __STDC__ for types of members
71938         chunkfun, freefun, extra_arg.
71939         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
71940         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
71941         obstack_begin, obstack_specify_allocation,
71942         obstack_specify_allocation_with_arg, obstack_chunkfun,
71943         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
71944         Remove unprototyped decls and the macros that use them.
71945         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
71946         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
71947         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
71948         (defined __STDC__ && __STDC__)]:
71949         Remove nonprototyped code.
71950         Include <stdlib.h> unconditionally.
71951         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
71952         _obstack_allocated_p, _obstack_free, obstack_free,
71953         _obstack_memory_used, print_and_abort):
71954         Define using prototypes.
71955         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
71956         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
71957         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
71958         obstack_next_free, obstack_object_size, obstack_room) [0]:
71959         Remove unused, unprototyped code.
71960
71961         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
71962
71963         * lib/physmem.c (physmem_total, physmem_available, main): Define
71964         with prototypes.
71965
71966         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
71967         (main): Define with a prototype.
71968
71969         * lib/posixver.c (getenv): Remove decl.
71970
71971         * lib/putenv.c (malloc): Returns void *, not char *.
71972         Include <string.h> unconditionally.
71973         (strchr, memcpy, NULL): Do not define.
71974
71975         * lib/readtokens.c: Include readtokens.h first, to test interface.
71976         Include <stdlib.h>, <string.h> unconditionally.
71977         (init_tokenbuffer): Define with a prototype.
71978
71979         * lib/regex.c (PARAMS): Remove.  All uses removed.
71980         All uses of _RE_ARGS removed, too.
71981         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
71982         unconditionally.
71983         (bzero): Assume memset exists.
71984         (memcmp, memcpy, NULL): Remove.
71985         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
71986         char, or assignments to local vars of type signed char.
71987         (init_syntax_once, PREFIX(extract_number_and_incr),
71988         PREFIX(print_partial_compiled_pattern),
71989         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
71990         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
71991         PREFIX(regex_grow_registers), PREFIX(regex_compile),
71992         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
71993         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
71994         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
71995         wcs_compile_range, byte_compile_range, truncate_wchar,
71996         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
71997         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
71998         count_mbs_length, wcs_re_match_2_internal,
71999         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
72000         PREFIX(alt_match_null_string_p),
72001         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
72002         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
72003         regfree, PREFIX(extract_number)): Define with prototype.  Remove
72004         now-unnecessary declaration, if any.
72005         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
72006         regcomp, regexec):
72007         Remove now-unnecessary casts among pointer types.
72008         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
72009
72010         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
72011         (free): Remove decl.
72012
72013         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
72014
72015         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
72016         (free): Remove decl.
72017
72018         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
72019         * lib/xgetcwd.c: Likewise.
72020
72021         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
72022         (free): Remove decl.
72023
72024         * lib/strchrnul.c (strchrnul): Define with a prototype.
72025         Fix bug: c_in was not converted to char before searching.
72026
72027         The following changes are not K&R related:
72028
72029         * lib/group-member.h: Include <sys/types.h>, so that this file is
72030         self-contained.
72031         * lib/makepath.h: Likewise.
72032
72033         * lib/getusershell.c (readname, default_index, line_size, readname):
72034         Use size_t, not int, for sizes.
72035         (readname): If the size overflows, report an error instead of
72036         looping forever.
72037
72038 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72039
72040         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
72041         libc.
72042
72043 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72044
72045         * README: New section: portability guidelines.
72046
72047 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
72048
72049         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
72050         C89 spec.
72051
72052 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
72053
72054         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
72055
72056 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72057
72058         Assume C89 or better; remove K&R cruft.
72059         A few of these changes were first proposed by Derek Robert Price
72060         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
72061
72062         * lib/addext.c: Include <string.h> unconditionally.
72063         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
72064         Don't declare getenv or malloc.
72065
72066         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
72067         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
72068         (NULL): Remove.
72069         (find_stack_direction, alloca): Use prototypes.
72070
72071         * lib/atexit.c (atexit): Define using a prototype.
72072
72073         * lib/basename.c, dirname.c, stripslash.c:
72074         Include <string.h> unconditionally.
72075
72076         * lib/bcopy.c: Include <stddef.h>.
72077         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
72078
72079         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
72080
72081         * lib/error.h (error, error_at_line, error_print_progname)
72082         [! (defined (__STDC__) && __STDC__)]: Remove decls.
72083         * lib/error.c: Include error.h first, to check interface.
72084         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
72085         (VA_START): Remove; all uses changeed to va_start.
72086         (exit, strerror): Remove decls.
72087         (error_print_progname): Prototype uncondionally.
72088         Don't include <errno.h>; no longer needed.
72089         (private_strerror): Remove.
72090         (error_tail): Always define.
72091         (error, error_at_line): Assume C89 or better; always use prototypes.
72092         * lib/fatal.c: Include "fatal.h" first, to test interface.
72093         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
72094         (VA_START): Remove; all uses changed to va_start.
72095         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
72096         this case.
72097         (exit): Remove decl.
72098         (fatal): Prototype unconditionally.  Assume va_start works.
72099         Abort at end, to pacify gcc.
72100
72101         * lib/euidaccess.c (main): Define with a prototype.
72102
72103         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
72104
72105         * lib/exitfail.c: Include <stdlib.h> unconditionally.
72106
72107         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
72108         prototypes.
72109         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
72110         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
72111         (getenv): Remove decl.
72112         (fnmatch): Define using a prototype.
72113         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
72114         (FCT): Define using a prototype.
72115
72116         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
72117
72118         * lib/gethostname.c: Include <stddef.h>.
72119         (gethostname): Define with prototype.  Length is size_t, not int.
72120
72121 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72122
72123         Assume C89 or better; remove K&R cruft.
72124         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
72125         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
72126         string.h, getenv, malloc.
72127         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
72128         headers.
72129         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
72130         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
72131         do not check for strerror.
72132         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
72133         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
72134         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
72135         do not check for doprnt or vprintf.
72136         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
72137         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
72138
72139 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72140
72141         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
72142         getversion.c should have been removed then, but was accidentally
72143         preserved.
72144
72145         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
72146         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
72147
72148 2003-09-08  Karl Berry  <karl@gnu.org>
72149
72150         * config/config.sub, config.guess, srclistvars.sh: update from savannah
72151                 config, forget about prep.
72152
72153         * config/depcomp, missing: update from automake.
72154
72155 2003-09-07  Paul Eggert  <eggert@twinsun.com>
72156
72157         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
72158         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
72159
72160 2003-09-07  Paul Eggert  <eggert@twinsun.com>
72161
72162         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
72163         copy_tm_result.  Bug reported by Simon Josefsson in
72164         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
72165
72166 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72167
72168         * m4/time_r.m4: New file.
72169         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
72170         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
72171         is. Check for timegm declaration.
72172         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
72173         Do not check for gmtime_r.
72174         Replace mktime if __mktime_internal does not exist and if mktime
72175         hasn't been replaced already.
72176
72177 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72178
72179         * lib/time_r.c, lib/time_r.h: New files.
72180
72181         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
72182         __localtime_r.
72183         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
72184         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
72185
72186         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
72187         __gmtime_r.
72188         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
72189         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
72190         Include <time_r.h>.
72191
72192         * lib/timegm.c: Switch to glibc implementation, with the following
72193         changes:
72194         [defined HAVE_CONFIG_H]: Include <config.h>.
72195         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
72196         (__mktime_internal) [!defined _LIBC]: New decl.
72197         (__gmtime_r) [!defined _LIBC]: New macro and function.
72198         (timegm): Use a prototype, since gnulib assumes C89.
72199         Do not bother declaring tmp to be const, as it's not really usefu.
72200         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
72201         (timegm): Declare only if HAVE_DECL_TIMEGM.
72202
72203 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72204
72205         * MODULES.html.sh (func_all_modules): Add time_r.
72206         * modules/time_r: New file.
72207         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
72208         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
72209
72210 2003-09-03  Paul Eggert  <eggert@twinsun.com>
72211
72212         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
72213         Bug reported by Lute Kamstra in
72214         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
72215
72216         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
72217         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
72218         course with correspondingly smaller numbers for tomorrow and
72219         yesterday.  From Tadayoshi Funaba.  Originally installed into
72220         sh-utils on 1999-08-07, but the patch got lost (I guess during the
72221         coreutils merge?).
72222
72223 2003-08-31  Simon Josefsson  <jas@extundo.com>
72224
72225         * modules/timegm: New file.
72226         * MODULES.html.sh (func_all_modules): Add timegm.
72227
72228 2003-08-31  Simon Josefsson  <jas@extundo.com>
72229
72230         * m4/timegm.m4: New file.
72231
72232 2003-08-31  Simon Josefsson  <jas@extundo.com>
72233
72234         * lib/timegm.h: New file.
72235         * lib/timegm.c: New file.  Based on
72236         wget-1.8.2/src/http.c:mktime_from_utc.
72237
72238 2003-08-31  Karl Berry  <karl@gnu.org>
72239
72240         * lib/argp.h: update from libc.
72241
72242 2003-08-28  Bruno Haible  <bruno@clisp.org>
72243
72244         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
72245         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
72246         followed by '#define fnmatch fnmatch_posix' gives an error.
72247
72248 2003-08-28  Bruno Haible  <bruno@clisp.org>
72249
72250         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
72251         warning on QNX, which defines O_BINARY to 000000.
72252
72253 2003-08-27  Jim Meyering  <jim@meyering.net>
72254
72255         * m4/mkstemp.m4: Require that the system mkstemp be able to create
72256         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
72257         would fail after 32.  Reported by Danny Levinson.  Details here:
72258         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
72259
72260 2003-08-24  Bruno Haible  <bruno@clisp.org>
72261
72262         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
72263         MSVC7 <stdio.h> is included later.
72264
72265 2003-08-22  Simon Josefsson  <jas@extundo.com>
72266
72267         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
72268
72269 2003-08-20  Karl Berry  <karl@gnu.org>
72270
72271         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
72272
72273 2003-08-20  Bruno Haible  <bruno@clisp.org>
72274
72275         * modules/progname: New file.
72276         * MODULES.html.sh (func_all_modules): Add progname.
72277
72278 2003-08-20  Bruno Haible  <bruno@clisp.org>
72279
72280         * lib/progname.h: New file, from GNU gettext.
72281         * lib/progname.c: New file, from GNU gettext.
72282         * lib/progreloc.c: New file, from GNU gettext.
72283
72284 2003-08-19  Jim Meyering  <jim@meyering.net>
72285
72286         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
72287         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
72288
72289 2003-08-19  Bruno Haible  <bruno@clisp.org>
72290
72291         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
72292         more.
72293
72294 2003-08-19  Bruno Haible  <bruno@clisp.org>
72295
72296         * lib/xstrdup.c: Assume <string.h> exists.
72297
72298 2003-08-18  Paul Eggert  <eggert@twinsun.com>
72299
72300         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
72301         in makefile rules.
72302
72303 2003-08-18  Jim Meyering  <jim@meyering.net>
72304
72305         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
72306         * m4/lib-ld.m4: Likewise.
72307
72308 2003-08-18  Jim Meyering  <jim@meyering.net>
72309
72310         * lib/setenv.h: Indent nested cpp directive.
72311         * lib/vasnprintf.c: Remove trailing blanks.
72312
72313 2003-08-17  Simon Josefsson  <jas@extundo.com>
72314
72315         * modules/xstrndup: New file.
72316         * MODULES.html.sh (func_all_modules): Add xstrndup.
72317
72318 2003-08-17  Simon Josefsson  <jas@extundo.com>
72319
72320         * modules/argp: Fix autoconf macro name. Add more dependencies.
72321
72322 2003-08-17  Simon Josefsson  <jas@extundo.com>
72323
72324         * m4/xstrndup.m4: New file.
72325
72326 2003-08-17  Simon Josefsson  <jas@extundo.com>
72327
72328         * m4/argp.m4: New file.
72329
72330 2003-08-17  Simon Josefsson  <jas@extundo.com>
72331             Bruno Haible  <bruno@clisp.org>
72332
72333         * lib/xstrndup.h: New file.
72334         * lib/xstrndup.c: New file.
72335
72336 2003-08-17  Bruno Haible  <bruno@clisp.org>
72337
72338         * modules/strndup (Files, Include): Add lib/strndup.h.
72339
72340 2003-08-17  Bruno Haible  <bruno@clisp.org>
72341
72342         * modules/euidaccess (Files): Add lib/euidaccess.h.
72343
72344 2003-08-17  Bruno Haible  <bruno@clisp.org>
72345
72346         * lib/strndup.h: New file.
72347
72348 2003-08-17  Bruno Haible  <bruno@clisp.org>
72349
72350         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
72351         like AC_GNU_SOURCE.
72352         * modules/extensions (configure.ac): Comment out the invocation of
72353         gl_USE_SYSTEM_EXTENSIONS.
72354
72355 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72356
72357         Merges from coreutils, etc.
72358         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
72359         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
72360         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
72361         fixing a typo.
72362         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
72363         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
72364
72365 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72366
72367         Document merge from coreutils.
72368         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
72369         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
72370         * modules/utime: Add m4/utimes-null.m4.
72371
72372 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72373
72374         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
72375         space, undoing this 2003-08-12 change:
72376         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
72377
72378 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72379
72380         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
72381         strtoul.c from libc, undoing this 2003-08-12 change:
72382         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
72383
72384 2003-08-16  Jim Meyering  <jim@meyering.net>
72385
72386         Merges from coreutils.
72387         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
72388         prefix.  Adjust cache variables similarly.  Create 500 rather than
72389         just 300 files, to exercise bug on Darwin6.5, too.
72390         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
72391         $missing_dir.
72392         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
72393         AM_SYS_POSIX_TERMIOS.
72394         Reported by mkc@mathdogs.com.
72395         Also change use of $am_cv_sys_posix_termios
72396         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
72397         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
72398         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
72399         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
72400         in /proc/mounts until it finds one with matching device number.  This
72401         is unnecessary when the FILE argument *is* a mount point.  No stat call
72402         is necessary in that case.  So, disable the statvfs-testing code on
72403         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
72404         as RedHat bug# 84846.
72405         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
72406         to 1MB, so as not to render systems with no stack size limit (e.g.,
72407         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
72408         Include <unistd.h>.  On some systems,
72409         it is required for the definition of _SC_PAGESIZE.
72410
72411 2003-08-16  Jim Meyering  <jim@meyering.net>
72412
72413         Merge from coreutils.
72414         * lib/xstrtoimax.c: #else #if -> #elif.
72415         * lib/xstrtoumax.c: Likewise.
72416
72417 2003-08-16  Jim Meyering  <jim@meyering.net>
72418
72419         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
72420         * m4/utimes.m4: Removed.
72421         * m4/utimes-null.m4: Renamed from utimes.m4.
72422
72423         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
72424         to 1MB, so as not to render systems with no stack size limit (e.g.,
72425         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
72426         Include <unistd.h>.  On some systems,
72427         it is required for the definition of _SC_PAGESIZE.
72428
72429 2003-08-16  Jim Meyering  <jim@meyering.net>
72430         and Paul Eggert  <eggert@cs.ucla.edu>
72431
72432         Merges from coreutils, etc.
72433
72434         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
72435         using the latest version from cvs.  This avoids problems with #line
72436         directives using a vendor (Sun) compiler.
72437         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
72438         Don't set GETGROUPS_LIB here; now it's
72439         done via getgroups.m4's wrapper function.
72440         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
72441         rather than just in sh-util/configure.in, so that the
72442         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
72443         same.
72444         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
72445         AC_FUNC_GETLOADAVG where to find getloadavg.c.
72446         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
72447         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
72448         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
72449         Remove code that is now done by the newly-required macros.
72450         Append $(EXEEXT) to DF_PROG.
72451         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
72452         Do not invoke or require the following here,
72453         since prereq.m4 or some gnulib .m4 now does this for us:
72454         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
72455         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
72456         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
72457         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
72458         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
72459         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
72460         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
72461         AC_FUNC_OBSTACK.
72462         Do not replace the following functions, as this is now the job
72463         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
72464         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
72465         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
72466         atexit getpass, strdup, getpagesize.
72467         Replace 'raise'.
72468         Do not check for the following functions, as this is now the job
72469         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
72470         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
72471         setregid.
72472         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
72473         Check for sys/sysctl.h.
72474         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
72475         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
72476         of checking for ssize_t ourselves.
72477
72478         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
72479         Require every macro that gnulib/modules/* suggests for us.
72480         (jm_PREREQ_ADDEXT): New macro.
72481         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
72482         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
72483
72484         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
72485         (gl_PHYSMEM): Use it.
72486         Also check for `table' function.
72487         Check for new headers and functions.
72488         Add check for sys/sysmp.h.
72489         With suggestions from Kaveh Ghazi.
72490         Ignore headers that are present but cannot be compiled.  This
72491         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
72492         C 5.4.
72493
72494 2003-08-15  Paul Eggert  <eggert@twinsun.com>
72495
72496         Document merge from coreutils.
72497         * modules/userspec: Depend on posixver.
72498         * modules/strftime: Depend on tzset.
72499
72500 2003-08-15  Paul Eggert  <eggert@twinsun.com>
72501
72502         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
72503         rather than tab, after '#' in shell-script copyright notices.
72504         Suggested by Bruno Haible.
72505
72506 2003-08-15  Paul Eggert  <eggert@twinsun.com>
72507
72508         * config/srclist-update: Use three spaces, rather than tab, after '#'
72509         in shell-script copyright notices.  Suggested by Bruno Haible.
72510         Remove unnecessary parenthesization in regular expression.
72511
72512 2003-08-15  Jim Meyering  <jim@meyering.net>
72513
72514         Merge from coreutils.
72515         * lib/xgethostname.c: Include <stdlib.h>.
72516         (xghostname): Don't exit for anything other than memory-related
72517         failure; just return NULL.
72518         * lib/userspec.c: Include "posixver.h".
72519         (parse_user_spec): Accept `.' as a separator only
72520         in pre-POSIX-200112 mode.
72521         * lib/strtoimax.c: Use #elif rather than #else #if.
72522         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
72523         Remove function, now that we can rely on a working tzset function.
72524         [!_LIBC]: Ensure that the required autoconf test has been run.
72525         [!defined _NL_CURRENT && HAVE_STRFTIME]:
72526         Use underlying_strftime for %r.
72527         * lib/sha.c: Merge in some clean-up and optimization changes from
72528         glibc.
72529         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
72530         Ensure that it is a multiple of 64.
72531         Rearrange loop exit tests so as to avoid performing an
72532         additional fread after encountering an error or EOF.
72533         * lib/realloc.c: Update copyright date.
72534
72535 2003-08-15  Jim Meyering  <jim@meyering.net>
72536         and Paul Eggert  <eggert@twinsun.com>
72537
72538         Merge from coreutils.
72539         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
72540         member but strut utmpx does not.  Needed for AIX 4.3.3.
72541         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
72542
72543 2003-08-15  Jim Meyering  <jim@meyering.net>
72544         and Paul Eggert  <eggert@cs.ucla.edu>
72545
72546         Merges from coreutils, etc.
72547         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
72548         Require gl_FUNC_TZSET_CLOBBER.
72549         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
72550         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
72551         members.
72552
72553 2003-08-14  Paul Eggert  <eggert@twinsun.com>
72554
72555         Help the merge from coreutils.
72556         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
72557         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
72558         * m4/tzset.m4: Use it too.
72559
72560 2003-08-14  Paul Eggert  <eggert@twinsun.com>
72561
72562         * modules/tzset: New file.
72563
72564 2003-08-14  Jim Meyering  <jim@meyering.net>
72565
72566         Merges from coreutils.
72567         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
72568         variable names, rather than @FNMATCH_H@.
72569         * modules/alloca: Likewise for $(ALLOCA_H).
72570
72571         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
72572         the three copies of the literal target, `fnmatch.h'.
72573         * modules/alloca (alloca.h): Likewise.
72574
72575 2003-08-14  Jim Meyering  <jim@meyering.net>
72576
72577         Merge from coreutils.
72578         * m4/tzset.m4: New file.
72579         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
72580         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
72581         otherwise, AIX 5.1 systems would end up using the latter.
72582         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
72583         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
72584         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
72585         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
72586
72587 2003-08-14  Jim Meyering  <jim@meyering.net>
72588
72589         Merge from coreutils.
72590         * lib/obstack.h: Whitespace changes.
72591         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
72592         and xcalloc return values.
72593         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
72594         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
72595         hang on OSF/1 5.1 for DIR on both local and remote file systems.
72596         Reported by (and fix confirmed by) Nelson H. F. Beebe.
72597         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
72598         error from mntctl.
72599         Use mntctl's return value to drive the entry-processing loop, since
72600         we can't rely on the value of the vmt_length member in the last
72601         entry.  On some systems doing so could result in exhausting
72602         virtual memory.  Based in part on a patch from Mike Jetzer.
72603
72604 2003-08-14  Jim Meyering  <jim@meyering.net>
72605         and Paul Eggert  <eggert@twinsun.com>
72606
72607         Merges from coreutils, plus other fixes.
72608         * lib/physmem.c: Merge in portability changes from gcc/libiberty
72609         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
72610         for credits and details.  Thanks to Kaveh Ghazi for helping
72611         to keep these files in sync.
72612         (ARRAY_SIZE): Define it.
72613         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
72614         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
72615         (memcasecmp): Don't assume size_t fits in unsigned int.
72616         Remove casts and duplicate code.
72617         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
72618         (memcpy): Remove definition.
72619         Merge in some clean-up and optimization changes from glibc.
72620         [BLOCKSIZE]: Move definition to top of file.
72621         Ensure that it is a multiple of 64.
72622         Rearrange loop exit tests so as to avoid performing an
72623         additional fread after encountering an error or EOF.
72624         * lib/md5.h (md5_uintptr): Define.
72625         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
72626         return to the initial working directory.  Preserve errno
72627         for caller.
72628         * lib/idcache.c: Include "xalloc.h".
72629         (xmalloc, xrealloc): Remove decls.
72630         (getuser): Remove casts no longer required in C89.
72631         * lib/human.c: Include stdio.h, for sprintf.
72632         * lib/group-member.c: Include "xalloc.h".
72633         (xmalloc, xrealloc): Remove decls.
72634         (get_group_info): Remove casts no longer required in C89.
72635         * lib/getusershell.c (readname): Remove casts no longer required in
72636         C89.
72637         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
72638         * lib/getline.c: Whitespace fix, from coreutils.
72639
72640 2003-08-13  Paul Eggert  <eggert@twinsun.com>
72641
72642         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
72643         Check for isascii.
72644
72645         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
72646         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
72647         Undo previous (whitespace-only) change.
72648
72649 2003-08-13  Paul Eggert  <eggert@twinsun.com>
72650
72651         * lib/exclude.c: Include <ctype.h>
72652         (IN_CTYPE_DOMAIN): New macro.
72653         (is_space): New fn.
72654         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
72655         and empty lines.
72656
72657         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
72658         Undo previous (whitespace-only) change.
72659
72660 2003-08-13  Paul Eggert  <eggert@twinsun.com>
72661
72662         * config/srclist-update: Change update back to the old behavior,
72663         leaving whitespace alone.  Use one 'sed' command rather than a
72664         pipeline.
72665         (fixlicense): Now a variable, not a function.
72666         (remove_trailing_blanks): Remove.
72667         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
72668         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
72669         Undo previous (whitespace-only) change.
72670
72671 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72672
72673         Merge from coreutils.
72674         * modules/euidaccess: Add lib_SOURCES, include for new
72675         file euidaccess.h
72676
72677 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72678
72679         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
72680         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
72681         Normalize leading white space and remove trailing white space.
72682
72683         Merge from coreutils
72684         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
72685
72686         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
72687         0.12.1.  These files are now being upgraded automatically by
72688         ../config/srclist-update.
72689
72690 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72691
72692         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
72693         Normalize leading white space and remove trailing white space.
72694         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
72695         notice, as per ../config/srclist-update.
72696
72697         Merge from coreutils.
72698         * lib/euidaccess.h: New file.
72699         * lib/euidaccess.c: Include it.
72700         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
72701         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
72702         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
72703
72704 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72705
72706         * config/srclist-update: Add copyright notice.
72707         (remove_id_lines, remove_trailing_blanks): New constants.
72708         (fixfile): Use them to normalize spacing a bit in copied files.
72709         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
72710         Normalize leading white space and remove trailing white space.
72711
72712         * config/texinfo.tex: Sync with texinfo.
72713
72714         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
72715         strtoul.c from libc, to merge coreutils whitespace changes.
72716
72717         * config/srclist.txt: Get the following m4 files from gettext:
72718         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
72719         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
72720         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
72721         wint_t.m4.
72722
72723 2003-08-12  Karl Berry  <karl@gnu.org>
72724
72725         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
72726         been made.
72727
72728 2003-08-11  Paul Eggert  <eggert@twinsun.com>
72729
72730         * modules/gnu-source, m4/gnu-source.m4:
72731         Remove; we're assuming Autoconf 2.54 or later now.
72732         Suggested by Bruno Haible.
72733         * MODULES.html.sh (func_all_modules): Remove gnu-source.
72734
72735 2003-08-11  Bruno Haible  <bruno@clisp.org>
72736
72737         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
72738
72739 2003-08-11  Bruno Haible  <bruno@clisp.org>
72740
72741         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
72742         (vasnprintf): Use it instead of wcslen.
72743
72744 2003-08-11  Bruno Haible  <bruno@clisp.org>
72745
72746         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
72747         value to ensure that _Bool promotes to int. Use #define for _Bool when
72748         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
72749
72750 2003-08-10  Karl Berry  <karl@gnu.org>
72751
72752         * lib/regex.h: update from libc (whitespace fix).
72753
72754 2003-08-09  Paul Eggert  <eggert@twinsun.com>
72755
72756         Merge some files from coreutils.  These changes were
72757         originally made by Jim Meyering.
72758         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
72759         many older Unixes require this.
72760         * lib/alloca.c (alloca): Remove cast to argument of free;
72761         no longer needed in C89.
72762         * lib/alloca_.h, regex.h: Fix white space to match
72763         what GNU indent does.
72764
72765 2003-08-09  Paul Eggert  <eggert@twinsun.com>
72766
72767         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
72768         apparently Emacs's Unicode mode got confused before my 2003-08-05
72769         checkin.
72770
72771 2003-08-08  Paul Eggert  <eggert@twinsun.com>
72772
72773         * m4/extensions.m4: New file.
72774         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
72775         Require gl_USE_SYSTEM_EXTENSIONS.
72776         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
72777         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
72778
72779 2003-08-08  Paul Eggert  <eggert@twinsun.com>
72780
72781         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
72782         * modules/extensions, modules/gnu-source: New files.
72783         * modules/timespec, modules/unlocked-io: Depend on extensions.
72784
72785 2003-08-07  Paul Eggert  <eggert@twinsun.com>
72786
72787         * modules/restrict: New file.
72788         * MODULES.html.sh (func_all_modules): Add restrict.
72789         * modules/regex: Depend on restrict.
72790
72791 2003-08-07  Paul Eggert  <eggert@twinsun.com>
72792
72793         * m4/restrict.m4: New file.
72794         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
72795
72796 2003-08-07  Bruno Haible  <bruno@clisp.org>
72797
72798         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
72799         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
72800
72801 2003-08-07  Bruno Haible  <bruno@clisp.org>
72802
72803         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
72804         makes the module 'getndelim2' compatible with the module 'getline'.
72805
72806 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72807
72808         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
72809         byte with "\201" to avoid glitches when editing that source file
72810         with multi-gnome-terminal.
72811
72812 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72813
72814         * lib/bumpalloc.h: Remove.
72815
72816 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72817
72818         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
72819         * modules/bumpalloc: Remove.
72820
72821 2003-08-04  Paul Eggert  <eggert@twinsun.com>
72822
72823         * lib/getloadavg.c: Change copyright notice and spacing to conform to
72824         GNU coding style.
72825
72826         Merge from coreutils.
72827         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
72828         1. From glibc.
72829         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
72830         from Karl Berry, implemented by Jim Meyering.
72831         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
72832         from Dmitry V. Levin.
72833         Remove anachronistic cast of xrealloc.
72834         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
72835         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
72836         type. Otherwise, it wouldn't compile with at least /bin/cc on
72837         ymp-cray-unicos9.0.2.X.
72838         Combine two mostly-identical uses of alloca into one.
72839         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
72840
72841 2003-08-04  Dave Love  <d.love@dl.ac.uk>
72842
72843         [From Emacs.]
72844
72845         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
72846         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
72847         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
72848         obsolete NLIST_NAME_UNION.
72849         [__GNU__]: Undef BSD and FSCALE.
72850         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
72851
72852 2003-08-03  Paul Eggert  <eggert@twinsun.com>
72853
72854         * lib/stdbool_.h (_Bool): Make it signed char, instead of
72855         an enum type, so that it's guaranteed to promote to int.  See:
72856         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
72857
72858 2003-08-03  Karl Berry  <karl@gnu.org>
72859
72860         * config/depcomp: update from automake.
72861
72862 2003-07-31  Paul Eggert  <eggert@twinsun.com>
72863
72864         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
72865         (strerror): Don't assume that a printable int fits in 14 bytes.
72866
72867 2003-07-31  Bruno Haible  <bruno@clisp.org>
72868
72869         * modules/getpass-gnu: New file.
72870         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
72871
72872 2003-07-31  Bruno Haible  <bruno@clisp.org>
72873
72874         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
72875
72876 2003-07-24  Karl Berry  <karl@gnu.org>
72877
72878         * config/missing: update from automake.
72879
72880 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
72881             Bruno Haible  <bruno@clisp.org>
72882
72883         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
72884         * lib/getline.c (getline, getdelim): Likewise.
72885         Remove _GNU_SOURCE define; now it's defined in config.h through
72886         m4/getline.m4.
72887
72888 2003-07-23  Karl Berry  <karl@gnu.org>
72889
72890         * config/config.sub: update from prep.
72891
72892 2003-07-22  Paul Eggert  <eggert@twinsun.com>
72893
72894         * modules/xalloc (Depends-on): Add exitfail.
72895         * modules/xmemcoll: Likewise.
72896
72897 2003-07-22  Paul Eggert  <eggert@twinsun.com>
72898
72899         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
72900         over-parenthesization in macros.
72901
72902         Sync with coreutils.
72903
72904         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
72905         required by C99.
72906
72907         Use `exit_failure' for xalloc and xmemcoll instead of their own
72908         private exit-failure variables.
72909         * lib/xalloc.h (xalloc_exit_failure): Remove.
72910         * lib/xmalloc.c: Likewise.  Include exitfail.h.
72911         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
72912         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
72913         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
72914         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
72915
72916 2003-07-20  Jim Meyering  <jim@meyering.net>
72917
72918         * modules/closeout (Depends-on): Add exitfail.
72919         Suggestion from Bruno Haible.
72920
72921 2003-07-19  Karl Berry  <karl@gnu.org>
72922
72923         * config/config.sub: update from prep.
72924
72925 2003-07-18  Paul Eggert  <eggert@twinsun.com>
72926
72927         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
72928         Remove.
72929         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
72930         to test that it can stand by itself.  Include "exitfail.h".
72931         Clients should set exit_failure instead.
72932         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
72933
72934 2003-07-18  Bruno Haible  <bruno@clisp.org>
72935
72936         * modules/getndelim2: New file.
72937         * modules/getline: Share files with module getndelim2.
72938         * modules/getnline: Depend on getndelim2 instead of sharing files with
72939         it. Add getnline.c to lib_SOURCES.
72940         * MODULES.html.sh (func_all_modules): Add getndelim2.
72941
72942 2003-07-18  Bruno Haible  <bruno@clisp.org>
72943
72944         * m4/getndelim2.m4: New file.
72945         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
72946         invoke gl_PREREQ_GETNDELIM2.
72947         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
72948         gl_PREREQ_GETNDELIM2.
72949         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
72950         gl_GETNDELIM2.
72951
72952 2003-07-18  Bruno Haible  <bruno@clisp.org>
72953
72954         * lib/getndelim2.h: New file.
72955         * lib/getndelim2.c: Make into a module of its own. Include config.h,
72956         getndelim2.h.
72957         (getndelim2): Make non-static. Change return type to ssize_t.
72958         * lib/getline.h: Change argument names.
72959         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
72960         * lib/getnline.c: Include getndelim2.h.
72961
72962 2003-07-18  Andreas Schwab  <schwab@suse.de>
72963
72964         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
72965
72966 2003-07-17  Karl Berry  <karl@gnu.org>
72967
72968         * config/config.sub: update from prep.
72969
72970 2003-07-17  Bruno Haible  <bruno@clisp.org>
72971
72972         * modules/getnline: New file.
72973         * modules/getline: Add lib/getndelim2.c to source file list.
72974         * MODULES.html.sh (func_all_modules): Add getnline.
72975
72976 2003-07-17  Bruno Haible  <bruno@clisp.org>
72977
72978         * m4/getnline.m4: New file.
72979
72980 2003-07-17  Bruno Haible  <bruno@clisp.org>
72981
72982         * m4/Makefile.am.in: Remove file.
72983         * m4/Makefile.am: Remove file.
72984         * m4/Makefile.in: Remove file.
72985
72986 2003-07-17  Bruno Haible  <bruno@clisp.org>
72987
72988         * lib/getnline.h: New file.
72989         * lib/getnline.c: New file.
72990         * lib/getndelim2.c: New file, extracted from getline.c.
72991         (getndelim2): Renamed from getdelim2, with added nmax argument.
72992         * lib/getline.c: Include getndelim2.c.
72993         (getdelim2): Moved out to getndelim2.c.
72994         (getline, getdelim): Update.
72995
72996 2003-07-17  Bruno Haible  <bruno@clisp.org>
72997
72998         * lib/Makefile.am: Remove file.
72999         * lib/Makefile.in: Remove file.
73000
73001 2003-07-17  Bruno Haible  <bruno@clisp.org>
73002
73003         * configure.in: Remove file.
73004         * Makefile.in: Remove file.
73005
73006 2003-07-17  Bruno Haible  <bruno@clisp.org>
73007
73008         * MODULES.html.sh: Put the </BODY> right before </HTML>.
73009
73010 2003-07-16  Karl Berry  <karl@gnu.org>
73011
73012         * config/srclist-update: was running fixlicense twice, which caused
73013                 texinfo.tex to be nullified for some reason.  Simplify,
73014                 $gplsrc is no longer needed as far as I can see?
73015
73016 2003-07-16  Jim Meyering  <jim@meyering.net>
73017
73018         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
73019
73020 2003-07-15  Paul Eggert  <eggert@twinsun.com>
73021
73022         * config/srclist.txt: Get the following files from gettext-runtime/intl
73023         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
73024         ref-del.sin.  From Bruno Haible.
73025         * config/srclist-update (fixfile): Change grep pattern again, since the
73026         previous fix didn't work (there was another trailing $).  Use
73027         '[$]' to escape the $s.
73028
73029 2003-07-15  Karl Berry  <karl@gnu.org>
73030
73031         * lib/vasnprintf.c: update from gettext.
73032
73033 2003-07-15  Karl Berry  <karl@gnu.org>
73034
73035         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
73036         gets expanded when surrounded by '$'.
73037
73038 2003-07-15  Jim Meyering  <jim@meyering.net>
73039
73040         * modules/save-cwd: Don't depend on error.  From Derek Price.
73041
73042 2003-07-15  Jim Meyering  <jim@meyering.net>
73043
73044         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
73045
73046 2003-07-14  Simon Josefsson  <jas@extundo.com>
73047
73048         * modules/mempcpy: New file.
73049         * MODULES.html.sh (func_all_modules): Add mempcpy.
73050
73051 2003-07-14  Simon Josefsson  <jas@extundo.com>
73052
73053         * m4/mempcpy.m4: New file.
73054
73055 2003-07-14  Simon Josefsson  <jas@extundo.com>
73056
73057         * lib/mempcpy.h: New file.
73058         * lib/mempcpy.c: New file.
73059
73060 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73061
73062         * modules/getdate, modules/posixtm: Depend on mktime.
73063
73064 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73065
73066         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
73067         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
73068         unicodeio.c, unicodeio.h, unlocked-io.h:
73069         Switch from LGPL to GPL.
73070
73071 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73072
73073         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
73074         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
73075         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
73076         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
73077         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
73078         updated automatically by ../config/srclist-update.  This changes
73079         their license from LPGL to GPL.
73080
73081 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73082
73083         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
73084         assumed to refer to the root of the most recent stable gettext version.
73085         * config/srclistvars.sh: Add defaults for eggert.
73086         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
73087         Match "This program" as well as "The program".  This is needed
73088         for gettext.
73089
73090 2003-07-14  Jim Meyering  <jim@meyering.net>
73091
73092         Don't emit diagnostics.  Let callers do that.
73093         * lib/save-cwd.c: Don't include "error.h".
73094         (save_cwd): Don't call error.  Ensure that errno is valid
73095         when returning nonzero.
73096
73097         * lib/save-cwd.h (restore_cwd): Update prototype.
73098         * lib/save-cwd.c (restore_cwd): Remove two parameters.
73099         Simplify.  Don't call error upon failure.  Let callers do that.
73100         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
73101         when auditing is enabled.  But don't bother updating the #if.
73102
73103 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
73104
73105         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
73106         it breaks C++ compilation.
73107         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
73108
73109 2003-07-10  Simon Josefsson  <jas@extundo.com>
73110
73111         * modules/strchrnul (Makefile.am): Add strchrnul.h.
73112
73113 2003-07-10  Jim Meyering  <jim@meyering.net>
73114
73115         * m4/clock_time.m4: Remove trailing blank.
73116         * m4/intmax_t.m4: Likewise.
73117
73118 2003-07-10  Jim Meyering  <jim@meyering.net>
73119
73120         * lib/vasnprintf.c: Remove trailing blanks.
73121         Make cpp indentation consistent.
73122
73123 2003-07-09  Paul Eggert  <eggert@twinsun.com>
73124
73125         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
73126         posixver.c, strftime.c, strnlen.c, strverscmp.c:
73127         Switch from LGPL to GPL.
73128
73129 2003-07-09  Paul Eggert  <eggert@twinsun.com>
73130
73131         * config/srclist.txt: Sort sublists.  Add
73132         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
73133         that differ from gnulib for one reason or another; we'd like this list
73134         to be smaller but for now let's document what we have.
73135
73136 2003-07-08  Paul Eggert  <eggert@twinsun.com>
73137
73138         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
73139         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
73140         and sweeter "eval x=$x".
73141         * config/srclist.txt: Get lib/argp* from glibc.
73142
73143 2003-07-07  Paul Eggert  <eggert@twinsun.com>
73144
73145         * lib/mktime.c: Fix some boundary cases and remove need for floating
73146         point.
73147
73148         Issue a compile-time diagnostic if time_t is floating point, or if
73149         two's complement arithmetic is not in effect, or if arithmetic
73150         right shift does not propagate the sign.  These assumptions were
73151         all in the original code but they weren't checked.
73152
73153         (TIME_T_MIDPOINT, verify): New macros.
73154         (__isleap): Remove; it has integer overflow problems.
73155         (leapyear): New function, without those problems.
73156         (ydhms_tm_diff): Remove; splitting into two parts.
73157         (ydhms_diff): New function, containing the arithmetic part of
73158         the old ydhms_tm_diff function.  Issue a compile-time
73159         diagnostic if we are not using C99 integer division.
73160         Avoid casts when possible.
73161         (guess_time_tm): New function, containing the checking part of
73162         the old ydhms_tm_diff function.  Return the new value, rather than
73163         the difference between it and the old.  Accept a new argument T
73164         so that *T specifies the old value.  Check for overflow in the result.
73165
73166         (__mktime_internal): Use a time_t offset, not a long int offset.
73167         This undoes the 2003-06-04 change, which is no longer needed now
73168         that we have better overflow checking.
73169         (localtime_offset): Likewise.
73170
73171         (__mktime_internal): Avoid harmful overflow on hosts where time_t
73172         and long are 64-bit but int is only 32-bit.
73173         (ydhms_diff): Use long int to store year1 and yday1.
73174         Issue a compile-time diagnostic if long int is not wide enough.
73175
73176         (__mktime_internal): Use long int to store adjusted year and yday.
73177         Use plain C rather than preprocessor commands, if that doesn't
73178         affect efficiency.
73179         Check for overflow (and try to repair) after each probe
73180         rather than checking only at the very end.  This avoids some bugs
73181         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
73182         does not equal GMT offset at maximum time).
73183         Use integer to check for overflow rather than floating point; this
73184         is more portable to non-IEEE hosts, and is a tad faster.
73185         When we detect that we are oscillating between two values,
73186         don't check whether tm_isdst has the requested value, since
73187         we already know the answer.  When tm_isdst has the wrong value,
73188         use a different heuristic to find the right one, based on the
73189         extreme values actually observed in practice in tz2003a,
73190         rather than the (overly optimistic) "previous 3 calendar quarters".
73191
73192         (not_equal_tm, print_tm, check_result): Use "const T" rather than
73193         "T const" to accommodate glibc style.
73194         (check_result): Use less-confusing report format.  "long" -> "long int.
73195         (main): Likewise.
73196         Don't loop if the iteration overflows time_t.
73197         Allow a negative step in the iteration.
73198
73199 2003-07-06  Karl Berry  <karl@gnu.org>
73200
73201         * config/depcomp: update from automake.
73202         * config/config.sub: update from prep.
73203
73204 2003-07-03  Karl Berry  <karl@gnu.org>
73205
73206         * config/config.guess: update from prep.
73207
73208 2003-07-01  Paul Eggert  <eggert@twinsun.com>
73209
73210         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
73211         xreadlink.c now includes it unconditionally.
73212
73213 2003-07-01  Paul Eggert  <eggert@twinsun.com>
73214
73215         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
73216         having it depend on HAVE_SYS_TYPES_H.
73217
73218 2003-07-01  Bruno Haible  <bruno@clisp.org>
73219
73220         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
73221         <sys/types.h> should be sufficient.
73222         Reported by Paul Eggert.
73223
73224 2003-06-26  Karl Berry  <karl@gnu.org>
73225
73226         * config/depcomp: update from automake.
73227
73228 2003-06-26  Bruno Haible  <bruno@clisp.org>
73229
73230         * modules/human: Depend on module stdbool.
73231
73232 2003-06-25  Bruno Haible  <bruno@clisp.org>
73233
73234         * modules/readlink: New file.
73235         * modules/xreadlink: Depend on it.
73236         * MODULES.html.sh (func_all_modules): Add readlink.
73237
73238 2003-06-25  Bruno Haible  <bruno@clisp.org>
73239
73240         * m4/readlink.m4: New file.
73241
73242 2003-06-25  Bruno Haible  <bruno@clisp.org>
73243
73244         * lib/readlink.c: New file.
73245
73246 2003-06-22  Karl Berry  <karl@gnu.org>
73247
73248         * config/srclist.txt: update mkinstalldirs from automake.
73249         * config/mkinstalldirs: update.
73250
73251 2003-06-22  Bruno Haible  <bruno@clisp.org>
73252
73253         Portability to mingw32.
73254         * m4/ssize_t.m4: New file, from GNU gettext.
73255         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
73256         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
73257
73258 2003-06-22  Bruno Haible  <bruno@clisp.org>
73259
73260         * modules/safe-read: Add m4/ssize_t.m4.
73261         * modules/xreadlink: Add m4/ssize_t.m4.
73262
73263 2003-06-20  Bruno Haible  <bruno@clisp.org>
73264
73265         Assume C89, so PARAMS isn't needed.
73266         * lib/unicodeio.h (PARAMS): Remove.
73267         * lib/unicodeio.c: Don't use PARAMS.
73268
73269 2003-06-18  Karl Berry  <karl@gnu.org>
73270
73271         * config/config.{guess,sub}: update from prep.
73272
73273 2003-06-18  Jim Meyering  <jim@meyering.net>
73274
73275         Merge changes from coreutils.
73276         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
73277         Remove explicit declarations of xmalloc and realloc.
73278         Include xalloc.h.
73279         (read_utmp): Remove anachronistic cast of xmalloc.
73280
73281 2003-06-17  Paul Eggert  <eggert@twinsun.com>
73282
73283         Assume C89, so PARAMS isn't needed.
73284         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
73285         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
73286         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
73287         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
73288         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
73289         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
73290         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
73291         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
73292         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
73293         lib/xstrtod.h, lib/xstrtol.h: Likewise.
73294         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
73295         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
73296         no longer needed. Anyway, config.h should always be included before any
73297         other file.
73298
73299 2003-06-11  Simon Josefsson  <jas@extundo.com>
73300
73301         * modules/sysexits: New file.
73302         * MODULES.html.sh (func_all_modules): Add sysexits.
73303
73304 2003-06-11  Simon Josefsson  <jas@extundo.com>
73305
73306         * lib/sysexit_.h: New file.
73307
73308 2003-06-11  Derek Price  <derek@ximbiot.com>
73309
73310         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
73311         necessary.
73312
73313 2003-06-11  Bruno Haible  <bruno@clisp.org>
73314
73315         * m4/sysexits.m4: New file.
73316
73317 2003-06-10  Simon Josefsson  <jas@extundo.com>
73318
73319         * lib/argp.h: New file, from glibc.
73320         * lib/argp-ba.c: New file, from glibc.
73321         * lib/argp-eexst.c: New file, from glibc.
73322         * lib/argp-fmtstream.c: New file, from glibc.
73323         * lib/argp-fmtstream.h: New file, from glibc.
73324         * lib/argp-fs-xinl.c: New file, from glibc.
73325         * lib/argp-help.c: New file, from glibc.
73326         * lib/argp-namefrob.h: New file, from glibc.
73327         * lib/argp-parse.c: New file, from glibc.
73328         * lib/argp-pv.c: New file, from glibc.
73329         * lib/argp-pvh.c: New file, from glibc.
73330         * lib/argp-xinl.c: New file, from glibc.
73331
73332 2003-06-10  Simon Josefsson  <jas@extundo.com>
73333
73334         * modules/strchrnul: New file.
73335
73336 2003-06-10  Simon Josefsson  <jas@extundo.com>
73337
73338         * modules/argp: New file.
73339
73340 2003-06-10  Simon Josefsson  <jas@extundo.com>
73341
73342         * m4/strchrnul.m4: New file.
73343
73344 2003-06-10  Simon Josefsson  <jas@extundo.com>
73345
73346         * lib/strchrnul.h: New file.
73347         * lib/strchrnul.c: New file.
73348
73349 2003-06-10  Bruno Haible  <bruno@clisp.org>
73350
73351         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
73352
73353 2003-06-07  Karl Berry  <karl@gnu.org>
73354
73355         * config/config.{guess,sub}: update from prep.
73356
73357 2003-06-07  Jim Meyering  <jim@meyering.net>
73358
73359         * modules/strtod: Use $(...) notation, not @...@ for
73360         AC_REPLACE'd variables.
73361         * modules/localcharset: Likewise.
73362
73363 2003-06-07  Jim Meyering  <jim@meyering.net>
73364
73365         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
73366         in place of my name in the copyright comment.
73367         Remove definition and uses of __P.
73368
73369         From coreutils.
73370         * lib/stat.c: Don't declare xmalloc explicitly.
73371         Instead, include "xalloc.h".
73372         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
73373         xrealloc, and xcalloc return values.
73374         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
73375         Improve comment.
73376         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
73377
73378 2003-06-07  Bruno Haible  <bruno@clisp.org>
73379
73380         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
73381         avoid AC_CONFIG_LINKS.
73382         * modules/fnmatch (Makefile.am): Use explicit creation rule for
73383         fnmatch.h, to avoid AC_CONFIG_LINKS.
73384         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
73385
73386 2003-06-07  Bruno Haible  <bruno@clisp.org>
73387
73388         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
73389         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
73390         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
73391         directory.
73392         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
73393         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
73394         directory.
73395
73396 2003-06-06  Jim Meyering  <jim@meyering.net>
73397
73398         Merge from coreutils.
73399         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
73400         Consolidate declarations and initializations of *_base* locals.
73401
73402         Merge from coreutils.
73403         This avoids a core dump on systems without GNU putenv,
73404         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
73405         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
73406         (unsetenv): New static function, from GNU libc.
73407         (rpl_putenv): Use it.
73408
73409         * lib/modechange.c: Remove trailing blanks.
73410
73411         Merge from coreutils.
73412         * lib/fsusage.c: Remove declaration of statfs.
73413         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
73414
73415         * lib/posixtm.c: Include <stdbool.h> unconditionally.
73416
73417 2003-06-06  Jim Meyering  <jim@meyering.net>
73418
73419         * lib/stdbool_.h: Renamed from stdbool.h.in.
73420
73421 2003-06-06  Jim Meyering  <jim@meyering.net>
73422             Bruno Haible  <bruno@clisp.org>
73423
73424         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
73425         Adjust Makefile.am snippet not to redirect directly to target.
73426         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
73427
73428 2003-06-05  Paul Eggert  <eggert@twinsun.com>
73429
73430         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
73431         mismatch, look in future quarters as well as past.  This fixes a
73432         bug when processing fall-backwards gaps immediately after a long
73433         period of daylight-saving time.
73434
73435         * lib/mktime.c: Assume freestanding C89 or better.
73436         (HAVE_LIMITS_H): Remove.  Assume it's 1.
73437         (__P): Remove; not used.
73438         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
73439         (mktime, not_equal_tm, print_tm, check_result,
73440         main): Use prototypes.  Use const * where appropriate.
73441         (main): Fix typo in testing code that uncovered by above changes.
73442         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
73443
73444 2003-06-04  Paul Eggert  <eggert@twinsun.com>
73445
73446         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
73447         locale.h, localeconv.  This merges changes from coreutils.
73448
73449         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
73450         It can be removed after the next Autoconf is released.
73451         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
73452         needed.
73453
73454 2003-06-04  Paul Eggert  <eggert@twinsun.com>
73455
73456         * lib/mktime.c: Fix Debian bug 177940
73457         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
73458         (localtime_offset): Now long int, not time_t, because we want it
73459         to be guaranteed to be signed.  All uses changed.
73460         (__mktime_internal): If overflow would occur when adding offset,
73461         don't add it.
73462
73463         Merge 'human' changes from coreutils.  Rewrite to support
73464         locale-specific notations like thousands separators.
73465         * lib/human.c: Simplify authorship notice.
73466         Include human.h immediately after config.h.
73467         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
73468         <limits.h>: Do not include, since human.h does.
73469         (SIZE_MAX, UINTMAX_MAX): New macros.
73470         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
73471         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
73472         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
73473         (power_letter): Renamed from suffixes.
73474         (generate_suffix_backwards): Remove.
73475         (adjust_value): Now takes int style (because of human.h changes)
73476         and long double value (for greater precision on some platforms).
73477         (group_number): New function.
73478         (human_readable): Use it.  Use integer options, not enum.
73479         Put the options before the sizes in the arg list.
73480         Support all the new options.
73481         The old human_readable function has been removed;
73482         use inttostr.h instead.
73483         (human_readable, default_block_size, humblock):
73484         Use uintmax_t, not int, for block sizes.
73485         (human_readable_inexact, block_size_types): Remove.
73486         (block_size_opts): New constant.
73487         (human_options): Renamed from human_block_size, with new signature
73488         that allows block sizes up to UINTMAX_MAX.  All callers changed.
73489         * lib/human.h: Add copyright and authorship notice.
73490         Include <limits.h> and <stdbool.h> unconditionally.
73491         (PARAMS): Remove.  All uses removed.
73492         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
73493         (enum human_inexact_style): Remove tag; now a nameless enum.
73494         (human_floor, human_ceiling, human_round_to_even): Now have
73495         values 2, 0, 1 rather than -1, 1, 0.
73496         (human_group_digits, human_suppress_point_zero, human_autoscale,
73497         human_base_1024, human_SI, human_B): New constants.
73498         (human_readable_inexact, human_block_size): Remove.
73499         (human_readable): Size args are now uintmax_t, not int.
73500         (human_options): New decl.
73501
73502         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
73503         unnecessary now that we assume C89 or better.  This change
73504         imported from coreutils.
73505
73506         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
73507         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
73508         in the 2003-05-30 sync from glibc.
73509
73510         .h files should stand alone, but we shouldn't include <sys/types.h>
73511         if we can get away with just <stddef.h>.
73512
73513         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
73514         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
73515         rather than <sys/types.h>, as we merely need size_t.
73516         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
73517         to get size_t.
73518         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
73519         Include <stdio.h>, to get FILE.
73520         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
73521         memcasecmp.h has included <stddef.h> and all we need is size_t.
73522         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
73523         our interface, instead of including <sys/types.h>
73524
73525 2003-06-04  Paul Eggert  <eggert@twinsun.com>
73526
73527         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
73528         now, as glibc mktime is buggy on non-glibc systems.
73529
73530 2003-06-03  Karl Berry  <karl@gnu.org>
73531
73532         * config/config.sub: update from prep.
73533
73534 2003-06-02  Paul Eggert  <eggert@twinsun.com>
73535
73536         [from coreutils]
73537         Fix some minor time-related bugs with POSIX time arguments.
73538         Some valid time stamps were being rejected (notably -1, and
73539         time stamps before 1900 on 64-bit hosts).  And some invalid
73540         time stamps were being accepted, e.g. September 31.
73541
73542         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
73543         that we can return (time_t) -1 successfully.
73544         * lib/posixtm.c: Likewise.
73545         [HAVE_STDBOOL_H]: Include <stdbool.h>.
73546         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
73547         (t): Remove static var.
73548         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
73549         of static var.  All uses changed.
73550         (year): Do not reject years before 1900; they can occur with
73551         64-bit time_t.
73552         (posix_time_parse): Do not check for out-of-range components;
73553         that is now the caller's responsibility, since our checks were
73554         only approximations.
73555         (posixtime): Use mktime to check for out-of-range components,
73556         since it knows them exactly.
73557         If mktime returns (time_t) -1, check whether an error actually occurred
73558         by invoking localtime on -1.
73559         (main) [TEST_POSIXTIME]: Check for input data errors, and report
73560         posixtime failures better.
73561         Improve the test data (in comments only).
73562
73563 2003-06-02  Karl Berry  <karl@gnu.org>
73564
73565         * config/mkinstalldirs (version): new variable.
73566         (--version): new option.
73567         (usage): improve message.
73568
73569 2003-05-30  Karl Berry  <karl@gnu.org>
73570
73571         * lib/mktime.c: update from libc.
73572
73573 2003-05-30  Bruno Haible  <bruno@clisp.org>
73574
73575         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
73576         * config/config.rpath: Upgrade to gettext-0.12.1.
73577
73578 2003-05-30  Bruno Haible  <bruno@clisp.org>
73579
73580         * m4/gettext.m4: Upgrade to gettext-0.12.1.
73581         * m4/nls.m4: New file, from gettext-0.12.1.
73582         * m4/po.m4: New file, from gettext-0.12.1.
73583         * m4/progtest.m4: Upgrade to gettext-0.12.1.
73584
73585 2003-05-30  Bruno Haible  <bruno@clisp.org>
73586
73587         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
73588         * lib/localcharset.h: Likewise.
73589         * lib/localcharset.c: Likewise.
73590
73591 2003-05-29  Karl Berry  <karl@gnu.org>
73592
73593         * config/config.rpath: update from gettext.
73594
73595 2003-05-28  Paul Eggert  <eggert@twinsun.com>
73596
73597         Assume the headers required for C89 freestanding compilers.
73598         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
73599         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
73600         * m4/human.m4 (gl_HUMAN): Likewise.
73601         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
73602         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
73603         * m4/userspec.m4 (gl_USERSPEC): Likewise.
73604         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
73605         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73606         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
73607
73608 2003-05-28  Paul Eggert  <eggert@twinsun.com>
73609
73610         Assume the headers required for C89 freestanding compilers.
73611         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
73612         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
73613         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
73614         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
73615         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
73616         define, since <limits.h> is guaranteed to do that.
73617         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
73618         * lib/exclude.c: Include <stdbool.h> unconditionally.
73619         * lib/tempname.c: Include <stddef.h> unconditionally.
73620         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
73621         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
73622         <stddef.h> does that.
73623         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
73624         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
73625         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
73626         needed.
73627         * lib/xstrtol.c: Likewise.
73628         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
73629         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
73630
73631         * lib/addext.c (addext): Use assignment rather than cast, to avoid
73632         warnings on some platforms.
73633
73634         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
73635         arbitrarily.
73636
73637 2003-05-26  Jim Meyering  <jim@meyering.net>
73638
73639         Merge in a change from coreutils:
73640         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
73641         that is guaranteed to be `no'.  Use `no_such_member' to indicate
73642         that condition, rather than `-1' which is slightly misleading.
73643         Change the name of the cache variable to have the gl_ prefix.
73644         Prompted by a patch from Richard Dawe for DJGPP.
73645
73646 2003-05-24  Karl Berry  <karl@gnu.org>
73647
73648         * config/config.guess: update from prep.
73649
73650 2003-05-22  Karl Berry  <karl@gnu.org>
73651
73652         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
73653
73654 2003-05-20  Karl Berry  <karl@gnu.org>
73655
73656         * config/config.guess: update from prep.
73657
73658 2003-05-18  Karl Berry  <karl@gnu.org>
73659
73660         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
73661         might actually be set by the user.
73662
73663         * config/depcomp, install-sh, mdate-sh: update from automake.
73664
73665 2003-05-17  Bruno Haible  <bruno@clisp.org>
73666
73667         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
73668         invalid expansion for AC_EGREP_CPP.
73669         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
73670         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
73671         Suggested by Akim Demaille <akim@epita.fr> in
73672         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
73673
73674 2003-05-12  Jim Meyering  <jim@meyering.net>
73675
73676         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
73677         the space-padded-by-default conversion specifiers, %e, %k, %l.
73678
73679 2003-05-12  Bruno Haible  <bruno@clisp.org>
73680
73681         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
73682         the string is longer than 4 KB.
73683
73684 2003-05-11  Karl Berry  <karl@gnu.org>
73685
73686         * config/config.{guess,sub}: update from prep.
73687
73688 2003-05-09  Bruno Haible  <bruno@clisp.org>
73689
73690         * modules/error: Add m4/strerror_r.m4 to file list.
73691
73692 2003-05-03  Bruno Haible  <bruno@clisp.org>
73693
73694         Upgrade to Unicode-4.0.
73695         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
73696         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
73697         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
73698         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
73699         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
73700         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
73701         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
73702         Change width of U+E0100..U+E01EF from 1 to 0.
73703
73704 2003-04-25  Jim Meyering  <jim@meyering.net>
73705
73706         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
73707         of type size_t, not int.
73708
73709 2003-04-25  Bruno Haible  <bruno@clisp.org>
73710
73711         * lib/copy-file.c: Include <stddef.h>, for size_t.
73712
73713 2003-04-21  Paul Eggert  <eggert@twinsun.com>
73714
73715         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
73716         code which expansion is under static control.  Patch imported from
73717         Akim Demaille's patch to Bison; see
73718         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
73719
73720 2003-04-14  Bruno Haible  <bruno@clisp.org>
73721
73722         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
73723
73724 2003-04-11  Jim Meyering  <jim@meyering.net>
73725
73726         Merge changes from Coreutils.
73727
73728         2003-03-22  Jim Meyering  <jim@meyering.net>
73729
73730         * lib/strftime.c (widen): Cast alloca return value to proper type.
73731
73732         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
73733
73734         From GNU libc.
73735         * lib/strftime.c (my_strftime): Handle very large width
73736         specifications for numeric values correctly.  Improve checks for
73737         overflow.
73738
73739         2003-01-19  Jim Meyering  <jim@meyering.net>
73740
73741         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
73742         definitions.
73743         (nl_get_alt_digit) [! defined my_strftime]: Define.
73744         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
73745         _nl_get_alt_digit and _nl_get_walt_digit.
73746
73747         * lib/strftime.c (my_strftime): Merge in locale-related changes from
73748         libc. These changes have no effect outside of _LIBC.
73749
73750 2003-04-10  Bruno Haible  <bruno@clisp.org>
73751
73752         * modules/findprog: New file.
73753         * MODULES.html.sh (func_all_modules): Add it.
73754
73755 2003-04-10  Bruno Haible  <bruno@clisp.org>
73756
73757         * m4/findprog.m4: New file.
73758         * m4/eaccess.m4: New file.
73759
73760 2003-04-10  Bruno Haible  <bruno@clisp.org>
73761
73762         * lib/findprog.h: New file, from GNU gettext.
73763         * lib/findprog.c: New file, from GNU gettext.
73764
73765 2003-04-05  Jim Meyering  <jim@meyering.net>
73766
73767         Merge changes from Coreutils.
73768
73769         * lib/exclude.h (PARAMS): Remove definition and uses.
73770         * lib/exclude.c: Remove uses of `PARAMS'.
73771
73772         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
73773         Add test-cases for DOS filenames. Declare program_name.
73774         (main): Set up program_name.  Patch by Rich Dawe.
73775
73776         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
73777         error from mntctl.
73778         Use mntctl's return value to drive the entry-processing loop, since
73779         we can't rely on the value of the vmt_length member in the last
73780         entry.  On some systems doing so could result in exhausting
73781         virtual memory.  Based in part on a patch from Mike Jetzer.
73782
73783 2003-04-04  Bruno Haible  <bruno@clisp.org>
73784
73785         * modules/linebreak: New file.
73786         * MODULES.html.sh (func_all_modules): Add it.
73787
73788 2003-04-04  Bruno Haible  <bruno@clisp.org>
73789
73790         * m4/linebreak.m4: New file.
73791
73792 2003-04-04  Bruno Haible  <bruno@clisp.org>
73793
73794         * lib/linebreak.h: New file, from GNU gettext.
73795         * lib/linebreak.c: New file, from GNU gettext with slight
73796         modifications.
73797         * lib/lbrkprop.h: New file, from GNU gettext.
73798
73799 2003-04-03  Bruno Haible  <bruno@clisp.org>
73800
73801         * modules/utf8-ucs4: New file.
73802         * modules/utf16-ucs4: New file.
73803         * modules/ucs4-utf8: New file.
73804         * modules/ucs4-utf16: New file.
73805         * MODULES.html.sh (func_all_modules): Add them.
73806
73807 2003-04-03  Bruno Haible  <bruno@clisp.org>
73808
73809         * m4/utf-ucs4.m4: New file.
73810         * m4/ucs4-utf.m4: New file.
73811
73812 2003-04-03  Bruno Haible  <bruno@clisp.org>
73813
73814         * lib/utf8-ucs4.h: New file, from GNU gettext.
73815         * lib/utf16-ucs4.h: New file, from GNU gettext.
73816         * lib/ucs4-utf8.h: New file, from GNU gettext.
73817         * lib/ucs4-utf16.h: New file, from GNU gettext.
73818
73819 2003-04-02  Bruno Haible  <bruno@clisp.org>
73820
73821         * modules/binary-io: New file.
73822         * MODULES.html.sh (func_all_modules): Add it.
73823
73824 2003-04-02  Bruno Haible  <bruno@clisp.org>
73825
73826         * lib/binary-io.h: New file, from GNU gettext.
73827
73828 2003-04-01  Bruno Haible  <bruno@clisp.org>
73829
73830         * modules/pathname: New file.
73831         * MODULES.html.sh (func_all_modules): Add it.
73832
73833 2003-04-01  Bruno Haible  <bruno@clisp.org>
73834
73835         * lib/pathname.h: New file, from GNU gettext.
73836         * lib/concatpath.c: New file, from GNU gettext.
73837
73838 2003-03-30  Bruno Haible  <bruno@clisp.org>
73839
73840         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
73841
73842 2003-03-30  Bruno Haible  <bruno@clisp.org>
73843
73844         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
73845         function chown() doesn't exist.
73846
73847 2003-03-28  Bruno Haible  <bruno@clisp.org>
73848
73849         * modules/copy-file: New file.
73850         * MODULES.html.sh (func_all_modules): Add it.
73851
73852 2003-03-28  Bruno Haible  <bruno@clisp.org>
73853
73854         * m4/copy-file.m4: New file.
73855
73856 2003-03-28  Bruno Haible  <bruno@clisp.org>
73857
73858         * lib/copy-file.h: New file, from GNU gettext.
73859         * lib/copy-file.c: New file, from GNU gettext.
73860
73861 2003-03-18  Jim Meyering  <jim@meyering.net>
73862
73863         * lib/quote.c (quote_n): Fix typo in comment.
73864
73865 2003-03-18  Bruno Haible  <bruno@clisp.org>
73866
73867         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
73868         checking.
73869         * m4/onceonly_2_57.m4: Likewise.
73870
73871 2003-03-17  Bruno Haible  <bruno@clisp.org>
73872
73873         * m4/onceonly.m4: Require autoconf 2.54 or newer.
73874         (m4_quote): Remove macro.
73875         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
73876
73877 2003-03-14  Jim Meyering  <jim@meyering.net>
73878
73879         Merge changes from Coreutils.
73880         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
73881         to be const, in order to avoid warnings.
73882         (obstack_room): Likewise.
73883         (obstack_empty_p): Likewise.
73884
73885 2003-03-14  Bruno Haible  <bruno@clisp.org>
73886
73887         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
73888         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
73889
73890 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73891
73892         Merge changes from Bison.
73893         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
73894         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
73895         when compiling Bison 1.875's `bitset bset = obstack_alloc
73896         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
73897         * lib/hash.c: Include <stdbool.h> unconditionally.
73898
73899 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73900
73901         * m4/onceonly.m4 (m4_quote): New macro.
73902         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
73903         Quote AC_FOREACH variable-expansions properly.
73904
73905 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73906
73907         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
73908
73909 2003-03-09  Paul Eggert  <eggert@twinsun.com>
73910
73911         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
73912         Reported by Bruce Becker; see:
73913         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
73914
73915 2003-03-03  Paul Eggert  <eggert@twinsun.com>
73916             Bruno Haible  <bruno@clisp.org>
73917
73918         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
73919         Reported by John Hughes, see
73920         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
73921
73922 2003-02-20  Bruno Haible  <bruno@clisp.org>
73923
73924         * MODULES.html.sh (func_all_modules): Add poll.
73925
73926 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73927
73928         * modules/poll: New file.
73929
73930 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73931
73932         * lib/poll_.h: New file.
73933         * lib/poll.c: New file.
73934
73935 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73936
73937         * m4/poll.m4: New file.
73938
73939 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73940
73941         * modules/mathl: New file.
73942
73943 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73944
73945         * lib/mathl.h: New file.
73946         * lib/acosl.c: New file.
73947         * lib/asinl.c: New file.
73948         * lib/atanl.c: New file.
73949         * lib/ceill.c: New file.
73950         * lib/cosl.c: New file.
73951         * lib/expl.c: New file.
73952         * lib/floorl.c: New file.
73953         * lib/frexpl.c: New file.
73954         * lib/ldexpl.c: New file.
73955         * lib/logl.c: New file.
73956         * lib/sincosl.c: New file.
73957         * lib/sinl.c: New file.
73958         * lib/sqrtl.c: New file.
73959         * lib/tanl.c: New file.
73960         * lib/trigl.c: New file.
73961         * lib/trigl.h: New file.
73962
73963 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73964
73965         * m4/mathl.m4: New file.
73966
73967 2003-02-18  Bruno Haible  <bruno@clisp.org>
73968
73969         * MODULES.html.sh (func_all_modules): Add mathl.
73970
73971 2003-02-17  Bruno Haible  <bruno@clisp.org>
73972
73973         * modules/mkdtemp: New module.
73974         * MODULES.html.sh (func_all_modules): Add it.
73975
73976 2003-02-17  Bruno Haible  <bruno@clisp.org>
73977
73978         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
73979
73980 2003-02-17  Bruno Haible  <bruno@clisp.org>
73981
73982         * lib/mkdtemp.h: New file, from GNU gettext.
73983         * lib/mkdtemp.c: New file, from GNU gettext.
73984
73985 2003-02-02  Jim Meyering  <jim@meyering.net>
73986
73987         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
73988         e.g. glibc-2.2.93.
73989
73990 2003-01-31  Bruno Haible  <bruno@clisp.org>
73991
73992         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
73993         'rpl_rename'.
73994         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
73995         'rpl_strnlen'.
73996         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
73997         'rpl_strtod'.
73998         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
73999         'rpl_utime'.
74000
74001 2003-01-31  Bruno Haible  <bruno@clisp.org>
74002
74003         * lib/rename.c: #undef rename before defining rpl_rename.
74004         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
74005
74006 2003-01-30  Bruno Haible  <bruno@clisp.org>
74007
74008         * modules/vasnprintf, modules/vasprintf: New modules.
74009         * MODULES.html.sh (func_all_modules): Add them.
74010
74011 2003-01-30  Bruno Haible  <bruno@clisp.org>
74012
74013         * m4/signed.m4: New file, from GNU gettext.
74014         * m4/longdouble.m4: New file, from GNU gettext.
74015         * m4/wchar_t.m4: New file, from GNU gettext.
74016         * m4/wint_t.m4: New file, from GNU gettext.
74017         * m4/vasnprintf.m4: New file.
74018         * m4/vasprintf.m4: New file.
74019
74020 2003-01-30  Bruno Haible  <bruno@clisp.org>
74021
74022         * lib/printf-args.h: New file, from GNU gettext.
74023         * lib/printf-args.c: New file, from GNU gettext.
74024         * lib/printf-parse.h: New file, from GNU gettext.
74025         * lib/printf-parse.c: New file, from GNU gettext.
74026         * lib/vasnprintf.h: New file, from GNU gettext.
74027         * lib/vasnprintf.c: New file, from GNU gettext.
74028         * lib/asnprintf.c: New file, from GNU gettext.
74029         * lib/vasprintf.h: New file, from GNU gettext with modifications.
74030         * lib/vasprintf.c: New file, from GNU gettext.
74031         * lib/asprintf.c: New file, from GNU gettext.
74032
74033 2003-01-29  Bruno Haible  <bruno@clisp.org>
74034
74035         * modules/stpncpy: New module.
74036         * MODULES.html.sh (func_all_modules): Add it.
74037
74038 2003-01-29  Bruno Haible  <bruno@clisp.org>
74039
74040         * m4/stpncpy.m4: New file.
74041
74042 2003-01-29  Bruno Haible  <bruno@clisp.org>
74043
74044         * lib/stpncpy.h: New file, from GNU gettext with modifications.
74045         * lib/stpncpy.c: New file, from GNU gettext with modifications.
74046
74047 2003-01-28  Bruno Haible  <bruno@clisp.org>
74048
74049         * modules/c-ctype: New module.
74050         * MODULES.html.sh (func_all_modules): Add it.
74051
74052 2003-01-28  Bruno Haible  <bruno@clisp.org>
74053
74054         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
74055         Paul Eggert.
74056         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
74057         Paul Eggert.
74058
74059 2003-01-27  Bruno Haible  <bruno@clisp.org>
74060
74061         * modules/xsetenv: New module.
74062         * MODULES.html.sh (func_all_modules): Add it.
74063
74064 2003-01-27  Bruno Haible  <bruno@clisp.org>
74065
74066         * lib/xsetenv.h: New file, from GNU gettext.
74067         * lib/xsetenv.c: New file, from GNU gettext.
74068
74069 2003-01-23  Jim Meyering  <jim@meyering.net>
74070
74071         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
74072         from working on systems without dirfd (at least Irix and OSF1/Tru64).
74073
74074 2003-01-23  Bruno Haible  <bruno@clisp.org>
74075
74076         * modules/minmax: New module.
74077         * MODULES.html.sh (func_all_modules): Add it.
74078
74079 2003-01-23  Bruno Haible  <bruno@clisp.org>
74080
74081         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
74082         Eggert.
74083
74084 2003-01-22  Bruno Haible  <bruno@clisp.org>
74085
74086         * modules/exit: New module.
74087         * MODULES.html.sh (func_all_modules): Add it.
74088
74089 2003-01-22  Bruno Haible  <bruno@clisp.org>
74090
74091         * lib/exit.h: New file, from GNU gettext.
74092
74093 2003-01-19  Bruno Haible  <bruno@clisp.org>
74094
74095         * gnulib-tool: Recognize option --extract-maintainer.
74096         (func_get_maintainer): New function.
74097         * modules/*: Add Maintainer entry.
74098
74099 2003-01-16  Jim Meyering  <jim@meyering.net>
74100
74101         * m4/regex.m4: The `regex' struct is both input and output.
74102         Initialize it before each use.  Patch by Tim Waugh.
74103
74104 2003-01-16  Bruno Haible  <bruno@clisp.org>
74105
74106         * MODULES.html.sh: Add a table of contents. Add the module name as
74107         leftmost column. Add hyperlinks.
74108
74109 2003-01-15  Bruno Haible  <bruno@clisp.org>
74110
74111         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
74112
74113 2003-01-15  Bruno Haible  <bruno@clisp.org>
74114
74115         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
74116         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
74117         suffix.
74118
74119 2003-01-15  Bruno Haible  <bruno@clisp.org>
74120
74121         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
74122
74123 2003-01-15  Bruno Haible  <bruno@clisp.org>
74124
74125         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
74126         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
74127
74128 2003-01-14  Jim Meyering  <jim@meyering.net>
74129
74130         * lib/same.c (same_name): Tweak a comment.
74131
74132 2003-01-14  Bruno Haible  <bruno@clisp.org>
74133
74134         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
74135         when a string comparison is sufficient.
74136
74137 2003-01-14  Bruno Haible  <bruno@clisp.org>
74138
74139         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
74140         'unsigned int'.
74141
74142 2003-01-14  Bruno Haible  <bruno@clisp.org>
74143
74144         * lib/hash-pjw.c: Add comment about low quality of this function.
74145
74146 2003-01-13  Bruno Haible  <bruno@clisp.org>
74147
74148         * modules/stpcpy: Distribute lib/stpcpy.h.
74149         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
74150
74151 2003-01-13  Bruno Haible  <bruno@clisp.org>
74152
74153         * modules/*: Add a description.
74154         * modules/strpbrk: Fix Makefile.am snippet.
74155         * modules/strtoimax: Fix dependencies.
74156         * modules/strtoumax: Likewise.
74157
74158 2003-01-13  Bruno Haible  <bruno@clisp.org>
74159
74160         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
74161         * modules/alloca (Makefile.am): All object files depend on alloca.h.
74162         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
74163
74164 2003-01-13  Bruno Haible  <bruno@clisp.org>
74165
74166         * gnulib-tool (func_create_testdir): Store config/* files in the main
74167         directory.
74168         * config.rpath: Move to ...
74169         * config/config.rpath: ... here.
74170         * modules/gettext: Contains config/config.rpath, not config.rpath.
74171         * modules/iconv: Likewise.
74172
74173 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74174
74175         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74176         to avoid collisions with libcurses and libreadline.
74177
74178         * m4/getstr.m4: Remove.
74179         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
74180
74181 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74182
74183         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74184         to avoid collisions with libcurses and libreadline.
74185
74186         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
74187         * lib/getstr.h, getstr.c: Remove.
74188         * lib/getline.c: Include "getline.h", to check interface.
74189         Move body of old getstr.c here: this defines MIN_CHUNK and
74190         declares getdelim2, which is renamed from getstr.
74191         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
74192
74193         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
74194         All uses changed.
74195         * lib/linebuffer.h: Likewise.
74196         (readline): Remove backward-compatibility macro.
74197
74198 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74199
74200         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74201         to avoid collisions with libcurses and libreadline.
74202         * getstr: Remove.
74203         * MODULES.html.sh: Remove getstr.
74204         * modules/getline: Depend on unlocked-io, not getstr.
74205
74206 2003-01-12  Jim Meyering  <jim@meyering.net>
74207
74208         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
74209
74210 2003-01-10  Bruno Haible  <bruno@clisp.org>
74211
74212         * modules/alloca: Change Makefile.am requirements. Simplify Include
74213         requirements. Add lib/alloca_.h to file list.
74214
74215 2003-01-10  Bruno Haible  <bruno@clisp.org>
74216
74217         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
74218
74219 2003-01-10  Bruno Haible  <bruno@clisp.org>
74220
74221         * lib/alloca_.h: New file.
74222         * lib/getdate.y: Unconditionally include alloca.h.
74223         * lib/makepath.c: Likewise.
74224         * lib/setenv.c: Likewise.
74225         * lib/userspec.c: Likewise.
74226
74227 2003-01-09  Karl Berry  <karl@gnu.org>
74228
74229         * MODULES.html.sh: include `dirname $0` in PATH, to find
74230         gnulib-tool.
74231
74232 2003-01-09  Bruno Haible  <bruno@clisp.org>
74233
74234         * modules/stdbool: Change configure.ac, Makefile.am requirements.
74235         Simplify Include requirements. Add lib/stdbool.h.in to file list.
74236
74237 2003-01-09  Bruno Haible  <bruno@clisp.org>
74238
74239         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
74240
74241 2003-01-09  Bruno Haible  <bruno@clisp.org>
74242
74243         * lib/stdbool.h.in: New file.
74244
74245 2003-01-09  Bruno Haible  <bruno@clisp.org>
74246
74247         * gnulib-tool (func_all_modules): Ignore files ending in ~.
74248         * MODULES.html.sh: Likewise.
74249
74250 2003-01-08  Jim Meyering  <jim@meyering.net>
74251
74252         * lib/full-write.c: Undefine and define-away `const' after inclusion
74253         of errno.h, not before.  Suggestion from Bruno Haible.
74254
74255 2003-01-08  Bruno Haible  <bruno@clisp.org>
74256
74257         * modules/full-read: Depend on full-write.
74258
74259 2003-01-08  Bruno Haible  <bruno@clisp.org>
74260
74261         * lib/safe-read.c: Include specification header first, to ensure its
74262         selfcontainedness.
74263         * lib/full-write.c: Likewise.
74264
74265 2003-01-07  Jim Meyering  <jim@meyering.net>
74266
74267         * lib/full-write.c: Rework so that it may serve to define full_read,
74268         too.
74269         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
74270
74271 2003-01-07  Bruno Haible  <bruno@clisp.org>
74272
74273         * lib/strtoimax.c: Include <stdint.h> as an alternative to
74274         <inttypes.h>.
74275         * lib/xstrtol.h: Likewise.
74276         * lib/xstrtoimax.c: Likewise.
74277         * lib/xstrtoumax.c: Likewise.
74278         * lib/human.h: Likewise.
74279
74280         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
74281         on systems that have <inttypes.h> but not <stdint.h>.
74282
74283 2003-01-07  Bruno Haible  <bruno@clisp.org>
74284
74285         * MODULES.html.sh: Add copyright notice.
74286         (missed_files): Omit CVS directory entries.
74287         (func_module): Make it work with sed-3.02.
74288         * MODULES.txt: Remove file.
74289
74290 2003-01-06  Jim Meyering  <jim@meyering.net>
74291
74292         * lib/version-etc.c: Update year in translatable copyright string.
74293
74294 2003-01-03  Karl Berry  <karl@gnu.org>
74295
74296         * config/config.{guess,sub}: update from prep.
74297
74298 2003-01-02  Karl Berry  <karl@gnu.org>
74299
74300         * doc/COPYING.DOC: belatedly updated to 1.2.
74301
74302 2003-01-01  Karl Berry  <karl@gnu.org>
74303
74304         * gnulib-tool (func_verify_module): report module name $module in
74305         error message, not $1.
74306         * gnulib-tool (create-testdir): don't complain if destdir couldn't
74307         be created, only if it doesn't exist.
74308         * gnulib-tool (last_checkin_date): don't expand the $Date here.
74309
74310 2002-12-31  Paul Eggert  <eggert@twinsun.com>
74311
74312         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
74313
74314 2002-12-31  Paul Eggert  <eggert@twinsun.com>
74315
74316         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
74317         memcmp if strcoll doesn't work.
74318
74319 2002-12-31  Bruno Haible  <bruno@clisp.org>
74320
74321         * lib/utime.c (utime_null): No need to call ftruncate if the file was
74322         nonempty.
74323
74324 2002-12-31  Bruno Haible  <bruno@clisp.org>
74325
74326         * lib/memcoll.c (STRCOLL): New macro.
74327         (memcoll): Use it.
74328
74329 2002-12-31  Bruno Haible  <bruno@clisp.org>
74330
74331         * lib/localcharset.h: New file.
74332         * lib/localcharset.c: Include it.
74333         * lib/unicodeio.c: Likewise.
74334
74335 2002-12-31  Bruno Haible  <bruno@clisp.org>
74336
74337         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
74338         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
74339
74340 2002-12-31  Bruno Haible  <bruno@clisp.org>
74341
74342         * lib/getline.h: Include <stddef.h>, for size_t.
74343
74344         * lib/unicodeio.h: Include <stddef.h>, for size_t.
74345         * lib/unicodeio.c: Don't include <stddef.h>.
74346
74347 2002-12-31  Bruno Haible  <bruno@clisp.org>
74348
74349         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
74350         HAVE_TM_ZONE.
74351
74352 2002-12-24  Karl Berry  <karl@gnu.org>
74353
74354         * config/config.guess: update from prep.
74355
74356 2002-12-24  Bruno Haible  <bruno@clisp.org>
74357
74358         General infrasructure.
74359         * m4/README: Rewritten.
74360         * m4/onceonly.m4: New file.
74361         * m4/onceonly_2_57.m4: New file.
74362
74363         Module atexit.
74364         * m4/atexit.m4: New file.
74365
74366         Module strtod.
74367         * m4/strtod.m4: New file.
74368
74369         Module strtol.
74370         * m4/strtol.m4: New file.
74371
74372         Module strtoul.
74373         * m4/strtoul.m4: New file.
74374
74375         Module memchr.
74376         * m4/memchr.m4: New file.
74377
74378         Module memcmp.
74379         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
74380         (jm_FUNC_MEMCMP): Invoke it.
74381
74382         Module memcpy.
74383         * m4/memcpy.m4: New file.
74384
74385         Module memmove.
74386         * m4/memmove.m4: New file.
74387
74388         Module memset.
74389         * m4/memset.m4: New file.
74390
74391         Module strcspn.
74392         * m4/strcspn.m4: New file.
74393
74394         Module strpbrk.
74395         * m4/strpbrk.m4: New file.
74396
74397         Module strstr.
74398         * m4/strstr.m4: New file.
74399
74400         Module strerror.
74401         * m4/strerror.m4: New file.
74402
74403         Module mktime.
74404         * m4/mktime.m4: Renamed from jm-mktime.m4.
74405         (gl_PREREQ_MKTIME): New macro.
74406         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
74407
74408         Module malloc.
74409         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
74410         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
74411         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
74412
74413         Module realloc.
74414         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
74415         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
74416         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
74417
74418         Module strftime.
74419         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
74420         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
74421         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
74422         gl_TM_GMTOFF.
74423         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
74424
74425         Module xalloc.
74426         * m4/xalloc.m4: New file.
74427
74428         Module alloca.
74429         * m4/alloca.m4: New file.
74430
74431         Module putenv.
74432         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
74433         (jm_FUNC_PUTENV): Invoke it.
74434
74435         Module setenv.
74436         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
74437         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
74438         when invoked twice.
74439         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
74440         gt_FUNC_SETENV.
74441
74442         Module memrchr.
74443         * m4/memrchr.m4: New file.
74444
74445         Module stpcpy.
74446         * m4/stpcpy.m4: New file.
74447
74448         Module strcase.
74449         * m4/strcase.m4: New file.
74450
74451         Module strdup.
74452         * m4/strdup.m4: New file.
74453
74454         Module strnlen.
74455         * m4/strnlen.m4: New file.
74456
74457         Module strndup.
74458         * m4/strndup.m4: New file.
74459
74460         Module xstrtod.
74461         * m4/xstrtod.m4: New file.
74462
74463         Module xstrtol.
74464         * m4/xstrtol.m4: New file.
74465
74466         Module getdate.
74467         * m4/getdate.m4: New file.
74468
74469         Module unlocked-io.
74470         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
74471         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
74472         * m4/jm-glibc-io.m4n: Remove file.
74473
74474         Module long-options.
74475         * m4/long-options.m4: New file.
74476
74477         Module md5.
74478         * m4/md5.m4: New file.
74479
74480         Module sha.
74481         * m4/sha.m4: New file.
74482
74483         Module getstr.
74484         * m4/getstr.m4: New file.
74485
74486         Module getline.
74487         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
74488         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
74489         <sys/types.h>, for size_t. Use the function name gnu_getline, not
74490         simply getline. Infoke gl_PREREQ_GETLINE.
74491
74492         Module obstack.
74493         * m4/obstack.m4: New file.
74494
74495         Module hash.
74496         * m4/hash.m4: New file.
74497
74498         Module readtokens.
74499         * m4/readtokens.m4: New file.
74500
74501         Module strverscmp.
74502         * m4/strverscmp.m4: New file.
74503
74504         Module stdbool.
74505         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
74506         OSF/1.
74507
74508         Module strtoll.
74509         * m4/strtoll.m4: New file.
74510
74511         Module strtoull.
74512         * m4/strtoull.m4: New file.
74513
74514         Module strtoimax.
74515         * m4/strtoimax.m4: New file.
74516
74517         Module strtoumax.
74518         * m4/strtoumax.m4: New file.
74519
74520         Module xstrtoimax.
74521         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
74522         jm_AC_PREREQ_XSTRTOIMAX.
74523         Moved the strtol prerequisites to strtol.m4.
74524         Moved the strtoll prerequisites to strtoll.m4.
74525         Moved the strtoimax prerequisites to strtoimax.m4.
74526
74527         Module xstrtoumax.
74528         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
74529         jm_AC_PREREQ_XSTRTOUMAX.
74530         Moved the strtoul prerequisites to strtoul.m4.
74531         Moved the strtoull prerequisites to strtoull.m4.
74532         Moved the strtoumax prerequisites to strtoumax.m4.
74533
74534         Module chown.
74535         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
74536         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
74537
74538         Module dup2.
74539         * m4/dup2.m4: New file.
74540
74541         Module ftruncate.
74542         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
74543         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
74544
74545         Module getgroups.
74546         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
74547         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
74548
74549         Module gettimeofday.
74550         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
74551         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
74552         gl_PREREQ_GETTIMEOFDAY.
74553
74554         Module mkdir.
74555         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
74556         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
74557
74558         Module mkstemp.
74559         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
74560         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
74561         jm_AC_TYPE_UINTMAX_T.
74562         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
74563
74564         Module stat.
74565         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
74566         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
74567
74568         Module lstat.
74569         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
74570         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
74571
74572         Module timespec.
74573         * m4/timespec.m4 (gl_TIMESPEC): New macro.
74574         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
74575         * m4/st_mtim.m4: Indentation.
74576
74577         Module nanosleep.
74578         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
74579         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
74580         gl_PREREQ_NANOSLEEP.
74581
74582         Module regex.
74583         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
74584         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
74585         (gl_REGEX): New macro.
74586
74587         Module rename.
74588         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
74589         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
74590
74591         Module rmdir.
74592         * m4/rmdir.m4: New file.
74593
74594         Module utime.
74595         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
74596         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
74597         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
74598
74599         Module dirname.
74600         * m4/dirname.m4: New file.
74601
74602         Module getopt.
74603         * m4/getopt.m4: New file.
74604
74605         Module unistd-safer.
74606         * m4/unistd-safer.m4: New file.
74607
74608         Module fnmatch.
74609         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
74610         declaration.
74611         (gl_PREREQ_FNMATCH_EXTRA): New macro.
74612         (gl_FUNC_FNMATCH_POSIX): New macro.
74613         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
74614         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
74615         simply fnmatch.
74616
74617         Module exclude.
74618         * m4/exclude.m4: New file.
74619
74620         Module human.
74621         * m4/human.m4: New file.
74622
74623         Module acl.
74624         * m4/acl.m4: Nop.
74625
74626         Module backupfile.
74627         * m4/backupfile.m4: New file.
74628         * m4/d-ino.m4: Indentation.
74629
74630         Module fsusage.
74631         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
74632         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
74633         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
74634
74635         Module dirfd.
74636         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
74637         requirements.
74638
74639         Module euidaccess.
74640         * m4/euidaccess.m4: New file.
74641
74642         Module file-type.
74643         * m4/file-type.m4: New file.
74644
74645         Module fileblocks.
74646         * m4/fileblocks.m4: New file.
74647
74648         Module filemode.
74649         * m4/filemode.m4: New file.
74650
74651         Module isdir.
74652         * m4/isdir.m4: New file.
74653
74654         Module lchown.
74655         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
74656         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
74657
74658         Module makepath.
74659         * m4/makepath.m4: New file.
74660
74661         Module modechange.
74662         * m4/modechange.m4: New file.
74663
74664         Module mountlist.
74665         * m4/mountlist.m4: New file.
74666         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
74667         Indentation.
74668
74669         Module path-concat.
74670         * m4/path-concat.m4: New file.
74671
74672         Module pathmax.
74673         * m4/pathmax.m4: New file.
74674
74675         Module same.
74676         * m4/same.m4: New file.
74677
74678         Module save-cwd.
74679         * m4/save-cwd.m4: New file.
74680
74681         Module savedir.
74682         * m4/savedir.m4: New file.
74683
74684         Module xgetcwd.
74685         * m4/xgetcwd.m4: New file.
74686         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
74687
74688         Module xreadlink.
74689         * m4/xreadlink.m4: New file.
74690
74691         Module safe-read.
74692         * m4/safe-read.m4: New file.
74693
74694         Module safe-write.
74695         * m4/safe-write.m4: New file.
74696
74697         Module closeout.
74698         * m4/closeout.m4: New file.
74699
74700         Module stdio-safer.
74701         * m4/stdio-safer.m4: New file.
74702
74703         Module getpass.
74704         * m4/getpass.m4: New file.
74705
74706         Module getugroups.
74707         * m4/getugroups.m4: New file.
74708
74709         Module group-member.
74710         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
74711         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
74712
74713         Module idcache.
74714         * m4/idcache.m4: New file.
74715
74716         Module userspec.
74717         * m4/userspec.m4: New file.
74718
74719         Module gettime.
74720         * m4/clock_time.m4: New file.
74721         * m4/gettime.m4: New file.
74722
74723         Module settime.
74724         * m4/settime.m4: New file.
74725
74726         Module posixtm.
74727         * m4/posixtm.m4: New file.
74728
74729         Module gethostname.
74730         * m4/gethostname.m4: New file.
74731
74732         Module canon-host.
74733         * m4/canon-host.m4: New file.
74734
74735         Module gettext.
74736         * m4/codeset.m4: New file, from gettext-0.11.5.
74737         * m4/gettext.m4: New file, from gettext-0.11.5.
74738         * m4/glibc21.m4: New file, from gettext-0.11.5.
74739         * m4/iconv.m4: New file, from gettext-0.11.5.
74740         * m4/intdiv0.m4: New file, from gettext-0.11.5.
74741         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
74742         * m4/inttypes.m4: New file, from gettext-0.11.5.
74743         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
74744         * m4/isc-posix.m4: New file, from gettext-0.11.5.
74745         * m4/lcmessage.m4: New file, from gettext-0.11.5.
74746         * m4/lib-ld.m4: New file, from gettext-0.11.5.
74747         * m4/lib-link.m4: New file, from gettext-0.11.5.
74748         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
74749         * m4/progtest.m4: New file, from gettext-0.11.5.
74750         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
74751         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
74752         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
74753
74754         Module localcharset.
74755         * m4/localcharset.m4: New file.
74756
74757         Module hard-locale.
74758         * m4/hard-locale.m4: New file.
74759
74760         Module mbswidth.
74761         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
74762         onceonly macros.
74763         * m4/mbrtowc.m4: Add comment.
74764
74765         Module memcasecmp.
74766         * m4/memcasecmp.m4: New file.
74767
74768         Module memcoll.
74769         * m4/memcoll.m4: New file.
74770
74771         Module unicodeio.
74772         * m4/unicodeio.m4: New file.
74773
74774         Module rpmatch.
74775         * m4/rpmatch.m4: New file.
74776
74777         Module yesno.
74778         * m4/yesno.m4: New file.
74779
74780         Module exitfail.
74781         * m4/exitfail.m4: New file.
74782
74783         Module c-stack.
74784         * m4/c-stack.m4 (gl_C_STACK): New macro.
74785         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
74786
74787         Module error.
74788         * m4/error.m4 (gl_ERROR): New macro.
74789         (jm_PREREQ_ERROR): Use onceonly macros.
74790
74791         Module fatal.
74792         * m4/fatal.m4: New file.
74793
74794         Module getloadavg.
74795         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
74796         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
74797
74798         Module getpagesize.
74799         * m4/getpagesize.m4: New file.
74800
74801         Module getusershell.
74802         * m4/getusershell.m4: New file.
74803
74804         Module physmem.
74805         * m4/physmem.m4: New file.
74806
74807         Module posixver.
74808         * m4/posixver.m4: New file.
74809
74810         Module quotearg.
74811         * m4/quotearg.m4: New file.
74812
74813         Module quote.
74814         * m4/quote.m4: New file.
74815
74816         Module readutmp.
74817         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
74818
74819         Module sig2str.
74820         * m4/sig2str.m4: New file.
74821
74822         Other.
74823         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
74824         ulonglong.m4.
74825         * m4/intmax_t.m4: New file.
74826         * m4/d-type.m4: Indentation.
74827         * m4/jm-macros.m4: Update.
74828         * m4/prereq.m4 (jm_PREREQ): Update.
74829         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
74830         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
74831         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
74832         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
74833         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
74834         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
74835         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
74836         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
74837         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
74838         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
74839         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
74840         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
74841         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
74842         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
74843         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
74844         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
74845         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
74846         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
74847         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
74848
74849 2002-12-24  Bruno Haible  <bruno@clisp.org>
74850
74851         * MODULES.txt: Update according to m4/ changes.
74852
74853         Module gettext.
74854         * config.rpath: New file, from gettext-0.11.5.
74855
74856         * modules/*: New module descriptions.
74857         * gnulib-tool: New file.
74858         * MODULES.html.sh: New file.
74859
74860 2002-12-21  Karl Berry  <karl@gnu.org>
74861
74862         * doc/fdl.texi: update to version 1.2.
74863
74864 2002-12-19  Karl Berry  <karl@gnu.org>
74865
74866         * config/config.guess: update from prep.
74867
74868 2002-12-18  Bruno Haible  <bruno@clisp.org>
74869
74870         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
74871         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
74872
74873 2002-12-17  Bruno Haible  <bruno@clisp.org>
74874
74875         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
74876         stdlib.h, string.h.
74877
74878 2002-12-17  Bruno Haible  <bruno@clisp.org>
74879
74880         * lib/canon-host.c (strdup): Remove unused declaration.
74881
74882         * lib/fsusage.c: Include full_read.h.
74883         (get_fs_usage): Use full_read instead of safe_read.
74884
74885         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
74886
74887 2002-12-12  Karl Berry  <karl@gnu.org>
74888
74889         * config/config.guess: update from prep.
74890
74891 2002-12-11  Bruno Haible  <bruno@clisp.org>
74892
74893         * m4/setenv.m4: New file, from gettext-0.11.5.
74894
74895 2002-12-11  Bruno Haible  <bruno@clisp.org>
74896
74897         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
74898         not unsetenv().
74899         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
74900         modifications:
74901
74902         2002-12-11  Bruno Haible  <bruno@clisp.org>
74903
74904                 * setenv.c (alloca): Fall back to malloc.
74905                 (freea): New macro.
74906                 (setenv): Use freea() to free memory allocated with alloca().
74907
74908         2002-11-13  Bruno Haible  <bruno@clisp.org>
74909
74910                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
74911                 function declarations.
74912                 * unsetenv.c (unsetenv): Likewise.
74913
74914         2002-03-04  Bruno Haible  <bruno@clisp.org>
74915
74916                 Portability to AIX 4.3.3.
74917                 * unsetenv.c: New file, extracted from setenv.c.
74918                 * setenv.c: Move the unsetenv() function to unsetenv.c.
74919
74920         2001-12-20  Bruno Haible  <bruno@clisp.org>
74921
74922                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
74923                 use malloc instead. For SunOS 4.
74924
74925         2001-12-11  Bruno Haible  <bruno@clisp.org>
74926
74927                 * setenv.c: Declare alloca.
74928                 (compar_fn_t): New typedef.
74929                 (KNOWN_VALUE, STORE_VALUE): Use it.
74930
74931         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
74932         setenv.h.
74933
74934 2002-12-10  Paul Eggert  <eggert@twinsun.com>
74935
74936         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
74937         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
74938         Choose values that are less likely to collide with system fnmatch
74939         options.
74940         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
74941         defined (e.g., a pure POSIX system).
74942         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
74943         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
74944
74945 2002-12-06  Paul Eggert  <eggert@twinsun.com>
74946
74947         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
74948         a pain in practice to deal with generated m4 files.  This change
74949         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
74950
74951         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
74952         and jm-glibc-io.m4, as they are no longer a special case.
74953         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
74954         kludge and the auto-generation stuff.  Check only whether the
74955         functions are declared, not whether they exist, since older hosts
74956         that don't declare the functions can't use the optimization anyway.
74957
74958 2002-12-06  Jim Meyering  <jim@meyering.net>
74959
74960         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
74961
74962         Merge in changes from libc's misc/error.c, in preparation
74963         for the merge of gnulib's changes back into libc.
74964
74965         * lib/error.c (_): Define only if not already defined.
74966         Move definition to follow all #include directives.
74967         Include unlocked-io.h only if !_LIBC.
74968         [_LIBC]: Include <libio/libioP.h>.
74969         [USE_IN_LIBIO]: Include <libio/iolibio.h>
74970         (fflush): Tweak definition to use INTUSE.
74971         (putc): Define.
74972
74973 2002-12-05  Paul Eggert  <eggert@twinsun.com>
74974
74975         * lib/alloca.c [defined emacs]: Include "lisp.h".
74976         (xalloc_die) [defined emacs]: New macro.
74977         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
74978         [! defined emacs]: Include <xalloc.h>.
74979         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
74980         (pointer): Typedef to POINTER_TYPE *.
74981         (malloc): Remove decl; we now always use xmalloc.
74982         (alloca): Use old-style definition, since Emacs needs this.
74983         Check for arithmetic overflow when computing combined size.
74984
74985 2002-12-04  Paul Eggert  <eggert@twinsun.com>
74986
74987         Do not generate unlocked-io.h automatically, since it's easier to
74988         maintain it by hand.
74989
74990         * lib/unlocked-io.h: New file, from GNU diffutils,
74991         but with proper copyright notice and attribution.
74992         * lib/gen-uio: Remove.
74993         * lib/Makefile.am: Add copyright notice.
74994         (libfetish_a_SOURCES): Add unlocked-io.h.
74995         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
74996         (DISTCLEANFILES, io_functions): Remove macros.
74997         (EXTRA_DIST): Remove gen_uio.
74998         (unlocked-io.h): Remove rule.
74999
75000 2002-12-04  Jim Meyering  <jim@meyering.net>
75001
75002         Reflect the fact that stat.c and lstat.c are no longer generated.
75003         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
75004         (DISTCLEANFILES): Likewise.
75005         (EXTRA_DIST): Likewise.
75006         (all_local): Don't depend on stat.c or lstat.c.
75007         (stat.c, lstat.c): Remove rules.
75008         (EXTRA_DIST): Remove xstat.in.
75009
75010         * lib/xstat.in: Remove file.  Contents moved into stat.c.
75011         * lib/stat.c: New file.  Contents mostly from xstat.in.
75012         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
75013         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
75014
75015         * lib/safe-read.c: Rework so that it may serve to define safe_write,
75016         too.
75017         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
75018
75019 2002-12-03  Jim Meyering  <jim@meyering.net>
75020
75021         * lib/safe-read.c, safe-write.c: Change variable names and comments,
75022         but not semantics, to minimize the differences between these two files.
75023         (safe_read): Change comment to mention SAFE_READ_ERROR.
75024
75025         * lib/safe-read.c (IS_EINTR): Define.
75026         (safe_read): Use IS_EINTR in place of in-function cpp directives.
75027
75028 2002-12-02  Jim Meyering  <jim@meyering.net>
75029
75030         * lib/safe-read.c (EINTR): Define.
75031         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
75032         (INT_MAX): Provide fallback.
75033         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
75034
75035         * lib/safe-read.h (SAFE_READ_ERROR): Define.
75036
75037 2002-12-02  Bruno Haible  <bruno@clisp.org>
75038
75039         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
75040         Define, taken from safe-read.c.
75041         (INT_MAX): Provide fallback.
75042         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
75043         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
75044
75045         * lib/safe-read.c (EINTR): Remove definition.
75046         (safe_read): Don't use EINTR if it is absent.
75047
75048 2002-12-01  Jim Meyering  <jim@meyering.net>
75049
75050         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
75051         zero.
75052         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
75053
75054 2002-11-27  Paul Eggert  <eggert@twinsun.com>
75055
75056         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
75057         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
75058         with `if (! (value < limit)) abort ();', for readability.
75059
75060 2002-11-26  Karl Berry  <karl@gnu.org>
75061
75062         * lib/strdup.c: copy from libc again, with jim's ok.
75063         * lib/.cppi-disable: re-add strdup.c
75064
75065 2002-11-25  Karl Berry  <karl@gnu.org>
75066
75067         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
75068         instead of "strtol.c".
75069
75070 2002-11-25  Karl Berry  <karl@gnu.org>
75071
75072         * config/install-sh: update from automake for variable quoting, $0 in
75073         error msgs, etc.
75074
75075         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
75076         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
75077         entry.
75078
75079 2002-11-25  Jim Meyering  <jim@meyering.net>
75080
75081         * lib/mktime.c: Sync from libc, now that it has the latest fix.
75082
75083 2002-11-24  Karl Berry  <karl@gnu.org>
75084
75085         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
75086         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
75087
75088 2002-11-24  Jim Meyering  <jim@meyering.net>
75089
75090         Update from coreutils:
75091
75092         * lib/mktime.c: Merge in changes from libc.
75093
75094         Avoid a link-time failure on some Linux systems.
75095         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
75096         (otherwise).
75097         (__mon_yday): Declare with the STATIC attribute.
75098         (__mktime_internal): Likewise.
75099         Based on a report from Greg Schafer.
75100
75101 2002-11-23  Jim Meyering  <jim@meyering.net>
75102
75103         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
75104         Use `unsigned', not `int', as type of index.
75105
75106         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
75107
75108         * lib/fsusage.c: Remove unneeded parentheses around operands of
75109         `defined'.
75110
75111 2002-11-22  Paul Eggert  <eggert@twinsun.com>
75112
75113         * lib/quotearg.h: Allow multiple inclusion by surrounding with
75114         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
75115         so that we can be included first.
75116         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
75117         * lib/quotearg.c: Include quotearg.h immediately after config.h.
75118         No need to include stddef.h or sys/types.h any more.
75119         Surround local include files with "", not "<>".
75120         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
75121         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
75122         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
75123         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
75124         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
75125         (ISPRINT): Remove; no longer needed now that we assume C89.
75126
75127         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
75128         Preserve errno.
75129
75130         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
75131         quotearg_char): Use SIZE_MAX rather than
75132         (size_t) -1 when we are talking about "infinity".
75133
75134         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
75135
75136 2002-11-22  Paul Eggert  <eggert@twinsun.com>
75137
75138         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
75139         hint that one should use `if (! x) abort ();' rather than `assert
75140         (x);', and anyway it's one less thing to worry about configuring.
75141         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
75142         hash_rehash, hash_insert): Use abort rather than assert.
75143
75144 2002-11-22  Bruno Haible  <bruno@clisp.org>
75145
75146         * lib/safe-read.h: Assume C89. Add comments.
75147         (safe_read): Change return type to size_t.
75148         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
75149         byte counts > SSIZE_MAX correctly.
75150         * lib/safe-write.h: New file.
75151         * lib/safe-write.c: New file.
75152         * lib/full-read.h: New file.
75153         * lib/full-read.c: New file.
75154         * lib/full-write.h: Assume C89. Add comments.
75155         * lib/full-write.c: Include safe-write.h.
75156         (full_write): Rewritten to use safe_write.
75157         Suggested by Jim Meyering and Paul Eggert.
75158
75159 2002-11-21  Jim Meyering  <jim@meyering.net>
75160
75161         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
75162
75163         Merge in changes from the coreutils.
75164
75165         2002-09-25  Paul Eggert  <eggert@twinsun.com>
75166         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
75167         <stdint.h>.
75168         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
75169         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
75170         int.  Work more efficiently if X is the same width as uintmax_t.
75171         Do not compare X to -1, to avoid bogus compiler warning.
75172         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
75173         Don't assume that f_frsize and f_bsize are the same type.
75174
75175         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
75176         warning on FreeBSD.
75177
75178         * lib/makepath.c (make_path): Restore umask *before* creating the final
75179         component.
75180         (make_path): Minor reformatting.
75181
75182         * lib/xmalloc.c: Adjust to work with new autoconf macros,
75183         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
75184         HAVE_MALLOC/HAVE_REALLOC.
75185
75186         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
75187         dummy ones.  At least on GNU/Linux systems, `auto' means something
75188         else.
75189         From Michael Stone.
75190
75191 2002-11-21  Bruno Haible  <bruno@clisp.org>
75192
75193         Remove case insensitive option matching.
75194         * lib/argmatch.h (argcasematch): Remove declaration.
75195         (ARGCASEMATCH): Remove macro.
75196         (__xargmatch_internal): Remove case_sensitive argument.
75197         (XARGMATCH): Update.
75198         (XARGCASEMATCH): Remove macro.
75199         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
75200         case_sensitive argument.
75201         (argcasematch): Remove function.
75202         (__xargmatch_internal): Remove case_sensitive argument.
75203         (main): Use XARGMATCH instead of XARGCASEMATCH.
75204
75205         * lib/xmalloc.c: Change compile-time error message. Add comment about
75206         required autoconf version.
75207
75208 2002-11-20  Paul Eggert  <eggert@twinsun.com>
75209
75210         Merge argmatch cleanups from Bison.  Assume C89.
75211
75212         * lib/argmatch.c: Include config.h here, not in argmatch.h.
75213         Include stdlib.h, for EXIT_FAILURE.
75214         Always include <string.h>, since we assume C89.
75215         (EXIT_FAILURE): Remove pre-C89 bug workaround.
75216         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
75217         Include <stddef.h> instead, since it's all we need for size_t.
75218         (PARAMS): Remove.  All uses removed.
75219         (ARRAY_CARDINALITY): Do not bother to #undef.
75220         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
75221         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
75222         Remove unnecessary parentheses.
75223         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
75224         Insert necessary parentheses.
75225         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
75226         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
75227
75228 2002-11-19  Bruno Haible  <bruno@clisp.org>
75229
75230         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
75231         * lib/mbswidth.h: Include <stddef.h>, for size_t.
75232
75233         * lib/mbswidth.h (PARAMS): Remove macro.
75234         (mbswidth, mbsnwidth): Use ANSI C function declarations.
75235         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
75236
75237         * lib/gcd.h (PARAMS): Remove macro.
75238         (gcd): Use ANSI C function declarations.
75239         * lib/gcd.c (gcd): Likewise.
75240
75241 2002-11-15  Bruno Haible  <bruno@clisp.org>
75242
75243         * lib/strcspn.c: Include <stddef.h>.
75244         (strcspn): Use ANSI C function declaration. Change return type to
75245         size_t. Use NULL.
75246         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
75247         (strpbrk): Use NULL.
75248         * lib/strpbrk.h (PARAMS): Remove macro.
75249         (strpbrk): Use ANSI C function declaration.
75250         * lib/strstr.c: Don't include <sys/types.h>.
75251         * lib/strstr.h (PARAMS): Remove macro.
75252         (strstr): Use ANSI C function declarations.
75253
75254 2002-11-14  Karl Berry  <karl@gnu.org>
75255
75256         * config/mkinstalldirs: `do' on separate line, instead of
75257         `for var; do'.
75258
75259 2002-11-06  Bruno Haible  <bruno@clisp.org>
75260
75261         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
75262         * lib/gcd.c (gcd): Likewise.
75263
75264 2002-11-05  Bruno Haible  <bruno@clisp.org>
75265
75266         * lib/gcd.h: New file, from gettext-0.11.5.
75267         * lib/gcd.c: New file, from gettext-0.11.5.
75268
75269 2002-11-05  Bruno Haible  <bruno@clisp.org>
75270
75271         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75272         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75273         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75274         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75275
75276         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
75277         <libintl.h>.
75278         * lib/makepath.c: Include gettext.h instead of <locale.h> and
75279         <libintl.h>.
75280
75281         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
75282         * lib/human.c: Include gettext.h instead of <libintl.h>.
75283         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
75284         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
75285         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
75286         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
75287         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
75288         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
75289         (textdomain): Remove definition.
75290         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
75291
75292         * lib/long-options.c: Remove include of <libintl.h> and definition of
75293         _.
75294         * lib/same.c: Remove include of <libintl.h> and definition of _.
75295
75296 2002-11-04  Owen Taylor  <otaylor@redhat.com>
75297
75298         * lib/config.charset: A few additions for Solaris.
75299
75300 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
75301
75302         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
75303         * lib/localcharset.c (locale_charset): Declare as extern "C".
75304
75305 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
75306
75307         * lib/config.charset: msdos in uk_UA uses CP1125.
75308
75309 2002-11-04  Bruno Haible  <bruno@clisp.org>
75310
75311         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
75312         * lib/strcase.h: New file, from GNU gettext-0.11.5.
75313         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
75314         * lib/strstr.h: New file, from GNU gettext-0.11.5.
75315         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
75316
75317 2002-11-04  Bruno Haible  <bruno@clisp.org>
75318
75319         * lib/localcharset.c (locale_charset): Don't return an empty string.
75320
75321 2002-11-04  Bruno Haible  <bruno@clisp.org>
75322
75323         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
75324         aliases.
75325
75326 2002-11-04  Bruno Haible  <bruno@clisp.org>
75327
75328         * lib/config.charset: Update for newest glibc. Add canonical names
75329         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
75330
75331 2002-11-04  Bruno Haible  <bruno@clisp.org>
75332
75333         * lib/config.charset: Add support for NetBSD.
75334
75335 2002-11-04  Bruno Haible  <bruno@clisp.org>
75336
75337         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
75338
75339 2002-11-01  Bruno Haible  <bruno@clisp.org>
75340
75341         * configure.in: Add AC_CONFIG_AUX_DIR call.
75342         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
75343         test/Makefile.
75344         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
75345
75346 2002-09-28  Karl Berry  <karl@gnu.org>
75347
75348         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
75349         installed automake until the next release, since changes have been
75350         made.
75351
75352 2002-09-25  Karl Berry  <karl@gnu.org>
75353
75354         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
75355         * lib/getopt*: copy from libc/posix.
75356         * lib/gettext.h: copy from gettext.
75357         * lib/.cppi-disable: add strdup.c, gettext.h.
75358
75359 2002-09-25  Karl Berry  <karl@gnu.org>
75360
75361         * config/srclist.txt: enable gettext.h check.
75362         * config/config.{guess,sub}: update from prep.
75363         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
75364                 from automake 1.6.3.
75365         See srclist*.
75366
75367 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
75368
75369         * regex.c (PATFETCH): Remove the translating fetch.
75370         (PATFETCH_RAW): Rename to PATFETCH.
75371         (set_image_of_range): New fun.
75372         (SET_RANGE_TABLE_WORK_AREA): Use it.
75373         (regex_compile): Don't translate the pattern chars so eagerly.
75374         Only do it when inserting an `exactn' bytecode or when handling
75375         a char-range.
75376         (mutually_exclusive_p): Avoid empty statement.
75377
75378 2002-07-06  Jim Meyering  <meyering@lucent.com>
75379
75380         * m4/README: Don't mention Makefile.am.in.
75381         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
75382
75383 2002-07-01  Jim Meyering  <meyering@lucent.com>
75384
75385         * lib/c-stack.c: Include sys/time.h.
75386         From Volker Borchert.
75387
75388 2002-06-26  Paul Eggert  <eggert@twinsun.com>
75389
75390         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
75391
75392 2002-06-26  Paul Eggert  <eggert@twinsun.com>
75393
75394         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
75395         New macro.  Use it uniformly instead of
75396         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
75397         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
75398         reported by Vin Shelton.
75399
75400 2002-06-22  Paul Eggert  <eggert@twinsun.com>
75401
75402         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
75403         Do not assume SA_SIGINFO behavior.
75404         Bug reported by Jim Meyering on NetBSD 1.5.2.
75405
75406 2002-06-22  Jim Meyering  <meyering@lucent.com>
75407
75408         * m4/c-stack.m4: New file, from diffutils-2.8.2.
75409         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
75410
75411         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
75412         now that configure.ac uses AC_GNU_SOURCE.
75413         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
75414         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
75415
75416         Update to latest tools.  Suggestions from Paul Eggert.
75417         * m4/stdbool.m4: New file, from diffutils-2.8.2.
75418         * m4/gnu-source.m4: Update from diffutils-2.8.2.
75419         * m4/fnmatch.m4: Likewise.
75420         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
75421         to AC_HEADER_STDBOOL
75422
75423 2002-06-22  Jim Meyering  <meyering@lucent.com>
75424
75425         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
75426         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
75427
75428 2002-06-22  Jim Meyering  <meyering@lucent.com>
75429
75430         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
75431
75432         * lib/exitfail.c, exitfail.h: Likewise.
75433         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
75434
75435         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
75436         of fnmatch.h.
75437         (EXTRA_DIST): Add fnmatch_loop.c.
75438         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
75439
75440         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
75441         * lib/fnmatch.c: Update from diffutils-2.8.2.
75442         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
75443         * lib/fnmatch.h: Remove file.
75444
75445 2002-06-21  Jim Meyering  <meyering@lucent.com>
75446
75447         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
75448         * m4/mbrtowc.m4: Likewise.
75449
75450         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
75451         * m4/mbswidth.m4: Reflect name change:
75452         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
75453         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
75454
75455         * m4/lib-link.m4: Update from gettext-0.11.2.
75456         * m4/gettext.m4: Likewise.
75457
75458         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
75459         From Alfred M. Szmidt.
75460
75461 2002-06-18  Paul Eggert  <eggert@twinsun.com>
75462
75463         * lib/file-type.h: Report an error if neither S_ISREG nor
75464         S_IFREG is defined, instead of using a test specific to glibc
75465         2.2.  This should be safe, since POSIX requires S_ISREG and
75466         Unix Version 7 had S_IFREG.  We don't need to check for
75467         <sys/types.h> since we don't use any symbols that it defines.
75468
75469 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
75470
75471         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
75472         $@-t, so that each temporary file name is unique and valid in the first
75473         8 characters, for operation under DOS.
75474
75475 2002-06-15  Paul Eggert  <eggert@twinsun.com>
75476
75477         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
75478
75479 2002-06-15  Jim Meyering  <meyering@lucent.com>
75480
75481         Work even with DJGPP 2.03, which lacks support for symlinks.
75482         From Richard Dawe.
75483         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
75484         is defined.
75485         * lib/lchown.c (S_ISLNK): Likewise.
75486
75487 2002-06-15  Jim Meyering  <meyering@lucent.com>
75488
75489         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
75490         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
75491         have been included before this file.
75492
75493 2002-06-14  Jim Meyering  <meyering@lucent.com>
75494
75495         * lib/file-type.h: Use the version from diffutils-2.8.2.
75496         * lib/file-type.c: Likewise.
75497
75498 2002-06-07  Jim Meyering  <meyering@lucent.com>
75499
75500         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
75501         They're needed at least for NetBSD 1.5.2.
75502         ($statxfs_includes): Include those same headers.
75503         ($statxfs_includes): Include sys/vfs.h if available.
75504         ($statxfs_includes): Likewise for sys/statvfs.h.
75505         Check for the following members in both structs statfs and statvfs:
75506         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
75507
75508 2002-06-01  Jim Meyering  <meyering@lucent.com>
75509
75510         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
75511         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
75512
75513 2002-05-28  Jim Meyering  <meyering@lucent.com>
75514
75515         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
75516         Reported by Volker Borchert.
75517
75518 2002-05-27  Jim Meyering  <meyering@lucent.com>
75519
75520         Fix a problem seen only on nonconforming systems whereby ls.c's
75521         use of localtime, and then of gettimeofday would cause trouble:
75522         the localtime call used to initialize rpl_gettimeofday's save
75523         mechanism would clobber ls's current local time information so
75524         that in any long listing the first file would always be listed
75525         with date 1970-01-01.  Analysis by Volker Borchert.
75526
75527         * lib/gettimeofday.c (localtime): Undefine.
75528         (rpl_localtime): New function.
75529
75530 2002-05-27  Jim Meyering  <meyering@lucent.com>
75531
75532         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
75533         localtime.
75534
75535         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
75536         use the replacement function; it wouldn't resolve at link time.
75537         Reported by Volker Borchert.
75538
75539 2002-05-22  Jim Meyering  <meyering@lucent.com>
75540
75541         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
75542         file-type.h.
75543         * lib/file-type.h: New file.
75544         * lib/file-type.c (file_type): New file/function.  Extracted from
75545         diffutils.
75546
75547 2002-04-30  Jim Meyering  <meyering@lucent.com>
75548
75549         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
75550
75551 2002-04-29  Paul Eggert  <eggert@twinsun.com>
75552
75553         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
75554
75555 2002-04-29  Paul Eggert  <eggert@twinsun.com>
75556
75557         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
75558         Do not check for alloca.h (no longer used) or stdbool.h (was never
75559         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
75560
75561 2002-04-29  Paul Eggert  <eggert@twinsun.com>
75562
75563         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
75564
75565 2002-04-29  Jim Meyering  <meyering@lucent.com>
75566
75567         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
75568         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
75569         Use AC_FUNC_STRNLEN here instead.
75570
75571         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
75572         With autoconf-2.53a, it's part of AC_PROG_CC.
75573
75574 2002-04-28  Paul Eggert  <eggert@twinsun.com>
75575
75576         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
75577         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
75578
75579 2002-04-28  Paul Eggert  <eggert@twinsun.com>
75580
75581         * lib/sig2str.h, lib/sig2str.c: New files.
75582         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
75583
75584 2002-04-28  Paul Eggert  <eggert@twinsun.com>
75585
75586         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
75587         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
75588         of 127, since 64 is the largest conceivable number for ancient
75589         nonstandard hosts.
75590         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
75591
75592 2002-04-28  Jim Meyering  <meyering@lucent.com>
75593
75594         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
75595
75596 2002-04-24  Jim Meyering  <meyering@lucent.com>
75597
75598         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
75599         (jm_PREREQ): Use it.
75600
75601         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
75602         mach/mach.h fcntl.h.
75603         Check for this function: setlocale.
75604
75605 2002-04-24  Jim Meyering  <meyering@lucent.com>
75606
75607         * lib/gettext.h: New file, from Gettext.
75608         * lib/Makefile.am (INCLUDES): Remove -I../intl.
75609         (libfetish_a_SOURCES): Add gettext.h.
75610
75611 2002-04-16  Jim Meyering  <meyering@lucent.com>
75612
75613         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
75614         ut_pid, ut_id, ut_exit.
75615
75616 2002-04-16  Jim Meyering  <meyering@lucent.com>
75617
75618         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
75619         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
75620         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
75621
75622 2002-04-12  Jim Meyering  <meyering@lucent.com>
75623
75624         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
75625         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
75626         existence of the getmntinfo function.  Needed for Darwin 5.3.
75627
75628         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
75629         This is necessary at least on Darwin 5.3.
75630
75631         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
75632         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
75633         strnlen.o in the library, and that makes some versions of ranlib
75634         object.
75635
75636 2002-04-12  Jim Meyering  <meyering@lucent.com>
75637
75638         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
75639
75640 2002-04-09  Jim Meyering  <meyering@lucent.com>
75641
75642         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
75643         to be more precise.  Rather than saying we're checking whether the
75644         function `works', say what we're testing.
75645         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
75646         Reported by Bruno Haible.
75647
75648 2002-03-10  Jim Meyering  <meyering@lucent.com>
75649
75650         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
75651         Suggestion from Santiago Vila.
75652
75653 2002-03-08  Jim Meyering  <meyering@lucent.com>
75654
75655         * lib/rename.c: Mention that this wrapper is needed also on
75656         mips-dec-ultrix4.4 systems.
75657
75658 2002-03-02  Jim Meyering  <meyering@lucent.com>
75659
75660         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
75661         not HAVE_CLOCK_SETTIME.
75662
75663 2002-02-27  Paul Eggert  <eggert@twinsun.com>
75664
75665         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
75666         Check for clock_settime.
75667
75668 2002-02-27  Paul Eggert  <eggert@twinsun.com>
75669
75670         * lib/nanosleep.h: Rename to....
75671         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
75672
75673         * lib/gettime.c: New file.
75674         * lib/settime.c: New file.
75675         * lib/stime.c: Remove.
75676
75677         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
75678         timespec.h.  Remove nanosleep.h.
75679
75680 2002-02-25  Paul Eggert  <eggert@twinsun.com>
75681
75682         * m4/acl.m4: New file.
75683         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
75684         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
75685
75686 2002-02-25  Paul Eggert  <eggert@twinsun.com>
75687
75688         * lib/acl.c, lib/acl.h: New files.
75689         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
75690
75691 2002-02-24  Jim Meyering  <meyering@lucent.com>
75692
75693         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
75694         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
75695         cause trouble.  Reported by Nelson Beebe.
75696
75697 2002-02-23  Paul Eggert  <eggert@twinsun.com>
75698
75699         * lib/path-concat.c (xpath_concat): Reorder code to pacify
75700         compilers that don't know that xalloc_die never returns.
75701
75702 2002-02-20  Jim Meyering  <meyering@lucent.com>
75703
75704         * lib/getdate.c: Regenerate using bison-1.33.
75705
75706 2002-02-17  Jim Meyering  <meyering@lucent.com>
75707
75708         * config/config.guess (main): Don't use `head -1'; it's no longer
75709         portable. Use `sed 1q' instead.
75710
75711 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
75712
75713         * m4/codeset.m4: Upgrade to gettext-0.11.
75714         * m4/gettext.m4: Upgrade to gettext-0.11.
75715         * m4/glibc21.m4: Upgrade to gettext-0.11.
75716         * m4/iconv.m4: Upgrade to gettext-0.11.
75717         * m4/isc-posix.m4: Upgrade to gettext-0.11.
75718         * m4/lcmessage.m4: Upgrade to gettext-0.11.
75719         * m4/lib-ld.m4: New file, from gettext-0.11.
75720         * m4/lib-link.m4: New file, from gettext-0.11.
75721         * m4/lib-prefix.m4: New file, from gettext-0.11.
75722         * m4/progtest.m4: Upgrade to gettext-0.11.
75723
75724 2002-02-15  Paul Eggert  <eggert@twinsun.com>
75725
75726         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
75727         (jm_PREREQ): Use it.
75728
75729 2002-02-15  Paul Eggert  <eggert@twinsun.com>
75730
75731         * lib/posixver.c, lib/posixver.h: New files.
75732         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
75733
75734 2002-02-02  Paul Eggert  <eggert@twinsun.com>
75735             Bruno Haible  <bruno@clisp.org>
75736
75737         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
75738         (fwrite_success_callback): New declaration.
75739         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
75740         print_unicode_char. Call failure callback instead of error.
75741         (fwrite_success_callback): New function.
75742         (exit_failure_callback): New function.
75743         (fallback_failure_callback): New function.
75744         (print_unicode_char): Call unicode_to_mb.
75745
75746 2002-01-26  Jim Meyering  <meyering@lucent.com>
75747
75748         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
75749         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
75750
75751 2002-01-26  Jim Meyering  <meyering@lucent.com>
75752
75753         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
75754
75755 2002-01-22  Paul Eggert  <eggert@twinsun.com>
75756
75757         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
75758
75759 2002-01-22  Jim Meyering  <meyering@lucent.com>
75760
75761         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
75762         Otherwise, some versions of automake would omit the rule that makes
75763         Makefile from Makefile.in.
75764
75765 2002-01-21  Paul Eggert  <eggert@twinsun.com>
75766
75767         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
75768         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
75769         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
75770         (memcoll): Set errno to zero if there is no error.
75771
75772         * lib/quotearg.c (quotearg_buffer_restyled):
75773         Fix bug with quoting buffers containing NUL when backslashing escapes.
75774         This bug was exposed by the other changes in this patch.
75775         (quotearg_n_options): New arg ARGSIZE.
75776         All callers changed.
75777         (quoting_options_from_style): New function.
75778         (quotearg_n_style): Use it.
75779         (quotearg_n_style_mem): New function.
75780
75781         * lib/quotearg.h (quotearg_n_style_mem): New function.
75782
75783 2002-01-19  Jim Meyering  <meyering@lucent.com>
75784
75785         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
75786         Remove useless quotes: DF_PROG="df".
75787         * m4/strnlen.m4: New file.
75788
75789 2002-01-16  Paul Eggert  <eggert@twinsun.com>
75790
75791         * lib/backupfile.c (ISDIGIT): Comment fix.
75792         * lib/getdate.y (ISDIGIT): Likewise.
75793         * lib/posixtm.c (ISDIGIT, year): Likewise.
75794         * lib/strverscmp.c (ISDIGIT): Likewise.
75795         * lib/userspec.c (ISDIGIT): Likewise.
75796
75797 2002-01-16  Jim Meyering  <meyering@lucent.com>
75798
75799         * lib/getdate.y: Add three semicolons, each just before a closing
75800         brace. Bison (as of version 1.31) no longer papers over that mistake.
75801
75802 2002-01-05  Jim Meyering  <meyering@lucent.com>
75803
75804         * lib/version-etc.c (version_etc_copyright): Update copyright year.
75805
75806 2001-12-19  Paul Eggert  <eggert@twinsun.com>
75807
75808         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
75809         not silently exit merely because the output buffer happens to
75810         have nothing pending.
75811
75812 2001-12-18  Paul Eggert  <eggert@twinsun.com>
75813
75814         See the big note in ../ChangeLog.
75815         * lib/human.c (suffixes): Prefer K to k for 1024.
75816         (generate_suffix_backwards): New function.
75817         (human_readable_inexact): Use it.
75818         * lib/xstrtol.c (__xstrtol): If there is no number but there
75819         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
75820         Accept 'K' as well as 'k'.
75821
75822 2001-12-15  Jim Meyering  <meyering@lucent.com>
75823
75824         * lib/regex.h (__restrict_arr): Update from libc.
75825
75826         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
75827         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
75828         (STREQ): Define.
75829
75830 2001-12-14  Jim Meyering  <meyering@lucent.com>
75831
75832         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
75833         Suggestion from Bruno Haible.
75834
75835 2001-12-10  Jim Meyering  <meyering@lucent.com>
75836
75837         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
75838         xrealloc, Instead, include "xalloc.h".
75839         (initbuffer): Don't cast xmalloc return value to char*.
75840         (readline): Reword comment.
75841         Don't cast xrealloc return value to char*
75842         Return NULL, not 0.
75843
75844 2001-12-09  Jim Meyering  <meyering@lucent.com>
75845
75846         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
75847         about `signed and unsigned type in conditional expression'.
75848         * lib/posixtm.c (posix_time_parse): Likewise.
75849
75850         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
75851
75852         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
75853         to avoid a pedantic warning.
75854
75855         * lib/getstr.c: Don't include assert.h.
75856         (getstr): Remove warning-evoking assertions.
75857         Return -1 if offset parameter is out of bounds.
75858         Change the type of a local from int to size_t.
75859
75860         * lib/strftime.c (my_strftime_localtime_r): Include this function
75861         definition in the `#if ! HAVE_TM_GMTOFF' block.
75862
75863         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
75864         Include xalloc.h instead.
75865
75866 2001-12-02  Jim Meyering  <meyering@lucent.com>
75867
75868         * lib/tempname.c: Don't declare getenv, thus reverting the change of
75869         2001-11-18.  It's no longer necessary, now that stdlib.h is always
75870         included.
75871
75872         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
75873         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
75874
75875 2001-11-30  Akim Demaille  <akim@epita.fr>
75876
75877         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
75878         before being defined.
75879
75880 2001-11-27  Paul Eggert  <eggert@twinsun.com>
75881
75882         * lib/quotearg.h (quotearg_n, quotearg_n_style):
75883         First arg is int, not unsigned.
75884         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
75885         (SIZE_MAX, UINT_MAX): New macros.
75886         (quotearg_n_options): Abort if N is negative.
75887         Avoid overflow check on hosts where size_t is 64 bits and int
75888         is 32 bits, as overflow is impossible there.
75889         Fix off-by-one typo that caused unnecessary reallocation.
75890
75891 2001-11-27  Jim Meyering  <meyering@lucent.com>
75892
75893         * lib/tempname.c: Merge with version from libc.
75894         * lib/regex.c: Likewise.
75895
75896         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
75897         systems for which STDC_HEADERS is 0, it was not included, resulting in
75898         a warning about an integer-to-pointer conversion problem with getenv.
75899         Reported by Volker Borchert.
75900
75901 2001-11-26  Jim Meyering  <meyering@lucent.com>
75902
75903         * lib/gtod.h: Remove file.
75904         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
75905         * lib/gettimeofday.c: Don't include gtod.h.
75906         (GTOD_init): Remove function.
75907         (rpl_gettimeofday): Do its job here instead, rather than aborting.
75908         Suggestion from Volker Borchert.
75909
75910 2001-11-23  Jim Meyering  <meyering@lucent.com>
75911
75912         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
75913         it.
75914         * lib/hash.c (struct hash_table): Define it here instead.
75915
75916 2001-11-22  Jim Meyering  <meyering@lucent.com>
75917
75918         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
75919
75920 2001-11-20  Jim Meyering  <meyering@lucent.com>
75921
75922         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
75923         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
75924
75925 2001-11-19  Jim Meyering  <meyering@lucent.com>
75926
75927         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
75928         directory.  Use "conftestXXXXXX" as the template.
75929         Suggestion from Paul Eggert.
75930
75931         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
75932         immediately, so the test doesn't mistakenly hit the max-open-files
75933         limit.
75934
75935 2001-11-18  Paul Eggert  <eggert@twinsun.com>
75936
75937         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
75938         (TEMPORARIES): New macro.
75939         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
75940         removes an artificial limitation (e.g. HP-UX 10.20, where
75941         TMP_MAX is 17576).
75942
75943 2001-11-18  Jim Meyering  <meyering@lucent.com>
75944
75945         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
75946
75947 2001-11-18  Jim Meyering  <meyering@lucent.com>
75948
75949         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
75950         on SunOS 4.
75951
75952         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
75953         files will be created before anything else.
75954
75955 2001-11-17  Paul Eggert  <eggert@twinsun.com>
75956
75957         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
75958         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
75959
75960 2001-11-17  Jim Meyering  <meyering@lucent.com>
75961
75962         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
75963         Prompted by a report from Bob Proulx.
75964
75965         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
75966         Instead, require UTILS_FUNC_MKSTEMP.
75967
75968 2001-11-17  Jim Meyering  <meyering@lucent.com>
75969
75970         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
75971         Now, that's done as part of AC_FUNC_STRTOD.
75972
75973 2001-11-17  Jim Meyering  <meyering@lucent.com>
75974
75975         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
75976         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
75977         rather than group writable.  Patch by Juan F. Codagnone.
75978
75979         * lib/readtokens.c: Remove explicit declarations of xmalloc and
75980         xrealloc, Instead, include "xalloc.h".
75981
75982         * lib/mountlist.c: Include unlocked-io.h after all system headers.
75983         Remove explicit declarations of xmalloc, xrealloc,
75984         and xstrdup.  Instead, include "xalloc.h".
75985
75986         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
75987         unlocked-io.h.
75988         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
75989         Likewise.
75990         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
75991
75992         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
75993         Reported by Padraig Brady.
75994
75995         * lib/mkstemp.c: #undef mkstemp.
75996         Include config.h.
75997         (rpl_mkstemp): Rename from mkstemp.
75998         Protoize.
75999
76000 2001-11-16  Jim Meyering  <meyering@lucent.com>
76001
76002         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
76003         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
76004         determine the amount of total physical memory, use pstat_getstatic.
76005         HPUX-11 doesn't define _SC_PHYS_PAGES.
76006         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
76007         If sysconf couldn't be used to determine the amount of available
76008         physical memory, use both pstat_getstatic and pstat_getdynamic.
76009         Based on a patch from Bob Proulx.
76010
76011 2001-11-10  Jim Meyering  <meyering@lucent.com>
76012
76013         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
76014         (jm_PREREQ): Use it.
76015
76016 2001-11-09  Jim Meyering  <meyering@lucent.com>
76017
76018         * m4/jm-macros.m4: Require autoconf-2.52f.
76019         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
76020         Use these AC_-prefixed names, not the AM_-prefixed ones.
76021
76022         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
76023
76024 2001-11-05  Jim Meyering  <meyering@lucent.com>
76025
76026         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
76027
76028 2001-11-04  Jim Meyering  <meyering@lucent.com>
76029
76030         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
76031         $DEFS.
76032
76033 2001-11-03  Jim Meyering  <meyering@lucent.com>
76034
76035         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
76036         of AC_DEFUN.
76037
76038         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
76039         know the name of the variable in the macro definition.
76040
76041 2001-11-03  Jim Meyering  <meyering@lucent.com>
76042
76043         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
76044         in argmatch_to_argument call.
76045
76046         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
76047         argument.
76048
76049         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
76050         e.g., a fault due to an attempt to free a NULL pointer.
76051
76052 2001-11-01  Jim Meyering  <meyering@lucent.com>
76053
76054         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
76055         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
76056
76057 2001-11-01  Jim Meyering  <meyering@lucent.com>
76058
76059         * lib/dirfd.c, lib/dirfd.h: New files.
76060         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
76061
76062         * lib/hash.c (hash_print) [TESTING]: Clean up.
76063
76064 2001-10-22  Paul Eggert  <eggert@twinsun.com>
76065
76066         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
76067         to avoid a warning if -Wall.
76068
76069 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
76070
76071         * README: New file
76072         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
76073         (per RMS's instructions, this is now the canonical source)
76074         * lgpl/, gpl/: New directories.
76075
76076 2001-10-21  Paul Eggert  <eggert@twinsun.com>
76077
76078         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
76079
76080 2001-10-21  Jim Meyering  <meyering@lucent.com>
76081
76082         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
76083         this code would end up calling gettext even in packages built
76084         with --disable-nls.
76085         * lib/getopt.c (_): Likewise.
76086         * lib/regex.c (_): Likewise.
76087
76088 2001-10-20  Paul Eggert  <eggert@twinsun.com>
76089
76090         * m4/error.m4 (jm_PREREQ_ERROR):
76091         Do not invoke AC_CHECK_FUNCS with strerror_r, as
76092         AC_FUNC_STRERROR_R does that.
76093         Check for strerror declaration.
76094
76095         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
76096         are supposed to have them these days.
76097         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
76098         Merge changes from latest Autoconf CVS.
76099         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
76100         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
76101         POSIX decided to standardize on the int flavor of strerror_r.
76102
76103 2001-10-20  Paul Eggert  <eggert@twinsun.com>
76104
76105         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
76106         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
76107         Use strerror_r that is only a macro, even if it is not a function.
76108         (strerror): Check for HAVE_DECL_STRERROR before declaring.
76109         (private_strerror): Use prototypes, not old-style function definition.
76110         (print_errno_message): New function.
76111         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
76112         char*-flavored one.
76113         (error_tail, error, error_at_line): Use it.
76114
76115 2001-10-11  Jim Meyering  <meyering@lucent.com>
76116
76117         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
76118         and quote_n (1, ... to avoid clobbering a buffer.
76119
76120 2001-10-05  Jim Meyering  <meyering@lucent.com>
76121
76122         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
76123         hash-pjw.h.
76124         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
76125         * lib/hash-pjw.h: New file.
76126
76127 2001-09-30  Jim Meyering  <meyering@lucent.com>
76128
76129         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
76130         `struct fsstat' has the `f_fstypename' member.
76131         Use that to define FS_TYPE, which is now used to make
76132         the getfsstat link test tighter.
76133
76134 2001-09-30  Jim Meyering  <meyering@lucent.com>
76135
76136         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
76137         Include <sys/ucred.h>, for Apple Darwin.
76138         Include sys/mount.h and sys/fs_types.h only if available.
76139         (FS_TYPE): Define.
76140         (read_filesystem_list): Use FS_TYPE.
76141
76142 2001-09-29  Paul Eggert  <eggert@twinsun.com>
76143
76144         * lib/exclude.c (excluded_filename): 0 -> false, since it's
76145         a boolean context.
76146
76147 2001-09-29  Jim Meyering  <meyering@lucent.com>
76148
76149         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
76150         [one-argument getmntent function]): Include stdio.h before mntent.h.
76151         SunOS 4.1.x needs it for the declaration of `FILE'.
76152         Patch by Volker Borchert.
76153
76154         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
76155         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
76156         sys/fs_types.h, and make the link-test for getfsstat guard #include
76157         directives with appropriate #if HAVE_*_H tests so that we can
76158         detect getfsstat on Apple Darwin1.3.7 systems.
76159         Reported by Nelson Beebe.
76160         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
76161
76162 2001-09-28  Paul Eggert  <eggert@twinsun.com>
76163
76164         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
76165         #defines strtoimax.  Also treat the other strto* functions
76166         like strtoimax.
76167
76168         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
76169         Check for strtoul and strtoumax,
76170         as those declarations are made even in the signed case.
76171         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
76172         Likewise, for strtol and strtoimax.
76173
76174 2001-09-28  Paul Eggert  <eggert@twinsun.com>
76175
76176         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
76177         #defines strtoimax.  Also treat the other strto* functions
76178         like strtoimax.
76179
76180         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
76181         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
76182         (strtoimax, strtoumax): Do not declare if already defined as a macro.
76183
76184 2001-09-26  Jim Meyering  <meyering@lucent.com>
76185
76186         Most macros in unlocked-io.h had the wrong number of arguments.
76187         * lib/gen-uio: New script.
76188         (USE_UNLOCKED_IO): Define to 1 if not already defined.
76189         * lib/unlocked-io.hin: Remove file.
76190         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
76191         rather than trying to embed it here.
76192         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
76193         Reported by Padraig Brady.
76194
76195 2001-09-25  Volker Borchert  <bt@teknon.de>
76196
76197         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
76198         `result'.
76199
76200 2001-09-24  Jim Meyering  <meyering@lucent.com>
76201
76202         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
76203
76204 2001-09-23  Jim Meyering  <meyering@lucent.com>
76205
76206         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
76207         instead of the mere test for existence of mntent.h.  The latter
76208         would get a false-positive on AIX 3.4 systems.
76209         In the outer getmntent if-block, don't die if neither of the getmntent
76210         tests succeeds.  Instead, just fall through and continue with the
76211         remaining tests.
76212
76213 2001-09-23  Jim Meyering  <meyering@lucent.com>
76214
76215         * lib/mountlist.c: Remove useless parentheses in #if directives.
76216         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
76217         the deprecated MOUNTED symbol is no longer defined in mntent.h.
76218
76219 2001-09-22  Jim Meyering  <meyering@lucent.com>
76220
76221         * m4/gettext.m4: New file.  From gettext.
76222         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
76223         * m4/progtest.m4: Likewise
76224         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
76225         * m4/glibc21.m4: Likewise.
76226
76227         * m4/libintl.m4: Remove.  No longer used.
76228
76229 2001-09-22  Jim Meyering  <meyering@lucent.com>
76230
76231         * lib/localcharset.c: Update from latest gettext.
76232         * lib/config.charset: Likewise.
76233
76234 2001-09-20  Jim Meyering  <meyering@lucent.com>
76235
76236         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
76237         strtoimax.
76238         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
76239         strtoumax.
76240
76241 2001-09-20  Jim Meyering  <meyering@lucent.com>
76242
76243         * lib/xstrtol.c (strtoimax): Guard declaration with
76244         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
76245         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
76246         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
76247         (strtoumax): Likewise, for completeness (it wasn't necessary).
76248
76249 2001-09-17  Paul Eggert  <eggert@twinsun.com>
76250
76251         * lib/strtoimax.c (HAVE_LONG_LONG):
76252         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
76253         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
76254         to work around bug in IBM C compiler.
76255
76256 2001-09-17  Jim Meyering  <meyering@lucent.com>
76257
76258         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
76259         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
76260         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
76261         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
76262         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
76263         whenever the right hand side need not be expanded by the shell.
76264
76265 2001-09-16  Paul Eggert  <eggert@twinsun.com>
76266
76267         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
76268         library.  It's not correct, as some older glibcs are buggy.
76269         fnmatch wasn't fixed until glibc 2.2.
76270
76271         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
76272         special shell magic here.
76273
76274 2001-09-16  Jim Meyering  <meyering@lucent.com>
76275
76276         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
76277         * m4/jm-macros.m4: Require it.
76278
76279 2001-09-16  Jim Meyering  <meyering@lucent.com>
76280
76281         * lib/mkdir.c: New file.
76282
76283 2001-09-15  Jim Meyering  <meyering@lucent.com>
76284
76285         * m4/jm-macros.m4: Check for help2man.
76286
76287 2001-09-11  Jim Meyering  <meyering@lucent.com>
76288
76289         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
76290         The body, by Paul Eggert, was moved here from configure.in.
76291         * m4/jm-macros.m4: Require UTILS_HOST_OS.
76292
76293 2001-09-04  Paul Eggert  <eggert@twinsun.com>
76294
76295         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
76296         (jm_PREREQ): Use it.
76297
76298 2001-09-04  Paul Eggert  <eggert@twinsun.com>
76299
76300         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
76301         Use ssize_t, not int, to store result of readlink.
76302         Check for ssize_t overflow as well as size_t overflow,
76303         as POSIX says the result of readlink is implementation-defined
76304         when ssize_t overflows.
76305         Remove unnecessary cast to char*.
76306         Use free+malloc instead of realloc, as the storage doesn't need
76307         to be preserved and it's clearer and can be more efficient that way.
76308         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
76309         * lib/xreadlink.h (xreadlink): Update prototype.
76310
76311 2001-09-04  Paul Eggert  <eggert@twinsun.com>
76312
76313         * lib/xgetcwd.c: Revert some of the previous change; intead,
76314         fix the HAVE_GETCWD_NULL code to behave more like the
76315         !HAVE_GETCWD_NULL code used to.
76316
76317         Include "xalloc.h".
76318         (xgetcwd): Do not return NULL when memory is exhausted; instead,
76319         invoke xalloc_die.
76320
76321 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76322
76323         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
76324         sys/param.h, as pathmax.h includes them.
76325
76326 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76327
76328         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
76329         (jm_PREREQ_XGETCWD): New macro.
76330
76331         * m4/getcwd.m4: New file.
76332
76333 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76334
76335         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
76336         like the HAVE_GETCWD_NULL code.
76337         Include pathmax.h if not HAVE_GETCWD.
76338         Do not include xalloc.h.
76339         (INITIAL_BUFFER_SIZE): New symbol.
76340         Do not use xmalloc / xrealloc, since the caller is responsible for
76341         handling errors.  Preserve errno around `free' during failure.
76342         Do not overrun buffer when using getwd.
76343
76344 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76345
76346         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
76347         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
76348         getcwd (NULL, 0).
76349
76350 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76351
76352         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
76353         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
76354         spotted by Jim Meyering.
76355
76356 2001-09-03  Jim Meyering  <meyering@lucent.com>
76357
76358         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
76359         failure.
76360
76361 2001-09-02  Jim Meyering  <meyering@lucent.com>
76362
76363         * lib/error.c: Update from GNU libc.
76364
76365 2001-09-01  Jim Meyering  <meyering@lucent.com>
76366
76367         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
76368         Used by df.
76369
76370 2001-09-01  Jim Meyering  <meyering@lucent.com>
76371
76372         * lib/xreadlink.c: New file.
76373         * lib/xreadlink.h: New file.
76374         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
76375         xreadlink.h.
76376
76377         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
76378         doesn't conflict with sparc Solaris 7's definition in
76379         /usr/include/sys/int_types.h.
76380
76381         * lib/exclude.c: Use `""', not `<>' to #include non-system header
76382         files.
76383         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
76384         and strncasecmp as r-values.  Unixware didn't have declarations.
76385
76386 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76387
76388         * lib/xstrtol.h: Add copyright notice.
76389         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
76390         LONGINT_INVALID_SUFFIX_CHAR.
76391
76392 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76393
76394         * lib/xstrtol.c (strtoimax): New decl.
76395
76396 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76397
76398         * lib/xgetcwd.c: Don't include pathmax.h.
76399         Include stdlib.h and unistd.h if available.
76400         Include xalloc.h.
76401         (xmalloc, xstrdup, free): Remove decls.
76402         (xgetcwd): Don't assume sizes fit in unsigned.
76403         Check for overflow when computing sizes.
76404         Simplify reallocation code.
76405
76406 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76407
76408         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
76409         a directory's st_size can have an arbitrary value, so the old
76410         usage could waste an arbitrary amount of memory.  All uses
76411         changed.
76412         * lib/savedir.h: Update prototype.
76413
76414 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76415
76416         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
76417
76418         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
76419         old strtoimax.c.
76420
76421         Also, make the following further changes to make this file's
76422         configuration more similar to that of strtol.c:
76423         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
76424         (strtoumax, uintmax_t, strtoull, strtol): Remove.
76425         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
76426         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
76427         changed to signed values.
76428
76429         And make the following changes as well:
76430         Fix copyright notice, as 1999 was missing.
76431         (verify): New macro.
76432         (strtoimax): Check sizes at compile-time, not run-time.
76433         Prefer strtol to strtoll if both work.
76434         (main): Remove; it was not that useful and was a pain to maintain.
76435
76436         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
76437
76438 2001-08-31  Jim Meyering  <meyering@lucent.com>
76439
76440         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
76441         Use an initial, malloc'd, buffer of length 128 rather than
76442         a statically allocated one of length 1024.
76443
76444 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76445
76446         Simplify code, partly by assuming autoconf 2.52 semantics.
76447
76448         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
76449
76450         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
76451         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
76452         All uses removed.
76453         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
76454         Move AC_REQUIRE to next-to-top level, to avoid confusion.
76455         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
76456         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
76457         jm_AC_HEADER_INTTYPES_H.
76458         * m4/jm-macros.m4 (jm_MACROS): Likewise.
76459
76460         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
76461
76462         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
76463         Quote first arg of AC_DEFUN.
76464         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
76465         since they are needed to parse the include file even if we need
76466         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
76467         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
76468         but with opposite signedness.
76469
76470 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76471
76472         Merge 'exclude' changes from tar 1.13.22.
76473         This fixes one or two unlikely storage allocation overflow bugs,
76474         but doesn't change user-visible behavior otherwise.
76475
76476 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76477
76478         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
76479         (jm_PREREQ_EXCLUDE): New macro.
76480
76481 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76482
76483         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
76484         tm to be declared.
76485
76486 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76487
76488         * lib/hash.c: Remove '2001' from copyright notice.
76489
76490 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76491
76492         * lib/full-write.h: New file.
76493         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
76494         * lib/full-write.c: Correct credits, as cccp.c no longer
76495         exists and anyway it was so heavily changed from the old cccp
76496         code as to be unrecognizable.  Include full-write.h.
76497         (full_write) Return size_t, with short writes meaning failure.
76498         All callers changed.  This fixes a bug with large buffers
76499         on 64-bit hosts.
76500         * lib/utime.c: Include full-write.h.
76501
76502 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76503
76504         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
76505         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
76506         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
76507         Include if available.
76508         (<xalloc.h>): Include
76509         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
76510         (verify): New macro.  Use it to verify that EXCLUDE macros do not
76511         collide with FNM macros.
76512         (struct patopts): New struct.
76513         (struct exclude): Use it, as exclude patterns now come with options.
76514         (new_exclude): Support above changes.
76515         (new_exclude, add_exclude_file):
76516         Initial size must now be a power of two to simplify overflow checking.
76517         (free_exclude, fnmatch_no_wildcards): New function.
76518         (excluded_filename): No longer requires options arg, as the options
76519         are determined by add_exclude.  Now returns bool, not int.
76520         (excluded_filename, add_exclude):
76521         Add support for the fancy new exclusion options.
76522         (add_exclude, add_exclude_file): Now takes int options arg.
76523         Check for arithmetic overflow when computing sizes.
76524         (add_exclude_file): xrealloc might modify errno, so don't
76525         realloc until after errno might be used.
76526
76527         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
76528         New macros.
76529         (free_exclude): New decl.
76530         (add_exclude, add_exclude_file): Now takes int options arg.
76531         (excluded_filename): No longer requires options arg, as the options
76532         are determined by add_exclude.  Now returns bool, not int.
76533
76534 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76535
76536         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
76537
76538 2001-08-27  Jim Meyering  <meyering@lucent.com>
76539
76540         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
76541
76542         * lib/version-etc.c (N_): Remove definition.
76543         Revert most of last change.
76544         Instead, simply don't mark the `Copyright...' string for translation.
76545         Based on advice from Paul Eggert.
76546
76547         * lib/strtoxmax.c: Tweak comment.
76548
76549 2001-08-26  Jim Meyering  <meyering@lucent.com>
76550
76551         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
76552
76553         * m4/xstrtoimax.m4: New file.
76554         * m4/xstrtoumax.m4: Add comments explaining why we
76555         AC_REPLACE_FUNCS(strtol).
76556
76557 2001-08-26  Jim Meyering  <meyering@lucent.com>
76558
76559         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
76560         of copyright with `%s' so translators don't get an untranslated
76561         message in 2002.
76562         (COPYRIGHT_YEAR): Define.
76563         (version_etc): Use fprintf rather than fputs.
76564         Suggestion from Ulrich Drepper.
76565
76566         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
76567
76568         * lib/strtoll.c: New file, from GNU libc.
76569         * lib/xstrtoimax.c: New file.
76570
76571         * lib/xstrtol.h: Add xstrtoimax.
76572         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
76573         * lib/strtoimax.c: New file.  Likewise, but first define
76574         STRTOUXMAX_SIGNED.
76575
76576         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
76577         ...
76578         * lib/strtoxmax.c: ... then renamed to this.
76579
76580 2001-08-18  Paul Eggert  <eggert@twinsun.com>
76581
76582         * m4/inttypes.m4: Add AC_PREREQ(2.13).
76583         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
76584         (jm_AC_TYPE_INTMAX_T): New macro.
76585         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
76586
76587         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
76588
76589         * m4/longlong.m4: Renamed from ulonglong.m4.
76590         * m4/inttypes.m4: Renamed from inttypes_h.m4.
76591         * m4/uintmax_t.m4: Removed.
76592
76593 2001-08-13  Paul Eggert  <eggert@twinsun.com>
76594
76595         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
76596         Port to Solaris 8, where 'sed' requires a space after the 'r'
76597         command, and where sh dislikes "$/".  Clean up the spacing a bit.
76598         Redirect output to $tmp just once.
76599
76600 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
76601
76602         * lib/addext.c (<errno.h>): Include.
76603         (errno): Declare if not defined.
76604         (addext): Work correctly when pathconf returns -1 and leaves
76605         errno alone because there is no limit.  Also, work even if
76606         pathconf returns a value greater than SIZE_MAX.
76607
76608 2001-08-12  Jim Meyering  <meyering@lucent.com>
76609
76610         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
76611         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
76612         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
76613         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
76614         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
76615         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
76616         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
76617         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
76618         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
76619         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
76620         utime.m4, utimes.m4, xstrtoumax.m4:
76621         Quote the first argument in each use of AC_DEFUN.
76622
76623 2001-08-12  Jim Meyering  <meyering@lucent.com>
76624
76625         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
76626         Simply `return getcwd (NULL, 0);'.
76627         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
76628         Use 1300 as initial value for length, not PATH_MAX.
76629
76630         * lib/pathmax.h: Clean up cpp syntax.
76631
76632 2001-08-12  Jim Meyering  <meyering@lucent.com>
76633
76634         * lib/gettimeofday.c: New file.
76635         * lib/gtod.h: New file.
76636         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
76637
76638 2001-08-05  Jim Meyering  <meyering@lucent.com>
76639
76640         * m4/jm-macros.m4: Require autoconf-2.52.
76641
76642 2001-08-04  Jim Meyering  <meyering@lucent.com>
76643
76644         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
76645         stmt, to get in sync with glibc.
76646
76647 2001-08-03  Paul Eggert  <eggert@twinsun.com>
76648
76649         The following changes are from gettext 0.10.39 as maintained by
76650         Bruno Haible.
76651
76652         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
76653         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
76654         with inverted sense.  All uses changed.
76655
76656         * lib/mbswidth.c: Don't include <limits.h>.
76657         Include <stdlib.h> and <string.h> unconditionally.
76658         (iswcntrl, mbsinit, ISCNTRL): New macros.
76659         (mbsnwidth): Use K&R style function declarations.
76660         Don't bother checking for MB_LEN_MAX == 1, since the compiler
76661         can optimize it when MB_CUR_MAX == 1.
76662         The width of control characters is zero, not 1.
76663
76664 2001-08-03  Paul Eggert  <eggert@twinsun.com>
76665
76666         The following changes are from gettext 0.10.39 as maintained by
76667         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
76668
76669         * m4/codeset.m4: Upgrade to serial AM1.
76670         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
76671         all uses changed.  Quote first arg of AC_DEFUN.
76672         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
76673
76674         * m4/iconv.m4: Upgrade to serial AM2.
76675         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
76676         Add --with-libconv-prefix.
76677         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
76678         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
76679         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
76680         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
76681         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
76682
76683         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
76684         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
76685         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
76686         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
76687         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
76688         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
76689         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
76690         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
76691         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76692
76693         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
76694         string.h any more.
76695
76696         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
76697         not the default value.
76698
76699         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
76700         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
76701         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
76702         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
76703         Also check for iswcntrl, used for wcwidth fallback.
76704         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
76705         to Autoconf 2.13.
76706
76707 2001-08-03  Jim Meyering  <meyering@lucent.com>
76708
76709         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
76710         as it was in the original.  Reported by Paul Eggert.
76711
76712 2001-07-16  Jim Meyering  <meyering@lucent.com>
76713
76714         * m4/gettimeofday.m4: New file.
76715         Prompted by a report from Bernhard Baehr.
76716
76717 2001-07-15  Jim Meyering  <meyering@lucent.com>
76718
76719         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
76720         stuff. Now it's in ../Makefile.cfg.
76721
76722 2001-07-15  Jim Meyering  <meyering@lucent.com>
76723
76724         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
76725         (BUILT_SOURCES): Add unlocked-io.h.
76726         (io_functions): Define.
76727         (unlocked-io.h): New rule.
76728         (DISTCLEANFILES): Add unlocked-io.h.
76729         (all-local): Depend on unlocked-io.h, to ensure it is created.
76730
76731         * lib/unlocked-io.hin: New file
76732
76733         * lib/regex.c: Update from glibc.
76734
76735 2001-07-05  Jim Meyering  <meyering@lucent.com>
76736
76737         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
76738         recommendation.
76739         (libfetish_a_SOURCES): Put all .h files here instead.
76740         Remove a thus-exposed (better checks in automake) duplicate and
76741         two unnecessary .h files.
76742
76743 2001-07-04  Jim Meyering  <meyering@lucent.com>
76744
76745         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
76746         that generates jm-glibc-io.m4 so that it doesn't trigger any make
76747         distcheck failure.
76748
76749 2001-07-02  Jim Meyering  <meyering@lucent.com>
76750
76751         The following changes were prompted by suggestions from Bruno Haible.
76752
76753         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
76754         is now generated.
76755         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
76756         definition of EXTRA_DIST.
76757         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
76758         ensure that the generated file is created/updated whenever the list
76759         of $(unlocked_functions) is changed.
76760         (jm-glibc-io.m4): New rule.
76761         (unlocked-io.h): New rule -- currently unused.
76762
76763 2001-06-24  Jim Meyering  <meyering@lucent.com>
76764
76765         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
76766         unmatched right bracket, rather than kludging it with an extra,
76767         falsely-matching quote in a comment.  Patch by Akim Demaille.
76768
76769 2001-06-11  Jim Meyering  <meyering@lucent.com>
76770
76771         * lib/regex.c: Update from GNU libc.
76772
76773 2001-05-27  Jim Meyering  <meyering@lucent.com>
76774
76775         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
76776         Check for ut_type in struct utmp.
76777
76778 2001-05-27  Jim Meyering  <meyering@lucent.com>
76779
76780         * lib/readutmp.h (UT_TYPE): Define.
76781
76782 2001-05-24  Jim Meyering  <meyering@lucent.com>
76783
76784         * lib/argmatch.c: Include "quote.h".
76785         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
76786         quote function.  Reported by Göran Uddeborg.
76787
76788 2001-05-22  Jim Meyering  <meyering@lucent.com>
76789
76790         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
76791         now that we use the package-supplied version unconditionally.
76792         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
76793
76794 2001-05-21  Jim Meyering  <meyering@lucent.com>
76795
76796         * m4/regex.m4: Change a couple backticks to single quotes to avoid
76797         shell syntax errors.
76798
76799 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
76800
76801         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
76802
76803 2001-05-20  Paul Eggert  <eggert@twinsun.com>
76804
76805         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
76806         Don't bother to check library strftime, since
76807         we'll be using our own my_strftime function anyway.
76808         Define my_strftime instead of strftime.
76809
76810 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
76811
76812         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
76813         which is not yet declared.
76814
76815 2001-05-15  Jim Meyering  <meyering@lucent.com>
76816
76817         * m4/regex.m4: Use proper quoting so brackets appear in the test
76818         program.
76819         Reported by, and with help from, Bruno Haible.
76820
76821 2001-05-13  Jim Meyering  <meyering@lucent.com>
76822
76823         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
76824         undefined.
76825
76826 2001-05-11  Paul Eggert  <eggert@twinsun.com>
76827
76828         dirname code cleanup.  base_name now behaves more compatibly
76829         with POSIX basename when given file names that have trailing
76830         slashes, and similarly for dir_name.  Add new primitives
76831         base_len and dir_len.  Put the directory-name-related decls
76832         into dirname.h.
76833
76834         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
76835         * lib/backupfile.c (base_name): Likewise.
76836         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
76837         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
76838         * lib/makepath.c (strip_trailing_slashes): Likewise.
76839         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
76840         ISSLASH): Likewise.
76841         * lib/rename.c (strip_trailing_slashes): Likewise.
76842         * lib/same.c (base_name): Likewise.
76843         * lib/stripslash.c (ISSLASH): Likewise.
76844
76845         * lib/addext.c: Include <dirname.h> after size_t is defined.
76846         * lib/backupfile.c: Likewise.
76847
76848         * lib/addext.c (addext): Use base_len to trim redundant
76849         trailing slashes instead of doing it ourselves.
76850         But do not trim the last slash if it is not redundant.
76851
76852         * lib/backupfile.c (find_backup_file_name,
76853         max_backup_version): Use base_len instead of rolling it ourselves.
76854         Handle the case of "" and (on DOS) "C:" correctly.
76855
76856         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
76857         needed. Include <string.h>, <dirname.h>.
76858         (base_name): Allow file names ending in slashes, other than names
76859         that are all slashes.  In this case, return the basename followed
76860         by the slashes.  This is more general, and can be used in places
76861         where the original base_name purposely had an assertion failure.
76862         (base_len): New function.
76863
76864         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
76865         Do not include <assert.h>; no longer needed.
76866         Include xalloc.h.
76867         (memrchr): Remove decl.
76868         (dir_name_r): Remove.
76869         (dir_len): Renamed from dirlen.  All callers changed.
76870         Rewrite in terms of base_name, for simplicity and consistency.
76871         (dir_name): Never return NULL.  All callers changed.
76872         Do not include <stdlib.h> in test program; no longer needed.
76873         return 0; is fine for test program.
76874
76875         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
76876         New macros.
76877         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
76878
76879         * lib/path-concat.c (path_concat): Use base_len to compute
76880         base length, not strlen; this means we cannot rely on memcpy
76881         to null-terminate.
76882
76883         * lib/same.c (STREQ): Remove.
76884         (same_name): Handle the case where the basename ends in trailing '/'.
76885
76886         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
76887         a slash was stripped.  Do not strip the last slash after a
76888         file system prefix.
76889
76890 2001-05-11  Paul Eggert  <eggert@twinsun.com>
76891
76892         * lib/Makefile.am (libfetish_a_SOURCES):
76893         Add strftime.c, since we now compile it on all hosts.
76894
76895         * lib/strftime.c (my_strftime):
76896         Define to nstrftime if emacs, but only if my_strftime is not defined.
76897         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
76898         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
76899         Add one more extra argument: a nanoseconds value.
76900         All uses changed.
76901         (ns): New macro.
76902         (my_strftime function): Add %N format.
76903         (emacs_strftimeu): Renamed from emacs_strftime,
76904         with extra ut argument.
76905
76906 2001-05-09  Paul Eggert  <eggert@twinsun.com>
76907
76908         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
76909
76910 2001-04-21  Jim Meyering  <meyering@lucent.com>
76911
76912         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
76913         doesn't interfere.
76914
76915 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
76916
76917         * m4/ftruncate.m4: Check for chsize.
76918         Link with ftruncate.o unconditionally if ftruncate is missing.
76919         This was required when cross-compiling to i586-mingw32msvc.
76920
76921 2001-04-08  Jim Meyering  <meyering@lucent.com>
76922
76923         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
76924         recomputed; that's necessary when the offset spans a DST transition.
76925         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
76926
76927 2001-04-02  Jim Meyering  <meyering@lucent.com>
76928
76929         * lib/regex.h, regex.c: Update from GNU libc.
76930
76931 2001-03-24  Jim Meyering  <meyering@lucent.com>
76932
76933         * m4/jm-macros.m4: Require autoconf-2.49d.
76934
76935 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
76936
76937         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
76938
76939 2001-03-19  Paul Eggert  <eggert@twinsun.com>
76940
76941         * lib/version-etc.c (version_etc_copyright): Update to 2001.
76942
76943 2001-03-17  Jim Meyering  <meyering@lucent.com>
76944
76945         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
76946         now that the version in autoconf is equivalent.
76947         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
76948
76949         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
76950         Suggestion from Akim Demaille.
76951
76952         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
76953         (jm_PREREQ_TEMPNAME): New function.
76954
76955 2001-03-16  Paul Eggert  <eggert@twinsun.com>
76956
76957         * lib/tempname.c (uint64_t): Define to uintmax_t if
76958         not defined, and if UINT64_MAX is not defined.
76959         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
76960         Reported by John David Anglin.
76961
76962 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
76963
76964         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
76965         resolve alias if codeset is empty.
76966         * lib/config.charset (BeOS): Use wildcard syntax.
76967
76968 2001-03-13  Jim Meyering  <meyering@lucent.com>
76969
76970         * lib/path-concat.c (path_concat)
76971         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
76972         concatenating e.g., `C:' and `foo'.
76973         From Bruno Haible.
76974
76975 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
76976
76977         * lib/localcharset.c (locale_charset): Don't use
76978         setlocale(LC_CTYPE,NULL). Don't return NULL.
76979         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
76980
76981 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
76982
76983         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
76984         support for DOS/DJGPP.
76985
76986 2001-03-01  Paul Eggert  <eggert@twinsun.com>
76987
76988         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
76989         lacks mkstemp.  Compile our own tempname.c if we compile our own
76990         mkstemp.c, as mkstemp relies on tempname.
76991
76992 2001-03-01  Jim Meyering  <meyering@lucent.com>
76993
76994         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
76995         AH_VERBATIM really does output its argument verbatim.
76996
76997 2001-02-28  Paul Eggert  <eggert@twinsun.com>
76998
76999         * lib/Makefile.am (libfetish_a_SOURCES):
77000         Add dup-safer.c, fopen-safer.c.
77001         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
77002
77003         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
77004         * lib/unistd-safer.h: New files.
77005
77006 2001-02-25  Paul Eggert  <eggert@twinsun.com>
77007
77008         The mkstemp replacement is taken from glibc 2.2.2, with some
77009         portability fixes for use outside glibc, as follows:
77010
77011         * lib/tempname.c (struct_stat64): New macro.
77012         (direxists, __gen_tempname): Use it.
77013         This avoids a portability problem with Solaris 8.
77014
77015         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
77016         (<stddef.h>, <stdint.h>, <string.h>):
77017         Include only if STDC_HEADERS || _LIBC.
77018         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
77019         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
77020         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
77021         (__set_errno): Define this macro if <errno.h> doesn't.
77022         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
77023         Define these macros if <stdio.h> doesn't.
77024         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
77025         Define these macros if <sys/stat.h>
77026         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
77027         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
77028         __xstat64): Define if not _LIBC.
77029         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
77030         (__gen_tempname): Invoke gettimeofday only if
77031         HAVE_GETTIMEOFDAY || _LIBC;
77032         otherwise, fall back on plain "time".
77033         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
77034
77035         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
77036
77037         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
77038
77039 2001-02-18  Paul Eggert  <eggert@twinsun.com>
77040
77041         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
77042
77043 2001-02-17  Paul Eggert  <eggert@twinsun.com>
77044
77045         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
77046         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
77047         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
77048         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
77049
77050 2001-02-17  Paul Eggert  <eggert@twinsun.com>
77051
77052         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
77053         Remove workaround macros for hosts that have mbrtowc but not
77054         mbstate_t, as we now insist on proper declarations for both
77055         before using mbrtowc.
77056
77057 2001-02-17  Jim Meyering  <meyering@lucent.com>
77058
77059         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
77060         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
77061         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
77062         UnixWare 7.1.1.
77063
77064         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
77065         rather than AC_CACHE_VAL.
77066
77067 2001-02-17  Jim Meyering  <meyering@lucent.com>
77068
77069         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
77070         around included file name.
77071
77072         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
77073
77074         * lib/strftime.c: Update from GNU libc (the only changes were to
77075         comments).
77076
77077 2001-02-17  Jim Meyering  <meyering@lucent.com>
77078
77079         * lib/regex.c: Update from libc.
77080
77081 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
77082
77083         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
77084         clash.
77085
77086 2001-02-16  Paul Eggert  <eggert@twinsun.com>
77087
77088         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
77089         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
77090         Reported by Mark Hounschell via Paul Eggert.
77091
77092 2001-02-07  Jim Meyering  <meyering@lucent.com>
77093
77094         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
77095
77096 2001-02-05  Jim Meyering  <meyering@lucent.com>
77097
77098         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
77099         it includes the patch required for `large file' support with at least
77100         HP-UX's 10.20 /bin/cc.
77101
77102 2001-02-03  Jim Meyering  <meyering@lucent.com>
77103
77104         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
77105         AS_IF, now that it works once again (mysteriously).
77106         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
77107
77108 2001-01-30  Jim Meyering  <meyering@lucent.com>
77109
77110         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
77111         * m4/chown.m4: Rename conftestchown to conftest.chown.
77112         * m4/rename.m4: s/conftestdir/conftest.d1/ and
77113         s/conftestdir2/conftest.d2/.
77114         * m4/utimes.m4: s/conftestdata/conftest.data/
77115         Inspired by Pavel Roskin's change in autoconf.
77116
77117 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
77118
77119         * lib/config.charset: Update for FreeBSD 4.2.
77120
77121 2001-01-27  Jim Meyering  <meyering@lucent.com>
77122
77123         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
77124         a use of AS_IF.
77125         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
77126
77127 2001-01-26  Jim Meyering  <meyering@lucent.com>
77128
77129         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
77130         quotearg.c includes it.
77131
77132 2001-01-26  Jim Meyering  <meyering@lucent.com>
77133
77134         * lib/quotearg.c: Include stddef.h.
77135         * lib/quote.c: Include stddef.h.
77136         Reported by Axel Kittenberger.
77137
77138         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
77139         line in double quotes so that it evokes a better diagnostic.
77140         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
77141         Reported by Axel Kittenberger.
77142
77143 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
77144
77145         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
77146         as if it was a `charset'.
77147
77148 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
77149
77150         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
77151         has const.
77152
77153 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
77154
77155         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
77156         to avoid a warning.  Add back 'const' to inptr.
77157
77158 2001-01-20  Jim Meyering  <meyering@lucent.com>
77159
77160         Be sure that headers are checked before used in code compiled
77161         for the type checks.
77162         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
77163         In place of that, invoke jm_CHECK_ALL_TYPES.
77164         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
77165         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
77166         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
77167         The check for ssize_t was mistakenly run before the test for unistd.h.
77168
77169         The configure-time check for stdbool.h was missing.
77170         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
77171         (jm_PREREQ_HASH): New function.
77172
77173 2001-01-17  Jim Meyering  <meyering@lucent.com>
77174
77175         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
77176         for autoconf-2.49c.
77177         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
77178
77179 2001-01-16  Jim Meyering  <meyering@lucent.com>
77180
77181         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
77182         From Bruno Haible.
77183
77184 2001-01-14  Jim Meyering  <meyering@lucent.com>
77185
77186         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
77187         foo and bar.  Create conftestdir/ in the script, not in the C code.
77188         Remove directories in the script, not in the C code.
77189         Remove conftestdir{,2} before trying to create the directory.
77190         Make the entire configure script fail if the mkdir fails.
77191
77192 2001-01-14  Jim Meyering  <meyering@lucent.com>
77193
77194         * lib/rename.c: New file.  From Volker Borchert.
77195         Include stdlib.h, string.h or strings.h, and xalloc.h.
77196         Use strip_trailing_slashes rather than open-coding it.
77197
77198 2001-01-03  Paul Eggert  <eggert@twinsun.com>
77199
77200         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
77201
77202 2001-01-03  Jim Meyering  <meyering@lucent.com>
77203
77204         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
77205         of local `inptr' to avoid warning with some system declarations of
77206         iconv.
77207
77208 2001-01-02  Volker Borchert  <bt@teknon.de>
77209
77210         * m4/rename.m4: New file.
77211         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
77212
77213 2001-01-01  Jim Meyering  <meyering@lucent.com>
77214
77215         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
77216         even on systems with utmpx.h.  It's necessary for the declaration of
77217         utmp's ut_user member.  Reported by Andreas Jaeger.
77218
77219         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
77220         available. They are required for the declarations of getgrgid and
77221         getpwuid resp.
77222         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
77223         Reported by Andreas Jaeger.
77224
77225 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
77226
77227         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
77228         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
77229         so `make install' also works in VPATH builds.
77230
77231 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
77232
77233         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
77234         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
77235         can be used in subdirectories.
77236
77237 2000-12-29  Paul Eggert  <eggert@twinsun.com>
77238
77239         * lib/modechange.c: Do not assume that mode_t uses the
77240         traditional octal encoding.  E.g. "chmod 1 FOO" should set
77241         the other-execute bit of FOO even if S_IXOTH != 1.
77242
77243         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
77244         WOTH, XOTH, ALLM): New macros.
77245         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
77246          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
77247         Use them.
77248         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
77249         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
77250         (mode_compile):
77251         No need to use uintmax_t; unsigned long is long enough.
77252         Don't bother to get suffix since we don't use it.
77253
77254 2000-12-26  Jim Meyering  <meyering@lucent.com>
77255
77256         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
77257         better with autoheader.
77258
77259 2000-12-24  Jim Meyering  <meyering@lucent.com>
77260
77261         * lib/hash.c (is_prime): Return explicit boolean values.
77262         (hash_get_first): Return NULL to appease Irix5.6's 89.
77263         Reported by Nelson Beebe.
77264
77265 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
77266
77267         * lib/localcharset.c (locale_charset): Add support for Win32.
77268
77269 2000-12-18  Paul Eggert  <eggert@twinsun.com>
77270
77271         * lib/physmem.h, lib/physmem.c: New files.
77272
77273         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
77274         (noinst_HEADERS): Add physmem.h.
77275
77276         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
77277         't' for compatibility with Solaris 8 sort.
77278
77279 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
77280
77281         * lib/config.charset: Add support for BeOS.
77282
77283 2000-12-17  Jim Meyering  <meyering@lucent.com>
77284
77285         * m4/dos.m4 (jm_AC_DOS): New file and macro.
77286         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
77287
77288 2000-12-16  Jim Meyering  <meyering@lucent.com>
77289
77290         This bug had a serious impact on chown: `chown N:M FILE' (for integer
77291         N and M) would have treated it like `chown N:N FILE'.
77292
77293         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
77294
77295 2000-12-16  Jim Meyering  <meyering@lucent.com>
77296
77297         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
77298         SHELLS_FILE to a file name that's useful on djgpp systems.
77299         Include stdlib.h.
77300         (ADDITIONAL_DEFAULT_SHELLS): Define.
77301         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
77302         Based mostly on a patch from Prashant TR.
77303
77304 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
77305
77306         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
77307         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
77308         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
77309
77310 2000-12-08  Andreas Schwab  <schwab@suse.de>
77311
77312         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
77313         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
77314
77315 2000-12-07  Jim Meyering  <meyering@lucent.com>
77316
77317         * lib/stripslash.c (ISSLASH): Define.
77318         (strip_trailing_slashes): Use ISSLASH rather than comparing against
77319         `/'.
77320         From Prashant TR.
77321
77322         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
77323         (dir_name_r): Declare this function as static.
77324         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
77325         manifest itself on a name containing a mix of slashes and
77326         backslashes.
77327         Make this function work with names starting with a DOS-style
77328         drive letter and colon prefix.
77329         (dir_name): Append `.' if necessary.
77330         Based mostly on patches from Prashant TR and Eli Zaretskii.
77331
77332         * lib/dirname.h (dir_name_r): Remove prototype.
77333
77334 2000-12-06  Paul Eggert  <eggert@twinsun.com>
77335
77336         * m4/off_t-format.m4: Remove this file.
77337         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
77338
77339 2000-12-06  Jim Meyering  <meyering@lucent.com>
77340
77341         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
77342         replacement strtoull, we may well need the replacement strtoul, too.
77343         Check for declarations of strtoul and strtoull.
77344         Check for strtol.  Mainly as a cue to cause automake to include
77345         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
77346         Check for limits.h -- strtol.c needs it.
77347
77348 2000-12-05  Jim Meyering  <meyering@lucent.com>
77349
77350         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
77351
77352 2000-12-04  Jim Meyering  <meyering@lucent.com>
77353
77354         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
77355         Also include memory.h, stdlib.h, unistd.h if appropriate.
77356         Reported by Andreas Jaeger (conflicting declaration of malloc).
77357
77358 2000-12-02  Jim Meyering  <meyering@lucent.com>
77359
77360         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
77361         * m4/jm-macros.m4 (jm_MACROS): require it.
77362
77363 2000-12-02  Jim Meyering  <meyering@lucent.com>
77364
77365         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
77366
77367 2000-12-01  Paul Eggert  <eggert@twinsun.com>
77368
77369         * lib/memrchr.c: Include <config.h> before any system include file.
77370
77371 2000-11-30  Jim Meyering  <meyering@lucent.com>
77372
77373         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
77374
77375 2000-11-30  Jim Meyering  <meyering@lucent.com>
77376
77377         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
77378
77379 2000-11-29  Paul Eggert  <eggert@twinsun.com>
77380
77381         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
77382
77383 2000-11-26  Jim Meyering  <meyering@lucent.com>
77384
77385         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
77386
77387 2000-11-22  Paul Eggert  <eggert@twinsun.com>
77388
77389         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
77390         size of (size_t) -1; it's not portable.
77391
77392 2000-11-17  Jim Meyering  <meyering@lucent.com>
77393
77394         * lib/strstr.c: Update from GNU libc.
77395
77396 2000-11-17  Akim Demaille  <akim@epita.fr>
77397
77398         * lib/obstack.h: Formatting changes.
77399         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
77400         prevent type checking.
77401         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
77402         cast the value to (void *): assigning a `foo *' to a `void *'
77403         variable is valid.
77404         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
77405
77406 2000-11-16  Jim Meyering  <meyering@lucent.com>
77407
77408         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
77409
77410 2000-11-11  Jim Meyering  <meyering@lucent.com>
77411
77412         * lib/error.c: Add a couple #includes, merging from GNU libc version.
77413
77414 2000-11-10  Jim Meyering  <meyering@lucent.com>
77415
77416         * lib/obstack.h: Update from GNU libc.
77417         * lib/obstack.c: Likewise.
77418
77419 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
77420
77421         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
77422
77423 2000-11-06  Paul Eggert  <eggert@twinsun.com>
77424
77425         * lib/getusershell.c (setusershell): Use rewind rather than
77426         fseek/fseeko, to avoid configuration hassles with fseeko.
77427         Don't bother opening SHELLS_FILE if shellstream is NULL;
77428         it's not necessary.
77429
77430 2000-11-05  Jim Meyering  <meyering@lucent.com>
77431
77432         * lib/makepath.h (make_dir): Declare.
77433         * lib/makepath.c (make_dir): Remove `static' attribute.
77434         Tweak a comment.
77435
77436 2000-11-04  Jim Meyering  <meyering@lucent.com>
77437
77438         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
77439
77440 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
77441
77442         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
77443         last one in a bucket, advance to the next bucket.
77444
77445 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
77446
77447         * lib/fnmatch.c: Do not comment out all the code if we are using
77448         the GNU C library, because in some cases we are replacing buggy
77449         code in the GNU C library itself.
77450
77451 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
77452
77453         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
77454         (regex_compile): Catch bogus \(\1\).
77455
77456 2000-10-30  Paul Eggert  <eggert@twinsun.com>
77457
77458         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
77459         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
77460         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
77461
77462 2000-10-30  Paul Eggert  <eggert@twinsun.com>
77463
77464         * lib/error.h, getline.h, modechange.h:
77465         Remove "2000" from Copyright line, as the file hasn't been
77466         changed this year other than in the copyright notice.
77467
77468         * lib/xalloc.h: Add "2000" to Copyright line, as this file
77469         was changed this year.
77470
77471 2000-10-29  Jim Meyering  <meyering@lucent.com>
77472
77473         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
77474         renaming.
77475         * m4/ls-mntd-fs.m4: Likewise
77476
77477 2000-10-29  Jim Meyering  <meyering@lucent.com>
77478
77479         * lib/xstat.in: Fix grammar in comment.
77480
77481 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
77482
77483         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
77484         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
77485         doesn't define __restrict_arr.
77486
77487 2000-10-28  Jim Meyering  <meyering@lucent.com>
77488
77489         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
77490         (jm_PREREQ_MEMCHR): New function.
77491
77492 2000-10-28  Jim Meyering  <meyering@lucent.com>
77493
77494         * lib/memchr.c: Update from libc.
77495         Adjust for portability:
77496         [HAVE_STDLIB_H]: Include stdlib.h.
77497         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
77498         Undef __memchr, too.
77499         [!weak_alias]: Define __memchr to memchr.
77500
77501         * lib/regex.c: Update from libc.
77502         * lib/regex.h: Likewise.
77503         * lib/getopt1.c: Likewise.
77504         * lib/memcmp.c: Likewise.
77505
77506         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
77507         Avoid using fseek, when possible -- it's broken by design.
77508         Patch by Ulrich Drepper.
77509
77510 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
77511
77512         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
77513         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
77514         Giving in to popular pressure to shut up the compiler with casts.
77515
77516 2000-10-26  Jim Meyering  <meyering@lucent.com>
77517
77518         * lib/strftime.c: Update from libc.
77519
77520 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
77521
77522         * regex.c: More `unsigned char' -> `re_char' changes.
77523         Also change several `int' into `re_wchar_t'.
77524         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
77525         (PUSH_FAILURE_POINTER): Don't cast any more.
77526         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
77527         We want GCC to complain, since this piece of code makes
77528         re_match non-reentrant, which *should* be fixed.
77529         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
77530         (EXTEND_BUFFER): Use RETALLOC.
77531         (SET_LIST_BIT): Don't cast.
77532         (re_wchar_t): New type.
77533         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
77534         that those two functions will always properly return.
77535         (IMMEDIATE_QUIT_CHECK): Cast to void.
77536         (analyse_first): Use recursion rather than an explicit stack.
77537         (re_compile_fastmap): Can't fail anymore.
77538         (re_search_2): Don't check re_compile_fastmap for failure.
77539         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
77540         Now also sets the new value (passed in a new argument).
77541         (re_match_2_internal): Use it.
77542         Also, use a new var `reg' of type size_t when looping through regs
77543         rather than reuse the inappropriate `mcnt'.
77544
77545 2000-10-25  Jim Meyering  <meyering@lucent.com>
77546
77547         * lib/obstack.c: Update from libc.
77548
77549 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
77550
77551         * regex.c (regex_compile): Change the way of handling a range from
77552         a char less than 256 to a char not less than 256.
77553
77554 2000-10-24  Andrew Innes  <andrewi@gnu.org>
77555
77556         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
77557         NT-Emacs only.
77558         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
77559         so that re_search functions only quit when callers expect them to.
77560
77561 2000-10-23  Jim Meyering  <meyering@lucent.com>
77562
77563         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
77564         wrong.  That set_locale call must not have any side effects.
77565         From Paul Eggert.
77566
77567 2000-10-22  Jim Meyering  <meyering@lucent.com>
77568
77569         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
77570         [CYCLIC]: Remove now-unused definition.
77571
77572         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
77573         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
77574         Suggestion from Ulrich Drepper.
77575
77576 2000-10-21  Jim Meyering  <meyering@lucent.com>
77577
77578         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
77579         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
77580         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
77581
77582 2000-10-21  Jim Meyering  <meyering@lucent.com>
77583
77584         * lib/dirname.c (memrchr): Declare if necessary.
77585         (dir_name): Remove the restriction that there be no
77586         trailing slashes.  Now, this code skips past them, effectively
77587         ignoring them.
77588         [TEST_DIRNAME] (main): New unit tests.
77589
77590         * lib/memrchr.c: New file from GNU libc.
77591         Undef __memrchr, too.
77592         [!weak_alias]: Define __memrchr to memrchr.
77593         Guard weak_alias use with `#ifdef weak_alias'.
77594
77595 2000-10-21  Jim Meyering  <meyering@lucent.com>
77596
77597         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
77598         (dir_name): Use dir_name_r.
77599         * lib/dirname.h (dir_name_r): Declare it.
77600
77601 2000-10-17  Jim Meyering  <meyering@lucent.com>
77602
77603         * lib/quote.h (PARAMS): Define and use.
77604         Reported by Akim Demaille.
77605
77606         * lib/getopt.c: Update from libc.
77607
77608 2000-10-16  Jim Meyering  <meyering@lucent.com>
77609
77610         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
77611         setlocale.
77612         From Jan Fedak.
77613
77614 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
77615
77616         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
77617
77618 2000-09-25  Jim Meyering  <meyering@lucent.com>
77619
77620         * lib/md5.h (rol): Define (from GnuPG).
77621
77622         * lib/sha.c: Give credit (GnuPG) where due.
77623         (M): Use rol rather than open-coding it.
77624         Add a FIXME comment.
77625
77626 2000-09-21  Jim Meyering  <meyering@lucent.com>
77627
77628         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
77629         Reported by Michael Stone.
77630
77631 2000-09-20  Jim Meyering  <meyering@lucent.com>
77632
77633         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
77634         (noinst_HEADERS): Add sha.h.
77635         Based on code from Scott G. Miller and from GnuPG.
77636
77637 2000-09-18  Jim Meyering  <meyering@lucent.com>
77638
77639         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
77640         LIBS. Otherwise, everyone ends up linking with -lelf for some
77641         configurations.
77642         Reported by Mike Stone.
77643
77644 2000-09-15  Jim Meyering  <meyering@lucent.com>
77645
77646         * lib/regex.c: Update from libc.
77647
77648 2000-09-10  Jim Meyering  <meyering@lucent.com>
77649
77650         * lib/getopt.c (_getopt_internal): Update from glibc.
77651
77652 2000-09-09  Jim Meyering  <meyering@lucent.com>
77653
77654         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
77655         think it should be used as a general replacement for isascii.
77656         * lib/fnmatch.c: Likewise.
77657         * lib/mbswidth.c: Likewise
77658         * lib/regex.c: Likewise.
77659
77660         Don't use atoi.
77661         * lib/userspec.c: Include sys/param.h and limits.h.
77662         Include xstrtol.h.
77663         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
77664         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
77665         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
77666         UID, GID.  Check range.
77667
77668 2000-09-06  Jim Meyering  <meyering@lucent.com>
77669
77670         * lib/getopt.c (_getopt_internal): Update from glibc.
77671
77672 2000-08-30  Jim Meyering  <meyering@lucent.com>
77673
77674         * lib/strftime.c: Merge in changes from GNU libc.
77675
77676 2000-08-26  Jim Meyering  <meyering@lucent.com>
77677
77678         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
77679         * m4/fpending.m4: New file.
77680
77681 2000-08-26  Jim Meyering  <meyering@lucent.com>
77682
77683         * lib/closeout.c: Include "__fpending.h".
77684         (close_stdout_status): Return right away if there's nothing to flush.
77685
77686         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
77687         * lib/__fpending.c: New file.
77688         * lib/__fpending.h: New file.
77689
77690 2000-08-20  Jim Meyering  <meyering@lucent.com>
77691
77692         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
77693         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
77694         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
77695
77696 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
77697
77698         Improve fileutils installation on systems where running
77699         programs (like install) can't be unlinked.
77700         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
77701         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
77702
77703 2000-08-07  Paul Eggert  <eggert@twinsun.com>
77704
77705         Standardize on "memory exhausted" instead of "Memory exhausted"
77706         or "virtual memory exhausted".
77707         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
77708         "virtual memory exhausted".
77709         * lib/same.c (same_name): Invoke xalloc_die instead of printing
77710         our own message.
77711         * lib/userspec.c (parse_user_spec): Likewise.
77712         * lib/bumpalloc.h: comment fix
77713         * lib/same.c, userspec.c: Include xalloc.h.
77714
77715         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
77716         not char *const and pointing to a constant array.
77717         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
77718         (xrealloc): Comment fix.
77719
77720         * lib/userspec.c (parse_user_spec):
77721         Don't translate a message until just before returning,
77722         to avoid unnecessary translation.
77723
77724 2000-08-07  Jim Meyering  <meyering@lucent.com>
77725
77726         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
77727         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
77728         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
77729         getgroups.c, gethostname.c, getopt.h, group-member.c,
77730         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
77731         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
77732         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
77733         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
77734         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
77735         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
77736         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
77737         yesno.c: Back out Copyright date changes for each file with no change
77738         this year.  This eases coordination with other programs using the same
77739         source code modules.  From Paul Eggert.
77740
77741 2000-08-06  Paul Eggert  <eggert@twinsun.com>
77742
77743         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
77744         not char, for compatibility with glibc 2.1.3 strftime.c.
77745
77746 2000-08-03  Greg McGary  <greg@mcgary.org>
77747
77748         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
77749         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
77750         (EXTEND_BUFFER): Use them.
77751
77752 2000-08-01  Jim Meyering  <meyering@lucent.com>
77753
77754         * lib/dirname.c (ISSLASH): Define.
77755         (BACKSLASH_IS_PATH_SEPARATOR): Define.
77756         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
77757         both `\' and `/' may be use as path separators.
77758         Based on a patch from Prashant TR.
77759
77760 2000-07-31  Paul Eggert  <eggert@twinsun.com>
77761
77762         * lib/quotearg.c (quotearg_n_options): Don't make the initial
77763         slot vector a constant, since it might get modified.
77764
77765 2000-07-31  Jim Meyering  <meyering@lucent.com>
77766
77767         * lib/xmalloc.c: Use `virtual memory exhausted', not
77768         `Memory exhausted'.
77769         * lib/obstack.c (print_and_abort): Likewise.
77770
77771 2000-07-30  Paul Eggert  <eggert@twinsun.com>
77772
77773         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
77774         buffer, so that the caller can always quote one small
77775         component of a "memory exhausted" message in slot 0.
77776         From a suggestion by Jim Meyering.
77777
77778 2000-07-30  Jim Meyering  <meyering@lucent.com>
77779
77780         * lib/makepath.c (make_path): Quote the other instance, too.
77781
77782         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
77783         (STATIC_BUF_SIZE): Define.
77784         (quotearg_n_options): Use only statically allocated storage when
77785         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
77786         than STATIC_BUF_SIZE.
77787
77788 2000-07-29  Jim Meyering  <meyering@lucent.com>
77789
77790         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
77791         * lib/dirname.c (dir_name): Likewise.
77792
77793         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
77794         `/'.
77795
77796         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
77797         (dir_name): Assert that there are no trailing slashes.
77798
77799 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
77800
77801         * lib/mbswidth.h (mbswidth): Add a flags argument.
77802         (mbswidth): New declaration.
77803         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
77804         * lib/mbswidth.c (mbswidth): Add a flags argument.
77805         (mbsnwidth): New function.
77806
77807 2000-07-24  Jim Meyering  <meyering@lucent.com>
77808
77809         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
77810
77811 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77812
77813         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
77814
77815 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77816
77817         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
77818         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
77819         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
77820         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
77821         invoke multibyte primitives.
77822
77823 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77824
77825         * lib/quotearg.c:
77826         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
77827         so that mbstate_t is always defined.
77828
77829         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
77830         be 1 in at least one GCC installation, and this configuration
77831         error is likely to be common.  Ignoring MB_LEN_MAX hurts
77832         performance on hosts that have mbrtowc but have only unibyte
77833         locales, but I assume these hosts are rare.
77834
77835 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77836
77837         * lib/mbswidth.c (_XOPEN_SOURCE):
77838         Don't define; this causes problems on Solaris 7.
77839         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
77840
77841 2000-07-23  Jim Meyering  <meyering@lucent.com>
77842
77843         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
77844         too: getgrgid, getpwuid, getuid.
77845
77846 2000-07-23  Jim Meyering  <meyering@lucent.com>
77847
77848         * lib/basename.c (base_name): Add an assertion.
77849
77850 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
77851
77852         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
77853         shadow its mbsinit function.
77854
77855 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
77856
77857         * lib/mbswidth.h: New file.
77858         * lib/mbswidth.c: New file.
77859         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
77860         (noinst_HEADERS): Add mbswidth.h.
77861
77862 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
77863
77864         * lib/config.charset: Add support for FreeBSD. Improve support for
77865         HP-UX and IRIX 6.
77866
77867 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
77868
77869         * m4/mbswidth.m4: New file.
77870         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
77871
77872 2000-07-15  Jim Meyering  <meyering@lucent.com>
77873
77874         * lib/makepath.c: Include quote.h.
77875         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
77876         corresponding argument in a `quote (...)' call.
77877         Give better diagnostics.
77878
77879         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
77880         (noinst_HEADERS): Add quote.h.
77881
77882         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
77883         from tar's src/misc.c.
77884         * lib/quote.h: New file.  Prototypes for same.
77885
77886 2000-07-14  Paul Eggert  <eggert@twinsun.com>
77887
77888         From a suggestion by Bruno Haible.
77889         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
77890         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
77891         to decide whether to define the BeOS workaround macro;
77892         this adjusts to the change to AC_MBSTATE_T.
77893
77894 2000-07-14  Jim Meyering  <meyering@lucent.com>
77895
77896         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
77897         jm_AC_TYPE_UINTMAX_T.
77898
77899 2000-07-13  Paul Eggert  <eggert@twinsun.com>
77900
77901         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
77902
77903         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
77904         quotearg_buffer_restyled): Add support for
77905         clocale_quoting_style.  Undo previous change to
77906         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
77907         and "{RIGHT QUOTATION MARK}" msgids.
77908
77909 2000-07-10  Paul Eggert  <eggert@twinsun.com>
77910
77911         From a suggestion by Bruno Haible.
77912         * m4/mbstate_t.m4 (AC_MBSTATE_T):
77913         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
77914         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
77915         and mbstate_t, to a single-part test that simply defines mbstate_t.
77916         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
77917         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
77918
77919 2000-07-10  Jim Meyering  <meyering@lucent.com>
77920
77921         * m4/strerror_r.m4: Mirror the correction made in autoconf.
77922
77923         * m4/gnu-source.m4: Output to confdefs.h directly.
77924         Suggestion from Akim Demaille.
77925
77926 2000-07-09  Paul Eggert  <eggert@twinsun.com>
77927
77928         The old behavior of quoting `like this' doesn't look good with
77929         newer, ISO-style fonts.  See:
77930         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
77931
77932         Instead, quote "like this" by default.  Let the translator
77933         tailor the locale-specific quoting behavior by providing
77934         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
77935
77936         * lib/quotearg.c (N_): New macro.
77937         (gettext_default): New function.
77938         (quotearg_buffer_restyled): Use
77939         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
77940         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
77941
77942 2000-07-09  Jim Meyering  <meyering@lucent.com>
77943
77944         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
77945         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
77946
77947         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
77948         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
77949
77950 2000-07-09  Jim Meyering  <meyering@lucent.com>
77951
77952         * lib/Most files: Update copyright dates to include 2000.
77953
77954 2000-07-08  Jim Meyering  <meyering@lucent.com>
77955
77956         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
77957         if not defined.
77958         (xgethostname): Remove now-unnecessary #ifdef.
77959         Move declaration of `err' into loop where it's used.
77960
77961 2000-07-05  Paul Eggert  <eggert@twinsun.com>
77962         and Bruno Haible  <haible@clisp.cons.org>
77963
77964         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
77965         only if the test for an object-type mbstate_t fails.  This
77966         prevents us from mistakenly reporting that mbstate_t is a
77967         system object type after we "#define mbstate_t int" to work
77968         around its lack.
77969
77970 2000-07-05  Paul Eggert  <eggert@twinsun.com>
77971         and Bruno Haible  <haible@clisp.cons.org>
77972
77973         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
77974
77975 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
77976
77977         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
77978         to strerror_r.
77979         Include <ctype.h> for use of isalpha.
77980
77981 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
77982
77983         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
77984         by allocating a larger buffer. Test the gethostname return value for
77985         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
77986         returns an error and ENAMETOOLONG isn't defined.
77987
77988 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
77989
77990         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
77991         dimension.
77992
77993 2000-07-04  Jim Meyering  <meyering@lucent.com>
77994
77995         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
77996         of the deprecated AC_CHECKING.
77997
77998 2000-07-04  Jim Meyering  <meyering@lucent.com>
77999
78000         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
78001         Reported by Bruno Haible.
78002
78003 2000-07-04  Jim Meyering  <meyering@lucent.com>
78004
78005         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
78006         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
78007         lacks mbrtowc.
78008
78009 2000-07-03  Paul Eggert  <eggert@twinsun.com>
78010
78011         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
78012         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
78013
78014 2000-07-03  Paul Eggert  <eggert@twinsun.com>
78015         and Bruno Haible  <haible@clisp.cons.org>
78016
78017         * lib/quotearg.c (mbrtowc):
78018         Assign to *pwc, and return 1 only if result is nonzero.
78019         (iswprint): Use ISPRINT when substituting our own mbrtowc.
78020
78021 2000-07-03  Jim Meyering  <meyering@lucent.com>
78022
78023         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
78024
78025 2000-07-03  Jim Meyering  <meyering@lucent.com>
78026
78027         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
78028         This is necessary to get a definition of e.g., UTMP_FILE on
78029         HP-UX 10.20.
78030         From Bob Proulx.
78031
78032 2000-07-02  Jim Meyering  <meyering@lucent.com>
78033
78034         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
78035
78036         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
78037         AC_LIBOBJ(function_name).
78038         * m4/chown.m4: Likewise.
78039         * m4/fnmatch.m4: Likewise.
78040         * m4/ftruncate.m4: Likewise.
78041         * m4/getgroups.m4: Likewise.
78042         * m4/getline.m4: Likewise.
78043         * m4/group-member.m4: Likewise.
78044         * m4/jm-macros.m4: Likewise.
78045         * m4/lstat.m4: Likewise.
78046         * m4/malloc.m4: Likewise.
78047         * m4/memcmp.m4: Likewise.
78048         * m4/nanosleep.m4: Likewise.
78049         * m4/putenv.m4: Likewise.
78050         * m4/realloc.m4: Likewise.
78051         * m4/regex.m4: Likewise.
78052         * m4/stat.m4: Likewise.
78053         * m4/strftime.m4: Likewise.
78054
78055 2000-07-02  Jim Meyering  <meyering@lucent.com>
78056
78057         * lib/quotearg.c (mbstate_t): Don't define here.
78058
78059 2000-07-02  Jim Meyering  <meyering@lucent.com>
78060
78061         * lib/nanosleep.c (SIGCONT): Define if not already defined.
78062
78063 2000-07-01  Jim Meyering  <meyering@lucent.com>
78064
78065         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
78066
78067 2000-07-01  Jim Meyering  <meyering@lucent.com>
78068
78069         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
78070         problem.
78071
78072 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
78073
78074         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
78075         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
78076
78077 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
78078
78079         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
78080         per change in ../m4/ls-mntd-fs.m4.
78081         (read_filesystem_list): Ignore symbolic links.
78082
78083 2000-06-29  Jim Meyering  <meyering@lucent.com>
78084
78085         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
78086         for declaration of strcmp.
78087
78088         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
78089
78090         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
78091         Avoid warning by casting result to `char *' to remove `const'.
78092
78093 2000-06-28  Jim Meyering  <meyering@lucent.com>
78094
78095         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
78096         included by quotearg.c, for which we perform this test.  From
78097         Bruno Haible.
78098
78099 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
78100
78101         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
78102         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
78103         <utmpx.h> exists, put readutmp.o into LIBOBJS.
78104
78105 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
78106
78107         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
78108
78109 2000-06-26  Paul Eggert  <eggert@twinsun.com>
78110
78111         savedir now sets errno on failure and invokes xmalloc to get memory.
78112         Fix a couple of other minor bugs while we're at it.
78113
78114         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
78115         (NAMLEN): Remove macro.
78116         (malloc, realloc): Remove decls.
78117         (stpcpy): Likewise.
78118         ("xalloc.h"): Include.
78119         (NAME_SIZE_DEFAULT): New macro.
78120         (savedir): Use xmalloc / xrealloc to allocate memory.
78121         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
78122         Skip "" directory entries.
78123         Use strlen to calculate directory entry length, since the old method
78124         is rarely used these days and isn't worth supporting.
78125         Don't use a pointer after freeing it.
78126         Check for integer overflow when calculating allocation size.
78127         Use memcpy to copy entries, instead of stpcpy.
78128         Set errno properly when returning NULL.
78129         Check for readdir error.
78130
78131 2000-06-26  Jim Meyering  <meyering@lucent.com>
78132
78133         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
78134
78135 2000-06-25  Jim Meyering  <meyering@lucent.com>
78136
78137         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
78138         Linux header bug when _XOPEN_SOURCE is defined to 500.
78139
78140 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
78141
78142         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
78143         deficiency.
78144
78145 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
78146
78147         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
78148         Include xalloc.h.
78149         Don't include <stdlib.h>.  Don't declare malloc, realloc.
78150
78151 2000-06-24  Jim Meyering  <meyering@lucent.com>
78152
78153         * m4/strerror_r.m4: Revive this file -- to try out an experimental
78154         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
78155         for which strerror does return char*, but which lacks a conveniently
78156         accessible declaration of the function.  If the compile-test says
78157         strerror_r doesn't work, then resort to a `run'-test that works on
78158         BeOS and segfaults on DEC Unix.
78159
78160 2000-06-24  Jim Meyering  <meyering@lucent.com>
78161
78162         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
78163
78164 2000-06-23  Paul Eggert  <eggert@twinsun.com>
78165
78166         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
78167         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
78168
78169 2000-06-23  Paul Eggert  <eggert@twinsun.com>
78170
78171         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
78172         (mbrtowc, mbstate_t): Define substitutes if
78173         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
78174         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
78175         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
78176
78177 2000-06-23  Jim Meyering  <meyering@lucent.com>
78178
78179         * m4/afs.m4: Add missing AC_MSG_RESULT.
78180         Reported by Bruno Haible.
78181
78182         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
78183         Suggestion from Bruno Haible.
78184
78185 2000-06-23  Jim Meyering  <meyering@lucent.com>
78186
78187         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
78188
78189 2000-06-21  Jim Meyering  <meyering@lucent.com>
78190
78191         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
78192
78193 2000-06-21  Jim Meyering  <meyering@lucent.com>
78194
78195         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
78196         (noinst_HEADERS): Add getstr.h.
78197
78198         * lib/getline.c (getstr): Move into a separate file.
78199         * lib/getstr.c (getstr): New file, extracted from getline.c, with
78200         the following changes: new parameter, delim2; both delim[12]
78201         parameters have type `int', not `char'.  The latter would lose
78202         with 8-bit delimiters.
78203         * lib/getstr.h: New file.
78204
78205 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78206
78207         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
78208         than 1024, return a memory chunk of least possible size, instead
78209         of size PATH_MAX + 2. In the loop, increment the size proportionally.
78210         Use free/xmalloc instead of xrealloc to avoid copying for very long
78211         paths.
78212
78213 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78214
78215         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
78216         the empty string.
78217
78218 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78219
78220         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
78221         address, not strdup.  Include <stdlib.h> and don't declare free().
78222
78223 2000-06-19  Jim Meyering  <meyering@lucent.com>
78224
78225         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
78226
78227 2000-06-18  Jim Meyering  <meyering@lucent.com>
78228
78229         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
78230
78231         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
78232         `checking whether...' message to be consistent with that of the
78233         lstat test.
78234
78235 2000-06-18  Jim Meyering  <meyering@lucent.com>
78236
78237         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
78238         Besides, these days every porting target provides a mkdir function.
78239
78240         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
78241         needed. (this snippet comes from src/system.h).
78242
78243 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
78244
78245         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
78246
78247 2000-06-15  Paul Eggert  <eggert@twinsun.com>
78248
78249         * lib/human.c (adjust_value): New function.
78250         (human_readable_inexact): Apply rounding style even when
78251         printing approximate values.
78252
78253 2000-06-14  Paul Eggert  <eggert@twinsun.com>
78254
78255         * lib/human.c (human_readable_inexact): Allow an input block
78256         size that is not a multiple of the output block size, and vice versa.
78257         Reported by Piergiorgio Sartor.
78258
78259 2000-06-14  Paul Eggert  <eggert@twinsun.com>
78260
78261         * lib/getdate.y (get_date): Apply relative times after time
78262         zone indicator, not before.  Reported by Todd A. Jacobs.
78263
78264 2000-06-13  Jim Meyering  <meyering@lucent.com>
78265
78266         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
78267
78268         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
78269
78270 2000-06-12  Paul Eggert  <eggert@twinsun.com>
78271
78272         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
78273
78274 2000-06-12  Jim Meyering  <meyering@lucent.com>
78275
78276         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
78277         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
78278         optional argument.
78279         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
78280         the optional argument, `lib'.
78281
78282 2000-06-08  Jim Meyering  <meyering@lucent.com>
78283
78284         * m4/largefile.m4: Remove file (now that it's part of autoconf).
78285
78286 2000-06-04  Paul Eggert  <eggert@twinsun.com>
78287
78288         Rewrite largefile configuration so that we don't need to run
78289         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
78290         AC_CANONICAL_HOST in configure.in -- jmm]
78291
78292         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
78293         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
78294         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
78295         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
78296         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
78297         All uses changed.
78298         Instead of inspecting the output of getconf, try to compile the
78299         test program without and with the macro definition.
78300         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
78301         for getconf.  Instead, check for the needed flags by compiling
78302         test programs.
78303
78304 2000-06-04  Paul Eggert  <eggert@twinsun.com>
78305
78306         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
78307
78308 2000-06-04  Jim Meyering  <meyering@lucent.com>
78309
78310         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
78311         SunOS 4.1.4 for which gid_t is an unsigned type.
78312
78313 2000-06-03  Jim Meyering  <meyering@lucent.com>
78314
78315         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
78316         now that autoconf requires that.
78317
78318         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
78319         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
78320         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
78321
78322 2000-06-03  Jim Meyering  <meyering@lucent.com>
78323
78324         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
78325
78326 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
78327
78328         * m4/glibc21.m4: New file.
78329         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
78330
78331 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
78332
78333         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
78334         newer, don't install charset.alias.
78335         * lib/config.charset: Change the Linux/glibc rules so they become empty
78336         on glibc-2.1 or newer.
78337
78338 2000-06-02  Jim Meyering  <meyering@lucent.com>
78339
78340         * lib/mountlist.c: Back out last change.  Instead, do this...
78341         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
78342         me_dummy member using the same `ignore'-testing code.
78343         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
78344         fs_type strings.
78345         From Mark D. Roth.
78346
78347 2000-05-29  Jim Meyering  <meyering@lucent.com>
78348
78349         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
78350         mounts with the `ignore' attribute.  Based on a patch from
78351         Mark D. Roth.
78352
78353 2000-05-28  Jim Meyering  <meyering@lucent.com>
78354
78355         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
78356         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78357         * m4/stat.m4: Likewise.
78358         * m4/lstat.m4: Likewise.
78359         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
78360
78361         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
78362         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
78363
78364 2000-05-26  Jim Meyering  <meyering@lucent.com>
78365
78366         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
78367
78368 2000-05-24  Jim Meyering  <meyering@lucent.com>
78369
78370         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
78371         autoconf requires that.
78372         * m4/lib-check.m4: Likewise.
78373         * m4/jm-macros.m4: Likewise.
78374         * m4/strftime.m4: Likewise.
78375
78376         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
78377         AC_CHECK_DECLS, now that autoconf requires that.
78378
78379 2000-05-22  Jim Meyering  <meyering@lucent.com>
78380
78381         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78382         * m4/lstat.m4: Likewise.
78383
78384 2000-05-22  Jim Meyering  <meyering@lucent.com>
78385
78386         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
78387
78388 2000-05-20  Jim Meyering  <meyering@lucent.com>
78389
78390         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
78391         (jm_PREREQ): Use it.
78392
78393 2000-05-18  Jim Meyering  <meyering@lucent.com>
78394
78395         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
78396         back, too, since it may have been modified by allocate_entry.
78397         (hash_delete): Rewrite to use neither the assignment operator
78398         nor the comma operator in an if-expression.
78399
78400 2000-05-15  Paul Eggert  <eggert@twinsun.com>
78401
78402         * lib/closeout.c:
78403         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
78404         Remove; no longer needed.
78405         "quotearg.h": Add include.
78406         (file_name): Do not bother to explicitly initialize to NULL; it's less
78407         efficient on some hosts.
78408         (close_stdout_status): Remove test as to whether stdout was already
78409         closed; it breaks for the case "echo x | sort >&-".
78410         Quote file name colons.
78411         Do not assume that _("write error") lacks format strings.
78412
78413 2000-05-15  Jim Meyering  <meyering@lucent.com>
78414
78415         * lib/version-etc.c (version_etc_copyright): Update the copyright
78416         string used in all --version output.
78417
78418 2000-05-14  Jim Meyering  <meyering@lucent.com>
78419
78420         * lib/closeout.c (close_stdout_set_file_name): New function.
78421         (close_stdout_status): Use new file-scoped global.
78422         Return right away if fstat says the stdout file descriptor is invalid.
78423         * lib/closeout.h (close_stdout_set_file_name): Declare.
78424
78425 2000-05-10  Jim Meyering  <meyering@lucent.com>
78426
78427         * lib/closeout.c [default_exit_status]: New file-scoped variable.
78428         (close_stdout_set_status): New function.
78429         * lib/closeout.h (close_stdout_set_status): Declare.
78430
78431 2000-05-09  Jim Meyering  <meyering@lucent.com>
78432
78433         * m4/gettext.m4: Rename this...
78434         * m4/libintl.m4: ...to this.
78435
78436 2000-05-08  Jim Meyering  <meyering@lucent.com>
78437
78438         * lib/long-options.c: Don't include closeout.h.
78439         (parse_long_options): Don't call close_stdout for --version.
78440
78441 2000-05-06  Paul Eggert  <eggert@twinsun.com>
78442
78443         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
78444         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
78445         2.1.3 bug.  This avoids a clash when files like regex.c define
78446         _GNU_SOURCE.
78447
78448 2000-05-06  Jim Meyering  <meyering@lucent.com>
78449
78450         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
78451         (AC_REPLACE_FUNCS): Add strnlen.
78452
78453         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
78454         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
78455
78456         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
78457         AC_SEARCH_LIBS call for nanosleep.
78458         (LIB_NANOSLEEP): Set and AC_SUBST.
78459
78460 2000-05-06  Jim Meyering  <meyering@lucent.com>
78461
78462         * lib/strnlen.c: Undefine __strnlen and strnlen.
78463         [!weak_alias]: Define __strnlen to strnlen.
78464
78465         * lib/atexit.c: New file, from libiberty.
78466
78467 2000-05-06  Jim Meyering  <meyering@lucent.com>
78468
78469         * lib/closeout.c (close_stdout_status): Also check for errors on the
78470         stderr stream.
78471
78472 2000-05-05  Jim Meyering  <meyering@lucent.com>
78473
78474         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
78475         AC_SEARCH_LIBS call for clock_gettime.
78476         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
78477
78478         * m4/search-libs.m4: Update from autoconf.
78479
78480         su doesn't work on Solaris 2.6.
78481         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
78482         <shadow.h>.  Reported by Dragos Harabor.
78483
78484 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
78485
78486         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
78487         memcpy instead of xmalloc, xrealloc, path_concat.
78488         (locale_charset): Treat empty environment variables as absent.
78489         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
78490
78491 2000-05-04  Jim Meyering  <meyering@lucent.com>
78492
78493         * lib/getopt.c: Update from glibc.
78494         * lib/obstack.c: Likewise.
78495         * lib/obstack.h: Likewise.
78496         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
78497         file
78498
78499         * lib/regex.h: Likewise.
78500         * lib/strndup.c: Likewise.
78501         * lib/strnlen.c: New file, from glibc.
78502
78503 2000-05-03  Jim Meyering  <meyering@lucent.com>
78504
78505         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
78506
78507 2000-05-02  Paul Eggert  <eggert@twinsun.com>
78508
78509         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
78510         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
78511         compile-time test, rather than inspecting host and OS, to
78512         decide whether to define _LARGEFILE_SOURCE.
78513
78514 2000-05-01  Jim Meyering  <meyering@lucent.com>
78515
78516         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
78517
78518         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
78519         Based on a patch from Bruno Haible.
78520
78521 2000-05-01  Jim Meyering  <meyering@lucent.com>
78522
78523         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
78524
78525 2000-04-29  Jim Meyering  <meyering@lucent.com>
78526
78527         * lib/path-concat.c: Declare strdup only if it's not defined.
78528         * lib/canon-host.c: Likewise.
78529
78530 2000-04-28  Jim Meyering  <meyering@lucent.com>
78531
78532         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
78533         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
78534         is included first, then limits.h is included by locale.h by libintl.h.
78535         From John David Anglin.
78536
78537 2000-04-25  Jim Meyering  <meyering@lucent.com>
78538
78539         * lib/makepath.c (S_IRWXUGO): Define.
78540         (make_path): Always perform explicit chmod if MODE specifies any
78541         of the `special' permission bits.  Prompted by a bug report against
78542         install from Mate Wierdl and Joost van Baal.
78543
78544 2000-04-18  Jim Meyering  <meyering@lucent.com>
78545
78546         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
78547         (jm_PREREQ): Use it.
78548
78549 2000-04-18  Jim Meyering  <meyering@lucent.com>
78550
78551         * lib/README: New file.
78552
78553         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
78554         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
78555
78556 2000-04-17  Jim Meyering  <meyering@lucent.com>
78557
78558         Get it right :-)
78559         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
78560         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
78561         Suggestion from Akim Demaille.
78562
78563 2000-04-17  Jim Meyering  <meyering@lucent.com>
78564
78565         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
78566         the definition of it to rpl_strftime also defined-away the system's
78567         declaration.
78568
78569 2000-04-15  Jim Meyering  <meyering@lucent.com>
78570
78571         Use `C' to denote so-called `contiguous' files, the same way
78572         that tar does.
78573         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
78574         (ftypelet): Use S_ISCTG.
78575         From Michael Deutschmann.
78576
78577 2000-04-14  Jim Meyering  <meyering@lucent.com>
78578
78579         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
78580         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
78581         clobbered.
78582
78583 2000-04-14  Jim Meyering  <meyering@lucent.com>
78584
78585         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
78586
78587 2000-04-13  Jim Meyering  <meyering@lucent.com>
78588
78589         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
78590         AH_VERBATIM to insert required #ifndef into config.h.in.
78591         Suggestion from Akim Demaille.
78592
78593 2000-04-12  Jim Meyering  <meyering@lucent.com>
78594
78595         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
78596         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
78597         Christian Krackowizer.
78598
78599         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
78600         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
78601         (AC_SYS_LARGEFILE): Require.
78602         (AM_C_PROTOTYPES): Require.
78603
78604 2000-04-08  Jim Meyering  <meyering@lucent.com>
78605
78606         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
78607         names don't conflict.  Reported by Eli Zaretskii.
78608
78609 2000-04-07  Jim Meyering  <meyering@lucent.com>
78610
78611         * lib/putenv.c: Move inclusion of errno.h so it follows that of
78612         sys/types.h, to work around system header problems on AIX 3.2.5.
78613         From Bruno Haible.
78614
78615 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
78616
78617         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
78618         bug.  Deal with the different error behavior of Irix iconv.
78619
78620 2000-04-05  Paul Eggert  <eggert@twinsun.com>
78621
78622         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
78623         IRIX if the installer said otherwise.
78624
78625 2000-04-05  Jim Meyering  <meyering@lucent.com>
78626
78627         Portability tweaks required for ultrix4.3.
78628         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
78629         (jm_CHECK_DECLS): Add getutent to the list of functions.
78630         (_jm_DECL_HEADERS): Add utmpx.h.
78631         From John David Anglin.
78632
78633         * m4/strftime.m4: Back out the 2000-04-02 change.
78634         Instead of that change, simply undefine putenv in the test program.
78635
78636 2000-04-05  Jim Meyering  <meyering@lucent.com>
78637
78638         Portability tweaks required for ultrix4.3.
78639         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
78640         getutent.
78641         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
78642         * lib/canon-host.c: Declare strdup.
78643         * lib/path-concat.c: Likewise.
78644         From John David Anglin.
78645
78646 2000-04-04  Jim Meyering  <meyering@lucent.com>
78647
78648         Be more DOS 8.3-friendly.
78649         * lib/ref-add.sin: Renamed from ref-add.sed.in.
78650         * lib/ref-del.sin: Renamed from ref-del.sed.in.
78651         * lib/Makefile.am: Reflect renaming.
78652         Reported by Eli Zaretskii.
78653
78654         Use a temporary file name that won't clash with `charset.alias'
78655         in the DOS 8.3 name space.
78656         * lib/Makefile.am (charset_tmp): Define.
78657         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
78658         (uninstall-local): Likewise.
78659         Reported by Eli Zaretskii.
78660
78661 2000-04-03  Jim Meyering  <meyering@lucent.com>
78662
78663         * m4/gettext.m4: Fix typo in comment.
78664
78665         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
78666         textutils/configure.in).  Suggestion from Paul Eggert.
78667         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
78668
78669 2000-04-02  Paul Eggert  <eggert@twinsun.com>
78670
78671         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
78672         variable in the shell rather than using putenv, which isn't
78673         portable.  This avoids the configure-time inter-test dependency
78674         on the potentially-renamed putenv function.
78675
78676 2000-03-30  Paul Eggert  <eggert@twinsun.com>
78677
78678         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
78679         before checking struct stat.st_blksize, so that
78680         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
78681
78682 2000-03-29  Paul Eggert  <eggert@twinsun.com>
78683
78684         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
78685         since strftime.c uses HAVE_STRFTIME to decide whether to use
78686         the underlying strftime.
78687
78688 2000-03-29  Paul Eggert  <eggert@twinsun.com>
78689
78690         * lib/time/strftime.c (my_strftime): Make sure we call the system
78691         strftime, not ourselves, when invoking the underlying strftime.
78692
78693 2000-03-24  Jim Meyering  <meyering@lucent.com>
78694
78695         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
78696         (charset_alias): Define.
78697         (install-exec-local): Factor out common code.
78698         (uninstall-local): Split lines longer than 80.
78699         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
78700         (SUFFIXES): Define.
78701         (.sed.in.sed): New rule.  Don't redirect directly to $@.
78702         (CLEANFILES): Add ref-add.sed and ref-del.sed.
78703
78704 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
78705
78706         * lib/config.charset: Output a line containing "Packages using this
78707         file".
78708         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
78709         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
78710         ref-del.sed): New rules.
78711
78712 2000-03-17  Jim Meyering  <meyering@lucent.com>
78713
78714         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
78715         Otherwise, include <strings.h>
78716
78717 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
78718
78719         * lib/unicodeio.c (utf8_wctomb): New function.
78720         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
78721         format instead of in UCS-4 with platform dependent endianness.
78722
78723 2000-03-10  Jim Meyering  <meyering@lucent.com>
78724
78725         * m4/lib-check.m4: Look for getspnam in -lgen, too.
78726         From Marco Franzen.
78727
78728 2000-03-07  Paul Eggert  <eggert@twinsun.com>
78729
78730         * lib/savedir.c (savedir): Work even if directory size is
78731         negative; this can happen with some screwy NFS configurations.
78732
78733 2000-03-06  Jim Meyering  <meyering@lucent.com>
78734
78735         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
78736         if it's NULL (because we ran out of memory).  From Bruno Haible.
78737
78738 2000-03-05  Jim Meyering  <meyering@lucent.com>
78739
78740         * lib/localcharset.c ("path-concat.h"): Include.
78741         (get_charset_aliases): Use path_concat instead of ANSI string
78742         concatenation.
78743
78744         * lib/unicodeio.h (PARAMS): Define.
78745         Use it to guard prototype.
78746
78747 2000-03-04  Jim Meyering  <meyering@lucent.com>
78748
78749         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
78750         for lib/localcharset.c.
78751
78752 2000-03-04  Jim Meyering  <meyering@lucent.com>
78753
78754         * lib/Makefile.am (install-exec-local): Create $(libdir) before
78755         installing into it.
78756         (uninstall-local): Uncomment this rule so `make distcheck' works
78757         once again.
78758
78759         * lib/unicodeio.c (<errno.h>): Include it.
78760         (errno): Declare if not defined.
78761
78762         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
78763
78764         * lib/config.charset: New version, incorporating remarks from a linux
78765         i18n mailing list.  From Bruno Haible.
78766
78767 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
78768
78769         * m4/codeset.m4: New file.
78770         * m4/iconv.m4: New file.
78771         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
78772
78773 2000-03-03  Jim Meyering  <meyering@lucent.com>
78774
78775         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
78776
78777 2000-03-02  Jim Meyering  <meyering@lucent.com>
78778
78779         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
78780         the messages come out on separate lines.
78781
78782         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
78783         rather than jm_CHECK_DECLARATIONS.
78784         * m4/decl.m4: Remove now-unused file.
78785
78786         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
78787         geteuid.
78788
78789 2000-03-02  Jim Meyering  <meyering@lucent.com>
78790
78791         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
78792
78793 2000-03-01  Jim Meyering  <meyering@lucent.com>
78794
78795         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
78796         * lib/unicodeio.c: Likewise.
78797
78798 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
78799
78800         * lib/config.charset: New file.
78801         * lib/localcharset.c: New file.
78802         * lib/unicodeio.h, lib/unicodeio.c: New files.
78803         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
78804         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
78805         (noinst_HEADERS): Add unicodeio.h.
78806         (all-local, install-exec-local, charset.alias): New targets.
78807
78808 2000-02-28  Paul Eggert  <eggert@twinsun.com>
78809
78810         * lib/quotearg.c (ALERT_CHAR): New macro.
78811         (quotearg_buffer_restyled): Use it.
78812
78813 2000-02-27  Jim Meyering  <meyering@lucent.com>
78814
78815         * m4/check-decl.m4: Add getenv to the list.
78816
78817 2000-02-27  Jim Meyering  <meyering@lucent.com>
78818
78819         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
78820         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
78821
78822         * lib/backupfile.c: Guard inclusion of stdlib.h with
78823         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
78824         Declare malloc if needed.
78825
78826         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
78827         `#ifndef HAVE_DECL..'
78828         now that autoconf always defines the HAVE_DECL_ symbols.
78829         * lib/human.c: Likewise.
78830         * lib/same.c: Likewise.
78831         * lib/strtoumax.c: Likewise.
78832
78833         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
78834         declaration check was not run.
78835         * lib/hash.c: Likewise.
78836         * lib/human.c: Likewise.
78837         * lib/same.c: Likewise.
78838         * lib/strtoumax.c: Likewise.
78839
78840         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
78841         `.', then first look up the entire `.'-containing string as a login
78842         name.
78843
78844 2000-02-23  Jim Meyering  <meyering@lucent.com>
78845
78846         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
78847         in place of my hack.
78848
78849 2000-02-18  Paul Eggert  <eggert@twinsun.com>
78850
78851         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
78852         (textint): New typedef.
78853         (parser_control): Member year changed from int to textint.
78854         All uses changed.
78855         (YYSTYPE): Removed; replaced by %union with int and textint members.
78856         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
78857         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
78858         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
78859         (tSNUMBER, tUNUMBER): Now of type <textintval>.
78860         (date, number, to_year): Use width of number in digits, not its value,
78861         to determine whether it's a 2-digit year, or a 2-digit time.
78862         (yylex): Store number of digits of numeric tokens.
78863         Reported by John Kendall.
78864
78865         (parser_control): Changed from struct parser_control to typedef (for
78866         consistency).  All uses changed.
78867
78868         (tID): Removed; not used.
78869         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
78870
78871 2000-02-14  Paul Eggert  <eggert@twinsun.com>
78872
78873         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
78874         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
78875
78876 2000-02-12  Jim Meyering  <meyering@lucent.com>
78877
78878         * lib/userspec.c (ISDIGIT): Define it.
78879         (isdigit): Remove definition.
78880         (is_number): Use ISDIGIT, not isdigit.
78881         <libintl.h>: Include.
78882         (_ and N_): Define.
78883         (parse_user_spec): Mark translatable strings.
78884
78885 2000-02-10  Jim Meyering  <meyering@lucent.com>
78886
78887         With these changes, nanosleep.[ch] are finally enough like the other
78888         lib/* replacement files to compile on a few more losing systems.
78889
78890         * lib/nanosleep.h: Don't include config.h.
78891         Remove prototype from declaration of nanosleep.
78892         (PARAMS): Remove now-unneeded definition.
78893         * lib/nanosleep.c: #undef nanosleep.
78894         (rpl_nanosleep): Rename from nanosleep.
78895
78896 2000-02-10  Jim Meyering  <meyering@lucent.com>
78897
78898         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
78899         gnu_nanosleep to rpl_nanosleep.
78900
78901 2000-02-09  Jim Meyering  <meyering@lucent.com>
78902
78903         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
78904         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
78905
78906 2000-02-08  Akim Demaille  <akim@epita.fr>
78907
78908         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
78909         `[' and `]' and remove uses of `changequote'.
78910         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
78911         (AC_SYS_LARGEFILE): Likewise.
78912         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
78913         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
78914         of changequote.
78915         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
78916         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
78917         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
78918         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
78919
78920 2000-02-05  Jim Meyering  <meyering@lucent.com>
78921
78922         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
78923         Remove explicit use of AC_HEADER_TIME.  It is required by
78924         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
78925         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
78926         in autoconf whereby the expansion of the latter ended up preceding
78927         the expansion of its prerequisite, AC_HEADER_TIME.
78928         Reported by Volker Borchert.
78929
78930 2000-02-03  Jim Meyering  <meyering@lucent.com>
78931
78932         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
78933
78934 2000-02-03  Jim Meyering  <meyering@lucent.com>
78935
78936         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
78937         rather than with `#if HAVE_UTMPNAME'.
78938
78939 2000-02-02  Jim Meyering  <meyering@lucent.com>
78940
78941         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
78942         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
78943         Reported by Eli Zaretskii.
78944
78945 2000-02-01  Jim Meyering  <meyering@lucent.com>
78946
78947         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
78948
78949 2000-01-31  Jim Meyering  <meyering@lucent.com>
78950
78951         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
78952         functions.  Add the time.h and sys/time.h headers along with the
78953         AC_REQUIRE'ment of AC_HEADER_TIME.
78954
78955 2000-01-31  Jim Meyering  <meyering@lucent.com>
78956
78957         * lib/nanosleep.h (nanosleep): Guard declaration with
78958         `#if ! HAVE_DECL_NANOSLEEP'.
78959         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
78960         the declaration in that vendor's sys/timers.h.
78961         Reported by Christian Krackowizer.
78962
78963         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
78964         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
78965         (ISPRINT): Likewise.
78966         Reported by Tom Tromey.
78967
78968 2000-01-30  Jim Meyering  <meyering@lucent.com>
78969
78970         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
78971
78972         * m4/prereq.m4 (utmp_includes): Define.
78973         Check for ut_user and ut_name members in both struct utmpx
78974         and struct utmp.
78975
78976 2000-01-30  Jim Meyering  <meyering@lucent.com>
78977
78978         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
78979         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
78980         header files where only utmpx.ut_user is declared.
78981
78982         * lib/readutmp.h (UT_USER): Define.
78983
78984 2000-01-29  Jim Meyering  <meyering@lucent.com>
78985
78986         * m4/lib-check.m4: New file containing library-related checks from
78987         fileutils and sh-utils (textutils had none).
78988
78989 2000-01-28  Jim Meyering  <meyering@lucent.com>
78990
78991         * m4/perl.m4: Change format of warning message to look more like that
78992         from the missing script.  Suggestion from François Pinard.
78993
78994 2000-01-25  Jim Meyering  <meyering@lucent.com>
78995
78996         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
78997         well as time.h in the compile check.
78998         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
78999         Fix typo in cross-compiling case: s/yes/no/.
79000
79001 2000-01-23  Jim Meyering  <meyering@lucent.com>
79002
79003         * m4/jm-macros.m4: Move df-related tests here from
79004         fileutils/configure.in
79005
79006         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
79007         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
79008
79009         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
79010         s/space/ac_fsusage_space/.
79011         (jm_FILE_SYSTEM_USAGE): Take two parameters.
79012
79013         * m4/ftruncate.m4: New file (derived from part of
79014         fileutils/configure.in).
79015         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
79016         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
79017
79018         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
79019         AC_SUBST these here, rather than just in sh-util/configure.in, so
79020         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
79021         all the same.
79022         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
79023         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
79024         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
79025         (AC_SUBST(POW_LIBM)): Likewise.
79026         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
79027
79028 2000-01-23  Jim Meyering  <meyering@lucent.com>
79029
79030         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
79031         obstack.c.
79032
79033 2000-01-22  Jim Meyering  <meyering@lucent.com>
79034
79035         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
79036
79037         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
79038
79039         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
79040         configure.in
79041         (AC_CHECK_HEADERS): Likewise for sh-utils.
79042         (AC_CHECK_HEADERS): Likewise for textutils.
79043         Merge the three lists of headers.
79044
79045         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
79046         from fileutils' configure.in.
79047
79048         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
79049         code. Moved tests into their own function (_jm_DECL_HEADERS) in
79050         check-decl.m4.
79051
79052         * m4/check-decl.m4: Use #if rather than #ifdef.
79053         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
79054         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
79055         (_jm_DECL_HEADERS): Define new function.
79056         (jm_CHECK_DECLARATIONS): Require it.
79057
79058 2000-01-22  Jim Meyering  <meyering@lucent.com>
79059
79060         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
79061         [! HAVE_DECL_STRTOULL]: Declare strtoull.
79062         Required for some AIX systems.  Reported by Christian Krackowizer.
79063         [TESTING] (main): New function.
79064
79065         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
79066         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
79067         letters.
79068
79069         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
79070         iswprint.
79071
79072         * lib/strverscmp.c (ISDIGIT): Define.
79073         (strverscmp): Use ISDIGIT, not isdigit.
79074
79075 2000-01-19  Jim Meyering  <meyering@lucent.com>
79076
79077         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
79078         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
79079         defines `struct timespec' in <sys/time.h>
79080
79081         * m4/c-bs-a.m4: Remove uses of changequote altogether.
79082         Thanks to Akim for explaining.
79083
79084 2000-01-17  Paul Eggert  <eggert@twinsun.com>
79085
79086         * lib/nanosleep.c (nanosleep):
79087         Don't use SA_INTERRUPT to decide whether to call sigaction, as
79088         POSIX.1 doesn't require SA_INTERRUPT and some systems
79089         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
79090         it's been part of POSIX.1 since day 1 (in 1988).
79091
79092 2000-01-17  Jim Meyering  <meyering@lucent.com>
79093
79094         * lib/interlock: Remove unused file.  Reported by François Pinard.
79095
79096 2000-01-16  Paul Eggert  <eggert@twinsun.com>
79097
79098         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
79099         alert, backslash, formfeed, and vertical tab unnecessarily in
79100         shell quoting style.
79101
79102 2000-01-16  Jim Meyering  <meyering@lucent.com>
79103
79104         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
79105         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
79106         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
79107         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
79108
79109 2000-01-16  Jim Meyering  <meyering@lucent.com>
79110
79111         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
79112         because the latter didn't work.
79113
79114 2000-01-15  Jim Meyering  <meyering@lucent.com>
79115
79116         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
79117         (AC_REPLACE_FUNCS): Add memcpy and memset.
79118         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
79119         Add strpbrk.
79120         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
79121
79122 2000-01-12  Jim Meyering  <meyering@lucent.com>
79123
79124         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
79125         (jm_PREREQ): Use it.
79126         (jm_PREREQ_READUTMP): New macro.
79127         (jm_PREREQ): Use it.
79128
79129 2000-01-11  Paul Eggert  <eggert@twinsun.com>
79130
79131         Quote multibyte characters correctly.
79132         * m4/c-bs-a.m4: New file.
79133         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
79134         (jm_PREREQ): Use it.
79135
79136 2000-01-11  Paul Eggert  <eggert@twinsun.com>
79137
79138         * m4/uintmax_t.m4: Port to autoconf 2.13.
79139
79140 2000-01-08  Jim Meyering  <meyering@ascend.com>
79141
79142         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
79143         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
79144
79145 2000-01-04  Jim Meyering  <meyering@ascend.com>
79146
79147         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
79148         jm_STRUCT_DIRENT_D_TYPE.
79149         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
79150         jm_STRUCT_DIRENT_D_INO.
79151         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
79152         jm_STRUCT_UTIMBUF.
79153         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
79154         renamings.
79155         * m4/utime.m4: Likewise.
79156
79157         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
79158         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
79159
79160 2000-01-03  Paul Eggert  <eggert@twinsun.com>
79161
79162         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
79163         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
79164
79165 2000-01-02  Jim Meyering  <meyering@ascend.com>
79166
79167         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
79168         remember if this is necessary.
79169
79170 1999-12-26  Jim Meyering  <meyering@ascend.com>
79171
79172         * m4/jm-macros.m4: Use it here.
79173         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
79174
79175 1999-12-23  Jim Meyering  <meyering@ascend.com>
79176
79177         * m4/jm-macros.m4: Check for clock_gettime (moved from
79178         fileutils/configure.in)
79179         Check for gettimeofday.
79180
79181 1999-12-20  Jim Meyering  <meyering@ascend.com>
79182
79183         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
79184         autoconf-2.14a-1999-12-20.
79185
79186 1999-12-19  Jim Meyering  <meyering@ascend.com>
79187
79188         * m4/lstat-slash.m4: New file.
79189         * m4/jm-macros.m4: Use the new macro:
79190         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79191
79192 1999-12-07  Jim Meyering  <meyering@ascend.com>
79193
79194         * m4/perl.m4: Require that File::Compare be available, too.
79195         Too many systems seem to lack it.
79196
79197         * m4/strftime.m4: Add checks for most of the cpp macros tested in
79198         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
79199
79200 1999-11-18  Paul Eggert  <eggert@twinsun.com>
79201
79202         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
79203         problem with the QNX 4.25 shell, which doesn't propagate exit
79204         status of failed commands inside shell assignments.
79205
79206 1999-11-17  Jim Meyering  <meyering@ascend.com>
79207
79208         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
79209
79210 1999-11-07  Jim Meyering  <meyering@ascend.com>
79211
79212         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
79213
79214 1999-11-06  Jim Meyering  <meyering@ascend.com>
79215
79216         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
79217         * m4/jm-macros.m4 (jm_MACROS): Use it here.
79218
79219 1999-11-05  Jim Meyering  <meyering@ascend.com>
79220
79221         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
79222         configure.in of textutils, fileutils, and sh-utils into this one
79223         (shared between those packages) file.
79224         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
79225         AC_STRUCT_ST_BLKSIZE.
79226
79227 1999-11-03  Jim Meyering  <meyering@ascend.com>
79228
79229         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
79230         of AC_CHECK_TYPE checks includes unistd.h.
79231         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
79232         Suggestion from Akim Demaille.
79233
79234 1999-10-30  Jim Meyering  <meyering@ascend.com>
79235
79236         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
79237         m4-quoted string.
79238         * m4/ls-mntd-fs.m4: Likewise.
79239         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
79240         * m4/jm-winsz1.m4: Likewise.
79241
79242         * m4/const.m4: Remove file, since the fix made it into the experimental
79243         version of autoconf.
79244         * m4/mktime.m4: Likewise.
79245
79246         * m4/check-type.m4: Remove file, now that the latest version of
79247         AC_CHECK_TYPE takes a third arg to specify additional #includes.
79248
79249         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
79250         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
79251         AC_CHECK_TYPE.
79252
79253 1999-10-04  Jim Meyering  <meyering@ascend.com>
79254
79255         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
79256
79257 1999-09-22  Paul Eggert  <eggert@twinsun.com>
79258
79259         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
79260         2.95.1 bug with HP-UX 10.20.
79261
79262 1999-09-17  Jim Meyering  <meyering@ascend.com>
79263
79264         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
79265         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
79266         due to missing strdup (against sh-utils-2.0).
79267
79268 1999-08-29  Jim Meyering  <meyering@ascend.com>
79269
79270         * m4/jm-macros.m4: Require jm_BISON.
79271         * m4/bison.m4: New file.
79272
79273 1999-08-17  Paul Eggert  <eggert@twinsun.com>
79274
79275         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
79276         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
79277
79278 1999-08-05  Jim Meyering  <meyering@ascend.com>
79279
79280         * m4/getline.m4: Rename test file from conftestdata to conftest.data
79281         to avoid conflicts with `conftest' on 8+3 filesystems.
79282         Suggestion from Eli Zaretskii.
79283
79284 1999-08-04  Jim Meyering  <meyering@ascend.com>
79285
79286         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
79287         fileutils and sh-utils (textutils's getline test was inadequate).
79288         (AM_FUNC_GETLINE): Run this test.
79289         (AC_CHECK_FUNCS): Check for getdelim.
79290         Reported by Bob Proulx.
79291
79292 1999-08-02  Jim Meyering  <meyering@ascend.com>
79293
79294         * m4/jm-macros.m4: Add a comment.
79295
79296 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79297
79298         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
79299         <inttypes.h> defines strtoumax as a macro (and not as a
79300         function).
79301
79302 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79303
79304         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
79305         that we can shift, multiply and divide unsigned long long
79306         values; Ultrix cc can't do it.
79307
79308 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79309
79310         * m4/mktime.m4: New file, which is a preview of what should appear
79311         in the next public autoconf release.
79312
79313 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79314
79315         * m4/lfs.m4: Remove this file.
79316         * m4/largefile.m4: New file.  It contains the old contents of
79317         lfs.m4, except that all names with prefix AC_LFS have been
79318         changed to use the prefix AC_SYS_LARGEFILE instead, to be
79319         compatible with future autoconf versions.  Also, some minor m4
79320         quoting problems have been fixed.
79321
79322 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79323
79324         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
79325         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
79326         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
79327         and simplify the shell code.
79328
79329 1999-08-01  Jim Meyering  <meyering@ascend.com>
79330
79331         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
79332         m4.
79333
79334 1999-07-20  Jim Meyering  <meyering@ascend.com>
79335
79336         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
79337
79338 1999-07-15  Jim Meyering  <meyering@ascend.com>
79339
79340         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
79341
79342 1999-05-22  Jim Meyering  <meyering@ascend.com>
79343
79344         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
79345
79346 1999-05-20  Jim Meyering  <meyering@ascend.com>
79347
79348         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
79349         Add a colon after each `then' in case $4 is empty.
79350
79351 1999-05-16  Jim Meyering  <meyering@ascend.com>
79352
79353         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
79354
79355 1999-05-10  Jim Meyering  <meyering@ascend.com>
79356
79357         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
79358
79359         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
79360         AC_FUNC_MKTIME.
79361
79362 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
79363
79364         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
79365
79366 1999-05-04  Paul Eggert  <eggert@twinsun.com>
79367
79368         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
79369         not CPPFLAGS, so that linking works correctly in IRIX.
79370
79371 1999-04-30  Paul Eggert  <eggert@twinsun.com>
79372
79373         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
79374
79375 1999-04-20  Paul Eggert  <eggert@twinsun.com>
79376
79377         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
79378         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
79379         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
79380         jm_AC_TYPE_UNSIGNED_LONG_LONG.
79381         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
79382
79383         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
79384
79385 1999-04-20  Jim Meyering  <meyering@ascend.com>
79386
79387         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
79388         AC_REPLACE xstroull if necessary.  From Paul Eggert.
79389         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
79390
79391 1999-04-18  Jim Meyering  <meyering@ascend.com>
79392
79393         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
79394         * m4/jm-macros.m4: Use it.
79395
79396 1999-04-06  Jim Meyering  <meyering@ascend.com>
79397
79398         * m4/strftime.m4: Remove test for %f.
79399
79400 1999-03-29  Jim Meyering  <meyering@ascend.com>
79401
79402         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
79403         superset of the AC_TYPE_* checks in the textutils, fileutils,
79404         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
79405         AC_TYPE_PID_T.
79406
79407 1999-03-28  Jim Meyering  <meyering@ascend.com>
79408
79409         * m4/jm-macros.m4: Define GNU_PACKAGE here.
79410         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
79411         replaced e.g., in the *.sh files of the sh-utils.
79412
79413 1999-03-20  Jim Meyering  <meyering@ascend.com>
79414
79415         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
79416         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
79417         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
79418
79419 1999-03-19  Jim Meyering  <meyering@ascend.com>
79420
79421         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
79422
79423 1999-03-12  Jim Meyering  <meyering@ascend.com>
79424
79425         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
79426
79427 1999-03-07  Jim Meyering  <meyering@ascend.com>
79428
79429         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
79430         declared.
79431
79432 1999-02-17  Jim Meyering  <meyering@ascend.com>
79433
79434         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
79435         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
79436
79437 1999-02-07  Jim Meyering  <meyering@ascend.com>
79438
79439         * m4/group-member.m4: New file -- extracted from sh-utils'
79440         configure.in.
79441
79442         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
79443         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
79444
79445 1999-02-06  Jim Meyering  <meyering@ascend.com>
79446
79447         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
79448         * m4/fnmatch.m4: Likewise.
79449         * m4/getgroups.m4: Likewise.
79450         * m4/lstat.m4: Likewise.
79451         * m4/malloc.m4: Likewise.
79452         * m4/putenv.m4: Likewise.
79453         * m4/realloc.m4: Likewise.
79454         * m4/regex.m4: Likewise.
79455         * m4/stat.m4: Likewise.
79456         * m4/strftime.m4: Likewise.
79457         Suggestion from Alain Magloire.
79458
79459         * m4/chown.m4: Use `.$ac_objext', not `.o'.
79460         * m4/fnmatch.m4: Likewise.
79461         * m4/getgroups.m4: Likewise.
79462         * m4/getline.m4: Likewise.
79463         * m4/lstat.m4: Likewise.
79464         * m4/malloc.m4: Likewise.
79465         * m4/memcmp.m4: Likewise.
79466         * m4/putenv.m4: Likewise.
79467         * m4/realloc.m4: Likewise.
79468         * m4/regex.m4: Likewise.
79469         * m4/stat.m4: Likewise.
79470         * m4/strftime.m4: Likewise.
79471         Suggestion from Alain Magloire.
79472
79473         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
79474         an argument.
79475
79476         * m4/regex.m4: Add a run-time Test for proper operation of
79477         re_compile_pattern.
79478
79479 1999-01-31  Jim Meyering  <meyering@ascend.com>
79480
79481         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
79482
79483 1999-01-30  Jim Meyering  <meyering@ascend.com>
79484
79485         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
79486
79487         * m4/jm-mktime.m4: Make this a wrapper around the official
79488         AM_FUNC_MKTIME rather than my private copy, now that the official one
79489         is up to date.
79490         * m4/mktime.m4: Remove file.
79491
79492         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
79493         * m4/uptime.m4: Likewise.
79494         * m4/uintmax_t.m4: Likewise.
79495
79496 1999-01-28  Jim Meyering  <meyering@ascend.com>
79497
79498         * m4/jm-macros.m4: Use jm_AFS.
79499         * m4/afs.m4: New file (from fileutils' configure.in).
79500
79501         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
79502         * m4/chown.m4: Likewise.
79503         * m4/d-ino.m4: Likewise.
79504         * m4/d-type.m4: Likewise.
79505         * m4/fnmatch.m4: Likewise.
79506         * m4/getgroups.m4: Likewise.
79507         * m4/gettext.m4: Likewise.
79508         * m4/jm-mktime.m4: Likewise.
79509         * m4/jm-winsz2.m4: Likewise.
79510         * m4/lcmessage.m4: Likewise.
79511         * m4/ls-mntd-fs.m4: Likewise.
79512         * m4/malloc.m4: Likewise.
79513         * m4/memcmp.m4: Likewise.
79514         * m4/putenv.m4: Likewise.
79515         * m4/realloc.m4: Likewise.
79516         * m4/st_mtim.m4: Likewise.
79517         * m4/strftime.m4: Likewise.
79518
79519 1999-01-16  Jim Meyering  <meyering@ascend.com>
79520
79521         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
79522         (ARGMATCH_DIE_DECL): Define.
79523
79524 1999-01-12  Jim Meyering  <meyering@ascend.com>
79525
79526         * m4/Makefile.am.in: Rewrite to avoid using fmt.
79527         Reported by Lars Hecking.
79528
79529 1999-01-10  Jim Meyering  <meyering@ascend.com>
79530
79531         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
79532         gross kludge.
79533         * m4/inttypes_h.m4: Likewise.
79534         * m4/lstat.m4: Likewise.
79535         * m4/malloc.m4: Likewise.
79536         * m4/readdir.m4: Likewise.
79537         * m4/realloc.m4: Likewise.
79538         * m4/st_dm_mode.m4: Likewise.
79539         * m4/stat.m4: Likewise.
79540         * m4/utimbuf.m4: Likewise.
79541         * m4/utimes.m4: Likewise.
79542
79543         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
79544         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
79545         comments in config.h.in are meaningful.
79546
79547         * m4/jm-macros.m4: Require autoconf-2.13 here.
79548
79549         * m4/regex.m4: By default, don't use the included regex.c on systems
79550         with glibc 2.  Suggestion from Uli Drepper.
79551
79552 1999-01-02  Jim Meyering  <meyering@ascend.com>
79553
79554         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
79555
79556 1998-12-18  Jim Meyering  <meyering@ascend.com>
79557
79558         * m4/Makefile.am.in (Makefile.am): Simplify rule.
79559         Based on a suggestion from Lars Hecking.
79560
79561 1998-11-16  Paul Eggert  <eggert@twinsun.com>
79562
79563         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
79564
79565 1998-11-16  Jim Meyering  <meyering@ascend.com>
79566
79567         * m4/lfs.m4: Double-quote the `uname...` expression.
79568
79569 1998-11-14  Jim Meyering  <meyering@ascend.com>
79570
79571         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
79572         * m4/stat.m4: Likewise.
79573
79574 1998-11-03  Jim Meyering  <meyering@ascend.com>
79575
79576         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
79577         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
79578
79579 1998-10-18  Jim Meyering  <meyering@ascend.com>
79580
79581         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
79582
79583 1998-10-17  Jim Meyering  <meyering@ascend.com>
79584
79585         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
79586         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
79587         calls for those previously hard-coded headers.  Instead, take a new
79588         parameter.
79589         (jm_CHECK_DECLARATIONS): Reflect interface change.
79590         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
79591         (jm_CHECK_DECL_LOCALTIME_R): New macro.
79592
79593         * m4/mktime.m4: Test for spring-forward gap before long-running test.
79594
79595 1998-10-14  Jim Meyering  <meyering@ascend.com>
79596
79597         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
79598         instead of "TZ=America/Vancouver".  From Paul Eggert.
79599
79600 1998-10-11  Jim Meyering  <meyering@ascend.com>
79601
79602         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
79603         This adds a test for a recently added compatibility fix for mktime.c.
79604         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
79605
79606 1998-09-27  Jim Meyering  <meyering@ascend.com>
79607
79608         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
79609
79610         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
79611         ../configure.in, including a change from Gordon Matzigkeit to allow
79612         cross-compiling for the Hurd.
79613
79614         * m4/glibc.m4: New file/macro to test for the GNU C Library
79615         versions 1 and 2.  From Gordon Matzigkeit.
79616         Indent.
79617
79618 1998-09-21  Jim Meyering  <meyering@ascend.com>
79619
79620         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
79621
79622 1998-08-18  Paul Eggert  <eggert@twinsun.com>
79623
79624         Port nanosecond-resolution times to UnixWare 2.1.2 and
79625         pedantic Solaris 2.6.
79626
79627         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
79628         AC_STRUCT_ST_MTIM.
79629         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
79630         Generate name of ns member, instead of just 1 or undef.
79631         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
79632
79633 1998-08-15  Jim Meyering  <meyering@ascend.com>
79634
79635         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
79636         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
79637         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
79638         instead of jm_TYPE_SSIZE_T.
79639
79640 1998-08-12  Jim Meyering  <meyering@ascend.com>
79641
79642         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
79643
79644 1998-08-02  Jim Meyering  <meyering@ascend.com>
79645
79646         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
79647         in acconfig.h manually.
79648
79649 1998-07-31  Paul Eggert  <eggert@twinsun.com>
79650
79651         * m4/st_mtim.m4: New file.
79652
79653 1998-07-28  Jim Meyering  <meyering@ascend.com>
79654
79655         * m4/utimes.m4: Undef stat.
79656
79657 1998-07-25  Jim Meyering  <meyering@ascend.com>
79658
79659         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
79660         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
79661
79662 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
79663
79664         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
79665         uid and gid actually remain unchanged.
79666
79667 1998-07-07  Jim Meyering  <meyering@ascend.com>
79668
79669         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
79670
79671 1998-07-04  Jim Meyering  <meyering@ascend.com>
79672
79673         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
79674         to prove that this macro can be used in packages without regex.c.
79675
79676 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
79677
79678         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
79679         is to be used.
79680
79681 1998-07-03  Jim Meyering  <meyering@ascend.com>
79682
79683         * m4/gettext.m4: Add -lintl if it's found to be necessary.
79684
79685         * m4/gettext.m4: New file -- from gettext-0.10.35.
79686         * m4/lcmessage.m4: Likewise.
79687         * m4/progtest.m4: Likewise.
79688
79689         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
79690         * m4/jm-macros.m4: Require the new macro.
79691
79692 1998-06-29  Jim Meyering  <meyering@ascend.com>
79693
79694         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
79695         for the definition of NGROUPS (used in a system header included
79696         by sys/mount.h).
79697
79698 1998-06-28  Jim Meyering  <meyering@ascend.com>
79699
79700         * m4/ls-mntd-fs.m4: New file.
79701         * m4/fstypename.m4: New file.
79702
79703         * m4/jm-macros.m4: Require the new macro.
79704         * m4/jm-glibc-io.m4: New file.
79705
79706 1998-05-19  Jim Meyering  <meyering@ascend.com>
79707
79708         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
79709         * m4/lchown.m4: New file.
79710
79711         * m4/Makefile.am.in: New file.
79712         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
79713
79714 1998-05-14  Jim Meyering  <meyering@ascend.com>
79715
79716         * m4/Makefile.am (EXTRA_DIST): Add them.
79717         * m4/jm-macros.m4: New file.
79718         * m4/utimbuf.m4: New file.
79719
79720 1998-05-12  Jim Meyering  <meyering@ascend.com>
79721
79722         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
79723
79724 1998-05-11  Jim Meyering  <meyering@ascend.com>
79725
79726         * m4/isc-posix.m4: New file.
79727
79728 1998-05-10  Jim Meyering  <meyering@ascend.com>
79729
79730         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
79731
79732 1998-05-09  Jim Meyering  <meyering@ascend.com>
79733
79734         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
79735         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
79736         with automake.
79737
79738         * m4/ssize_t.m4: New file.
79739         * m4/mktime.m4: Remove file -- the new automake has this now.
79740
79741 1998-04-26  Jim Meyering  <meyering@ascend.com>
79742
79743         * m4/assert.m4: New file.
79744         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
79745
79746 1998-04-05  Jim Meyering  <meyering@ascend.com>
79747
79748         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
79749         (jm_PREREQ): Use it here.
79750
79751 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
79752
79753         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
79754         in acconfig.h.
79755
79756 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
79757
79758         * m4/prereq.m4: New file.
79759         * m4/error.m4: New file.
79760         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
79761
79762 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
79763
79764         * m4/getline.m4: Don't set am_cv_func_working_getline before the
79765         cache-check for the same variable -- that defeated the purpose of
79766         the test; the test program was never run.  This was a problem only
79767         on systems with losing getline functions -- HP-UX 10.20 is one.
79768         Reported by Bjorn Helgaas.
79769
79770 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
79771
79772         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
79773
79774 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
79775
79776         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
79777
79778         * m4/const.m4: New file.  Use an initializer in this declaration
79779         typedef int charset[2]; const charset x;
79780         Reported by Bob Glickstein.
79781
79782 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
79783
79784         * m4/chown.m4: Fix reversed types on -1 args to chown.
79785         From Kaveh Ghazi.
79786
79787 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
79788
79789         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
79790         Add lseek and memchr.
79791
79792         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
79793         T.E.Dickey <dickey@clark.net> said that some older preprocessors
79794         have a 20-character limit on names.
79795
79796 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
79797
79798         * m4/inttypes_h.m4: New file.
79799         * m4/uintmax_t.m4: New file.
79800         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
79801
79802
79803         -----
79804
79805         Local Variables:
79806         coding: utf-8
79807         End:
79808
79809         Copyright (C) 1997-2011 Free Software Foundation, Inc.
79810
79811         Copying and distribution of this file, with or without
79812         modification, are permitted provided the copyright notice
79813         and this notice are preserved.